提交 2a0a6eba 编写于 作者: I isidor

debug: do not auto focus other threads / sessions while a session is still running

fixes #65920
上级 845d977c
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册