x/tools/gopls: autocompletion of struct field of type func from external package omits import identifier in placeholder #50539
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.golang.org/x/tools/gopls@v0.7.4 h1:hw8cpqjio1iMwIKbbDkG3MeW4l8R9dY/yqOHqv7HImA=
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.b3318bc0524af3d74034b8bb8a64df0ccf35549a
x64
Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
A clear and concise description of what the bug.
When letting the go extension auto complete a struct field that is of type func and from an external package, parameters with a type defined by said external package do not receive the import identifier.
A clear and concise description of what you expected to happen.
I expected them to be added
Steps to reproduce the behavior:
Sample test file:
Reproduce:
go get github.com/desertbit/grumble
Flags
keyword from config and use VSCode autocomplete to fill it again' So typeFl
and then chose suggestion from autocompletegrumble.
import identifier for the*Flags
type of the argumentScreenshots or recordings
If applicable, add screenshots or recordings to help explain your problem
Here is a video
The text was updated successfully, but these errors were encountered: