Clear selection when deploying inline assistant
This commit is contained in:
parent
7c5200e757
commit
c8e5c3963b
2 changed files with 3 additions and 4 deletions
|
@ -276,6 +276,9 @@ impl AssistantPanel {
|
||||||
assistant
|
assistant
|
||||||
});
|
});
|
||||||
let block_id = editor.update(cx, |editor, cx| {
|
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>(
|
editor.highlight_background::<Self>(
|
||||||
vec![range.clone()],
|
vec![range.clone()],
|
||||||
|theme| theme.assistant.inline.pending_edit_background,
|
|theme| theme.assistant.inline.pending_edit_background,
|
||||||
|
|
4
todo.md
4
todo.md
|
@ -14,12 +14,8 @@
|
||||||
- [ ] Selection is cleared and cursor is moved to prompt input
|
- [ ] Selection is cleared and cursor is moved to prompt input
|
||||||
- [ ] Ability to highlight background multiple times for the same type
|
- [ ] Ability to highlight background multiple times for the same type
|
||||||
- [x] Basic Styling
|
- [x] Basic Styling
|
||||||
- [ ] Match lowest indentation level of selected lines when inserting an inline assist
|
|
||||||
- [ ] Look into why insert prompts have a weird indentation sometimes
|
- [ ] Look into why insert prompts have a weird indentation sometimes
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- Multicursor
|
- Multicursor
|
||||||
- Run the same prompt for every selection in parallel
|
- Run the same prompt for every selection in parallel
|
||||||
- Position the prompt editor at the newest cursor
|
- Position the prompt editor at the newest cursor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue