Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix added lines sorting in autoedits #6155

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

hitesh-1997
Copy link
Contributor

Fix the lines sorting, the default method converts the numbers to string for sorting which was messing up the behaviour of skipping suggestions

Test plan

CI test case

if (addedLines.length === 0) {
return false
}
addedLines = addedLines.sort((a, b) => a - b)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the code to utils.
Only change is line where added .sort((a, b) => a - b)

@hitesh-1997 hitesh-1997 force-pushed the hitesh/fix-autoedit-line-sorting branch from 18ed780 to 8be4d8f Compare November 20, 2024 08:07
@hitesh-1997 hitesh-1997 enabled auto-merge (squash) November 20, 2024 08:52
@hitesh-1997 hitesh-1997 merged commit 0c76a08 into main Nov 20, 2024
19 of 20 checks passed
@hitesh-1997 hitesh-1997 deleted the hitesh/fix-autoedit-line-sorting branch November 20, 2024 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants