From e3c987e2fb25378eecf6426f614f14c1620a6686 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 28 Apr 2025 11:40:24 -0400 Subject: [PATCH] zed: Don't feature-gate `zed: open account settings` action (#29542) This PR removes the feature-gating of the `zed: open account settings` action, as everyone has access to the account page now. Release Notes: - N/A --- Cargo.lock | 1 - crates/zed/Cargo.toml | 1 - crates/zed/src/zed.rs | 25 ------------------------- 3 files changed, 27 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ff76ab5a18..c822baf289 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18486,7 +18486,6 @@ dependencies = [ "collab_ui", "collections", "command_palette", - "command_palette_hooks", "component_preview", "copilot", "dap", diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml index 6b425f0bec..27e6a99269 100644 --- a/crates/zed/Cargo.toml +++ b/crates/zed/Cargo.toml @@ -39,7 +39,6 @@ client.workspace = true collab_ui.workspace = true collections.workspace = true command_palette.workspace = true -command_palette_hooks.workspace = true component_preview.workspace = true copilot.workspace = true dap_adapters.workspace = true diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 928d8fd556..1bd24da82c 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -16,7 +16,6 @@ use assistant_context_editor::AssistantPanelDelegate; use breadcrumbs::Breadcrumbs; use client::zed_urls; use collections::VecDeque; -use command_palette_hooks::CommandPaletteFilter; use debugger_ui::debugger_panel::DebugPanel; use editor::ProposedChangesEditorToolbar; use editor::{Editor, MultiBuffer, scroll::Autoscroll}; @@ -52,7 +51,6 @@ use settings::{ SettingsStore, VIM_KEYMAP_PATH, initial_debug_tasks_content, initial_project_settings_content, initial_tasks_content, update_settings_file, }; -use std::any::TypeId; use std::path::PathBuf; use std::sync::atomic::{self, AtomicBool}; use std::time::Duration; @@ -268,29 +266,6 @@ pub fn initialize_workspace( workspace.focus_handle(cx).focus(window); }) .detach(); - - feature_gate_zed_pro_actions(cx); -} - -fn feature_gate_zed_pro_actions(cx: &mut App) { - let zed_pro_actions = [TypeId::of::()]; - - CommandPaletteFilter::update_global(cx, |filter, _cx| { - filter.hide_action_types(&zed_pro_actions); - }); - - cx.observe_flag::({ - move |is_enabled, cx| { - CommandPaletteFilter::update_global(cx, |filter, _cx| { - if is_enabled { - filter.show_action_types(zed_pro_actions.iter()); - } else { - filter.hide_action_types(&zed_pro_actions); - } - }); - } - }) - .detach(); } #[cfg(any(target_os = "linux", target_os = "freebsd"))]