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: 'fix all' code action for selected range #44814

Open
hyangah opened this issue Mar 5, 2021 · 0 comments
Open

x/tools/gopls: 'fix all' code action for selected range #44814

hyangah opened this issue Mar 5, 2021 · 0 comments
Labels
FeatureRequest gopls Issues related to the Go language server, gopls. help wanted Tools This label describes issues relating to any tools in the x/tools repository.

Comments

@hyangah
Copy link
Contributor

hyangah commented Mar 5, 2021

This is a feature request. When working on typescript projects, I liked the 'fix all' code actions presented with other trivial code actions.

For example, consider this case:

Screen Shot 2021-03-05 at 11 57 02 AM

These are trivial ones and these quick fixes can be applicable on save if I had configured

        "editor.codeActionsOnSave": {
            "source.fixAll": true
        }

But, would be nice if I could select a region and trigger fix of all errors in the selected region.
Or alternatively, like typescript or eslint extensions, present the fixAll (for the entire file) option using code action.

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Mar 5, 2021
@gopherbot gopherbot added this to the Unreleased milestone Mar 5, 2021
@stamblerre stamblerre modified the milestones: Unreleased, gopls/v1.0.0 Mar 5, 2021
@stamblerre stamblerre added this to To Do in gopls on-deck Mar 11, 2021
@stamblerre stamblerre removed this from To Do in gopls on-deck Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest gopls Issues related to the Go language server, gopls. help wanted Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants