x/tools/gopls: placeholder still exists when usePlaceholders
is false
#62676
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
go env
What did you do?
I use golsp with nvim-lspconfig and nvim-cmp in neovim. The golsp related configuration is following:
Then I create a new project and try to input
os.Op
, I accept the completion suggestionos.Open
What did you expect to see?
The unimport package
os
is imported, and code is shown asos.Open()
with no placeholder.What did you see instead?
The unimport package
os
is imported, and code is shown asos.Open(name)
.However, if I import
os
package manually before inputos.Op
, the completion result contains no placeholder as expected.Logs
the log file is empty when I use
gopls -logfile /home/ch4ser/gopls.log
The text was updated successfully, but these errors were encountered: