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 { public interuptGetErr<R>(f: () => R): R {
console.log('try inter'); // TODO: re-enable for 1.27 insiders
if (!this.pendingGetErr) { return f();
return f(); // if (!this.pendingGetErr) {
} // return f();
// }
this.pendingGetErr.cancel(); // this.pendingGetErr.cancel();
this.pendingGetErr = undefined; // this.pendingGetErr = undefined;
const result = f(); // const result = f();
this.triggerDiagnostics(); // this.triggerDiagnostics();
return result; // return result;
} }
private onDidCloseTextDocument(document: vscode.TextDocument): void { private onDidCloseTextDocument(document: vscode.TextDocument): void {