Diff algorithm detects two consecutive added lines as two changes (instead of one) #119051
Labels
bug
Issue identified by VS Code Team member as probable bug
diff-editor
Diff editor issues
insiders-released
Patch has been released in VS Code Insiders
verified
Verification succeeded
Milestone
Steps to Reproduce:
bug1.txt
:bug2.txt
:Result:
This diff is not wrong, but it's not minimal. The first two changes could be merged into one, just like
diff
does it:Interestingly, removing the final line break from
bug2.txt
prevents the issue:Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: