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

Show function parameters at the top of the autocompletion #285

Closed
strboul opened this issue Jun 26, 2020 · 4 comments · Fixed by #286
Closed

Show function parameters at the top of the autocompletion #285

strboul opened this issue Jun 26, 2020 · 4 comments · Fixed by #286

Comments

@strboul
Copy link
Contributor

strboul commented Jun 26, 2020

I believe it'll be much better if the function parameters are displayed at the top of the suggested completions when the cursor is inside a call.

Example screenshot:

rlanguageserver

decreasing can appear as the first

Thanks a lot for the languageserver ❤️

@randy3k
Copy link
Member

randy3k commented Jun 26, 2020

IIRC, the protocol has nothing to control the order.

@renkun-ken
Copy link
Member

In https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_completion, is CompletionItem.sortText the property that determines the order of items in the completion list?

@randy3k
Copy link
Member

randy3k commented Jun 26, 2020

Oh, you are right. Did notice this one.

@strboul
Copy link
Contributor Author

strboul commented Jun 28, 2020

I confirm that's working 🎉

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 a pull request may close this issue.

3 participants