diff --git a/internal/lsp/cmd/info.go b/internal/lsp/cmd/info.go index 13fd406c9e..b376b7945f 100644 --- a/internal/lsp/cmd/info.go +++ b/internal/lsp/cmd/info.go @@ -22,9 +22,6 @@ type version struct { app *Application } -// bug implements the bug command. -type bug struct{} - func (v *version) Name() string { return "version" } func (v *version) Usage() string { return "" } func (v *version) ShortHelp() string { return "print the gopls version information" } @@ -33,13 +30,15 @@ func (v *version) DetailedHelp(f *flag.FlagSet) { f.PrintDefaults() } -// Run collects some basic information and then prepares an issue ready to -// be reported. +// Run prints version information to stdout. func (v *version) Run(ctx context.Context, args ...string) error { debug.PrintVersionInfo(os.Stdout, v.app.Verbose, debug.PlainText) return nil } +// bug implements the bug command. +type bug struct{} + func (b *bug) Name() string { return "bug" } func (b *bug) Usage() string { return "" } func (b *bug) ShortHelp() string { return "report a bug in gopls" }