File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,9 @@ def initialize_request(options)
436
436
end
437
437
438
438
configured_features = options . dig ( :initializationOptions , :enabledFeatures )
439
- experimental_features = options . dig ( :initializationOptions , :experimentalFeaturesEnabled )
439
+
440
+ # Uncomment the line below and use the variable to gate features behind the experimental flag
441
+ # experimental_features = options.dig(:initializationOptions, :experimentalFeaturesEnabled)
440
442
441
443
enabled_features = case configured_features
442
444
when Array
@@ -465,7 +467,7 @@ def initialize_request(options)
465
467
Interface ::DocumentLinkOptions . new ( resolve_provider : false )
466
468
end
467
469
468
- code_lens_provider = if experimental_features
470
+ code_lens_provider = if enabled_features [ "codeLens" ]
469
471
Interface ::CodeLensOptions . new ( resolve_provider : false )
470
472
end
471
473
You can’t perform that action at this time.
0 commit comments