diff --git a/gopls/doc/settings.md b/gopls/doc/settings.md index 2788ad81b8..9af120dbfb 100644 --- a/gopls/doc/settings.md +++ b/gopls/doc/settings.md @@ -196,7 +196,7 @@ Example Usage: ```json5 "gopls": { ... - "codelens": { + "codelenses": { "generate": false, // Don't show the `go generate` lens. "gc_details": true // Show a code lens toggling the display of gc's choices. } diff --git a/internal/lsp/source/api_json.go b/internal/lsp/source/api_json.go index a5dcb4ded9..f5e7e132a3 100755 --- a/internal/lsp/source/api_json.go +++ b/internal/lsp/source/api_json.go @@ -659,7 +659,7 @@ var GeneratedAPIJSON = &APIJSON{ { Name: "codelenses", Type: "map[string]bool", - Doc: "codelenses overrides the enabled/disabled state of code lenses. See the\n\"Code Lenses\" section of the\n[Settings page](https://github.com/golang/tools/blob/master/gopls/doc/settings.md)\nfor the list of supported lenses.\n\nExample Usage:\n\n```json5\n\"gopls\": {\n...\n \"codelens\": {\n \"generate\": false, // Don't show the `go generate` lens.\n \"gc_details\": true // Show a code lens toggling the display of gc's choices.\n }\n...\n}\n```\n", + Doc: "codelenses overrides the enabled/disabled state of code lenses. See the\n\"Code Lenses\" section of the\n[Settings page](https://github.com/golang/tools/blob/master/gopls/doc/settings.md)\nfor the list of supported lenses.\n\nExample Usage:\n\n```json5\n\"gopls\": {\n...\n \"codelenses\": {\n \"generate\": false, // Don't show the `go generate` lens.\n \"gc_details\": true // Show a code lens toggling the display of gc's choices.\n }\n...\n}\n```\n", EnumKeys: EnumKeys{ ValueType: "bool", Keys: []EnumKey{ diff --git a/internal/lsp/source/options.go b/internal/lsp/source/options.go index 6e75056c7e..bd94a3f84a 100644 --- a/internal/lsp/source/options.go +++ b/internal/lsp/source/options.go @@ -289,7 +289,7 @@ type UIOptions struct { // ```json5 // "gopls": { // ... - // "codelens": { + // "codelenses": { // "generate": false, // Don't show the `go generate` lens. // "gc_details": true // Show a code lens toggling the display of gc's choices. // }