From db0bcf47c5084bdd9ec8c41b9427b2d056a98d56 Mon Sep 17 00:00:00 2001 From: Brett Saviano Date: Fri, 22 Mar 2024 08:43:35 -0400 Subject: [PATCH] Fix manual refresh of Test Explorer (#1336) --- src/commands/unitTest.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/unitTest.ts b/src/commands/unitTest.ts index 3e0ab6ab..f0e9145a 100644 --- a/src/commands/unitTest.ts +++ b/src/commands/unitTest.ts @@ -978,7 +978,10 @@ export function setUpTestController(): vscode.Disposable[] { item.busy = false; }; testController.refreshHandler = () => { + // Create new roots replaceRootTestItems(testController); + // Resolve children for the roots + testController.items.forEach((item) => testController.resolveHandler(item)); }; // Create the run and debug profiles const runProfile = testController.createRunProfile(