agent: Add a whitespace after inserting @-mention to allow for continuous typing (#30381)

Release Notes:

- agent: Added a space after @-mentioning something in the message
editor to allow for continuous typing.

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
This commit is contained in:
Patrick Leibersperger
2025-05-26 09:55:19 -03:00
committed by GitHub
co-authored by Peter Tripp Danilo Leal
parent e78b726ed8
commit 7497deff7a
2 changed files with 25 additions and 21 deletions
+1
View File
@@ -766,6 +766,7 @@ pub(crate) fn insert_crease_for_mention(
let ids = editor.insert_creases(vec![crease.clone()], cx);
editor.fold_creases(vec![crease], false, window, cx);
Some(ids[0])
})
}