@codingame/monaco-vscode-katex-common 25.1.2 → 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
|
@@ -19,21 +19,29 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
19
19
|
this.attachedContextDisposables = this._register(( new DisposableStore()));
|
|
20
20
|
this._onDidChangeVisibility = this._register(( new Emitter()));
|
|
21
21
|
this._showingAll = false;
|
|
22
|
-
this.
|
|
22
|
+
this._variables = options.variables;
|
|
23
23
|
this.contentReferences = options.contentReferences ?? [];
|
|
24
24
|
this.limit = options.limit;
|
|
25
|
-
this.domNode = options.domNode ?? $(
|
|
26
|
-
this._contextResourceLabels = this._register(this.instantiationService.createInstance(ResourceLabels, {
|
|
25
|
+
this.domNode = options.domNode ?? $(".chat-attached-context");
|
|
26
|
+
this._contextResourceLabels = this._register(this.instantiationService.createInstance(ResourceLabels, {
|
|
27
|
+
onDidChangeVisibility: this._onDidChangeVisibility.event
|
|
28
|
+
}));
|
|
27
29
|
this.initAttachedContext(this.domNode);
|
|
28
30
|
if (!this.domNode.childElementCount) {
|
|
29
31
|
this.domNode = undefined;
|
|
30
32
|
}
|
|
31
33
|
}
|
|
34
|
+
updateVariables(variables) {
|
|
35
|
+
this._variables = variables;
|
|
36
|
+
if (this.domNode) {
|
|
37
|
+
this.initAttachedContext(this.domNode);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
32
40
|
initAttachedContext(container) {
|
|
33
41
|
clearNode(container);
|
|
34
42
|
this.attachedContextDisposables.clear();
|
|
35
43
|
const visibleAttachments = this.getVisibleAttachments();
|
|
36
|
-
const hasMoreAttachments = this.limit && this.
|
|
44
|
+
const hasMoreAttachments = this.limit && this._variables.length > this.limit && !this._showingAll;
|
|
37
45
|
for (const attachment of visibleAttachments) {
|
|
38
46
|
this.renderAttachment(attachment, container);
|
|
39
47
|
}
|
|
@@ -43,18 +51,22 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
43
51
|
}
|
|
44
52
|
getVisibleAttachments() {
|
|
45
53
|
if (!this.limit || this._showingAll) {
|
|
46
|
-
return this.
|
|
54
|
+
return this._variables;
|
|
47
55
|
}
|
|
48
|
-
return this.
|
|
56
|
+
return this._variables.slice(0, this.limit);
|
|
49
57
|
}
|
|
50
58
|
renderShowMoreButton(container) {
|
|
51
|
-
const remainingCount = this.
|
|
52
|
-
const showMoreButton = $(
|
|
53
|
-
showMoreButton.setAttribute(
|
|
54
|
-
showMoreButton.setAttribute(
|
|
55
|
-
showMoreButton.style.cursor =
|
|
56
|
-
const pillIcon = $(
|
|
57
|
-
|
|
59
|
+
const remainingCount = this._variables.length - (this.limit ?? 0);
|
|
60
|
+
const showMoreButton = $("div.chat-attached-context-attachment.chat-attachments-show-more-button");
|
|
61
|
+
showMoreButton.setAttribute("role", "button");
|
|
62
|
+
showMoreButton.setAttribute("tabindex", "0");
|
|
63
|
+
showMoreButton.style.cursor = "pointer";
|
|
64
|
+
const pillIcon = $(
|
|
65
|
+
"div.chat-attached-context-pill",
|
|
66
|
+
{},
|
|
67
|
+
$("span.codicon.codicon-ellipsis")
|
|
68
|
+
);
|
|
69
|
+
const textLabel = $("span.chat-attached-context-custom-text");
|
|
58
70
|
textLabel.textContent = `${remainingCount} more`;
|
|
59
71
|
showMoreButton.appendChild(pillIcon);
|
|
60
72
|
showMoreButton.appendChild(textLabel);
|
|
@@ -62,87 +74,141 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
62
74
|
this._showingAll = true;
|
|
63
75
|
this.initAttachedContext(container);
|
|
64
76
|
};
|
|
65
|
-
this.attachedContextDisposables.add(addDisposableListener(showMoreButton,
|
|
66
|
-
this.attachedContextDisposables.add(addDisposableListener(showMoreButton,
|
|
67
|
-
if (e.key ===
|
|
77
|
+
this.attachedContextDisposables.add(addDisposableListener(showMoreButton, "click", clickHandler));
|
|
78
|
+
this.attachedContextDisposables.add(addDisposableListener(showMoreButton, "keydown", e => {
|
|
79
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
68
80
|
e.preventDefault();
|
|
69
81
|
clickHandler();
|
|
70
82
|
}
|
|
71
83
|
}));
|
|
72
84
|
container.appendChild(showMoreButton);
|
|
73
|
-
this.attachedContextDisposables.add({
|
|
85
|
+
this.attachedContextDisposables.add({
|
|
86
|
+
dispose: () => showMoreButton.remove()
|
|
87
|
+
});
|
|
74
88
|
}
|
|
75
89
|
renderAttachment(attachment, container) {
|
|
76
|
-
const resource = URI.isUri(attachment.value) ? attachment.value : attachment.value && typeof attachment.value ===
|
|
77
|
-
const range = attachment.value && typeof attachment.value ===
|
|
78
|
-
const correspondingContentReference = this.contentReferences.find(
|
|
90
|
+
const resource = URI.isUri(attachment.value) ? attachment.value : attachment.value && typeof attachment.value === "object" && "uri" in attachment.value && URI.isUri(attachment.value.uri) ? attachment.value.uri : undefined;
|
|
91
|
+
const range = attachment.value && typeof attachment.value === "object" && "range" in attachment.value && Range.isIRange(attachment.value.range) ? attachment.value.range : undefined;
|
|
92
|
+
const correspondingContentReference = this.contentReferences.find(
|
|
93
|
+
ref => (typeof ref.reference === "object" && "variableName" in ref.reference && ref.reference.variableName === attachment.name) || (URI.isUri(ref.reference) && basename(ref.reference.path) === attachment.name)
|
|
94
|
+
);
|
|
79
95
|
const isAttachmentOmitted = correspondingContentReference?.options?.status?.kind === ChatResponseReferencePartStatusKind.Omitted;
|
|
80
96
|
const isAttachmentPartialOrOmitted = isAttachmentOmitted || correspondingContentReference?.options?.status?.kind === ChatResponseReferencePartStatusKind.Partial;
|
|
81
97
|
let widget;
|
|
82
|
-
if (attachment.kind ===
|
|
83
|
-
widget = this.instantiationService.createInstance(ToolSetOrToolItemAttachmentWidget, attachment, undefined, {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
98
|
+
if (attachment.kind === "tool" || attachment.kind === "toolset") {
|
|
99
|
+
widget = this.instantiationService.createInstance(ToolSetOrToolItemAttachmentWidget, attachment, undefined, {
|
|
100
|
+
shouldFocusClearButton: false,
|
|
101
|
+
supportsDeletion: false
|
|
102
|
+
}, container, this._contextResourceLabels);
|
|
103
|
+
} else if (isElementVariableEntry(attachment)) {
|
|
104
|
+
widget = this.instantiationService.createInstance(ElementChatAttachmentWidget, attachment, undefined, {
|
|
105
|
+
shouldFocusClearButton: false,
|
|
106
|
+
supportsDeletion: false
|
|
107
|
+
}, container, this._contextResourceLabels);
|
|
108
|
+
} else if (isImageVariableEntry(attachment)) {
|
|
89
109
|
attachment.omittedState = isAttachmentPartialOrOmitted ? OmittedState.Full : attachment.omittedState;
|
|
90
|
-
widget = this.instantiationService.createInstance(ImageAttachmentWidget, resource, attachment, undefined, {
|
|
91
|
-
|
|
92
|
-
|
|
110
|
+
widget = this.instantiationService.createInstance(ImageAttachmentWidget, resource, attachment, undefined, {
|
|
111
|
+
shouldFocusClearButton: false,
|
|
112
|
+
supportsDeletion: false
|
|
113
|
+
}, container, this._contextResourceLabels);
|
|
114
|
+
} else if (isPromptFileVariableEntry(attachment)) {
|
|
93
115
|
if (attachment.automaticallyAdded) {
|
|
94
116
|
return;
|
|
95
117
|
}
|
|
96
|
-
widget = this.instantiationService.createInstance(PromptFileAttachmentWidget, attachment, undefined, {
|
|
97
|
-
|
|
98
|
-
|
|
118
|
+
widget = this.instantiationService.createInstance(PromptFileAttachmentWidget, attachment, undefined, {
|
|
119
|
+
shouldFocusClearButton: false,
|
|
120
|
+
supportsDeletion: false
|
|
121
|
+
}, container, this._contextResourceLabels);
|
|
122
|
+
} else if (isPromptTextVariableEntry(attachment)) {
|
|
99
123
|
if (attachment.automaticallyAdded) {
|
|
100
124
|
return;
|
|
101
125
|
}
|
|
102
|
-
widget = this.instantiationService.createInstance(PromptTextAttachmentWidget, attachment, undefined, {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
widget = this.instantiationService.createInstance(PromptTextAttachmentWidget, attachment, undefined, {
|
|
127
|
+
shouldFocusClearButton: false,
|
|
128
|
+
supportsDeletion: false
|
|
129
|
+
}, container, this._contextResourceLabels);
|
|
130
|
+
} else if (resource && (attachment.kind === "file" || attachment.kind === "directory")) {
|
|
131
|
+
widget = this.instantiationService.createInstance(
|
|
132
|
+
FileAttachmentWidget,
|
|
133
|
+
resource,
|
|
134
|
+
range,
|
|
135
|
+
attachment,
|
|
136
|
+
correspondingContentReference,
|
|
137
|
+
undefined,
|
|
138
|
+
{
|
|
139
|
+
shouldFocusClearButton: false,
|
|
140
|
+
supportsDeletion: false
|
|
141
|
+
},
|
|
142
|
+
container,
|
|
143
|
+
this._contextResourceLabels
|
|
144
|
+
);
|
|
145
|
+
} else if (isTerminalVariableEntry(attachment)) {
|
|
146
|
+
widget = this.instantiationService.createInstance(TerminalCommandAttachmentWidget, attachment, undefined, {
|
|
147
|
+
shouldFocusClearButton: false,
|
|
148
|
+
supportsDeletion: false
|
|
149
|
+
}, container, this._contextResourceLabels);
|
|
150
|
+
} else if (isPasteVariableEntry(attachment)) {
|
|
151
|
+
widget = this.instantiationService.createInstance(PasteAttachmentWidget, attachment, undefined, {
|
|
152
|
+
shouldFocusClearButton: false,
|
|
153
|
+
supportsDeletion: false
|
|
154
|
+
}, container, this._contextResourceLabels);
|
|
155
|
+
} else if (resource && isNotebookOutputVariableEntry(attachment)) {
|
|
156
|
+
widget = this.instantiationService.createInstance(NotebookCellOutputChatAttachmentWidget, resource, attachment, undefined, {
|
|
157
|
+
shouldFocusClearButton: false,
|
|
158
|
+
supportsDeletion: false
|
|
159
|
+
}, container, this._contextResourceLabels);
|
|
160
|
+
} else if (isSCMHistoryItemVariableEntry(attachment)) {
|
|
161
|
+
widget = this.instantiationService.createInstance(SCMHistoryItemAttachmentWidget, attachment, undefined, {
|
|
162
|
+
shouldFocusClearButton: false,
|
|
163
|
+
supportsDeletion: false
|
|
164
|
+
}, container, this._contextResourceLabels);
|
|
165
|
+
} else if (isSCMHistoryItemChangeVariableEntry(attachment)) {
|
|
166
|
+
widget = this.instantiationService.createInstance(SCMHistoryItemChangeAttachmentWidget, attachment, undefined, {
|
|
167
|
+
shouldFocusClearButton: false,
|
|
168
|
+
supportsDeletion: false
|
|
169
|
+
}, container, this._contextResourceLabels);
|
|
170
|
+
} else if (isSCMHistoryItemChangeRangeVariableEntry(attachment)) {
|
|
171
|
+
widget = this.instantiationService.createInstance(SCMHistoryItemChangeRangeAttachmentWidget, attachment, undefined, {
|
|
172
|
+
shouldFocusClearButton: false,
|
|
173
|
+
supportsDeletion: false
|
|
174
|
+
}, container, this._contextResourceLabels);
|
|
175
|
+
} else if (isWorkspaceVariableEntry(attachment)) {
|
|
126
176
|
return;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
177
|
+
} else {
|
|
178
|
+
widget = this.instantiationService.createInstance(
|
|
179
|
+
DefaultChatAttachmentWidget,
|
|
180
|
+
resource,
|
|
181
|
+
range,
|
|
182
|
+
attachment,
|
|
183
|
+
correspondingContentReference,
|
|
184
|
+
undefined,
|
|
185
|
+
{
|
|
186
|
+
shouldFocusClearButton: false,
|
|
187
|
+
supportsDeletion: false
|
|
188
|
+
},
|
|
189
|
+
container,
|
|
190
|
+
this._contextResourceLabels
|
|
191
|
+
);
|
|
130
192
|
}
|
|
131
193
|
let ariaLabel = null;
|
|
132
194
|
if (isAttachmentPartialOrOmitted) {
|
|
133
|
-
widget.element.classList.add(
|
|
195
|
+
widget.element.classList.add("warning");
|
|
134
196
|
}
|
|
135
197
|
const description = correspondingContentReference?.options?.status?.description;
|
|
136
198
|
if (isAttachmentPartialOrOmitted) {
|
|
137
|
-
ariaLabel = `${ariaLabel}${description ? ` ${description}` :
|
|
138
|
-
for (const selector of [
|
|
199
|
+
ariaLabel = `${ariaLabel}${description ? ` ${description}` : ""}`;
|
|
200
|
+
for (const selector of [".monaco-icon-suffix-container", ".monaco-icon-name-container"]) {
|
|
139
201
|
const element = widget.label.element.querySelector(selector);
|
|
140
202
|
if (element) {
|
|
141
|
-
element.classList.add(
|
|
203
|
+
element.classList.add("warning");
|
|
142
204
|
}
|
|
143
205
|
}
|
|
144
206
|
}
|
|
145
|
-
this._register(addDisposableListener(
|
|
207
|
+
this._register(addDisposableListener(
|
|
208
|
+
widget.element,
|
|
209
|
+
"contextmenu",
|
|
210
|
+
e => this.contextMenuHandler?.(attachment, e)
|
|
211
|
+
));
|
|
146
212
|
if (this.attachedContextDisposables.isDisposed) {
|
|
147
213
|
widget.dispose();
|
|
148
214
|
return;
|
|
@@ -153,8 +219,6 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
153
219
|
this.attachedContextDisposables.add(widget);
|
|
154
220
|
}
|
|
155
221
|
};
|
|
156
|
-
ChatAttachmentsContentPart = ( __decorate([
|
|
157
|
-
( __param(1, IInstantiationService))
|
|
158
|
-
], ChatAttachmentsContentPart));
|
|
222
|
+
ChatAttachmentsContentPart = ( __decorate([( __param(1, IInstantiationService))], ChatAttachmentsContentPart));
|
|
159
223
|
|
|
160
224
|
export { ChatAttachmentsContentPart };
|
|
@@ -20,8 +20,6 @@ export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposa
|
|
|
20
20
|
readonly domNode: HTMLElement;
|
|
21
21
|
readonly ELEMENT_HEIGHT = 22;
|
|
22
22
|
readonly MAX_ITEMS_SHOWN = 6;
|
|
23
|
-
private readonly _onDidChangeHeight;
|
|
24
|
-
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
25
23
|
private readonly diffsBetweenRequests;
|
|
26
24
|
private fileChangesDiffsObservable;
|
|
27
25
|
private list;
|
|
@@ -3,7 +3,6 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { $, addDisposableListener, EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { ButtonWithIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
5
5
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
|
-
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
6
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
8
7
|
import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
8
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
@@ -27,7 +26,15 @@ import { ResourcePool } from './chatCollections.js';
|
|
|
27
26
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
28
27
|
|
|
29
28
|
let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChangesSummaryContentPart extends Disposable {
|
|
30
|
-
constructor(
|
|
29
|
+
constructor(
|
|
30
|
+
content,
|
|
31
|
+
context,
|
|
32
|
+
hoverService,
|
|
33
|
+
chatService,
|
|
34
|
+
editorService,
|
|
35
|
+
editorGroupsService,
|
|
36
|
+
instantiationService
|
|
37
|
+
) {
|
|
31
38
|
super();
|
|
32
39
|
this.content = content;
|
|
33
40
|
this.hoverService = hoverService;
|
|
@@ -37,24 +44,24 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
37
44
|
this.instantiationService = instantiationService;
|
|
38
45
|
this.ELEMENT_HEIGHT = 22;
|
|
39
46
|
this.MAX_ITEMS_SHOWN = 6;
|
|
40
|
-
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
41
|
-
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
42
47
|
this.diffsBetweenRequests = ( new Map());
|
|
43
48
|
this.isCollapsed = true;
|
|
44
49
|
this.fileChangesDiffsObservable = this.computeFileChangesDiffs(content);
|
|
45
|
-
const headerDomNode = $(
|
|
46
|
-
this.domNode = $(
|
|
50
|
+
const headerDomNode = $(".checkpoint-file-changes-summary-header");
|
|
51
|
+
this.domNode = $(".checkpoint-file-changes-summary", undefined, headerDomNode);
|
|
47
52
|
this.domNode.tabIndex = 0;
|
|
48
53
|
this._register(this.renderHeader(headerDomNode));
|
|
49
54
|
this._register(this.renderFilesList(this.domNode));
|
|
50
55
|
}
|
|
51
|
-
computeFileChangesDiffs(
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
computeFileChangesDiffs(
|
|
57
|
+
{
|
|
58
|
+
requestId,
|
|
59
|
+
sessionResource
|
|
60
|
+
}
|
|
61
|
+
) {
|
|
62
|
+
return ( ( ( this.chatService.chatModels.map(
|
|
54
63
|
models => Iterable.find(models, m => isEqual(m.sessionResource, sessionResource))
|
|
55
|
-
))
|
|
56
|
-
.map(model => model?.editingSession?.getDiffsForFilesInRequest(requestId)))
|
|
57
|
-
.map((diffs, r) => diffs?.read(r) || Iterable.empty()));
|
|
64
|
+
)).map(model => model?.editingSession?.getDiffsForFilesInRequest(requestId))).map((diffs, r) => diffs?.read(r) || Iterable.empty()));
|
|
58
65
|
}
|
|
59
66
|
getCachedEntryDiffBetweenRequests(editSession, uri, startRequestId, stopRequestId) {
|
|
60
67
|
const key = `${uri}\0${startRequestId}\0${stopRequestId}`;
|
|
@@ -66,7 +73,7 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
66
73
|
return observable;
|
|
67
74
|
}
|
|
68
75
|
renderHeader(container) {
|
|
69
|
-
const viewListButtonContainer = container.appendChild($(
|
|
76
|
+
const viewListButtonContainer = container.appendChild($(".chat-file-changes-label"));
|
|
70
77
|
const viewListButton = ( new ButtonWithIcon(viewListButtonContainer, {}));
|
|
71
78
|
this._register(autorun(r => {
|
|
72
79
|
const diffs = this.fileChangesDiffsObservable.read(r);
|
|
@@ -74,8 +81,7 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
74
81
|
}));
|
|
75
82
|
const setExpansionState = () => {
|
|
76
83
|
viewListButton.icon = this.isCollapsed ? Codicon.chevronRight : Codicon.chevronDown;
|
|
77
|
-
this.domNode.classList.toggle(
|
|
78
|
-
this._onDidChangeHeight.fire();
|
|
84
|
+
this.domNode.classList.toggle("chat-file-changes-collapsed", this.isCollapsed);
|
|
79
85
|
};
|
|
80
86
|
setExpansionState();
|
|
81
87
|
const disposables = ( new DisposableStore());
|
|
@@ -88,20 +94,20 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
88
94
|
return toDisposable(() => disposables.dispose());
|
|
89
95
|
}
|
|
90
96
|
renderViewAllFileChangesButton(container) {
|
|
91
|
-
const button = container.appendChild($(
|
|
97
|
+
const button = container.appendChild($(".chat-view-changes-icon"));
|
|
92
98
|
this.hoverService.setupDelayedHover(button, () => ({
|
|
93
|
-
content: ( localize2(
|
|
99
|
+
content: ( localize2(5831, "View All File Changes"))
|
|
94
100
|
}));
|
|
95
101
|
button.classList.add(...ThemeIcon.asClassNameArray(Codicon.diffMultiple));
|
|
96
|
-
button.setAttribute(
|
|
102
|
+
button.setAttribute("role", "button");
|
|
97
103
|
button.tabIndex = 0;
|
|
98
|
-
return addDisposableListener(button,
|
|
104
|
+
return addDisposableListener(button, "click", e => {
|
|
99
105
|
const resources = ( this.fileChangesDiffsObservable.get().map(diff => ({
|
|
100
106
|
originalUri: diff.originalURI,
|
|
101
107
|
modifiedUri: diff.modifiedURI
|
|
102
108
|
})));
|
|
103
109
|
const source = ( URI.parse(`multi-diff-editor:${( ( new Date()).getMilliseconds().toString()) + ( Math.random().toString())}`));
|
|
104
|
-
const input = this.instantiationService.createInstance(MultiDiffEditorInput, source,
|
|
110
|
+
const input = this.instantiationService.createInstance(MultiDiffEditorInput, source, "Checkpoint File Changes", ( resources.map(resource => {
|
|
105
111
|
return ( new MultiDiffEditorItem(resource.originalUri, resource.modifiedUri, undefined));
|
|
106
112
|
})), false);
|
|
107
113
|
this.editorGroupsService.activeGroup.openEditor(input);
|
|
@@ -110,48 +116,50 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
110
116
|
}
|
|
111
117
|
renderFilesList(container) {
|
|
112
118
|
const store = ( new DisposableStore());
|
|
113
|
-
this.list = store.add(
|
|
119
|
+
this.list = store.add(
|
|
120
|
+
this.instantiationService.createInstance(CollapsibleChangesSummaryListPool)
|
|
121
|
+
).get();
|
|
114
122
|
const listNode = this.list.getHTMLElement();
|
|
115
123
|
container.appendChild(listNode.parentElement);
|
|
116
|
-
store.add(this.list.onDidOpen(
|
|
124
|
+
store.add(this.list.onDidOpen(item => {
|
|
117
125
|
const diff = item.element;
|
|
118
126
|
if (!diff) {
|
|
119
127
|
return;
|
|
120
128
|
}
|
|
121
129
|
const input = {
|
|
122
|
-
original: {
|
|
123
|
-
|
|
124
|
-
|
|
130
|
+
original: {
|
|
131
|
+
resource: diff.originalURI
|
|
132
|
+
},
|
|
133
|
+
modified: {
|
|
134
|
+
resource: diff.modifiedURI
|
|
135
|
+
},
|
|
136
|
+
options: {
|
|
137
|
+
preserveFocus: true
|
|
138
|
+
}
|
|
125
139
|
};
|
|
126
140
|
this.editorService.openEditor(input);
|
|
127
141
|
}));
|
|
128
142
|
store.add(this.list.onContextMenu(e => {
|
|
129
143
|
EventHelper.stop(e.browserEvent, true);
|
|
130
144
|
}));
|
|
131
|
-
store.add(autorun(
|
|
145
|
+
store.add(autorun(r => {
|
|
132
146
|
const diffs = this.fileChangesDiffsObservable.read(r);
|
|
133
147
|
const itemsShown = Math.min(diffs.length, this.MAX_ITEMS_SHOWN);
|
|
134
148
|
const height = itemsShown * this.ELEMENT_HEIGHT;
|
|
135
149
|
this.list.layout(height);
|
|
136
|
-
listNode.style.height = height +
|
|
150
|
+
listNode.style.height = height + "px";
|
|
137
151
|
this.list.splice(0, this.list.length, diffs);
|
|
138
152
|
}));
|
|
139
153
|
return store;
|
|
140
154
|
}
|
|
141
155
|
hasSameContent(other, followingContent, element) {
|
|
142
|
-
return other.kind ===
|
|
156
|
+
return other.kind === "changesSummary" && other.requestId === this.content.requestId;
|
|
143
157
|
}
|
|
144
158
|
addDisposable(disposable) {
|
|
145
159
|
this._register(disposable);
|
|
146
160
|
}
|
|
147
161
|
};
|
|
148
|
-
ChatCheckpointFileChangesSummaryContentPart = ( __decorate([
|
|
149
|
-
( __param(2, IHoverService)),
|
|
150
|
-
( __param(3, IChatService)),
|
|
151
|
-
( __param(4, IEditorService)),
|
|
152
|
-
( __param(5, IEditorGroupsService)),
|
|
153
|
-
( __param(6, IInstantiationService))
|
|
154
|
-
], ChatCheckpointFileChangesSummaryContentPart));
|
|
162
|
+
ChatCheckpointFileChangesSummaryContentPart = ( __decorate([( __param(2, IHoverService)), ( __param(3, IChatService)), ( __param(4, IEditorService)), ( __param(5, IEditorGroupsService)), ( __param(6, IInstantiationService))], ChatCheckpointFileChangesSummaryContentPart));
|
|
155
163
|
let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool extends Disposable {
|
|
156
164
|
constructor(instantiationService, themeService) {
|
|
157
165
|
super();
|
|
@@ -160,13 +168,19 @@ let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool
|
|
|
160
168
|
this._resourcePool = this._register(( new ResourcePool(() => this.listFactory())));
|
|
161
169
|
}
|
|
162
170
|
listFactory() {
|
|
163
|
-
const container = $(
|
|
171
|
+
const container = $(".chat-summary-list");
|
|
164
172
|
const store = ( new DisposableStore());
|
|
165
173
|
store.add(createFileIconThemableTreeContainerScope(container, this.themeService));
|
|
166
|
-
const resourceLabels = store.add(this.instantiationService.createInstance(ResourceLabels, {
|
|
167
|
-
|
|
168
|
-
alwaysConsumeMouseWheel: false
|
|
174
|
+
const resourceLabels = store.add(this.instantiationService.createInstance(ResourceLabels, {
|
|
175
|
+
onDidChangeVisibility: () => Disposable.None
|
|
169
176
|
}));
|
|
177
|
+
const list = store.add(
|
|
178
|
+
this.instantiationService.createInstance(WorkbenchList, "ChatListRenderer", container, ( new CollapsibleChangesSummaryListDelegate()), [
|
|
179
|
+
this.instantiationService.createInstance(CollapsibleChangesSummaryListRenderer, resourceLabels)
|
|
180
|
+
], {
|
|
181
|
+
alwaysConsumeMouseWheel: false
|
|
182
|
+
})
|
|
183
|
+
);
|
|
170
184
|
return {
|
|
171
185
|
list: list,
|
|
172
186
|
dispose: () => {
|
|
@@ -178,10 +192,7 @@ let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool
|
|
|
178
192
|
return this._resourcePool.get().list;
|
|
179
193
|
}
|
|
180
194
|
};
|
|
181
|
-
CollapsibleChangesSummaryListPool = ( __decorate([
|
|
182
|
-
( __param(0, IInstantiationService)),
|
|
183
|
-
( __param(1, IThemeService))
|
|
184
|
-
], CollapsibleChangesSummaryListPool));
|
|
195
|
+
CollapsibleChangesSummaryListPool = ( __decorate([( __param(0, IInstantiationService)), ( __param(1, IThemeService))], CollapsibleChangesSummaryListPool));
|
|
185
196
|
class CollapsibleChangesSummaryListDelegate {
|
|
186
197
|
getHeight(element) {
|
|
187
198
|
return 22;
|
|
@@ -191,15 +202,25 @@ class CollapsibleChangesSummaryListDelegate {
|
|
|
191
202
|
}
|
|
192
203
|
}
|
|
193
204
|
class CollapsibleChangesSummaryListRenderer {
|
|
194
|
-
static {
|
|
195
|
-
|
|
205
|
+
static {
|
|
206
|
+
this.TEMPLATE_ID = "collapsibleChangesSummaryListRenderer";
|
|
207
|
+
}
|
|
208
|
+
static {
|
|
209
|
+
this.CHANGES_SUMMARY_CLASS_NAME = "insertions-and-deletions";
|
|
210
|
+
}
|
|
196
211
|
constructor(labels) {
|
|
197
212
|
this.labels = labels;
|
|
198
213
|
this.templateId = CollapsibleChangesSummaryListRenderer.TEMPLATE_ID;
|
|
199
214
|
}
|
|
200
215
|
renderTemplate(container) {
|
|
201
|
-
const label = this.labels.create(container, {
|
|
202
|
-
|
|
216
|
+
const label = this.labels.create(container, {
|
|
217
|
+
supportHighlights: true,
|
|
218
|
+
supportIcons: true
|
|
219
|
+
});
|
|
220
|
+
return {
|
|
221
|
+
label,
|
|
222
|
+
dispose: () => label.dispose()
|
|
223
|
+
};
|
|
203
224
|
}
|
|
204
225
|
renderElement(data, index, templateData) {
|
|
205
226
|
const label = templateData.label;
|
|
@@ -14,11 +14,11 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
|
|
|
14
14
|
this.editorService = editorService;
|
|
15
15
|
this.telemetryService = telemetryService;
|
|
16
16
|
const label = getCodeCitationsMessage(citations.citations);
|
|
17
|
-
const elements = h(
|
|
18
|
-
h(
|
|
19
|
-
h(
|
|
17
|
+
const elements = h(".chat-code-citation-message@root", [
|
|
18
|
+
h("span.chat-code-citation-label@label"),
|
|
19
|
+
h(".chat-code-citation-button-container@button")
|
|
20
20
|
]);
|
|
21
|
-
elements.label.textContent = label +
|
|
21
|
+
elements.label.textContent = label + " - ";
|
|
22
22
|
const button = this._register(( new Button(elements.button, {
|
|
23
23
|
buttonBackground: undefined,
|
|
24
24
|
buttonBorder: undefined,
|
|
@@ -29,21 +29,22 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
|
|
|
29
29
|
buttonSecondaryHoverBackground: undefined,
|
|
30
30
|
buttonSeparator: undefined
|
|
31
31
|
})));
|
|
32
|
-
button.label = ( localize(
|
|
32
|
+
button.label = ( localize(5832, "View matches"));
|
|
33
33
|
this._register(button.onDidClick(() => {
|
|
34
|
-
const citationText = `# Code Citations\n\n` + ( citations.citations.map(c => `## License: ${c.license}\n${( c.value.toString())}\n\n\`\`\`\n${c.snippet}\n\`\`\`\n\n`)).join(
|
|
35
|
-
this.editorService.openEditor({
|
|
36
|
-
|
|
34
|
+
const citationText = `# Code Citations\n\n` + ( citations.citations.map(c => `## License: ${c.license}\n${( c.value.toString())}\n\n\`\`\`\n${c.snippet}\n\`\`\`\n\n`)).join("\n");
|
|
35
|
+
this.editorService.openEditor({
|
|
36
|
+
resource: undefined,
|
|
37
|
+
contents: citationText,
|
|
38
|
+
languageId: "markdown"
|
|
39
|
+
});
|
|
40
|
+
this.telemetryService.publicLog2("openedChatCodeCitations");
|
|
37
41
|
}));
|
|
38
42
|
this.domNode = elements.root;
|
|
39
43
|
}
|
|
40
44
|
hasSameContent(other, followingContent, element) {
|
|
41
|
-
return other.kind ===
|
|
45
|
+
return other.kind === "codeCitations";
|
|
42
46
|
}
|
|
43
47
|
};
|
|
44
|
-
ChatCodeCitationContentPart = ( __decorate([
|
|
45
|
-
( __param(2, IEditorService)),
|
|
46
|
-
( __param(3, ITelemetryService))
|
|
47
|
-
], ChatCodeCitationContentPart));
|
|
48
|
+
ChatCodeCitationContentPart = ( __decorate([( __param(2, IEditorService)), ( __param(3, ITelemetryService))], ChatCodeCitationContentPart));
|
|
48
49
|
|
|
49
50
|
export { ChatCodeCitationContentPart };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ButtonWithIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button";
|
|
2
|
-
import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
2
|
import { IMarkdownString, MarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
4
3
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
4
|
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
@@ -13,23 +12,24 @@ import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
13
12
|
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
14
13
|
export declare abstract class ChatCollapsibleContentPart extends Disposable implements IChatContentPart {
|
|
15
14
|
private title;
|
|
16
|
-
protected readonly context: IChatContentPartRenderContext;
|
|
17
15
|
private readonly hoverMessage;
|
|
18
16
|
private readonly hoverService;
|
|
19
17
|
private _domNode?;
|
|
20
18
|
private readonly _renderedTitleWithWidgets;
|
|
21
|
-
protected readonly _onDidChangeHeight: Emitter<void>;
|
|
22
|
-
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
23
19
|
protected readonly hasFollowingContent: boolean;
|
|
24
20
|
protected _isExpanded: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").ISettableObservable<boolean, void>;
|
|
25
21
|
protected _collapseButton: ButtonWithIcon | undefined;
|
|
26
22
|
private readonly _overrideIcon;
|
|
23
|
+
private _contentElement?;
|
|
24
|
+
private _contentInitialized;
|
|
27
25
|
get icon(): ThemeIcon | undefined;
|
|
28
26
|
set icon(value: ThemeIcon | undefined);
|
|
27
|
+
protected readonly element: ChatTreeItem;
|
|
29
28
|
constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService);
|
|
30
29
|
get domNode(): HTMLElement;
|
|
31
30
|
protected init(): HTMLElement;
|
|
32
31
|
protected abstract initContent(): HTMLElement;
|
|
32
|
+
protected shouldInitEarly(): boolean;
|
|
33
33
|
abstract hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
|
|
34
34
|
private updateAriaLabel;
|
|
35
35
|
addDisposable(disposable: IDisposable): void;
|