@codingame/monaco-vscode-katex-common 27.0.0 → 28.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 +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +2 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +2 -2
- package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.d.ts +30 -2
- package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +17 -11
- 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 +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +90 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +106 -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 +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +63 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +13 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +28 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +133 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +55 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +38 -37
- 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/chatEditing/media/chatEditingEditorOverlay.css +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +72 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.d.ts +1 -1
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +1 -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.d.ts +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/chatCollapsibleContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +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.d.ts +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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +1 -1
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +1 -1
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +26 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +290 -126
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +1 -1
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +1 -1
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +1 -1
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +22 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +12 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +3 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +6 -260
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +1 -1
- 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.d.ts +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/chatConfirmationWidget.css +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +129 -117
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +1 -1
- 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.d.ts +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/chatInputOutputMarkdownProgressPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +56 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +20 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +43 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +42 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +1 -1
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +1 -1
- 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 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +61 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.js +7 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +1 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +81 -191
- 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 +31 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +334 -181
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +51 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +16 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +213 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +10 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +174 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +2 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +12 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +36 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +19 -4
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +22 -6
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +15 -15
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +24 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +38 -46
- 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/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/browser/chatTerminalCommandMirror.js +6 -10
|
@@ -33,6 +33,7 @@ import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/
|
|
|
33
33
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
34
34
|
import { isAgentSession } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
35
35
|
import { AgentSessionProviders } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
36
|
+
import { IsSessionsWindowContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
36
37
|
|
|
37
38
|
class EditingSessionAction extends Action2 {
|
|
38
39
|
constructor(opts) {
|
|
@@ -85,7 +86,7 @@ registerAction2(class OpenFileInDiffAction extends WorkingSetAction {
|
|
|
85
86
|
constructor() {
|
|
86
87
|
super({
|
|
87
88
|
id: "chatEditing.openFileInDiff",
|
|
88
|
-
title: ( localize2(
|
|
89
|
+
title: ( localize2(5787, "Open Changes in Diff Editor")),
|
|
89
90
|
icon: Codicon.diffSingle,
|
|
90
91
|
menu: [{
|
|
91
92
|
id: MenuId.ChatEditingWidgetModifiedFilesToolbar,
|
|
@@ -116,7 +117,7 @@ registerAction2(class AcceptAction extends WorkingSetAction {
|
|
|
116
117
|
constructor() {
|
|
117
118
|
super({
|
|
118
119
|
id: "chatEditing.acceptFile",
|
|
119
|
-
title: ( localize2(
|
|
120
|
+
title: ( localize2(5788, "Keep")),
|
|
120
121
|
icon: Codicon.check,
|
|
121
122
|
menu: [{
|
|
122
123
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(
|
|
@@ -142,7 +143,7 @@ registerAction2(class DiscardAction extends WorkingSetAction {
|
|
|
142
143
|
constructor() {
|
|
143
144
|
super({
|
|
144
145
|
id: "chatEditing.discardFile",
|
|
145
|
-
title: ( localize2(
|
|
146
|
+
title: ( localize2(5789, "Undo")),
|
|
146
147
|
icon: Codicon.discard,
|
|
147
148
|
menu: [{
|
|
148
149
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)), ContextKeyExpr.notIn(
|
|
@@ -168,9 +169,9 @@ class ChatEditingAcceptAllAction extends EditingSessionAction {
|
|
|
168
169
|
constructor() {
|
|
169
170
|
super({
|
|
170
171
|
id: "chatEditing.acceptAllFiles",
|
|
171
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(5790, "Keep")),
|
|
172
173
|
icon: Codicon.check,
|
|
173
|
-
tooltip: ( localize(
|
|
174
|
+
tooltip: ( localize(5791, "Keep All Edits")),
|
|
174
175
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
175
176
|
keybinding: {
|
|
176
177
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -194,9 +195,9 @@ class ChatEditingDiscardAllAction extends EditingSessionAction {
|
|
|
194
195
|
constructor() {
|
|
195
196
|
super({
|
|
196
197
|
id: "chatEditing.discardAllFiles",
|
|
197
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(5792, "Undo")),
|
|
198
199
|
icon: Codicon.discard,
|
|
199
|
-
tooltip: ( localize(
|
|
200
|
+
tooltip: ( localize(5793, "Undo All Edits")),
|
|
200
201
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
201
202
|
menu: [{
|
|
202
203
|
id: MenuId.ChatEditingWidgetToolbar,
|
|
@@ -227,8 +228,8 @@ class ToggleExplanationWidgetAction extends EditingSessionAction {
|
|
|
227
228
|
constructor() {
|
|
228
229
|
super({
|
|
229
230
|
id: ToggleExplanationWidgetAction.ID,
|
|
230
|
-
title: ( localize(
|
|
231
|
-
tooltip: ( localize(
|
|
231
|
+
title: ( localize(5794, "Explain")),
|
|
232
|
+
tooltip: ( localize(5795, "Toggle Change Explanations")),
|
|
232
233
|
precondition: hasUndecidedChatEditingResourceContextKey,
|
|
233
234
|
menu: [{
|
|
234
235
|
id: MenuId.ChatEditingWidgetToolbar,
|
|
@@ -252,17 +253,17 @@ async function discardAllEditsWithConfirmation(accessor, currentEditingSession)
|
|
|
252
253
|
const entries = currentEditingSession.entries.get().filter(e => e.state.get() === ModifiedFileEntryState.Modified);
|
|
253
254
|
if (entries.length > 0) {
|
|
254
255
|
const confirmation = await dialogService.confirm({
|
|
255
|
-
title: ( localize(
|
|
256
|
+
title: ( localize(5796, "Undo all edits?")),
|
|
256
257
|
message: entries.length === 1 ? ( localize(
|
|
257
|
-
|
|
258
|
+
5797,
|
|
258
259
|
"This will undo changes made in {0}. Do you want to proceed?",
|
|
259
260
|
basename(entries[0].modifiedURI)
|
|
260
261
|
)) : ( localize(
|
|
261
|
-
|
|
262
|
+
5798,
|
|
262
263
|
"This will undo changes made in {0} files. Do you want to proceed?",
|
|
263
264
|
entries.length
|
|
264
265
|
)),
|
|
265
|
-
primaryButton: ( localize(
|
|
266
|
+
primaryButton: ( localize(5799, "Yes")),
|
|
266
267
|
type: "info"
|
|
267
268
|
});
|
|
268
269
|
if (!confirmation.confirmed) {
|
|
@@ -277,7 +278,7 @@ class ChatEditingShowChangesAction extends EditingSessionAction {
|
|
|
277
278
|
this.ID = "chatEditing.viewChanges";
|
|
278
279
|
}
|
|
279
280
|
static {
|
|
280
|
-
this.LABEL = ( localize(
|
|
281
|
+
this.LABEL = ( localize(5800, "View All Edits"));
|
|
281
282
|
}
|
|
282
283
|
constructor() {
|
|
283
284
|
super({
|
|
@@ -310,7 +311,7 @@ class ViewAllSessionChangesAction extends Action2 {
|
|
|
310
311
|
constructor() {
|
|
311
312
|
super({
|
|
312
313
|
id: ViewAllSessionChangesAction.ID,
|
|
313
|
-
title: ( localize2(
|
|
314
|
+
title: ( localize2(5801, "View All Changes")),
|
|
314
315
|
icon: Codicon.diffMultiple,
|
|
315
316
|
category: CHAT_CATEGORY,
|
|
316
317
|
precondition: ChatContextKeys.hasAgentSessionChanges,
|
|
@@ -323,7 +324,7 @@ class ViewAllSessionChangesAction extends Action2 {
|
|
|
323
324
|
id: MenuId.AgentSessionItemToolbar,
|
|
324
325
|
group: "navigation",
|
|
325
326
|
order: 0,
|
|
326
|
-
when: ChatContextKeys.hasAgentSessionChanges
|
|
327
|
+
when: ( ContextKeyExpr.and(ChatContextKeys.hasAgentSessionChanges, ( IsSessionsWindowContext.negate())))
|
|
327
328
|
}]
|
|
328
329
|
});
|
|
329
330
|
}
|
|
@@ -352,7 +353,7 @@ class ViewAllSessionChangesAction extends Action2 {
|
|
|
352
353
|
multiDiffSourceUri: sessionResource.with({
|
|
353
354
|
scheme: sessionResource.scheme + "-worktree-changes"
|
|
354
355
|
}),
|
|
355
|
-
title: ( localize(
|
|
356
|
+
title: ( localize(5802, "All Session Changes")),
|
|
356
357
|
resources
|
|
357
358
|
});
|
|
358
359
|
session?.setRead(true);
|
|
@@ -392,13 +393,13 @@ async function restoreSnapshotWithConfirmationByRequestId(accessor, sessionResou
|
|
|
392
393
|
if (editsToUndo === 1) {
|
|
393
394
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
394
395
|
message = ( localize(
|
|
395
|
-
|
|
396
|
+
5803,
|
|
396
397
|
"This will remove your last request and undo the edits made to {0}. Do you want to proceed?",
|
|
397
398
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
398
399
|
));
|
|
399
400
|
} else {
|
|
400
401
|
message = ( localize(
|
|
401
|
-
|
|
402
|
+
5804,
|
|
402
403
|
"This will remove your last request and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
403
404
|
entriesModifiedInRequestsToRemove.length
|
|
404
405
|
));
|
|
@@ -406,24 +407,24 @@ async function restoreSnapshotWithConfirmationByRequestId(accessor, sessionResou
|
|
|
406
407
|
} else {
|
|
407
408
|
if (entriesModifiedInRequestsToRemove.length === 1) {
|
|
408
409
|
message = ( localize(
|
|
409
|
-
|
|
410
|
+
5805,
|
|
410
411
|
"This will remove all subsequent requests and undo edits made to {0}. Do you want to proceed?",
|
|
411
412
|
basename(entriesModifiedInRequestsToRemove[0].modifiedURI)
|
|
412
413
|
));
|
|
413
414
|
} else {
|
|
414
415
|
message = ( localize(
|
|
415
|
-
|
|
416
|
+
5806,
|
|
416
417
|
"This will remove all subsequent requests and undo edits made to {0} files in your working set. Do you want to proceed?",
|
|
417
418
|
entriesModifiedInRequestsToRemove.length
|
|
418
419
|
));
|
|
419
420
|
}
|
|
420
421
|
}
|
|
421
422
|
const confirmation = shouldPrompt ? await dialogService.confirm({
|
|
422
|
-
title: editsToUndo === 1 ? ( localize(
|
|
423
|
+
title: editsToUndo === 1 ? ( localize(5807, "Do you want to undo your last edit?")) : ( localize(5808, "Do you want to undo {0} edits?", editsToUndo)),
|
|
423
424
|
message: message,
|
|
424
|
-
primaryButton: ( localize(
|
|
425
|
+
primaryButton: ( localize(5809, "Yes")),
|
|
425
426
|
checkbox: {
|
|
426
|
-
label: ( localize(
|
|
427
|
+
label: ( localize(5810, "Don't ask again")),
|
|
427
428
|
checked: false
|
|
428
429
|
},
|
|
429
430
|
type: "info"
|
|
@@ -451,7 +452,7 @@ registerAction2(class RemoveAction extends Action2 {
|
|
|
451
452
|
constructor() {
|
|
452
453
|
super({
|
|
453
454
|
id: "workbench.action.chat.undoEdits",
|
|
454
|
-
title: ( localize2(
|
|
455
|
+
title: ( localize2(5811, "Undo Requests")),
|
|
455
456
|
f1: false,
|
|
456
457
|
category: CHAT_CATEGORY,
|
|
457
458
|
icon: Codicon.discard,
|
|
@@ -460,7 +461,7 @@ registerAction2(class RemoveAction extends Action2 {
|
|
|
460
461
|
mac: {
|
|
461
462
|
primary: KeyMod.CtrlCmd | KeyCode.Backspace
|
|
462
463
|
},
|
|
463
|
-
when: ( ContextKeyExpr.and(ChatContextKeys.inChatSession, ( EditorContextKeys.textInputFocus.negate()))),
|
|
464
|
+
when: ( ContextKeyExpr.and(ChatContextKeys.inChatSession, ( EditorContextKeys.textInputFocus.negate()), ( ChatContextKeys.inChatQuestionCarousel.negate()))),
|
|
464
465
|
weight: KeybindingWeight.WorkbenchContrib
|
|
465
466
|
},
|
|
466
467
|
menu: [{
|
|
@@ -493,8 +494,8 @@ registerAction2(class RestoreCheckpointAction extends Action2 {
|
|
|
493
494
|
constructor() {
|
|
494
495
|
super({
|
|
495
496
|
id: "workbench.action.chat.restoreCheckpoint",
|
|
496
|
-
title: ( localize2(
|
|
497
|
-
tooltip: ( localize2(
|
|
497
|
+
title: ( localize2(5812, "Restore Checkpoint")),
|
|
498
|
+
tooltip: ( localize2(5813, "Restores workspace and chat to this point")),
|
|
498
499
|
f1: false,
|
|
499
500
|
category: CHAT_CATEGORY,
|
|
500
501
|
keybinding: {
|
|
@@ -502,7 +503,7 @@ registerAction2(class RestoreCheckpointAction extends Action2 {
|
|
|
502
503
|
mac: {
|
|
503
504
|
primary: KeyMod.CtrlCmd | KeyCode.Backspace
|
|
504
505
|
},
|
|
505
|
-
when: ( ContextKeyExpr.and(ChatContextKeys.inChatSession, ( EditorContextKeys.textInputFocus.negate()))),
|
|
506
|
+
when: ( ContextKeyExpr.and(ChatContextKeys.inChatSession, ( EditorContextKeys.textInputFocus.negate()), ( ChatContextKeys.inChatQuestionCarousel.negate()))),
|
|
506
507
|
weight: KeybindingWeight.WorkbenchContrib
|
|
507
508
|
},
|
|
508
509
|
menu: [{
|
|
@@ -535,7 +536,7 @@ registerAction2(class RestoreLastCheckpoint extends Action2 {
|
|
|
535
536
|
constructor() {
|
|
536
537
|
super({
|
|
537
538
|
id: "workbench.action.chat.restoreLastCheckpoint",
|
|
538
|
-
title: ( localize2(
|
|
539
|
+
title: ( localize2(5814, "Restore to Last Checkpoint")),
|
|
539
540
|
f1: true,
|
|
540
541
|
category: CHAT_CATEGORY,
|
|
541
542
|
icon: Codicon.discard,
|
|
@@ -560,7 +561,7 @@ registerAction2(class RestoreLastCheckpoint extends Action2 {
|
|
|
560
561
|
}
|
|
561
562
|
const checkpointRequest = chatModel.checkpoint;
|
|
562
563
|
if (!checkpointRequest) {
|
|
563
|
-
alert(( localize(
|
|
564
|
+
alert(( localize(5815, "There is no checkpoint to restore.")));
|
|
564
565
|
return;
|
|
565
566
|
}
|
|
566
567
|
widget?.viewModel?.model.setCheckpoint(checkpointRequest.id);
|
|
@@ -573,7 +574,7 @@ registerAction2(class EditAction extends Action2 {
|
|
|
573
574
|
constructor() {
|
|
574
575
|
super({
|
|
575
576
|
id: "workbench.action.chat.editRequests",
|
|
576
|
-
title: ( localize2(
|
|
577
|
+
title: ( localize2(5816, "Edit Request")),
|
|
577
578
|
f1: false,
|
|
578
579
|
category: CHAT_CATEGORY,
|
|
579
580
|
icon: Codicon.edit,
|
|
@@ -612,7 +613,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
612
613
|
constructor() {
|
|
613
614
|
super({
|
|
614
615
|
id: OpenWorkingSetHistoryAction.id,
|
|
615
|
-
title: ( localize(
|
|
616
|
+
title: ( localize(5817, "Open File")),
|
|
616
617
|
menu: [{
|
|
617
618
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
618
619
|
group: "navigation",
|
|
@@ -638,7 +639,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
638
639
|
constructor() {
|
|
639
640
|
super({
|
|
640
641
|
id: OpenWorkingSetHistoryAction.id,
|
|
641
|
-
title: ( localize(
|
|
642
|
+
title: ( localize(5818, "Open File Snapshot")),
|
|
642
643
|
menu: [{
|
|
643
644
|
id: MenuId.ChatEditingCodeBlockContext,
|
|
644
645
|
group: "navigation",
|
|
@@ -662,7 +663,7 @@ registerAction2(class OpenWorkingSetHistoryAction extends Action2 {
|
|
|
662
663
|
if (snapshot) {
|
|
663
664
|
const editor = await editorService.openEditor({
|
|
664
665
|
resource: snapshot,
|
|
665
|
-
label: ( localize(
|
|
666
|
+
label: ( localize(5819, "{0} (Snapshot)", basename(context.uri))),
|
|
666
667
|
options: {
|
|
667
668
|
activation: EditorActivation.ACTIVATE
|
|
668
669
|
}
|
|
@@ -679,7 +680,7 @@ registerAction2(class ResolveSymbolsContextAction extends EditingSessionAction {
|
|
|
679
680
|
constructor() {
|
|
680
681
|
super({
|
|
681
682
|
id: "workbench.action.edits.addFilesFromReferences",
|
|
682
|
-
title: ( localize2(
|
|
683
|
+
title: ( localize2(5820, "Add Files From References")),
|
|
683
684
|
f1: false,
|
|
684
685
|
category: CHAT_CATEGORY,
|
|
685
686
|
menu: {
|
|
@@ -743,7 +744,7 @@ class ViewPreviousEditsAction extends EditingSessionAction {
|
|
|
743
744
|
this.Id = "chatEditing.viewPreviousEdits";
|
|
744
745
|
}
|
|
745
746
|
static {
|
|
746
|
-
this.Label = ( localize(
|
|
747
|
+
this.Label = ( localize(5821, "View Previous Edits"));
|
|
747
748
|
}
|
|
748
749
|
constructor() {
|
|
749
750
|
super({
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js
CHANGED
|
@@ -64,7 +64,7 @@ class NavigateAction extends ChatEditingEditorAction {
|
|
|
64
64
|
constructor(next) {
|
|
65
65
|
super({
|
|
66
66
|
id: next ? "chatEditor.action.navigateNext" : "chatEditor.action.navigatePrevious",
|
|
67
|
-
title: next ? ( localize2(
|
|
67
|
+
title: next ? ( localize2(5823, "Go to Next Chat Edit")) : ( localize2(5824, "Go to Previous Chat Edit")),
|
|
68
68
|
icon: next ? Codicon.arrowDown : Codicon.arrowUp,
|
|
69
69
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ctxHasEditorModification)),
|
|
70
70
|
keybinding: {
|
|
@@ -128,9 +128,9 @@ class KeepOrUndoAction extends ChatEditingEditorAction {
|
|
|
128
128
|
constructor(id, _keep) {
|
|
129
129
|
super({
|
|
130
130
|
id,
|
|
131
|
-
title: _keep ? ( localize2(
|
|
132
|
-
shortTitle: _keep ? ( localize2(
|
|
133
|
-
tooltip: _keep ? ( localize2(
|
|
131
|
+
title: _keep ? ( localize2(5825, "Keep Chat Edits")) : ( localize2(5826, "Undo Chat Edits")),
|
|
132
|
+
shortTitle: _keep ? ( localize2(5827, "Keep")) : ( localize2(5828, "Undo")),
|
|
133
|
+
tooltip: _keep ? ( localize2(5829, "Keep Chat Edits in this File")) : ( localize2(5830, "Undo Chat Edits in this File")),
|
|
134
134
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
135
135
|
icon: _keep ? Codicon.check : Codicon.discard,
|
|
136
136
|
f1: true,
|
|
@@ -180,8 +180,8 @@ class AcceptRejectHunkAction extends ChatEditingEditorAction {
|
|
|
180
180
|
constructor(_accept) {
|
|
181
181
|
super({
|
|
182
182
|
id: _accept ? acceptHunkId : undoHunkId,
|
|
183
|
-
title: _accept ? ( localize2(
|
|
184
|
-
shortTitle: _accept ? ( localize2(
|
|
183
|
+
title: _accept ? ( localize2(5831, "Keep this Change")) : ( localize2(5832, "Undo this Change")),
|
|
184
|
+
shortTitle: _accept ? ( localize2(5833, "Keep")) : ( localize2(5834, "Undo")),
|
|
185
185
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
186
186
|
f1: true,
|
|
187
187
|
keybinding: {
|
|
@@ -228,7 +228,7 @@ class ToggleDiffAction extends ChatEditingEditorAction {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: "chatEditor.action.toggleDiff",
|
|
231
|
-
title: ( localize2(
|
|
231
|
+
title: ( localize2(5835, "Toggle Diff Editor for Chat Edits")),
|
|
232
232
|
category: CHAT_CATEGORY,
|
|
233
233
|
toggled: {
|
|
234
234
|
condition: ( ContextKeyExpr.or(EditorContextKeys.inDiffEditor, ( ActiveEditorContext.isEqualTo(TEXT_DIFF_EDITOR_ID)))),
|
|
@@ -265,7 +265,7 @@ class ToggleAccessibleDiffViewAction extends ChatEditingEditorAction {
|
|
|
265
265
|
constructor() {
|
|
266
266
|
super({
|
|
267
267
|
id: "chatEditor.action.showAccessibleDiffView",
|
|
268
|
-
title: ( localize2(
|
|
268
|
+
title: ( localize2(5836, "Show Accessible Diff View for Chat Edits")),
|
|
269
269
|
f1: true,
|
|
270
270
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
271
271
|
keybinding: {
|
|
@@ -283,7 +283,7 @@ class ReviewChangesAction extends ChatEditingEditorAction {
|
|
|
283
283
|
constructor() {
|
|
284
284
|
super({
|
|
285
285
|
id: "chatEditor.action.reviewChanges",
|
|
286
|
-
title: ( localize2(
|
|
286
|
+
title: ( localize2(5837, "Review")),
|
|
287
287
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
288
288
|
menu: [{
|
|
289
289
|
id: MenuId.ChatEditingEditorContent,
|
|
@@ -304,8 +304,8 @@ class AcceptAllEditsAction extends ChatEditingEditorAction {
|
|
|
304
304
|
constructor() {
|
|
305
305
|
super({
|
|
306
306
|
id: AcceptAllEditsAction.ID,
|
|
307
|
-
title: ( localize2(
|
|
308
|
-
tooltip: ( localize2(
|
|
307
|
+
title: ( localize2(5838, "Keep All Chat Edits")),
|
|
308
|
+
tooltip: ( localize2(5839, "Keep All Chat Edits in this Session")),
|
|
309
309
|
precondition: ( ContextKeyExpr.and(ctxHasEditorModification, ( ctxIsCurrentlyBeingModified.negate()))),
|
|
310
310
|
icon: Codicon.checkAll,
|
|
311
311
|
f1: true,
|
|
@@ -324,7 +324,7 @@ class MultiDiffAcceptDiscardAction extends Action2 {
|
|
|
324
324
|
constructor(accept) {
|
|
325
325
|
super({
|
|
326
326
|
id: accept ? "chatEditing.multidiff.acceptAllFiles" : "chatEditing.multidiff.discardAllFiles",
|
|
327
|
-
title: accept ? ( localize(
|
|
327
|
+
title: accept ? ( localize(5840, "Keep All Edits")) : ( localize(5841, "Undo All Edits")),
|
|
328
328
|
icon: accept ? Codicon.check : Codicon.discard,
|
|
329
329
|
menu: {
|
|
330
330
|
when: ( ContextKeyExpr.equals("resourceScheme", CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME)),
|
|
@@ -375,7 +375,7 @@ class ExplainMultiDiffAction extends Action2 {
|
|
|
375
375
|
constructor() {
|
|
376
376
|
super({
|
|
377
377
|
id: "chatEditing.multidiff.explain",
|
|
378
|
-
title: ( localize(
|
|
378
|
+
title: ( localize(5842, "Explain")),
|
|
379
379
|
menu: {
|
|
380
380
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(...( explainMultiDiffSchemes.map(scheme => ( ContextKeyExpr.equals("resourceScheme", scheme)))))), ( ContextKeyExpr.has(`config.${ChatConfiguration.ExplainChangesEnabled}`)))),
|
|
381
381
|
id: MenuId.MultiDiffEditorContent,
|
|
@@ -521,7 +521,7 @@ function registerChatEditorActions() {
|
|
|
521
521
|
MenuRegistry.appendMenuItem(MenuId.ChatEditingEditorContent, {
|
|
522
522
|
command: {
|
|
523
523
|
id: navigationBearingFakeActionId,
|
|
524
|
-
title: ( localize(
|
|
524
|
+
title: ( localize(5843, "Navigation Status")),
|
|
525
525
|
precondition: ( ContextKeyExpr.false())
|
|
526
526
|
},
|
|
527
527
|
group: "navigate",
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js
CHANGED
|
@@ -200,9 +200,9 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
200
200
|
} = that._navigationBearings.read(r);
|
|
201
201
|
if (changeCount > 0) {
|
|
202
202
|
const n = activeIdx === -1 ? "1" : `${activeIdx + 1}`;
|
|
203
|
-
this.label.innerText = ( localize(
|
|
203
|
+
this.label.innerText = ( localize(5851, "{0} of {1}", n, changeCount));
|
|
204
204
|
} else {
|
|
205
|
-
this.label.innerText = ( localize(
|
|
205
|
+
this.label.innerText = ( localize(5852, "—"));
|
|
206
206
|
}
|
|
207
207
|
this.updateTooltip();
|
|
208
208
|
}));
|
|
@@ -217,18 +217,18 @@ let ChatEditorOverlayWidget = class ChatEditorOverlayWidget extends Disposable {
|
|
|
217
217
|
}
|
|
218
218
|
let result;
|
|
219
219
|
if (changeCount === 1 && entriesCount === 1) {
|
|
220
|
-
result = ( localize(
|
|
220
|
+
result = ( localize(5853, "1 change in 1 file"));
|
|
221
221
|
} else if (changeCount === 1) {
|
|
222
|
-
result = ( localize(
|
|
222
|
+
result = ( localize(5854, "1 change in {0} files", entriesCount));
|
|
223
223
|
} else if (entriesCount === 1) {
|
|
224
|
-
result = ( localize(
|
|
224
|
+
result = ( localize(5855, "{0} changes in 1 file", changeCount));
|
|
225
225
|
} else {
|
|
226
|
-
result = ( localize(
|
|
226
|
+
result = ( localize(5856, "{0} changes in {1} files", changeCount, entriesCount));
|
|
227
227
|
}
|
|
228
228
|
if (!that._isBusy.get()) {
|
|
229
229
|
return result;
|
|
230
230
|
}
|
|
231
|
-
return localize(
|
|
231
|
+
return localize(5857, "{0} - Working...", result);
|
|
232
232
|
}
|
|
233
233
|
})();
|
|
234
234
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js
CHANGED
|
@@ -95,7 +95,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
95
95
|
return {
|
|
96
96
|
startLineNumber: change.modified.startLineNumber,
|
|
97
97
|
endLineNumber: change.modified.endLineNumberExclusive - 1,
|
|
98
|
-
explanation: ( localize(
|
|
98
|
+
explanation: ( localize(5861, "Generating explanation...")),
|
|
99
99
|
read: false,
|
|
100
100
|
loading: true,
|
|
101
101
|
originalText,
|
|
@@ -116,7 +116,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
116
116
|
this._headerNode.appendChild(this._toggleButton);
|
|
117
117
|
this._dismissButton = $("div.chat-explanation-dismiss");
|
|
118
118
|
this._dismissButton.appendChild(renderIcon(Codicon.close));
|
|
119
|
-
this._dismissButton.title = ( localize(
|
|
119
|
+
this._dismissButton.title = ( localize(5862, "Dismiss"));
|
|
120
120
|
this._headerNode.appendChild(this._dismissButton);
|
|
121
121
|
this._domNode.appendChild(this._headerNode);
|
|
122
122
|
this._bodyNode = $("div.chat-explanation-body");
|
|
@@ -178,35 +178,35 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
178
178
|
this._readIndicator.appendChild(renderIcon(Codicon.circle));
|
|
179
179
|
this._readIndicator.classList.add("read");
|
|
180
180
|
this._readIndicator.classList.remove("partial", "unread");
|
|
181
|
-
this._readIndicator.title = ( localize(
|
|
181
|
+
this._readIndicator.title = ( localize(5863, "Mark as unread"));
|
|
182
182
|
} else if (someRead) {
|
|
183
183
|
this._readIndicator.appendChild(renderIcon(Codicon.circleFilled));
|
|
184
184
|
this._readIndicator.classList.remove("read", "unread");
|
|
185
185
|
this._readIndicator.classList.add("partial");
|
|
186
|
-
this._readIndicator.title = ( localize(
|
|
186
|
+
this._readIndicator.title = ( localize(5864, "Mark all as read"));
|
|
187
187
|
} else {
|
|
188
188
|
this._readIndicator.appendChild(renderIcon(Codicon.circleFilled));
|
|
189
189
|
this._readIndicator.classList.remove("read", "partial");
|
|
190
190
|
this._readIndicator.classList.add("unread");
|
|
191
|
-
this._readIndicator.title = ( localize(
|
|
191
|
+
this._readIndicator.title = ( localize(5865, "Mark as read"));
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
_updateTitle() {
|
|
195
195
|
const count = this._explanations.length;
|
|
196
196
|
if (count === 1) {
|
|
197
|
-
this._titleNode.textContent = ( localize(
|
|
197
|
+
this._titleNode.textContent = ( localize(5866, "1 change"));
|
|
198
198
|
} else {
|
|
199
|
-
this._titleNode.textContent = ( localize(
|
|
199
|
+
this._titleNode.textContent = ( localize(5867, "{0} changes", count));
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
_updateToggleButton() {
|
|
203
203
|
clearNode(this._toggleButton);
|
|
204
204
|
if (this._isExpanded) {
|
|
205
205
|
this._toggleButton.appendChild(renderIcon(Codicon.chevronUp));
|
|
206
|
-
this._toggleButton.title = ( localize(
|
|
206
|
+
this._toggleButton.title = ( localize(5868, "Collapse"));
|
|
207
207
|
} else {
|
|
208
208
|
this._toggleButton.appendChild(renderIcon(Codicon.chevronDown));
|
|
209
|
-
this._toggleButton.title = ( localize(
|
|
209
|
+
this._toggleButton.title = ( localize(5869, "Expand"));
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
_buildExplanationItems() {
|
|
@@ -217,9 +217,9 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
217
217
|
const item = $("div.chat-explanation-item");
|
|
218
218
|
const lineInfo = $("span.chat-explanation-line-info");
|
|
219
219
|
if (exp.startLineNumber === exp.endLineNumber) {
|
|
220
|
-
lineInfo.textContent = ( localize(
|
|
220
|
+
lineInfo.textContent = ( localize(5870, "Line {0}", exp.startLineNumber));
|
|
221
221
|
} else {
|
|
222
|
-
lineInfo.textContent = ( localize(
|
|
222
|
+
lineInfo.textContent = ( localize(5871, "Lines {0}-{1}", exp.startLineNumber, exp.endLineNumber));
|
|
223
223
|
}
|
|
224
224
|
item.appendChild(lineInfo);
|
|
225
225
|
const text = $("span.chat-explanation-text");
|
|
@@ -238,7 +238,7 @@ class ChatEditingExplanationWidget extends Disposable {
|
|
|
238
238
|
item.appendChild(itemReadIndicator);
|
|
239
239
|
const replyButton = $("div.chat-explanation-reply-button");
|
|
240
240
|
replyButton.appendChild(renderIcon(Codicon.arrowRight));
|
|
241
|
-
replyButton.title = ( localize(
|
|
241
|
+
replyButton.title = ( localize(5872, "Follow up on this change"));
|
|
242
242
|
item.appendChild(replyButton);
|
|
243
243
|
this._eventStore.add(addDisposableListener(replyButton, "click", async e => {
|
|
244
244
|
e.stopPropagation();
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css
CHANGED
|
@@ -8,25 +8,25 @@
|
|
|
8
8
|
color: var(--vscode-foreground);
|
|
9
9
|
background-color: var(--vscode-editorWidget-background);
|
|
10
10
|
border-radius: 6px;
|
|
11
|
-
border: 1px solid var(--vscode-
|
|
11
|
+
border: 1px solid var(--vscode-editorWidget-border);
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: center;
|
|
15
15
|
gap: 4px;
|
|
16
16
|
z-index: 10;
|
|
17
|
-
box-shadow:
|
|
17
|
+
box-shadow: var(--vscode-shadow-md);
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@keyframes pulse {
|
|
22
22
|
0% {
|
|
23
|
-
box-shadow:
|
|
23
|
+
box-shadow: var(--vscode-shadow-md);
|
|
24
24
|
}
|
|
25
25
|
50% {
|
|
26
|
-
box-shadow:
|
|
26
|
+
box-shadow: var(--vscode-shadow-lg);
|
|
27
27
|
}
|
|
28
28
|
100% {
|
|
29
|
-
box-shadow:
|
|
29
|
+
box-shadow: var(--vscode-shadow-md);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
background-color: var(--vscode-editorWidget-background);
|
|
12
12
|
border: 1px solid var(--vscode-editorWidget-border, var(--vscode-contrastBorder));
|
|
13
13
|
border-radius: 8px;
|
|
14
|
-
box-shadow:
|
|
14
|
+
box-shadow: var(--vscode-shadow-lg);
|
|
15
15
|
font-size: 12px;
|
|
16
16
|
line-height: 1.4;
|
|
17
17
|
opacity: 0;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js
CHANGED
|
@@ -142,7 +142,7 @@ let ChatSessionPickerActionItem = class ChatSessionPickerActionItem extends Acti
|
|
|
142
142
|
domChildren.push($(
|
|
143
143
|
"span.chat-session-option-label",
|
|
144
144
|
undefined,
|
|
145
|
-
this.currentOption?.name ?? group?.description ?? ( localize(
|
|
145
|
+
this.currentOption?.name ?? group?.description ?? ( localize(6009, "Pick Option"))
|
|
146
146
|
));
|
|
147
147
|
}
|
|
148
148
|
domChildren.push(...renderLabelWithIcons(`$(chevron-down)`));
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { IChatSession, IChatSessionContentProvider, IChatSessionItem, IChatSessi
|
|
|
15
15
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
16
16
|
import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
17
17
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
18
|
-
import { Target } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/
|
|
18
|
+
import { Target } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes";
|
|
19
19
|
export declare class ChatSessionsService extends Disposable implements IChatSessionsService {
|
|
20
20
|
private readonly _logService;
|
|
21
21
|
private readonly _chatAgentService;
|
|
@@ -91,7 +91,7 @@ export declare class ChatSessionsService extends Disposable implements IChatSess
|
|
|
91
91
|
getChatSessionContribution(chatSessionType: string): IChatSessionsExtensionPoint | undefined;
|
|
92
92
|
activateChatSessionItemProvider(chatViewType: string): Promise<void>;
|
|
93
93
|
private doActivateChatSessionItemController;
|
|
94
|
-
canResolveChatSession(
|
|
94
|
+
canResolveChatSession(sessionType: string): Promise<boolean>;
|
|
95
95
|
private tryActivateControllers;
|
|
96
96
|
getChatSessionItems(providersToResolve: readonly string[] | undefined, token: CancellationToken): Promise<Array<{
|
|
97
97
|
readonly chatSessionType: string;
|