Skip to content

Conversation

@ulugbekna
Copy link
Contributor

Copilot AI review requested due to automatic review settings January 29, 2026 18:25
@ulugbekna ulugbekna enabled auto-merge January 29, 2026 18:25
@ulugbekna ulugbekna self-assigned this Jan 29, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 29, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adopts changes from VS Code core (microsoft/vscode) to fix issue #291596, which relates to ensuring disjoint edits in the string edit rebasing algorithm.

Changes:

  • Added tracking of the last edit's end position (lastEndEx) to ensure the sorted/disjoint invariant is maintained during edit transformation
  • Added validation checks before adding transformed edits to prevent violations of the disjoint/sorted requirement
  • When overlap is not allowed (noOverlap), the function returns undefined if an invariant violation is detected
  • When overlap is allowed, conflicting edits are skipped instead of being added

@ulugbekna ulugbekna added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit c14dc85 Jan 29, 2026
24 of 25 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/dusty-canid branch January 29, 2026 18:52
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.

Error: Edits must be disjoint and sorted

2 participants