Skip to content

Commit

Permalink
Partial fix for #12798.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Sep 28, 2016
1 parent f3bd9cd commit 82e929b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extensions/typescript/src/features/bufferSyncSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 82e929b

Please sign in to comment.