提交 7eed6236 编写于 作者: M Matt Bierner

Interupt geterror requests for getting completion entry details

UI actions like this should interup potentially long running getError requests on the server. This is because the getErr request must be fully processed before the completion entries can be returned. Explicit user actions in the UI are more important and should be computed as soon as possible
上级 5f1aa0e5
......@@ -427,7 +427,7 @@ class TypeScriptCompletionItemProvider implements vscode.CompletionItemProvider
]
};
const response = await this.client.execute('completionEntryDetails', args, token);
const response = await this.client.interuptGetErr(() => this.client.execute('completionEntryDetails', args, token));
if (response.type !== 'response' || !response.body) {
return item;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册