提交 99188f71 编写于 作者: I isidor

debug view model: first set focused stack frame and thread and only then emit

fixes #57215
上级 b7cbc1d2
......@@ -61,14 +61,14 @@ export class ViewModel implements IViewModel {
}
setFocus(stackFrame: IStackFrame, thread: IThread, session: ISession, explicit: boolean): void {
let shouldEmit = this._focusedSession !== session || this._focusedThread !== thread || this._focusedStackFrame !== stackFrame;
const shouldEmit = this._focusedSession !== session || this._focusedThread !== thread || this._focusedStackFrame !== stackFrame;
this._focusedStackFrame = stackFrame;
this._focusedThread = thread;
if (this._focusedSession !== session) {
this._focusedSession = session;
this._onDidFocusSession.fire(session);
}
this._focusedThread = thread;
this._focusedStackFrame = stackFrame;
this.loadedScriptsSupportedContextKey.set(session && session.raw.capabilities.supportsLoadedSourcesRequest);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册