提交 a6c8d961 编写于 作者: I isidor

debug: make sure to de-dupe if a session is re-intialized. In case of EH...

debug: make sure to de-dupe if a session is re-intialized. In case of EH debugging we are adding a session again after an attach.

fixes #60809
上级 2f78e29c
......@@ -759,7 +759,8 @@ export class DebugModel implements IDebugModel {
public addSession(session: IDebugSession): void {
// Make sure to remove all inactive sessions once a new session is started
this.sessions = this.sessions.filter(s => s.state !== State.Inactive);
// Also make sure to de-dupe if a session is re-intialized. In case of EH debugging we are adding a session again after an attach.
this.sessions = this.sessions.filter(s => s.state !== State.Inactive && s.getId() !== session.getId());
this.sessions.push(session);
this._onDidChangeCallStack.fire();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册