From 9c5ed69c2474bc97db8eb6b5ddfc3e522e4549e7 Mon Sep 17 00:00:00 2001 From: "Alexey.Merkulov" Date: Thu, 26 Jun 2025 15:16:38 +0200 Subject: [PATCH] IJOB-599 Fix breakpoint task in onboarding lessons After remote-dev changes we cannot rely on change by action-finished event (cherry picked from commit ba806f773db503ad3b02c3a2e55c920049153c37) IJ-CR-167265 GitOrigin-RevId: 645795be223e4501a5f12e723d71f6793c3fef4d --- .../learn/lesson/general/run/CommonDebugLesson.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/ide-features-trainer/src/training/learn/lesson/general/run/CommonDebugLesson.kt b/plugins/ide-features-trainer/src/training/learn/lesson/general/run/CommonDebugLesson.kt index 4c1422828c5c..63a0f4238110 100644 --- a/plugins/ide-features-trainer/src/training/learn/lesson/general/run/CommonDebugLesson.kt +++ b/plugins/ide-features-trainer/src/training/learn/lesson/general/run/CommonDebugLesson.kt @@ -472,7 +472,6 @@ fun LessonContext.toggleBreakpointTask(sample: LessonSample?, logicalPosition: () -> LogicalPosition, checkLine: Boolean = true, breakpointXRange: (width: Int) -> IntRange = LessonUtil.breakpointXRange, - useCheckByTimerInsteadOfStateCheck: Boolean = false, textContent: TaskContext.() -> Unit) { highlightBreakpointGutter(breakpointXRange, logicalPosition) @@ -483,12 +482,7 @@ fun LessonContext.toggleBreakpointTask(sample: LessonSample?, val checkLambda: TaskRuntimeContext.() -> Boolean = { lineWithBreakpoints() == setOf(logicalPosition().line) } - if (useCheckByTimerInsteadOfStateCheck) { - timerCheck(checkState = checkLambda) - } - else { - stateCheck(checkLambda) - } + timerCheck(checkState = checkLambda) proposeRestore { val breakpoints = lineWithBreakpoints()