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
This commit is contained in:
Bennet Bo Fenner 2024-09-10 11:58:16 -04:00 committed by GitHub
parent 5f61e3140f
commit 0b0cd9005e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
})
})