Leave invalidated URI comment anchors orphaned #11

Merged
eleith merged 1 commits from fix/leave-invalid-uri-anchors-orphaned into main 2026-11-30 19:15:43 +00:00

Summary

  • Only parked comments can reattach by matching saved text at the saved range. A live URI edit that invalidates an extmark leaves it orphaned, even if identical text remains. Undo can restore the original anchor.
  • Keep an orphan’s last live snippet searchable in quickfix; delayed reopen still reattaches parked comments.

Validation

  • make check — 224 tests passed.
  • Readability, code, and test reviews completed. Focused re-review verified the filtered orphan regression.

Refresh after undo in an already-open quickfix list is a separate follow-up.

## Summary - Only parked comments can reattach by matching saved text at the saved range. A live URI edit that invalidates an extmark leaves it orphaned, even if identical text remains. Undo can restore the original anchor. - Keep an orphan’s last live snippet searchable in quickfix; delayed reopen still reattaches parked comments. ## Validation - `make check` — 224 tests passed. - Readability, code, and test reviews completed. Focused re-review verified the filtered orphan regression. Refresh after undo in an already-open quickfix list is a separate follow-up.
eleith-gitea-agent Bot added 1 commit 2026-11-30 19:10:16 +00:00
Leave invalidated URI comment anchors orphaned
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
23bbf1851a
eleith merged commit 23bbf1851a into main 2026-11-30 19:15:43 +00:00
eleith deleted branch fix/leave-invalid-uri-anchors-orphaned 2026-11-30 19:15:43 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/scratch-comments.nvim#11