From 0b0cd9005e3f40865cd37ce32a4938570755ba16 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Tue, 10 Sep 2024 11:58:16 -0400 Subject: [PATCH] assistant: Fix file slash command not allowing to select multiple files when pressing tab (#17652) Release Notes: - Allow to add multiple files in a single `/file` command when pressing tab --- crates/assistant/src/slash_command/file_command.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/assistant/src/slash_command/file_command.rs b/crates/assistant/src/slash_command/file_command.rs index c253e5b91c02977ccf6bc4aa6cc3eac564ab289a..e5d8f1b2d6bbb210bb952dc48fd155f851f7487c 100644 --- a/crates/assistant/src/slash_command/file_command.rs +++ b/crates/assistant/src/slash_command/file_command.rs @@ -164,11 +164,7 @@ impl SlashCommand for FileSlashCommand { Some(ArgumentCompletion { label, new_text: text, - after_completion: if path_match.is_dir { - AfterCompletion::Compose - } else { - AfterCompletion::Run - }, + after_completion: AfterCompletion::Compose, replace_previous_arguments: false, }) })