1
0
mirror of https://github.com/golang/go synced 2024-09-30 23:08:32 -06:00
go/internal/lsp/debug
Rob Findley 20f46356b3 internal/lsp/lsprpc: add a handshake between forwarder and remote
In the ideal future, users will have one or more gopls instances, each
serving potentially many LSP clients. In order to have any hope of
navigating this web, clients and servers must know about eachother.

To allow for such an exchange of information, this CL adds an additional
handler layer to the serving configured in the lsprpc package. For now,
forwarders just use this layer to execute a handshake with the LSP
server, communicating the location of their logs and debug addresses.

Updates golang/go#34111

Change-Id: Ic7432062c01a8bbd52fb4a058a95bbf5dc26baa3
Reviewed-on: https://go-review.googlesource.com/c/tools/+/220081
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2020-02-24 22:51:04 +00:00
..
info.1.11.go internal/lsp/debug: add newlines to debug messages 2019-06-12 17:36:44 +00:00
info.1.12.go internal/lsp/debug: add newlines to debug messages 2019-06-12 17:36:44 +00:00
info.go internal/lsp: change debug instance to a struct 2020-02-07 11:26:02 +00:00
metrics.go internal/lsp: split the telemetry library out 2019-08-15 21:28:02 +00:00
rpc.go internal/lsp/debug: support dropping sessions and views 2020-01-31 21:12:09 +00:00
serve_test.go internal/lsp/debug: move all debug state onto the Instance 2020-02-24 22:50:47 +00:00
serve.go internal/lsp/lsprpc: add a handshake between forwarder and remote 2020-02-24 22:51:04 +00:00
trace.go internal/lsp/debug: support dropping sessions and views 2020-01-31 21:12:09 +00:00