daidodo / format-imports-vscode

Format imports and exports for JavaScript and TypeScript in VS Code.
https://marketplace.visualstudio.com/items?itemName=dozerg.tsimportsorter
MIT License
62 stars 5 forks source link

Autoformat is not working on save (vs code 1.65.2, extension v7.4.12) #66

Closed fedulovivan closed 2 years ago

fedulovivan commented 2 years ago

Noticed that after recent update of vscode and/or(?) extension there is a problem with triggering autoformat upon saving file. (!) Note that formatting is working as expected if triggered manualy (Cmd + Shift + P -> Sort Imports/Exports)

mkholt commented 2 years ago

I am seeing the exact same behaviour. Tried adding the autoFormat setting to settings.json manually, that has no effect. Works fine on manual triggering of the extension.

fedulovivan commented 2 years ago

@mkholt, yes I've also tried to set autoFormat explicitly - it doesn't work as well.

daidodo commented 2 years ago

Thanks for the feedback!

Hopefully it should be fixed in v7.4.13. Please tell me if you still have issues.

mkholt commented 2 years ago

Can confirm that it now auto-formats on save after updating to 7.4.13