internal/lsp/protocol: use correct JSON name for RootURI

According to the spec,

https://microsoft.github.io/language-server-protocol/specification#initialize

the JSON name of the RootURI field is "rootUri", not "rootURI".

Change-Id: I187be9e517a6c70dabc09de4215326f2555c3f1c
Reviewed-on: https://go-review.googlesource.com/c/153537
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Elias Naur 2018-12-11 13:33:20 +01:00
parent 6a3e9aa2ab
commit 2b6afc6596
1 changed files with 4 additions and 4 deletions

View File

@ -33,11 +33,11 @@ type InitializeParams struct {
RootPath *string `json:"rootPath"` RootPath *string `json:"rootPath"`
/** /**
* The rootURI of the workspace. Is null if no * The rootUri of the workspace. Is null if no
* folder is open. If both `rootPath` and `rootURI` are set * folder is open. If both `rootPath` and `rootUri` are set
* `rootURI` wins. * `rootUri` wins.
*/ */
RootURI *DocumentURI `json:"rootURI"` RootURI *DocumentURI `json:"rootUri"`
/** /**
* User provided initialization options. * User provided initialization options.