@codingame/monaco-vscode-katex-common 25.1.1 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
- package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
|
@@ -14,7 +14,7 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
14
14
|
import { ILabelService } from '@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service';
|
|
15
15
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
16
16
|
import { asCssVariable } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
17
|
-
import { contentRefUrl } from '
|
|
17
|
+
import { contentRefUrl } from '../../../common/widget/annotations.js';
|
|
18
18
|
import { getFullyQualifiedId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents';
|
|
19
19
|
import { IChatAgentNameService, IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
|
|
20
20
|
import { chatSlashCommandForeground, chatSlashCommandBackground } from '../../../common/widget/chatColors.js';
|
|
@@ -38,16 +38,37 @@ function agentToMarkdown(agent, sessionResource, isClickable, accessor) {
|
|
|
38
38
|
if (isDupe) {
|
|
39
39
|
name += ` (${agent.publisherDisplayName})`;
|
|
40
40
|
}
|
|
41
|
-
const args = {
|
|
41
|
+
const args = {
|
|
42
|
+
agentId: agent.id,
|
|
43
|
+
sessionResource,
|
|
44
|
+
name,
|
|
45
|
+
isClickable
|
|
46
|
+
};
|
|
42
47
|
return `[${agent.name}](${agentRefUrl}?${encodeURIComponent(JSON.stringify(args))})`;
|
|
43
48
|
}
|
|
44
49
|
function agentSlashCommandToMarkdown(agent, command, sessionResource) {
|
|
45
50
|
const text = `${chatSubcommandLeader}${command.name}`;
|
|
46
|
-
const args = {
|
|
51
|
+
const args = {
|
|
52
|
+
agentId: agent.id,
|
|
53
|
+
command: command.name,
|
|
54
|
+
sessionResource
|
|
55
|
+
};
|
|
47
56
|
return `[${text}](${agentSlashRefUrl}?${encodeURIComponent(JSON.stringify(args))})`;
|
|
48
57
|
}
|
|
49
58
|
let ChatMarkdownDecorationsRenderer = class ChatMarkdownDecorationsRenderer {
|
|
50
|
-
constructor(
|
|
59
|
+
constructor(
|
|
60
|
+
keybindingService,
|
|
61
|
+
logService,
|
|
62
|
+
chatAgentService,
|
|
63
|
+
instantiationService,
|
|
64
|
+
hoverService,
|
|
65
|
+
chatService,
|
|
66
|
+
chatWidgetService,
|
|
67
|
+
commandService,
|
|
68
|
+
labelService,
|
|
69
|
+
toolsService,
|
|
70
|
+
chatMarkdownAnchorService
|
|
71
|
+
) {
|
|
51
72
|
this.keybindingService = keybindingService;
|
|
52
73
|
this.logService = logService;
|
|
53
74
|
this.chatAgentService = chatAgentService;
|
|
@@ -61,75 +82,63 @@ let ChatMarkdownDecorationsRenderer = class ChatMarkdownDecorationsRenderer {
|
|
|
61
82
|
this.chatMarkdownAnchorService = chatMarkdownAnchorService;
|
|
62
83
|
}
|
|
63
84
|
convertParsedRequestToMarkdown(sessionResource, parsedRequest) {
|
|
64
|
-
let result =
|
|
85
|
+
let result = "";
|
|
65
86
|
for (const part of parsedRequest.parts) {
|
|
66
87
|
if (part instanceof ChatRequestTextPart) {
|
|
67
88
|
result += part.text;
|
|
68
|
-
}
|
|
69
|
-
else if (part instanceof ChatRequestAgentPart) {
|
|
89
|
+
} else if (part instanceof ChatRequestAgentPart) {
|
|
70
90
|
result += this.instantiationService.invokeFunction(accessor => agentToMarkdown(part.agent, sessionResource, false, accessor));
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
91
|
+
} else {
|
|
73
92
|
result += this.genericDecorationToMarkdown(part);
|
|
74
93
|
}
|
|
75
94
|
}
|
|
76
95
|
return result;
|
|
77
96
|
}
|
|
78
97
|
genericDecorationToMarkdown(part) {
|
|
79
|
-
const uri = part instanceof ChatRequestDynamicVariablePart && part.data instanceof URI ?
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
part instanceof ChatRequestToolPart ? (this.toolsService.getTool(part.toolId)?.userDescription) :
|
|
87
|
-
'';
|
|
88
|
-
const args = { title };
|
|
98
|
+
const uri = part instanceof ChatRequestDynamicVariablePart && part.data instanceof URI ? part.data : undefined;
|
|
99
|
+
const title = uri ? this.labelService.getUriLabel(uri, {
|
|
100
|
+
relative: true
|
|
101
|
+
}) : part instanceof ChatRequestSlashCommandPart ? part.slashCommand.detail : part instanceof ChatRequestAgentSubcommandPart ? part.command.description : part instanceof ChatRequestSlashPromptPart ? part.name : part instanceof ChatRequestToolPart ? (this.toolsService.getTool(part.toolId)?.userDescription) : "";
|
|
102
|
+
const args = {
|
|
103
|
+
title
|
|
104
|
+
};
|
|
89
105
|
const text = part.text;
|
|
90
106
|
return `[${text}](${decorationRefUrl}?${encodeURIComponent(JSON.stringify(args))})`;
|
|
91
107
|
}
|
|
92
108
|
walkTreeAndAnnotateReferenceLinks(content, element) {
|
|
93
109
|
const store = ( new DisposableStore());
|
|
94
|
-
element.querySelectorAll(
|
|
95
|
-
const href = a.getAttribute(
|
|
110
|
+
element.querySelectorAll("a").forEach(a => {
|
|
111
|
+
const href = a.getAttribute("data-href");
|
|
96
112
|
if (href) {
|
|
97
113
|
if (href.startsWith(agentRefUrl)) {
|
|
98
114
|
let args;
|
|
99
115
|
try {
|
|
100
116
|
args = JSON.parse(decodeURIComponent(href.slice(agentRefUrl.length + 1)));
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
this.logService.error('Invalid chat widget render data JSON', toErrorMessage(e));
|
|
117
|
+
} catch (e) {
|
|
118
|
+
this.logService.error("Invalid chat widget render data JSON", toErrorMessage(e));
|
|
104
119
|
}
|
|
105
120
|
if (args) {
|
|
106
121
|
a.replaceWith(this.renderAgentWidget(args, store));
|
|
107
122
|
}
|
|
108
|
-
}
|
|
109
|
-
else if (href.startsWith(agentSlashRefUrl)) {
|
|
123
|
+
} else if (href.startsWith(agentSlashRefUrl)) {
|
|
110
124
|
let args;
|
|
111
125
|
try {
|
|
112
126
|
args = JSON.parse(decodeURIComponent(href.slice(agentRefUrl.length + 1)));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
this.logService.error('Invalid chat slash command render data JSON', toErrorMessage(e));
|
|
127
|
+
} catch (e) {
|
|
128
|
+
this.logService.error("Invalid chat slash command render data JSON", toErrorMessage(e));
|
|
116
129
|
}
|
|
117
130
|
if (args) {
|
|
118
131
|
a.replaceWith(this.renderSlashCommandWidget(a.textContent, args, store));
|
|
119
132
|
}
|
|
120
|
-
}
|
|
121
|
-
else if (href.startsWith(decorationRefUrl)) {
|
|
133
|
+
} else if (href.startsWith(decorationRefUrl)) {
|
|
122
134
|
let args;
|
|
123
135
|
try {
|
|
124
136
|
args = JSON.parse(decodeURIComponent(href.slice(decorationRefUrl.length + 1)));
|
|
125
|
-
}
|
|
126
|
-
catch (e) { }
|
|
137
|
+
} catch (e) {}
|
|
127
138
|
a.replaceWith(this.renderResourceWidget(a.textContent, args, store));
|
|
128
|
-
}
|
|
129
|
-
else if (href.startsWith(contentRefUrl)) {
|
|
139
|
+
} else if (href.startsWith(contentRefUrl)) {
|
|
130
140
|
this.renderFileWidget(content, href, a, store);
|
|
131
|
-
}
|
|
132
|
-
else if (href.startsWith('command:')) {
|
|
141
|
+
} else if (href.startsWith("command:")) {
|
|
133
142
|
this.injectKeybindingHint(a, href, this.keybindingService);
|
|
134
143
|
}
|
|
135
144
|
}
|
|
@@ -140,7 +149,7 @@ let ChatMarkdownDecorationsRenderer = class ChatMarkdownDecorationsRenderer {
|
|
|
140
149
|
const nameWithLeader = `${chatAgentLeader}${args.name}`;
|
|
141
150
|
let container;
|
|
142
151
|
if (args.isClickable) {
|
|
143
|
-
container = $(
|
|
152
|
+
container = $("span.chat-agent-widget");
|
|
144
153
|
const button = store.add(( new Button(container, {
|
|
145
154
|
buttonBackground: asCssVariable(chatSlashCommandBackground),
|
|
146
155
|
buttonForeground: asCssVariable(chatSlashCommandForeground),
|
|
@@ -153,27 +162,28 @@ let ChatMarkdownDecorationsRenderer = class ChatMarkdownDecorationsRenderer {
|
|
|
153
162
|
if (!widget || !agent) {
|
|
154
163
|
return;
|
|
155
164
|
}
|
|
156
|
-
this.chatService.sendRequest(widget.viewModel.sessionResource, agent.metadata.sampleRequest ??
|
|
165
|
+
this.chatService.sendRequest(widget.viewModel.sessionResource, agent.metadata.sampleRequest ?? "", {
|
|
157
166
|
location: widget.location,
|
|
158
167
|
agentId: agent.id,
|
|
159
168
|
userSelectedModelId: widget.input.currentLanguageModel,
|
|
160
169
|
modeInfo: widget.input.currentModeInfo
|
|
161
170
|
});
|
|
162
171
|
}));
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
172
|
+
} else {
|
|
165
173
|
container = this.renderResourceWidget(nameWithLeader, undefined, store);
|
|
166
174
|
}
|
|
167
175
|
const agent = this.chatAgentService.getAgent(args.agentId);
|
|
168
176
|
const hover = ( new Lazy(() => store.add(this.instantiationService.createInstance(ChatAgentHover))));
|
|
169
|
-
store.add(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
177
|
+
store.add(
|
|
178
|
+
this.hoverService.setupManagedHover(getDefaultHoverDelegate("element"), container, () => {
|
|
179
|
+
hover.value.setAgent(args.agentId);
|
|
180
|
+
return hover.value.domNode;
|
|
181
|
+
}, agent && getChatAgentHoverOptions(() => agent, this.commandService))
|
|
182
|
+
);
|
|
173
183
|
return container;
|
|
174
184
|
}
|
|
175
185
|
renderSlashCommandWidget(name, args, store) {
|
|
176
|
-
const container = $(
|
|
186
|
+
const container = $("span.chat-agent-widget.chat-command-widget");
|
|
177
187
|
const agent = this.chatAgentService.getAgent(args.agentId);
|
|
178
188
|
const button = store.add(( new Button(container, {
|
|
179
189
|
buttonBackground: asCssVariable(chatSlashCommandBackground),
|
|
@@ -187,7 +197,7 @@ let ChatMarkdownDecorationsRenderer = class ChatMarkdownDecorationsRenderer {
|
|
|
187
197
|
return;
|
|
188
198
|
}
|
|
189
199
|
const command = agent.slashCommands.find(c => c.name === args.command);
|
|
190
|
-
this.chatService.sendRequest(widget.viewModel.sessionResource, command?.sampleRequest ??
|
|
200
|
+
this.chatService.sendRequest(widget.viewModel.sessionResource, command?.sampleRequest ?? "", {
|
|
191
201
|
location: widget.location,
|
|
192
202
|
agentId: agent.id,
|
|
193
203
|
slashCommand: args.command,
|
|
@@ -201,17 +211,21 @@ let ChatMarkdownDecorationsRenderer = class ChatMarkdownDecorationsRenderer {
|
|
|
201
211
|
const fullUri = ( URI.parse(href));
|
|
202
212
|
const data = content.inlineReferences?.[fullUri.path.slice(1)];
|
|
203
213
|
if (!data) {
|
|
204
|
-
this.logService.error(
|
|
214
|
+
this.logService.error("Invalid chat widget render data JSON");
|
|
205
215
|
return;
|
|
206
216
|
}
|
|
207
|
-
const inlineAnchor = store.add(
|
|
217
|
+
const inlineAnchor = store.add(
|
|
218
|
+
this.instantiationService.createInstance(InlineAnchorWidget, a, data, undefined)
|
|
219
|
+
);
|
|
208
220
|
store.add(this.chatMarkdownAnchorService.register(inlineAnchor));
|
|
209
221
|
}
|
|
210
222
|
renderResourceWidget(name, args, store) {
|
|
211
|
-
const container = $(
|
|
212
|
-
const alias = $(
|
|
223
|
+
const container = $("span.chat-resource-widget");
|
|
224
|
+
const alias = $("span", undefined, name);
|
|
213
225
|
if (args?.title) {
|
|
214
|
-
store.add(
|
|
226
|
+
store.add(
|
|
227
|
+
this.hoverService.setupManagedHover(getDefaultHoverDelegate("element"), container, args.title)
|
|
228
|
+
);
|
|
215
229
|
}
|
|
216
230
|
container.appendChild(alias);
|
|
217
231
|
return container;
|
|
@@ -219,28 +233,10 @@ let ChatMarkdownDecorationsRenderer = class ChatMarkdownDecorationsRenderer {
|
|
|
219
233
|
injectKeybindingHint(a, href, keybindingService) {
|
|
220
234
|
const command = href.match(/command:([^\)]+)/)?.[1];
|
|
221
235
|
if (command) {
|
|
222
|
-
|
|
223
|
-
if (kb) {
|
|
224
|
-
const keybinding = kb.getLabel();
|
|
225
|
-
if (keybinding) {
|
|
226
|
-
a.textContent = `${a.textContent} (${keybinding})`;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
236
|
+
a.textContent = keybindingService.appendKeybinding(a.textContent || "", command);
|
|
229
237
|
}
|
|
230
238
|
}
|
|
231
239
|
};
|
|
232
|
-
ChatMarkdownDecorationsRenderer = ( __decorate([
|
|
233
|
-
( __param(0, IKeybindingService)),
|
|
234
|
-
( __param(1, ILogService)),
|
|
235
|
-
( __param(2, IChatAgentService)),
|
|
236
|
-
( __param(3, IInstantiationService)),
|
|
237
|
-
( __param(4, IHoverService)),
|
|
238
|
-
( __param(5, IChatService)),
|
|
239
|
-
( __param(6, IChatWidgetService)),
|
|
240
|
-
( __param(7, ICommandService)),
|
|
241
|
-
( __param(8, ILabelService)),
|
|
242
|
-
( __param(9, ILanguageModelToolsService)),
|
|
243
|
-
( __param(10, IChatMarkdownAnchorService))
|
|
244
|
-
], ChatMarkdownDecorationsRenderer));
|
|
240
|
+
ChatMarkdownDecorationsRenderer = ( __decorate([( __param(0, IKeybindingService)), ( __param(1, ILogService)), ( __param(2, IChatAgentService)), ( __param(3, IInstantiationService)), ( __param(4, IHoverService)), ( __param(5, IChatService)), ( __param(6, IChatWidgetService)), ( __param(7, ICommandService)), ( __param(8, ILabelService)), ( __param(9, ILanguageModelToolsService)), ( __param(10, IChatMarkdownAnchorService))], ChatMarkdownDecorationsRenderer));
|
|
245
241
|
|
|
246
242
|
export { ChatMarkdownDecorationsRenderer, agentSlashCommandToMarkdown, agentToMarkdown };
|
|
@@ -3,7 +3,7 @@ import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs
|
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
4
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
5
5
|
import { IMcpService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes.service";
|
|
6
|
-
import { IChatMcpServersStarting } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
6
|
+
import { IChatMcpServersStarting, IChatMcpServersStartingSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
7
7
|
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
8
8
|
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
9
9
|
export declare class ChatMcpServersInteractionContentPart extends Disposable implements IChatContentPart {
|
|
@@ -14,14 +14,12 @@ export declare class ChatMcpServersInteractionContentPart extends Disposable imp
|
|
|
14
14
|
private readonly _openerService;
|
|
15
15
|
private readonly _markdownRendererService;
|
|
16
16
|
readonly domNode: HTMLElement;
|
|
17
|
-
private readonly _onDidChangeHeight;
|
|
18
|
-
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
19
17
|
private workingProgressPart;
|
|
20
18
|
private interactionContainer;
|
|
21
19
|
private readonly interactionMd;
|
|
22
20
|
private readonly showSpecificServersScheduler;
|
|
23
21
|
private readonly previousParts;
|
|
24
|
-
constructor(data: IChatMcpServersStarting, context: IChatContentPartRenderContext, mcpService: IMcpService, instantiationService: IInstantiationService, _openerService: IOpenerService, _markdownRendererService: IMarkdownRendererService);
|
|
22
|
+
constructor(data: IChatMcpServersStarting | IChatMcpServersStartingSerialized, context: IChatContentPartRenderContext, mcpService: IMcpService, instantiationService: IInstantiationService, _openerService: IOpenerService, _markdownRendererService: IMarkdownRendererService);
|
|
25
23
|
private updateForState;
|
|
26
24
|
private createServerCommandLinks;
|
|
27
25
|
private updateDetailedProgress;
|
|
@@ -4,7 +4,6 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
4
4
|
import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
6
6
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
7
|
-
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
8
7
|
import { createMarkdownCommandLink, escapeMarkdownSyntaxTokens, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
9
8
|
import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
|
|
10
9
|
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -25,7 +24,14 @@ import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/obse
|
|
|
25
24
|
|
|
26
25
|
registerCss(chatMcpServersInteractionContent);
|
|
27
26
|
let ChatMcpServersInteractionContentPart = class ChatMcpServersInteractionContentPart extends Disposable {
|
|
28
|
-
constructor(
|
|
27
|
+
constructor(
|
|
28
|
+
data,
|
|
29
|
+
context,
|
|
30
|
+
mcpService,
|
|
31
|
+
instantiationService,
|
|
32
|
+
_openerService,
|
|
33
|
+
_markdownRendererService
|
|
34
|
+
) {
|
|
29
35
|
super();
|
|
30
36
|
this.data = data;
|
|
31
37
|
this.context = context;
|
|
@@ -33,20 +39,15 @@ let ChatMcpServersInteractionContentPart = class ChatMcpServersInteractionConten
|
|
|
33
39
|
this.instantiationService = instantiationService;
|
|
34
40
|
this._openerService = _openerService;
|
|
35
41
|
this._markdownRendererService = _markdownRendererService;
|
|
36
|
-
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
37
|
-
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
38
42
|
this.interactionMd = this._register(( new MutableDisposable()));
|
|
39
43
|
this.showSpecificServersScheduler = this._register(( new RunOnceScheduler(() => this.updateDetailedProgress(this.data.state.get()), 2500)));
|
|
40
44
|
this.previousParts = ( new Lazy(() => {
|
|
41
45
|
if (!isResponseVM(this.context.element)) {
|
|
42
46
|
return [];
|
|
43
47
|
}
|
|
44
|
-
return ( this.context.element.session.getItems()
|
|
45
|
-
.filter((r, i) => isResponseVM(r) && i < this.context.elementIndex)
|
|
46
|
-
.flatMap(i => i.response.value.filter(c => c.kind === 'mcpServersStarting'))
|
|
47
|
-
.map(p => p.state?.get()));
|
|
48
|
+
return ( this.context.element.session.getItems().filter((r, i) => isResponseVM(r) && i < this.context.elementIndex).flatMap(i => i.response.value.filter(c => c.kind === "mcpServersStarting")).map(p => p.state?.get()));
|
|
48
49
|
}));
|
|
49
|
-
this.domNode = $(
|
|
50
|
+
this.domNode = $(".chat-mcp-servers-interaction");
|
|
50
51
|
if (data.state) {
|
|
51
52
|
this._register(autorun(reader => {
|
|
52
53
|
const state = data.state.read(reader);
|
|
@@ -59,13 +60,11 @@ let ChatMcpServersInteractionContentPart = class ChatMcpServersInteractionConten
|
|
|
59
60
|
this.workingProgressPart?.domNode.remove();
|
|
60
61
|
this.workingProgressPart = undefined;
|
|
61
62
|
this.showSpecificServersScheduler.cancel();
|
|
62
|
-
}
|
|
63
|
-
else if (!this.workingProgressPart) {
|
|
63
|
+
} else if (!this.workingProgressPart) {
|
|
64
64
|
if (!this.showSpecificServersScheduler.isScheduled()) {
|
|
65
65
|
this.showSpecificServersScheduler.schedule();
|
|
66
66
|
}
|
|
67
|
-
}
|
|
68
|
-
else if (this.workingProgressPart) {
|
|
67
|
+
} else if (this.workingProgressPart) {
|
|
69
68
|
this.updateDetailedProgress(state);
|
|
70
69
|
}
|
|
71
70
|
const requiringInteraction = state.serversRequiringInteraction.filter(s => {
|
|
@@ -80,102 +79,112 @@ let ChatMcpServersInteractionContentPart = class ChatMcpServersInteractionConten
|
|
|
80
79
|
if (requiringInteraction.length > 0) {
|
|
81
80
|
if (!this.interactionMd.value) {
|
|
82
81
|
this.renderInteractionRequired(requiringInteraction);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
82
|
+
} else {
|
|
85
83
|
this.updateInteractionRequired(this.interactionMd.value.element, requiringInteraction);
|
|
86
84
|
}
|
|
87
|
-
}
|
|
88
|
-
else if (requiringInteraction.length === 0 && this.interactionContainer) {
|
|
85
|
+
} else if (requiringInteraction.length === 0 && this.interactionContainer) {
|
|
89
86
|
this.interactionContainer.remove();
|
|
90
87
|
this.interactionContainer = undefined;
|
|
91
88
|
}
|
|
92
|
-
this._onDidChangeHeight.fire();
|
|
93
89
|
}
|
|
94
90
|
createServerCommandLinks(servers) {
|
|
95
91
|
return ( servers.map(s => createMarkdownCommandLink({
|
|
96
|
-
title:
|
|
92
|
+
title: "`" + escapeMarkdownSyntaxTokens(s.label) + "`",
|
|
97
93
|
id: McpCommandIds.ServerOptions,
|
|
98
|
-
arguments: [s.id]
|
|
99
|
-
}, false))).join(
|
|
94
|
+
arguments: [s.id]
|
|
95
|
+
}, false))).join(", ");
|
|
100
96
|
}
|
|
101
97
|
updateDetailedProgress(state) {
|
|
102
98
|
const skipText = createMarkdownCommandLink({
|
|
103
|
-
title: ( localize(
|
|
104
|
-
id: McpCommandIds.SkipCurrentAutostart
|
|
99
|
+
title: ( localize(5860, "Skip?")),
|
|
100
|
+
id: McpCommandIds.SkipCurrentAutostart
|
|
105
101
|
});
|
|
106
102
|
let content;
|
|
107
103
|
if (state.starting.length === 0) {
|
|
108
|
-
content = ( new MarkdownString(undefined, {
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
content = ( new MarkdownString(undefined, {
|
|
105
|
+
isTrusted: true
|
|
106
|
+
})).appendText(( localize(5861, "Activating MCP extensions...")) + " ").appendMarkdown(skipText);
|
|
107
|
+
} else {
|
|
111
108
|
const serverLinks = this.createServerCommandLinks(state.starting);
|
|
112
|
-
content = ( new MarkdownString(undefined, {
|
|
109
|
+
content = ( new MarkdownString(undefined, {
|
|
110
|
+
isTrusted: true
|
|
111
|
+
})).appendMarkdown(( localize(5862, "Starting MCP servers {0}...", serverLinks)) + " ").appendMarkdown(skipText);
|
|
113
112
|
}
|
|
114
113
|
if (this.workingProgressPart) {
|
|
115
114
|
this.workingProgressPart.updateMessage(content);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
} else {
|
|
116
|
+
this.workingProgressPart = this._register(this.instantiationService.createInstance(ChatProgressContentPart, {
|
|
117
|
+
kind: "progressMessage",
|
|
118
|
+
content
|
|
119
|
+
}, this._markdownRendererService, this.context, true,
|
|
119
120
|
true,
|
|
120
121
|
undefined,
|
|
121
122
|
undefined));
|
|
122
123
|
this.domNode.appendChild(this.workingProgressPart.domNode);
|
|
123
124
|
}
|
|
124
|
-
this._onDidChangeHeight.fire();
|
|
125
125
|
}
|
|
126
126
|
renderInteractionRequired(serversRequiringInteraction) {
|
|
127
|
-
this.interactionContainer = $(
|
|
128
|
-
const messageContainer = $(
|
|
129
|
-
const icon = $(
|
|
127
|
+
this.interactionContainer = $(".chat-mcp-servers-interaction-hint");
|
|
128
|
+
const messageContainer = $(".chat-mcp-servers-message");
|
|
129
|
+
const icon = $(".chat-mcp-servers-icon");
|
|
130
130
|
icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.mcp));
|
|
131
|
-
const {
|
|
131
|
+
const {
|
|
132
|
+
messageMd
|
|
133
|
+
} = this.createInteractionMessage(serversRequiringInteraction);
|
|
132
134
|
messageContainer.appendChild(icon);
|
|
133
135
|
messageContainer.appendChild(messageMd.element);
|
|
134
136
|
this.interactionContainer.appendChild(messageContainer);
|
|
135
137
|
this.domNode.prepend(this.interactionContainer);
|
|
136
138
|
}
|
|
137
139
|
updateInteractionRequired(oldElement, serversRequiringInteraction) {
|
|
138
|
-
const {
|
|
140
|
+
const {
|
|
141
|
+
messageMd
|
|
142
|
+
} = this.createInteractionMessage(serversRequiringInteraction);
|
|
139
143
|
oldElement.replaceWith(messageMd.element);
|
|
140
144
|
}
|
|
141
145
|
createInteractionMessage(serversRequiringInteraction) {
|
|
142
146
|
const count = serversRequiringInteraction.length;
|
|
143
147
|
const links = this.createServerCommandLinks(serversRequiringInteraction);
|
|
144
|
-
const content = count === 1
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
'The MCP server {0} may have new tools and requires interaction to start. [Start it now?]({1})',
|
|
148
|
+
const content = count === 1 ? ( localize(
|
|
149
|
+
5863,
|
|
150
|
+
"The MCP server {0} may have new tools and requires interaction to start. [Start it now?]({1})",
|
|
148
151
|
links,
|
|
149
|
-
|
|
150
|
-
))
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
'The MCP servers {0} may have new tools and require interaction to start. [Start them now?]({1})',
|
|
152
|
+
"#start"
|
|
153
|
+
)) : ( localize(
|
|
154
|
+
5864,
|
|
155
|
+
"The MCP servers {0} may have new tools and require interaction to start. [Start them now?]({1})",
|
|
154
156
|
links,
|
|
155
|
-
|
|
157
|
+
"#start"
|
|
156
158
|
));
|
|
157
|
-
const str = ( new MarkdownString(content, {
|
|
159
|
+
const str = ( new MarkdownString(content, {
|
|
160
|
+
isTrusted: true
|
|
161
|
+
}));
|
|
158
162
|
const messageMd = this.interactionMd.value = this._markdownRendererService.render(str, {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
if (!content.startsWith('command:')) {
|
|
163
|
+
actionHandler: content => {
|
|
164
|
+
if (!content.startsWith("command:")) {
|
|
162
165
|
this._start(startLink);
|
|
163
166
|
return Promise.resolve(true);
|
|
164
167
|
}
|
|
165
168
|
return openLinkFromMarkdown(this._openerService, content, true);
|
|
166
169
|
}
|
|
167
170
|
});
|
|
168
|
-
const startLink = [...messageMd.element.querySelectorAll(
|
|
171
|
+
const startLink = [...messageMd.element.querySelectorAll("a")].find(a => !a.getAttribute("data-href")?.startsWith("command:"));
|
|
169
172
|
if (!startLink) {
|
|
170
|
-
return {
|
|
173
|
+
return {
|
|
174
|
+
messageMd,
|
|
175
|
+
startLink: undefined
|
|
176
|
+
};
|
|
171
177
|
}
|
|
172
|
-
startLink.setAttribute(
|
|
173
|
-
startLink.href =
|
|
174
|
-
return {
|
|
178
|
+
startLink.setAttribute("role", "button");
|
|
179
|
+
startLink.href = "";
|
|
180
|
+
return {
|
|
181
|
+
messageMd,
|
|
182
|
+
startLink
|
|
183
|
+
};
|
|
175
184
|
}
|
|
176
185
|
async _start(startLink) {
|
|
177
|
-
startLink.style.pointerEvents =
|
|
178
|
-
startLink.style.opacity =
|
|
186
|
+
startLink.style.pointerEvents = "none";
|
|
187
|
+
startLink.style.opacity = "0.7";
|
|
179
188
|
try {
|
|
180
189
|
if (!this.data.state) {
|
|
181
190
|
return;
|
|
@@ -184,11 +193,12 @@ let ChatMcpServersInteractionContentPart = class ChatMcpServersInteractionConten
|
|
|
184
193
|
const serversToStart = state.serversRequiringInteraction;
|
|
185
194
|
for (let i = 0; i < serversToStart.length; i++) {
|
|
186
195
|
const serverInfo = serversToStart[i];
|
|
187
|
-
startLink.textContent = ( localize(
|
|
188
|
-
this._onDidChangeHeight.fire();
|
|
196
|
+
startLink.textContent = ( localize(5865, "Starting {0}...", serverInfo.label));
|
|
189
197
|
const server = this.mcpService.servers.get().find(s => s.definition.id === serverInfo.id);
|
|
190
198
|
if (server) {
|
|
191
|
-
await startServerAndWaitForLiveTools(server, {
|
|
199
|
+
await startServerAndWaitForLiveTools(server, {
|
|
200
|
+
promptType: "all-untrusted"
|
|
201
|
+
});
|
|
192
202
|
this.data.didStartServerIds ??= [];
|
|
193
203
|
this.data.didStartServerIds.push(serverInfo.id);
|
|
194
204
|
}
|
|
@@ -197,28 +207,19 @@ let ChatMcpServersInteractionContentPart = class ChatMcpServersInteractionConten
|
|
|
197
207
|
this.interactionContainer.remove();
|
|
198
208
|
this.interactionContainer = undefined;
|
|
199
209
|
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
startLink.style.
|
|
203
|
-
startLink.
|
|
204
|
-
startLink.textContent = 'Start now?';
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
this._onDidChangeHeight.fire();
|
|
210
|
+
} catch (error) {
|
|
211
|
+
startLink.style.pointerEvents = "";
|
|
212
|
+
startLink.style.opacity = "";
|
|
213
|
+
startLink.textContent = "Start now?";
|
|
208
214
|
}
|
|
209
215
|
}
|
|
210
216
|
hasSameContent(other) {
|
|
211
|
-
return other.kind ===
|
|
217
|
+
return other.kind === "mcpServersStarting";
|
|
212
218
|
}
|
|
213
219
|
addDisposable(disposable) {
|
|
214
220
|
this._register(disposable);
|
|
215
221
|
}
|
|
216
222
|
};
|
|
217
|
-
ChatMcpServersInteractionContentPart = ( __decorate([
|
|
218
|
-
( __param(2, IMcpService)),
|
|
219
|
-
( __param(3, IInstantiationService)),
|
|
220
|
-
( __param(4, IOpenerService)),
|
|
221
|
-
( __param(5, IMarkdownRendererService))
|
|
222
|
-
], ChatMcpServersInteractionContentPart));
|
|
223
|
+
ChatMcpServersInteractionContentPart = ( __decorate([( __param(2, IMcpService)), ( __param(3, IInstantiationService)), ( __param(4, IOpenerService)), ( __param(5, IMarkdownRendererService))], ChatMcpServersInteractionContentPart));
|
|
223
224
|
|
|
224
225
|
export { ChatMcpServersInteractionContentPart };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
1
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
2
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
4
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
6
5
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
7
|
-
import { IChatMultiDiffData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
6
|
+
import { IChatMultiDiffData, IChatMultiDiffDataSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
8
7
|
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
9
8
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
10
9
|
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
@@ -16,13 +15,11 @@ export declare class ChatMultiDiffContentPart extends Disposable implements ICha
|
|
|
16
15
|
private readonly themeService;
|
|
17
16
|
private readonly contextKeyService;
|
|
18
17
|
readonly domNode: HTMLElement;
|
|
19
|
-
private readonly _onDidChangeHeight;
|
|
20
|
-
readonly onDidChangeHeight: Event<void>;
|
|
21
18
|
private list;
|
|
22
19
|
private isCollapsed;
|
|
23
20
|
private readonly readOnly;
|
|
24
21
|
private readonly diffData;
|
|
25
|
-
constructor(content: IChatMultiDiffData, _element: ChatTreeItem, instantiationService: IInstantiationService, editorService: IEditorService, themeService: IThemeService, contextKeyService: IContextKeyService);
|
|
22
|
+
constructor(content: IChatMultiDiffData | IChatMultiDiffDataSerialized, _element: ChatTreeItem, instantiationService: IInstantiationService, editorService: IEditorService, themeService: IThemeService, contextKeyService: IContextKeyService);
|
|
26
23
|
private renderHeader;
|
|
27
24
|
private renderViewAllFileChangesButton;
|
|
28
25
|
private renderContributedButtons;
|