Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zed: Add `OpenStatusPage` action (#57316)
Finn Evers216980f67193
diff --git a/crates/onboarding/src/onboarding.rs b/crates/onboarding/src/onboarding.rsindex 652febbda49..3f1509b922e 100644--- a/crates/onboarding/src/onboarding.rs+++ b/crates/onboarding/src/onboarding.rs@@ -54,7 +54,6 @@ pub struct ImportCursorSettings {}pub const FIRST_OPEN: &str = "first_open";-pub const DOCS_URL: &str = "https://zed.dev/docs/";actions!(onboarding,diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex 6d2611367df..3be90dbc039 100644--- a/crates/zed/src/zed.rs+++ b/crates/zed/src/zed.rs@@ -49,7 +49,6 @@ use language_tools::lsp_log_view::LspLogToolbarItemView;use markdown::{Markdown, MarkdownElement, MarkdownFont, MarkdownStyle};use migrate::{MigrationBanner, MigrationEvent, MigrationNotification, MigrationType};use migrator::migrate_keymap;-use onboarding::DOCS_URL;use onboarding::multibuffer_hint::MultibufferHint;pub use open_listener::*;use outline_panel::OutlinePanel;@@ -100,9 +99,12 @@ use workspace::{use workspace::{Pane, notifications::DetachAndPromptErr};use zed_actions::{About, OpenAccountSettings, OpenBrowser, OpenDocs, OpenServerSettings, OpenSettingsFile,- OpenZedUrl, Quit,+ OpenStatusPage, OpenZedUrl, Quit,};+const DOCS_URL: &str = "https://zed.dev/docs/";+const STATUS_URL: &str = "https://status.zed.dev";+pub struct CrashHandler(pub Arc<crashes::Client>);impl gpui::Global for CrashHandler {}@@ -860,6 +862,7 @@ fn register_actions() {workspace.register_action(|_, _: &OpenDocs, _, cx| cx.open_url(DOCS_URL))+ .register_action(|_, _: &OpenStatusPage, _, cx| cx.open_url(STATUS_URL)).register_action(|workspace: &mut Workspace,_: &input_latency_ui::DumpInputLatencyHistogram,diff --git a/crates/zed_actions/src/lib.rs b/crates/zed_actions/src/lib.rsindex 1c6bcec766e..ce1a1458dbe 100644--- a/crates/zed_actions/src/lib.rs+++ b/crates/zed_actions/src/lib.rs@@ -67,6 +67,8 @@ actions!(OpenDocs,/// Views open source licenses.OpenLicenses,+ /// Opens the Zed status page.+ OpenStatusPage,/// Opens the telemetry log.OpenTelemetryLog,/// Opens the performance profiler.