Skip to content

Commit

Permalink
debug: do not auto focus other threads / sessions while a session is …
Browse files Browse the repository at this point in the history
…still running

fixes #65920
  • Loading branch information
isidorn committed Jan 23, 2019
1 parent 845d977 commit 2a0a6eb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/vs/workbench/parts/debug/electron-browser/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,17 +489,7 @@ export class DebugService implements IDebugService {
}

private registerSessionListeners(session: IDebugSession): void {
const sessionRunningScheduler = new RunOnceScheduler(() => {
// Do not immediatly focus another session or thread if a session is running
// Stepping in a session should preserve that session focused even if some continued events happen
if (session.state === State.Running && this.viewModel.focusedSession === session) {
this.focusStackFrame(undefined);
}
}, 200);
this.toDispose.push(session.onDidChangeState(() => {
if (session.state === State.Running && this.viewModel.focusedSession === session) {
sessionRunningScheduler.schedule();
}
if (session === this.viewModel.focusedSession) {
this.onStateChange();
}
Expand Down

0 comments on commit 2a0a6eb

Please sign in to comment.