Don't include prompt titles / "Default Prompt:" in slash command output (#13139)
This only includes a newline to ensure there's always something to fold. Release Notes: - N/A
This commit is contained in:
parent
d5735dab9a
commit
78091fa91e
2 changed files with 9 additions and 2 deletions
|
@ -69,7 +69,10 @@ impl SlashCommand for PromptSlashCommand {
|
|||
}
|
||||
});
|
||||
cx.foreground_executor().spawn(async move {
|
||||
let prompt = prompt.await?;
|
||||
let mut prompt = prompt.await?;
|
||||
if prompt.is_empty() {
|
||||
prompt.push('\n');
|
||||
}
|
||||
let range = 0..prompt.len();
|
||||
Ok(SlashCommandOutput {
|
||||
text: prompt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue