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 @@ -447,7 +447,9 @@ def initialize_request(options)
447
447
end
448
448
449
449
configured_features = options . dig ( :initializationOptions , :enabledFeatures )
450
- experimental_features = options . dig ( :initializationOptions , :experimentalFeaturesEnabled )
450
+
451
+ # Uncomment the line below and use the variable to gate features behind the experimental flag
452
+ # experimental_features = options.dig(:initializationOptions, :experimentalFeaturesEnabled)
451
453
452
454
enabled_features = case configured_features
453
455
when Array
@@ -476,7 +478,7 @@ def initialize_request(options)
476
478
Interface ::DocumentLinkOptions . new ( resolve_provider : false )
477
479
end
478
480
479
- code_lens_provider = if experimental_features
481
+ code_lens_provider = if enabled_features [ "codeLens" ]
480
482
Interface ::CodeLensOptions . new ( resolve_provider : false )
481
483
end
482
484
You can’t perform that action at this time.
0 commit comments