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

Changes caused by automatically inserted semicolon are not highlighted in JS/TS/TSX #55

Open
mmueller2012 opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mmueller2012
Copy link
Contributor

SemanticDiff doesn't indicate any changes in JavaScript/TypeScript/TSX if the only difference is an automatically inserted semicolon.

return 1

vs.

return
1

The second example is parsed as:

return;
1;

Since we can't highlight any non-existing semicolons, we could highlight the added line break in the same way as we currently do for strings.

Thanks @ElianCordoba for reporting.

@mmueller2012 mmueller2012 added the bug Something isn't working label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant