提交 8e35b427 编写于 作者: M Matt Bierner

Disable interuptGetErr until next release. Needs more testing

上级 0edee5d2
...@@ -266,16 +266,17 @@ export default class BufferSyncSupport extends Disposable { ...@@ -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 = undefined; // this.pendingGetErr.cancel();
const result = f(); // this.pendingGetErr = undefined;
this.triggerDiagnostics(); // const result = f();
return result; // this.triggerDiagnostics();
// return result;
} }
private onDidCloseTextDocument(document: vscode.TextDocument): void { private onDidCloseTextDocument(document: vscode.TextDocument): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册