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

give use more meaningful error message when parse package.json error #76

Closed tjx666 closed 2 years ago

tjx666 commented 2 years ago

Notify user parsing package.json parrse error would be more useful. Maybe we need https://github.com/daidodo/format-imports throw error with error code to identify the exception reason.

When I have merge conflicts in package.json:

@daidodo

image

tjx666 commented 2 years ago

Or provide user a setting to disable error message. Just log the error message to output channel. @daidodo

daidodo commented 2 years ago

Thanks for the feedback!

I've suppressed package JSON parsing error in v7.4.20.