-
Notifications
You must be signed in to change notification settings - Fork 231
Autoimport code action does not work #390
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
Comments
I guess I was mistaken how this code action would work. It does work for local imports |
@malteehrlen , it does work for global imports as well. In your case you have used a fully qualified name (
Wrote this also in case someone googles this issue and end up here 🙂 Happy to hear that you looked forward to that release 😄 Feel free to suggest any wishes for code actions, different ways they should work etc. that you might have. |
Should I also see an action for annotations? |
@weilbith , yes you should. Given that the symbol you are trying to import is in your symbol index. Make sure that there are no issues during the initialisation of the language server (there have been several issues relating to Gradle mostly as it uses a custom task). Also make sure that it is done loading, as the server won't do much if that is not the case. |
Released in 1.3.1 was a much awaited (by me) code action for autoimporting new deps (see #343). However it does not work as expected:
Expected:
Actual:
Code to reproduce:
Fetching code actions on
io
returns nothing.LSP version: 1.3.1
Thanks for working on this project!
ping @themkat
The text was updated successfully, but these errors were encountered: