go/gopls/internal/regtest
Robert Findley e69ba9dc00 internal/lsp/cache: fix incorrect detection of useless code
Our logic to detect whether suggested fixes delete unnecessary code did
not take into account suggested fixes that have a command.

Fixes golang/go#48938

Change-Id: I70d2bebbf7059236525117cc1f454ef726162a96
Reviewed-on: https://go-review.googlesource.com/c/tools/+/355769
Trust: Robert Findley <rfindley@google.com>
Trust: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
2021-10-14 14:04:14 +00:00
..
bench gopls/internal/regtest: fix completion benchmarks 2021-08-12 16:12:36 +00:00
codelens gopls/internal/regtest/codelens: avoid compiler bug 2021-08-20 21:27:50 +00:00
completion internal/lsp/source: compute imports text edits from scratch 2021-07-22 17:13:07 +00:00
diagnostics internal/lsp/cache: fix incorrect detection of useless code 2021-10-14 14:04:14 +00:00
misc internal/lsp: handle panic in hoverRune by using token.Pos 2021-09-22 23:41:20 +00:00
modfile internal/lsp/regtest: run one quick fix at a time in TestUnknownRevision 2021-05-03 21:45:16 +00:00
watch gopls/internal/regtest: clean up TestFillReturnsPanic 2021-06-03 18:03:08 +00:00
workspace internal/lsp: support go.work outside of experimental 2021-09-29 19:20:39 +00:00