Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp: print the go version only once the view is created
Printing the Go version without the session's go command runner means that we may not find the right Go version. Also, panicking when we cannot find a go command is not useful to the user--show the error as a view initialization error instead. Fixes golang/go#41701 Change-Id: I0e0753da9795b1c78331db1faecd27c2bfcee9b4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/258312 Trust: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
- Loading branch information
1 parent
c8c0a1c
commit 66e72d0
Showing
4 changed files
with
27 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters