Skip to content

Commit df6cd53

Browse files
authored
Merge pull request #792 from Shopify/vs/make_code_lens_stable
Make code lens a stable feature
2 parents 4678027 + def4d88 commit df6cd53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/ruby_lsp/executor.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ def initialize_request(options)
447447
end
448448

449449
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)
451453

452454
enabled_features = case configured_features
453455
when Array
@@ -476,7 +478,7 @@ def initialize_request(options)
476478
Interface::DocumentLinkOptions.new(resolve_provider: false)
477479
end
478480

479-
code_lens_provider = if experimental_features
481+
code_lens_provider = if enabled_features["codeLens"]
480482
Interface::CodeLensOptions.new(resolve_provider: false)
481483
end
482484

0 commit comments

Comments
 (0)