提交 82e929bd 编写于 作者: D Dirk Baeumer

Partial fix for #12798.

上级 f3bd9cdc
......@@ -5,6 +5,7 @@
'use strict';
import * as path from 'path';
import * as fs from 'fs';
import { workspace, TextDocument, TextDocumentChangeEvent, TextDocumentContentChangeEvent, Disposable } from 'vscode';
import * as Proto from '../protocol';
......@@ -187,6 +188,9 @@ export default class BufferSyncSupport {
this.diagnostics.delete(filepath);
delete this.syncedBuffers[filepath];
syncedBuffer.close();
if (!fs.existsSync(filepath)) {
this.requestAllDiagnostics();
}
}
private onDidChangeTextDocument(e: TextDocumentChangeEvent): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册