Skip to content

autoFixOnSave not working when standard is installed globally #373

@ocroz

Description

@ocroz

With: standard.vscode-standard@v2.0.1
On Windows 10 and remote Container in WSL2 with node@v16.13.1 and npm@8.1.2.

I can run standard --fix however I install standard locally or globally.

Now, if I configure "standard.autoFixOnSave": true in my settings.json, it works only if standard is installed locally using;
npm install --save-dev --no-optional standard.

autoFixOnSave should work if standard is installed globally too, using:
npm install --global --no-optional standard.

Then, no need to install standard to all my javascript projects.

I don't know this code, and I'm not confident enough to to submit a pull request to fix this bug. Can anyone help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions