Skip to content

Commit db0bcf4

Browse files
authored
Fix manual refresh of Test Explorer (#1336)
1 parent 58c32ed commit db0bcf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/commands/unitTest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,10 @@ export function setUpTestController(): vscode.Disposable[] {
978978
item.busy = false;
979979
};
980980
testController.refreshHandler = () => {
981+
// Create new roots
981982
replaceRootTestItems(testController);
983+
// Resolve children for the roots
984+
testController.items.forEach((item) => testController.resolveHandler(item));
982985
};
983986
// Create the run and debug profiles
984987
const runProfile = testController.createRunProfile(

0 commit comments

Comments
 (0)