zed/crates/vim/src
HuaGu-Dragon 75f0940a58
Vim/Helix: Prevent undo grouping when any LSP completion (#53980)
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

## Summary  
Prevent undo grouping when an LSP completion includes extra edits so
that the completion and its extra edits are applied and reverted
atomically.

## Problem
When applying an LSP completion that also applies extra edits, the
editor may merge that completion into the surrounding undo group or
split the transaction while waiting for edits, causing undo to leave the
buffer in an inconsistent state.

## Solution
* Always block undo merging for completions

Closes #ISSUE

Release Notes:

- Prevent undo grouping when any LSP completion
2026-05-14 06:39:33 +00:00
..
digraph
helix vim: Fix panic when pasting in read-only editor (#55608) 2026-05-04 10:17:14 +00:00
normal Fix macOS find query seeding (#56681) 2026-05-13 23:35:10 +00:00
test editor: Fix soft-wrap in auto-height editors (#54051) 2026-04-18 00:55:44 +02:00
change_list.rs editor: Remove buffer and display map fields from SelectionsCollection (#42175) 2025-11-07 11:21:14 +01:00
command.rs Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
digraph.rs vim: Downgrade user config error from panic to log (#42070) 2025-11-06 08:37:04 +00:00
helix.rs vim: Add Helix jump-to-word support to Vim mode (#55492) 2026-05-12 21:46:18 +00:00
indent.rs Reduce amount of monomorphizations from FnMut closures (#49453) 2026-02-18 12:00:02 +01:00
insert.rs Reduce amount of monomorphizations from FnMut closures (#49453) 2026-02-18 12:00:02 +01:00
mode_indicator.rs Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
motion.rs vim: Add C preprocessor check in matching function (#55515) 2026-05-07 04:25:42 +00:00
normal.rs Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
object.rs vim: Change surrounds with Mini{Quotes,Brackets} and AnyQuotes (#51067) 2026-05-09 04:10:54 +00:00
replace.rs Improve clipboard support on Windows (#51807) 2026-03-18 22:09:26 -04:00
rewrap.rs editor: Extract rewrap and config out of editor.rs (#55855) 2026-05-06 11:57:36 +00:00
state.rs vim: Add Helix jump-to-word support to Vim mode (#55492) 2026-05-12 21:46:18 +00:00
surrounds.rs vim: Change surrounds with Mini{Quotes,Brackets} and AnyQuotes (#51067) 2026-05-09 04:10:54 +00:00
test.rs Vim/Helix: Prevent undo grouping when any LSP completion (#53980) 2026-05-14 06:39:33 +00:00
vim.rs vim: Add Helix jump-to-word support to Vim mode (#55492) 2026-05-12 21:46:18 +00:00
visual.rs vim/helix: Use grapheme count on replace (#51776) 2026-03-25 23:19:55 +00:00