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

Improve completions with default arguments #187

Merged
merged 1 commit into from
May 28, 2023

Conversation

scohen
Copy link
Collaborator

@scohen scohen commented May 27, 2023

A couple of updates ago, elixir sense started returning the defaults of arguments along with the names of the arguments. This make our completions much worse, as the arity of the completion didn't match the arity of the function selected and the defaults would get pasted into the completion. This meant you had to remove the default from the completion, which was beyond annoying.

These changes strip out defaults and ensure that the arity and arguments match the completion result generated by elixir sense.

@scohen scohen force-pushed the improve_callable_completions branch 2 times, most recently from 514e02c to 6b94d2e Compare May 28, 2023 00:33
A couple of updates ago, elixir sense started returning the defaults
of arguments along with the names of the arguments. This make our
completions much worse, as the arity of the completion didn't match
the arity of the function selected *and* the defaults would get pasted
into the completion. This meant you had to remove the default from the
completion, which was beyond annoying.

These changes strip out defaults and ensure that the arity and
arguments match the completion result generated by elixir sense.
@scohen scohen force-pushed the improve_callable_completions branch from 6b94d2e to 28b639d Compare May 28, 2023 00:35
@scohen scohen merged commit e874361 into main May 28, 2023
@scohen scohen deleted the improve_callable_completions branch May 28, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants