atom-mprettier
atom-mprettier copied to clipboard
Dismiss error messages when formatting succeeds
Currently, if you save the file when there’s a syntax error in it, mprettier opens a notification that points out the error. However, when saving the document multiple times, the notification duplicates and when the error is fixed, the messages still remain. Would it be possible to keep a reference to the notification and call .dismiss() when formatting again so the notifications don’t pile up?