Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls: allow to clear upgrade check diagnostics #54065

Open
hyangah opened this issue Jul 26, 2022 · 0 comments
Open

x/tools/gopls: allow to clear upgrade check diagnostics #54065

hyangah opened this issue Jul 26, 2022 · 0 comments
Labels
FeatureRequest gopls/analysis gopls Tools
Milestone

Comments

@hyangah
Copy link
Contributor

hyangah commented Jul 26, 2022

"Check for upgrades", "Upgrade transitive dependencies", "Upgrade direct dependencies" codelenses in go.mod file provide convenient ways of checking available upgrades from time to time.

Screen Shot 2022-07-26 at 10 50 40 AM

However, often times, I want to stay with the current dependencies after selectively upgrading a couple of chosen modules.
Currently there is no convenient way to hide the diagnostics produced as a result of running one of these code lenses without upgrading the modules. (except restarting the language server)

It would be nice if there is a way to clear these diagnostics.
One way to do it is to use the approach gc_details codelens uses (toggle).
Another way is to provide a separate codelens that disposes all the upgrade check diagnostics. (One concern is currently, there are too many codelenses :-))

@gopherbot gopherbot added Tools gopls labels Jul 26, 2022
@gopherbot gopherbot added this to the Unreleased milestone Jul 26, 2022
@hyangah hyangah modified the milestones: Unreleased, gopls/later Jul 26, 2022
@hyangah hyangah added FeatureRequest gopls/analysis labels Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest gopls/analysis gopls Tools
Projects
None yet
Development

No branches or pull requests

2 participants