commit | 2b6afc6596c9e42f2e06cfe83f76d0838f6f7263 | [log] [tgz] |
---|---|---|
author | Elias Naur <elias.naur@gmail.com> | Tue Dec 11 13:33:20 2018 +0100 |
committer | Elias Naur <elias.naur@gmail.com> | Tue Dec 11 20:04:12 2018 +0000 |
tree | 8f6f6e9d9ab7e51c319fb8c7d5e42518eeb115b9 | |
parent | 6a3e9aa2ab7749d72d1006ee484271b4a11f96c2 [diff] |
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>
diff --git a/internal/lsp/protocol/general.go b/internal/lsp/protocol/general.go index be8fa68..00dcb41 100644 --- a/internal/lsp/protocol/general.go +++ b/internal/lsp/protocol/general.go
@@ -33,11 +33,11 @@ RootPath *string `json:"rootPath"` /** - * The rootURI of the workspace. Is null if no - * folder is open. If both `rootPath` and `rootURI` are set - * `rootURI` wins. + * The rootUri of the workspace. Is null if no + * folder is open. If both `rootPath` and `rootUri` are set + * `rootUri` wins. */ - RootURI *DocumentURI `json:"rootURI"` + RootURI *DocumentURI `json:"rootUri"` /** * User provided initialization options.