Skip to content

Commit 59a0d16

Browse files
authored
fix: refresh tests button causing error (microsoft#187948)
Fixes microsoft#187770
1 parent 8dcddb4 commit 59a0d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/testing/browser/testExplorerActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ export class RefreshTestsAction extends Action2 {
14211421
const testService = accessor.get(ITestService);
14221422
const progressService = accessor.get(IProgressService);
14231423

1424-
const controllerIds = distinct(elements.map(e => e.test.controllerId));
1424+
const controllerIds = distinct(elements.filter(isDefined).map(e => e.test.controllerId));
14251425
return progressService.withProgress({ location: Testing.ViewletId }, async () => {
14261426
if (controllerIds.length) {
14271427
await Promise.all(controllerIds.map(id => testService.refreshTests(id)));

0 commit comments

Comments
 (0)