Skip to content

Commit def4d88

Browse files
committed
Make code lens a stable feature
1 parent a66edb2 commit def4d88

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
@@ -436,7 +436,9 @@ def initialize_request(options)
436436
end
437437

438438
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)
440442

441443
enabled_features = case configured_features
442444
when Array
@@ -465,7 +467,7 @@ def initialize_request(options)
465467
Interface::DocumentLinkOptions.new(resolve_provider: false)
466468
end
467469

468-
code_lens_provider = if experimental_features
470+
code_lens_provider = if enabled_features["codeLens"]
469471
Interface::CodeLensOptions.new(resolve_provider: false)
470472
end
471473

0 commit comments

Comments
 (0)