提交 0aba690f 编写于 作者: D Dirk Baeumer

Fixes #34412: problemMatcher $tsc-watch ignores error second time around

上级 de99997a
......@@ -284,6 +284,11 @@ export class AbstractProblemCollector extends EventEmitter implements IDisposabl
}
return result;
}
protected cleanMarkerCaches(): void {
this.markers.clear();
this.deliveredMarkers.clear();
}
}
export enum ProblemHandlingStrategy {
......@@ -410,6 +415,7 @@ export class WatchingProblemCollector extends AbstractProblemCollector implement
if (matches) {
result = true;
this.emit(ProblemCollectorEvents.WatchingBeginDetected, {});
this.cleanMarkerCaches();
this.resetCurrentResource();
let owner = beginMatcher.problemMatcher.owner;
let file = matches[beginMatcher.pattern.file];
......@@ -435,6 +441,7 @@ export class WatchingProblemCollector extends AbstractProblemCollector implement
let owner = endMatcher.problemMatcher.owner;
this.resetCurrentResource();
this.cleanMarkers(owner);
this.cleanMarkerCaches();
}
}
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册