Skip to content

Commit 6a8a993

Browse files
committed
Add a whitespace after inserting mentions to allow for continuous typing
1 parent dc01aef commit 6a8a993

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/agent/src/context_picker.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,10 @@ pub(crate) fn insert_crease_for_mention(
756756

757757
let ids = editor.insert_creases(vec![crease.clone()], cx);
758758
editor.fold_creases(vec![crease], false, window, cx);
759+
760+
let end_offset = end.to_offset(&snapshot);
761+
editor.edit([(end_offset..end_offset, " ")], cx);
762+
759763
Some(ids[0])
760764
})
761765
}

0 commit comments

Comments
 (0)