Skip to content

Bug: JSON AST view is not updated when the source changes after an error #541

Description

@fasttime

What browser did you use to see problem?

Chrome and Firefox

What did you do?

In Code Explorer I chose the JavaScript language and switched to JSON AST view.

In the source panel on the left, I entered a bigint, e.g. 2n. Then I deleted it again.

Image

The panel on the right shows an error because the AST is not serializable, which is fine, but the error remains even if the source is modified to remove the unserializable bigint.

Example

What did you expect to happen?

The error in the right panel should disappear when the source is edited and the AST becomes serializable.

What actually happened?

The error remains even when the source is changed.

Participation

  • I am willing to submit a pull request for this issue.

AI acknowledgment

  • I did not use AI to generate this issue report.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

Additional comments

No response

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrepro:yesIssues with a reproducible example

Type

Projects

  • Status
    Feedback Needed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions