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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user