go/internal/lsp/lsprpc
Rob Findley a0f4b7b83e internal/lsp/lsprpc: implement cancellation using jsonrpc2_v2
Use the jsonrpc2_v2 Preemption option to support request cancellation.

Also fix the TestRequestCancellation to actually test request
cancellation, and add a V2 version of this test. For now, the
ForwardBinder is not exercised.

Factor out test set-up and tear down.

Change-Id: Ic104e922fa2d0ae570b69c3928e371175db28a9f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/321014
Trust: Robert Findley <rfindley@google.com>
Trust: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2021-05-19 14:12:35 +00:00
..
autostart_default.go all: replace all usages of os/exec with golang.org/x/sys/execabs 2021-01-19 22:25:03 +00:00
autostart_posix.go all: go fmt ./... 2021-02-20 03:28:52 +00:00
binder.go internal/lsp/lsprpc: implement cancellation using jsonrpc2_v2 2021-05-19 14:12:35 +00:00
binder_test.go internal/lsp/lsprpc: implement cancellation using jsonrpc2_v2 2021-05-19 14:12:35 +00:00
lsprpc.go internal/lsp/lsprpc: partial integration of the jsonrpc_v2 library 2021-05-19 14:12:23 +00:00
lsprpc_test.go internal/lsp/lsprpc: implement cancellation using jsonrpc2_v2 2021-05-19 14:12:35 +00:00