Disable interuptGetErr until next release. Needs more testing

This commit is contained in:
Matt Bierner
2018-07-27 13:22:27 -07:00
parent 0edee5d228
commit 8e35b4272b

View File

@@ -266,16 +266,17 @@ export default class BufferSyncSupport extends Disposable {
}
public interuptGetErr<R>(f: () => R): R {
console.log('try inter');
if (!this.pendingGetErr) {
return f();
}
// TODO: re-enable for 1.27 insiders
return f();
// if (!this.pendingGetErr) {
// return f();
// }
this.pendingGetErr.cancel();
this.pendingGetErr = undefined;
const result = f();
this.triggerDiagnostics();
return result;
// this.pendingGetErr.cancel();
// this.pendingGetErr = undefined;
// const result = f();
// this.triggerDiagnostics();
// return result;
}
private onDidCloseTextDocument(document: vscode.TextDocument): void {