Skip to content

x/tools/gopls: include acceptable codelens, annotation keys in api-json output  #42961

@hyangah

Description

@hyangah

From golang/vscode-go#987 (comment) -
Currently acceptable keys of map[string]* type settings are only documented in free text form in the Doc field.
Would be nice if they are listed in a separate field (maybe EnumKeys accompanied with descriptions?) so our settings generator can use them to set info necessary for autocompletion.

  {
        "Name": "annotations",
        "Type": "map[string]bool",
        "Doc": "annotations suppress various kinds of optimization diagnostics\nthat would be reported by the gc_details command.\n * noNilcheck suppresses display of nilchecks.\n * noEscape suppresses escape choices.\n * noInline suppresses inlining choices.\n * noBounds suppresses bounds checking diagnostics.\n",
        "EnumValues": null,
        "Default": "{}"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions