x/tools/gopls: strange preselected completion for unimported package #62560
Labels
FrozenDueToAge
gopls/completion
Issues related to auto-completion in gopls.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
What did you expect to see?
Suggest
json.Unmarshal
as pre-selected completion.What did you see instead?
json.InvalidUTF8Error
as pre-selected completion.Editor and settings
I'm using neovim's built-in lsp client. However, I was able to reproduce this in a vanilla VSCode install with only the Go plugin installed.
Here's the completion response neovim is getting:
The text was updated successfully, but these errors were encountered: