From 216980f6719391f7466801c10f5c2cd53ec07899 Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Mon, 25 May 2026 16:41:33 +0200 Subject: [PATCH] zed: Add `OpenStatusPage` action (#57316) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following up on our recent extension outage, this PR adds an action to quickly visit our status page (which with the help of @\gaauwe was recently updated to a more up to date design 🎉 ). While already invokable through the command palette, we can later use this to also add buttons where appropriate for a quick lookup of our current status. Release Notes: - Added the `zed::OpenStatusPage` action to be able to easily visit the Zed status page. --- crates/onboarding/src/onboarding.rs | 1 - crates/zed/src/zed.rs | 7 +++++-- crates/zed_actions/src/lib.rs | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/onboarding/src/onboarding.rs b/crates/onboarding/src/onboarding.rs index 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.rs index 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); 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.rs index 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.