@codingame/monaco-vscode-katex-common 24.1.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/empty.js +1 -0
- package/package.json +45 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +37 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +127 -0
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +27 -0
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +81 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +44 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +172 -0
- package/vscode/src/vs/platform/editor/browser/editor.d.ts +12 -0
- package/vscode/src/vs/platform/editor/browser/editor.js +51 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +295 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +650 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +364 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +207 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +216 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentModel.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentModel.js +141 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentWidgets.d.ts +169 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentWidgets.js +951 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentMarkdownRenderer.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentMarkdownRenderer.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAgentCommandContentPart.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAgentCommandContentPart.js +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAnonymousRateLimitedPart.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAnonymousRateLimitedPart.js +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatChangesSummaryPart.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatChangesSummaryPart.js +286 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollapsibleContentPart.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollapsibleContentPart.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.d.ts +116 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.js +417 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentCodePools.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentCodePools.js +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatElicitationContentPart.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatElicitationContentPart.js +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorConfirmationPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorConfirmationPart.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorContentPart.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorContentPart.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatExtensionsContentPart.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatExtensionsContentPart.js +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.d.ts +94 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +567 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMcpServersInteractionContentPart.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMcpServersInteractionContentPart.js +224 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMultiDiffContentPart.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMultiDiffContentPart.js +259 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatPullRequestContentPart.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatPullRequestContentPart.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatQuotaExceededPart.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatQuotaExceededPart.js +117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +528 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatSuggestNextWidget.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatSuggestNextWidget.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +91 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatThinkingContentPart.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatThinkingContentPart.js +429 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTodoListWidget.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTodoListWidget.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInputOutputContentPart.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInputOutputContentPart.js +164 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolOutputContentSubPart.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolOutputContentSubPart.js +224 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +173 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css +341 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatExtensionsContent.css +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatMarkdownPart.css +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatMcpServersInteractionContent.css +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatPullRequestContent.css +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatTerminalToolProgressPart.css +221 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatThinkingContent.css +162 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +94 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +96 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +147 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatResultListSubPart.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatResultListSubPart.js +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +353 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +100 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +1085 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +275 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +119 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolOutputPart.js +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +225 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatToolProgressPart.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDiffBlockPart.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDiffBlockPart.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +388 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +721 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +409 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.d.ts +334 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +2008 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPartWidgets.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPartWidgets.js +93 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.d.ts +217 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +1573 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +249 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSelectedTools.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSelectedTools.js +174 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionAction.css +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.d.ts +292 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +2014 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.d.ts +173 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +797 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext.js +345 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1069 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +139 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css +2880 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css +87 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatCodeBlockPill.css +139 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatInlineAnchorWidget.css +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewWelcome.css +209 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modePickerActionItem.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modePickerActionItem.js +135 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modelPickerActionItem.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/modelPicker/modelPickerActionItem.js +147 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +28 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +176 -0
- package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +207 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +373 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +171 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +1442 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +199 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +482 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +37 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +95 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +497 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +76 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +464 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +124 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +562 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +279 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +411 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +66 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +154 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +201 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +372 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +594 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +55 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +273 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1746 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +269 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +258 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +806 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +116 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +40 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +295 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +241 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +146 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +90 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +42 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +77 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +469 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +823 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +180 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +567 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +189 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +439 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +263 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +39 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +89 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +92 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +108 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +145 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { ContextKeyExpression } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
4
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
5
|
+
import { BrandedService, IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
|
+
/**
|
|
7
|
+
* A widget that can be rendered on top of the chat input part.
|
|
8
|
+
*/
|
|
9
|
+
export interface IChatInputPartWidget extends IDisposable {
|
|
10
|
+
/**
|
|
11
|
+
* The DOM node of the widget.
|
|
12
|
+
*/
|
|
13
|
+
readonly domNode: HTMLElement;
|
|
14
|
+
/**
|
|
15
|
+
* Fired when the height of the widget changes.
|
|
16
|
+
*/
|
|
17
|
+
readonly onDidChangeHeight: Event<void>;
|
|
18
|
+
/**
|
|
19
|
+
* The current height of the widget in pixels.
|
|
20
|
+
*/
|
|
21
|
+
readonly height: number;
|
|
22
|
+
}
|
|
23
|
+
export interface IChatInputPartWidgetDescriptor<Services extends BrandedService[] = BrandedService[]> {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly when?: ContextKeyExpression;
|
|
26
|
+
readonly ctor: new (...services: Services) => IChatInputPartWidget;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Registry for chat input part widgets.
|
|
30
|
+
* Widgets register themselves and are instantiated by the controller based on context key conditions.
|
|
31
|
+
*/
|
|
32
|
+
export declare const ChatInputPartWidgetsRegistry: {
|
|
33
|
+
readonly widgets: IChatInputPartWidgetDescriptor[];
|
|
34
|
+
register<Services extends BrandedService[]>(id: string, ctor: new (...services: Services) => IChatInputPartWidget, when?: ContextKeyExpression): void;
|
|
35
|
+
getWidgets(): readonly IChatInputPartWidgetDescriptor[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Controller that manages the rendering of widgets in the chat input part.
|
|
39
|
+
* Widgets are shown/hidden based on context key conditions.
|
|
40
|
+
*/
|
|
41
|
+
export declare class ChatInputPartWidgetController extends Disposable {
|
|
42
|
+
private readonly container;
|
|
43
|
+
private readonly contextKeyService;
|
|
44
|
+
private readonly instantiationService;
|
|
45
|
+
private readonly _onDidChangeHeight;
|
|
46
|
+
readonly onDidChangeHeight: Event<void>;
|
|
47
|
+
private readonly renderedWidgets;
|
|
48
|
+
constructor(container: HTMLElement, contextKeyService: IContextKeyService, instantiationService: IInstantiationService);
|
|
49
|
+
private update;
|
|
50
|
+
get height(): number;
|
|
51
|
+
dispose(): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
6
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
+
|
|
8
|
+
const ChatInputPartWidgetsRegistry = new (class {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.widgets = [];
|
|
11
|
+
}
|
|
12
|
+
register(id, ctor, when) {
|
|
13
|
+
this.widgets.push({ id, ctor: ctor, when });
|
|
14
|
+
}
|
|
15
|
+
getWidgets() {
|
|
16
|
+
return this.widgets;
|
|
17
|
+
}
|
|
18
|
+
})();
|
|
19
|
+
let ChatInputPartWidgetController = class ChatInputPartWidgetController extends Disposable {
|
|
20
|
+
constructor(container, contextKeyService, instantiationService) {
|
|
21
|
+
super();
|
|
22
|
+
this.container = container;
|
|
23
|
+
this.contextKeyService = contextKeyService;
|
|
24
|
+
this.instantiationService = instantiationService;
|
|
25
|
+
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
26
|
+
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
27
|
+
this.renderedWidgets = ( new Map());
|
|
28
|
+
this.update();
|
|
29
|
+
this._register(this.contextKeyService.onDidChangeContext(e => {
|
|
30
|
+
const relevantKeys = ( new Set());
|
|
31
|
+
for (const descriptor of ChatInputPartWidgetsRegistry.getWidgets()) {
|
|
32
|
+
if (descriptor.when) {
|
|
33
|
+
for (const key of ( descriptor.when.keys())) {
|
|
34
|
+
relevantKeys.add(key);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (e.affectsSome(relevantKeys)) {
|
|
39
|
+
this.update();
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
update() {
|
|
44
|
+
const visibleIds = ( new Set());
|
|
45
|
+
for (const descriptor of ChatInputPartWidgetsRegistry.getWidgets()) {
|
|
46
|
+
if (this.contextKeyService.contextMatchesRules(descriptor.when)) {
|
|
47
|
+
visibleIds.add(descriptor.id);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
for (const [id, rendered] of this.renderedWidgets) {
|
|
51
|
+
if (!( visibleIds.has(id))) {
|
|
52
|
+
rendered.widget.domNode.remove();
|
|
53
|
+
rendered.disposables.dispose();
|
|
54
|
+
this.renderedWidgets.delete(id);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
for (const descriptor of ChatInputPartWidgetsRegistry.getWidgets()) {
|
|
58
|
+
if (!( visibleIds.has(descriptor.id))) {
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (!( this.renderedWidgets.has(descriptor.id))) {
|
|
62
|
+
const disposables = ( new DisposableStore());
|
|
63
|
+
const widget = this.instantiationService.createInstance(descriptor.ctor);
|
|
64
|
+
disposables.add(widget);
|
|
65
|
+
disposables.add(widget.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
|
|
66
|
+
this.renderedWidgets.set(descriptor.id, { descriptor, widget, disposables });
|
|
67
|
+
this.container.appendChild(widget.domNode);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
this._onDidChangeHeight.fire();
|
|
71
|
+
}
|
|
72
|
+
get height() {
|
|
73
|
+
let total = 0;
|
|
74
|
+
for (const rendered of ( this.renderedWidgets.values())) {
|
|
75
|
+
total += rendered.widget.height;
|
|
76
|
+
}
|
|
77
|
+
return total;
|
|
78
|
+
}
|
|
79
|
+
dispose() {
|
|
80
|
+
for (const rendered of ( this.renderedWidgets.values())) {
|
|
81
|
+
rendered.widget.domNode.remove();
|
|
82
|
+
rendered.disposables.dispose();
|
|
83
|
+
}
|
|
84
|
+
this.renderedWidgets.clear();
|
|
85
|
+
super.dispose();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
ChatInputPartWidgetController = ( __decorate([
|
|
89
|
+
( __param(1, IContextKeyService)),
|
|
90
|
+
( __param(2, IInstantiationService))
|
|
91
|
+
], ChatInputPartWidgetController));
|
|
92
|
+
|
|
93
|
+
export { ChatInputPartWidgetController, ChatInputPartWidgetsRegistry };
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { DropdownMenuActionViewItem, IDropdownMenuActionViewItemOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/dropdown/dropdownActionViewItem";
|
|
2
|
+
import { IListElementRenderDetails, IListVirtualDelegate } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
|
|
3
|
+
import { ITreeNode, ITreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
|
|
4
|
+
import { IAction } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions";
|
|
5
|
+
import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
6
|
+
import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
|
|
7
|
+
import { Disposable, DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
8
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
9
|
+
import { MenuWorkbenchToolBar } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar";
|
|
10
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
11
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
12
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
13
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
14
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
15
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
16
|
+
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
17
|
+
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
18
|
+
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
19
|
+
import { IWorkbenchIssueService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service";
|
|
20
|
+
import { IChatFollowup, IChatThinkingPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
21
|
+
import { IChatResponseViewModel, IChatViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
22
|
+
import { CodeBlockModelCollection } from "../common/codeBlockModelCollection.js";
|
|
23
|
+
import { ChatModeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
|
|
24
|
+
import { ChatTreeItem, IChatCodeBlockInfo, IChatFileTreeInfo, IChatListItemRendererOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
25
|
+
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
26
|
+
import { ChatAgentHover } from "./chatAgentHover.js";
|
|
27
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
28
|
+
import { ChatEditorOptions } from "./chatOptions.js";
|
|
29
|
+
import { CodeBlockPart } from "./codeBlockPart.js";
|
|
30
|
+
export interface IChatListItemTemplate {
|
|
31
|
+
currentElement?: ChatTreeItem;
|
|
32
|
+
/**
|
|
33
|
+
* The parts that are currently rendered in the template. Note that these are purposely not added to elementDisposables-
|
|
34
|
+
* they are disposed in a separate cycle after diffing with the next content to render.
|
|
35
|
+
*/
|
|
36
|
+
renderedParts?: IChatContentPart[];
|
|
37
|
+
readonly rowContainer: HTMLElement;
|
|
38
|
+
readonly titleToolbar?: MenuWorkbenchToolBar;
|
|
39
|
+
readonly header?: HTMLElement;
|
|
40
|
+
readonly footerToolbar: MenuWorkbenchToolBar;
|
|
41
|
+
readonly footerDetailsContainer: HTMLElement;
|
|
42
|
+
readonly avatarContainer: HTMLElement;
|
|
43
|
+
readonly username: HTMLElement;
|
|
44
|
+
readonly detail: HTMLElement;
|
|
45
|
+
readonly value: HTMLElement;
|
|
46
|
+
readonly contextKeyService: IContextKeyService;
|
|
47
|
+
readonly instantiationService: IInstantiationService;
|
|
48
|
+
readonly templateDisposables: IDisposable;
|
|
49
|
+
readonly elementDisposables: DisposableStore;
|
|
50
|
+
readonly agentHover: ChatAgentHover;
|
|
51
|
+
readonly requestHover: HTMLElement;
|
|
52
|
+
readonly disabledOverlay: HTMLElement;
|
|
53
|
+
readonly checkpointToolbar: MenuWorkbenchToolBar;
|
|
54
|
+
readonly checkpointRestoreToolbar: MenuWorkbenchToolBar;
|
|
55
|
+
readonly checkpointContainer: HTMLElement;
|
|
56
|
+
readonly checkpointRestoreContainer: HTMLElement;
|
|
57
|
+
}
|
|
58
|
+
interface IItemHeightChangeParams {
|
|
59
|
+
element: ChatTreeItem;
|
|
60
|
+
height: number;
|
|
61
|
+
}
|
|
62
|
+
export interface IChatRendererDelegate {
|
|
63
|
+
container: HTMLElement;
|
|
64
|
+
getListLength(): number;
|
|
65
|
+
currentChatMode(): ChatModeKind;
|
|
66
|
+
readonly onDidScroll?: Event<void>;
|
|
67
|
+
}
|
|
68
|
+
export declare class ChatListItemRenderer extends Disposable implements ITreeRenderer<ChatTreeItem, FuzzyScore, IChatListItemTemplate> {
|
|
69
|
+
private rendererOptions;
|
|
70
|
+
private readonly delegate;
|
|
71
|
+
private readonly codeBlockModelCollection;
|
|
72
|
+
private viewModel;
|
|
73
|
+
private readonly instantiationService;
|
|
74
|
+
private readonly configService;
|
|
75
|
+
private readonly logService;
|
|
76
|
+
private readonly contextKeyService;
|
|
77
|
+
private readonly themeService;
|
|
78
|
+
private readonly commandService;
|
|
79
|
+
private readonly hoverService;
|
|
80
|
+
private readonly chatWidgetService;
|
|
81
|
+
private readonly chatEntitlementService;
|
|
82
|
+
static readonly ID = "item";
|
|
83
|
+
private readonly codeBlocksByResponseId;
|
|
84
|
+
private readonly codeBlocksByEditorUri;
|
|
85
|
+
private readonly fileTreesByResponseId;
|
|
86
|
+
private readonly focusedFileTreesByResponseId;
|
|
87
|
+
private readonly templateDataByRequestId;
|
|
88
|
+
private readonly chatContentMarkdownRenderer;
|
|
89
|
+
private readonly markdownDecorationsRenderer;
|
|
90
|
+
protected readonly _onDidClickFollowup: Emitter<IChatFollowup>;
|
|
91
|
+
readonly onDidClickFollowup: Event<IChatFollowup>;
|
|
92
|
+
private readonly _onDidClickRerunWithAgentOrCommandDetection;
|
|
93
|
+
readonly onDidClickRerunWithAgentOrCommandDetection: Event<{
|
|
94
|
+
readonly sessionResource: URI;
|
|
95
|
+
readonly requestId: string;
|
|
96
|
+
}>;
|
|
97
|
+
private readonly _onDidClickRequest;
|
|
98
|
+
readonly onDidClickRequest: Event<IChatListItemTemplate>;
|
|
99
|
+
private readonly _onDidRerender;
|
|
100
|
+
readonly onDidRerender: Event<IChatListItemTemplate>;
|
|
101
|
+
private readonly _onDidDispose;
|
|
102
|
+
readonly onDidDispose: Event<IChatListItemTemplate>;
|
|
103
|
+
private readonly _onDidFocusOutside;
|
|
104
|
+
readonly onDidFocusOutside: Event<void>;
|
|
105
|
+
protected readonly _onDidChangeItemHeight: Emitter<IItemHeightChangeParams>;
|
|
106
|
+
readonly onDidChangeItemHeight: Event<IItemHeightChangeParams>;
|
|
107
|
+
private readonly _editorPool;
|
|
108
|
+
private readonly _toolEditorPool;
|
|
109
|
+
private readonly _diffEditorPool;
|
|
110
|
+
private readonly _treePool;
|
|
111
|
+
private readonly _contentReferencesListPool;
|
|
112
|
+
private _currentLayoutWidth;
|
|
113
|
+
private _isVisible;
|
|
114
|
+
private _onDidChangeVisibility;
|
|
115
|
+
/**
|
|
116
|
+
* Tool invocations get their own so that the ChatViewModel doesn't overwrite it.
|
|
117
|
+
* TODO@roblourens shouldn't use the CodeBlockModelCollection at all
|
|
118
|
+
*/
|
|
119
|
+
private readonly _toolInvocationCodeBlockCollection;
|
|
120
|
+
/**
|
|
121
|
+
* Prevents re-announcement of already rendered chat progress
|
|
122
|
+
* by screen readers
|
|
123
|
+
*/
|
|
124
|
+
private readonly _announcedToolProgressKeys;
|
|
125
|
+
constructor(editorOptions: ChatEditorOptions, rendererOptions: IChatListItemRendererOptions, delegate: IChatRendererDelegate, codeBlockModelCollection: CodeBlockModelCollection, overflowWidgetsDomNode: HTMLElement | undefined, viewModel: IChatViewModel | undefined, instantiationService: IInstantiationService, configService: IConfigurationService, logService: ILogService, contextKeyService: IContextKeyService, themeService: IThemeService, commandService: ICommandService, hoverService: IHoverService, chatWidgetService: IChatWidgetService, chatEntitlementService: IChatEntitlementService);
|
|
126
|
+
updateOptions(options: IChatListItemRendererOptions): void;
|
|
127
|
+
get templateId(): string;
|
|
128
|
+
editorsInUse(): Iterable<CodeBlockPart>;
|
|
129
|
+
private traceLayout;
|
|
130
|
+
/**
|
|
131
|
+
* Compute a rate to render at in words/s.
|
|
132
|
+
*/
|
|
133
|
+
private getProgressiveRenderRate;
|
|
134
|
+
getCodeBlockInfosForResponse(response: IChatResponseViewModel): IChatCodeBlockInfo[];
|
|
135
|
+
updateViewModel(viewModel: IChatViewModel | undefined): void;
|
|
136
|
+
getCodeBlockInfoForEditor(uri: URI): IChatCodeBlockInfo | undefined;
|
|
137
|
+
getFileTreeInfosForResponse(response: IChatResponseViewModel): IChatFileTreeInfo[];
|
|
138
|
+
getLastFocusedFileTreeForResponse(response: IChatResponseViewModel): IChatFileTreeInfo | undefined;
|
|
139
|
+
getTemplateDataForRequestId(requestId?: string): IChatListItemTemplate | undefined;
|
|
140
|
+
setVisible(visible: boolean): void;
|
|
141
|
+
layout(width: number): void;
|
|
142
|
+
renderTemplate(container: HTMLElement): IChatListItemTemplate;
|
|
143
|
+
renderElement(node: ITreeNode<ChatTreeItem, FuzzyScore>, index: number, templateData: IChatListItemTemplate): void;
|
|
144
|
+
private clearRenderedParts;
|
|
145
|
+
renderChatTreeItem(element: ChatTreeItem, index: number, templateData: IChatListItemTemplate): void;
|
|
146
|
+
private renderDetail;
|
|
147
|
+
private renderConfirmationAction;
|
|
148
|
+
private renderAvatar;
|
|
149
|
+
private getAgentIcon;
|
|
150
|
+
private renderChatResponseBasic;
|
|
151
|
+
private shouldShowWorkingProgress;
|
|
152
|
+
private getChatFileChangesSummaryPart;
|
|
153
|
+
private renderChatRequest;
|
|
154
|
+
updateItemHeightOnRender(element: ChatTreeItem, templateData: IChatListItemTemplate): void;
|
|
155
|
+
private updateItemHeight;
|
|
156
|
+
/**
|
|
157
|
+
* @returns true if progressive rendering should be considered complete- the element's data is fully rendered or the view is not visible
|
|
158
|
+
*/
|
|
159
|
+
private doNextProgressiveRender;
|
|
160
|
+
private renderChatContentDiff;
|
|
161
|
+
/**
|
|
162
|
+
* Returns all content parts that should be rendered, and trimmed markdown content. We will diff this with the current rendered set.
|
|
163
|
+
*/
|
|
164
|
+
private getNextProgressiveRenderContent;
|
|
165
|
+
private shouldShowFileChangesSummary;
|
|
166
|
+
private getDataForProgressiveRender;
|
|
167
|
+
private diff;
|
|
168
|
+
private shouldPinPart;
|
|
169
|
+
private isCreateToolInvocationContent;
|
|
170
|
+
private getLastThinkingPart;
|
|
171
|
+
private finalizeCurrentThinkingPart;
|
|
172
|
+
private renderChatContentPart;
|
|
173
|
+
dispose(): void;
|
|
174
|
+
private renderChatErrorDetails;
|
|
175
|
+
private renderUndoStop;
|
|
176
|
+
private renderNoContent;
|
|
177
|
+
private renderTreeData;
|
|
178
|
+
private renderMultiDiffData;
|
|
179
|
+
private renderContentReferencesListData;
|
|
180
|
+
private renderCodeCitations;
|
|
181
|
+
private handleRenderedCodeblocks;
|
|
182
|
+
private renderToolInvocation;
|
|
183
|
+
private renderExtensionsContent;
|
|
184
|
+
private renderPullRequestContent;
|
|
185
|
+
private renderProgressTask;
|
|
186
|
+
private renderConfirmation;
|
|
187
|
+
private renderElicitation;
|
|
188
|
+
private renderChangesSummary;
|
|
189
|
+
private renderAttachments;
|
|
190
|
+
private renderTextEdit;
|
|
191
|
+
private renderMarkdown;
|
|
192
|
+
renderThinkingPart(content: IChatThinkingPart, context: IChatContentPartRenderContext, templateData: IChatListItemTemplate): IChatContentPart;
|
|
193
|
+
disposeElement(node: ITreeNode<ChatTreeItem, FuzzyScore>, index: number, templateData: IChatListItemTemplate, details?: IListElementRenderDetails): void;
|
|
194
|
+
private renderMcpServersInteractionRequired;
|
|
195
|
+
disposeTemplate(templateData: IChatListItemTemplate): void;
|
|
196
|
+
private hoverVisible;
|
|
197
|
+
private hoverHidden;
|
|
198
|
+
}
|
|
199
|
+
export declare class ChatListDelegate implements IListVirtualDelegate<ChatTreeItem> {
|
|
200
|
+
private readonly defaultElementHeight;
|
|
201
|
+
private readonly logService;
|
|
202
|
+
constructor(defaultElementHeight: number, logService: ILogService);
|
|
203
|
+
private _traceLayout;
|
|
204
|
+
getHeight(element: ChatTreeItem): number;
|
|
205
|
+
getTemplateId(element: ChatTreeItem): string;
|
|
206
|
+
hasDynamicHeight(element: ChatTreeItem): boolean;
|
|
207
|
+
}
|
|
208
|
+
export declare class ChatVoteDownButton extends DropdownMenuActionViewItem {
|
|
209
|
+
private readonly commandService;
|
|
210
|
+
private readonly issueService;
|
|
211
|
+
private readonly logService;
|
|
212
|
+
constructor(action: IAction, options: IDropdownMenuActionViewItemOptions | undefined, commandService: ICommandService, issueService: IWorkbenchIssueService, logService: ILogService, contextMenuService: IContextMenuService);
|
|
213
|
+
getActions(): readonly IAction[];
|
|
214
|
+
render(container: HTMLElement): void;
|
|
215
|
+
private getVoteDownDetailAction;
|
|
216
|
+
}
|
|
217
|
+
export {};
|