go/internal/lsp/lsprpc
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
..
autostart_default.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
autostart_posix.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
binder.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
binder_test.go internal/lsp/lsprpc: use middleware for the V2 handshaking 2021-07-02 16:14:25 +00:00
commandinterceptor.go internal/lsp/lsprpc: add a CommandInterceptor middleware 2021-07-02 16:14:40 +00:00
commandinterceptor_test.go internal/lsp/lsprpc: add a CommandInterceptor middleware 2021-07-02 16:14:40 +00:00
dialer.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
goenv.go internal/lsp/lsprpc: only propagate explicit GOWORK when using remote 2022-04-01 20:25:27 +00:00
goenv_test.go internal/lsp/lsprpc: add a goenv middleware 2021-07-02 16:14:50 +00:00
lsprpc.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
lsprpc_test.go internal/lsp/regtest: don't run the connection on the test context 2022-06-10 12:48:42 +00:00
middleware.go gopls: remove usage of golang.org/x/xerrors 2022-04-20 15:33:22 +00:00
middleware_test.go internal/lsp/lsprpc: use middleware for the V2 handshaking 2021-07-02 16:14:25 +00:00