Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide completion for keyword arguments in method calls #2913

Open
vinistock opened this issue Nov 26, 2024 · 0 comments
Open

Provide completion for keyword arguments in method calls #2913

vinistock opened this issue Nov 26, 2024 · 0 comments
Labels
enhancement New feature or request server This pull request should be included in the server gem's release notes

Comments

@vinistock
Copy link
Member

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 vinistock added enhancement New feature or request server This pull request should be included in the server gem's release notes labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server This pull request should be included in the server gem's release notes
Projects
None yet
Development

No branches or pull requests

1 participant