Prevent remote edits from triggering edit predictions when collaborating (#51196)

BufferEvent::Edited had no way to distinguish local edits from remote
(collaboration) edits. This caused edit prediction behavior to fire on
the guest's editor when the host made document changes.

Release Notes:

- Fixed edit predictions triggering on collaboration guests when the
host edits the document.

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
This commit is contained in:
Lukas WirthandBen Kunkle authored and GitHub committed 2026-03-10 15:23:49 +00:00
1 parent eae21de630
commit b21f4a3deb
17 files changed
+72 -39

No files matched your search

@@ -171,12 +171,15 @@ fn test_excerpt_boundaries_and_clipping(cx: &mut App) {
&[
Event::Edited {
edited_buffer: None,
is_local: true,
},
Event::Edited {
edited_buffer: None,
is_local: true,
},
Event::Edited {
edited_buffer: None,
is_local: true,
}
]
);