Update chat setup actions to include experimental configuration precondition (#234605)

pull/234612/head
Benjamin Pasero 2024-11-25 21:54:10 +01:00 committed by GitHub
parent 173394484e
commit ddd47218a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -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',