-
Notifications
You must be signed in to change notification settings - Fork 198
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
Autocomplete oddity for functions #302
Comments
@bcardarella there's two things related here. One is that we removed the override of |
It still doesn't work right on current master |
Hmm, I'll have to double-check |
This is fixed in the latest version for me. |
I can confirm it's fixed now though I'm not sure by which commit. |
@axelson I reported in Slack but figured it is better here. This doesn't appear to be fixed. I'm on version 0.9.0 and seeing the same behavior from 18 months ago: |
Can we just get exact matches to sort first? It seems reasonable if there is an exact match that is what the suggestion should be. |
I haven't been able to investigate this since it re-appeared but I have a hunch that something changed on the VSCode sorting side of things. I'm fairly sure that ElixirLS is returning |
I checked and we assign priority 0 to
Later we sort by priority in
Finally we assign sortText basing on the sort order in
For reference LSP client should sort on this property
There is alse
but we don't set it in that case so it defaults to label Maybe we should also use
|
This issue seems to be happening on SublimeText as well through this plugin. Screen.Recording.2023-02-24.at.1.29.47.PM.mov |
If anybody is still experiencing this issue, here's more context (mostly vscode specific) #883 (comment). |
Environment
Example of issue:
As you can see the autocomplete for functions doesn't seem to be working correctly. I am unsure if this is related to #193 but I think it should be clear that
do
would be the preferred completion in this case.The text was updated successfully, but these errors were encountered: