assistant: Run /docs when completing a suggested (unindexed) package (#16218)

This PR is a follow-up to
https://github.com/zed-industries/zed/pull/16216, as we want to run the
`/docs` command when completing a suggested package that has yet to be
indexed.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-08-14 10:29:03 -04:00 committed by GitHub
parent 8fe2de1737
commit f8a72b5d0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,7 +233,7 @@ impl SlashCommand for DocsSlashCommand {
.map(|package_name| ArgumentCompletion {
label: format!("{package_name} (unindexed)").into(),
new_text: format!("{package_name}"),
run_command: false,
run_command: true,
})
.collect::<Vec<_>>();
items.extend(workspace_crate_completions);