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
This commit is contained in:
Justin Su 2025-07-25 10:53:57 -04:00 committed by GitHub
parent 5de544eb4b
commit 0e9d955e9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");