mirror of https://github.com/golang/go.git
Gopls behavior on disconnection is currently somewhat undefined, because it hasn't mattered when there was a single gopls session per binary invocation. With golang/go#34111, this changes. Checks are added to ensure clients and sessions are cleaned up when an LSP connection closes. Also, normal client disconnection is differentiated with the jsonrpc2.ErrDisconnected value. Updates golang/go#34111 Change-Id: I74d48ad6dcfc30d11f7f751dcffb20c18a4cbaa3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/220519 Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
|---|---|---|
| .. | ||
| servertest | ||
| handler.go | ||
| jsonrpc2.go | ||
| jsonrpc2_test.go | ||
| serve.go | ||
| serve_test.go | ||
| stream.go | ||
| wire.go | ||