@codingame/monaco-vscode-katex-common 25.1.1 → 26.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.d.ts +23 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
- package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
|
@@ -8,7 +8,7 @@ import { asArray } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arra
|
|
|
8
8
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
9
9
|
import { ErrorNoTelemetry } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
10
10
|
import { createCommandUri, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
11
|
-
import { thenRegisterOrDispose,
|
|
11
|
+
import { thenRegisterOrDispose, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
12
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
13
13
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
14
14
|
import { isObject } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
@@ -30,9 +30,9 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
30
30
|
import { IPreferencesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
31
31
|
import { ITerminalChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
32
32
|
import { TerminalContribSettingId, TerminalContribCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/terminalContribExports';
|
|
33
|
-
import { migrateLegacyTerminalToolSpecificData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chat';
|
|
34
33
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
35
|
-
import {
|
|
34
|
+
import { migrateLegacyTerminalToolSpecificData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chat';
|
|
35
|
+
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
36
36
|
import { AcceptToolConfirmationActionId, SkipToolConfirmationActionId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
37
37
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
38
38
|
import { ChatCustomConfirmationWidget } from '../chatConfirmationWidget.js';
|
|
@@ -40,11 +40,35 @@ import { ChatMarkdownContentPart } from '../chatMarkdownContentPart.js';
|
|
|
40
40
|
import { BaseChatToolInvocationSubPart } from './chatToolInvocationSubPart.js';
|
|
41
41
|
|
|
42
42
|
var TerminalToolConfirmationStorageKeys;
|
|
43
|
-
(function
|
|
43
|
+
(function(TerminalToolConfirmationStorageKeys) {
|
|
44
44
|
TerminalToolConfirmationStorageKeys["TerminalAutoApproveWarningAccepted"] = "chat.tools.terminal.autoApprove.warningAccepted";
|
|
45
|
-
})(
|
|
45
|
+
})(
|
|
46
|
+
TerminalToolConfirmationStorageKeys || (TerminalToolConfirmationStorageKeys = {})
|
|
47
|
+
);
|
|
46
48
|
let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubPart extends BaseChatToolInvocationSubPart {
|
|
47
|
-
constructor(
|
|
49
|
+
constructor(
|
|
50
|
+
toolInvocation,
|
|
51
|
+
terminalData,
|
|
52
|
+
context,
|
|
53
|
+
renderer,
|
|
54
|
+
editorPool,
|
|
55
|
+
currentWidthDelegate,
|
|
56
|
+
codeBlockModelCollection,
|
|
57
|
+
codeBlockStartIndex,
|
|
58
|
+
instantiationService,
|
|
59
|
+
dialogService,
|
|
60
|
+
keybindingService,
|
|
61
|
+
modelService,
|
|
62
|
+
languageService,
|
|
63
|
+
configurationService,
|
|
64
|
+
contextKeyService,
|
|
65
|
+
chatWidgetService,
|
|
66
|
+
preferencesService,
|
|
67
|
+
storageService,
|
|
68
|
+
terminalChatService,
|
|
69
|
+
textModelService,
|
|
70
|
+
hoverService
|
|
71
|
+
) {
|
|
48
72
|
super(toolInvocation);
|
|
49
73
|
this.context = context;
|
|
50
74
|
this.renderer = renderer;
|
|
@@ -64,24 +88,34 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
64
88
|
this.storageService = storageService;
|
|
65
89
|
this.terminalChatService = terminalChatService;
|
|
66
90
|
this.codeblocks = [];
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (!toolInvocation.confirmationMessages?.title) {
|
|
71
|
-
throw ( new Error('Confirmation messages are missing'));
|
|
91
|
+
const state = toolInvocation.state.get();
|
|
92
|
+
if (state.type !== IChatToolInvocation.StateKind.WaitingForConfirmation || !state.confirmationMessages?.title) {
|
|
93
|
+
throw ( new Error("Confirmation messages are missing"));
|
|
72
94
|
}
|
|
73
95
|
terminalData = migrateLegacyTerminalToolSpecificData(terminalData);
|
|
74
|
-
const {
|
|
96
|
+
const {
|
|
97
|
+
title,
|
|
98
|
+
message,
|
|
99
|
+
disclaimer,
|
|
100
|
+
terminalCustomActions
|
|
101
|
+
} = state.confirmationMessages;
|
|
102
|
+
const initialContent = terminalData.presentationOverrides?.commandLine ?? terminalData.confirmation?.commandLine ?? (terminalData.commandLine.toolEdited ?? terminalData.commandLine.original).trimStart();
|
|
103
|
+
const cdPrefix = terminalData.confirmation?.cdPrefix ?? "";
|
|
104
|
+
const isReadOnly = !!terminalData.presentationOverrides;
|
|
75
105
|
const autoApproveEnabled = this.configurationService.getValue(TerminalContribSettingId.EnableAutoApprove) === true;
|
|
76
|
-
const autoApproveWarningAccepted = this.storageService.getBoolean(
|
|
106
|
+
const autoApproveWarningAccepted = this.storageService.getBoolean(
|
|
107
|
+
TerminalToolConfirmationStorageKeys.TerminalAutoApproveWarningAccepted,
|
|
108
|
+
StorageScope.APPLICATION,
|
|
109
|
+
false
|
|
110
|
+
);
|
|
77
111
|
let moreActions = undefined;
|
|
78
112
|
if (autoApproveEnabled) {
|
|
79
113
|
moreActions = [];
|
|
80
114
|
if (!autoApproveWarningAccepted) {
|
|
81
115
|
moreActions.push({
|
|
82
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(5969, "Enable Auto Approve...")),
|
|
83
117
|
data: {
|
|
84
|
-
type:
|
|
118
|
+
type: "enable"
|
|
85
119
|
}
|
|
86
120
|
});
|
|
87
121
|
moreActions.push(( new Separator()));
|
|
@@ -105,18 +139,24 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
105
139
|
reserveWidth: 19,
|
|
106
140
|
verticalPadding: 5,
|
|
107
141
|
editorOptions: {
|
|
108
|
-
wordWrap:
|
|
109
|
-
readOnly:
|
|
142
|
+
wordWrap: "on",
|
|
143
|
+
readOnly: isReadOnly,
|
|
110
144
|
tabFocusMode: true,
|
|
111
|
-
ariaLabel: typeof title ===
|
|
145
|
+
ariaLabel: typeof title === "string" ? title : title.value
|
|
112
146
|
}
|
|
113
147
|
};
|
|
114
|
-
const languageId = this.languageService.getLanguageIdByLanguageName(
|
|
115
|
-
|
|
116
|
-
|
|
148
|
+
const languageId = this.languageService.getLanguageIdByLanguageName(
|
|
149
|
+
terminalData.presentationOverrides?.language ?? terminalData.language ?? "sh"
|
|
150
|
+
) ?? "shellscript";
|
|
151
|
+
const model = this._register(this.modelService.createModel(
|
|
152
|
+
initialContent,
|
|
153
|
+
this.languageService.createById(languageId),
|
|
154
|
+
this._getUniqueCodeBlockUri(),
|
|
155
|
+
true
|
|
156
|
+
));
|
|
117
157
|
thenRegisterOrDispose(textModelService.createModelReference(model.uri), this._store);
|
|
118
158
|
const editor = this._register(this.editorPool.get());
|
|
119
|
-
|
|
159
|
+
editor.object.render({
|
|
120
160
|
codeBlockIndex: this.codeBlockStartIndex,
|
|
121
161
|
codeBlockPartIndex: 0,
|
|
122
162
|
element: this.context.element,
|
|
@@ -125,7 +165,6 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
125
165
|
textModel: Promise.resolve(model),
|
|
126
166
|
chatSessionResource: this.context.element.sessionResource
|
|
127
167
|
}, this.currentWidthDelegate());
|
|
128
|
-
this._register(thenIfNotDisposed(renderPromise, () => this._onDidChangeHeight.fire()));
|
|
129
168
|
this.codeblocks.push({
|
|
130
169
|
codeBlockIndex: this.codeBlockStartIndex,
|
|
131
170
|
codemapperUri: undefined,
|
|
@@ -138,52 +177,64 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
138
177
|
});
|
|
139
178
|
this._register(editor.object.onDidChangeContentHeight(() => {
|
|
140
179
|
editor.object.layout(this.currentWidthDelegate());
|
|
141
|
-
this._onDidChangeHeight.fire();
|
|
142
180
|
}));
|
|
143
181
|
this._register(model.onDidChangeContent(e => {
|
|
144
182
|
const currentValue = model.getValue();
|
|
145
|
-
|
|
183
|
+
if (currentValue !== initialContent) {
|
|
184
|
+
terminalData.commandLine.userEdited = cdPrefix + currentValue;
|
|
185
|
+
} else {
|
|
186
|
+
terminalData.commandLine.userEdited = undefined;
|
|
187
|
+
}
|
|
146
188
|
}));
|
|
147
|
-
const elements = h(
|
|
148
|
-
h(
|
|
149
|
-
h(
|
|
189
|
+
const elements = h(".chat-confirmation-message-terminal", [
|
|
190
|
+
h(".chat-confirmation-message-terminal-editor@editor"),
|
|
191
|
+
h(".chat-confirmation-message-terminal-disclaimer@disclaimer")
|
|
150
192
|
]);
|
|
151
193
|
append(elements.editor, editor.object.element);
|
|
152
194
|
this._register(hoverService.setupDelayedHover(elements.editor, {
|
|
153
|
-
content: message ||
|
|
195
|
+
content: message || "",
|
|
154
196
|
style: HoverStyle.Pointer,
|
|
155
|
-
position: {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
title,
|
|
159
|
-
icon: Codicon.terminal,
|
|
160
|
-
message: elements.root,
|
|
161
|
-
buttons: this._createButtons(moreActions)
|
|
197
|
+
position: {
|
|
198
|
+
hoverPosition: HoverPosition.LEFT
|
|
199
|
+
}
|
|
162
200
|
}));
|
|
201
|
+
const confirmWidget = this._register(
|
|
202
|
+
this.instantiationService.createInstance(ChatCustomConfirmationWidget, this.context, {
|
|
203
|
+
title,
|
|
204
|
+
icon: Codicon.terminal,
|
|
205
|
+
message: elements.root,
|
|
206
|
+
buttons: this._createButtons(moreActions)
|
|
207
|
+
})
|
|
208
|
+
);
|
|
163
209
|
if (disclaimer) {
|
|
164
210
|
this._appendMarkdownPart(elements.disclaimer, disclaimer, codeBlockRenderOptions);
|
|
165
211
|
}
|
|
166
212
|
const hasToolConfirmationKey = ChatContextKeys.Editing.hasToolConfirmation.bindTo(this.contextKeyService);
|
|
167
213
|
hasToolConfirmationKey.set(true);
|
|
168
214
|
this._register(toDisposable(() => hasToolConfirmationKey.reset()));
|
|
169
|
-
this._register(confirmWidget.onDidClick(async
|
|
215
|
+
this._register(confirmWidget.onDidClick(async button => {
|
|
170
216
|
let doComplete = true;
|
|
171
217
|
const data = button.data;
|
|
172
218
|
let toolConfirmKind = ToolConfirmKind.Denied;
|
|
173
|
-
if (typeof data ===
|
|
219
|
+
if (typeof data === "boolean") {
|
|
174
220
|
if (data) {
|
|
175
221
|
toolConfirmKind = ToolConfirmKind.UserAction;
|
|
176
222
|
if (terminalData.autoApproveInfo) {
|
|
177
223
|
terminalData.autoApproveInfo = undefined;
|
|
178
224
|
}
|
|
179
225
|
}
|
|
180
|
-
}
|
|
181
|
-
else if (typeof data !== 'boolean') {
|
|
226
|
+
} else if (typeof data !== "boolean") {
|
|
182
227
|
switch (data.type) {
|
|
183
|
-
|
|
228
|
+
case "enable":
|
|
229
|
+
{
|
|
184
230
|
const optedIn = await this._showAutoApproveWarning();
|
|
185
231
|
if (optedIn) {
|
|
186
|
-
this.storageService.store(
|
|
232
|
+
this.storageService.store(
|
|
233
|
+
TerminalToolConfirmationStorageKeys.TerminalAutoApproveWarningAccepted,
|
|
234
|
+
true,
|
|
235
|
+
StorageScope.APPLICATION,
|
|
236
|
+
StorageTarget.USER
|
|
237
|
+
);
|
|
187
238
|
if (terminalData.autoApproveInfo) {
|
|
188
239
|
toolConfirmKind = ToolConfirmKind.UserAction;
|
|
189
240
|
}
|
|
@@ -196,40 +247,48 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
196
247
|
confirmWidget.updateButtons(this._createButtons(terminalCustomActions));
|
|
197
248
|
doComplete = false;
|
|
198
249
|
}
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
250
|
+
} else {
|
|
201
251
|
doComplete = false;
|
|
202
252
|
}
|
|
203
253
|
break;
|
|
204
254
|
}
|
|
205
|
-
|
|
255
|
+
case "skip":
|
|
256
|
+
{
|
|
206
257
|
toolConfirmKind = ToolConfirmKind.Skipped;
|
|
207
258
|
break;
|
|
208
259
|
}
|
|
209
|
-
|
|
260
|
+
case "newRule":
|
|
261
|
+
{
|
|
210
262
|
const newRules = asArray(data.rule);
|
|
211
|
-
const sessionRules = newRules.filter(r => r.scope ===
|
|
212
|
-
const workspaceRules = newRules.filter(r => r.scope ===
|
|
213
|
-
const userRules = newRules.filter(r => r.scope ===
|
|
214
|
-
const
|
|
263
|
+
const sessionRules = newRules.filter(r => r.scope === "session");
|
|
264
|
+
const workspaceRules = newRules.filter(r => r.scope === "workspace");
|
|
265
|
+
const userRules = newRules.filter(r => r.scope === "user");
|
|
266
|
+
const chatSessionResource = this.context.element.sessionResource;
|
|
215
267
|
for (const rule of sessionRules) {
|
|
216
|
-
this.terminalChatService.addSessionAutoApproveRule(
|
|
268
|
+
this.terminalChatService.addSessionAutoApproveRule(chatSessionResource, rule.key, rule.value);
|
|
217
269
|
}
|
|
218
270
|
if (workspaceRules.length > 0) {
|
|
219
271
|
const inspect = this.configurationService.inspect(TerminalContribSettingId.AutoApprove);
|
|
220
272
|
const oldValue = inspect.workspaceValue ?? {};
|
|
221
273
|
if (isObject(oldValue)) {
|
|
222
|
-
const newValue = {
|
|
274
|
+
const newValue = {
|
|
275
|
+
...oldValue
|
|
276
|
+
};
|
|
223
277
|
for (const rule of workspaceRules) {
|
|
224
278
|
newValue[rule.key] = rule.value;
|
|
225
279
|
}
|
|
226
|
-
await this.configurationService.updateValue(
|
|
227
|
-
|
|
228
|
-
|
|
280
|
+
await this.configurationService.updateValue(
|
|
281
|
+
TerminalContribSettingId.AutoApprove,
|
|
282
|
+
newValue,
|
|
283
|
+
ConfigurationTarget.WORKSPACE
|
|
284
|
+
);
|
|
285
|
+
} else {
|
|
229
286
|
this.preferencesService.openSettings({
|
|
230
287
|
jsonEditor: true,
|
|
231
288
|
target: ConfigurationTarget.WORKSPACE,
|
|
232
|
-
revealSetting: {
|
|
289
|
+
revealSetting: {
|
|
290
|
+
key: TerminalContribSettingId.AutoApprove
|
|
291
|
+
}
|
|
233
292
|
});
|
|
234
293
|
throw ( new ErrorNoTelemetry(`Cannot add new rule, existing workspace setting is unexpected format`));
|
|
235
294
|
}
|
|
@@ -238,30 +297,33 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
238
297
|
const inspect = this.configurationService.inspect(TerminalContribSettingId.AutoApprove);
|
|
239
298
|
const oldValue = inspect.userValue ?? {};
|
|
240
299
|
if (isObject(oldValue)) {
|
|
241
|
-
const newValue = {
|
|
300
|
+
const newValue = {
|
|
301
|
+
...oldValue
|
|
302
|
+
};
|
|
242
303
|
for (const rule of userRules) {
|
|
243
304
|
newValue[rule.key] = rule.value;
|
|
244
305
|
}
|
|
245
306
|
await this.configurationService.updateValue(TerminalContribSettingId.AutoApprove, newValue, ConfigurationTarget.USER);
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
307
|
+
} else {
|
|
248
308
|
this.preferencesService.openSettings({
|
|
249
309
|
jsonEditor: true,
|
|
250
310
|
target: ConfigurationTarget.USER,
|
|
251
|
-
revealSetting: {
|
|
311
|
+
revealSetting: {
|
|
312
|
+
key: TerminalContribSettingId.AutoApprove
|
|
313
|
+
}
|
|
252
314
|
});
|
|
253
315
|
throw ( new ErrorNoTelemetry(`Cannot add new rule, existing setting is unexpected format`));
|
|
254
316
|
}
|
|
255
317
|
}
|
|
256
318
|
function formatRuleLinks(rules, scope) {
|
|
257
319
|
return ( rules.map(e => {
|
|
258
|
-
if (scope ===
|
|
320
|
+
if (scope === "session") {
|
|
259
321
|
return `\`${e.key}\``;
|
|
260
322
|
}
|
|
261
|
-
const target = scope ===
|
|
323
|
+
const target = scope === "workspace" ? ConfigurationTarget.WORKSPACE : ConfigurationTarget.USER;
|
|
262
324
|
const settingsUri = createCommandUri(TerminalContribCommandId.OpenTerminalSettingsLink, target);
|
|
263
|
-
return `[\`${e.key}\`](${( settingsUri.toString())} "${( localize(
|
|
264
|
-
})).join(
|
|
325
|
+
return `[\`${e.key}\`](${( settingsUri.toString())} "${( localize(5970, "View rule in settings"))}")`;
|
|
326
|
+
})).join(", ");
|
|
265
327
|
}
|
|
266
328
|
const mdTrustSettings = {
|
|
267
329
|
isTrusted: {
|
|
@@ -270,119 +332,117 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
270
332
|
};
|
|
271
333
|
const parts = [];
|
|
272
334
|
if (sessionRules.length > 0) {
|
|
273
|
-
parts.push(sessionRules.length === 1
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
'Session auto approve rules {0} added',
|
|
282
|
-
formatRuleLinks(sessionRules, 'session')
|
|
335
|
+
parts.push(sessionRules.length === 1 ? ( localize(
|
|
336
|
+
5971,
|
|
337
|
+
"Session auto approve rule {0} added",
|
|
338
|
+
formatRuleLinks(sessionRules, "session")
|
|
339
|
+
)) : ( localize(
|
|
340
|
+
5972,
|
|
341
|
+
"Session auto approve rules {0} added",
|
|
342
|
+
formatRuleLinks(sessionRules, "session")
|
|
283
343
|
)));
|
|
284
344
|
}
|
|
285
345
|
if (workspaceRules.length > 0) {
|
|
286
|
-
parts.push(workspaceRules.length === 1
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
'Workspace auto approve rules {0} added',
|
|
295
|
-
formatRuleLinks(workspaceRules, 'workspace')
|
|
346
|
+
parts.push(workspaceRules.length === 1 ? ( localize(
|
|
347
|
+
5973,
|
|
348
|
+
"Workspace auto approve rule {0} added",
|
|
349
|
+
formatRuleLinks(workspaceRules, "workspace")
|
|
350
|
+
)) : ( localize(
|
|
351
|
+
5974,
|
|
352
|
+
"Workspace auto approve rules {0} added",
|
|
353
|
+
formatRuleLinks(workspaceRules, "workspace")
|
|
296
354
|
)));
|
|
297
355
|
}
|
|
298
356
|
if (userRules.length > 0) {
|
|
299
|
-
parts.push(userRules.length === 1
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
'User auto approve rules {0} added',
|
|
308
|
-
formatRuleLinks(userRules, 'user')
|
|
357
|
+
parts.push(userRules.length === 1 ? ( localize(
|
|
358
|
+
5975,
|
|
359
|
+
"User auto approve rule {0} added",
|
|
360
|
+
formatRuleLinks(userRules, "user")
|
|
361
|
+
)) : ( localize(
|
|
362
|
+
5976,
|
|
363
|
+
"User auto approve rules {0} added",
|
|
364
|
+
formatRuleLinks(userRules, "user")
|
|
309
365
|
)));
|
|
310
366
|
}
|
|
311
367
|
if (parts.length > 0) {
|
|
312
|
-
terminalData.autoApproveInfo = ( new MarkdownString(parts.join(
|
|
368
|
+
terminalData.autoApproveInfo = ( new MarkdownString(parts.join(", "), mdTrustSettings));
|
|
313
369
|
}
|
|
314
370
|
toolConfirmKind = ToolConfirmKind.UserAction;
|
|
315
371
|
break;
|
|
316
372
|
}
|
|
317
|
-
|
|
373
|
+
case "configure":
|
|
374
|
+
{
|
|
318
375
|
this.preferencesService.openSettings({
|
|
319
376
|
target: ConfigurationTarget.USER,
|
|
320
|
-
query: `@id:${TerminalContribSettingId.AutoApprove}
|
|
377
|
+
query: `@id:${TerminalContribSettingId.AutoApprove}`
|
|
321
378
|
});
|
|
322
379
|
doComplete = false;
|
|
323
380
|
break;
|
|
324
381
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
this.
|
|
328
|
-
|
|
382
|
+
case "sessionApproval":
|
|
383
|
+
{
|
|
384
|
+
const sessionResource = this.context.element.sessionResource;
|
|
385
|
+
this.terminalChatService.setChatSessionAutoApproval(sessionResource, true);
|
|
386
|
+
const disableUri = createCommandUri(TerminalContribCommandId.DisableSessionAutoApproval, sessionResource);
|
|
329
387
|
const mdTrustSettings = {
|
|
330
388
|
isTrusted: {
|
|
331
389
|
enabledCommands: [TerminalContribCommandId.DisableSessionAutoApproval]
|
|
332
390
|
}
|
|
333
391
|
};
|
|
334
|
-
terminalData.autoApproveInfo = ( new MarkdownString(`${( localize(
|
|
392
|
+
terminalData.autoApproveInfo = ( new MarkdownString(`${( localize(5977, "All commands will be auto approved for this session"))} ([${( localize(5978, "Disable"))}](${( disableUri.toString())}))`, mdTrustSettings));
|
|
335
393
|
toolConfirmKind = ToolConfirmKind.UserAction;
|
|
336
394
|
break;
|
|
337
395
|
}
|
|
338
396
|
}
|
|
339
397
|
}
|
|
340
398
|
if (doComplete) {
|
|
341
|
-
IChatToolInvocation.confirmWith(toolInvocation, {
|
|
399
|
+
IChatToolInvocation.confirmWith(toolInvocation, {
|
|
400
|
+
type: toolConfirmKind
|
|
401
|
+
});
|
|
342
402
|
this.chatWidgetService.getWidgetBySessionResource(this.context.element.sessionResource)?.focusInput();
|
|
343
403
|
}
|
|
344
404
|
}));
|
|
345
|
-
this._register(confirmWidget.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
|
|
346
405
|
this.domNode = confirmWidget.domNode;
|
|
347
406
|
}
|
|
348
407
|
_createButtons(moreActions) {
|
|
349
408
|
const getLabelAndTooltip = (label, actionId, tooltipDetail = label) => {
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
|
|
409
|
+
const tooltip = this.keybindingService.appendKeybinding(tooltipDetail, actionId);
|
|
410
|
+
return {
|
|
411
|
+
label,
|
|
412
|
+
tooltip
|
|
413
|
+
};
|
|
353
414
|
};
|
|
354
|
-
return [
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
415
|
+
return [{
|
|
416
|
+
...getLabelAndTooltip(( localize(5979, "Allow")), AcceptToolConfirmationActionId),
|
|
417
|
+
data: true,
|
|
418
|
+
moreActions
|
|
419
|
+
}, {
|
|
420
|
+
...getLabelAndTooltip(( localize(5980, "Skip")), SkipToolConfirmationActionId, ( localize(5981, "Proceed without executing this command"))),
|
|
421
|
+
data: {
|
|
422
|
+
type: "skip"
|
|
359
423
|
},
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
data: { type: 'skip' },
|
|
363
|
-
isSecondary: true,
|
|
364
|
-
},
|
|
365
|
-
];
|
|
424
|
+
isSecondary: true
|
|
425
|
+
}];
|
|
366
426
|
}
|
|
367
427
|
async _showAutoApproveWarning() {
|
|
368
428
|
const promptResult = await this.dialogService.prompt({
|
|
369
429
|
type: Severity.Info,
|
|
370
|
-
message: ( localize(
|
|
430
|
+
message: ( localize(5982, "Enable terminal auto approve?")),
|
|
371
431
|
buttons: [{
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
432
|
+
label: ( localize(5983, "Enable")),
|
|
433
|
+
run: () => true
|
|
434
|
+
}],
|
|
375
435
|
cancelButton: true,
|
|
376
436
|
custom: {
|
|
377
437
|
icon: Codicon.shield,
|
|
378
438
|
markdownDetails: [{
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
439
|
+
markdown: ( new MarkdownString(( localize(
|
|
440
|
+
5984,
|
|
441
|
+
"This will enable a configurable subset of commands to run in the terminal autonomously. It provides *best effort protections* and assumes the agent is not acting maliciously."
|
|
442
|
+
))))
|
|
443
|
+
}, {
|
|
444
|
+
markdown: ( new MarkdownString(`[${( localize(5985, "Learn more about the potential risks and how to avoid them."))}](https://code.visualstudio.com/docs/copilot/security#_security-considerations)`))
|
|
445
|
+
}]
|
|
386
446
|
}
|
|
387
447
|
});
|
|
388
448
|
return promptResult.result === true;
|
|
@@ -390,32 +450,19 @@ let ChatTerminalToolConfirmationSubPart = class ChatTerminalToolConfirmationSubP
|
|
|
390
450
|
_getUniqueCodeBlockUri() {
|
|
391
451
|
return ( URI.from({
|
|
392
452
|
scheme: Schemas.vscodeChatCodeBlock,
|
|
393
|
-
path: generateUuid()
|
|
453
|
+
path: generateUuid()
|
|
394
454
|
}));
|
|
395
455
|
}
|
|
396
456
|
_appendMarkdownPart(container, message, codeBlockRenderOptions) {
|
|
397
457
|
const part = this._register(this.instantiationService.createInstance(ChatMarkdownContentPart, {
|
|
398
|
-
kind:
|
|
399
|
-
content: typeof message ===
|
|
400
|
-
}, this.context, this.editorPool, false, this.codeBlockStartIndex, this.renderer, undefined, this.currentWidthDelegate(), this.codeBlockModelCollection, {
|
|
458
|
+
kind: "markdownContent",
|
|
459
|
+
content: typeof message === "string" ? ( new MarkdownString()).appendMarkdown(message) : message
|
|
460
|
+
}, this.context, this.editorPool, false, this.codeBlockStartIndex, this.renderer, undefined, this.currentWidthDelegate(), this.codeBlockModelCollection, {
|
|
461
|
+
codeBlockRenderOptions
|
|
462
|
+
}));
|
|
401
463
|
append(container, part.domNode);
|
|
402
|
-
this._register(part.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
|
|
403
464
|
}
|
|
404
465
|
};
|
|
405
|
-
ChatTerminalToolConfirmationSubPart = ( __decorate([
|
|
406
|
-
( __param(8, IInstantiationService)),
|
|
407
|
-
( __param(9, IDialogService)),
|
|
408
|
-
( __param(10, IKeybindingService)),
|
|
409
|
-
( __param(11, IModelService)),
|
|
410
|
-
( __param(12, ILanguageService)),
|
|
411
|
-
( __param(13, IConfigurationService)),
|
|
412
|
-
( __param(14, IContextKeyService)),
|
|
413
|
-
( __param(15, IChatWidgetService)),
|
|
414
|
-
( __param(16, IPreferencesService)),
|
|
415
|
-
( __param(17, IStorageService)),
|
|
416
|
-
( __param(18, ITerminalChatService)),
|
|
417
|
-
( __param(19, ITextModelService)),
|
|
418
|
-
( __param(20, IHoverService))
|
|
419
|
-
], ChatTerminalToolConfirmationSubPart));
|
|
466
|
+
ChatTerminalToolConfirmationSubPart = ( __decorate([( __param(8, IInstantiationService)), ( __param(9, IDialogService)), ( __param(10, IKeybindingService)), ( __param(11, IModelService)), ( __param(12, ILanguageService)), ( __param(13, IConfigurationService)), ( __param(14, IContextKeyService)), ( __param(15, IChatWidgetService)), ( __param(16, IPreferencesService)), ( __param(17, IStorageService)), ( __param(18, ITerminalChatService)), ( __param(19, ITextModelService)), ( __param(20, IHoverService))], ChatTerminalToolConfirmationSubPart));
|
|
420
467
|
|
|
421
468
|
export { ChatTerminalToolConfirmationSubPart, TerminalToolConfirmationStorageKeys };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
1
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
3
|
import { IChatToolInvocation, IChatToolInvocationSerialized, type IChatTerminalToolInvocationData, type ILegacyChatTerminalToolInvocationData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
3
4
|
import { CodeBlockModelCollection } from "../../../../common/widget/codeBlockModelCollection.js";
|
|
@@ -25,6 +26,7 @@ export declare class ChatTerminalToolProgressPart extends BaseChatToolInvocation
|
|
|
25
26
|
private readonly _contextKeyService;
|
|
26
27
|
private readonly _chatWidgetService;
|
|
27
28
|
private readonly _keybindingService;
|
|
29
|
+
private readonly _configurationService;
|
|
28
30
|
readonly domNode: HTMLElement;
|
|
29
31
|
private readonly _actionBar;
|
|
30
32
|
private readonly _titleElement;
|
|
@@ -37,6 +39,7 @@ export declare class ChatTerminalToolProgressPart extends BaseChatToolInvocation
|
|
|
37
39
|
private readonly _showOutputAction;
|
|
38
40
|
private _showOutputActionAdded;
|
|
39
41
|
private readonly _focusAction;
|
|
42
|
+
private readonly _continueInBackgroundAction;
|
|
40
43
|
private readonly _terminalData;
|
|
41
44
|
private _terminalCommandUri;
|
|
42
45
|
private _storedCommandId;
|
|
@@ -44,11 +47,17 @@ export declare class ChatTerminalToolProgressPart extends BaseChatToolInvocation
|
|
|
44
47
|
private readonly _isSerializedInvocation;
|
|
45
48
|
private _terminalInstance;
|
|
46
49
|
private readonly _decoration;
|
|
50
|
+
private _userToggledOutput;
|
|
51
|
+
private _isInThinkingContainer;
|
|
52
|
+
private _thinkingCollapsibleWrapper;
|
|
47
53
|
private markdownPart;
|
|
48
54
|
get codeblocks(): IChatCodeBlockInfo[];
|
|
49
55
|
get elementIndex(): number;
|
|
50
56
|
get contentIndex(): number;
|
|
51
|
-
constructor(toolInvocation: IChatToolInvocation | IChatToolInvocationSerialized, terminalData: IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData, context: IChatContentPartRenderContext, renderer: IMarkdownRenderer, editorPool: EditorPool, currentWidthDelegate: () => number, codeBlockStartIndex: number, codeBlockModelCollection: CodeBlockModelCollection, _instantiationService: IInstantiationService, _terminalChatService: ITerminalChatService, _terminalService: ITerminalService, _contextKeyService: IContextKeyService, _chatWidgetService: IChatWidgetService, _keybindingService: IKeybindingService);
|
|
57
|
+
constructor(toolInvocation: IChatToolInvocation | IChatToolInvocationSerialized, terminalData: IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData, context: IChatContentPartRenderContext, renderer: IMarkdownRenderer, editorPool: EditorPool, currentWidthDelegate: () => number, codeBlockStartIndex: number, codeBlockModelCollection: CodeBlockModelCollection, _instantiationService: IInstantiationService, _terminalChatService: ITerminalChatService, _terminalService: ITerminalService, _contextKeyService: IContextKeyService, _chatWidgetService: IChatWidgetService, _keybindingService: IKeybindingService, _configurationService: IConfigurationService);
|
|
58
|
+
private _createCollapsibleWrapper;
|
|
59
|
+
expandCollapsibleWrapper(): void;
|
|
60
|
+
markCollapsibleWrapperComplete(): void;
|
|
52
61
|
private _initializeTerminalActions;
|
|
53
62
|
private _addActions;
|
|
54
63
|
private _getResolvedCommand;
|
|
@@ -56,6 +65,7 @@ export declare class ChatTerminalToolProgressPart extends BaseChatToolInvocation
|
|
|
56
65
|
private _clearCommandAssociation;
|
|
57
66
|
private _registerInstanceListener;
|
|
58
67
|
private _removeFocusAction;
|
|
68
|
+
private _removeContinueInBackgroundAction;
|
|
59
69
|
private _toggleOutput;
|
|
60
70
|
private _ensureTerminalInstance;
|
|
61
71
|
private _handleOutputFocus;
|
|
@@ -98,3 +108,9 @@ export declare class FocusChatInstanceAction extends Action implements IAction {
|
|
|
98
108
|
private _resolveCommand;
|
|
99
109
|
private _updateTooltip;
|
|
100
110
|
}
|
|
111
|
+
export declare class ContinueInBackgroundAction extends Action implements IAction {
|
|
112
|
+
private readonly _terminalToolSessionId;
|
|
113
|
+
private readonly _terminalChatService;
|
|
114
|
+
constructor(_terminalToolSessionId: string, _terminalChatService: ITerminalChatService);
|
|
115
|
+
run(): Promise<void>;
|
|
116
|
+
}
|