mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
testing: bump distro and make document polyfill work again
This commit is contained in:
@@ -623,6 +623,7 @@ export class TestItemFilteredWrapper extends TestItemImpl {
|
||||
this.description = actual.description;
|
||||
this.error = actual.error;
|
||||
this.status = actual.status;
|
||||
this.resolveHandler = actual.resolveHandler;
|
||||
|
||||
const wrapperApi = getPrivateApiFor(this);
|
||||
const actualApi = getPrivateApiFor(actual);
|
||||
@@ -654,10 +655,10 @@ export class TestItemFilteredWrapper extends TestItemImpl {
|
||||
// filter. Synchronize them.
|
||||
for (const rawChild of this.actual.children.values()) {
|
||||
const wrapper = TestItemFilteredWrapper.getWrapperForTestItem(rawChild, this.filterDocument, this);
|
||||
if (wrapper.hasNodeMatchingFilter) {
|
||||
this.addChild(wrapper);
|
||||
} else {
|
||||
if (!wrapper.hasNodeMatchingFilter) {
|
||||
wrapper.dispose();
|
||||
} else if (!this.children.has(wrapper.id)) {
|
||||
this.addChild(wrapper);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -670,6 +671,14 @@ export class TestItemFilteredWrapper extends TestItemImpl {
|
||||
|
||||
return this._cachedMatchesFilter;
|
||||
}
|
||||
|
||||
public override dispose() {
|
||||
if (this.actualParent) {
|
||||
getPrivateApiFor(this.actualParent).children.delete(this.id);
|
||||
}
|
||||
|
||||
getPrivateApiFor(this).bus.fire([ExtHostTestItemEventType.Disposed]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user