From d55d8929fedfe0a88f18f8525f6b635538c720e8 Mon Sep 17 00:00:00 2001 From: David Chase Date: Thu, 3 Feb 2022 09:53:39 -0500 Subject: [PATCH] gopls/doc: how to request a particular gopls w/ sublime text I needed to do this to get a generics-capable version of gopls, because sublime LSP downloads and installs its own. Other people may also need to do this, now or in the future, and it was a pain to figure out the exact incantation. Change-Id: I360b7ee9438a2c6588f55745aa1d6f3a47ddd2fc Reviewed-on: https://go-review.googlesource.com/c/tools/+/382794 Trust: David Chase Run-TryBot: David Chase gopls-CI: kokoro TryBot-Result: Gopher Robot Reviewed-by: Hyang-Ah Hana Kim --- gopls/doc/subl.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gopls/doc/subl.md b/gopls/doc/subl.md index bd130ef521..a2b1585bc9 100644 --- a/gopls/doc/subl.md +++ b/gopls/doc/subl.md @@ -56,6 +56,10 @@ LSP and gopls settings can also be adjusted on a per-project basis to override g "settings": { "LSP": { "gopls": { + // To use a specific version of gopls with Sublime Text LSP (e.g., to try new features in development) + "command": [ + "/path/to/your/go/bin/gopls" + ], "env": { "PATH": "/path/to/your/go-dev/bin:/path/to/your/go/bin", "GOPATH": "",