提交 16939347 编写于 作者: M Matt Bierner

Fix TS diagnostics not being cleared propery

Fixes #50401
上级 176a27a5
......@@ -105,8 +105,6 @@ export class DiagnosticsManager {
return;
}
collection.set(file, diagnostics);
if (diagnostics.length === 0) {
const existing = collection.get(file);
if (existing.length === 0) {
......@@ -115,6 +113,8 @@ export class DiagnosticsManager {
}
}
collection.set(file, diagnostics);
this.scheduleDiagnosticsUpdate(file);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册