go/internal/lsp/command
Suzy Mueller c2ddf3dda2 internal/lsp: add quick fix for unsupported feature
Adds a command to run go mod edit -go to allow
users to easily upgrade their go directive.

Doing this change also revealed that changing
the go directive does not invalidate the type check
data and there may be stale diagnostics for a package.

Updates golang/go#51086

Change-Id: I659a216059c489a88e29cd51b944c3a0274f3700
Reviewed-on: https://go-review.googlesource.com/c/tools/+/386875
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-28 18:28:20 +00:00
..
commandmeta internal/lsp/command: add missing doc and support for result parameters 2021-06-11 15:30:39 +00:00
gen internal/lsp/command: add missing doc and support for result parameters 2021-06-11 15:30:39 +00:00
command_gen.go internal/lsp: add quick fix for unsupported feature 2022-02-28 18:28:20 +00:00
generate.go all: fmt tests with new gofmt 2021-02-20 03:28:42 +00:00
interface.go internal/lsp: add quick fix for unsupported feature 2022-02-28 18:28:20 +00:00
interface_test.go internal/lsp/command: rename package generate to gen 2021-02-17 22:11:19 +00:00
util.go internal/lsp/command: fix typo in comment 2021-09-19 16:34:52 +00:00