mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
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:
@@ -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,
|
||||
),
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user