-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit: Strip trailing CR characters when computing diff (#5069)
## Description Fixes an issue where we would generate incorrect diffs due to trailing CR characters in the users' selected code, and this not being matched by the response from the LLM. ## Test plan 1. Enable end of line sequence CRLF (e.g. in VS Code) 2. Start an edit 3. Check that the diff only shows what changed <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. -->
- Loading branch information
Showing
4 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters