From 0e9d955e9bf25383f637bc7d4e3a385f43d30e09 Mon Sep 17 00:00:00 2001 From: Justin Su Date: Fri, 25 Jul 2025 10:53:57 -0400 Subject: [PATCH] Hide Copilot commands when AI functionality is disabled (#35055) Follow-up of https://github.com/zed-industries/zed/pull/34896 Related to https://github.com/zed-industries/zed/issues/31346 cc @rtfeldman Release Notes: - Hide copilot commands when AI functionality is disabled --- crates/agent_ui/src/agent_ui.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/agent_ui/src/agent_ui.rs b/crates/agent_ui/src/agent_ui.rs index cac0f1adace1113dea78537ee000fb951f54d74a..6ae78585decb4797496d60afbfff2ea643030da0 100644 --- a/crates/agent_ui/src/agent_ui.rs +++ b/crates/agent_ui/src/agent_ui.rs @@ -262,7 +262,9 @@ fn update_command_palette_filter(cx: &mut App) { if disable_ai { filter.hide_namespace("agent"); filter.hide_namespace("assistant"); + filter.hide_namespace("copilot"); filter.hide_namespace("zed_predict_onboarding"); + filter.hide_namespace("edit_prediction"); use editor::actions::{ @@ -282,6 +284,7 @@ fn update_command_palette_filter(cx: &mut App) { } else { filter.show_namespace("agent"); filter.show_namespace("assistant"); + filter.show_namespace("copilot"); filter.show_namespace("zed_predict_onboarding"); filter.show_namespace("edit_prediction");