testing: show hidden tests if reveal is requested for a hidden test
Fixes #117481
This commit is contained in:
parent
c2e66ea569
commit
c5edf95dc6
1 changed files with 8 additions and 0 deletions
|
@ -434,6 +434,14 @@ export class TestingExplorerViewModel extends Disposable {
|
|||
return;
|
||||
}
|
||||
|
||||
// reveal the test if it's hidden, #117481
|
||||
for (let n: ITestTreeElement | null = item; n; n = n.parentItem) {
|
||||
if (n.test && this.testService.excludeTests.value.has(n.test.item.extId)) {
|
||||
this.filterState.showExcludedTests.value = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(() => this.revealItem(item, true), 1);
|
||||
this.filterState.reveal.value = undefined;
|
||||
this.hasPendingReveal = false;
|
||||
|
|
Loading…
Reference in a new issue