From 05af87e416c560ae4bfce76795ae18b232ba5cf6 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 3 Jul 2024 17:17:02 -0400 Subject: [PATCH] Rename `DiagnosticsCommand` to `DiagnosticsSlashCommand` (#13795) This PR renames the `DiagnosticsCommand` to `DiagnosticsSlashCommand` to match the rest of our slash commands. Release Notes: - N/A --- crates/assistant/src/assistant.rs | 2 +- crates/assistant/src/slash_command/diagnostics_command.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/assistant/src/assistant.rs b/crates/assistant/src/assistant.rs index e97afd2c8d..82defbbd6f 100644 --- a/crates/assistant/src/assistant.rs +++ b/crates/assistant/src/assistant.rs @@ -323,7 +323,7 @@ fn register_slash_commands(cx: &mut AppContext) { slash_command_registry.register_command(default_command::DefaultSlashCommand, true); slash_command_registry.register_command(term_command::TermSlashCommand, true); slash_command_registry.register_command(now_command::NowSlashCommand, true); - slash_command_registry.register_command(diagnostics_command::DiagnosticsCommand, true); + slash_command_registry.register_command(diagnostics_command::DiagnosticsSlashCommand, true); slash_command_registry.register_command(docs_command::DocsSlashCommand, true); slash_command_registry.register_command(fetch_command::FetchSlashCommand, false); } diff --git a/crates/assistant/src/slash_command/diagnostics_command.rs b/crates/assistant/src/slash_command/diagnostics_command.rs index 5ea47a81d1..ab01b3c803 100644 --- a/crates/assistant/src/slash_command/diagnostics_command.rs +++ b/crates/assistant/src/slash_command/diagnostics_command.rs @@ -20,9 +20,9 @@ use util::paths::PathMatcher; use util::ResultExt; use workspace::Workspace; -pub(crate) struct DiagnosticsCommand; +pub(crate) struct DiagnosticsSlashCommand; -impl DiagnosticsCommand { +impl DiagnosticsSlashCommand { fn search_paths( &self, query: String, @@ -81,7 +81,7 @@ impl DiagnosticsCommand { } } -impl SlashCommand for DiagnosticsCommand { +impl SlashCommand for DiagnosticsSlashCommand { fn name(&self) -> String { "diagnostics".into() }