Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message for invalid JSON remains even after fixing and revalidating JSON #173

Closed
khorn opened this issue Aug 5, 2022 · 1 comment
Closed

Comments

@khorn
Copy link

khorn commented Aug 5, 2022

Consider the following (invalid, it's missing a comma) JSON:

{
    "key1": "value1"
    "key2": "value2"
}

If I use PrettyJson to validate this JSON (using the "Pretty JSON: Validate" command) it will of course fail, and give a message in the status bar explaining why, like so:

image

If I then fix the offending JSON, making it valid, and then rerun the "Pretty JSON: Validate", PrettyJson correctly judges it valid, but the message about it being invalid in the status bar remains. Example:

image

This message persists until one of the following happens:

  • SublimeText is restarted
  • the "Pretty JSON: Validate" command is run again, and finds that the JSON being evaluated is invalid in some different way, in which case it will be overwritten with the new invalid message

When reporting JSON as valid, PrettyJson should remove the old message about invalid JSON.

@TerminalFi
Copy link
Collaborator

Will fix in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants