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 authored and GitHub committed 2024-08-14 10:29:03 -04:00
1 parent 8e83d28956
commit de31a614e7
1 file changed
+1 -1
@@ -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);