golang/go

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

Open

#44,814 创建于 2021年3月5日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)Go (19,008 fork)batch import
FeatureRequestToolsgoplshelp wanted

仓库指标

Star
 (133,883 star)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南