go/internal/lsp/lsprpc
Rob Findley 980829d8a1 internal/lsp/lsprpc: add an AutoDialer abstraction
Refactor the lsprpc package to move the logic for 'automatic' server
discovery into an AutoDialer abstraction, which both implements the v2
jsonrpc2 Dialer interface, and provides a dialNet method that can be
used for the existing v1 APIs.

Along the way, simplify the evaluation of remote arguments to eliminate
the overly abstract RemoteOption.

Change-Id: Ic3def17ccc237007a7eb2cc41a12cf058fca9be3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/332490
Trust: Robert Findley <rfindley@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-07-12 16:16:36 +00:00
..
autostart_default.go internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
autostart_posix.go internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
binder.go internal/lsp/lsprpc: use middleware for the V2 handshaking 2021-07-02 16:14:25 +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 internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
goenv.go internal/lsp/lsprpc: add a goenv middleware 2021-07-02 16:14:50 +00:00
goenv_test.go internal/lsp/lsprpc: add a goenv middleware 2021-07-02 16:14:50 +00:00
lsprpc.go internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
lsprpc_test.go internal/lsp/lsprpc: add an AutoDialer abstraction 2021-07-12 16:16:36 +00:00
middleware.go internal/lsp/lsprpc: use middleware for the V2 handshaking 2021-07-02 16:14:25 +00:00
middleware_test.go internal/lsp/lsprpc: use middleware for the V2 handshaking 2021-07-02 16:14:25 +00:00