Skip to content

Commit

Permalink
Update chat setup actions to include experimental configuration preco…
Browse files Browse the repository at this point in the history
…ndition (#234605)
  • Loading branch information
bpasero authored Nov 25, 2024
1 parent 1733944 commit ddd4721
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/vs/workbench/contrib/chat/browser/chatSetup.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit ddd4721

Please sign in to comment.