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.
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 useconsole.warn
to warn the user of compilation errors too, instead of just silently failing.