Skip to content

Commit

Permalink
Delete debug session in $sessionDidDestroy instead of `$terminateDe…
Browse files Browse the repository at this point in the history
…bugSession` (#10954)

Signed-off-by: Vladimir Popov <[email protected]>
  • Loading branch information
Vladimir Popov authored Apr 11, 2022
1 parent 64d193d commit 4c6f4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-ext/src/plugin/node/debug/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ export class DebugExtImpl implements DebugExt {
const session = this.sessions.get(sessionId);
if (session) {
this.onDidTerminateDebugSessionEmitter.fire(session);
this.sessions.delete(sessionId);
}
}

Expand Down Expand Up @@ -322,7 +323,6 @@ export class DebugExtImpl implements DebugExt {
const debugAdapterSession = this.sessions.get(sessionId);
if (debugAdapterSession) {
await debugAdapterSession.stop();
this.sessions.delete(sessionId);
}
}

Expand Down

0 comments on commit 4c6f4e0

Please sign in to comment.