SemanticDiff
SemanticDiff copied to clipboard
Changes caused by automatically inserted semicolon are not highlighted in JS/TS/TSX
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.