Skip to content

Commit

Permalink
debug: fix behavior for exited threads (#12113)
Browse files Browse the repository at this point in the history
The commit fixes a behavior regarding `exited` threads when debugging.

Signed-off-by: Andrey Ovsyankin <ovsa@1c.ru>
  • Loading branch information
EvilBeaver authored May 18, 2023
1 parent 2f8b8b6 commit ecaa167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/debug/src/browser/debug-session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,8 @@ export class DebugSession implements CompositeTreeElement {
if (reason === 'started') {
this.scheduleUpdateThreads();
} else if (reason === 'exited') {
this.clearThread(threadId);
this._threads.delete(threadId);
this.updateCurrentThread();
}
};

Expand Down

0 comments on commit ecaa167

Please sign in to comment.