From b0e4c353050de6805a998db49388ecb138ba873c Mon Sep 17 00:00:00 2001 From: Andrey Ovsyankin Date: Thu, 26 Jan 2023 12:16:55 +0300 Subject: [PATCH] fixes #12112 Removing exited thread from threads --- packages/debug/src/browser/debug-session.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/debug/src/browser/debug-session.tsx b/packages/debug/src/browser/debug-session.tsx index be5d3a70472aa..ddad3d78757e5 100644 --- a/packages/debug/src/browser/debug-session.tsx +++ b/packages/debug/src/browser/debug-session.tsx @@ -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(); } };