Sysmagine / SemanticDiff

Community support for SemanticDiff, the programming language aware diff for Visual Studio Code and GitHub.
https://semanticdiff.com
40 stars 0 forks source link

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

Open mmueller2012 opened 4 months ago

mmueller2012 commented 4 months ago

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.