Partial fix for #12798.

This commit is contained in:
Dirk Baeumer
2016-09-28 15:36:14 +02:00
parent f3bd9cdc19
commit 82e929bd0f

View File

@@ -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 {