Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
markdown preview: Refresh preview when file is changed outside of the editor (#20175)
Bennet Bo Fenner15e7b6755965
diff --git a/crates/markdown_preview/src/markdown_preview_view.rs b/crates/markdown_preview/src/markdown_preview_view.rsindex 7e8cc42dcf7..07fbd94b293 100644--- a/crates/markdown_preview/src/markdown_preview_view.rs+++ b/crates/markdown_preview/src/markdown_preview_view.rs@@ -297,7 +297,7 @@ impl MarkdownPreviewView {let subscription = cx.subscribe(&editor, |this, editor, event: &EditorEvent, cx| {match event {- EditorEvent::Edited { .. } => {+ EditorEvent::Edited { .. } | EditorEvent::DirtyChanged => {this.parse_markdown_from_active_editor(true, cx);}EditorEvent::SelectionsChanged { .. } => {