mirror of https://github.com/golang/go.git
gopls: use new "codelenses" config key in docs over deprecated "codelens"
There is a TODO to remove the "codelens" alias. This updates an example in the documentation to use the new name. Change-Id: Id807e99f5ba1da663eae9660fb65521596b0c488 Reviewed-on: https://go-review.googlesource.com/c/tools/+/344352 Trust: Rebecca Stambler <rstambler@golang.org> Trust: Robert Findley <rfindley@google.com> Run-TryBot: Rebecca Stambler <rstambler@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This commit is contained in:
parent
7391fc19fa
commit
4e109c5706
|
|
@ -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.
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
// }
|
||||
|
|
|
|||
Loading…
Reference in New Issue