Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Aug 7, 2024
1 parent 93687a4 commit de0bcc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby_lsp/listeners/signature_help.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def on_call_node_enter(node)

arguments_node = node.arguments
arguments = arguments_node&.arguments || []
# TODO: figure this out to select the correct sig
active_parameter = (arguments.length - 1).clamp(0, first_sig.parameters.length - 1)

# If there are arguments, then we need to check if there's a trailing comma after the end of the last argument
Expand Down

0 comments on commit de0bcc6

Please sign in to comment.