From de0bcc6963bb33721f9d1a715c5012dc703955b0 Mon Sep 17 00:00:00 2001 From: Andy Waite <13400+andyw8@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:59:44 -0400 Subject: [PATCH] wip --- lib/ruby_lsp/listeners/signature_help.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ruby_lsp/listeners/signature_help.rb b/lib/ruby_lsp/listeners/signature_help.rb index 68db073da1..9368065bcb 100644 --- a/lib/ruby_lsp/listeners/signature_help.rb +++ b/lib/ruby_lsp/listeners/signature_help.rb @@ -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