go/internal/lsp/regtest
Rob Findley 697795d6a8 internal/lsp/regtest: don't run the connection on the test context
When test awaiting fails, we often fail to shut down the server because
the pipe is closed. Fix this by using a detached context for running the
connection.

Also clean up some unnecessary context arguments.

Change-Id: I535c1cc1606e44df5f8e2177c92293d57836f992
Reviewed-on: https://go-review.googlesource.com/c/tools/+/340850
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2022-06-10 12:48:42 +00:00
..
doc.go gopls, internal/lsp: gofmt 2022-04-12 17:41:31 +00:00
env.go internal/lsp/regtest: don't run the connection on the test context 2022-06-10 12:48:42 +00:00
env_test.go internal/lsp/regtest: add a benchmark for didChange 2021-05-06 02:57:18 +00:00
expectation.go internal/lsp/regtest: make TestResolveImportCycle robust to error order 2022-05-13 22:16:40 +00:00
regtest.go internal/lsp/regtest: only print RPC logs if asked 2022-05-17 21:46:20 +00:00
runner.go internal/lsp/regtest: don't run the connection on the test context 2022-06-10 12:48:42 +00:00
wrappers.go /internal/lsp/source: apply directory filters to workspace symbols 2021-10-30 12:32:06 +00:00