@codingame/monaco-vscode-katex-common 25.1.2 → 26.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/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
|
@@ -23,7 +23,7 @@ import { IChatAttachmentResolveService } from '@codingame/monaco-vscode-api/vsco
|
|
|
23
23
|
import { convertStringToUInt8Array } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageUtils';
|
|
24
24
|
|
|
25
25
|
var ChatDragAndDropType;
|
|
26
|
-
(function
|
|
26
|
+
(function(ChatDragAndDropType) {
|
|
27
27
|
ChatDragAndDropType[ChatDragAndDropType["FILE_INTERNAL"] = 0] = "FILE_INTERNAL";
|
|
28
28
|
ChatDragAndDropType[ChatDragAndDropType["FILE_EXTERNAL"] = 1] = "FILE_EXTERNAL";
|
|
29
29
|
ChatDragAndDropType[ChatDragAndDropType["FOLDER"] = 2] = "FOLDER";
|
|
@@ -37,7 +37,16 @@ var ChatDragAndDropType;
|
|
|
37
37
|
const IMAGE_DATA_REGEX = /^data:image\/[a-z]+;base64,/;
|
|
38
38
|
const URL_REGEX = /^https?:\/\/.+/;
|
|
39
39
|
let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
40
|
-
constructor(
|
|
40
|
+
constructor(
|
|
41
|
+
widgetRef,
|
|
42
|
+
attachmentModel,
|
|
43
|
+
styles,
|
|
44
|
+
themeService,
|
|
45
|
+
extensionService,
|
|
46
|
+
webContentExtractorService,
|
|
47
|
+
logService,
|
|
48
|
+
chatAttachmentResolveService
|
|
49
|
+
) {
|
|
41
50
|
super(themeService);
|
|
42
51
|
this.widgetRef = widgetRef;
|
|
43
52
|
this.attachmentModel = attachmentModel;
|
|
@@ -47,12 +56,17 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
47
56
|
this.logService = logService;
|
|
48
57
|
this.chatAttachmentResolveService = chatAttachmentResolveService;
|
|
49
58
|
this.overlays = ( new Map());
|
|
50
|
-
this.overlayTextBackground =
|
|
59
|
+
this.overlayTextBackground = "";
|
|
51
60
|
this.disableOverlay = false;
|
|
52
61
|
this.currentActiveTarget = undefined;
|
|
53
62
|
this.updateStyles();
|
|
54
63
|
this._register(toDisposable(() => {
|
|
55
|
-
this.overlays.forEach((
|
|
64
|
+
this.overlays.forEach((
|
|
65
|
+
{
|
|
66
|
+
overlay,
|
|
67
|
+
disposable
|
|
68
|
+
}
|
|
69
|
+
) => {
|
|
56
70
|
disposable.dispose();
|
|
57
71
|
overlay.remove();
|
|
58
72
|
});
|
|
@@ -64,8 +78,14 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
64
78
|
}
|
|
65
79
|
addOverlay(target, overlayContainer) {
|
|
66
80
|
this.removeOverlay(target);
|
|
67
|
-
const {
|
|
68
|
-
|
|
81
|
+
const {
|
|
82
|
+
overlay,
|
|
83
|
+
disposable
|
|
84
|
+
} = this.createOverlay(target, overlayContainer);
|
|
85
|
+
this.overlays.set(target, {
|
|
86
|
+
overlay,
|
|
87
|
+
disposable
|
|
88
|
+
});
|
|
69
89
|
}
|
|
70
90
|
removeOverlay(target) {
|
|
71
91
|
if (this.currentActiveTarget === target) {
|
|
@@ -82,12 +102,12 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
82
102
|
this.disableOverlay = disable;
|
|
83
103
|
}
|
|
84
104
|
createOverlay(target, overlayContainer) {
|
|
85
|
-
const overlay = createElement(
|
|
86
|
-
overlay.classList.add(
|
|
105
|
+
const overlay = createElement("div");
|
|
106
|
+
overlay.classList.add("chat-dnd-overlay");
|
|
87
107
|
this.updateOverlayStyles(overlay);
|
|
88
108
|
overlayContainer.appendChild(overlay);
|
|
89
109
|
const disposable = ( new DragAndDropObserver(target, {
|
|
90
|
-
onDragOver:
|
|
110
|
+
onDragOver: e => {
|
|
91
111
|
if (this.disableOverlay) {
|
|
92
112
|
return;
|
|
93
113
|
}
|
|
@@ -102,7 +122,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
102
122
|
this.currentActiveTarget = target;
|
|
103
123
|
this.onDragEnter(e, target);
|
|
104
124
|
},
|
|
105
|
-
onDragLeave:
|
|
125
|
+
onDragLeave: e => {
|
|
106
126
|
if (this.disableOverlay) {
|
|
107
127
|
return;
|
|
108
128
|
}
|
|
@@ -111,7 +131,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
111
131
|
}
|
|
112
132
|
this.onDragLeave(e, target);
|
|
113
133
|
},
|
|
114
|
-
onDrop:
|
|
134
|
+
onDrop: e => {
|
|
115
135
|
if (this.disableOverlay) {
|
|
116
136
|
return;
|
|
117
137
|
}
|
|
@@ -122,9 +142,12 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
122
142
|
}
|
|
123
143
|
this.currentActiveTarget = undefined;
|
|
124
144
|
this.onDrop(e, target);
|
|
125
|
-
}
|
|
145
|
+
}
|
|
126
146
|
}));
|
|
127
|
-
return {
|
|
147
|
+
return {
|
|
148
|
+
overlay,
|
|
149
|
+
disposable
|
|
150
|
+
};
|
|
128
151
|
}
|
|
129
152
|
onDragEnter(e, target) {
|
|
130
153
|
const estimatedDropType = this.guessDropType(e);
|
|
@@ -147,36 +170,34 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
147
170
|
updateDropFeedback(e, target, dropType) {
|
|
148
171
|
const showOverlay = dropType !== undefined;
|
|
149
172
|
if (e.dataTransfer) {
|
|
150
|
-
e.dataTransfer.dropEffect = showOverlay ?
|
|
173
|
+
e.dataTransfer.dropEffect = showOverlay ? "copy" : "none";
|
|
151
174
|
}
|
|
152
175
|
this.setOverlay(target, dropType);
|
|
153
176
|
}
|
|
154
177
|
guessDropType(e) {
|
|
155
178
|
if (containsDragType(e, CodeDataTransfers.NOTEBOOK_CELL_OUTPUT)) {
|
|
156
179
|
return ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT;
|
|
157
|
-
}
|
|
158
|
-
else if (containsDragType(e, CodeDataTransfers.SCM_HISTORY_ITEM)) {
|
|
180
|
+
} else if (containsDragType(e, CodeDataTransfers.SCM_HISTORY_ITEM)) {
|
|
159
181
|
return ChatDragAndDropType.SCM_HISTORY_ITEM;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
else if (containsDragType(e, 'text/html')) {
|
|
182
|
+
} else if (containsImageDragType(e)) {
|
|
183
|
+
return ( this.extensionService.extensions.some(ext => isProposedApiEnabled(ext, "chatReferenceBinaryData"))) ? ChatDragAndDropType.IMAGE : undefined;
|
|
184
|
+
} else if (containsDragType(e, "text/html")) {
|
|
165
185
|
return ChatDragAndDropType.HTML;
|
|
166
|
-
}
|
|
167
|
-
else if (containsDragType(e, CodeDataTransfers.SYMBOLS)) {
|
|
186
|
+
} else if (containsDragType(e, CodeDataTransfers.SYMBOLS)) {
|
|
168
187
|
return ChatDragAndDropType.SYMBOL;
|
|
169
|
-
}
|
|
170
|
-
else if (containsDragType(e, CodeDataTransfers.MARKERS)) {
|
|
188
|
+
} else if (containsDragType(e, CodeDataTransfers.MARKERS)) {
|
|
171
189
|
return ChatDragAndDropType.MARKER;
|
|
172
|
-
}
|
|
173
|
-
else if (containsDragType(e, DataTransfers.FILES)) {
|
|
190
|
+
} else if (containsDragType(e, DataTransfers.FILES)) {
|
|
174
191
|
return ChatDragAndDropType.FILE_EXTERNAL;
|
|
175
|
-
}
|
|
176
|
-
else if (containsDragType(e, CodeDataTransfers.EDITORS)) {
|
|
192
|
+
} else if (containsDragType(e, CodeDataTransfers.EDITORS)) {
|
|
177
193
|
return ChatDragAndDropType.FILE_INTERNAL;
|
|
178
|
-
}
|
|
179
|
-
|
|
194
|
+
} else if (containsDragType(
|
|
195
|
+
e,
|
|
196
|
+
Mimes.uriList,
|
|
197
|
+
CodeDataTransfers.FILES,
|
|
198
|
+
DataTransfers.RESOURCES,
|
|
199
|
+
DataTransfers.INTERNAL_URI_LIST
|
|
200
|
+
)) {
|
|
180
201
|
return ChatDragAndDropType.FOLDER;
|
|
181
202
|
}
|
|
182
203
|
return undefined;
|
|
@@ -187,15 +208,24 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
187
208
|
}
|
|
188
209
|
getDropTypeName(type) {
|
|
189
210
|
switch (type) {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
211
|
+
case ChatDragAndDropType.FILE_INTERNAL:
|
|
212
|
+
return localize(6021, "File");
|
|
213
|
+
case ChatDragAndDropType.FILE_EXTERNAL:
|
|
214
|
+
return localize(6021, "File");
|
|
215
|
+
case ChatDragAndDropType.FOLDER:
|
|
216
|
+
return localize(6022, "Folder");
|
|
217
|
+
case ChatDragAndDropType.IMAGE:
|
|
218
|
+
return localize(6023, "Image");
|
|
219
|
+
case ChatDragAndDropType.SYMBOL:
|
|
220
|
+
return localize(6024, "Symbol");
|
|
221
|
+
case ChatDragAndDropType.MARKER:
|
|
222
|
+
return localize(6025, "Problem");
|
|
223
|
+
case ChatDragAndDropType.HTML:
|
|
224
|
+
return localize(6026, "URL");
|
|
225
|
+
case ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT:
|
|
226
|
+
return localize(6027, "Output");
|
|
227
|
+
case ChatDragAndDropType.SCM_HISTORY_ITEM:
|
|
228
|
+
return localize(6028, "Change");
|
|
199
229
|
}
|
|
200
230
|
}
|
|
201
231
|
async resolveAttachmentsFromDragEvent(e) {
|
|
@@ -232,12 +262,12 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
232
262
|
if (internal) {
|
|
233
263
|
const uriList = UriList.parse(internal);
|
|
234
264
|
if (uriList.length) {
|
|
235
|
-
return coalesce(await Promise.all(( uriList.map(
|
|
236
|
-
|
|
237
|
-
))));
|
|
265
|
+
return coalesce(await Promise.all(( uriList.map(uri => this.chatAttachmentResolveService.resolveEditorAttachContext({
|
|
266
|
+
resource: ( URI.parse(uri))
|
|
267
|
+
})))));
|
|
238
268
|
}
|
|
239
269
|
}
|
|
240
|
-
if (!containsDragType(e, DataTransfers.INTERNAL_URI_LIST) && containsDragType(e, Mimes.uriList) && (
|
|
270
|
+
if (!containsDragType(e, DataTransfers.INTERNAL_URI_LIST) && containsDragType(e, Mimes.uriList) && (containsDragType(e, Mimes.html) || containsDragType(e, Mimes.text)) ) {
|
|
241
271
|
return this.resolveHTMLAttachContext(e);
|
|
242
272
|
}
|
|
243
273
|
return [];
|
|
@@ -248,22 +278,26 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
248
278
|
if (extractedImages) {
|
|
249
279
|
return extractedImages.buffer;
|
|
250
280
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
this.logService.warn('Fetch failed:', error);
|
|
281
|
+
} catch (error) {
|
|
282
|
+
this.logService.warn("Fetch failed:", error);
|
|
254
283
|
}
|
|
255
284
|
const widget = this.widgetRef();
|
|
256
285
|
const selection = widget?.inputEditor.getSelection();
|
|
257
286
|
if (selection && widget) {
|
|
258
|
-
widget.inputEditor.executeEdits(
|
|
259
|
-
|
|
260
|
-
|
|
287
|
+
widget.inputEditor.executeEdits("chatInsertUrl", [{
|
|
288
|
+
range: selection,
|
|
289
|
+
text: url
|
|
290
|
+
}]);
|
|
291
|
+
}
|
|
292
|
+
this.logService.warn(
|
|
293
|
+
`Image URLs must end in .jpg, .png, .gif, .webp, or .bmp. Failed to fetch image from this URL: ${url}`
|
|
294
|
+
);
|
|
261
295
|
return undefined;
|
|
262
296
|
}
|
|
263
297
|
async resolveHTMLAttachContext(e) {
|
|
264
298
|
const existingAttachmentNames = ( new Set(( this.attachmentModel.attachments.map(attachment => attachment.name))));
|
|
265
299
|
const createDisplayName = () => {
|
|
266
|
-
const baseName = ( localize(
|
|
300
|
+
const baseName = ( localize(6029, "Image from URL"));
|
|
267
301
|
let uniqueName = baseName;
|
|
268
302
|
let baseNameInstance = 1;
|
|
269
303
|
while (( existingAttachmentNames.has(uniqueName))) {
|
|
@@ -272,26 +306,37 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
272
306
|
existingAttachmentNames.add(uniqueName);
|
|
273
307
|
return uniqueName;
|
|
274
308
|
};
|
|
275
|
-
const getImageTransferDataFromUrl = async
|
|
309
|
+
const getImageTransferDataFromUrl = async url => {
|
|
276
310
|
const resource = ( URI.parse(url));
|
|
277
311
|
if (IMAGE_DATA_REGEX.test(url)) {
|
|
278
|
-
return {
|
|
312
|
+
return {
|
|
313
|
+
data: convertStringToUInt8Array(url),
|
|
314
|
+
name: createDisplayName(),
|
|
315
|
+
resource
|
|
316
|
+
};
|
|
279
317
|
}
|
|
280
318
|
if (URL_REGEX.test(url)) {
|
|
281
319
|
const data = await this.downloadImageAsUint8Array(url);
|
|
282
320
|
if (data) {
|
|
283
|
-
return {
|
|
321
|
+
return {
|
|
322
|
+
data,
|
|
323
|
+
name: createDisplayName(),
|
|
324
|
+
resource,
|
|
325
|
+
id: url
|
|
326
|
+
};
|
|
284
327
|
}
|
|
285
328
|
}
|
|
286
329
|
return undefined;
|
|
287
330
|
};
|
|
288
|
-
const getImageTransferDataFromFile = async
|
|
331
|
+
const getImageTransferDataFromFile = async file => {
|
|
289
332
|
try {
|
|
290
333
|
const buffer = await file.arrayBuffer();
|
|
291
|
-
return {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
334
|
+
return {
|
|
335
|
+
data: ( new Uint8Array(buffer)),
|
|
336
|
+
name: createDisplayName()
|
|
337
|
+
};
|
|
338
|
+
} catch (error) {
|
|
339
|
+
this.logService.error("Error reading file:", error);
|
|
295
340
|
}
|
|
296
341
|
return undefined;
|
|
297
342
|
};
|
|
@@ -311,67 +356,62 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
311
356
|
setOverlay(target, type) {
|
|
312
357
|
this.overlayText?.remove();
|
|
313
358
|
this.overlayText = undefined;
|
|
314
|
-
const {
|
|
359
|
+
const {
|
|
360
|
+
overlay
|
|
361
|
+
} = this.overlays.get(target);
|
|
315
362
|
if (type !== undefined) {
|
|
316
363
|
const iconAndtextElements = renderLabelWithIcons(`$(${Codicon.attach.id}) ${this.getOverlayText(type)}`);
|
|
317
364
|
const htmlElements = ( iconAndtextElements.map(element => {
|
|
318
|
-
if (typeof element ===
|
|
319
|
-
return $(
|
|
365
|
+
if (typeof element === "string") {
|
|
366
|
+
return $("span.overlay-text", undefined, element);
|
|
320
367
|
}
|
|
321
368
|
return element;
|
|
322
369
|
}));
|
|
323
|
-
this.overlayText = $(
|
|
370
|
+
this.overlayText = $("span.attach-context-overlay-text", undefined, ...htmlElements);
|
|
324
371
|
this.overlayText.style.backgroundColor = this.overlayTextBackground;
|
|
325
372
|
overlay.appendChild(this.overlayText);
|
|
326
373
|
}
|
|
327
|
-
overlay.classList.toggle(
|
|
374
|
+
overlay.classList.toggle("visible", type !== undefined);
|
|
328
375
|
}
|
|
329
376
|
getOverlayText(type) {
|
|
330
377
|
const typeName = this.getDropTypeName(type);
|
|
331
|
-
return localize(
|
|
378
|
+
return localize(6030, "Attach {0} as Context", typeName);
|
|
332
379
|
}
|
|
333
380
|
updateOverlayStyles(overlay) {
|
|
334
|
-
overlay.style.backgroundColor = this.getColor(this.styles.overlayBackground) ||
|
|
335
|
-
overlay.style.color = this.getColor(this.styles.listForeground) ||
|
|
381
|
+
overlay.style.backgroundColor = this.getColor(this.styles.overlayBackground) || "";
|
|
382
|
+
overlay.style.color = this.getColor(this.styles.listForeground) || "";
|
|
336
383
|
}
|
|
337
384
|
updateStyles() {
|
|
338
385
|
this.overlays.forEach(overlay => this.updateOverlayStyles(overlay.overlay));
|
|
339
|
-
this.overlayTextBackground = this.getColor(this.styles.listBackground) ||
|
|
386
|
+
this.overlayTextBackground = this.getColor(this.styles.listBackground) || "";
|
|
340
387
|
}
|
|
341
388
|
};
|
|
342
|
-
ChatDragAndDrop = ( __decorate([
|
|
343
|
-
( __param(3, IThemeService)),
|
|
344
|
-
( __param(4, IExtensionService)),
|
|
345
|
-
( __param(5, ISharedWebContentExtractorService)),
|
|
346
|
-
( __param(6, ILogService)),
|
|
347
|
-
( __param(7, IChatAttachmentResolveService))
|
|
348
|
-
], ChatDragAndDrop));
|
|
389
|
+
ChatDragAndDrop = ( __decorate([( __param(3, IThemeService)), ( __param(4, IExtensionService)), ( __param(5, ISharedWebContentExtractorService)), ( __param(6, ILogService)), ( __param(7, IChatAttachmentResolveService))], ChatDragAndDrop));
|
|
349
390
|
function containsImageDragType(e) {
|
|
350
|
-
if (containsDragType(e,
|
|
391
|
+
if (containsDragType(e, "image")) {
|
|
351
392
|
return true;
|
|
352
393
|
}
|
|
353
394
|
if (containsDragType(e, DataTransfers.FILES)) {
|
|
354
395
|
const files = e.dataTransfer?.files;
|
|
355
396
|
if (files && files.length > 0) {
|
|
356
|
-
return ( Array.from(files).some(file => file.type.startsWith(
|
|
397
|
+
return ( Array.from(files).some(file => file.type.startsWith("image/")));
|
|
357
398
|
}
|
|
358
399
|
const items = e.dataTransfer?.items;
|
|
359
400
|
if (items && items.length > 0) {
|
|
360
|
-
return ( Array.from(items).some(item => item.type.startsWith(
|
|
401
|
+
return ( Array.from(items).some(item => item.type.startsWith("image/")));
|
|
361
402
|
}
|
|
362
403
|
}
|
|
363
404
|
return false;
|
|
364
405
|
}
|
|
365
406
|
function extractUrlsFromDragEvent(e, logService) {
|
|
366
|
-
const textUrl = e.dataTransfer?.getData(
|
|
407
|
+
const textUrl = e.dataTransfer?.getData("text/uri-list");
|
|
367
408
|
if (textUrl) {
|
|
368
409
|
try {
|
|
369
410
|
const urls = UriList.parse(textUrl);
|
|
370
411
|
if (urls.length > 0) {
|
|
371
412
|
return urls;
|
|
372
413
|
}
|
|
373
|
-
}
|
|
374
|
-
catch (error) {
|
|
414
|
+
} catch (error) {
|
|
375
415
|
return [];
|
|
376
416
|
}
|
|
377
417
|
}
|
|
@@ -382,7 +422,7 @@ function extractImageFilesFromDragEvent(e) {
|
|
|
382
422
|
if (!files) {
|
|
383
423
|
return [];
|
|
384
424
|
}
|
|
385
|
-
return Array.from(files).filter(file => file.type.startsWith(
|
|
425
|
+
return Array.from(files).filter(file => file.type.startsWith("image/"));
|
|
386
426
|
}
|
|
387
427
|
|
|
388
428
|
export { ChatDragAndDrop };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { DropdownMenuActionViewItem, IDropdownMenuActionViewItemOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dropdown/dropdownActionViewItem";
|
|
2
|
-
import {
|
|
2
|
+
import { CachedListVirtualDelegate, IListElementRenderDetails } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
|
|
3
3
|
import { ITreeNode, ITreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
|
|
4
4
|
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
5
5
|
import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
6
6
|
import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
|
|
7
7
|
import { Disposable, DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
8
|
+
import { ScrollEvent } from "@codingame/monaco-vscode-api/vscode/vs/base/common/scrollable";
|
|
8
9
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
9
10
|
import { MenuWorkbenchToolBar } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar";
|
|
10
11
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
@@ -18,6 +19,7 @@ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
18
19
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
19
20
|
import { IWorkbenchIssueService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service";
|
|
20
21
|
import { IChatFollowup, IChatThinkingPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
22
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
21
23
|
import { IChatResponseViewModel, IChatViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
22
24
|
import { CodeBlockModelCollection } from "../../common/widget/codeBlockModelCollection.js";
|
|
23
25
|
import { ChatModeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
|
|
@@ -27,6 +29,7 @@ import { ChatAgentHover } from "./chatAgentHover.js";
|
|
|
27
29
|
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
28
30
|
import { ChatEditorOptions } from "./chatOptions.js";
|
|
29
31
|
import { CodeBlockPart } from "./chatContentParts/codeBlockPart.js";
|
|
32
|
+
import { IChatTipService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatTipService.service";
|
|
30
33
|
export interface IChatListItemTemplate {
|
|
31
34
|
currentElement?: ChatTreeItem;
|
|
32
35
|
/**
|
|
@@ -34,6 +37,10 @@ export interface IChatListItemTemplate {
|
|
|
34
37
|
* they are disposed in a separate cycle after diffing with the next content to render.
|
|
35
38
|
*/
|
|
36
39
|
renderedParts?: IChatContentPart[];
|
|
40
|
+
/**
|
|
41
|
+
* Element used to track whether the template is mounted in the DOM.
|
|
42
|
+
*/
|
|
43
|
+
renderedPartsMounted?: boolean;
|
|
37
44
|
readonly rowContainer: HTMLElement;
|
|
38
45
|
readonly titleToolbar?: MenuWorkbenchToolBar;
|
|
39
46
|
readonly header?: HTMLElement;
|
|
@@ -63,7 +70,7 @@ export interface IChatRendererDelegate {
|
|
|
63
70
|
container: HTMLElement;
|
|
64
71
|
getListLength(): number;
|
|
65
72
|
currentChatMode(): ChatModeKind;
|
|
66
|
-
readonly onDidScroll?: Event<
|
|
73
|
+
readonly onDidScroll?: Event<ScrollEvent>;
|
|
67
74
|
}
|
|
68
75
|
export declare class ChatListItemRenderer extends Disposable implements ITreeRenderer<ChatTreeItem, FuzzyScore, IChatListItemTemplate> {
|
|
69
76
|
private rendererOptions;
|
|
@@ -79,12 +86,16 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
79
86
|
private readonly hoverService;
|
|
80
87
|
private readonly chatWidgetService;
|
|
81
88
|
private readonly chatEntitlementService;
|
|
89
|
+
private readonly chatService;
|
|
90
|
+
private readonly chatTipService;
|
|
82
91
|
static readonly ID = "item";
|
|
83
92
|
private readonly codeBlocksByResponseId;
|
|
84
93
|
private readonly codeBlocksByEditorUri;
|
|
85
94
|
private readonly fileTreesByResponseId;
|
|
86
95
|
private readonly focusedFileTreesByResponseId;
|
|
87
96
|
private readonly templateDataByRequestId;
|
|
97
|
+
/** Track pending question carousels by session resource for auto-skip on chat submission */
|
|
98
|
+
private readonly pendingQuestionCarousels;
|
|
88
99
|
private readonly chatContentMarkdownRenderer;
|
|
89
100
|
private readonly markdownDecorationsRenderer;
|
|
90
101
|
protected readonly _onDidClickFollowup: Emitter<IChatFollowup>;
|
|
@@ -104,6 +115,7 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
104
115
|
readonly onDidFocusOutside: Event<void>;
|
|
105
116
|
protected readonly _onDidChangeItemHeight: Emitter<IItemHeightChangeParams>;
|
|
106
117
|
readonly onDidChangeItemHeight: Event<IItemHeightChangeParams>;
|
|
118
|
+
private readonly _onDidUpdateViewModel;
|
|
107
119
|
private readonly _editorPool;
|
|
108
120
|
private readonly _toolEditorPool;
|
|
109
121
|
private readonly _diffEditorPool;
|
|
@@ -111,6 +123,7 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
111
123
|
private readonly _contentReferencesListPool;
|
|
112
124
|
private _currentLayoutWidth;
|
|
113
125
|
private _isVisible;
|
|
126
|
+
private _elementBeingRendered;
|
|
114
127
|
private _onDidChangeVisibility;
|
|
115
128
|
/**
|
|
116
129
|
* Tool invocations get their own so that the ChatViewModel doesn't overwrite it.
|
|
@@ -122,7 +135,7 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
122
135
|
* by screen readers
|
|
123
136
|
*/
|
|
124
137
|
private readonly _announcedToolProgressKeys;
|
|
125
|
-
constructor(editorOptions: ChatEditorOptions, rendererOptions: IChatListItemRendererOptions, delegate: IChatRendererDelegate, codeBlockModelCollection: CodeBlockModelCollection, overflowWidgetsDomNode: HTMLElement | undefined, viewModel: IChatViewModel | undefined, instantiationService: IInstantiationService, configService: IConfigurationService, logService: ILogService, contextKeyService: IContextKeyService, themeService: IThemeService, commandService: ICommandService, hoverService: IHoverService, chatWidgetService: IChatWidgetService, chatEntitlementService: IChatEntitlementService);
|
|
138
|
+
constructor(editorOptions: ChatEditorOptions, rendererOptions: IChatListItemRendererOptions, delegate: IChatRendererDelegate, codeBlockModelCollection: CodeBlockModelCollection, overflowWidgetsDomNode: HTMLElement | undefined, viewModel: IChatViewModel | undefined, instantiationService: IInstantiationService, configService: IConfigurationService, logService: ILogService, contextKeyService: IContextKeyService, themeService: IThemeService, commandService: ICommandService, hoverService: IHoverService, chatWidgetService: IChatWidgetService, chatEntitlementService: IChatEntitlementService, chatService: IChatService, chatTipService: IChatTipService);
|
|
126
139
|
updateOptions(options: IChatListItemRendererOptions): void;
|
|
127
140
|
get templateId(): string;
|
|
128
141
|
editorsInUse(): Iterable<CodeBlockPart>;
|
|
@@ -141,8 +154,12 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
141
154
|
layout(width: number): void;
|
|
142
155
|
renderTemplate(container: HTMLElement): IChatListItemTemplate;
|
|
143
156
|
renderElement(node: ITreeNode<ChatTreeItem, FuzzyScore>, index: number, templateData: IChatListItemTemplate): void;
|
|
157
|
+
/**
|
|
158
|
+
* Dispose the rendered parts in the template, which aren't done in disposeElement
|
|
159
|
+
* so they can be reused when a new render is started.
|
|
160
|
+
*/
|
|
144
161
|
private clearRenderedParts;
|
|
145
|
-
renderChatTreeItem
|
|
162
|
+
private renderChatTreeItem;
|
|
146
163
|
private renderDetail;
|
|
147
164
|
private renderConfirmationAction;
|
|
148
165
|
private renderAvatar;
|
|
@@ -151,8 +168,6 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
151
168
|
private shouldShowWorkingProgress;
|
|
152
169
|
private getChatFileChangesSummaryPart;
|
|
153
170
|
private renderChatRequest;
|
|
154
|
-
updateItemHeightOnRender(element: ChatTreeItem, templateData: IChatListItemTemplate): void;
|
|
155
|
-
private updateItemHeight;
|
|
156
171
|
/**
|
|
157
172
|
* @returns true if progressive rendering should be considered complete- the element's data is fully rendered or the view is not visible
|
|
158
173
|
*/
|
|
@@ -165,9 +180,20 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
165
180
|
private shouldShowFileChangesSummary;
|
|
166
181
|
private getDataForProgressiveRender;
|
|
167
182
|
private diff;
|
|
183
|
+
private hasCodeblockUri;
|
|
184
|
+
private isCodeblockComplete;
|
|
168
185
|
private shouldPinPart;
|
|
169
|
-
private isCreateToolInvocationContent;
|
|
170
186
|
private getLastThinkingPart;
|
|
187
|
+
/**
|
|
188
|
+
* Determines if a thinking part at the given content index is "look-ahead complete".
|
|
189
|
+
* A thinking part is look-ahead complete if there are subsequent parts that will NOT
|
|
190
|
+
* be pinned to it, meaning we know this thinking part is already done even though
|
|
191
|
+
* the overall response is still in progress.
|
|
192
|
+
*/
|
|
193
|
+
private isThinkingLookAheadComplete;
|
|
194
|
+
private getSubagentPart;
|
|
195
|
+
private finalizeAllSubagentParts;
|
|
196
|
+
private handleSubagentToolGrouping;
|
|
171
197
|
private finalizeCurrentThinkingPart;
|
|
172
198
|
private renderChatContentPart;
|
|
173
199
|
dispose(): void;
|
|
@@ -180,11 +206,14 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
180
206
|
private renderCodeCitations;
|
|
181
207
|
private handleRenderedCodeblocks;
|
|
182
208
|
private renderToolInvocation;
|
|
209
|
+
private setupConfirmationTransitionWatcher;
|
|
183
210
|
private renderExtensionsContent;
|
|
184
211
|
private renderPullRequestContent;
|
|
185
212
|
private renderProgressTask;
|
|
186
213
|
private renderConfirmation;
|
|
187
214
|
private renderElicitation;
|
|
215
|
+
private renderQuestionCarousel;
|
|
216
|
+
private removeCarouselFromTracking;
|
|
188
217
|
private renderChangesSummary;
|
|
189
218
|
private renderAttachments;
|
|
190
219
|
private renderTextEdit;
|
|
@@ -196,12 +225,10 @@ export declare class ChatListItemRenderer extends Disposable implements ITreeRen
|
|
|
196
225
|
private hoverVisible;
|
|
197
226
|
private hoverHidden;
|
|
198
227
|
}
|
|
199
|
-
export declare class ChatListDelegate
|
|
228
|
+
export declare class ChatListDelegate extends CachedListVirtualDelegate<ChatTreeItem> {
|
|
200
229
|
private readonly defaultElementHeight;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
private _traceLayout;
|
|
204
|
-
getHeight(element: ChatTreeItem): number;
|
|
230
|
+
constructor(defaultElementHeight: number);
|
|
231
|
+
protected estimateHeight(element: ChatTreeItem): number;
|
|
205
232
|
getTemplateId(element: ChatTreeItem): string;
|
|
206
233
|
hasDynamicHeight(element: ChatTreeItem): boolean;
|
|
207
234
|
}
|