x/tools/gopls: add package selector to completions #38230
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 are you using (
go version
)?go version go1.14 darwin/amd64
golang.org/x/tools/gopls v0.3.4
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Currently all autocompletion using a package selector will omit the selector. For example if you have a
t *testing.T
, and typet.Run
the completed signature will be the following, omittingt *testing.T
, so you have to manually correct it.The same happens with any other package, for example while filling fields you'll get
[]Job
in the completion here:Where it should be:
(this is in VS Code, if it matters)
The text was updated successfully, but these errors were encountered: