x/tools/gopls: completion: in new file, offer "package main" first if adjacent files declare "package main" #72993
Labels
gopls
Issues related to the Go language server, gopls.
ToolProposal
Issues describing a requested change to a Go tool or command-line program.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
In latest gopls(cb292c67c19fd2ca6a9be9ad561c136043fd0472), when I use
ctrl+i
to trigger suggestion in an empty filea.go
, the suggestionmain
doesn't appear at the top.I expect when there is a go file with
package main
clause, gopls should put main as the first alternative.The text was updated successfully, but these errors were encountered: