@codingame/monaco-vscode-katex-common 29.1.1 → 30.0.1
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 +14 -13
- 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 +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +12 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +208 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +637 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +202 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +17 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +53 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +296 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +59 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +55 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +110 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +384 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +220 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +1 -2
- 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/chatAttachmentsContentPart.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +14 -1
- 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.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +5 -4
- 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.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +40 -12
- 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/chatProgressContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +97 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +5 -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 +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +8 -7
- 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 +15 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +155 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +36 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- 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/chatThinkingContent.css +13 -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.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMissingSandboxDepsConfirmationSubPart.js +68 -0
- 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 +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +33 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +12 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- 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/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +4 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +37 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +66 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +13 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +103 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +35 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +39 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +44 -18
- 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 +60 -10
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +4 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +5 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +6 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +39 -39
- 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.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +746 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +300 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +55 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +273 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1963 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +314 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +258 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +886 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +118 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +71 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +40 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +313 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +265 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +185 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +104 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +43 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +469 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +933 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +180 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +32 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +643 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +197 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +539 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +39 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +90 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +92 -0
- 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/chat/browser/chatSessions/chatSessions.contribution.d.ts +0 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +0 -1317
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalPromptFileSystem.d.ts +0 -47
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/internalCustomizations/internalPromptFileSystem.js +0 -95
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-katex-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.1",
|
|
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": "30.0.1",
|
|
19
19
|
"katex": "0.16.27",
|
|
20
20
|
"marked": "14.0.0"
|
|
21
21
|
},
|
|
@@ -53,7 +53,7 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
53
53
|
super.dispose();
|
|
54
54
|
}
|
|
55
55
|
update(actions, secondary) {
|
|
56
|
-
const
|
|
56
|
+
const configProvider = this._options?.buttonConfigProvider ?? (() => ({
|
|
57
57
|
showLabel: true
|
|
58
58
|
}));
|
|
59
59
|
this._updateStore.clear();
|
|
@@ -64,15 +64,14 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
64
64
|
const actionOrSubmenu = actions[i];
|
|
65
65
|
let action;
|
|
66
66
|
let btn;
|
|
67
|
-
let tooltip
|
|
68
|
-
if (
|
|
69
|
-
tooltip = this._keybindingService.appendKeybinding(tooltip, actionOrSubmenu.id);
|
|
70
|
-
}
|
|
71
|
-
if (actionOrSubmenu instanceof SubmenuAction && actionOrSubmenu.actions.length > 0) {
|
|
67
|
+
let tooltip;
|
|
68
|
+
if (actionOrSubmenu instanceof SubmenuAction && actionOrSubmenu.actions.length > 1) {
|
|
72
69
|
const [first, ...rest] = actionOrSubmenu.actions;
|
|
73
70
|
action = first;
|
|
71
|
+
tooltip = action.tooltip || action.label;
|
|
72
|
+
tooltip = this._keybindingService.appendKeybinding(tooltip, action.id);
|
|
74
73
|
btn = this.addButtonWithDropdown({
|
|
75
|
-
secondary:
|
|
74
|
+
secondary: configProvider(action, i)?.isSecondary ?? secondary,
|
|
76
75
|
actionRunner: this._actionRunner,
|
|
77
76
|
actions: rest,
|
|
78
77
|
contextMenuProvider: this._contextMenuService,
|
|
@@ -81,9 +80,11 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
81
80
|
small: this._options?.small
|
|
82
81
|
});
|
|
83
82
|
} else {
|
|
84
|
-
action = actionOrSubmenu;
|
|
83
|
+
action = actionOrSubmenu instanceof SubmenuAction && actionOrSubmenu.actions.length === 1 ? actionOrSubmenu.actions[0] : actionOrSubmenu;
|
|
84
|
+
tooltip = action.tooltip || action.label;
|
|
85
|
+
tooltip = this._keybindingService.appendKeybinding(tooltip, action.id);
|
|
85
86
|
btn = this.addButton({
|
|
86
|
-
secondary:
|
|
87
|
+
secondary: configProvider(action, i)?.isSecondary ?? secondary,
|
|
87
88
|
ariaLabel: tooltip,
|
|
88
89
|
supportIcons: true,
|
|
89
90
|
small: this._options?.small
|
|
@@ -92,9 +93,9 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
92
93
|
btn.enabled = action.enabled;
|
|
93
94
|
btn.checked = action.checked ?? false;
|
|
94
95
|
btn.element.classList.add("default-colors");
|
|
95
|
-
const showLabel =
|
|
96
|
-
const customClass =
|
|
97
|
-
const customLabel =
|
|
96
|
+
const showLabel = configProvider(action, i)?.showLabel ?? true;
|
|
97
|
+
const customClass = configProvider(action, i)?.customClass;
|
|
98
|
+
const customLabel = configProvider(action, i)?.customLabel;
|
|
98
99
|
if (customClass) {
|
|
99
100
|
btn.element.classList.add(customClass);
|
|
100
101
|
}
|
|
@@ -103,7 +104,7 @@ let WorkbenchButtonBar = class WorkbenchButtonBar extends ButtonBar {
|
|
|
103
104
|
} else {
|
|
104
105
|
btn.element.classList.add("monaco-text-button");
|
|
105
106
|
}
|
|
106
|
-
if (
|
|
107
|
+
if (configProvider(action, i)?.showIcon) {
|
|
107
108
|
if (action instanceof MenuItemAction && ThemeIcon.isThemeIcon(action.item.icon)) {
|
|
108
109
|
if (!showLabel) {
|
|
109
110
|
btn.icon = action.item.icon;
|
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(4685, "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(4686, "{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
|
+
4687,
|
|
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
|
+
4688,
|
|
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(4689, "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(4690, "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(4691, "1 table "));
|
|
115
115
|
break;
|
|
116
116
|
default:
|
|
117
|
-
tableCountHint = ( localize(
|
|
117
|
+
tableCountHint = ( localize(4692, "{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(4693, "1 file tree "));
|
|
127
127
|
break;
|
|
128
128
|
default:
|
|
129
|
-
fileTreeCountHint = ( localize(
|
|
129
|
+
fileTreeCountHint = ( localize(4694, "{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
|
+
4695,
|
|
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
|
+
4696,
|
|
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
|
+
4697,
|
|
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
|
+
4698,
|
|
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
|
+
4699,
|
|
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
|
+
4700,
|
|
192
192
|
"{0}{1}{2} code blocks: {3} {4}",
|
|
193
193
|
fileTreeCountHint,
|
|
194
194
|
elicitationHint,
|
|
@@ -89,8 +89,8 @@ class ContinueChatInSessionAction extends Action2 {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: ContinueChatInSessionAction.ID,
|
|
92
|
-
title: ( localize2(
|
|
93
|
-
tooltip: ( localize(
|
|
92
|
+
title: ( localize2(4880, "Continue Chat in...")),
|
|
93
|
+
tooltip: ( localize(4880, "Continue Chat in...")),
|
|
94
94
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.requestInProgress.negate()), ( ChatContextKeys.remoteJobCreating.negate()), ChatContextKeys.hasCanDelegateProviders)),
|
|
95
95
|
menu: [{
|
|
96
96
|
id: MenuId.ChatExecute,
|
|
@@ -134,8 +134,8 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
134
134
|
const learnMoreUrl = "https://aka.ms/vscode-continue-chat-in";
|
|
135
135
|
return [{
|
|
136
136
|
id: "workbench.action.chat.continueChatInSession.learnMore",
|
|
137
|
-
label: ( localize(
|
|
138
|
-
tooltip: ( localize(
|
|
137
|
+
label: ( localize(4881, "Learn More")),
|
|
138
|
+
tooltip: ( localize(4881, "Learn More")),
|
|
139
139
|
class: undefined,
|
|
140
140
|
enabled: true,
|
|
141
141
|
run: async () => {
|
|
@@ -179,9 +179,9 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
179
179
|
class: undefined,
|
|
180
180
|
description: `@${contrib.name}`,
|
|
181
181
|
label: getAgentSessionProviderName(provider),
|
|
182
|
-
tooltip: ( localize(
|
|
182
|
+
tooltip: ( localize(4882, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
183
183
|
category: {
|
|
184
|
-
label: ( localize(
|
|
184
|
+
label: ( localize(4883, "Continue In")),
|
|
185
185
|
order: 0,
|
|
186
186
|
showHeader: true
|
|
187
187
|
},
|
|
@@ -200,9 +200,9 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
200
200
|
icon: getAgentSessionProviderIcon(provider),
|
|
201
201
|
class: undefined,
|
|
202
202
|
label: getAgentSessionProviderName(provider),
|
|
203
|
-
tooltip: ( localize(
|
|
203
|
+
tooltip: ( localize(4882, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
204
204
|
category: {
|
|
205
|
-
label: ( localize(
|
|
205
|
+
label: ( localize(4883, "Continue In")),
|
|
206
206
|
order: 0,
|
|
207
207
|
showHeader: true
|
|
208
208
|
},
|
|
@@ -216,7 +216,7 @@ let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class
|
|
|
216
216
|
if (this.location === ActionLocation.Editor) {
|
|
217
217
|
const view = h("span.action-widget-delegate-label", [h("span", {
|
|
218
218
|
className: ThemeIcon.asClassName(Codicon.forward)
|
|
219
|
-
}), h("span", [( localize(
|
|
219
|
+
}), h("span", [( localize(4884, "Continue in..."))])]);
|
|
220
220
|
element.appendChild(view.root);
|
|
221
221
|
return null;
|
|
222
222
|
} 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(4893, "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
|
+
4894,
|
|
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
|
+
4895,
|
|
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
|
+
4896,
|
|
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
|
+
4897,
|
|
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(4898, "Do you want to undo your last edit?")) : ( localize(4899, "Do you want to undo {0} edits?", editsToUndo)),
|
|
103
103
|
message: message,
|
|
104
|
-
primaryButton: ( localize(
|
|
104
|
+
primaryButton: ( localize(4900, "Yes")),
|
|
105
105
|
checkbox: {
|
|
106
|
-
label: ( localize(
|
|
106
|
+
label: ( localize(4901, "Don't ask again")),
|
|
107
107
|
checked: false
|
|
108
108
|
},
|
|
109
109
|
type: "info"
|
|
@@ -175,7 +175,7 @@ class ChatSubmitAction extends SubmitAction {
|
|
|
175
175
|
));
|
|
176
176
|
super({
|
|
177
177
|
id: ChatSubmitAction.ID,
|
|
178
|
-
title: ( localize2(
|
|
178
|
+
title: ( localize2(4902, "Send")),
|
|
179
179
|
f1: false,
|
|
180
180
|
category: CHAT_CATEGORY,
|
|
181
181
|
icon: Codicon.arrowUp,
|
|
@@ -183,7 +183,7 @@ class ChatSubmitAction extends SubmitAction {
|
|
|
183
183
|
toggled: {
|
|
184
184
|
condition: ChatContextKeys.lockedToCodingAgent,
|
|
185
185
|
icon: Codicon.arrowUp,
|
|
186
|
-
tooltip: ( localize(
|
|
186
|
+
tooltip: ( localize(4903, "Send to Agent"))
|
|
187
187
|
},
|
|
188
188
|
keybinding: {
|
|
189
189
|
when: ( ContextKeyExpr.and(ChatContextKeys.inChatInput, ( ChatContextKeys.withinEditSessionDiff.negate()))),
|
|
@@ -197,7 +197,7 @@ class ChatSubmitAction extends SubmitAction {
|
|
|
197
197
|
group: "navigation",
|
|
198
198
|
alt: {
|
|
199
199
|
id: "workbench.action.chat.sendToNewChat",
|
|
200
|
-
title: ( localize2(
|
|
200
|
+
title: ( localize2(4904, "Send to New Chat")),
|
|
201
201
|
icon: Codicon.plus
|
|
202
202
|
}
|
|
203
203
|
}, {
|
|
@@ -217,7 +217,7 @@ class ToggleChatModeAction extends Action2 {
|
|
|
217
217
|
constructor() {
|
|
218
218
|
super({
|
|
219
219
|
id: ToggleChatModeAction.ID,
|
|
220
|
-
title: ( localize2(
|
|
220
|
+
title: ( localize2(4905, "Switch to Next Agent")),
|
|
221
221
|
f1: true,
|
|
222
222
|
category: CHAT_CATEGORY,
|
|
223
223
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.requestInProgress.negate())))
|
|
@@ -294,7 +294,7 @@ class SwitchToNextModelAction extends Action2 {
|
|
|
294
294
|
constructor() {
|
|
295
295
|
super({
|
|
296
296
|
id: SwitchToNextModelAction.ID,
|
|
297
|
-
title: ( localize2(
|
|
297
|
+
title: ( localize2(4906, "Switch to Next Model")),
|
|
298
298
|
category: CHAT_CATEGORY,
|
|
299
299
|
f1: true,
|
|
300
300
|
precondition: ChatContextKeys.enabled
|
|
@@ -313,7 +313,7 @@ class OpenModelPickerAction extends Action2 {
|
|
|
313
313
|
constructor() {
|
|
314
314
|
super({
|
|
315
315
|
id: OpenModelPickerAction.ID,
|
|
316
|
-
title: ( localize2(
|
|
316
|
+
title: ( localize2(4907, "Open Model Picker")),
|
|
317
317
|
category: CHAT_CATEGORY,
|
|
318
318
|
f1: false,
|
|
319
319
|
keybinding: {
|
|
@@ -347,8 +347,8 @@ class OpenPermissionPickerAction extends Action2 {
|
|
|
347
347
|
constructor() {
|
|
348
348
|
super({
|
|
349
349
|
id: OpenPermissionPickerAction.ID,
|
|
350
|
-
title: ( localize2(
|
|
351
|
-
tooltip: ( localize(
|
|
350
|
+
title: ( localize2(4908, "Open Permission Picker")),
|
|
351
|
+
tooltip: ( localize(4909, "Set Permissions")),
|
|
352
352
|
category: CHAT_CATEGORY,
|
|
353
353
|
f1: false,
|
|
354
354
|
precondition: ChatContextKeys.enabled,
|
|
@@ -375,8 +375,8 @@ class OpenModePickerAction extends Action2 {
|
|
|
375
375
|
constructor() {
|
|
376
376
|
super({
|
|
377
377
|
id: OpenModePickerAction.ID,
|
|
378
|
-
title: ( localize2(
|
|
379
|
-
tooltip: ( localize(
|
|
378
|
+
title: ( localize2(4910, "Open Agent Picker")),
|
|
379
|
+
tooltip: ( localize(4911, "Set Agent")),
|
|
380
380
|
category: CHAT_CATEGORY,
|
|
381
381
|
f1: false,
|
|
382
382
|
precondition: ChatContextKeys.enabled,
|
|
@@ -409,8 +409,8 @@ class OpenSessionTargetPickerAction extends Action2 {
|
|
|
409
409
|
constructor() {
|
|
410
410
|
super({
|
|
411
411
|
id: OpenSessionTargetPickerAction.ID,
|
|
412
|
-
title: ( localize2(
|
|
413
|
-
tooltip: ( localize(
|
|
412
|
+
title: ( localize2(4912, "Open Session Target Picker")),
|
|
413
|
+
tooltip: ( localize(4913, "Set Session Target")),
|
|
414
414
|
category: CHAT_CATEGORY,
|
|
415
415
|
f1: false,
|
|
416
416
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ContextKeyExpr.or(ChatContextKeys.chatSessionIsEmpty, ChatContextKeys.inAgentSessionsWelcome)), ( ChatContextKeys.currentlyEditingInput.negate()), ( ChatContextKeys.currentlyEditing.negate()))),
|
|
@@ -442,8 +442,8 @@ class OpenDelegationPickerAction extends Action2 {
|
|
|
442
442
|
constructor() {
|
|
443
443
|
super({
|
|
444
444
|
id: OpenDelegationPickerAction.ID,
|
|
445
|
-
title: ( localize2(
|
|
446
|
-
tooltip: ( localize(
|
|
445
|
+
title: ( localize2(4914, "Open Delegation Picker")),
|
|
446
|
+
tooltip: ( localize(4915, "Delegate Session")),
|
|
447
447
|
category: CHAT_CATEGORY,
|
|
448
448
|
f1: false,
|
|
449
449
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.chatSessionIsEmpty.negate()), ( ChatContextKeys.currentlyEditingInput.negate()), ( ChatContextKeys.currentlyEditing.negate()))),
|
|
@@ -470,8 +470,8 @@ class OpenWorkspacePickerAction extends Action2 {
|
|
|
470
470
|
constructor() {
|
|
471
471
|
super({
|
|
472
472
|
id: OpenWorkspacePickerAction.ID,
|
|
473
|
-
title: ( localize2(
|
|
474
|
-
tooltip: ( localize(
|
|
473
|
+
title: ( localize2(4916, "Open Workspace Picker")),
|
|
474
|
+
tooltip: ( localize(4917, "Select Target Workspace")),
|
|
475
475
|
category: CHAT_CATEGORY,
|
|
476
476
|
f1: false,
|
|
477
477
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ChatContextKeys.inAgentSessionsWelcome)),
|
|
@@ -497,7 +497,7 @@ class ChatSessionPrimaryPickerAction extends Action2 {
|
|
|
497
497
|
constructor() {
|
|
498
498
|
super({
|
|
499
499
|
id: ChatSessionPrimaryPickerAction.ID,
|
|
500
|
-
title: ( localize2(
|
|
500
|
+
title: ( localize2(4918, "Open Primary Session Picker")),
|
|
501
501
|
category: CHAT_CATEGORY,
|
|
502
502
|
f1: false,
|
|
503
503
|
precondition: ChatContextKeys.enabled,
|
|
@@ -525,7 +525,7 @@ class ChangeChatModelAction extends Action2 {
|
|
|
525
525
|
constructor() {
|
|
526
526
|
super({
|
|
527
527
|
id: ChangeChatModelAction.ID,
|
|
528
|
-
title: ( localize2(
|
|
528
|
+
title: ( localize2(4919, "Change Model")),
|
|
529
529
|
category: CHAT_CATEGORY,
|
|
530
530
|
f1: false,
|
|
531
531
|
precondition: ChatContextKeys.enabled
|
|
@@ -557,7 +557,7 @@ class ChatEditingSessionSubmitAction extends SubmitAction {
|
|
|
557
557
|
));
|
|
558
558
|
super({
|
|
559
559
|
id: ChatEditingSessionSubmitAction.ID,
|
|
560
|
-
title: ( localize2(
|
|
560
|
+
title: ( localize2(4920, "Send")),
|
|
561
561
|
f1: false,
|
|
562
562
|
category: CHAT_CATEGORY,
|
|
563
563
|
icon: Codicon.arrowUp,
|
|
@@ -569,7 +569,7 @@ class ChatEditingSessionSubmitAction extends SubmitAction {
|
|
|
569
569
|
group: "navigation",
|
|
570
570
|
alt: {
|
|
571
571
|
id: "workbench.action.chat.sendToNewChat",
|
|
572
|
-
title: ( localize2(
|
|
572
|
+
title: ( localize2(4904, "Send to New Chat")),
|
|
573
573
|
icon: Codicon.plus
|
|
574
574
|
}
|
|
575
575
|
}]
|
|
@@ -584,7 +584,7 @@ class SubmitWithoutDispatchingAction extends Action2 {
|
|
|
584
584
|
const precondition = ( ContextKeyExpr.and(ChatContextKeys.inputHasText, whenNotInProgress, ( ChatContextKeys.chatModeKind.isEqualTo(ChatModeKind.Ask))));
|
|
585
585
|
super({
|
|
586
586
|
id: SubmitWithoutDispatchingAction.ID,
|
|
587
|
-
title: ( localize2(
|
|
587
|
+
title: ( localize2(4921, "Send")),
|
|
588
588
|
f1: false,
|
|
589
589
|
category: CHAT_CATEGORY,
|
|
590
590
|
precondition,
|
|
@@ -612,7 +612,7 @@ class ChatSubmitWithCodebaseAction extends Action2 {
|
|
|
612
612
|
const precondition = ( ContextKeyExpr.and(ChatContextKeys.inputHasText, whenNotInProgress));
|
|
613
613
|
super({
|
|
614
614
|
id: ChatSubmitWithCodebaseAction.ID,
|
|
615
|
-
title: ( localize2(
|
|
615
|
+
title: ( localize2(4922, "Send with {0}", `${chatVariableLeader}codebase`)),
|
|
616
616
|
precondition,
|
|
617
617
|
keybinding: {
|
|
618
618
|
when: ChatContextKeys.inChatInput,
|
|
@@ -649,7 +649,7 @@ class SendToNewChatAction extends Action2 {
|
|
|
649
649
|
const precondition = ChatContextKeys.inputHasText;
|
|
650
650
|
super({
|
|
651
651
|
id: "workbench.action.chat.sendToNewChat",
|
|
652
|
-
title: ( localize2(
|
|
652
|
+
title: ( localize2(4904, "Send to New Chat")),
|
|
653
653
|
precondition,
|
|
654
654
|
category: CHAT_CATEGORY,
|
|
655
655
|
f1: false,
|
|
@@ -694,7 +694,7 @@ class CancelAction extends Action2 {
|
|
|
694
694
|
constructor() {
|
|
695
695
|
super({
|
|
696
696
|
id: CancelAction.ID,
|
|
697
|
-
title: ( localize2(
|
|
697
|
+
title: ( localize2(4923, "Cancel")),
|
|
698
698
|
f1: false,
|
|
699
699
|
category: CHAT_CATEGORY,
|
|
700
700
|
icon: Codicon.stopCircle,
|
|
@@ -757,7 +757,7 @@ class CancelEdit extends Action2 {
|
|
|
757
757
|
constructor() {
|
|
758
758
|
super({
|
|
759
759
|
id: CancelEdit.ID,
|
|
760
|
-
title: ( localize2(
|
|
760
|
+
title: ( localize2(4924, "Cancel Edit")),
|
|
761
761
|
f1: false,
|
|
762
762
|
category: CHAT_CATEGORY,
|
|
763
763
|
icon: Codicon.x,
|
|
@@ -796,7 +796,7 @@ class GetHandoffsAction extends Action2 {
|
|
|
796
796
|
constructor() {
|
|
797
797
|
super({
|
|
798
798
|
id: GetHandoffsAction.ID,
|
|
799
|
-
title: ( localize2(
|
|
799
|
+
title: ( localize2(4925, "Get Handoffs")),
|
|
800
800
|
f1: false,
|
|
801
801
|
category: CHAT_CATEGORY
|
|
802
802
|
});
|
|
@@ -824,7 +824,7 @@ class ExecuteHandoffAction extends Action2 {
|
|
|
824
824
|
constructor() {
|
|
825
825
|
super({
|
|
826
826
|
id: ExecuteHandoffAction.ID,
|
|
827
|
-
title: ( localize2(
|
|
827
|
+
title: ( localize2(4926, "Execute Handoff")),
|
|
828
828
|
f1: false,
|
|
829
829
|
category: CHAT_CATEGORY
|
|
830
830
|
});
|
|
@@ -30,7 +30,7 @@ function registerChatTitleActions() {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
id: "workbench.action.chat.markHelpful",
|
|
33
|
-
title: ( localize2(
|
|
33
|
+
title: ( localize2(5004, "Helpful")),
|
|
34
34
|
f1: false,
|
|
35
35
|
category: CHAT_CATEGORY,
|
|
36
36
|
icon: Codicon.thumbsup,
|
|
@@ -74,19 +74,17 @@ function registerChatTitleActions() {
|
|
|
74
74
|
result: item.result,
|
|
75
75
|
action: {
|
|
76
76
|
kind: "vote",
|
|
77
|
-
direction: ChatAgentVoteDirection.Up
|
|
78
|
-
reason: undefined
|
|
77
|
+
direction: ChatAgentVoteDirection.Up
|
|
79
78
|
}
|
|
80
79
|
});
|
|
81
80
|
item.setVote(ChatAgentVoteDirection.Up);
|
|
82
|
-
item.setVoteDownReason(undefined);
|
|
83
81
|
}
|
|
84
82
|
});
|
|
85
83
|
registerAction2(class MarkUnhelpfulAction extends Action2 {
|
|
86
84
|
constructor() {
|
|
87
85
|
super({
|
|
88
86
|
id: MarkUnhelpfulActionId,
|
|
89
|
-
title: ( localize2(
|
|
87
|
+
title: ( localize2(5005, "Unhelpful")),
|
|
90
88
|
f1: false,
|
|
91
89
|
category: CHAT_CATEGORY,
|
|
92
90
|
icon: Codicon.thumbsdown,
|
|
@@ -120,12 +118,7 @@ function registerChatTitleActions() {
|
|
|
120
118
|
if (!isResponseVM(item)) {
|
|
121
119
|
return;
|
|
122
120
|
}
|
|
123
|
-
const reason = args[1];
|
|
124
|
-
if (typeof reason !== "string") {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
121
|
item.setVote(ChatAgentVoteDirection.Down);
|
|
128
|
-
item.setVoteDownReason(reason);
|
|
129
122
|
const chatService = accessor.get(IChatService);
|
|
130
123
|
chatService.notifyUserAction({
|
|
131
124
|
agentId: item.agent?.id,
|
|
@@ -135,8 +128,7 @@ function registerChatTitleActions() {
|
|
|
135
128
|
result: item.result,
|
|
136
129
|
action: {
|
|
137
130
|
kind: "vote",
|
|
138
|
-
direction: ChatAgentVoteDirection.Down
|
|
139
|
-
reason: item.voteDownReason
|
|
131
|
+
direction: ChatAgentVoteDirection.Down
|
|
140
132
|
}
|
|
141
133
|
});
|
|
142
134
|
}
|
|
@@ -145,7 +137,7 @@ function registerChatTitleActions() {
|
|
|
145
137
|
constructor() {
|
|
146
138
|
super({
|
|
147
139
|
id: "workbench.action.chat.reportIssueForBug",
|
|
148
|
-
title: ( localize2(
|
|
140
|
+
title: ( localize2(5006, "Report Issue")),
|
|
149
141
|
f1: false,
|
|
150
142
|
category: CHAT_CATEGORY,
|
|
151
143
|
icon: Codicon.report,
|
|
@@ -192,7 +184,7 @@ function registerChatTitleActions() {
|
|
|
192
184
|
constructor() {
|
|
193
185
|
super({
|
|
194
186
|
id: "workbench.action.chat.retry",
|
|
195
|
-
title: ( localize2(
|
|
187
|
+
title: ( localize2(5007, "Retry")),
|
|
196
188
|
f1: false,
|
|
197
189
|
category: CHAT_CATEGORY,
|
|
198
190
|
icon: Codicon.refresh,
|
|
@@ -241,19 +233,19 @@ function registerChatTitleActions() {
|
|
|
241
233
|
const entriesModifiedInLastRequest = currentEditingSession.entries.get().filter(entry => entry.lastModifyingRequestId === item.requestId);
|
|
242
234
|
const shouldPrompt = entriesModifiedInLastRequest.length > 0 && configurationService.getValue("chat.editing.confirmEditRequestRetry") === true;
|
|
243
235
|
const confirmation = shouldPrompt ? await dialogService.confirm({
|
|
244
|
-
title: ( localize(
|
|
236
|
+
title: ( localize(5008, "Do you want to retry your last request?")),
|
|
245
237
|
message: entriesModifiedInLastRequest.length === 1 ? ( localize(
|
|
246
|
-
|
|
238
|
+
5009,
|
|
247
239
|
"This will undo edits made to {0} since this request.",
|
|
248
240
|
basename(entriesModifiedInLastRequest[0].modifiedURI)
|
|
249
241
|
)) : ( localize(
|
|
250
|
-
|
|
242
|
+
5010,
|
|
251
243
|
"This will undo edits made to {0} files in your working set since this request. Do you want to proceed?",
|
|
252
244
|
entriesModifiedInLastRequest.length
|
|
253
245
|
)),
|
|
254
|
-
primaryButton: ( localize(
|
|
246
|
+
primaryButton: ( localize(5011, "Yes")),
|
|
255
247
|
checkbox: {
|
|
256
|
-
label: ( localize(
|
|
248
|
+
label: ( localize(5012, "Don't ask again")),
|
|
257
249
|
checked: false
|
|
258
250
|
},
|
|
259
251
|
type: "info"
|
|
@@ -285,7 +277,7 @@ function registerChatTitleActions() {
|
|
|
285
277
|
constructor() {
|
|
286
278
|
super({
|
|
287
279
|
id: "workbench.action.chat.insertIntoNotebook",
|
|
288
|
-
title: ( localize2(
|
|
280
|
+
title: ( localize2(5013, "Insert into Notebook")),
|
|
289
281
|
f1: false,
|
|
290
282
|
category: CHAT_CATEGORY,
|
|
291
283
|
icon: Codicon.insert,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
|
|
3
|
+
import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
4
|
+
export interface IToolConfirmationActionContext {
|
|
5
|
+
readonly sessionResource?: URI;
|
|
6
|
+
}
|
|
7
|
+
export declare class ConfigureToolsAction extends Action2 {
|
|
8
|
+
static ID: string;
|
|
9
|
+
constructor();
|
|
10
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
|
|
11
|
+
private extractWidget;
|
|
12
|
+
private extractSource;
|
|
13
|
+
}
|
|
14
|
+
export declare function registerChatToolActions(): void;
|