Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Clear error message in case of invalid file #64

Description

@barsan-md

Hi,
This is a great extension but the error cases could be better handled.
Suppose I have a bad html/twig file:
<div>Ok</a>
If you try to format this document, nothing happens. If you open output and select "Prettier" from the dropdown menu, then you see "an error occurred".

A better move could be improve that "an error occurred" message with something like "There is a syntax error, the document could not be formatted." and show an informative window like the usual ones from Visual Studio Code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions