Clear selection when deploying inline assistant

This commit is contained in:
Antonio Scandurra 2023-08-26 09:51:47 +02:00
parent 7c5200e757
commit c8e5c3963b
2 changed files with 3 additions and 4 deletions

View file

@ -276,6 +276,9 @@ impl AssistantPanel {
assistant
});
let block_id = editor.update(cx, |editor, cx| {
editor.change_selections(None, cx, |selections| {
selections.select_anchor_ranges([selection.head()..selection.head()])
});
editor.highlight_background::<Self>(
vec![range.clone()],
|theme| theme.assistant.inline.pending_edit_background,