The Diff Editor "Next Change" action does not loop if there is a difference in the new line at the end of the files #215925
Labels
bug
Issue identified by VS Code Team member as probable bug
diff-editor
Diff editor issues
help wanted
Issues identified as good community contribution opportunities
Does this issue occur when all extensions are disabled? Yes
I am able to reproduce this issue on Windows with the latest build as well as on the Insiders Build on the web using https://insiders.vscode.dev/.
Steps to Reproduce
Example:
file1.txt
file2.txt
More Info
The "Previous Change" action works correctly and loops to the last difference when at the first difference. Also, the "Next Change" looping back to the first difference works correctly if the last difference is not a new line.
Why does it matter?
It might seem like a minor issue, but I need to diff large files where often one of the files is missing the new line at the end. If I use "Previous Change" at the beginning of the files, I am taken to the last difference at the end of the files, and I cannot use "Next Change" to go back to the start.
The text was updated successfully, but these errors were encountered: