@@ -4,7 +4,7 @@ import * as ra from '../src/lsp_ext';
44import * as Is from 'vscode-languageclient/lib/utils/is' ;
55
66import { CallHierarchyFeature } from 'vscode-languageclient/lib/callHierarchy.proposed' ;
7- import { SemanticTokensFeature , DocumentSemanticsTokensSignature } from 'vscode-languageclient/lib/semanticTokens.proposed' ;
7+ import { SemanticTokensFeature } from 'vscode-languageclient/lib/semanticTokens.proposed' ;
88import { assert } from './util' ;
99
1010function renderCommand ( cmd : ra . CommandLink ) {
@@ -44,12 +44,6 @@ export function createClient(serverPath: string, cwd: string): lc.LanguageClient
4444 diagnosticCollectionName : "rustc" ,
4545 traceOutputChannel,
4646 middleware : {
47- // Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576
48- async provideDocumentSemanticTokens ( document : vscode . TextDocument , token : vscode . CancellationToken , next : DocumentSemanticsTokensSignature ) {
49- const res = await next ( document , token ) ;
50- if ( res === undefined ) throw new Error ( 'busy' ) ;
51- return res ;
52- } ,
5347 async provideHover ( document : vscode . TextDocument , position : vscode . Position , token : vscode . CancellationToken , _next : lc . ProvideHoverSignature ) {
5448 return client . sendRequest ( lc . HoverRequest . type , client . code2ProtocolConverter . asTextDocumentPositionParams ( document , position ) , token ) . then (
5549 ( result ) => {
@@ -135,7 +129,7 @@ export function createClient(serverPath: string, cwd: string): lc.LanguageClient
135129 ) ;
136130 }
137131
138- } as any
132+ }
139133 } ;
140134
141135 const client = new lc . LanguageClient (
0 commit comments