Open MordFustang21 opened 4 years ago
This sounds like it could be an issue in the Atom language client library. The imports are added via the additional text edits field of a completion item: https://microsoft.github.io/language-server-protocol/specifications/specification-3-15/#textDocument_completion.
I'm 99% sure this is an issue with ide-gopls. I had to add special code when I did this the first time around to apply the additional edits see https://github.com/MordFustang21/ide-gopls/blob/master/lib/main.js#L68
When the editor adds the missing import it injects the completion selection incorrectly. Ex.
becomes