Skip to content

x/tools/gopls: add an option to suppress or reduce verbosity of diagnostics for go.mod #51262

@esprehn

Description

@esprehn

We have a project that intentionally has deps in the go.mod that appear unused (ex. because of generated code at build time through bazel). VSCode shows a long list of the below problems.

I've tried the suggestion here:
microsoft/vscode-go#3181

   "[go.mod]": {
        "editor.codeLens": false
    }

and also:

    "ui.codelenses": {
      "gc_details": false,
      "regenerate_cgo": false,
      "generate": false,
      "test": false,
      "tidy": false,
      "upgrade_dependency": false,
      "vendor": false,
    },

but it still shows warnings/errors:

Screen Shot 2022-02-10 at 4 50 25 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/workspaceIssues related to support for modules or multi-module workspaces.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions