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 <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
diff --git a/internal/lsp/general.go b/internal/lsp/general.go
index 76d3b24..a531814 100644
--- a/internal/lsp/general.go
+++ b/internal/lsp/general.go
@@ -183,7 +183,7 @@
Section: "gopls",
}, {
ScopeURI: protocol.NewURI(folder),
- Section: name,
+ Section: fmt.Sprintf("gopls-%s", name),
}},
},
}