From ddd47218a763ccd47e5ee3dbf2659254eaa6c377 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 25 Nov 2024 21:54:10 +0100 Subject: [PATCH] Update chat setup actions to include experimental configuration precondition (#234605) --- .../contrib/chat/browser/chatSetup.contribution.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatSetup.contribution.ts b/src/vs/workbench/contrib/chat/browser/chatSetup.contribution.ts index 002f7502437..4452b0b0d2b 100644 --- a/src/vs/workbench/contrib/chat/browser/chatSetup.contribution.ts +++ b/src/vs/workbench/contrib/chat/browser/chatSetup.contribution.ts @@ -753,7 +753,10 @@ class ChatSetupTriggerAction extends Action2 { id: ChatSetupTriggerAction.ID, title: ChatSetupTriggerAction.TITLE, f1: true, - precondition: ChatContextKeys.Setup.installed.negate(), + precondition: ContextKeyExpr.and( + ChatContextKeys.Setup.installed.negate(), + ContextKeyExpr.has('config.chat.experimental.offerSetup') + ), menu: { id: MenuId.ChatCommandCenter, group: 'a_first', @@ -786,7 +789,10 @@ class ChatSetupHideAction extends Action2 { id: ChatSetupHideAction.ID, title: ChatSetupHideAction.TITLE, f1: true, - precondition: ChatContextKeys.Setup.installed.negate(), + precondition: ContextKeyExpr.and( + ChatContextKeys.Setup.installed.negate(), + ContextKeyExpr.has('config.chat.experimental.offerSetup') + ), menu: { id: MenuId.ChatCommandCenter, group: 'z_end',