@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 { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
|
|
|
8
8
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
9
9
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
10
10
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
11
|
-
import {
|
|
11
|
+
import { getAgentSessionProvider, getAgentCanContinueIn, getAgentSessionProviderIcon, getAgentSessionProviderName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
12
12
|
|
|
13
13
|
let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
14
14
|
constructor(contextMenuService, chatSessionsService) {
|
|
@@ -23,15 +23,15 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
23
23
|
this.domNode = this.createSuggestNextWidget();
|
|
24
24
|
}
|
|
25
25
|
get height() {
|
|
26
|
-
return this.domNode.style.display ===
|
|
26
|
+
return this.domNode.style.display === "none" ? 0 : this.domNode.offsetHeight;
|
|
27
27
|
}
|
|
28
28
|
getCurrentMode() {
|
|
29
29
|
return this._currentMode;
|
|
30
30
|
}
|
|
31
31
|
createSuggestNextWidget() {
|
|
32
|
-
const container = $(
|
|
33
|
-
container.style.display =
|
|
34
|
-
this.titleElement = append(container, $(
|
|
32
|
+
const container = $(".chat-suggest-next-widget.chat-welcome-view-suggested-prompts");
|
|
33
|
+
container.style.display = "none";
|
|
34
|
+
this.titleElement = append(container, $(".chat-welcome-view-suggested-prompts-title"));
|
|
35
35
|
this.promptsContainer = container;
|
|
36
36
|
return container;
|
|
37
37
|
}
|
|
@@ -42,8 +42,8 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
this._currentMode = mode;
|
|
45
|
-
const modeName = mode.name.get() || mode.label.get() || ( localize(
|
|
46
|
-
this.titleElement.textContent = ( localize(
|
|
45
|
+
const modeName = mode.name.get() || mode.label.get() || ( localize(5897, "current mode"));
|
|
46
|
+
this.titleElement.textContent = ( localize(5898, "Proceed from {0}", modeName));
|
|
47
47
|
const childrenToRemove = [];
|
|
48
48
|
for (let i = 1; i < this.promptsContainer.children.length; i++) {
|
|
49
49
|
childrenToRemove.push(this.promptsContainer.children[i]);
|
|
@@ -60,87 +60,118 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
60
60
|
const promptButton = this.createPromptButton(handoff);
|
|
61
61
|
this.promptsContainer.appendChild(promptButton);
|
|
62
62
|
}
|
|
63
|
-
this.domNode.style.display =
|
|
63
|
+
this.domNode.style.display = "flex";
|
|
64
64
|
this._onDidChangeHeight.fire();
|
|
65
65
|
}
|
|
66
66
|
createPromptButton(handoff) {
|
|
67
67
|
const disposables = ( new DisposableStore());
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
const handoffLabel = handoff.label;
|
|
69
|
+
const getCurrentHandoff = () => {
|
|
70
|
+
const currentHandoffs = this._currentMode?.handOffs?.get();
|
|
71
|
+
return currentHandoffs?.find(h => h.label === handoffLabel) ?? handoff;
|
|
72
|
+
};
|
|
73
|
+
const button = $(".chat-welcome-view-suggested-prompt");
|
|
74
|
+
button.setAttribute("tabindex", "0");
|
|
75
|
+
button.setAttribute("role", "button");
|
|
76
|
+
button.setAttribute("aria-label", ( localize(5899, "{0}", handoff.label)));
|
|
77
|
+
const titleElement = append(button, $(".chat-welcome-view-suggested-prompt-title"));
|
|
73
78
|
titleElement.textContent = handoff.label;
|
|
74
79
|
const showContinueOn = handoff.showContinueOn ?? true;
|
|
75
80
|
const contributions = this.chatSessionsService.getAllChatSessionContributions();
|
|
76
|
-
const availableContributions = contributions.filter(c =>
|
|
81
|
+
const availableContributions = contributions.filter(c => {
|
|
82
|
+
if (!c.canDelegate) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
const provider = getAgentSessionProvider(c.type);
|
|
86
|
+
return provider !== undefined && getAgentCanContinueIn(provider);
|
|
87
|
+
});
|
|
77
88
|
if (showContinueOn && availableContributions.length > 0) {
|
|
78
|
-
button.classList.add(
|
|
79
|
-
const dropdownContainer = append(button, $(
|
|
80
|
-
dropdownContainer.setAttribute(
|
|
81
|
-
dropdownContainer.setAttribute(
|
|
82
|
-
dropdownContainer.setAttribute(
|
|
83
|
-
dropdownContainer.setAttribute(
|
|
84
|
-
const separator = append(dropdownContainer, $(
|
|
85
|
-
separator.setAttribute(
|
|
86
|
-
const chevron = append(dropdownContainer, $(
|
|
87
|
-
chevron.setAttribute(
|
|
89
|
+
button.classList.add("chat-suggest-next-has-dropdown");
|
|
90
|
+
const dropdownContainer = append(button, $(".chat-suggest-next-dropdown"));
|
|
91
|
+
dropdownContainer.setAttribute("tabindex", "0");
|
|
92
|
+
dropdownContainer.setAttribute("role", "button");
|
|
93
|
+
dropdownContainer.setAttribute("aria-label", ( localize(5900, "More options for {0}", handoff.label)));
|
|
94
|
+
dropdownContainer.setAttribute("aria-haspopup", "true");
|
|
95
|
+
const separator = append(dropdownContainer, $(".chat-suggest-next-separator"));
|
|
96
|
+
separator.setAttribute("aria-hidden", "true");
|
|
97
|
+
const chevron = append(dropdownContainer, $(".codicon.codicon-chevron-down.dropdown-chevron"));
|
|
98
|
+
chevron.setAttribute("aria-hidden", "true");
|
|
88
99
|
const showContextMenu = (e, anchor) => {
|
|
89
100
|
e.preventDefault();
|
|
90
101
|
e.stopPropagation();
|
|
91
102
|
const actions = ( availableContributions.map(contrib => {
|
|
92
|
-
const provider = contrib.type
|
|
103
|
+
const provider = getAgentSessionProvider(contrib.type);
|
|
93
104
|
const icon = getAgentSessionProviderIcon(provider);
|
|
94
105
|
const name = getAgentSessionProviderName(provider);
|
|
95
106
|
return (new Action(
|
|
96
107
|
contrib.type,
|
|
97
|
-
localize(
|
|
108
|
+
localize(5901, "Continue in {0}", name),
|
|
98
109
|
ThemeIcon.isThemeIcon(icon) ? ThemeIcon.asClassName(icon) : undefined,
|
|
99
110
|
true,
|
|
100
111
|
() => {
|
|
101
|
-
|
|
112
|
+
const currentHandoff = getCurrentHandoff();
|
|
113
|
+
if (currentHandoff) {
|
|
114
|
+
this._onDidSelectPrompt.fire({
|
|
115
|
+
handoff: currentHandoff,
|
|
116
|
+
agentId: contrib.name
|
|
117
|
+
});
|
|
118
|
+
}
|
|
102
119
|
}
|
|
103
120
|
));
|
|
104
121
|
}));
|
|
105
122
|
this.contextMenuService.showContextMenu({
|
|
106
123
|
getAnchor: () => anchor || dropdownContainer,
|
|
107
124
|
getActions: () => actions,
|
|
108
|
-
autoSelectFirstItem: true
|
|
125
|
+
autoSelectFirstItem: true
|
|
109
126
|
});
|
|
110
127
|
};
|
|
111
|
-
disposables.add(addDisposableListener(dropdownContainer,
|
|
128
|
+
disposables.add(addDisposableListener(dropdownContainer, "click", e => {
|
|
112
129
|
showContextMenu(e, dropdownContainer);
|
|
113
130
|
}));
|
|
114
|
-
disposables.add(addDisposableListener(dropdownContainer,
|
|
115
|
-
if (e.key ===
|
|
131
|
+
disposables.add(addDisposableListener(dropdownContainer, "keydown", e => {
|
|
132
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
116
133
|
showContextMenu(e, dropdownContainer);
|
|
117
134
|
}
|
|
118
135
|
}));
|
|
119
|
-
disposables.add(addDisposableListener(button,
|
|
120
|
-
if (isHTMLElement(e.target) && e.target.closest(
|
|
136
|
+
disposables.add(addDisposableListener(button, "click", e => {
|
|
137
|
+
if (isHTMLElement(e.target) && e.target.closest(".chat-suggest-next-dropdown")) {
|
|
121
138
|
return;
|
|
122
139
|
}
|
|
123
|
-
|
|
140
|
+
const currentHandoff = getCurrentHandoff();
|
|
141
|
+
if (currentHandoff) {
|
|
142
|
+
this._onDidSelectPrompt.fire({
|
|
143
|
+
handoff: currentHandoff
|
|
144
|
+
});
|
|
145
|
+
}
|
|
124
146
|
}));
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
147
|
+
} else {
|
|
148
|
+
disposables.add(addDisposableListener(button, "click", () => {
|
|
149
|
+
const currentHandoff = getCurrentHandoff();
|
|
150
|
+
if (currentHandoff) {
|
|
151
|
+
this._onDidSelectPrompt.fire({
|
|
152
|
+
handoff: currentHandoff
|
|
153
|
+
});
|
|
154
|
+
}
|
|
129
155
|
}));
|
|
130
156
|
}
|
|
131
|
-
disposables.add(addDisposableListener(button,
|
|
132
|
-
if (e.key ===
|
|
157
|
+
disposables.add(addDisposableListener(button, "keydown", e => {
|
|
158
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
133
159
|
e.preventDefault();
|
|
134
|
-
|
|
160
|
+
const currentHandoff = getCurrentHandoff();
|
|
161
|
+
if (currentHandoff) {
|
|
162
|
+
this._onDidSelectPrompt.fire({
|
|
163
|
+
handoff: currentHandoff
|
|
164
|
+
});
|
|
165
|
+
}
|
|
135
166
|
}
|
|
136
167
|
}));
|
|
137
168
|
this.buttonDisposables.set(button, disposables);
|
|
138
169
|
return button;
|
|
139
170
|
}
|
|
140
171
|
hide() {
|
|
141
|
-
if (this.domNode.style.display !==
|
|
172
|
+
if (this.domNode.style.display !== "none") {
|
|
142
173
|
this._currentMode = undefined;
|
|
143
|
-
this.domNode.style.display =
|
|
174
|
+
this.domNode.style.display = "none";
|
|
144
175
|
this._onDidChangeHeight.fire();
|
|
145
176
|
}
|
|
146
177
|
}
|
|
@@ -152,9 +183,6 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
152
183
|
super.dispose();
|
|
153
184
|
}
|
|
154
185
|
};
|
|
155
|
-
ChatSuggestNextWidget = ( __decorate([
|
|
156
|
-
( __param(0, IContextMenuService)),
|
|
157
|
-
( __param(1, IChatSessionsService))
|
|
158
|
-
], ChatSuggestNextWidget));
|
|
186
|
+
ChatSuggestNextWidget = ( __decorate([( __param(0, IContextMenuService)), ( __param(1, IChatSessionsService))], ChatSuggestNextWidget));
|
|
159
187
|
|
|
160
188
|
export { ChatSuggestNextWidget };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
1
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
4
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
|
-
import {
|
|
3
|
+
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
6
4
|
import { IChatTask, IChatTaskSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
5
|
+
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
7
6
|
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
8
7
|
import { CollapsibleListPool } from "./chatReferencesContentPart.js";
|
|
9
8
|
export declare class ChatTaskContentPart extends Disposable implements IChatContentPart {
|
|
10
9
|
private readonly task;
|
|
11
10
|
readonly domNode: HTMLElement;
|
|
12
|
-
readonly onDidChangeHeight: Event<void>;
|
|
13
11
|
private isSettled;
|
|
14
12
|
constructor(task: IChatTask | IChatTaskSerialized, contentReferencesListPool: CollapsibleListPool, chatContentMarkdownRenderer: IMarkdownRenderer, context: IChatContentPartRenderContext, instantiationService: IInstantiationService);
|
|
15
13
|
hasSameContent(other: IChatProgressRenderableResponseContent): boolean;
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js
CHANGED
|
@@ -1,49 +1,60 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
-
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
4
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
5
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
6
|
import { ChatProgressContentPart } from './chatProgressContentPart.js';
|
|
8
7
|
import { ChatCollapsibleListContentPart } from './chatReferencesContentPart.js';
|
|
9
8
|
|
|
10
9
|
let ChatTaskContentPart = class ChatTaskContentPart extends Disposable {
|
|
11
|
-
constructor(
|
|
10
|
+
constructor(
|
|
11
|
+
task,
|
|
12
|
+
contentReferencesListPool,
|
|
13
|
+
chatContentMarkdownRenderer,
|
|
14
|
+
context,
|
|
15
|
+
instantiationService
|
|
16
|
+
) {
|
|
12
17
|
super();
|
|
13
18
|
this.task = task;
|
|
14
19
|
if (task.progress.length) {
|
|
15
20
|
this.isSettled = true;
|
|
16
|
-
const refsPart = this._register(instantiationService.createInstance(
|
|
17
|
-
|
|
21
|
+
const refsPart = this._register(instantiationService.createInstance(
|
|
22
|
+
ChatCollapsibleListContentPart,
|
|
23
|
+
task.progress,
|
|
24
|
+
task.content.value,
|
|
25
|
+
context,
|
|
26
|
+
contentReferencesListPool,
|
|
27
|
+
undefined
|
|
28
|
+
));
|
|
29
|
+
this.domNode = $(".chat-progress-task");
|
|
18
30
|
this.domNode.appendChild(refsPart.domNode);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
else {
|
|
22
|
-
const isSettled = task.kind === 'progressTask' ?
|
|
23
|
-
task.isSettled() :
|
|
24
|
-
true;
|
|
31
|
+
} else {
|
|
32
|
+
const isSettled = task.kind === "progressTask" ? task.isSettled() : true;
|
|
25
33
|
this.isSettled = isSettled;
|
|
26
34
|
const showSpinner = !isSettled && !context.element.isComplete;
|
|
27
|
-
const progressPart = this._register(instantiationService.createInstance(
|
|
35
|
+
const progressPart = this._register(instantiationService.createInstance(
|
|
36
|
+
ChatProgressContentPart,
|
|
37
|
+
task,
|
|
38
|
+
chatContentMarkdownRenderer,
|
|
39
|
+
context,
|
|
40
|
+
showSpinner,
|
|
41
|
+
true,
|
|
42
|
+
undefined,
|
|
43
|
+
undefined
|
|
44
|
+
));
|
|
28
45
|
this.domNode = progressPart.domNode;
|
|
29
|
-
this.onDidChangeHeight = Event.None;
|
|
30
46
|
}
|
|
31
47
|
}
|
|
32
48
|
hasSameContent(other) {
|
|
33
|
-
if (other.kind ===
|
|
34
|
-
this.task.kind === 'progressTask' &&
|
|
35
|
-
other.isSettled() !== this.isSettled) {
|
|
49
|
+
if (other.kind === "progressTask" && this.task.kind === "progressTask" && other.isSettled() !== this.isSettled) {
|
|
36
50
|
return false;
|
|
37
51
|
}
|
|
38
|
-
return other.kind === this.task.kind &&
|
|
39
|
-
other.progress.length === this.task.progress.length;
|
|
52
|
+
return other.kind === this.task.kind && other.progress.length === this.task.progress.length;
|
|
40
53
|
}
|
|
41
54
|
addDisposable(disposable) {
|
|
42
55
|
this._register(disposable);
|
|
43
56
|
}
|
|
44
57
|
};
|
|
45
|
-
ChatTaskContentPart = ( __decorate([
|
|
46
|
-
( __param(4, IInstantiationService))
|
|
47
|
-
], ChatTaskContentPart));
|
|
58
|
+
ChatTaskContentPart = ( __decorate([( __param(4, IInstantiationService))], ChatTaskContentPart));
|
|
48
59
|
|
|
49
60
|
export { ChatTaskContentPart };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
1
|
import { Disposable, IDisposable, IReference } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
2
|
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
4
3
|
import { IResolvedTextEditorModel } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService";
|
|
@@ -14,8 +13,6 @@ export declare class ChatTextEditContentPart extends Disposable implements IChat
|
|
|
14
13
|
private readonly codeCompareModelService;
|
|
15
14
|
readonly domNode: HTMLElement;
|
|
16
15
|
private readonly comparePart;
|
|
17
|
-
private readonly _onDidChangeHeight;
|
|
18
|
-
readonly onDidChangeHeight: Event<void>;
|
|
19
16
|
constructor(chatTextEdit: IChatTextEditGroup, context: IChatContentPartRenderContext, rendererOptions: IChatListItemRendererOptions, diffEditorPool: DiffEditorPool, currentWidth: number, codeCompareModelService: ICodeCompareModelService);
|
|
20
17
|
layout(width: number): void;
|
|
21
18
|
hasSameContent(other: IChatProgressRenderableResponseContent): boolean;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { $ as $$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
|
-
import {
|
|
5
|
+
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { Disposable, toDisposable, RefCountedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
7
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
8
8
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
@@ -22,26 +22,29 @@ import { ICodeCompareModelService } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
22
22
|
|
|
23
23
|
const $ = $$1;
|
|
24
24
|
let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
|
|
25
|
-
constructor(
|
|
25
|
+
constructor(
|
|
26
|
+
chatTextEdit,
|
|
27
|
+
context,
|
|
28
|
+
rendererOptions,
|
|
29
|
+
diffEditorPool,
|
|
30
|
+
currentWidth,
|
|
31
|
+
codeCompareModelService
|
|
32
|
+
) {
|
|
26
33
|
super();
|
|
27
34
|
this.codeCompareModelService = codeCompareModelService;
|
|
28
|
-
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
29
|
-
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
30
35
|
const element = context.element;
|
|
31
36
|
assertType(isResponseVM(element));
|
|
32
37
|
if (rendererOptions.renderTextEditsAsSummary?.(chatTextEdit.uri)) {
|
|
33
|
-
if (element.response.value.every(item => item.kind ===
|
|
34
|
-
this.domNode = $(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
if (element.response.value.every(item => item.kind === "textEditGroup")) {
|
|
39
|
+
this.domNode = $(
|
|
40
|
+
".interactive-edits-summary",
|
|
41
|
+
undefined,
|
|
42
|
+
!element.isComplete ? "" : element.isCanceled ? ( localize(5902, "Making changes was aborted.")) : ( localize(5903, "Made changes."))
|
|
43
|
+
);
|
|
44
|
+
} else {
|
|
45
|
+
this.domNode = $("div");
|
|
39
46
|
}
|
|
40
|
-
|
|
41
|
-
this.domNode = $('div');
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
47
|
+
} else {
|
|
45
48
|
const cts = ( new CancellationTokenSource());
|
|
46
49
|
let isDisposed = false;
|
|
47
50
|
this._register(toDisposable(() => {
|
|
@@ -49,9 +52,6 @@ let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
|
|
|
49
52
|
cts.dispose(true);
|
|
50
53
|
}));
|
|
51
54
|
this.comparePart = this._register(diffEditorPool.get());
|
|
52
|
-
this._register(this.comparePart.object.onDidChangeContentHeight(() => {
|
|
53
|
-
this._onDidChangeHeight.fire();
|
|
54
|
-
}));
|
|
55
55
|
const data = {
|
|
56
56
|
element,
|
|
57
57
|
edit: chatTextEdit,
|
|
@@ -77,15 +77,13 @@ let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
|
|
|
77
77
|
this.comparePart?.object.layout(width);
|
|
78
78
|
}
|
|
79
79
|
hasSameContent(other) {
|
|
80
|
-
return other.kind ===
|
|
80
|
+
return other.kind === "textEditGroup";
|
|
81
81
|
}
|
|
82
82
|
addDisposable(disposable) {
|
|
83
83
|
this._register(disposable);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
ChatTextEditContentPart = ( __decorate([
|
|
87
|
-
( __param(5, ICodeCompareModelService))
|
|
88
|
-
], ChatTextEditContentPart));
|
|
86
|
+
ChatTextEditContentPart = ( __decorate([( __param(5, ICodeCompareModelService))], ChatTextEditContentPart));
|
|
89
87
|
let CodeCompareModelService = class CodeCompareModelService {
|
|
90
88
|
constructor(textModelService, modelService, chatService) {
|
|
91
89
|
this.textModelService = textModelService;
|
|
@@ -94,22 +92,34 @@ let CodeCompareModelService = class CodeCompareModelService {
|
|
|
94
92
|
}
|
|
95
93
|
async createModel(element, chatTextEdit) {
|
|
96
94
|
const original = await this.textModelService.createModelReference(chatTextEdit.uri);
|
|
97
|
-
const modified = await this.textModelService.createModelReference((this.modelService.createModel(
|
|
98
|
-
|
|
99
|
-
|
|
95
|
+
const modified = await this.textModelService.createModelReference((this.modelService.createModel(
|
|
96
|
+
createTextBufferFactoryFromSnapshot(original.object.textEditorModel.createSnapshot()),
|
|
97
|
+
{
|
|
98
|
+
languageId: original.object.textEditorModel.getLanguageId(),
|
|
99
|
+
onDidChange: Event.None
|
|
100
|
+
},
|
|
101
|
+
( URI.from({
|
|
102
|
+
scheme: Schemas.vscodeChatCodeBlock,
|
|
103
|
+
path: chatTextEdit.uri.path,
|
|
104
|
+
query: generateUuid()
|
|
105
|
+
})),
|
|
106
|
+
false
|
|
107
|
+
)).uri);
|
|
100
108
|
const d = ( new RefCountedDisposable(toDisposable(() => {
|
|
101
109
|
original.dispose();
|
|
102
110
|
modified.dispose();
|
|
103
111
|
})));
|
|
104
|
-
let originalSha1 =
|
|
112
|
+
let originalSha1 = "";
|
|
105
113
|
if (chatTextEdit.state) {
|
|
106
114
|
originalSha1 = chatTextEdit.state.sha1;
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
115
|
+
} else {
|
|
109
116
|
const sha1 = ( new DefaultModelSHA1Computer());
|
|
110
117
|
if (sha1.canComputeSHA1(original.object.textEditorModel)) {
|
|
111
118
|
originalSha1 = sha1.computeSHA1(original.object.textEditorModel);
|
|
112
|
-
chatTextEdit.state = {
|
|
119
|
+
chatTextEdit.state = {
|
|
120
|
+
sha1: originalSha1,
|
|
121
|
+
applied: 0
|
|
122
|
+
};
|
|
113
123
|
}
|
|
114
124
|
}
|
|
115
125
|
const chatModel = this.chatService.getSession(element.sessionResource);
|
|
@@ -119,7 +129,7 @@ let CodeCompareModelService = class CodeCompareModelService {
|
|
|
119
129
|
continue;
|
|
120
130
|
}
|
|
121
131
|
for (const item of request.response.response.value) {
|
|
122
|
-
if (item.kind !==
|
|
132
|
+
if (item.kind !== "textEditGroup" || item.state?.applied || !isEqual(item.uri, chatTextEdit.uri)) {
|
|
123
133
|
continue;
|
|
124
134
|
}
|
|
125
135
|
for (const group of item.edits) {
|
|
@@ -144,14 +154,10 @@ let CodeCompareModelService = class CodeCompareModelService {
|
|
|
144
154
|
},
|
|
145
155
|
dispose() {
|
|
146
156
|
d.release();
|
|
147
|
-
}
|
|
157
|
+
}
|
|
148
158
|
};
|
|
149
159
|
}
|
|
150
160
|
};
|
|
151
|
-
CodeCompareModelService = ( __decorate([
|
|
152
|
-
( __param(0, ITextModelService)),
|
|
153
|
-
( __param(1, IModelService)),
|
|
154
|
-
( __param(2, IChatService))
|
|
155
|
-
], CodeCompareModelService));
|
|
161
|
+
CodeCompareModelService = ( __decorate([( __param(0, ITextModelService)), ( __param(1, IModelService)), ( __param(2, IChatService))], CodeCompareModelService));
|
|
156
162
|
|
|
157
163
|
export { ChatTextEditContentPart, CodeCompareModelService };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IChatThinkingPart, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
1
|
+
import { IChatMarkdownContent, IChatThinkingPart, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
2
2
|
import { IChatContentPartRenderContext, IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
3
3
|
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
4
4
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
@@ -6,17 +6,23 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
6
6
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
7
|
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
8
8
|
import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js";
|
|
9
|
+
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
10
|
+
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
9
11
|
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service";
|
|
10
12
|
import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service";
|
|
11
13
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
14
|
+
export declare function getToolInvocationIcon(toolId: string): ThemeIcon;
|
|
15
|
+
export declare function createThinkingIcon(icon: ThemeIcon): HTMLElement;
|
|
12
16
|
export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart implements IChatContentPart {
|
|
13
17
|
private readonly chatContentMarkdownRenderer;
|
|
18
|
+
private streamingCompleted;
|
|
14
19
|
private readonly instantiationService;
|
|
15
20
|
private readonly configurationService;
|
|
16
21
|
private readonly chatMarkdownAnchorService;
|
|
17
22
|
private readonly languageModelsService;
|
|
18
23
|
readonly codeblocks: undefined;
|
|
19
24
|
readonly codeblocksPartId: undefined;
|
|
25
|
+
private readonly _onDidChangeHeight;
|
|
20
26
|
private id;
|
|
21
27
|
private content;
|
|
22
28
|
private currentThinkingValue;
|
|
@@ -26,18 +32,42 @@ export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart
|
|
|
26
32
|
private markdownResult;
|
|
27
33
|
private wrapper;
|
|
28
34
|
private fixedScrollingMode;
|
|
35
|
+
private autoScrollEnabled;
|
|
36
|
+
private scrollableElement;
|
|
29
37
|
private lastExtractedTitle;
|
|
30
38
|
private extractedTitles;
|
|
31
39
|
private toolInvocationCount;
|
|
32
|
-
private
|
|
40
|
+
private appendedItemCount;
|
|
33
41
|
private isActive;
|
|
34
42
|
private toolInvocations;
|
|
35
|
-
private
|
|
36
|
-
|
|
43
|
+
private singleItemInfo;
|
|
44
|
+
private lazyItems;
|
|
45
|
+
private hasExpandedOnce;
|
|
46
|
+
private workingSpinnerElement;
|
|
47
|
+
private workingSpinnerLabel;
|
|
48
|
+
private availableMessagesByCategory;
|
|
49
|
+
private readonly toolWrappersByCallId;
|
|
50
|
+
private readonly toolDisposables;
|
|
51
|
+
private pendingRemovals;
|
|
52
|
+
private pendingScrollDisposable;
|
|
53
|
+
private mutationObserverDisposable;
|
|
54
|
+
private isUpdatingDimensions;
|
|
55
|
+
private getRandomWorkingMessage;
|
|
56
|
+
constructor(content: IChatThinkingPart, context: IChatContentPartRenderContext, chatContentMarkdownRenderer: IMarkdownRenderer, streamingCompleted: boolean, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatMarkdownAnchorService: IChatMarkdownAnchorService, languageModelsService: ILanguageModelsService, hoverService: IHoverService);
|
|
57
|
+
protected shouldInitEarly(): boolean;
|
|
37
58
|
protected initContent(): HTMLElement;
|
|
59
|
+
private handleScroll;
|
|
60
|
+
private syncDimensionsAndScheduleScroll;
|
|
61
|
+
private updateScrollDimensions;
|
|
62
|
+
private scrollToBottom;
|
|
63
|
+
/**
|
|
64
|
+
* updates scroll dimensions when streaming is complete.
|
|
65
|
+
*/
|
|
66
|
+
private updateScrollDimensionsForCompletion;
|
|
38
67
|
private renderMarkdown;
|
|
39
68
|
private setDropdownClickable;
|
|
40
69
|
private updateDropdownClickability;
|
|
70
|
+
private appendToWrapper;
|
|
41
71
|
resetId(): void;
|
|
42
72
|
collapseContent(): void;
|
|
43
73
|
updateThinking(content: IChatThinkingPart): void;
|
|
@@ -46,10 +76,28 @@ export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart
|
|
|
46
76
|
finalizeTitleIfDefault(): void;
|
|
47
77
|
private setGeneratedTitleOnToolInvocations;
|
|
48
78
|
private generateTitleViaLLM;
|
|
49
|
-
private
|
|
79
|
+
private restoreSingleItemToOriginalPosition;
|
|
50
80
|
private setFallbackTitle;
|
|
51
|
-
|
|
52
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Appends a tool invocation or content item to the thinking group.
|
|
83
|
+
* The factory is called lazily - only when the thinking section is expanded.
|
|
84
|
+
* If already expanded, the factory is called immediately.
|
|
85
|
+
*/
|
|
86
|
+
appendItem(factory: () => {
|
|
87
|
+
domNode: HTMLElement;
|
|
88
|
+
disposable?: IDisposable;
|
|
89
|
+
}, toolInvocationId?: string, toolInvocationOrMarkdown?: IChatToolInvocation | IChatToolInvocationSerialized | IChatMarkdownContent, originalParent?: HTMLElement): void;
|
|
90
|
+
/**
|
|
91
|
+
* removes/re-establishes a lazy item from the thinking container
|
|
92
|
+
* this is needed so we can check if there are confirmations still needed
|
|
93
|
+
*/
|
|
94
|
+
removeLazyItem(toolInvocationId: string): boolean;
|
|
95
|
+
private processPendingRemovals;
|
|
96
|
+
private removeStreamingToolEntry;
|
|
97
|
+
private trackToolMetadata;
|
|
98
|
+
private appendItemToDOM;
|
|
99
|
+
private materializeLazyItem;
|
|
100
|
+
setupThinkingContainer(content: IChatThinkingPart): void;
|
|
53
101
|
protected setTitle(title: string, omitPrefix?: boolean): void;
|
|
54
102
|
hasSameContent(other: IChatRendererContent, _followingContent: IChatRendererContent[], _element: ChatTreeItem): boolean;
|
|
55
103
|
dispose(): void;
|