go/internal/lsp/regtest
Rob Findley 741f65b509 internal/lsp/lsprpc: add a forwarder handler
Add a forwarder handler that alters messages before forwarding, for now,
it just intercepts the "exit" message.

Also, make it easier to write regression tests for a shared gopls
instance, by adding a helper that instantiates two connected
environments, and only runs in the shared execution modes.

Updates golang/go#36879
Updates golang/go#34111

Change-Id: I7673f72ab71b5c7fd6ad65d274c15132a942e06a
Reviewed-on: https://go-review.googlesource.com/c/tools/+/218778
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-02-19 15:38:09 +00:00
..
definition_test.go internal/lsp/lsprpc: add an LSP forwarder and regtest environment 2020-02-14 14:21:06 +00:00
diagnostics_test.go internal/lsp/lsprpc: add a forwarder handler 2020-02-19 15:38:09 +00:00
env.go internal/lsp/lsprpc: add a forwarder handler 2020-02-19 15:38:09 +00:00
reg_test.go internal/lsp/lsprpc: add a forwarder handler 2020-02-19 15:38:09 +00:00
shared_test.go internal/lsp/lsprpc: add a forwarder handler 2020-02-19 15:38:09 +00:00