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

Fix TS diagnostics not being cleared propery

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