markdown preview: Refresh preview when file is changed outside of the editor (#20175)
Closes #20091 Release Notes: - Fixed an issue where the markdown preview would not update when a markdown file was changed outside of the editor
This commit is contained in:
parent
f0aeab7d00
commit
15e7b67559
1 changed files with 1 additions and 1 deletions
|
@ -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 { .. } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue