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

Don't delete diagnostics on file close if file still exists on disk

Workaround for #47386
上级 0cbd9ea2
......@@ -221,10 +221,10 @@ export default class BufferSyncSupport {
if (!syncedBuffer) {
return;
}
this.diagnostics.delete(resource);
this.syncedBuffers.delete(resource);
syncedBuffer.close();
if (!fs.existsSync(resource.fsPath)) {
this.diagnostics.delete(resource);
this.requestAllDiagnostics();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册