Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
markdown preview: Update channel notes when other collaborator changes buffer (#10718)
Bennet Bo Fennera202499c9a61
diff --git a/crates/collab_ui/src/channel_view.rs b/crates/collab_ui/src/channel_view.rsindex 59099dd486e..49753ccd6f5 100644--- a/crates/collab_ui/src/channel_view.rs+++ b/crates/collab_ui/src/channel_view.rs@@ -305,6 +305,10 @@ impl ChannelView {});}ChannelBufferEvent::BufferEdited => {+ // Emit the edited event on the editor context so that other views can update it's state (e.g. markdown preview)+ self.editor.update(cx, |_, cx| {+ cx.emit(EditorEvent::Edited);+ });if self.editor.read(cx).is_focused(cx) {self.acknowledge_buffer_version(cx);} else {