Skip to content

Provide completion for keyword arguments in method calls #2913

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

Open
vinistock opened this issue Nov 26, 2024 · 2 comments · May be fixed by #3397
Open

Provide completion for keyword arguments in method calls #2913

vinistock opened this issue Nov 26, 2024 · 2 comments · May be fixed by #3397
Labels
enhancement New feature or request help-wanted Extra attention is needed pinned This issue or pull request is pinned and won't be marked as stale 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
Copy link
Contributor

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

@github-actions github-actions bot added the Stale label Jan 26, 2025
@vinistock vinistock added pinned This issue or pull request is pinned and won't be marked as stale and removed Stale labels Jan 27, 2025
@monkeyWzr
Copy link
Contributor

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

Image

@egiurleo egiurleo added the help-wanted Extra attention is needed label Apr 15, 2025
@monkeyWzr monkeyWzr linked a pull request Apr 16, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help-wanted Extra attention is needed pinned This issue or pull request is pinned and won't be marked as stale server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants