Closed lucastheliu closed 1 week ago
Hi @lucastheliu!
I managed to reproduce this issue and do not know why it is happing from the first glance, as a workaround I would suggest to use quick actions and add imports in this way:
I will take a look into it a bit later, as I want to fix the more important issue, which can also be related to this one: #23
Sure, I think that should be enough for the time being.
@lucastheliu Closing this for now, as there are no plans to fix it
Hi, I have a problem where LSP adds the full package name to an incomplete package name.
How to reproduce
Here is a scenario where I am trying to import any class in
java.util
.When I type in
import
andjava
, the LSP behaves as expected and completes any unfinished import code.However, when I try to autocomplete
util
, the LSP adds the entire package name instead of just completingutil
.This is different from the expected behaviour of completing part of the import.
I suspect it may be a problem due to the dot (
.
) trigger breaking the package name completion, causing it to suggest completions without previous keyword.Feel free to correct me if I am wrong.