Watching problem matchers should clear problems on task exit

Fixes #78485
This commit is contained in:
Alex Ross 2019-08-13 13:02:00 +02:00
parent 0c044b6d5d
commit 053fe57597

View file

@ -47,7 +47,7 @@ export abstract class AbstractProblemCollector implements IDisposable {
private tail: Promise<void> | undefined;
// [owner] -> ApplyToKind
private applyToByOwner: Map<string, ApplyToKind>;
protected applyToByOwner: Map<string, ApplyToKind>;
// [owner] -> [resource] -> URI
private resourcesToClean: Map<string, Map<string, URI>>;
// [owner] -> [resource] -> [markerkey] -> markerData
@ -512,4 +512,11 @@ export class WatchingProblemCollector extends AbstractProblemCollector implement
this.deliverMarkersPerOwnerAndResource(this.currentOwner, this.currentResource);
}
}
public done(): void {
[...this.applyToByOwner.keys()].forEach(owner => {
this.recordResourcesToClean(owner);
});
super.done();
}
}