markdown_preview: Fix markdown preview not updating on AcceptEditPrediction
(#25772)
Closes #25384 Markdown preview now subscribes to `ExcerptsEdited` event which is emited when edit prediction is accepted. Release Notes: - Fixed markdown preview not updating when edit prediction is accepted.
This commit is contained in:
parent
eb4fad52df
commit
91862ddc9f
1 changed files with 3 additions and 1 deletions
|
@ -317,7 +317,9 @@ impl MarkdownPreviewView {
|
||||||
window,
|
window,
|
||||||
|this, editor, event: &EditorEvent, window, cx| {
|
|this, editor, event: &EditorEvent, window, cx| {
|
||||||
match event {
|
match event {
|
||||||
EditorEvent::Edited { .. } | EditorEvent::DirtyChanged => {
|
EditorEvent::Edited { .. }
|
||||||
|
| EditorEvent::DirtyChanged
|
||||||
|
| EditorEvent::ExcerptsEdited { .. } => {
|
||||||
this.parse_markdown_from_active_editor(true, window, cx);
|
this.parse_markdown_from_active_editor(true, window, cx);
|
||||||
}
|
}
|
||||||
EditorEvent::SelectionsChanged { .. } => {
|
EditorEvent::SelectionsChanged { .. } => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue