Context key to support when no canDelegate providers available (#282105)

* Context key to support when no canDelegate providers available (https://github.com/microsoft/vscode-copilot-chat/pull/2500)

* linting
This commit is contained in:
Josh Spicer
2025-12-08 19:00:33 -08:00
committed by GitHub
parent 3215e1ba0a
commit e605ba270d
3 changed files with 21 additions and 2 deletions

View File

@@ -60,12 +60,16 @@ export class ContinueChatInSessionAction extends Action2 {
ChatContextKeys.enabled,
ChatContextKeys.requestInProgress.negate(),
ChatContextKeys.remoteJobCreating.negate(),
ChatContextKeys.hasCanDelegateProviders,
),
menu: [{
id: MenuId.ChatExecute,
group: 'navigation',
order: 3.4,
when: ChatContextKeys.lockedToCodingAgent.negate(),
when: ContextKeyExpr.and(
ChatContextKeys.lockedToCodingAgent.negate(),
ChatContextKeys.hasCanDelegateProviders,
),
},
{
id: MenuId.EditorContent,
@@ -75,6 +79,7 @@ export class ContinueChatInSessionAction extends Action2 {
ContextKeyExpr.equals(ResourceContextKey.LangId.key, PROMPT_LANGUAGE_ID),
ContextKeyExpr.notEquals(chatEditingWidgetFileStateContextKey.key, ModifiedFileEntryState.Modified),
ctxHasEditorModification.negate(),
ChatContextKeys.hasCanDelegateProviders,
),
}
]