Skip to content

Commit f8dfbfa

Browse files
committed
1 parent 9c00167 commit f8dfbfa

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/debug/common/debugModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ export class DebugModel implements IDebugModel {
797797
// 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.
798798
return false;
799799
}
800-
if (s.state === State.Inactive && s.getLabel() === session.getLabel()) {
800+
if (s.state === State.Inactive && s.configuration.name === session.configuration.name) {
801801
// Make sure to remove all inactive sessions that are using the same configuration as the new session
802802
return false;
803803
}

src/vs/workbench/contrib/debug/electron-browser/debugSession.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ export class DebugSession implements IDebugSession {
783783
}));
784784

785785
this.rawListeners.push(this.raw.onDidExitAdapter(event => {
786+
this.initialized = true;
786787
this._onDidEndAdapter.fire(event);
787788
}));
788789
}

0 commit comments

Comments
 (0)