golang/go

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

Open

#44,814 opened on 2021年3月5日

GitHub で見る
 (0 comments) (1 reaction) (0 assignees)Go (19,008 forks)batch import
FeatureRequestToolsgoplshelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド