diff --git a/cmd/gopls/main.go b/cmd/gopls/main.go index dcd108d9..3111da25 100644 --- a/cmd/gopls/main.go +++ b/cmd/gopls/main.go @@ -13,9 +13,11 @@ import ( "os" "golang.org/x/tools/internal/lsp/cmd" + "golang.org/x/tools/internal/lsp/debug" "golang.org/x/tools/internal/tool" ) func main() { + debug.Version += "-cmd.gopls" tool.Main(context.Background(), cmd.New("", nil), os.Args[1:]) } diff --git a/internal/lsp/debug/info.go b/internal/lsp/debug/info.go index 8f2bf7d2..4ee320fc 100644 --- a/internal/lsp/debug/info.go +++ b/internal/lsp/debug/info.go @@ -20,7 +20,7 @@ const ( ) // Version is a manually-updated mechanism for tracking versions. -const Version = "v0.0.1-20190607+alpha" +var Version = "v0.1.0" // This writes the version and environment information to a writer. func PrintVersionInfo(w io.Writer, verbose bool, mode PrintMode) {