From f8a72b5d0a691b819225c77f7cdb6867f694fd22 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 14 Aug 2024 10:29:03 -0400 Subject: [PATCH] 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 --- crates/assistant/src/slash_command/docs_command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant/src/slash_command/docs_command.rs b/crates/assistant/src/slash_command/docs_command.rs index dce36c67be..4279487664 100644 --- a/crates/assistant/src/slash_command/docs_command.rs +++ b/crates/assistant/src/slash_command/docs_command.rs @@ -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::>(); items.extend(workspace_crate_completions);