Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
zed: Don't feature-gate `zed: open account settings` action (#29542)
Marshall Bowerse3c987e2fb25
diff --git a/Cargo.lock b/Cargo.lockindex ff76ab5a187..c822baf289f 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.tomlindex 6b425f0bec8..27e6a99269b 100644--- a/crates/zed/Cargo.toml+++ b/crates/zed/Cargo.toml@@ -39,7 +39,6 @@ client.workspace = truecollab_ui.workspace = truecollections.workspace = truecommand_palette.workspace = true-command_palette_hooks.workspace = truecomponent_preview.workspace = truecopilot.workspace = truedap_adapters.workspace = truediff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex 928d8fd5564..1bd24da82cc 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::<OpenAccountSettings>()];-- CommandPaletteFilter::update_global(cx, |filter, _cx| {- filter.hide_action_types(&zed_pro_actions);- });-- cx.observe_flag::<feature_flags::ZedProFeatureFlag, _>({- 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"))]