Skip to content

Commit 56e3327

Browse files
authored
Add delegate button to secondary menu (microsoft#264037)
add delegate button to secondary menu
1 parent 530d1dd commit 56e3327

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,20 @@ export class CreateRemoteAgentJobAction extends Action2 {
520520
icon: Codicon.sync,
521521
tooltip: localize('remoteJobCreating', "Delegating to Coding Agent"),
522522
},
523-
menu: {
524-
id: MenuId.ChatExecute,
525-
group: 'navigation',
526-
order: 3.4,
527-
// TODO(jospicer): or hasChatSessionContributions
528-
when: ContextKeyExpr.and(ChatContextKeys.hasRemoteCodingAgent, ChatContextKeys.lockedToCodingAgent.negate()),
529-
}
523+
menu: [
524+
{
525+
id: MenuId.ChatExecute,
526+
group: 'navigation',
527+
order: 3.4,
528+
when: ContextKeyExpr.and(ChatContextKeys.hasRemoteCodingAgent, ChatContextKeys.lockedToCodingAgent.negate()),
529+
},
530+
{
531+
id: MenuId.ChatExecuteSecondary,
532+
group: 'group_3',
533+
order: 1,
534+
when: ContextKeyExpr.and(ChatContextKeys.hasRemoteCodingAgent, ChatContextKeys.lockedToCodingAgent.negate()),
535+
}
536+
]
530537
});
531538
}
532539

0 commit comments

Comments
 (0)