mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
zed: Add OpenStatusPage action (#57316)
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.
This commit is contained in:
parent
786eb24521
commit
216980f671
3 changed files with 7 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue