提交 a9e93b10 编写于 作者: M Matt Bierner

Try interuprting getErr requests for user actions

Fixes #57542
上级 42091704
...@@ -274,17 +274,15 @@ export default class BufferSyncSupport extends Disposable { ...@@ -274,17 +274,15 @@ export default class BufferSyncSupport extends Disposable {
} }
public interuptGetErr<R>(f: () => R): R { public interuptGetErr<R>(f: () => R): R {
// 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.
先完成此消息的编辑!
想要评论请 注册