提交 ec9ba0ed 编写于 作者: I isidor

debug: Focus child session instead if it is stopped

fixes #112595
上级 02443d02
......@@ -837,6 +837,13 @@ registerAction2(class extends ViewAction<Repl> {
const debugService = accessor.get(IDebugService);
// If session is already the focused session we need to manualy update the tree since view model will not send a focused change event
if (session && session.state !== State.Inactive && session !== debugService.getViewModel().focusedSession) {
if (session.state !== State.Stopped) {
// Focus child session instead if it is stopped #112595
const stopppedChildSession = debugService.getModel().getSessions().find(s => s.parentSession === session);
if (stopppedChildSession) {
session = stopppedChildSession;
}
}
await debugService.focusStackFrame(undefined, undefined, session, true);
} else {
await view.selectSession(session);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册