go/gopls/internal/regtest
Heschi Kreinick c0b9fb59f7 internal/lsp/analysis/undeclaredname: suppress impossible quick fixes
Reading the code and running the tests, it appears we only support quick
fixes for undeclared name errors inside function bodies. Don't offer
them in other places.

The specific situation raised was type constraints, so that's what I
tested even though the problem was much broader. Also add actual error
messages where we had empty strings.

Fixes golang/go#50935.

Change-Id: I8dadcb6e4301bf22cbe7fe5d66064aafeef02690
Reviewed-on: https://go-review.googlesource.com/c/tools/+/384117
Trust: Heschi Kreinick <heschi@google.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-02-09 19:35:26 +00:00
..
bench internal/lsp/regtest: eliminate arbitrary timeouts 2022-01-25 21:51:33 +00:00
codelens internal/lsp/regtest: eliminate arbitrary timeouts 2022-01-25 21:51:33 +00:00
completion internal/lsp/completion: the inserted text should be what is shown to the user 2022-02-03 15:40:54 +00:00
diagnostics internal/lsp/analysis/undeclaredname: suppress impossible quick fixes 2022-02-09 19:35:26 +00:00
misc internal/lsp: add ListImports 2022-02-04 22:09:29 +00:00
modfile internal/lsp/cache: set types.Config.GoVersion 2022-02-07 18:19:30 +00:00
template internal/template: return available semantic tokens even on template error 2022-01-26 20:10:56 +00:00
watch gopls/internal/regtest: clean up TestFillReturnsPanic 2021-06-03 18:03:08 +00:00
workspace internal/lsp/cache: use -workfile on 1.18 2022-02-04 14:03:59 +00:00