[tools] gopls/doc Update Sublime Text documentation to LSP-gopls

66 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
Apr 2, 2022, 5:04:22 AM4/2/22
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gerrit Bot has uploaded this change for review.

View Change

gopls/doc Update Sublime Text documentation to LSP-gopls

This Pull Request updates the `gopls` documentation for Sublime Text.

`gopls` should be integrated in Sublime Text by using the official helper plugin [LSP-gopls](https://github.com/sublimelsp/LSP-gopls).

[LSP-gopls](https://github.com/sublimelsp/LSP-gopls) is recommended because:
- it provides a plug and play solution, allowing new users to get up and running quickly
- it automatically installs and updates the `gopls` executable
- it provides settings competition (when LSP-json is active)

I adapted the existing examples to the new plugin.

Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
GitHub-Last-Rev: 66218e636feff6499b916c7d9a72594468fa70fb
GitHub-Pull-Request: golang/tools#377
---
M gopls/doc/subl.md
1 file changed, 82 insertions(+), 64 deletions(-)

diff --git a/gopls/doc/subl.md b/gopls/doc/subl.md
index a2b1585..540015f 100644
--- a/gopls/doc/subl.md
+++ b/gopls/doc/subl.md
@@ -1,81 +1,77 @@
# Sublime Text

-Use the [LSP] package. After installing it using Package Control, do the following:
+Setting up Sublime Text for Golang development.

-* Open the **Command Palette**
-* Find and run the command **LSP: Enable Language Server Globally**
-* Select the **gopls** item. Be careful not to select the similarly named *golsp* by mistake.
+## Installation

-Finally, you should familiarise yourself with the LSP package's *Settings* and *Key Bindings*. Find them under the menu item **Preferences > Package Settings > LSP**.
+Make sure Go is installed and available in your `PATH`. The [Go Documentation][golang-installation] get Go up and running quickly.
+You can verify that Go is properly installed and available by typing `go help` in a terminal. The command should print a help text instead of an error message.

-## Examples
-Minimal global LSP settings, that assume **gopls** and **go** appear on the PATH seen by Sublime Text:<br>
-```
+Use [Package Control] to install the following plugins:
+
+- [LSP] provides language server support in Sublime Text
+- [LSP-gopls] the helper plugin for gopls
+- (optionally) [Gomod] and [Golang Build] for gomod support and a Go build system
+
+gopls is automatically installed and activated when a `.go` file is opened.
+
+## Configuration
+
+Here are some ways to configure the package and the language server. See [the documentation][gopls-settings] for all available settings.
+
+### Global configuration
+- Configure the LSP plugin by navigating to `Preferences > Package Settings > LSP > Settings` or by executing the `Preferences: LSP Settings` command in the command palette.
+- Configure gopls by navigating to `Preferences > Package Settings > LSP > Servers > LSP-gopls` or by executing the `Preferences: LSP-gopls Settings` command in the command palette.
+
+### Project-specific configuration
+From the command palette run `Project: Edit Project` and add your settings in:
+
+```js
{
- "clients": {
- "gopls": {
- "enabled": true,
- }
+ "settings": {
+ "LSP": {
+ "LSP-gopls": {
+ "settings": {
+ // Put your settings here
+ }
+ }
}
+ }
}
```

-Global LSP settings that supply a specific PATH for finding **gopls** and **go**, as well as some settings for Sublime LSP itself:
-```
-{
- "clients": {
- "gopls": {
- "enabled": true,
- "env": {
- "PATH": "/path/to/your/go/bin",
- }
- }
- },
- // Recommended by https://agniva.me/gopls/2021/01/02/setting-up-gopls-sublime.html
- // except log_stderr mentioned there is no longer recognized.
- "show_references_in_quick_panel": true,
- "log_debug": true,
- // These two are recommended by LSP-json as replacement for deprecated only_show_lsp_completions
- "inhibit_snippet_completions": true,
- "inhibit_word_completions": true,
- }
- ```
+### Formatting

-LSP and gopls settings can also be adjusted on a per-project basis to override global settings.
-```
+It is recommended to auto-format Go files using the language server when saving.
+This can be enabled either globally in the LSP settings (see above) or for the Go syntax only.
+
+To enable formatting for the Go syntax only, open a Go file and open the syntax-specific settings by navigating to `Preferences > Settings - Syntax Specific`.
+
+Add `"lsp_format_on_save": true` to the outermost curly braces:
+
+```js
+// These settings override both User and Default settings for the Go syntax
{
- "folders": [
- {
- "path": "/path/to/a/folder/one"
- },
- {
- // If you happen to be working on Go itself, this can be helpful; go-dev/bin should be on PATH.
- "path": "/path/to/your/go-dev/src/cmd"
- }
- ],
- "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": "",
- },
- "settings": {
- "experimentalWorkspaceModule": true
- }
- }
- },
- // This will apply for all languages in this project that have
- // LSP servers, not just Go, however cannot enable just for Go.
- "lsp_format_on_save": true,
- }
+ "lsp_format_on_save": true,
}
```

-Usually changes to these settings are recognized after saving the project file, but it may sometimes be necessary to either restart the server(s) (**Tools > LSP > Restart Servers**) or quit and restart Sublime Text itself.
+### Custom gopls executable

+You can use a custom gopls executable by setting the path in the LSP-gopls settings (see above).
+```js
+{
+ "command": [
+ "path/to/custom/gopls"
+ ],
+}
+```
+
+
+[Package Control]: https://packagecontrol.io/installation
[LSP]: https://packagecontrol.io/packages/LSP
+[LSP-gopls]: https://packagecontrol.io/packages/LSP-gopls
+[Gomod]: https://packagecontrol.io/packages/Gomod
+[Golang Build]: https://packagecontrol.io/packages/Golang%20Build
+[golang-installation]: https://golang.org/doc/install
+[gopls-settings]: https://github.com/golang/tools/blob/master/gopls/doc/settings.md

To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
Gerrit-Change-Number: 397715
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-MessageType: newchange

Gopher Robot (Gerrit)

unread,
Apr 2, 2022, 5:05:03 AM4/2/22
to Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Congratulations on opening your first change. Thank you for your contribution!

Next steps:
A maintainer will review your change and provide feedback. See
https://go.dev/doc/contribute#review for more info and tips to get your
patch through code review.

Most changes in the Go project go through a few rounds of revision. This can be
surprising to people new to the project. The careful, iterative review process
is our way of helping mentor contributors and ensuring that their contributions
have a lasting impact.

View Change

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Sat, 02 Apr 2022 09:04:58 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Gerrit Bot (Gerrit)

    unread,
    Apr 2, 2022, 5:44:01 AM4/2/22
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, Hyang-Ah Hana Kim.

    Gerrit Bot uploaded patch set #2 to this change.

    View Change

    gopls/doc Update Sublime Text documentation to LSP-gopls

    This Pull Request updates the `gopls` documentation for Sublime Text.

    `gopls` should be integrated in Sublime Text by using the official helper package [LSP-gopls](https://github.com/sublimelsp/LSP-gopls).


    [LSP-gopls](https://github.com/sublimelsp/LSP-gopls) is recommended because:
    - it provides a plug and play solution, allowing new users to get up and running quickly
    - it automatically installs and updates the `gopls` executable
    - it provides settings competition (when LSP-json is active)

    I adapted the existing examples to the new plugin.

    Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    GitHub-Last-Rev: 66218e636feff6499b916c7d9a72594468fa70fb
    GitHub-Pull-Request: golang/tools#377
    ---
    M gopls/doc/subl.md
    1 file changed, 82 insertions(+), 64 deletions(-)

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 2
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Robert Findley <rfin...@google.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-MessageType: newpatchset

    Gerrit Bot (Gerrit)

    unread,
    Apr 2, 2022, 5:47:35 AM4/2/22
    to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, Hyang-Ah Hana Kim.

    Gerrit Bot uploaded patch set #3 to this change.

    View Change

    gopls/doc Update Sublime Text documentation to LSP-gopls

    This Pull Request updates the `gopls` documentation for Sublime Text.

    `gopls` should be integrated in Sublime Text by using the official helper package [LSP-gopls](https://github.com/sublimelsp/LSP-gopls).

    [LSP-gopls](https://github.com/sublimelsp/LSP-gopls) is recommended because:
    - it provides a plug and play solution, allowing new users to get up and running quickly
    - it automatically installs and updates the `gopls` executable
    - it provides settings competition (when LSP-json is active)

    I adapted the existing examples to the new plugin.

    Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    GitHub-Last-Rev: 0b6e1432303388efed2ff0139213d753ce81135c

    GitHub-Pull-Request: golang/tools#377
    ---
    M gopls/doc/subl.md
    1 file changed, 82 insertions(+), 64 deletions(-)

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 3

    Hyang-Ah Hana Kim (Gerrit)

    unread,
    Apr 4, 2022, 2:18:15 PM4/4/22
    to Gerrit Bot, goph...@pubsubhelper.golang.org, David Chase, Robert Findley, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, David Chase.

    View Change

    3 comments:

    • Patchset:

    • File gopls/doc/subl.md:

      • Patch Set #3, Line 7: The [Go Documentation][golang-installation] get Go up and running quickly

        Follow the Go Documentation to ...?

      • Patch Set #3, Line 14: gomod support

        s/gomod support/go.mod file syntax highlighting/

        (wondered what's gomod support :-)

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 3
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: David Chase <drc...@google.com>
    Gerrit-Comment-Date: Mon, 04 Apr 2022 18:18:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Gerrit Bot (Gerrit)

    unread,
    Apr 4, 2022, 2:53:15 PM4/4/22
    to Lucas Alber, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, David Chase, Hyang-Ah Hana Kim.

    Gerrit Bot uploaded patch set #4 to this change.

    View Change

    gopls/doc Update Sublime Text documentation to LSP-gopls

    This Pull Request updates the `gopls` documentation for Sublime Text.

    `gopls` should be integrated in Sublime Text by using the official helper package [LSP-gopls](https://github.com/sublimelsp/LSP-gopls).

    [LSP-gopls](https://github.com/sublimelsp/LSP-gopls) is recommended because:
    - it provides a plug and play solution, allowing new users to get up and running quickly
    - it automatically installs and updates the `gopls` executable
    - it provides settings competition (when LSP-json is active)

    I adapted the existing examples to the new plugin.

    Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    GitHub-Last-Rev: e7230e42c4ca5725c3cebd83bbe67b7936c35c22

    GitHub-Pull-Request: golang/tools#377
    ---
    M gopls/doc/subl.md
    1 file changed, 82 insertions(+), 64 deletions(-)

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 4
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: David Chase <drc...@google.com>

    David Chase (Gerrit)

    unread,
    Apr 4, 2022, 2:54:34 PM4/4/22
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, Robert Findley, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, Hyang-Ah Hana Kim.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #3:

        It was very tricky to figure out exactly how to use LSP-gopls with a different go binary/goroot, so I am not sure those instructions should be removed. I realize that this is not usual-case, but when it is the case, if the instructions are missing, figuring out the right answer is hard.

    • File gopls/doc/subl.md:

      • Patch Set #3, Line 50: outermost curly braces

        to be clear, is that at the same level as "settings"? I very much prefer examples that can be looked at or copy-pasted, instead of edit-lists.

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 3
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Mon, 04 Apr 2022 18:54:29 +0000

    David Chase (Gerrit)

    unread,
    Apr 4, 2022, 3:09:32 PM4/4/22
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, Robert Findley, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, Hyang-Ah Hana Kim.

    View Change

    1 comment:

    • File gopls/doc/subl.md:

      • to be clear, is that at the same level as "settings"? I very much prefer examples that can be looke […]

        Oops, no, I think this needs an example, because this is not applied to the earlier example, this is applied to JSON not shown here, that I will see with some menu operations.

        I think JSON examples are sort of an obligation on doc writers, if an application uses human-editable JSON to manipulate preferences, because there's so much room for confusion and error and all the choices are buried in documentation or somewhere on the internet, instead of being presented in a menu. It's the thing I like least about Sublime Text. (Emacs-lisp is worse, of course).

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 4
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Mon, 04 Apr 2022 19:09:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: David Chase <drc...@google.com>
    Gerrit-MessageType: comment

    Gerrit Bot (Gerrit)

    unread,
    Apr 4, 2022, 3:12:10 PM4/4/22
    to Lucas Alber, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, Hyang-Ah Hana Kim.

    Gerrit Bot uploaded patch set #5 to this change.

    View Change

    gopls/doc Update Sublime Text documentation to LSP-gopls

    This Pull Request updates the `gopls` documentation for Sublime Text.

    `gopls` should be integrated in Sublime Text by using the official helper package [LSP-gopls](https://github.com/sublimelsp/LSP-gopls).

    [LSP-gopls](https://github.com/sublimelsp/LSP-gopls) is recommended because:
    - it provides a plug and play solution, allowing new users to get up and running quickly
    - it automatically installs and updates the `gopls` executable
    - it provides settings competition (when LSP-json is active)

    I adapted the existing examples to the new plugin.

    Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    GitHub-Last-Rev: 3103b09417cb49592ef5723bb6c0a8c35980f5d4

    GitHub-Pull-Request: golang/tools#377
    ---
    M gopls/doc/subl.md
    1 file changed, 95 insertions(+), 64 deletions(-)

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 5
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-MessageType: newpatchset

    Lucas Alber (Gerrit)

    unread,
    Apr 4, 2022, 7:08:02 PM4/4/22
    to Gerrit Bot, goph...@pubsubhelper.golang.org, David Chase, Robert Findley, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, David Chase, Hyang-Ah Hana Kim.

    View Change

    2 comments:

    • Patchset:

      • Patch Set #3:

        It was very tricky to figure out exactly how to use LSP-gopls with a different go binary/goroot, so […]

        Instructions for a custom gopls binary were already present in patchset 3. I added instructions for custom environment variables.

    • File gopls/doc/subl.md:

      • Patch Set #3, Line 50: outermost curly braces

        to be clear, is that at the same level as "settings"? I very much prefer examples that can be looke […]

      • There is an example in the next code-block. `lsp_format_on_save` can be applied to the global sublime settings, syntax specific settings as well as to the LSP plugin settings. This example shows syntax specific settings (recommended) in which `lsp_format_on_save` must be added to the same level as for example "color_scheme" or "font_face".

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 4
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: David Chase <drc...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Mon, 04 Apr 2022 19:15:58 +0000

    Lucas Alber (Gerrit)

    unread,
    Apr 4, 2022, 7:08:02 PM4/4/22
    to Gerrit Bot, goph...@pubsubhelper.golang.org, David Chase, Robert Findley, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Attention is currently required from: Robert Findley, David Chase, Hyang-Ah Hana Kim.

    View Change

    2 comments:

    • File gopls/doc/subl.md:

      • Patch Set #3, Line 7: The [Go Documentation][golang-installation] get Go up and running quickly

        Follow the Go Documentation to ... […]

        Done

      • s/gomod support/go.mod file syntax highlighting/ […]

        Done

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 3
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: Robert Findley <rfin...@google.com>
    Gerrit-Attention: David Chase <drc...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Mon, 04 Apr 2022 18:38:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-MessageType: comment

    Robert Findley (Gerrit)

    unread,
    Jul 1, 2022, 10:17:32 AM7/1/22
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, David Chase, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Attention is currently required from: David Chase, Hyang-Ah Hana Kim.

    View Change

    1 comment:

    • Patchset:

      • Patch Set #5:

        @DrChase gentle ping, WDYT about merging this as-is?

    To view, visit change 397715. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 5
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-Attention: David Chase <drc...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Fri, 01 Jul 2022 14:17:28 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    kortschak (Gerrit)

    unread,
    Aug 18, 2024, 9:43:36 PM8/18/24
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, David Chase, Robert Findley, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from David Chase and Hyang-Ah Hana Kim

    kortschak added 6 comments

    Commit Message
    Line 7, Patchset 5 (Latest):gopls/doc Update Sublime Text documentation to LSP-gopls
    kortschak . unresolved

    Please add a colon after the path.

    gopls/doc: Update Sublime Text documentation to LSP-gopls

    Line 9, Patchset 5 (Latest):This Pull Request updates the `gopls` documentation for Sublime Text.
    kortschak . unresolved

    This is not necessary; it's in the commit headline.

    Line 11, Patchset 5 (Latest):`gopls` should be integrated in Sublime Text by using the official helper package [LSP-gopls](https://github.com/sublimelsp/LSP-gopls).
    kortschak . unresolved

    Commit messages are not Markdown, please remove the link syntax here and below.


    - it provides a plug and play solution, allowing new users to get up and running quickly
    - it automatically installs and updates the `gopls` executable
    - it provides settings competition (when LSP-json is active)

    I adapted the existing examples to the new plugin.
    kortschak . unresolved

    I'm not sure this adds anything. The fact that the sublimelsp/LSP project specifies LSP-gopls as the best option should be enough for making the decision, and that doesn't need to be included in the commit message.

    File gopls/doc/subl.md
    Line 29, Patchset 5 (Latest):```js
    kortschak . unresolved

    json

    Line 52, Patchset 5 (Latest):```js
    kortschak . unresolved

    json

    Open in Gerrit

    Related details

    Attention is currently required from:
    • David Chase
    • Hyang-Ah Hana Kim
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 5
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-CC: Robert Findley <rfin...@google.com>
    Gerrit-CC: kortschak <d...@kortschak.io>
    Gerrit-Attention: David Chase <drc...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Mon, 19 Aug 2024 01:43:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Robert Findley (Gerrit)

    unread,
    Aug 19, 2024, 9:15:56 AM8/19/24
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, kortschak, David Chase, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from David Chase, Hyang-Ah Hana Kim and kortschak

    Robert Findley voted and added 1 comment

    Votes added by Robert Findley

    Code-Review+1

    1 comment

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Robert Findley . resolved

    With Dan's +2, I'll merge this.

    Thanks Dan for stepping in to help review.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • David Chase
    • Hyang-Ah Hana Kim
    • kortschak
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 5
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Robert Findley <rfin...@google.com>
    Gerrit-Reviewer: kortschak <d...@kortschak.io>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-Attention: David Chase <drc...@google.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Attention: kortschak <d...@kortschak.io>
    Gerrit-Comment-Date: Mon, 19 Aug 2024 13:15:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Lucas Alber (Gerrit)

    unread,
    Aug 21, 2024, 11:21:55 AM8/21/24
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Robert Findley, kortschak, David Chase, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from David Chase, Hyang-Ah Hana Kim and kortschak

    Lucas Alber added 7 comments

    Patchset-level comments
    Lucas Alber . resolved

    Thanks for your review! I addressed the points in the PR description. (I hope updating the description in GitHub is enough?)

    Commit Message
    Line 7, Patchset 5 (Latest):gopls/doc Update Sublime Text documentation to LSP-gopls
    kortschak . resolved

    Please add a colon after the path.

    gopls/doc: Update Sublime Text documentation to LSP-gopls

    Lucas Alber

    Done

    Line 9, Patchset 5 (Latest):This Pull Request updates the `gopls` documentation for Sublime Text.
    kortschak . resolved

    This is not necessary; it's in the commit headline.

    Lucas Alber

    Done

    Line 11, Patchset 5 (Latest):`gopls` should be integrated in Sublime Text by using the official helper package [LSP-gopls](https://github.com/sublimelsp/LSP-gopls).
    kortschak . resolved

    Commit messages are not Markdown, please remove the link syntax here and below.

    Lucas Alber

    Done

    Line 13, Patchset 5 (Latest):[LSP-gopls](https://github.com/sublimelsp/LSP-gopls) is recommended because:
    - it provides a plug and play solution, allowing new users to get up and running quickly
    - it automatically installs and updates the `gopls` executable
    - it provides settings competition (when LSP-json is active)

    I adapted the existing examples to the new plugin.
    kortschak . resolved

    I'm not sure this adds anything. The fact that the sublimelsp/LSP project specifies LSP-gopls as the best option should be enough for making the decision, and that doesn't need to be included in the commit message.

    Lucas Alber

    Done

    File gopls/doc/subl.md
    kortschak . unresolved

    json

    Lucas Alber

    This is a sublime-settings file with is JSON with comments, however this is not supported by most Markdown parsers. Using js is the usual workaround.

    kortschak . unresolved

    json

    Lucas Alber

    See above.

    Gerrit-Comment-Date: Wed, 21 Aug 2024 15:21:45 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: kortschak <d...@kortschak.io>
    unsatisfied_requirement
    open
    diffy

    David Chase (Gerrit)

    unread,
    Aug 21, 2024, 1:27:15 PM8/21/24
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, Robert Findley, kortschak, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Hyang-Ah Hana Kim and kortschak

    David Chase added 1 comment

    File gopls/doc/subl.md
    Line 35, Patchset 5 (Latest): // Put your settings here
    David Chase . unresolved

    s/your/project-specific LSP-gopls settings/

    Between global LSP, global LSP-gopls, local LSP, local LSP-gopls, and syntax specific, I think it helps to be more specific where possible.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hyang-Ah Hana Kim
    • kortschak
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 5
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Robert Findley <rfin...@google.com>
    Gerrit-Reviewer: kortschak <d...@kortschak.io>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Attention: kortschak <d...@kortschak.io>
    Gerrit-Comment-Date: Wed, 21 Aug 2024 17:27:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    David Chase (Gerrit)

    unread,
    Aug 21, 2024, 2:08:32 PM8/21/24
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, Robert Findley, kortschak, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Hyang-Ah Hana Kim and kortschak

    David Chase added 2 comments

    File gopls/doc/subl.md
    Line 23, Patchset 5 (Latest):- Configure the LSP package by navigating to `Preferences > Package Settings > LSP > Settings` or by executing the `Preferences: LSP Settings` command in the command palette.
    David Chase . unresolved

    , and editing the JSON that you find there.

    Line 63, Patchset 5 (Latest):{
    David Chase . unresolved
    I really think it would help to provide all the context in one place.  People reading this will be in a hurry, possibly already making mistakes, possibly angry.  This should be as easy as it can possibly be for them to obtain a configuration that is at least valid.  I know it is minimal and more elegant to not repeat text and factor the configuration file into its separate pieces, but that adds work for the reader.  For example:
    ```
    {
    "folders": [
    {
    "path": "/path/to/folder-one"
    },
    {
    "path": "/path/to/folder-two"
    }
    ],
    "settings": {
    "LSP": {
    "gopls": {
    "settings": {
    "command": [
    "path/to/custom/gopls // optional path to specific gopls binary",
    "-v // optional flag to gopls server"
    ],
    "PATH": "/path/to/go/bin // optional path to specific go/bin",
    "GOPATH": ""
    }
    }
    }
    }
    }


    ```

    Gerrit-Comment-Date: Wed, 21 Aug 2024 18:08:27 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    kortschak (Gerrit)

    unread,
    Aug 28, 2024, 2:40:46 PM8/28/24
    to Gerrit Bot, Lucas Alber, goph...@pubsubhelper.golang.org, Robert Findley, David Chase, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Hyang-Ah Hana Kim and Lucas Alber

    kortschak added 3 comments

    Patchset-level comments
    Lucas Alber . unresolved

    Thanks for your review! I addressed the points in the PR description. (I hope updating the description in GitHub is enough?)

    kortschak

    That has not propagated; I see that you've made the change to the title (please also lowercase the "Update" — sorry, I should have noted that), but there is no change to the change description. Please take a look at the GerritBot docs here https://go.dev/wiki/GerritBot.

    File gopls/doc/subl.md
    kortschak . resolved

    json

    Lucas Alber

    This is a sublime-settings file with is JSON with comments, however this is not supported by most Markdown parsers. Using js is the usual workaround.

    kortschak

    Acknowledged

    kortschak . resolved

    json

    Lucas Alber

    See above.

    kortschak

    Acknowledged

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hyang-Ah Hana Kim
    • Lucas Alber
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: tools
    Gerrit-Branch: master
    Gerrit-Change-Id: Ieebb840419ba4629cd73641ace58456686f3d8e1
    Gerrit-Change-Number: 397715
    Gerrit-PatchSet: 5
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: David Chase <drc...@google.com>
    Gerrit-Reviewer: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Reviewer: Robert Findley <rfin...@google.com>
    Gerrit-Reviewer: kortschak <d...@kortschak.io>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Lucas Alber <lucasd...@gmail.com>
    Gerrit-Attention: Lucas Alber <lucasd...@gmail.com>
    Gerrit-Attention: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Wed, 28 Aug 2024 18:40:40 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Lucas Alber <lucasd...@gmail.com>
    Comment-In-Reply-To: kortschak <d...@kortschak.io>
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages