Skip to content

Commit ecaa167

Browse files
authored
debug: fix behavior for exited threads (#12113)
The commit fixes a behavior regarding `exited` threads when debugging. Signed-off-by: Andrey Ovsyankin <[email protected]>
1 parent 2f8b8b6 commit ecaa167

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/debug/src/browser/debug-session.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,8 @@ export class DebugSession implements CompositeTreeElement {
909909
if (reason === 'started') {
910910
this.scheduleUpdateThreads();
911911
} else if (reason === 'exited') {
912-
this.clearThread(threadId);
912+
this._threads.delete(threadId);
913+
this.updateCurrentThread();
913914
}
914915
};
915916

0 commit comments

Comments
 (0)