mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Fix lint
This commit is contained in:
parent
356395139c
commit
cfa5afa02d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue