mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 04:13:21 +01:00
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:
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,
|
||||
}
|
||||
]
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user