Skip to content

Commit

Permalink
Allow Code Lenses without a command (#2069)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed May 17, 2024
1 parent 813f870 commit d506ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ruby_lsp/requests/support/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ def visible?(node, range)
params(
node: Prism::Node,
title: String,
command_name: String,
command_name: T.nilable(String),
arguments: T.nilable(T::Array[T.untyped]),
data: T.nilable(T::Hash[T.untyped, T.untyped]),
).returns(Interface::CodeLens)
end
def create_code_lens(node, title:, command_name:, arguments:, data:)
def create_code_lens(node, title:, command_name: nil, arguments: nil, data: nil)
range = range_from_node(node)

Interface::CodeLens.new(
Expand Down

0 comments on commit d506ac4

Please sign in to comment.