From 9098376d50b7913e6412f514e11f460b4289ebb3 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Wed, 18 Sep 2019 12:32:40 -0400 Subject: [PATCH] internal/lsp: change names used by per-folder configs This was causing microsoft/vscode-go#2749, which was a result of users having folders named "go", and VSCode-Go returning the "go" configuration settings (which are all of its settings, not those of gopls). Change-Id: Ifbde3e32ad2de79265ed6adea53588c730ecd716 Reviewed-on: https://go-review.googlesource.com/c/tools/+/196197 Run-TryBot: Rebecca Stambler TryBot-Result: Gobot Gobot Reviewed-by: Ian Cottrell --- internal/lsp/general.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsp/general.go b/internal/lsp/general.go index 76d3b24698..a531814145 100644 --- a/internal/lsp/general.go +++ b/internal/lsp/general.go @@ -183,7 +183,7 @@ func (s *Server) fetchConfig(ctx context.Context, name string, folder span.URI, Section: "gopls", }, { ScopeURI: protocol.NewURI(folder), - Section: name, + Section: fmt.Sprintf("gopls-%s", name), }}, }, }