[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:
Konstantin Hudyakov
2025-02-24 11:43:41 +00:00
committed by intellij-monorepo-bot
parent 3bc136de5a
commit 9df0757ff7
3 changed files with 2 additions and 5 deletions
@@ -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
@@ -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",
@@ -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")