Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Way to disable go.mod codelens #3181

Closed
mbertschler opened this issue Apr 16, 2020 · 3 comments
Closed

Way to disable go.mod codelens #3181

mbertschler opened this issue Apr 16, 2020 · 3 comments
Labels
upstream-gopls Issue for gopls

Comments

@mbertschler
Copy link

My go.mod file shows code lens lines that look like Upgrade dependency to ....

I would like to have the option to remove them, maybe with the same config that can remove the other codelens features:

    "go.enableCodeLens": {
        "references": false,
        "runtest": false,
        "go.mod": false,
    },
@hyangah
Copy link
Contributor

hyangah commented Apr 16, 2020

Try

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

For go files, use "[go]". Currently, there is no way to fine-control code lens behavior yet.

@hyangah hyangah added the upstream-gopls Issue for gopls label Apr 16, 2020
@hyangah
Copy link
Contributor

hyangah commented Apr 16, 2020

Let's follow up in golang/go#38339 (specific to the current go.mod codelens behavior) and golang/go#36787 (which will require changes in vscode-go side to use codelens info from gopls instead of its custom codelens)

@stamblerre

@hyangah hyangah closed this as completed Apr 16, 2020
@mbertschler
Copy link
Author

@hyangah thanks for that quick suggestion, does exactly what I want!

@vscodebot vscodebot bot locked and limited conversation to collaborators May 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream-gopls Issue for gopls
Projects
None yet
Development

No branches or pull requests

2 participants