editor: Merge additional completion edits into primary undo transaction (#52699)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #45986

Release Notes:

- Fixed postfix snippets now creating 1 `undo` actions instead of 2.
0640e550b8HuaGu-Dragon committed on 3/30/2026, 11:13:07 AM· committed by GitHubparent2b4c217
2 files changedLine totals unavailable