go/gopls/internal/regtest
Robert Findley 310ea71b71 gopls/internal/regtest: add a test that ignoring a file resolves errors
Add a test that when a user adds a "//go:build ignore" to a file, gopls
correctly invalidates diagnostics.

This used to be broken, but was fixed by CL 417576.

Fixes golang/go#54147

Change-Id: I554fcfc0a56b72f657e19b3c0ae53a66d1a99a76
Reviewed-on: https://go-review.googlesource.com/c/tools/+/420537
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
2022-08-02 14:13:40 +00:00
..
bench gopls/internal/regtest/bench: put feature benchmarks in their own file 2022-08-01 21:40:07 +00:00
codelens internal/lsp/regtest: simplify, consolidate, and document settings 2022-07-12 16:56:46 +00:00
completion internal/lsp/regtest: only run /default tests with -short 2022-07-26 21:20:53 +00:00
debug internal/lsp/regtest: allow sharing memoized results across regtests 2022-07-26 21:20:42 +00:00
diagnostics internal/lsp/cache: report a critical error when go.work is invalid 2022-07-27 18:59:40 +00:00
inlayhints internal/lsp/regtest: simplify, consolidate, and document settings 2022-07-12 16:56:46 +00:00
misc internal/lsp: rename all the package names in the renamed package 2022-08-01 17:28:00 +00:00
modfile internal/lsp/cache: allow network whenever reloading the workspace 2022-07-27 19:28:51 +00:00
template internal/lsp/regtest: simplify, consolidate, and document settings 2022-07-12 16:56:46 +00:00
watch internal/lsp/cache: invalidate packages with missing deps when files are 2022-07-27 16:29:04 +00:00
workspace gopls/internal/regtest: add a test that ignoring a file resolves errors 2022-08-02 14:13:40 +00:00