From 2b6afc6596c9e42f2e06cfe83f76d0838f6f7263 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 11 Dec 2018 13:33:20 +0100 Subject: [PATCH] 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 Run-TryBot: Ian Cottrell TryBot-Result: Gobot Gobot --- internal/lsp/protocol/general.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/lsp/protocol/general.go b/internal/lsp/protocol/general.go index be8fa68a..00dcb41b 100644 --- a/internal/lsp/protocol/general.go +++ b/internal/lsp/protocol/general.go @@ -33,11 +33,11 @@ type InitializeParams struct { 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.