Fix diagnostics on save or on format #12960
Labels
A-diagnostics
diagnostics / error reporting
C-feature
Category: feature request
S-actionable
Someone could pick this issue up and work on it right now
There are some diagnostics which are safe to fix everywhere (like
field-shorthand
oruseless-braces
) and there are some diagnostics which you may not mean to fix some times, but even then, you can recover the previous state easily (unused-imports
are in this category IMO, you can easily import removed things later withauto-import
assist).This issue suggests adding a list of diagnostics, empty by default, which allows r-a to fix them on save (or on format, or on another action, or configurable between them) automatically. We may still not fix all instances of diagnostics (for example, if user puts
auto-import
in that list, we may not fix those with multiple candidates). I think adding this config helps in development speed.The text was updated successfully, but these errors were encountered: