Rename DiagnosticsCommand to DiagnosticsSlashCommand (#13795)

This PR renames the `DiagnosticsCommand` to `DiagnosticsSlashCommand` to
match the rest of our slash commands.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-03 17:17:02 -04:00 committed by GitHub
parent 75d2e04a1d
commit 05af87e416
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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()
}