@codingame/monaco-vscode-katex-common 32.0.2 → 33.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/platform/agentHost/common/claudeSessionConfigKeys.d.ts +30 -0
- package/vscode/src/vs/platform/agentHost/common/claudeSessionConfigKeys.js +8 -0
- package/vscode/src/vs/platform/agentHost/common/sessionConfigKeys.d.ts +32 -0
- package/vscode/src/vs/platform/agentHost/common/sessionConfigKeys.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +56 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.contribution.js +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostChatInputPicker.js +502 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostGenericConfigChips.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/media/agentHostChatInputPicker.css +153 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +52 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/chatToolRiskAssessmentService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +23 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +40 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +217 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +44 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +36 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +12 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +8 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatModifiedFilesConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +24 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +72 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +7 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/media/toolRiskBadge.css +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/toolRiskBadgeWidget.js +25 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +41 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +31 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputNotificationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +89 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +203 -107
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatPhoneInputPresenter.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +32 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatPermissionWarnings.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +18 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +30 -30
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +29 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +27 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +17 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +150 -69
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +9 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-katex-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package depending on katex",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "33.0.7",
|
|
19
19
|
"katex": "0.16.45",
|
|
20
20
|
"marked": "14.0.0"
|
|
21
21
|
},
|
|
@@ -168,14 +168,14 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
168
168
|
if (secondary.length > 0) {
|
|
169
169
|
const btn = this.addButton({
|
|
170
170
|
secondary: true,
|
|
171
|
-
ariaLabel: ( localize(
|
|
171
|
+
ariaLabel: ( localize(1811, "More Actions")),
|
|
172
172
|
small: this._options?.small
|
|
173
173
|
});
|
|
174
174
|
btn.icon = Codicon.dropDownButton;
|
|
175
175
|
btn.element.classList.add("default-colors", "monaco-text-button");
|
|
176
176
|
btn.enabled = true;
|
|
177
177
|
this._updateStore.add(
|
|
178
|
-
this._hoverService.setupManagedHover(hoverDelegate, btn.element, ( localize(
|
|
178
|
+
this._hoverService.setupManagedHover(hoverDelegate, btn.element, ( localize(1811, "More Actions")))
|
|
179
179
|
);
|
|
180
180
|
this._updateStore.add(btn.onDidClick(async () => {
|
|
181
181
|
this._contextMenuService.showContextMenu({
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Well-known session-config keys advertised by the agent-host Claude
|
|
3
|
+
* provider in its `resolveSessionConfig` schema.
|
|
4
|
+
*
|
|
5
|
+
* Claude collapses the platform's two-axis approval model
|
|
6
|
+
* (`autoApprove` × `mode`) onto a single `permissionMode` axis matching
|
|
7
|
+
* the Claude SDK's native `PermissionMode` (see
|
|
8
|
+
* `@anthropic-ai/claude-agent-sdk` typings). The six values mirror
|
|
9
|
+
* the SDK's enum exactly so that the value flowing back into
|
|
10
|
+
* `query({ permissionMode })` requires no translation layer.
|
|
11
|
+
*
|
|
12
|
+
* The platform `Permissions` key (allow/deny tool lists) is reused
|
|
13
|
+
* unchanged from `platformSessionSchema` because the Claude SDK accepts
|
|
14
|
+
* `allowedTools` / `disallowedTools` natively.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum ClaudeSessionConfigKey {
|
|
17
|
+
/** `'permissionMode'` — Claude SDK approval mode. */
|
|
18
|
+
PermissionMode = "permissionMode"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Permission-mode values advertised in the Claude session-config schema.
|
|
22
|
+
* Mirror of the SDK's `PermissionMode` union for protocol-stable strings.
|
|
23
|
+
*/
|
|
24
|
+
export type ClaudePermissionMode = "default" | "acceptEdits" | "bypassPermissions" | "plan" | "dontAsk" | "auto";
|
|
25
|
+
/**
|
|
26
|
+
* Single source of truth for narrowing an arbitrary runtime value to the
|
|
27
|
+
* closed {@link ClaudePermissionMode} union. Returns `undefined` for
|
|
28
|
+
* non-strings or unmatched strings; callers apply their own fallback.
|
|
29
|
+
*/
|
|
30
|
+
export declare function narrowClaudePermissionMode(raw: unknown): ClaudePermissionMode | undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Well-known keys used in the agent-host configuration value bag.
|
|
3
|
+
*
|
|
4
|
+
* The Agent Host Protocol's config schema is intentionally generic — agents
|
|
5
|
+
* are free to advertise any property names. These constants capture the
|
|
6
|
+
* names that the platform itself consumes (e.g. {@link SessionConfigKey.AutoApprove}
|
|
7
|
+
* drives tool auto-approval) or that clients interpret via convention
|
|
8
|
+
* (e.g. {@link SessionConfigKey.Branch}, {@link SessionConfigKey.Isolation}).
|
|
9
|
+
*
|
|
10
|
+
* Agents that opt into the corresponding behavior should use these exact
|
|
11
|
+
* property names in their `resolveSessionConfig` response.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum SessionConfigKey {
|
|
14
|
+
/** `'autoApprove'` — tool auto-approval level. */
|
|
15
|
+
AutoApprove = "autoApprove",
|
|
16
|
+
/** `'permissions'` — per-tool session allow/deny lists. */
|
|
17
|
+
Permissions = "permissions",
|
|
18
|
+
/** `'isolation'` — `'folder'` or `'worktree'`. */
|
|
19
|
+
Isolation = "isolation",
|
|
20
|
+
/** `'branch'` — base branch to work from. */
|
|
21
|
+
Branch = "branch",
|
|
22
|
+
/** `'mode'` — agent execution mode (interactive / plan). */
|
|
23
|
+
Mode = "mode"
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The set of enum values the unified permission picker understands for the
|
|
27
|
+
* {@link SessionConfigKey.AutoApprove} property.
|
|
28
|
+
*
|
|
29
|
+
* `default` is the required baseline level; `autoApprove` and `autopilot`
|
|
30
|
+
* are optional (an agent may choose to advertise a subset).
|
|
31
|
+
*/
|
|
32
|
+
export declare const KNOWN_AUTO_APPROVE_VALUES: ReadonlySet<string>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var SessionConfigKey;
|
|
4
|
+
(function(SessionConfigKey) {
|
|
5
|
+
SessionConfigKey["AutoApprove"] = "autoApprove";
|
|
6
|
+
SessionConfigKey["Permissions"] = "permissions";
|
|
7
|
+
SessionConfigKey["Isolation"] = "isolation";
|
|
8
|
+
SessionConfigKey["Branch"] = "branch";
|
|
9
|
+
SessionConfigKey["Mode"] = "mode";
|
|
10
|
+
})(SessionConfigKey || (SessionConfigKey = {}));
|
|
11
|
+
const KNOWN_AUTO_APPROVE_VALUES = ( new Set(["default", "autoApprove", "autopilot"]));
|
|
12
|
+
|
|
13
|
+
export { KNOWN_AUTO_APPROVE_VALUES, SessionConfigKey };
|
package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js
CHANGED
|
@@ -25,7 +25,7 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
25
25
|
if (state.type === IChatToolInvocation.StateKind.WaitingForPostApproval) {
|
|
26
26
|
const detail = isToolResultInputOutputDetails(state.resultDetails) ? state.resultDetails.input : isToolResultOutputDetails(state.resultDetails) ? undefined : toolContentToA11yString(state.contentForModel);
|
|
27
27
|
return {
|
|
28
|
-
title: ( localize(
|
|
28
|
+
title: ( localize(4768, "Approve results of tool")),
|
|
29
29
|
detail: detail
|
|
30
30
|
};
|
|
31
31
|
}
|
|
@@ -42,7 +42,7 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
42
42
|
} else if (v.toolSpecificData.kind === "input") {
|
|
43
43
|
input = JSON.stringify(v.toolSpecificData.rawInput);
|
|
44
44
|
} else if (v.toolSpecificData.kind === "modifiedFilesConfirmation") {
|
|
45
|
-
input = ( localize(
|
|
45
|
+
input = ( localize(4769, "{0} files", v.toolSpecificData.modifiedFiles.length));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
const titleObj = state.confirmationMessages?.title;
|
|
@@ -53,18 +53,18 @@ const getToolConfirmationAlert = (accessor, toolInvocation) => {
|
|
|
53
53
|
};
|
|
54
54
|
})).filter(isDefined);
|
|
55
55
|
let message = acceptKb && cancelKb ? ( localize(
|
|
56
|
-
|
|
56
|
+
4770,
|
|
57
57
|
"Chat confirmation required: {0}. Press {1} to accept or {2} to cancel.",
|
|
58
58
|
( text.map(t => t.title)).join(", "),
|
|
59
59
|
acceptKb,
|
|
60
60
|
cancelKb
|
|
61
61
|
)) : ( localize(
|
|
62
|
-
|
|
62
|
+
4771,
|
|
63
63
|
"Chat confirmation required: {0}",
|
|
64
64
|
( text.map(t => t.title)).join(", ")
|
|
65
65
|
));
|
|
66
66
|
if (( text.some(t => t.detail))) {
|
|
67
|
-
message += " " + ( localize(
|
|
67
|
+
message += " " + ( localize(4772, "Details: {0}", ( text.map(t => t.detail ? t.detail : "")).join(" ")));
|
|
68
68
|
}
|
|
69
69
|
return message;
|
|
70
70
|
};
|
|
@@ -80,7 +80,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
80
80
|
return "listitem";
|
|
81
81
|
}
|
|
82
82
|
getWidgetAriaLabel() {
|
|
83
|
-
return localize(
|
|
83
|
+
return localize(4773, "Chat");
|
|
84
84
|
}
|
|
85
85
|
getAriaLabel(element) {
|
|
86
86
|
if (isRequestVM(element)) {
|
|
@@ -111,10 +111,10 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
111
111
|
case 0:
|
|
112
112
|
break;
|
|
113
113
|
case 1:
|
|
114
|
-
tableCountHint = ( localize(
|
|
114
|
+
tableCountHint = ( localize(4774, "1 table "));
|
|
115
115
|
break;
|
|
116
116
|
default:
|
|
117
|
-
tableCountHint = ( localize(
|
|
117
|
+
tableCountHint = ( localize(4775, "{0} tables ", tableCount));
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
const fileTreeCount = element.response.value.filter(v => v.kind === "treeData").length ?? 0;
|
|
@@ -123,10 +123,10 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
123
123
|
case 0:
|
|
124
124
|
break;
|
|
125
125
|
case 1:
|
|
126
|
-
fileTreeCountHint = ( localize(
|
|
126
|
+
fileTreeCountHint = ( localize(4776, "1 file tree "));
|
|
127
127
|
break;
|
|
128
128
|
default:
|
|
129
|
-
fileTreeCountHint = ( localize(
|
|
129
|
+
fileTreeCountHint = ( localize(4777, "{0} file trees ", fileTreeCount));
|
|
130
130
|
break;
|
|
131
131
|
}
|
|
132
132
|
const elicitationCount = element.response.value.filter(v => v.kind === "elicitation2" || v.kind === "elicitationSerialized");
|
|
@@ -140,7 +140,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
140
140
|
switch (codeBlockCount) {
|
|
141
141
|
case 0:
|
|
142
142
|
label = accessibleViewHint ? ( localize(
|
|
143
|
-
|
|
143
|
+
4778,
|
|
144
144
|
"{0}{1}{2}{3}{4} {5}",
|
|
145
145
|
toolInvocationHint,
|
|
146
146
|
fileTreeCountHint,
|
|
@@ -149,7 +149,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
149
149
|
(element.response.toString()),
|
|
150
150
|
accessibleViewHint
|
|
151
151
|
)) : ( localize(
|
|
152
|
-
|
|
152
|
+
4779,
|
|
153
153
|
"{0}{1}{2} {3}",
|
|
154
154
|
fileTreeCountHint,
|
|
155
155
|
elicitationHint,
|
|
@@ -159,7 +159,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
159
159
|
break;
|
|
160
160
|
case 1:
|
|
161
161
|
label = accessibleViewHint ? ( localize(
|
|
162
|
-
|
|
162
|
+
4780,
|
|
163
163
|
"{0}{1}{2}1 code block: {3} {4}{5}",
|
|
164
164
|
toolInvocationHint,
|
|
165
165
|
fileTreeCountHint,
|
|
@@ -168,7 +168,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
168
168
|
(element.response.toString()),
|
|
169
169
|
accessibleViewHint
|
|
170
170
|
)) : ( localize(
|
|
171
|
-
|
|
171
|
+
4781,
|
|
172
172
|
"{0}{1}1 code block: {2} {3}",
|
|
173
173
|
fileTreeCountHint,
|
|
174
174
|
elicitationHint,
|
|
@@ -178,7 +178,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
178
178
|
break;
|
|
179
179
|
default:
|
|
180
180
|
label = accessibleViewHint ? ( localize(
|
|
181
|
-
|
|
181
|
+
4782,
|
|
182
182
|
"{0}{1}{2}{3} code blocks: {4}{5} {6}",
|
|
183
183
|
toolInvocationHint,
|
|
184
184
|
fileTreeCountHint,
|
|
@@ -188,7 +188,7 @@ let ChatAccessibilityProvider = class ChatAccessibilityProvider {
|
|
|
188
188
|
(element.response.toString()),
|
|
189
189
|
accessibleViewHint
|
|
190
190
|
)) : ( localize(
|
|
191
|
-
|
|
191
|
+
4783,
|
|
192
192
|
"{0}{1}{2} code blocks: {3} {4}",
|
|
193
193
|
fileTreeCountHint,
|
|
194
194
|
elicitationHint,
|
|
@@ -92,8 +92,8 @@ class ContinueChatInSessionAction extends Action2 {
|
|
|
92
92
|
constructor() {
|
|
93
93
|
super({
|
|
94
94
|
id: ContinueChatInSessionAction.ID,
|
|
95
|
-
title: ( localize2(
|
|
96
|
-
tooltip: ( localize(
|
|
95
|
+
title: ( localize2(4963, "Continue Chat in...")),
|
|
96
|
+
tooltip: ( localize(4963, "Continue Chat in...")),
|
|
97
97
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.requestInProgress.negate()), ( ChatContextKeys.remoteJobCreating.negate()), ChatContextKeys.hasCanDelegateProviders)),
|
|
98
98
|
menu: [{
|
|
99
99
|
id: MenuId.ChatExecute,
|
|
@@ -145,8 +145,8 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
145
145
|
const learnMoreUrl = "https://aka.ms/vscode-continue-chat-in";
|
|
146
146
|
return [{
|
|
147
147
|
id: "workbench.action.chat.continueChatInSession.learnMore",
|
|
148
|
-
label: ( localize(
|
|
149
|
-
tooltip: ( localize(
|
|
148
|
+
label: ( localize(4964, "Learn More")),
|
|
149
|
+
tooltip: ( localize(4964, "Learn More")),
|
|
150
150
|
class: undefined,
|
|
151
151
|
enabled: true,
|
|
152
152
|
run: async () => {
|
|
@@ -210,9 +210,9 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
210
210
|
class: undefined,
|
|
211
211
|
description: `@${contrib.name}`,
|
|
212
212
|
label: getAgentSessionProviderName(provider),
|
|
213
|
-
tooltip: ( localize(
|
|
213
|
+
tooltip: ( localize(4965, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
214
214
|
category: {
|
|
215
|
-
label: ( localize(
|
|
215
|
+
label: ( localize(4966, "Continue In")),
|
|
216
216
|
order: 0,
|
|
217
217
|
showHeader: true
|
|
218
218
|
},
|
|
@@ -231,9 +231,9 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
231
231
|
icon: getAgentSessionProviderIcon(provider),
|
|
232
232
|
class: undefined,
|
|
233
233
|
label: getAgentSessionProviderName(provider),
|
|
234
|
-
tooltip: ( localize(
|
|
234
|
+
tooltip: ( localize(4965, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
235
235
|
category: {
|
|
236
|
-
label: ( localize(
|
|
236
|
+
label: ( localize(4966, "Continue In")),
|
|
237
237
|
order: 0,
|
|
238
238
|
showHeader: true
|
|
239
239
|
},
|
|
@@ -247,7 +247,7 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
247
247
|
if (this.location === ActionLocation.Editor) {
|
|
248
248
|
const view = h("span.action-widget-delegate-label", [h("span", {
|
|
249
249
|
className: ThemeIcon.asClassName(Codicon.forward)
|
|
250
|
-
}), h("span", [( localize(
|
|
250
|
+
}), h("span", [( localize(4967, "Continue in..."))])]);
|
|
251
251
|
element.appendChild(view.root);
|
|
252
252
|
return null;
|
|
253
253
|
} else {
|
|
@@ -15,7 +15,7 @@ class AcceptElicitationRequestAction extends Action2 {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: AcceptElicitationRequestActionId,
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(4982, "Accept Request")),
|
|
19
19
|
f1: false,
|
|
20
20
|
category: CHAT_CATEGORY,
|
|
21
21
|
keybinding: {
|
|
@@ -72,13 +72,13 @@ class SubmitAction extends Action2 {
|
|
|
72
72
|
if (editsToUndo === 1) {
|
|
73
73
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
74
74
|
message = ( localize(
|
|
75
|
-
|
|
75
|
+
4983,
|
|
76
76
|
"This will remove your last request and undo the edits made to {0}. Do you want to proceed?",
|
|
77
77
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
78
78
|
));
|
|
79
79
|
} else {
|
|
80
80
|
message = ( localize(
|
|
81
|
-
|
|
81
|
+
4984,
|
|
82
82
|
"This will remove your last request and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
83
83
|
entriesModifiedInRequestsToRemove.length
|
|
84
84
|
));
|
|
@@ -86,24 +86,24 @@ class SubmitAction extends Action2 {
|
|
|
86
86
|
} else {
|
|
87
87
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
88
88
|
message = ( localize(
|
|
89
|
-
|
|
89
|
+
4985,
|
|
90
90
|
"This will remove all subsequent requests and undo edits made to {0}. Do you want to proceed?",
|
|
91
91
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
92
92
|
));
|
|
93
93
|
} else {
|
|
94
94
|
message = ( localize(
|
|
95
|
-
|
|
95
|
+
4986,
|
|
96
96
|
"This will remove all subsequent requests and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
97
97
|
entriesModifiedInRequestsToRemove.length
|
|
98
98
|
));
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
const confirmation = shouldPrompt ? await dialogService.confirm({
|
|
102
|
-
title: editsToUndo === 1 ? ( localize(
|
|
102
|
+
title: editsToUndo === 1 ? ( localize(4987, "Do you want to undo your last edit?")) : ( localize(4988, "Do you want to undo {0} edits?", editsToUndo)),
|
|
103
103
|
message: message,
|
|
104
|
-
primaryButton: ( localize(
|
|
104
|
+
primaryButton: ( localize(4989, "Yes")),
|
|
105
105
|
checkbox: {
|
|
106
|
-
label: ( localize(
|
|
106
|
+
label: ( localize(4990, "Don't ask again")),
|
|
107
107
|
checked: false
|
|
108
108
|
},
|
|
109
109
|
type: "info"
|
|
@@ -164,7 +164,7 @@ class ChatSubmitAction extends SubmitAction {
|
|
|
164
164
|
const precondition = ( ContextKeyExpr.and(ChatContextKeys.inputHasText, ( ContextKeyExpr.or(whenNotInProgress, ( ChatContextKeys.editingRequestType.isEqualTo(ChatContextKeys.EditingRequestType.Sent)))), ChatContextKeys.chatSessionOptionsValid));
|
|
165
165
|
super({
|
|
166
166
|
id: ChatSubmitAction.ID,
|
|
167
|
-
title: ( localize2(
|
|
167
|
+
title: ( localize2(4991, "Send")),
|
|
168
168
|
f1: false,
|
|
169
169
|
category: CHAT_CATEGORY,
|
|
170
170
|
icon: Codicon.arrowUp,
|
|
@@ -172,7 +172,7 @@ class ChatSubmitAction extends SubmitAction {
|
|
|
172
172
|
toggled: {
|
|
173
173
|
condition: ChatContextKeys.lockedToCodingAgent,
|
|
174
174
|
icon: Codicon.arrowUp,
|
|
175
|
-
tooltip: ( localize(
|
|
175
|
+
tooltip: ( localize(4992, "Send to Agent"))
|
|
176
176
|
},
|
|
177
177
|
keybinding: {
|
|
178
178
|
when: ( ContextKeyExpr.and(ChatContextKeys.inChatInput, ( ChatContextKeys.withinEditSessionDiff.negate()))),
|
|
@@ -186,7 +186,7 @@ class ChatSubmitAction extends SubmitAction {
|
|
|
186
186
|
group: "navigation",
|
|
187
187
|
alt: {
|
|
188
188
|
id: "workbench.action.chat.sendToNewChat",
|
|
189
|
-
title: ( localize2(
|
|
189
|
+
title: ( localize2(4993, "Send to New Chat")),
|
|
190
190
|
icon: Codicon.plus
|
|
191
191
|
}
|
|
192
192
|
}, {
|
|
@@ -206,7 +206,7 @@ class ToggleChatModeAction extends Action2 {
|
|
|
206
206
|
constructor() {
|
|
207
207
|
super({
|
|
208
208
|
id: ToggleChatModeAction.ID,
|
|
209
|
-
title: ( localize2(
|
|
209
|
+
title: ( localize2(4994, "Switch to Next Agent")),
|
|
210
210
|
f1: true,
|
|
211
211
|
category: CHAT_CATEGORY,
|
|
212
212
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.requestInProgress.negate())))
|
|
@@ -282,7 +282,7 @@ class SwitchToNextModelAction extends Action2 {
|
|
|
282
282
|
constructor() {
|
|
283
283
|
super({
|
|
284
284
|
id: SwitchToNextModelAction.ID,
|
|
285
|
-
title: ( localize2(
|
|
285
|
+
title: ( localize2(4995, "Switch to Next Model")),
|
|
286
286
|
category: CHAT_CATEGORY,
|
|
287
287
|
f1: true,
|
|
288
288
|
precondition: ChatContextKeys.enabled
|
|
@@ -294,6 +294,25 @@ class SwitchToNextModelAction extends Action2 {
|
|
|
294
294
|
widget?.input.switchToNextModel();
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
+
class SwitchToNextPinnedModelAction extends Action2 {
|
|
298
|
+
static {
|
|
299
|
+
this.ID = "workbench.action.chat.switchToNextPinnedModel";
|
|
300
|
+
}
|
|
301
|
+
constructor() {
|
|
302
|
+
super({
|
|
303
|
+
id: SwitchToNextPinnedModelAction.ID,
|
|
304
|
+
title: ( localize2(4996, "Switch to Next Pinned Model")),
|
|
305
|
+
category: CHAT_CATEGORY,
|
|
306
|
+
f1: true,
|
|
307
|
+
precondition: ChatContextKeys.enabled
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
run(accessor, ...args) {
|
|
311
|
+
const widgetService = accessor.get(IChatWidgetService);
|
|
312
|
+
const widget = widgetService.lastFocusedWidget;
|
|
313
|
+
widget?.input.switchToNextPinnedModel();
|
|
314
|
+
}
|
|
315
|
+
}
|
|
297
316
|
class OpenModelPickerAction extends Action2 {
|
|
298
317
|
static {
|
|
299
318
|
this.ID = "workbench.action.chat.openModelPicker";
|
|
@@ -301,7 +320,7 @@ class OpenModelPickerAction extends Action2 {
|
|
|
301
320
|
constructor() {
|
|
302
321
|
super({
|
|
303
322
|
id: OpenModelPickerAction.ID,
|
|
304
|
-
title: ( localize2(
|
|
323
|
+
title: ( localize2(4997, "Open Model Picker")),
|
|
305
324
|
category: CHAT_CATEGORY,
|
|
306
325
|
f1: false,
|
|
307
326
|
keybinding: {
|
|
@@ -335,8 +354,8 @@ class OpenPermissionPickerAction extends Action2 {
|
|
|
335
354
|
constructor() {
|
|
336
355
|
super({
|
|
337
356
|
id: OpenPermissionPickerAction.ID,
|
|
338
|
-
title: ( localize2(
|
|
339
|
-
tooltip: ( localize(
|
|
357
|
+
title: ( localize2(4998, "Open Permission Picker")),
|
|
358
|
+
tooltip: ( localize(4999, "Set Permissions")),
|
|
340
359
|
category: CHAT_CATEGORY,
|
|
341
360
|
f1: false,
|
|
342
361
|
precondition: ChatContextKeys.enabled,
|
|
@@ -363,8 +382,8 @@ class OpenModePickerAction extends Action2 {
|
|
|
363
382
|
constructor() {
|
|
364
383
|
super({
|
|
365
384
|
id: OpenModePickerAction.ID,
|
|
366
|
-
title: ( localize2(
|
|
367
|
-
tooltip: ( localize(
|
|
385
|
+
title: ( localize2(5000, "Open Agent Picker")),
|
|
386
|
+
tooltip: ( localize(5001, "Set Agent")),
|
|
368
387
|
category: CHAT_CATEGORY,
|
|
369
388
|
f1: false,
|
|
370
389
|
precondition: ChatContextKeys.enabled,
|
|
@@ -397,8 +416,8 @@ class OpenSessionTargetPickerAction extends Action2 {
|
|
|
397
416
|
constructor() {
|
|
398
417
|
super({
|
|
399
418
|
id: OpenSessionTargetPickerAction.ID,
|
|
400
|
-
title: ( localize2(
|
|
401
|
-
tooltip: ( localize(
|
|
419
|
+
title: ( localize2(5002, "Open Session Target Picker")),
|
|
420
|
+
tooltip: ( localize(5003, "Set Session Target")),
|
|
402
421
|
category: CHAT_CATEGORY,
|
|
403
422
|
f1: false,
|
|
404
423
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(ChatContextKeys.chatSessionIsEmpty, ChatContextKeys.inAgentSessionsWelcome)), ( ChatContextKeys.currentlyEditingInput.negate()), ( ChatContextKeys.currentlyEditing.negate()))),
|
|
@@ -430,8 +449,8 @@ class OpenDelegationPickerAction extends Action2 {
|
|
|
430
449
|
constructor() {
|
|
431
450
|
super({
|
|
432
451
|
id: OpenDelegationPickerAction.ID,
|
|
433
|
-
title: ( localize2(
|
|
434
|
-
tooltip: ( localize(
|
|
452
|
+
title: ( localize2(5004, "Open Delegation Picker")),
|
|
453
|
+
tooltip: ( localize(5005, "Delegate Session")),
|
|
435
454
|
category: CHAT_CATEGORY,
|
|
436
455
|
f1: false,
|
|
437
456
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.chatSessionIsEmpty.negate()), ( ChatContextKeys.currentlyEditingInput.negate()), ( ChatContextKeys.currentlyEditing.negate()))),
|
|
@@ -458,8 +477,8 @@ class OpenWorkspacePickerAction extends Action2 {
|
|
|
458
477
|
constructor() {
|
|
459
478
|
super({
|
|
460
479
|
id: OpenWorkspacePickerAction.ID,
|
|
461
|
-
title: ( localize2(
|
|
462
|
-
tooltip: ( localize(
|
|
480
|
+
title: ( localize2(5006, "Open Workspace Picker")),
|
|
481
|
+
tooltip: ( localize(5007, "Select Target Workspace")),
|
|
463
482
|
category: CHAT_CATEGORY,
|
|
464
483
|
f1: false,
|
|
465
484
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ChatContextKeys.inAgentSessionsWelcome)),
|
|
@@ -480,7 +499,7 @@ class ChatSessionPrimaryPickerAction extends Action2 {
|
|
|
480
499
|
constructor() {
|
|
481
500
|
super({
|
|
482
501
|
id: ChatSessionPrimaryPickerAction.ID,
|
|
483
|
-
title: ( localize2(
|
|
502
|
+
title: ( localize2(5008, "Open Primary Session Picker")),
|
|
484
503
|
category: CHAT_CATEGORY,
|
|
485
504
|
f1: false,
|
|
486
505
|
precondition: ChatContextKeys.enabled,
|
|
@@ -513,7 +532,7 @@ class ChangeChatModelAction extends Action2 {
|
|
|
513
532
|
constructor() {
|
|
514
533
|
super({
|
|
515
534
|
id: ChangeChatModelAction.ID,
|
|
516
|
-
title: ( localize2(
|
|
535
|
+
title: ( localize2(5009, "Change Model")),
|
|
517
536
|
category: CHAT_CATEGORY,
|
|
518
537
|
f1: false,
|
|
519
538
|
precondition: ChatContextKeys.enabled
|
|
@@ -545,7 +564,7 @@ class ChatEditingSessionSubmitAction extends SubmitAction {
|
|
|
545
564
|
));
|
|
546
565
|
super({
|
|
547
566
|
id: ChatEditingSessionSubmitAction.ID,
|
|
548
|
-
title: ( localize2(
|
|
567
|
+
title: ( localize2(5010, "Send")),
|
|
549
568
|
f1: false,
|
|
550
569
|
category: CHAT_CATEGORY,
|
|
551
570
|
icon: Codicon.arrowUp,
|
|
@@ -557,7 +576,7 @@ class ChatEditingSessionSubmitAction extends SubmitAction {
|
|
|
557
576
|
group: "navigation",
|
|
558
577
|
alt: {
|
|
559
578
|
id: "workbench.action.chat.sendToNewChat",
|
|
560
|
-
title: ( localize2(
|
|
579
|
+
title: ( localize2(4993, "Send to New Chat")),
|
|
561
580
|
icon: Codicon.plus
|
|
562
581
|
}
|
|
563
582
|
}]
|
|
@@ -572,7 +591,7 @@ class SubmitWithoutDispatchingAction extends Action2 {
|
|
|
572
591
|
const precondition = ( ContextKeyExpr.and(ChatContextKeys.inputHasText, whenNotInProgress, ( ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Ask))));
|
|
573
592
|
super({
|
|
574
593
|
id: SubmitWithoutDispatchingAction.ID,
|
|
575
|
-
title: ( localize2(
|
|
594
|
+
title: ( localize2(5011, "Send")),
|
|
576
595
|
f1: false,
|
|
577
596
|
category: CHAT_CATEGORY,
|
|
578
597
|
precondition,
|
|
@@ -600,7 +619,7 @@ class ChatSubmitWithCodebaseAction extends Action2 {
|
|
|
600
619
|
const precondition = ( ContextKeyExpr.and(ChatContextKeys.inputHasText, whenNotInProgress));
|
|
601
620
|
super({
|
|
602
621
|
id: ChatSubmitWithCodebaseAction.ID,
|
|
603
|
-
title: ( localize2(
|
|
622
|
+
title: ( localize2(5012, "Send with {0}", `${chatVariableLeader}codebase`)),
|
|
604
623
|
precondition,
|
|
605
624
|
keybinding: {
|
|
606
625
|
when: ChatContextKeys.inChatInput,
|
|
@@ -637,7 +656,7 @@ class SendToNewChatAction extends Action2 {
|
|
|
637
656
|
const precondition = ChatContextKeys.inputHasText;
|
|
638
657
|
super({
|
|
639
658
|
id: "workbench.action.chat.sendToNewChat",
|
|
640
|
-
title: ( localize2(
|
|
659
|
+
title: ( localize2(4993, "Send to New Chat")),
|
|
641
660
|
precondition,
|
|
642
661
|
category: CHAT_CATEGORY,
|
|
643
662
|
f1: false,
|
|
@@ -682,7 +701,7 @@ class CancelAction extends Action2 {
|
|
|
682
701
|
constructor() {
|
|
683
702
|
super({
|
|
684
703
|
id: CancelAction.ID,
|
|
685
|
-
title: ( localize2(
|
|
704
|
+
title: ( localize2(5013, "Cancel")),
|
|
686
705
|
f1: false,
|
|
687
706
|
category: CHAT_CATEGORY,
|
|
688
707
|
icon: Codicon.stopCircle,
|
|
@@ -745,7 +764,7 @@ class CancelEdit extends Action2 {
|
|
|
745
764
|
constructor() {
|
|
746
765
|
super({
|
|
747
766
|
id: CancelEdit.ID,
|
|
748
|
-
title: ( localize2(
|
|
767
|
+
title: ( localize2(5014, "Cancel Edit")),
|
|
749
768
|
f1: false,
|
|
750
769
|
category: CHAT_CATEGORY,
|
|
751
770
|
icon: Codicon.x,
|
|
@@ -784,18 +803,18 @@ class GetHandoffsAction extends Action2 {
|
|
|
784
803
|
constructor() {
|
|
785
804
|
super({
|
|
786
805
|
id: GetHandoffsAction.ID,
|
|
787
|
-
title: ( localize2(
|
|
806
|
+
title: ( localize2(5015, "Get Handoffs")),
|
|
788
807
|
f1: false,
|
|
789
808
|
category: CHAT_CATEGORY
|
|
790
809
|
});
|
|
791
810
|
}
|
|
792
|
-
run(accessor, ...args) {
|
|
811
|
+
async run(accessor, ...args) {
|
|
793
812
|
const modeService = accessor.get(IChatModeService);
|
|
794
813
|
const arg = args.at(0);
|
|
795
814
|
const {
|
|
796
815
|
builtin,
|
|
797
816
|
custom
|
|
798
|
-
} = modeService.
|
|
817
|
+
} = await modeService.getLocalModes();
|
|
799
818
|
let allModes = [...builtin, ...custom];
|
|
800
819
|
if (arg?.sourceCustomAgent) {
|
|
801
820
|
const filterName = arg.sourceCustomAgent;
|
|
@@ -812,7 +831,7 @@ class ExecuteHandoffAction extends Action2 {
|
|
|
812
831
|
constructor() {
|
|
813
832
|
super({
|
|
814
833
|
id: ExecuteHandoffAction.ID,
|
|
815
|
-
title: ( localize2(
|
|
834
|
+
title: ( localize2(5016, "Execute Handoff")),
|
|
816
835
|
f1: false,
|
|
817
836
|
category: CHAT_CATEGORY
|
|
818
837
|
});
|
|
@@ -897,6 +916,7 @@ function registerChatExecuteActions() {
|
|
|
897
916
|
store.add(registerAction2(ChatSubmitWithCodebaseAction));
|
|
898
917
|
store.add(registerAction2(ToggleChatModeAction));
|
|
899
918
|
store.add(registerAction2(SwitchToNextModelAction));
|
|
919
|
+
store.add(registerAction2(SwitchToNextPinnedModelAction));
|
|
900
920
|
store.add(registerAction2(OpenModelPickerAction));
|
|
901
921
|
store.add(registerAction2(OpenPermissionPickerAction));
|
|
902
922
|
store.add(registerAction2(OpenModePickerAction));
|