Skip to content

vscode: Allow for more aggressive fixes in quick fix actions #22174

@jeski-bright

Description

@jeski-bright

The plugin allows for control over the Fix Kind applied by oxc, but this controls both the automatic code action (on save for example) as well as the Quick actions (cmd + .). I would like to be able to control these 2 separately (or - allow the cmd + . to just apply all actions).

Currently if I add a console.log in my app (during debugging) I get it removed after save by default - I need to set safe-fix as the fix level for this to go away. However, at this point the plugin doesn't even suggest removing the statement in the quick actions. This affects also other, extremely useful rules, like the react hooks exhaustive deps (which I cannot apply as a quick action at this point).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-editorArea - Editor and Language ServerA-linterArea - Linter

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions