@codingame/monaco-vscode-katex-common 30.0.1 → 31.0.0
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 +3 -3
- package/vscode/src/vs/platform/actions/browser/actionbar.d.ts +16 -0
- package/vscode/src/vs/platform/actions/browser/actionbar.js +22 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.d.ts +50 -0
- package/vscode/src/vs/platform/networkFilter/common/domainMatcher.js +138 -0
- package/vscode/src/vs/platform/networkFilter/common/settings.d.ts +12 -0
- package/vscode/src/vs/platform/networkFilter/common/settings.js +14 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.d.ts +18 -0
- package/vscode/src/vs/platform/sandbox/common/sandboxHelperIpc.js +13 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.d.ts +73 -0
- package/vscode/src/vs/platform/sandbox/common/terminalSandboxService.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +51 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +64 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +73 -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 +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +20 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +73 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +41 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +13 -9
- 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/tools/toolSetsContribution.js +14 -15
- 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 +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatArtifactsWidget.js +339 -161
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +9 -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 +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +33 -5
- 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/chatCollections.d.ts +43 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +147 -2
- 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 +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +55 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +42 -10
- 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/chatIncrementalRendering/animations/animation.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/animationRegistry.js +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/animations/blockAnimations.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/buffer.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/bufferRegistry.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/offBuffer.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/paragraphBuffer.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/buffers/wordBuffer.js +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/chatIncrementalRendering.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatIncrementalRendering/media/chatIncrementalRendering.css +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +111 -145
- 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.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPlanReviewPart.js +425 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +16 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +68 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +101 -45
- 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.d.ts +36 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +217 -25
- 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 +23 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +168 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +18 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +7 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +7 -19
- 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.d.ts +24 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +104 -78
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css +257 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css +286 -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 +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +25 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +29 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +258 -321
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.js +392 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +24 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +9 -8
- 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/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +2 -3
- 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 +38 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +577 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +4 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +58 -75
- 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 +44 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +362 -188
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +42 -95
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +9 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +57 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +21 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/{modelPickerActionItem2.js → modelPickerActionItem.js} +5 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +38 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +4 -5
- 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 +94 -40
- 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/chatArtifactExtraction.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatArtifactExtraction.js +218 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatImageExtraction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +12 -21
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +2 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +355 -156
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +2 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +72 -65
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +4 -43
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +238 -204
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +4 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +128 -115
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +6 -9
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +152 -49
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +64 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +40 -40
- 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/terminal/terminalContribChatExports.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/commandFileWriteParser.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandParsers/sedFileWriteParser.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +165 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +163 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +142 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +144 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +174 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +43 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +256 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +94 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +221 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js +392 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +243 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +310 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +168 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineSandboxAnalyzer.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/commandLinePresenter.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/nodeCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/pythonCommandLinePresenter.js +37 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/rubyCommandLinePresenter.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLinePresenter/sandboxedCommandLinePresenter.js +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineBackgroundDetachRewriter.js +47 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +27 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +29 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineSandboxRewriter.js +32 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +108 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +412 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +192 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +2258 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +43 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +118 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalToolAutoApprove.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/toolIds.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +141 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +608 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +0 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +0 -196
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +0 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +0 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +0 -107
package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js
CHANGED
|
@@ -93,12 +93,12 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
93
93
|
contextNode.tabIndex = 0;
|
|
94
94
|
contextNode.classList.toggle("disabled", !context.enabled);
|
|
95
95
|
const file = context.uri;
|
|
96
|
-
const attachmentTypeName = file?.scheme === Schemas.vscodeNotebookCell ? ( localize(
|
|
97
|
-
const contextLabel = context.name ?? (file ? basename(file) : ( localize(
|
|
96
|
+
const attachmentTypeName = file?.scheme === Schemas.vscodeNotebookCell ? ( localize(5619, "cell")) : ( localize(5620, "file"));
|
|
97
|
+
const contextLabel = context.name ?? (file ? basename(file) : ( localize(5621, "context")));
|
|
98
98
|
const isSuggestedEnabled = this.configService.getValue("chat.implicitContext.suggestedContext");
|
|
99
99
|
if (isSuggestedEnabled) {
|
|
100
100
|
if (!isSelection) {
|
|
101
|
-
const buttonMsg = context.enabled ? ( localize(
|
|
101
|
+
const buttonMsg = context.enabled ? ( localize(5622, "Disable {0} context {1}", attachmentTypeName, contextLabel)) : ( localize(5623, "Add {0} to context", contextLabel));
|
|
102
102
|
const toggleButton = this.renderDisposables.add(( new Button(contextNode, {
|
|
103
103
|
supportIcons: true,
|
|
104
104
|
title: buttonMsg
|
|
@@ -113,7 +113,7 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
113
113
|
context.enabled = false;
|
|
114
114
|
}));
|
|
115
115
|
} else {
|
|
116
|
-
const pinButtonMsg = ( localize(
|
|
116
|
+
const pinButtonMsg = ( localize(5624, "Pin selection"));
|
|
117
117
|
const pinButton = this.renderDisposables.add(( new Button(contextNode, {
|
|
118
118
|
supportIcons: true,
|
|
119
119
|
title: pinButtonMsg
|
|
@@ -146,7 +146,7 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
146
146
|
})
|
|
147
147
|
);
|
|
148
148
|
} else {
|
|
149
|
-
const buttonMsg = context.enabled ? ( localize(
|
|
149
|
+
const buttonMsg = context.enabled ? ( localize(5625, "Disable current {0} context", attachmentTypeName)) : ( localize(5626, "Enable current {0} context", attachmentTypeName));
|
|
150
150
|
const toggleButton = this.renderDisposables.add(( new Button(contextNode, {
|
|
151
151
|
supportIcons: true,
|
|
152
152
|
title: buttonMsg
|
|
@@ -170,9 +170,9 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
170
170
|
context.icon,
|
|
171
171
|
context.value.resourceUri,
|
|
172
172
|
markdownTooltip,
|
|
173
|
-
( localize(
|
|
173
|
+
( localize(5627, "Current file context"))
|
|
174
174
|
);
|
|
175
|
-
contextNode.ariaLabel = ( localize(
|
|
175
|
+
contextNode.ariaLabel = ( localize(5628, "Suggested context, {0}", context.name));
|
|
176
176
|
} else {
|
|
177
177
|
title = this.renderResource(context.value, context.isSelection, context.enabled, label, contextNode);
|
|
178
178
|
}
|
|
@@ -229,23 +229,23 @@ let ImplicitContextAttachmentWidget = class ImplicitContextAttachmentWidget exte
|
|
|
229
229
|
renderResource(attachmentValue, isSelection, enabled, label, contextNode) {
|
|
230
230
|
const file = URI.isUri(attachmentValue) ? attachmentValue : attachmentValue.uri;
|
|
231
231
|
const range = URI.isUri(attachmentValue) || !isSelection ? undefined : attachmentValue.range;
|
|
232
|
-
const attachmentTypeName = file.scheme === Schemas.vscodeNotebookCell ? ( localize(
|
|
232
|
+
const attachmentTypeName = file.scheme === Schemas.vscodeNotebookCell ? ( localize(5619, "cell")) : ( localize(5620, "file"));
|
|
233
233
|
const fileBasename = basename(file);
|
|
234
234
|
const fileDirname = dirname(file);
|
|
235
235
|
const friendlyName = `${fileBasename} ${fileDirname}`;
|
|
236
236
|
const ariaLabel = range ? ( localize(
|
|
237
|
-
|
|
237
|
+
5629,
|
|
238
238
|
"Suggested context, {0}, {1}, line {2} to line {3}",
|
|
239
239
|
attachmentTypeName,
|
|
240
240
|
friendlyName,
|
|
241
241
|
range.startLineNumber,
|
|
242
242
|
range.endLineNumber
|
|
243
|
-
)) : ( localize(
|
|
243
|
+
)) : ( localize(5630, "Suggested context, {0}, {1}", attachmentTypeName, friendlyName));
|
|
244
244
|
const uriLabel = this.labelService.getUriLabel(file, {
|
|
245
245
|
relative: true
|
|
246
246
|
});
|
|
247
|
-
const currentFile = ( localize(
|
|
248
|
-
const inactive = ( localize(
|
|
247
|
+
const currentFile = ( localize(5631, "Current {0} context", attachmentTypeName));
|
|
248
|
+
const inactive = ( localize(5632, "Enable current {0} context", attachmentTypeName));
|
|
249
249
|
const currentFileHint = enabled || isSelection ? currentFile : inactive;
|
|
250
250
|
const title = `${currentFileHint}\n${uriLabel}`;
|
|
251
251
|
label.setFile(file, {
|
|
@@ -3,7 +3,6 @@ import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/
|
|
|
3
3
|
import { Action2, IAction2Options } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
4
4
|
import { IChatEditingSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
|
|
5
5
|
import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
6
|
-
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
7
6
|
export declare abstract class EditingSessionAction extends Action2 {
|
|
8
7
|
constructor(opts: Readonly<IAction2Options>);
|
|
9
8
|
run(accessor: ServicesAccessor, ...args: unknown[]): any;
|
|
@@ -37,11 +36,6 @@ export declare class ChatEditingShowChangesAction extends EditingSessionAction {
|
|
|
37
36
|
constructor();
|
|
38
37
|
runEditingSessionAction(accessor: ServicesAccessor, editingSession: IChatEditingSession, chatWidget: IChatWidget, ...args: unknown[]): Promise<void>;
|
|
39
38
|
}
|
|
40
|
-
export declare class ViewAllSessionChangesAction extends Action2 {
|
|
41
|
-
static readonly ID = "chatEditing.viewAllSessionChanges";
|
|
42
|
-
constructor();
|
|
43
|
-
run(accessor: ServicesAccessor, sessionOrSessionResource?: URI | IAgentSession): Promise<void>;
|
|
44
|
-
}
|
|
45
39
|
export interface ChatEditingActionContext {
|
|
46
40
|
readonly sessionResource: URI;
|
|
47
41
|
readonly requestId: string;
|
|
@@ -14,17 +14,15 @@ import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor
|
|
|
14
14
|
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
15
|
import { Action2, registerAction2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
16
16
|
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
17
|
-
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
18
17
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
19
18
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
20
19
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
21
20
|
import { EditorActivation } from '@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor';
|
|
22
21
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
23
22
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
24
|
-
import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
|
|
25
23
|
import { isImplicitVariableEntry, isWorkspaceVariableEntry, isStringVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
26
24
|
import { isChatViewTitleActionContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatActions';
|
|
27
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
25
|
+
import { ChatContextKeys, ChatContextKeyExprs } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
28
26
|
import { chatEditingWidgetFileStateContextKey, ModifiedFileEntryState, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, chatEditingResourceContextKey, decidedChatEditingResourceContextKey, applyingChatEditsFailedContextKey, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService';
|
|
29
27
|
import { IChatEditingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService.service';
|
|
30
28
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
@@ -32,8 +30,6 @@ import { isRequestVM, isResponseVM, isChatTreeItem } from '@codingame/monaco-vsc
|
|
|
32
30
|
import { ChatAgentLocation, ChatConfiguration, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
33
31
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
34
32
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
35
|
-
import { isAgentSession } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
36
|
-
import { AgentSessionProviders } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
37
33
|
|
|
38
34
|
class EditingSessionAction extends Action2 {
|
|
39
35
|
constructor(opts) {
|
|
@@ -86,7 +82,7 @@ registerAction2(class OpenFileInDiffAction extends WorkingSetAction {
|
|
|
86
82
|
constructor() {
|
|
87
83
|
super({
|
|
88
84
|
id: "chatEditing.openFileInDiff",
|
|
89
|
-
title: ( localize2(
|
|
85
|
+
title: ( localize2(6057, "Open Changes in Diff Editor")),
|
|
90
86
|
icon: Codicon.diffSingle,
|
|
91
87
|
menu: [{
|
|
92
88
|
id: MenuId.ChatEditingWidgetModifiedFilesToolbar,
|
|
@@ -117,7 +113,7 @@ registerAction2(class AcceptAction extends WorkingSetAction {
|
|
|
117
113
|
constructor() {
|
|
118
114
|
super({
|
|
119
115
|
id: "chatEditing.acceptFile",
|
|
120
|
-
title: ( localize2(
|
|
116
|
+
title: ( localize2(6058, "Keep")),
|
|
121
117
|
icon: Codicon.check,
|
|
122
118
|
menu: [{
|
|
123
119
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(
|
|
@@ -143,7 +139,7 @@ registerAction2(class DiscardAction extends WorkingSetAction {
|
|
|
143
139
|
constructor() {
|
|
144
140
|
super({
|
|
145
141
|
id: "chatEditing.discardFile",
|
|
146
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(6059, "Undo")),
|
|
147
143
|
icon: Codicon.discard,
|
|
148
144
|
menu: [{
|
|
149
145
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(
|
|
@@ -169,9 +165,9 @@ class ChatEditingAcceptAllAction extends EditingSessionAction {
|
|
|
169
165
|
constructor() {
|
|
170
166
|
super({
|
|
171
167
|
id: "chatEditing.acceptAllFiles",
|
|
172
|
-
title: ( localize(
|
|
168
|
+
title: ( localize(6060, "Keep")),
|
|
173
169
|
icon: Codicon.check,
|
|
174
|
-
tooltip: ( localize(
|
|
170
|
+
tooltip: ( localize(6061, "Keep All Edits")),
|
|
175
171
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
176
172
|
keybinding: {
|
|
177
173
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -195,9 +191,9 @@ class ChatEditingDiscardAllAction extends EditingSessionAction {
|
|
|
195
191
|
constructor() {
|
|
196
192
|
super({
|
|
197
193
|
id: "chatEditing.discardAllFiles",
|
|
198
|
-
title: ( localize(
|
|
194
|
+
title: ( localize(6062, "Undo")),
|
|
199
195
|
icon: Codicon.discard,
|
|
200
|
-
tooltip: ( localize(
|
|
196
|
+
tooltip: ( localize(6063, "Undo All Edits")),
|
|
201
197
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
202
198
|
menu: [{
|
|
203
199
|
id: MenuId.ChatEditingWidgetToolbar,
|
|
@@ -228,8 +224,8 @@ class ToggleExplanationWidgetAction extends EditingSessionAction {
|
|
|
228
224
|
constructor() {
|
|
229
225
|
super({
|
|
230
226
|
id: ToggleExplanationWidgetAction.ID,
|
|
231
|
-
title: ( localize(
|
|
232
|
-
tooltip: ( localize(
|
|
227
|
+
title: ( localize(6064, "Explain")),
|
|
228
|
+
tooltip: ( localize(6065, "Toggle Change Explanations")),
|
|
233
229
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
234
230
|
menu: [{
|
|
235
231
|
id: MenuId.ChatEditingWidgetToolbar,
|
|
@@ -253,17 +249,17 @@ async function discardAllEditsWithConfirmation(accessor, currentEditingSession)
|
|
|
253
249
|
const entries = currentEditingSession.entries.get().filter(e => e.state.get() === ModifiedFileEntryState.Modified);
|
|
254
250
|
if (entries.length > 0) {
|
|
255
251
|
const confirmation = await dialogService.confirm({
|
|
256
|
-
title: ( localize(
|
|
252
|
+
title: ( localize(6066, "Undo all edits?")),
|
|
257
253
|
message: entries.length === 1 ? ( localize(
|
|
258
|
-
|
|
254
|
+
6067,
|
|
259
255
|
"This will undo changes made in {0}. Do you want to proceed?",
|
|
260
256
|
basename(entries[0].modifiedURI)
|
|
261
257
|
)) : ( localize(
|
|
262
|
-
|
|
258
|
+
6068,
|
|
263
259
|
"This will undo changes made in {0} files. Do you want to proceed?",
|
|
264
260
|
entries.length
|
|
265
261
|
)),
|
|
266
|
-
primaryButton: ( localize(
|
|
262
|
+
primaryButton: ( localize(6069, "Yes")),
|
|
267
263
|
type: "info"
|
|
268
264
|
});
|
|
269
265
|
if (!confirmation.confirmed) {
|
|
@@ -278,7 +274,7 @@ class ChatEditingShowChangesAction extends EditingSessionAction {
|
|
|
278
274
|
this.ID = "chatEditing.viewChanges";
|
|
279
275
|
}
|
|
280
276
|
static {
|
|
281
|
-
this.LABEL = ( localize(
|
|
277
|
+
this.LABEL = ( localize(6070, "View All Edits"));
|
|
282
278
|
}
|
|
283
279
|
constructor() {
|
|
284
280
|
super({
|
|
@@ -304,61 +300,6 @@ class ChatEditingShowChangesAction extends EditingSessionAction {
|
|
|
304
300
|
}
|
|
305
301
|
}
|
|
306
302
|
registerAction2(ChatEditingShowChangesAction);
|
|
307
|
-
class ViewAllSessionChangesAction extends Action2 {
|
|
308
|
-
static {
|
|
309
|
-
this.ID = "chatEditing.viewAllSessionChanges";
|
|
310
|
-
}
|
|
311
|
-
constructor() {
|
|
312
|
-
super({
|
|
313
|
-
id: ViewAllSessionChangesAction.ID,
|
|
314
|
-
title: ( localize2(5978, "View All Changes")),
|
|
315
|
-
icon: Codicon.diffMultiple,
|
|
316
|
-
category: CHAT_CATEGORY,
|
|
317
|
-
precondition: ChatContextKeys.hasAgentSessionChanges,
|
|
318
|
-
menu: [{
|
|
319
|
-
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
320
|
-
group: "navigation",
|
|
321
|
-
order: 10
|
|
322
|
-
}]
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
async run(accessor, sessionOrSessionResource) {
|
|
326
|
-
const agentSessionsService = accessor.get(IAgentSessionsService);
|
|
327
|
-
const commandService = accessor.get(ICommandService);
|
|
328
|
-
const chatEditingService = accessor.get(IChatEditingService);
|
|
329
|
-
if (!URI.isUri(sessionOrSessionResource) && !isAgentSession(sessionOrSessionResource)) {
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
const sessionResource = URI.isUri(sessionOrSessionResource) ? sessionOrSessionResource : sessionOrSessionResource.resource;
|
|
333
|
-
const session = agentSessionsService.getSession(sessionResource);
|
|
334
|
-
const changes = session?.changes;
|
|
335
|
-
if (!session || !changes) {
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
if (session.providerType === AgentSessionProviders.Background || session.providerType === AgentSessionProviders.Cloud) {
|
|
339
|
-
if (!Array.isArray(changes) || changes.length === 0) {
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
const resources = ( changes.map(d => ({
|
|
343
|
-
originalUri: d.originalUri,
|
|
344
|
-
modifiedUri: d.modifiedUri
|
|
345
|
-
})));
|
|
346
|
-
await commandService.executeCommand("_workbench.openMultiDiffEditor", {
|
|
347
|
-
multiDiffSourceUri: sessionResource.with({
|
|
348
|
-
scheme: sessionResource.scheme + "-worktree-changes"
|
|
349
|
-
}),
|
|
350
|
-
title: ( localize(5979, "All Session Changes")),
|
|
351
|
-
resources
|
|
352
|
-
});
|
|
353
|
-
session?.setRead(true);
|
|
354
|
-
return;
|
|
355
|
-
}
|
|
356
|
-
const editingSession = chatEditingService.getEditingSession(sessionResource);
|
|
357
|
-
await editingSession?.show();
|
|
358
|
-
session?.setRead(true);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
registerAction2(ViewAllSessionChangesAction);
|
|
362
303
|
function filterToUserAttachedContext(attachedContext) {
|
|
363
304
|
if (!attachedContext?.length) {
|
|
364
305
|
return [];
|
|
@@ -395,13 +336,13 @@ async function restoreSnapshotWithConfirmationByRequestId(accessor, sessionResou
|
|
|
395
336
|
if (editsToUndo === 1) {
|
|
396
337
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
397
338
|
message = ( localize(
|
|
398
|
-
|
|
339
|
+
6071,
|
|
399
340
|
"This will remove your last request and undo the edits made to {0}. Do you want to proceed?",
|
|
400
341
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
401
342
|
));
|
|
402
343
|
} else {
|
|
403
344
|
message = ( localize(
|
|
404
|
-
|
|
345
|
+
6072,
|
|
405
346
|
"This will remove your last request and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
406
347
|
entriesModifiedInRequestsToRemove.length
|
|
407
348
|
));
|
|
@@ -409,24 +350,24 @@ async function restoreSnapshotWithConfirmationByRequestId(accessor, sessionResou
|
|
|
409
350
|
} else {
|
|
410
351
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
411
352
|
message = ( localize(
|
|
412
|
-
|
|
353
|
+
6073,
|
|
413
354
|
"This will remove all subsequent requests and undo edits made to {0}. Do you want to proceed?",
|
|
414
355
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
415
356
|
));
|
|
416
357
|
} else {
|
|
417
358
|
message = ( localize(
|
|
418
|
-
|
|
359
|
+
6074,
|
|
419
360
|
"This will remove all subsequent requests and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
420
361
|
entriesModifiedInRequestsToRemove.length
|
|
421
362
|
));
|
|
422
363
|
}
|
|
423
364
|
}
|
|
424
365
|
const confirmation = shouldPrompt ? await dialogService.confirm({
|
|
425
|
-
title: editsToUndo === 1 ? ( localize(
|
|
366
|
+
title: editsToUndo === 1 ? ( localize(6075, "Do you want to undo your last edit?")) : ( localize(6076, "Do you want to undo {0} edits?", editsToUndo)),
|
|
426
367
|
message: message,
|
|
427
|
-
primaryButton: ( localize(
|
|
368
|
+
primaryButton: ( localize(6077, "Yes")),
|
|
428
369
|
checkbox: {
|
|
429
|
-
label: ( localize(
|
|
370
|
+
label: ( localize(6078, "Don't ask again")),
|
|
430
371
|
checked: false
|
|
431
372
|
},
|
|
432
373
|
type: "info"
|
|
@@ -440,6 +381,7 @@ async function restoreSnapshotWithConfirmationByRequestId(accessor, sessionResou
|
|
|
440
381
|
if (confirmation.checkboxChecked) {
|
|
441
382
|
await configurationService.updateValue("chat.editing.confirmEditRequestRemoval", false);
|
|
442
383
|
}
|
|
384
|
+
await chatService.cancelCurrentRequestForSession(sessionResource, "restoreCheckpoint");
|
|
443
385
|
const snapshotRequestId = chatRequests[itemIndex].id;
|
|
444
386
|
await session.restoreSnapshot(snapshotRequestId, undefined);
|
|
445
387
|
return true;
|
|
@@ -455,7 +397,7 @@ registerAction2(class RemoveAction extends Action2 {
|
|
|
455
397
|
constructor() {
|
|
456
398
|
super({
|
|
457
399
|
id: "workbench.action.chat.undoEdits",
|
|
458
|
-
title: ( localize2(
|
|
400
|
+
title: ( localize2(6079, "Undo Requests")),
|
|
459
401
|
f1: false,
|
|
460
402
|
category: CHAT_CATEGORY,
|
|
461
403
|
icon: Codicon.discard,
|
|
@@ -471,7 +413,7 @@ registerAction2(class RemoveAction extends Action2 {
|
|
|
471
413
|
id: MenuId.ChatMessageTitle,
|
|
472
414
|
group: "navigation",
|
|
473
415
|
order: 2,
|
|
474
|
-
when: ( ContextKeyExpr.and(( ( ContextKeyExpr.equals(`config.${ChatConfiguration.EditRequests}`, "input")).negate()), ( ContextKeyExpr.equals(`config.${ChatConfiguration.CheckpointsEnabled}`, false)), ( ChatContextKeys.lockedToCodingAgent.negate())))
|
|
416
|
+
when: ( ContextKeyExpr.and(( ( ContextKeyExpr.equals(`config.${ChatConfiguration.EditRequests}`, "input")).negate()), ( ContextKeyExpr.equals(`config.${ChatConfiguration.CheckpointsEnabled}`, false)), ( ContextKeyExpr.or(( ChatContextKeys.lockedToCodingAgent.negate()), ChatContextKeyExprs.isAgentHostSession))))
|
|
475
417
|
}]
|
|
476
418
|
});
|
|
477
419
|
}
|
|
@@ -501,8 +443,8 @@ registerAction2(class RestoreCheckpointAction extends Action2 {
|
|
|
501
443
|
constructor() {
|
|
502
444
|
super({
|
|
503
445
|
id: "workbench.action.chat.restoreCheckpoint",
|
|
504
|
-
title: ( localize2(
|
|
505
|
-
tooltip: ( localize2(
|
|
446
|
+
title: ( localize2(6080, "Restore Checkpoint")),
|
|
447
|
+
tooltip: ( localize2(6081, "Restores workspace and chat to this point")),
|
|
506
448
|
f1: false,
|
|
507
449
|
category: CHAT_CATEGORY,
|
|
508
450
|
keybinding: {
|
|
@@ -517,7 +459,7 @@ registerAction2(class RestoreCheckpointAction extends Action2 {
|
|
|
517
459
|
id: MenuId.ChatMessageCheckpoint,
|
|
518
460
|
group: "navigation",
|
|
519
461
|
order: 2,
|
|
520
|
-
when: ( ContextKeyExpr.and(ChatContextKeys.isRequest, ( ChatContextKeys.lockedToCodingAgent.negate()), ( ChatContextKeys.isFirstRequest.negate())))
|
|
462
|
+
when: ( ContextKeyExpr.and(ChatContextKeys.isRequest, ( ContextKeyExpr.or(( ChatContextKeys.lockedToCodingAgent.negate()), ChatContextKeyExprs.isAgentHostSession)), ( ChatContextKeys.isFirstRequest.negate())))
|
|
521
463
|
}]
|
|
522
464
|
});
|
|
523
465
|
}
|
|
@@ -547,15 +489,15 @@ registerAction2(class StartOverAction extends Action2 {
|
|
|
547
489
|
constructor() {
|
|
548
490
|
super({
|
|
549
491
|
id: "workbench.action.chat.startOver",
|
|
550
|
-
title: ( localize2(
|
|
551
|
-
tooltip: ( localize2(
|
|
492
|
+
title: ( localize2(6082, "Start Over")),
|
|
493
|
+
tooltip: ( localize2(6083, "Clears the chat and undoes all changes")),
|
|
552
494
|
f1: false,
|
|
553
495
|
category: CHAT_CATEGORY,
|
|
554
496
|
menu: [{
|
|
555
497
|
id: MenuId.ChatMessageCheckpoint,
|
|
556
498
|
group: "navigation",
|
|
557
499
|
order: 2,
|
|
558
|
-
when: ( ContextKeyExpr.and(ChatContextKeys.isRequest, ( ChatContextKeys.lockedToCodingAgent.negate()), ChatContextKeys.isFirstRequest))
|
|
500
|
+
when: ( ContextKeyExpr.and(ChatContextKeys.isRequest, ( ContextKeyExpr.or(( ChatContextKeys.lockedToCodingAgent.negate()), ChatContextKeyExprs.isAgentHostSession)), ChatContextKeys.isFirstRequest))
|
|
559
501
|
}]
|
|
560
502
|
});
|
|
561
503
|
}
|
|
@@ -577,11 +519,11 @@ registerAction2(class RestoreLastCheckpoint extends Action2 {
|
|
|
577
519
|
constructor() {
|
|
578
520
|
super({
|
|
579
521
|
id: "workbench.action.chat.restoreLastCheckpoint",
|
|
580
|
-
title: ( localize2(
|
|
522
|
+
title: ( localize2(6084, "Restore to Last Checkpoint")),
|
|
581
523
|
f1: true,
|
|
582
524
|
category: CHAT_CATEGORY,
|
|
583
525
|
icon: Codicon.discard,
|
|
584
|
-
precondition: ( ContextKeyExpr.and(ChatContextKeys.inChatSession, ( ContextKeyExpr.equals(`config.${ChatConfiguration.CheckpointsEnabled}`, true)), ( ChatContextKeys.lockedToCodingAgent.negate())))
|
|
526
|
+
precondition: ( ContextKeyExpr.and(ChatContextKeys.inChatSession, ( ContextKeyExpr.equals(`config.${ChatConfiguration.CheckpointsEnabled}`, true)), ( ContextKeyExpr.or(( ChatContextKeys.lockedToCodingAgent.negate()), ChatContextKeyExprs.isAgentHostSession))))
|
|
585
527
|
});
|
|
586
528
|
}
|
|
587
529
|
async run(accessor, ...args) {
|
|
@@ -602,7 +544,7 @@ registerAction2(class RestoreLastCheckpoint extends Action2 {
|
|
|
602
544
|
}
|
|
603
545
|
const checkpointRequest = chatModel.checkpoint;
|
|
604
546
|
if (!checkpointRequest) {
|
|
605
|
-
alert(( localize(
|
|
547
|
+
alert(( localize(6085, "There is no checkpoint to restore.")));
|
|
606
548
|
return;
|
|
607
549
|
}
|
|
608
550
|
widget?.viewModel?.model.setCheckpoint(checkpointRequest.id);
|
|
@@ -615,7 +557,7 @@ registerAction2(class EditAction extends Action2 {
|
|
|
615
557
|
constructor() {
|
|
616
558
|
super({
|
|
617
559
|
id: "workbench.action.chat.editRequests",
|
|
618
|
-
title: ( localize2(
|
|
560
|
+
title: ( localize2(6086, "Edit Request")),
|
|
619
561
|
f1: false,
|
|
620
562
|
category: CHAT_CATEGORY,
|
|
621
563
|
icon: Codicon.edit,
|
|
@@ -654,7 +596,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
654
596
|
constructor() {
|
|
655
597
|
super({
|
|
656
598
|
id: OpenWorkingSetHistoryAction.id,
|
|
657
|
-
title: ( localize(
|
|
599
|
+
title: ( localize(6087, "Open File")),
|
|
658
600
|
menu: [{
|
|
659
601
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
660
602
|
group: "navigation",
|
|
@@ -680,7 +622,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
680
622
|
constructor() {
|
|
681
623
|
super({
|
|
682
624
|
id: OpenWorkingSetHistoryAction.id,
|
|
683
|
-
title: ( localize(
|
|
625
|
+
title: ( localize(6088, "Open File Snapshot")),
|
|
684
626
|
menu: [{
|
|
685
627
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
686
628
|
group: "navigation",
|
|
@@ -704,7 +646,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
704
646
|
if (snapshot) {
|
|
705
647
|
const editor = await editorService.openEditor({
|
|
706
648
|
resource: snapshot,
|
|
707
|
-
label: ( localize(
|
|
649
|
+
label: ( localize(6089, "{0} (Snapshot)", basename(context.uri))),
|
|
708
650
|
options: {
|
|
709
651
|
activation: EditorActivation.ACTIVATE
|
|
710
652
|
}
|
|
@@ -721,7 +663,7 @@ registerAction2(class ResolveSymbolsContextAction extends EditingSessionAction {
|
|
|
721
663
|
constructor() {
|
|
722
664
|
super({
|
|
723
665
|
id: "workbench.action.edits.addFilesFromReferences",
|
|
724
|
-
title: ( localize2(
|
|
666
|
+
title: ( localize2(6090, "Add Files From References")),
|
|
725
667
|
f1: false,
|
|
726
668
|
category: CHAT_CATEGORY,
|
|
727
669
|
menu: {
|
|
@@ -789,7 +731,7 @@ class ViewPreviousEditsAction extends EditingSessionAction {
|
|
|
789
731
|
this.Id = "chatEditing.viewPreviousEdits";
|
|
790
732
|
}
|
|
791
733
|
static {
|
|
792
|
-
this.Label = ( localize(
|
|
734
|
+
this.Label = ( localize(6091, "View Previous Edits"));
|
|
793
735
|
}
|
|
794
736
|
constructor() {
|
|
795
737
|
super({
|
|
@@ -826,4 +768,4 @@ CommandsRegistry.registerCommand("_chat.editSessions.accept", async (accessor, r
|
|
|
826
768
|
}
|
|
827
769
|
});
|
|
828
770
|
|
|
829
|
-
export { ChatEditingAcceptAllAction, ChatEditingDiscardAllAction, ChatEditingShowChangesAction, EditingSessionAction, ToggleExplanationWidgetAction,
|
|
771
|
+
export { ChatEditingAcceptAllAction, ChatEditingDiscardAllAction, ChatEditingShowChangesAction, EditingSessionAction, ToggleExplanationWidgetAction, ViewPreviousEditsAction, discardAllEditsWithConfirmation, getEditingSessionContext };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js
CHANGED
|
@@ -65,7 +65,7 @@ class NavigateAction extends ChatEditingEditorAction {
|
|
|
65
65
|
constructor(next) {
|
|
66
66
|
super({
|
|
67
67
|
id: next ? "chatEditor.action.navigateNext" : "chatEditor.action.navigatePrevious",
|
|
68
|
-
title: next ? ( localize2(
|
|
68
|
+
title: next ? ( localize2(6093, "Go to Next Chat Edit")) : ( localize2(6094, "Go to Previous Chat Edit")),
|
|
69
69
|
icon: next ? Codicon.arrowDown : Codicon.arrowUp,
|
|
70
70
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ctxHasEditorModification)),
|
|
71
71
|
keybinding: {
|
|
@@ -129,9 +129,9 @@ class KeepOrUndoAction extends ChatEditingEditorAction {
|
|
|
129
129
|
constructor(id, _keep) {
|
|
130
130
|
super({
|
|
131
131
|
id,
|
|
132
|
-
title: _keep ? ( localize2(
|
|
133
|
-
shortTitle: _keep ? ( localize2(
|
|
134
|
-
tooltip: _keep ? ( localize2(
|
|
132
|
+
title: _keep ? ( localize2(6095, "Keep Chat Edits")) : ( localize2(6096, "Undo Chat Edits")),
|
|
133
|
+
shortTitle: _keep ? ( localize2(6097, "Keep")) : ( localize2(6098, "Undo")),
|
|
134
|
+
tooltip: _keep ? ( localize2(6099, "Keep Chat Edits in this File")) : ( localize2(6100, "Undo Chat Edits in this File")),
|
|
135
135
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
136
136
|
icon: _keep ? Codicon.check : Codicon.discard,
|
|
137
137
|
f1: true,
|
|
@@ -184,8 +184,8 @@ class AcceptRejectHunkAction extends ChatEditingEditorAction {
|
|
|
184
184
|
constructor(_accept) {
|
|
185
185
|
super({
|
|
186
186
|
id: _accept ? acceptHunkId : undoHunkId,
|
|
187
|
-
title: _accept ? ( localize2(
|
|
188
|
-
shortTitle: _accept ? ( localize2(
|
|
187
|
+
title: _accept ? ( localize2(6101, "Keep this Change")) : ( localize2(6102, "Undo this Change")),
|
|
188
|
+
shortTitle: _accept ? ( localize2(6103, "Keep")) : ( localize2(6104, "Undo")),
|
|
189
189
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
190
190
|
f1: true,
|
|
191
191
|
keybinding: {
|
|
@@ -233,7 +233,7 @@ class ToggleDiffAction extends ChatEditingEditorAction {
|
|
|
233
233
|
constructor() {
|
|
234
234
|
super({
|
|
235
235
|
id: "chatEditor.action.toggleDiff",
|
|
236
|
-
title: ( localize2(
|
|
236
|
+
title: ( localize2(6105, "Toggle Diff Editor for Chat Edits")),
|
|
237
237
|
category: CHAT_CATEGORY,
|
|
238
238
|
toggled: {
|
|
239
239
|
condition: ( ContextKeyExpr.or(EditorContextKeys.inDiffEditor, ( ActiveEditorContext.isEqualTo(TEXT_DIFF_EDITOR_ID)))),
|
|
@@ -270,7 +270,7 @@ class ToggleAccessibleDiffViewAction extends ChatEditingEditorAction {
|
|
|
270
270
|
constructor() {
|
|
271
271
|
super({
|
|
272
272
|
id: "chatEditor.action.showAccessibleDiffView",
|
|
273
|
-
title: ( localize2(
|
|
273
|
+
title: ( localize2(6106, "Show Accessible Diff View for Chat Edits")),
|
|
274
274
|
f1: true,
|
|
275
275
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
276
276
|
keybinding: {
|
|
@@ -288,7 +288,7 @@ class ReviewChangesAction extends ChatEditingEditorAction {
|
|
|
288
288
|
constructor() {
|
|
289
289
|
super({
|
|
290
290
|
id: "chatEditor.action.reviewChanges",
|
|
291
|
-
title: ( localize2(
|
|
291
|
+
title: ( localize2(6107, "Review")),
|
|
292
292
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
293
293
|
menu: [{
|
|
294
294
|
id: MenuId.ChatEditingEditorContent,
|
|
@@ -309,8 +309,8 @@ class AcceptAllEditsAction extends ChatEditingEditorAction {
|
|
|
309
309
|
constructor() {
|
|
310
310
|
super({
|
|
311
311
|
id: AcceptAllEditsAction.ID,
|
|
312
|
-
title: ( localize2(
|
|
313
|
-
tooltip: ( localize2(
|
|
312
|
+
title: ( localize2(6108, "Keep All Chat Edits")),
|
|
313
|
+
tooltip: ( localize2(6109, "Keep All Chat Edits in this Session")),
|
|
314
314
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
315
315
|
icon: Codicon.checkAll,
|
|
316
316
|
f1: true,
|
|
@@ -329,7 +329,7 @@ class MultiDiffAcceptDiscardAction extends Action2 {
|
|
|
329
329
|
constructor(accept) {
|
|
330
330
|
super({
|
|
331
331
|
id: accept ? "chatEditing.multidiff.acceptAllFiles" : "chatEditing.multidiff.discardAllFiles",
|
|
332
|
-
title: accept ? ( localize(
|
|
332
|
+
title: accept ? ( localize(6110, "Keep All Edits")) : ( localize(6111, "Undo All Edits")),
|
|
333
333
|
icon: accept ? Codicon.check : Codicon.discard,
|
|
334
334
|
menu: {
|
|
335
335
|
when: ( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)),
|
|
@@ -380,7 +380,7 @@ class ExplainMultiDiffAction extends Action2 {
|
|
|
380
380
|
constructor() {
|
|
381
381
|
super({
|
|
382
382
|
id: "chatEditing.multidiff.explain",
|
|
383
|
-
title: ( localize(
|
|
383
|
+
title: ( localize(6112, "Explain")),
|
|
384
384
|
menu: {
|
|
385
385
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(...( explainMultiDiffSchemes.map(scheme => ( ContextKeyExpr.equals("resourceScheme", scheme)))))), ( ContextKeyExpr.has(`config.${ChatConfiguration.ExplainChangesEnabled}`)))),
|
|
386
386
|
id: MenuId.MultiDiffEditorContent,
|
|
@@ -526,7 +526,7 @@ function registerChatEditorActions() {
|
|
|
526
526
|
MenuRegistry.appendMenuItem(MenuId.ChatEditingEditorContent, {
|
|
527
527
|
command: {
|
|
528
528
|
id: navigationBearingFakeActionId,
|
|
529
|
-
title: ( localize(
|
|
529
|
+
title: ( localize(6113, "Navigation Status")),
|
|
530
530
|
precondition: ( ContextKeyExpr.false())
|
|
531
531
|
},
|
|
532
532
|
group: "navigate",
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { IAction, IActionRunner } from "@codingame/monaco-vscode-api/vscode/vs/b
|
|
|
6
6
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
7
7
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
8
8
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
9
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
9
10
|
export declare class ChatEditingAcceptRejectActionViewItem extends ActionViewItem {
|
|
10
11
|
private readonly _entry;
|
|
11
12
|
private readonly _editor;
|
|
@@ -23,6 +24,6 @@ export declare class ChatEditingAcceptRejectActionViewItem extends ActionViewIte
|
|
|
23
24
|
export declare class ChatEditingEditorOverlay implements IWorkbenchContribution {
|
|
24
25
|
static readonly ID = "chat.edits.editorOverlay";
|
|
25
26
|
private readonly _store;
|
|
26
|
-
constructor(editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService);
|
|
27
|
+
constructor(editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService, environmentService: IWorkbenchEnvironmentService);
|
|
27
28
|
dispose(): void;
|
|
28
29
|
}
|