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

Try interuprting getErr requests for user actions

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