x/tools/gopls: usePlaceholders=false disables variable name suggestions when using the var! suffix completion #69626
Labels
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
golang.org/x/tools/gopls v0.16.1
go env
What did you do?
I've disabled the
usePlaceholders
option, since having it enabled inserts invalid syntax, causing more work.Then I attempted to complete a
.var!
suffix completion on a function call, in order to have the variables defined.What did you see happen?
, := theFunctionThatWasCompleted()
What did you expect to see?
someVar, err := theFunctionThatWasCompleted()
Editor and settings
Zed:
Logs
No response
The text was updated successfully, but these errors were encountered: