1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:24:39 -07:00
go/internal/lsp/protocol
Ian Cottrell ae9902aceb internal/lsp: remove the CallCanceller
This required changing the jsonrpc.Conn.Call signature to also return the
request ID so it can be cancelled.
The protocol package now declares the Call function which wrapps up
Conn.Call and then sends a cancel message if the context was
cancelled during the call.
There is a small chance that a context can be cancelled on a
request that has already completed, but it is safe to do so.

Change-Id: Ic8040c193e1dd4ef376ad21194b1d0ea82145976
Reviewed-on: https://go-review.googlesource.com/c/tools/+/227558
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-04-10 13:26:12 +00:00
..
typescript internal/lsp: remove the CallCanceller 2020-04-10 13:26:12 +00:00
context.go internal/lsp, go/packages: don't log context cancellation errors 2020-04-03 19:08:13 +00:00
doc.go internal/lsp: the core lsp protocol 2018-09-25 15:17:08 +00:00
enums.go internal/lsp: remove duplicated enums 2019-09-25 15:30:23 +00:00
log.go internal/lsp: improve ID formatting 2020-04-10 13:25:36 +00:00
protocol.go internal/lsp: remove the CallCanceller 2020-04-10 13:26:12 +00:00
span.go internal/span,lsp: disambiguate URIs, DocumentURIs, and paths 2020-02-14 22:51:03 +00:00
tsclient.go internal/lsp: remove the CallCanceller 2020-04-10 13:26:12 +00:00
tsprotocol.go internal/jsonrpc2: change handler to a function type 2020-04-06 13:48:45 +00:00
tsserver.go internal/lsp: remove the CallCanceller 2020-04-10 13:26:12 +00:00