ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Provide completion for keyword arguments in method calls

Open vinistock opened this issue 1 year ago • 2 comments

If we know exactly which method the user is currently typing, we can provide completion for the keyword arguments required to invoke that method.

E.g.:

class Foo
  def bar(a:, b:)
  end

  def baz
    baz()
      #^^ when the cursor is here we can show `a` and `b` as possible symbol completions
  end
end

vinistock avatar Nov 26 '24 15:11 vinistock

This issue is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Jan 26 '25 12:01 github-actions[bot]

Hi! I'm looking into this one. Still digging but I'll try to make a pr soon!

Image

monkeyWzr avatar Apr 12 '25 19:04 monkeyWzr