提交 1e1e9f0a 编写于 作者: I isidor

debug: there can be a session change event without a stack frame changing,...

debug: there can be a session change event without a stack frame changing, thus we need to listen on both

fixes #59037
上级 513025ed
......@@ -147,8 +147,11 @@ export class DebugService implements IDebugService {
}
}, this));
this.toDispose.push(this.viewModel.onDidFocusStackFrame(sfEvent => {
const id = sfEvent && sfEvent.stackFrame ? sfEvent.stackFrame.thread.session.getId() : undefined;
this.toDispose.push(this.viewModel.onDidFocusStackFrame(() => {
this.onStateChange();
}));
this.toDispose.push(this.viewModel.onDidFocusSession(session => {
const id = session ? session.getId() : undefined;
this.model.setBreakpointsSessionId(id);
this.onStateChange();
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册