-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Autocompletion no longer counts qualified imports #2082
Comments
Thanks for reporting, this is likely a regression after #2040 |
I'm not so sure this is a regression anymore. It's actually a new feature! Previously autocompletion only suggested imported identifiers, now it suggests also unimported identifiers and automatically inserts a new import if necessary. Qualifiers are no longer used only for filtering, but also to inform the format of the inserted import. However qualifiers are still used for filtering, and list of completions should put the functions from current imports first. Can you confirm whether this is the case for you? |
It's not true, at least on version 1.3.0 it show all names in alphabetical order. But if hls will showing names imported in qualifiers ordered alphabetically before all other names it will solve this issue. |
ideally i would like this behavior:
|
I see a decent path forward on this one, is it worth picking up? @pepeiborra |
I would start with a set of tests demonstrating the problem, and then we can discuss what needs to be done to enforce the behaviour that I outlined above. Implementing the behaviour that @Akhristenko suggested is not something I would recommend. "If we invoke autocomplete a second time" is not a condition that the LSP server can detect. |
Closed by #2332 |
Steps to reproduce
I have 2 modules
I delete
myid
in second module and invoke autocompletion when cursor placed afterMyModule.
Expected behaviour
In autocompletion list i see only functions from MyModule
Actual behaviour
In autocompletion list i see all function from all modules
The text was updated successfully, but these errors were encountered: