This commit is contained in:
Aleksey Kladov 2020-02-27 10:46:43 +01:00
parent 356395139c
commit cfa5afa02d

View file

@ -45,7 +45,7 @@ export async function createClient(config: Config, serverPath: string): Promise<
middleware: { middleware: {
// Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576 // Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576
async provideDocumentSemanticTokens(document: vscode.TextDocument, token: vscode.CancellationToken, next: DocumentSemanticsTokensSignature) { async provideDocumentSemanticTokens(document: vscode.TextDocument, token: vscode.CancellationToken, next: DocumentSemanticsTokensSignature) {
let res = await next(document, token); const res = await next(document, token);
if (res === undefined) throw new Error('busy'); if (res === undefined) throw new Error('busy');
return res; return res;
} }