Don't dismiss inline assistant when an error occurs (#2971)
Release Notes: - Fixed a bug that was preventing errors from being shown in the inline assistant when it was still deployed. (preview-only)
This commit is contained in:
commit
c9863d6475
1 changed files with 6 additions and 3 deletions
|
@ -386,10 +386,12 @@ impl AssistantPanel {
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this.finish_inline_assist(inline_assist_id, false, cx);
|
this.finish_inline_assist(inline_assist_id, false, cx);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.finish_inline_assist(inline_assist_id, false, cx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
@ -2837,6 +2839,7 @@ impl InlineAssistant {
|
||||||
cx,
|
cx,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
self.confirmed = false;
|
||||||
editor.set_read_only(false);
|
editor.set_read_only(false);
|
||||||
editor.set_field_editor_style(
|
editor.set_field_editor_style(
|
||||||
Some(Arc::new(|theme| theme.assistant.inline.editor.clone())),
|
Some(Arc::new(|theme| theme.assistant.inline.editor.clone())),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue