From 9814b1bf69fae90dfc8993500cbe6ccca10b503b Mon Sep 17 00:00:00 2001 From: Robert Findley Date: Fri, 18 Mar 2022 17:08:55 -0400 Subject: [PATCH] gopls: update settings link to code lenses Make the change from CL 334209 in the source. Change-Id: I923d857b77552d6c8d100ce97b6b86f29fbc4934 Reviewed-on: https://go-review.googlesource.com/c/tools/+/393857 Trust: Robert Findley Run-TryBot: Robert Findley gopls-CI: kokoro TryBot-Result: Gopher Robot Reviewed-by: Hyang-Ah Hana Kim --- gopls/doc/settings.md | 2 +- internal/lsp/source/api_json.go | 2 +- internal/lsp/source/options.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gopls/doc/settings.md b/gopls/doc/settings.md index dfa8ff64b7..c250d236aa 100644 --- a/gopls/doc/settings.md +++ b/gopls/doc/settings.md @@ -187,7 +187,7 @@ Default: `false`. codelenses overrides the enabled/disabled state of code lenses. See the "Code Lenses" section of the -[Settings page](https://github.com/golang/tools/blob/master/gopls/doc/settings.md) +[Settings page](https://github.com/golang/tools/blob/master/gopls/doc/settings.md#code-lenses) for the list of supported lenses. Example Usage: diff --git a/internal/lsp/source/api_json.go b/internal/lsp/source/api_json.go index f37cc80d29..5e7b440246 100755 --- a/internal/lsp/source/api_json.go +++ b/internal/lsp/source/api_json.go @@ -503,7 +503,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 \"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", + 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#code-lenses)\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 b1df290595..b3b3ef2095 100644 --- a/internal/lsp/source/options.go +++ b/internal/lsp/source/options.go @@ -290,7 +290,7 @@ type UIOptions struct { // Codelenses overrides the enabled/disabled state of code lenses. See the // "Code Lenses" section of the - // [Settings page](https://github.com/golang/tools/blob/master/gopls/doc/settings.md) + // [Settings page](https://github.com/golang/tools/blob/master/gopls/doc/settings.md#code-lenses) // for the list of supported lenses. // // Example Usage: