SemanticDiff icon indicating copy to clipboard operation
SemanticDiff copied to clipboard

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

Open mmueller2012 opened this issue 4 months ago • 0 comments

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 avatar Mar 19 '24 03:03 mmueller2012