From ecaa1675ed2f2b475263807caf64214c4969e430 Mon Sep 17 00:00:00 2001 From: Andrei Ovsiankin Date: Thu, 18 May 2023 16:24:12 +0300 Subject: [PATCH] debug: fix behavior for exited threads (#12113) The commit fixes a behavior regarding `exited` threads when debugging. Signed-off-by: Andrey Ovsyankin --- 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(); } };