Azure / Azure/bicep

auto-fix: grouped auto fixes like Remove all unused parameters

Open
#10,495 3 comments 1 reaction 0 assignees View on GitHub
enhancement good first issue
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
VS Code does not offer a way to perform auto fixes in bulk. If the same problem is reported many times, the user must fix click through and fix each item.

image

**Describe the solution you'd like**
Other static analysis tools offer different types of "fix all" options. For example, the following tooltip would have an additional autofix option, "Remove all unused parameters" just below the existing option.

image

Some autofixes that would benefit from this include:
- Remove unused parameter
- Remove unused variable
- Remove unused existing resource

Here is an example of the pylint auto-fix for removing an unused import.

image

In addition to auto-fixes that fix all instances of the same issue, a super "Apply All Fixes" option would also be great.

Contributor guide

Open the contributing guide

Research direction

The issue names VS Code autofixes and examples such as unused parameters, variables, resources, and imports, but it mentions no repository files, tests, or entry points. Begin by locating the VS Code diagnostic and code-action integration, then determine the scope and expected behavior for grouped fixes and an Apply All Fixes action. Done should include agreed behavior and coverage for the requested fix-all options.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.