HookyQR / VSCodeBeautify

Enable js-beautify (https://github.com/beautify-web/js-beautify) in VS Code
MIT License
606 stars 180 forks source link

Beautify JS version out of date #382

Open moscoso opened 3 years ago

moscoso commented 3 years ago

I am experiencing issues in regards to Beautify extension breaking my code with syntax errors when there are optional chaining operators (?.) https://github.com/beautify-web/js-beautify/issues/1727

This was fixed with js-beautify version 1.11

Xavier9896 commented 3 years ago

Is this project not being maintained?This is the only plugin I'm used to right now.

eikaramba commented 3 years ago

came here, saw same thing that this plugin is out of date. too sad, using prettier now

adrian-cg commented 3 years ago

As a workaround I went into ~/.vscode/extensions/hookyqr.beautify-1.5.0 and installed the newest version of js-beautify there.

npm uninstall js-beautify -s
npm install js-beautify -s

Reload vs code window and the extension should use the latest version. I guess you could manually edit the package.json version if you only want to go to 1.11.

Not ideal but it works. 🤷‍♂️