Skip to content

Commit

Permalink
Require offerSetup set to show CC icon for entitled user (microsoft#2…
Browse files Browse the repository at this point in the history
…35530)

Require offerSetup set to show CC icon for entitled user (microsoft#235518)

Fix microsoft/vscode-copilot#11145
  • Loading branch information
roblourens authored Dec 6, 2024
1 parent db3873d commit 62674c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,11 @@ MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
when: ContextKeyExpr.and(
ContextKeyExpr.has('config.chat.commandCenter.enabled'),
ContextKeyExpr.or(
ContextKeyExpr.and(
ContextKeyExpr.has('config.chat.experimental.offerSetup'),
ChatContextKeys.Setup.entitled,
),
ChatContextKeys.Setup.installed,
ChatContextKeys.Setup.entitled,
ContextKeyExpr.has('config.chat.experimental.offerSetup'),
ChatContextKeys.panelParticipantRegistered
)
),
Expand Down

0 comments on commit 62674c8

Please sign in to comment.