1
0
mirror of https://github.com/golang/go synced 2024-10-01 08:18:32 -06:00
go/internal/lsp/regtest
pjw 308beac283 internal/lsp: add a way for regtests to look at the diagnostics
regtests can use Await to wait for diagnostic expectations. But sometimes
it is useful (or more robust) to then look at the specific diagnostics.
This change introduces env.DiagnosticsFor, which returns the current
diagnostics for a file.

Change-Id: Iea35d28f6679289795bc853f156aae351279b205
Reviewed-on: https://go-review.googlesource.com/c/tools/+/236837
Run-TryBot: Peter Weinberger <pjw@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-06-09 09:53:42 +00:00
..
cgo_test.go internal/lsp/regtest: Skip failing/flaky TestRegenerateCgo 2020-05-18 19:26:01 +00:00
codelens_test.go internal/lsp: fix update code lens and add a regression test 2020-06-08 16:37:37 +00:00
definition_test.go
diagnostics_test.go internal/lsp/regtest: add a test that reproduces golang/go#38878 2020-06-01 17:56:30 +00:00
doc.go
env_test.go
env.go internal/lsp: add a way for regtests to look at the diagnostics 2020-06-09 09:53:42 +00:00
formatting_test.go internal/lsp: fix formatting edge cases (36824) 2020-05-26 20:56:00 +00:00
generate_test.go
imports_test.go internal/lsp: simplify and correct fixing imports for CodeAction 2020-05-18 22:54:12 +00:00
reg_test.go internal/lsp: change exit handling 2020-06-03 13:14:19 +00:00
runner.go internal/lsp: change exit handling 2020-06-03 13:14:19 +00:00
serialization_test.go internal/lsp: change the hover test to use normal editor methods 2020-06-03 17:07:13 +00:00
shared_test.go internal/lsp: support configurable codeLens 2020-05-08 18:47:35 +00:00
symbol_helper_test.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
symbol_test.go internal/lsp/fake: define Symbol method on Editor 2020-05-11 20:27:07 +00:00
unix_test.go internal/lsp/regtest: add a t.Skip for golang/go#36824 regtest 2020-05-21 15:57:04 +00:00
vendor_test.go internal/lsp: support go mod vendor as a command 2020-06-04 18:33:45 +00:00
wrappers.go internal/lsp: now connection shutdown works, use it 2020-06-06 01:49:04 +00:00