1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00
go/internal/jsonrpc2
Rob Findley b320d3a0f5 internal/jsonrpc2/servertest: support both TCP and pipe connection
Update the servertest package to support connecting to a jsonrpc2 server
using either TCP or io.Pipes. The latter is provided so that regtests
can more accurately mimic the current gopls execution mode, where gopls
is run as a sidecar and communicated with via a pipe.

Updates golang/go#36879

Change-Id: I0e14ed0e628333ba2cc7b088009f1887fcaa82a5
Reviewed-on: https://go-review.googlesource.com/c/tools/+/218777
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-02-16 19:22:41 +00:00
..
servertest internal/jsonrpc2/servertest: support both TCP and pipe connection 2020-02-16 19:22:41 +00:00
handler.go internal/lsp: cancel early 2019-10-22 07:49:31 +00:00
jsonrpc2_test.go internal/jsonrpc2: fix invalid invocations of Fatalf in goroutines 2020-02-05 19:51:38 +00:00
jsonrpc2.go internal/jsonrpc2: fix races in cancellation 2020-02-14 14:43:24 +00:00
serve.go internal/lsp: refactor LSP server instantiation 2020-02-06 23:12:37 +00:00
stream.go internal/jsonrpc2: add telemetry to the rpc system 2019-06-27 03:32:48 +00:00
wire.go all: fix some staticcheck errors 2020-01-29 04:53:41 +00:00