This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,7 @@ export async function createClient(
366
366
367
367
// To turn on all proposed features use: client.registerProposedFeatures();
368
368
client . registerFeature ( new ExperimentalFeatures ( ) ) ;
369
+ client . registerFeature ( new OverrideFeatures ( ) ) ;
369
370
370
371
return client ;
371
372
}
@@ -401,6 +402,25 @@ class ExperimentalFeatures implements lc.StaticFeature {
401
402
dispose ( ) : void { }
402
403
}
403
404
405
+ class OverrideFeatures implements lc . StaticFeature {
406
+ getState ( ) : lc . FeatureState {
407
+ return { kind : "static" } ;
408
+ }
409
+ fillClientCapabilities ( capabilities : lc . ClientCapabilities ) : void {
410
+ // Force disable `augmentsSyntaxTokens`, VSCode's textmate grammar is somewhat incomplete
411
+ // making the experience generally worse
412
+ const caps = capabilities . textDocument ?. semanticTokens ;
413
+ if ( caps ) {
414
+ caps . augmentsSyntaxTokens = false ;
415
+ }
416
+ }
417
+ initialize (
418
+ _capabilities : lc . ServerCapabilities ,
419
+ _documentSelector : lc . DocumentSelector | undefined
420
+ ) : void { }
421
+ dispose ( ) : void { }
422
+ }
423
+
404
424
function isCodeActionWithoutEditsAndCommands ( value : any ) : boolean {
405
425
const candidate : lc . CodeAction = value ;
406
426
return (
You can’t perform that action at this time.
0 commit comments