testing: fix exclusion filter in view

Fixes #119670
This commit is contained in:
Connor Peet 2021-03-24 12:53:51 -07:00
parent e4bb4c1b77
commit 09f43fd6aa
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

View file

@ -687,7 +687,7 @@ class TestsFilter implements ITreeFilter<ITestTreeElement> {
for (let e: ITestTreeElement | null = element; e; e = e.parentItem) {
// start as included if the first glob is a negation
let included = this.filters[0][0] === false ? FilterResult.Exclude : FilterResult.Inherit;
let included = this.filters[0][0] === false ? FilterResult.Include : FilterResult.Inherit;
const data = e.label.toLowerCase();
for (const [include, filter] of this.filters) {