Crashes on syntax errors
hawkins opened this issue · 1 comments
hawkins commented
Currently, prettier.format
returns an error when invalid syntax is parsed. This crashes the plugin.
Fixing this should be as simple as adding a try-catch around that block.
It would be great if we could optionally specify a flag, such as warn: True
that will use console.warn
to warn the user of compilation errors too, instead of just silently failing.
hawkins commented
Looks like this is indeed fixed now. Sweet! 🥇 @esganzerla