1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:54:44 -07:00
go/internal/lsp/protocol
Rebecca Stambler 5ea363182e internal/lsp: change the way that we pass arguments to command
Our approach to commands and their arguments has been ad-hoc until this
point. This CL creates a standard way of defining and passing the
arguments to different commands. The arguments to a command are now
json.RawMessages, so that we don't have to double encode. This also
allows us to check the expected number of arguments without defining
a struct for every command.

Change-Id: Ic765c9b059e8ec3e1985046d13bf321be21f16ab
Reviewed-on: https://go-review.googlesource.com/c/tools/+/242697
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
2020-07-21 16:30:27 +00:00
..
typescript internal/lsp: bring lsp protocol stubs up to date 2020-06-11 18:15:06 +00:00
context.go internal/event: improve the logging of events 2020-05-11 17:49:55 +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/jsonrpc2: Add Close method to Stream. 2020-05-27 15:00:44 +00:00
protocol.go internal/lsp: minor protocol cleanup 2020-06-09 12:41:32 +00:00
span.go internal/span,lsp: disambiguate URIs, DocumentURIs, and paths 2020-02-14 22:51:03 +00:00
tsclient.go internal/lsp: bring lsp protocol stubs up to date 2020-06-11 18:15:06 +00:00
tsprotocol.go internal/lsp: change the way that we pass arguments to command 2020-07-21 16:30:27 +00:00
tsserver.go internal/lsp: bring lsp protocol stubs up to date 2020-06-11 18:15:06 +00:00