mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IJOB-601 Fix stop step in PyCharm onboarding tour lesson
GitOrigin-RevId: f2ebf56e5f6a16844be4e8b4666d0922de7a99e3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2c00770b3b
commit
80350f7f2a
-11
@@ -225,17 +225,6 @@ class PythonOnboardingTourLesson :
|
||||
text(PythonLessonsBundle.message("python.onboarding.stop.debugging",
|
||||
icon(AllIcons.Actions.Suspend)))
|
||||
restoreIfModified(sample)
|
||||
addFutureStep {
|
||||
val process = XDebuggerManager.getInstance(project).currentSession?.debugProcess
|
||||
val console = process?.createConsole() as? DuplexConsoleView<*, *>
|
||||
if (console != null) {
|
||||
// When debug process terminates the console tab become activated and brings focus.
|
||||
// So, we need to finish this task only after tab is activated.
|
||||
// And then focus will be returned to editor in the start of completion tasks.
|
||||
console.addSwitchListener(DuplexConsoleListener { completeStep() }, taskDisposable)
|
||||
}
|
||||
else completeStep()
|
||||
}
|
||||
stateCheck {
|
||||
XDebuggerManager.getInstance(project).currentSession == null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user