Watching problem matchers should clear problems on task exit
Fixes #78485
This commit is contained in:
parent
0c044b6d5d
commit
053fe57597
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue