mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[IFT] IJOB-589 Fix breakpoint highlighting position
Need to finally find out how to calculate the position of the particular gutter icon :( GitOrigin-RevId: bf52157c66a928b65d8dcb646626c6f10554d04f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3bc136de5a
commit
9df0757ff7
@@ -269,7 +269,7 @@ object LessonUtil {
|
||||
|
||||
fun rawShift() = rawKeyStroke(KeyStroke.getKeyStroke("SHIFT"))
|
||||
|
||||
val breakpointXRange: (width: Int) -> IntRange = { IntRange(14, it - 30) }
|
||||
val breakpointXRange: (width: Int) -> IntRange = { IntRange(5, it - 38) }
|
||||
|
||||
fun LessonContext.highlightBreakpointGutter(xRange: (width: Int) -> IntRange = breakpointXRange,
|
||||
logicalPosition: () -> LogicalPosition
|
||||
|
||||
+1
-1
@@ -182,7 +182,7 @@ class PythonOnboardingTourLesson :
|
||||
}
|
||||
caret(sample.startOffset)
|
||||
|
||||
toggleBreakpointTask(sample, { logicalPosition }, breakpointXRange = { IntRange(13, it - 17) }, checkLine = false) {
|
||||
toggleBreakpointTask(sample, { logicalPosition }, checkLine = false) {
|
||||
text(PythonLessonsBundle.message("python.onboarding.balloon.click.here"),
|
||||
LearningBalloonConfig(Balloon.Position.below, width = 0, cornerToPointerDistance = 20))
|
||||
text(PythonLessonsBundle.message("python.onboarding.toggle.breakpoint.1",
|
||||
|
||||
-3
@@ -56,9 +56,6 @@ class PythonDebugLesson : CommonDebugLesson("python.debug.workflow") {
|
||||
print("The average is ", average)
|
||||
""".trimIndent())
|
||||
|
||||
|
||||
override val breakpointXRange: (width: Int) -> IntRange = { IntRange(13, it - 17) }
|
||||
|
||||
override fun LessonContext.applyProgramChangeTasks() {
|
||||
highlightButtonById("Rerun")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user