@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,66 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
5
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import { CodeBlockPart, CodeCompareBlockPart } from '../codeBlockPart.js';
|
|
7
|
+
import { ResourcePool } from './chatCollections.js';
|
|
8
|
+
|
|
9
|
+
let EditorPool = class EditorPool extends Disposable {
|
|
10
|
+
inUse() {
|
|
11
|
+
return this._pool.inUse;
|
|
12
|
+
}
|
|
13
|
+
constructor(options, delegate, overflowWidgetsDomNode, isSimpleWidget = false, instantiationService) {
|
|
14
|
+
super();
|
|
15
|
+
this.isSimpleWidget = isSimpleWidget;
|
|
16
|
+
this._pool = this._register(( new ResourcePool(() => {
|
|
17
|
+
return instantiationService.createInstance(CodeBlockPart, options, MenuId.ChatCodeBlock, delegate, overflowWidgetsDomNode, this.isSimpleWidget);
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
get() {
|
|
21
|
+
const codeBlock = this._pool.get();
|
|
22
|
+
let stale = false;
|
|
23
|
+
return {
|
|
24
|
+
object: codeBlock,
|
|
25
|
+
isStale: () => stale,
|
|
26
|
+
dispose: () => {
|
|
27
|
+
codeBlock.reset();
|
|
28
|
+
stale = true;
|
|
29
|
+
this._pool.release(codeBlock);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
EditorPool = ( __decorate([
|
|
35
|
+
( __param(4, IInstantiationService))
|
|
36
|
+
], EditorPool));
|
|
37
|
+
let DiffEditorPool = class DiffEditorPool extends Disposable {
|
|
38
|
+
inUse() {
|
|
39
|
+
return this._pool.inUse;
|
|
40
|
+
}
|
|
41
|
+
constructor(options, delegate, overflowWidgetsDomNode, isSimpleWidget = false, instantiationService) {
|
|
42
|
+
super();
|
|
43
|
+
this.isSimpleWidget = isSimpleWidget;
|
|
44
|
+
this._pool = this._register(( new ResourcePool(() => {
|
|
45
|
+
return instantiationService.createInstance(CodeCompareBlockPart, options, MenuId.ChatCompareBlock, delegate, overflowWidgetsDomNode, this.isSimpleWidget);
|
|
46
|
+
})));
|
|
47
|
+
}
|
|
48
|
+
get() {
|
|
49
|
+
const codeBlock = this._pool.get();
|
|
50
|
+
let stale = false;
|
|
51
|
+
return {
|
|
52
|
+
object: codeBlock,
|
|
53
|
+
isStale: () => stale,
|
|
54
|
+
dispose: () => {
|
|
55
|
+
codeBlock.reset();
|
|
56
|
+
stale = true;
|
|
57
|
+
this._pool.release(codeBlock);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
DiffEditorPool = ( __decorate([
|
|
63
|
+
( __param(4, IInstantiationService))
|
|
64
|
+
], DiffEditorPool));
|
|
65
|
+
|
|
66
|
+
export { DiffEditorPool, EditorPool };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
5
|
+
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
6
|
+
import { IChatElicitationRequest, IChatElicitationRequestSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
7
|
+
import { IChatAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
8
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
9
|
+
export declare class ChatElicitationContentPart extends Disposable implements IChatContentPart {
|
|
10
|
+
private readonly elicitation;
|
|
11
|
+
private readonly instantiationService;
|
|
12
|
+
private readonly chatAccessibilityService;
|
|
13
|
+
private readonly contextKeyService;
|
|
14
|
+
private readonly keybindingService;
|
|
15
|
+
readonly domNode: HTMLElement;
|
|
16
|
+
private readonly _onDidChangeHeight;
|
|
17
|
+
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
18
|
+
private readonly _confirmWidget;
|
|
19
|
+
get codeblocks(): import("@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat").IChatCodeBlockInfo[] | undefined;
|
|
20
|
+
get codeblocksPartId(): string | undefined;
|
|
21
|
+
constructor(elicitation: IChatElicitationRequest | IChatElicitationRequestSerialized, context: IChatContentPartRenderContext, instantiationService: IInstantiationService, chatAccessibilityService: IChatAccessibilityService, contextKeyService: IContextKeyService, keybindingService: IKeybindingService);
|
|
22
|
+
private getMessageToRender;
|
|
23
|
+
hasSameContent(other: IChatProgressRenderableResponseContent): boolean;
|
|
24
|
+
addDisposable(disposable: IDisposable): void;
|
|
25
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatElicitationContentPart.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
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 { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
5
|
+
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
9
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
10
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
11
|
+
import { ElicitationState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
12
|
+
import { IChatAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
13
|
+
import { AcceptElicitationRequestActionId } from '../actions/chatElicitationActions.js';
|
|
14
|
+
import { ChatConfirmationWidget } from './chatConfirmationWidget.js';
|
|
15
|
+
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
16
|
+
|
|
17
|
+
let ChatElicitationContentPart = class ChatElicitationContentPart extends Disposable {
|
|
18
|
+
get codeblocks() {
|
|
19
|
+
return this._confirmWidget.codeblocks;
|
|
20
|
+
}
|
|
21
|
+
get codeblocksPartId() {
|
|
22
|
+
return this._confirmWidget.codeblocksPartId;
|
|
23
|
+
}
|
|
24
|
+
constructor(elicitation, context, instantiationService, chatAccessibilityService, contextKeyService, keybindingService) {
|
|
25
|
+
super();
|
|
26
|
+
this.elicitation = elicitation;
|
|
27
|
+
this.instantiationService = instantiationService;
|
|
28
|
+
this.chatAccessibilityService = chatAccessibilityService;
|
|
29
|
+
this.contextKeyService = contextKeyService;
|
|
30
|
+
this.keybindingService = keybindingService;
|
|
31
|
+
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
32
|
+
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
33
|
+
const buttons = [];
|
|
34
|
+
if (elicitation.kind === 'elicitation2') {
|
|
35
|
+
const acceptKeybinding = this.keybindingService.lookupKeybinding(AcceptElicitationRequestActionId);
|
|
36
|
+
const acceptTooltip = acceptKeybinding ? `${elicitation.acceptButtonLabel} (${acceptKeybinding.getLabel()})` : elicitation.acceptButtonLabel;
|
|
37
|
+
buttons.push({
|
|
38
|
+
label: elicitation.acceptButtonLabel,
|
|
39
|
+
tooltip: acceptTooltip,
|
|
40
|
+
data: true,
|
|
41
|
+
moreActions: elicitation.moreActions?.map((action) => ({
|
|
42
|
+
label: action.label,
|
|
43
|
+
data: action,
|
|
44
|
+
run: action.run
|
|
45
|
+
}))
|
|
46
|
+
});
|
|
47
|
+
if (elicitation.rejectButtonLabel && elicitation.reject) {
|
|
48
|
+
buttons.push({ label: elicitation.rejectButtonLabel, data: false, isSecondary: true });
|
|
49
|
+
}
|
|
50
|
+
this._register(autorun(reader => {
|
|
51
|
+
if (elicitation.isHidden?.read(reader)) {
|
|
52
|
+
this.domNode.remove();
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
const hasElicitationKey = ChatContextKeys.Editing.hasElicitationRequest.bindTo(this.contextKeyService);
|
|
56
|
+
this._register(autorun(reader => {
|
|
57
|
+
hasElicitationKey.set(elicitation.state.read(reader) === ElicitationState.Pending);
|
|
58
|
+
}));
|
|
59
|
+
this._register(toDisposable(() => hasElicitationKey.reset()));
|
|
60
|
+
this.chatAccessibilityService.acceptElicitation(elicitation);
|
|
61
|
+
}
|
|
62
|
+
const confirmationWidget = this._register(this.instantiationService.createInstance(ChatConfirmationWidget, context, {
|
|
63
|
+
title: elicitation.title,
|
|
64
|
+
subtitle: elicitation.subtitle,
|
|
65
|
+
buttons,
|
|
66
|
+
message: this.getMessageToRender(elicitation),
|
|
67
|
+
toolbarData: { partType: 'elicitation', partSource: elicitation.source?.type, arg: elicitation },
|
|
68
|
+
}));
|
|
69
|
+
this._confirmWidget = confirmationWidget;
|
|
70
|
+
confirmationWidget.setShowButtons(elicitation.kind === 'elicitation2' && elicitation.state.get() === ElicitationState.Pending);
|
|
71
|
+
this._register(confirmationWidget.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
|
|
72
|
+
this._register(confirmationWidget.onDidClick(async (e) => {
|
|
73
|
+
if (elicitation.kind !== 'elicitation2') {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
let result;
|
|
77
|
+
if (typeof e.data === 'boolean' && e.data === true) {
|
|
78
|
+
result = e.data;
|
|
79
|
+
}
|
|
80
|
+
else if (e.data && typeof e.data === 'object' && 'run' in e.data && 'label' in e.data) {
|
|
81
|
+
result = e.data;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
result = undefined;
|
|
85
|
+
}
|
|
86
|
+
if (result !== undefined) {
|
|
87
|
+
await elicitation.accept(result);
|
|
88
|
+
}
|
|
89
|
+
else if (elicitation.reject) {
|
|
90
|
+
await elicitation.reject();
|
|
91
|
+
}
|
|
92
|
+
confirmationWidget.setShowButtons(false);
|
|
93
|
+
confirmationWidget.updateMessage(this.getMessageToRender(elicitation));
|
|
94
|
+
this._onDidChangeHeight.fire();
|
|
95
|
+
}));
|
|
96
|
+
this.domNode = confirmationWidget.domNode;
|
|
97
|
+
this.domNode.tabIndex = 0;
|
|
98
|
+
const messageToRender = this.getMessageToRender(elicitation);
|
|
99
|
+
this.domNode.ariaLabel = elicitation.title + ' ' + (typeof messageToRender === 'string' ? messageToRender : messageToRender.value || '');
|
|
100
|
+
}
|
|
101
|
+
getMessageToRender(elicitation) {
|
|
102
|
+
if (!elicitation.acceptedResult) {
|
|
103
|
+
return elicitation.message;
|
|
104
|
+
}
|
|
105
|
+
const messageMd = isMarkdownString(elicitation.message) ? MarkdownString.lift(elicitation.message) : ( new MarkdownString(elicitation.message));
|
|
106
|
+
messageMd.appendCodeblock('json', JSON.stringify(elicitation.acceptedResult, null, 2));
|
|
107
|
+
return messageMd;
|
|
108
|
+
}
|
|
109
|
+
hasSameContent(other) {
|
|
110
|
+
return other === this.elicitation;
|
|
111
|
+
}
|
|
112
|
+
addDisposable(disposable) {
|
|
113
|
+
this._register(disposable);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
ChatElicitationContentPart = ( __decorate([
|
|
117
|
+
( __param(2, IInstantiationService)),
|
|
118
|
+
( __param(3, IChatAccessibilityService)),
|
|
119
|
+
( __param(4, IContextKeyService)),
|
|
120
|
+
( __param(5, IKeybindingService))
|
|
121
|
+
], ChatElicitationContentPart));
|
|
122
|
+
|
|
123
|
+
export { ChatElicitationContentPart };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorConfirmationPart.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
2
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
4
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
|
+
import { ChatErrorLevel, IChatResponseErrorDetailsConfirmationButton } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
6
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
7
|
+
import { IChatErrorDetailsPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
8
|
+
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
9
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
10
|
+
export declare class ChatErrorConfirmationContentPart extends Disposable implements IChatContentPart {
|
|
11
|
+
private readonly errorDetails;
|
|
12
|
+
readonly domNode: HTMLElement;
|
|
13
|
+
private readonly _onDidChangeHeight;
|
|
14
|
+
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
15
|
+
constructor(kind: ChatErrorLevel, content: IMarkdownString, errorDetails: IChatErrorDetailsPart, confirmationButtons: IChatResponseErrorDetailsConfirmationButton[], renderer: IMarkdownRenderer, context: IChatContentPartRenderContext, instantiationService: IInstantiationService, chatWidgetService: IChatWidgetService, chatService: IChatService);
|
|
16
|
+
hasSameContent(other: IChatRendererContent): boolean;
|
|
17
|
+
addDisposable(disposable: IDisposable): void;
|
|
18
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorConfirmationPart.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { $ as $$1, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
5
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
+
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
9
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
10
|
+
import { assertIsResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
11
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
12
|
+
import { ChatErrorWidget } from './chatErrorContentPart.js';
|
|
13
|
+
|
|
14
|
+
const $ = $$1;
|
|
15
|
+
let ChatErrorConfirmationContentPart = class ChatErrorConfirmationContentPart extends Disposable {
|
|
16
|
+
constructor(kind, content, errorDetails, confirmationButtons, renderer, context, instantiationService, chatWidgetService, chatService) {
|
|
17
|
+
super();
|
|
18
|
+
this.errorDetails = errorDetails;
|
|
19
|
+
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
20
|
+
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
21
|
+
const element = context.element;
|
|
22
|
+
assertIsResponseVM(element);
|
|
23
|
+
this.domNode = $('.chat-error-confirmation');
|
|
24
|
+
this.domNode.append(this._register(( new ChatErrorWidget(kind, content, renderer))).domNode);
|
|
25
|
+
const buttonOptions = { ...defaultButtonStyles };
|
|
26
|
+
const buttonContainer = append(this.domNode, $('.chat-buttons-container'));
|
|
27
|
+
confirmationButtons.forEach(buttonData => {
|
|
28
|
+
const button = this._register(( new Button(buttonContainer, buttonOptions)));
|
|
29
|
+
button.label = buttonData.label;
|
|
30
|
+
this._register(button.onDidClick(async () => {
|
|
31
|
+
const prompt = buttonData.label;
|
|
32
|
+
const options = buttonData.isSecondary ?
|
|
33
|
+
{ rejectedConfirmationData: [buttonData.data] } :
|
|
34
|
+
{ acceptedConfirmationData: [buttonData.data] };
|
|
35
|
+
options.agentId = element.agent?.id;
|
|
36
|
+
options.slashCommand = element.slashCommand?.name;
|
|
37
|
+
options.confirmation = buttonData.label;
|
|
38
|
+
const widget = chatWidgetService.getWidgetBySessionResource(element.sessionResource);
|
|
39
|
+
options.userSelectedModelId = widget?.input.currentLanguageModel;
|
|
40
|
+
Object.assign(options, widget?.getModeRequestOptions());
|
|
41
|
+
if (await chatService.sendRequest(element.sessionResource, prompt, options)) {
|
|
42
|
+
this._onDidChangeHeight.fire();
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
hasSameContent(other) {
|
|
48
|
+
return other.kind === this.errorDetails.kind && other.isLast === this.errorDetails.isLast;
|
|
49
|
+
}
|
|
50
|
+
addDisposable(disposable) {
|
|
51
|
+
this._register(disposable);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
ChatErrorConfirmationContentPart = ( __decorate([
|
|
55
|
+
( __param(6, IInstantiationService)),
|
|
56
|
+
( __param(7, IChatWidgetService)),
|
|
57
|
+
( __param(8, IChatService))
|
|
58
|
+
], ChatErrorConfirmationContentPart));
|
|
59
|
+
|
|
60
|
+
export { ChatErrorConfirmationContentPart };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatErrorContentPart.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
2
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
4
|
+
import { ChatErrorLevel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
5
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
6
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
7
|
+
export declare class ChatErrorContentPart extends Disposable implements IChatContentPart {
|
|
8
|
+
private readonly errorDetails;
|
|
9
|
+
readonly domNode: HTMLElement;
|
|
10
|
+
constructor(kind: ChatErrorLevel, content: IMarkdownString, errorDetails: IChatRendererContent, renderer: IMarkdownRenderer);
|
|
11
|
+
hasSameContent(other: IChatRendererContent): boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class ChatErrorWidget extends Disposable {
|
|
14
|
+
readonly domNode: HTMLElement;
|
|
15
|
+
constructor(kind: ChatErrorLevel, content: IMarkdownString, renderer: IMarkdownRenderer);
|
|
16
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
import { $ as $$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { renderIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
4
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
5
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { ChatErrorLevel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
7
|
+
|
|
8
|
+
const $ = $$1;
|
|
9
|
+
class ChatErrorContentPart extends Disposable {
|
|
10
|
+
constructor(kind, content, errorDetails, renderer) {
|
|
11
|
+
super();
|
|
12
|
+
this.errorDetails = errorDetails;
|
|
13
|
+
this.domNode = this._register(( new ChatErrorWidget(kind, content, renderer))).domNode;
|
|
14
|
+
}
|
|
15
|
+
hasSameContent(other) {
|
|
16
|
+
return other.kind === this.errorDetails.kind;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
class ChatErrorWidget extends Disposable {
|
|
20
|
+
constructor(kind, content, renderer) {
|
|
21
|
+
super();
|
|
22
|
+
this.domNode = $('.chat-notification-widget');
|
|
23
|
+
this.domNode.tabIndex = 0;
|
|
24
|
+
let icon;
|
|
25
|
+
let iconClass;
|
|
26
|
+
switch (kind) {
|
|
27
|
+
case ChatErrorLevel.Warning:
|
|
28
|
+
icon = Codicon.warning;
|
|
29
|
+
iconClass = '.chat-warning-codicon';
|
|
30
|
+
break;
|
|
31
|
+
case ChatErrorLevel.Error:
|
|
32
|
+
icon = Codicon.error;
|
|
33
|
+
iconClass = '.chat-error-codicon';
|
|
34
|
+
break;
|
|
35
|
+
case ChatErrorLevel.Info:
|
|
36
|
+
icon = Codicon.info;
|
|
37
|
+
iconClass = '.chat-info-codicon';
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
this.domNode.appendChild($(iconClass, undefined, renderIcon(icon)));
|
|
41
|
+
const markdownContent = this._register(renderer.render(content));
|
|
42
|
+
this.domNode.appendChild(markdownContent.element);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { ChatErrorContentPart, ChatErrorWidget };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatExtensionsContentPart.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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 { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service";
|
|
5
|
+
import { IChatExtensionsContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
6
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
7
|
+
import { ChatTreeItem, IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
8
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
9
|
+
export declare class ChatExtensionsContentPart extends Disposable implements IChatContentPart {
|
|
10
|
+
private readonly extensionsContent;
|
|
11
|
+
readonly domNode: HTMLElement;
|
|
12
|
+
private _onDidChangeHeight;
|
|
13
|
+
readonly onDidChangeHeight: Event<void>;
|
|
14
|
+
get codeblocks(): IChatCodeBlockInfo[];
|
|
15
|
+
get codeblocksPartId(): string | undefined;
|
|
16
|
+
constructor(extensionsContent: IChatExtensionsContent, extensionsWorkbenchService: IExtensionsWorkbenchService, instantiationService: IInstantiationService);
|
|
17
|
+
hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
|
|
18
|
+
addDisposable(disposable: IDisposable): void;
|
|
19
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatExtensionsContentPart.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
+
import * as chatExtensionsContent from './media/chatExtensionsContent.css';
|
|
5
|
+
import { $, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
+
import { ExtensionsList, getExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/browser/extensionsViewer';
|
|
10
|
+
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
11
|
+
import { ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
12
|
+
import { PagedModel } from '@codingame/monaco-vscode-api/vscode/vs/base/common/paging';
|
|
13
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
14
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
15
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
16
|
+
|
|
17
|
+
registerCss(chatExtensionsContent);
|
|
18
|
+
let ChatExtensionsContentPart = class ChatExtensionsContentPart extends Disposable {
|
|
19
|
+
get codeblocks() {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
get codeblocksPartId() {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
constructor(extensionsContent, extensionsWorkbenchService, instantiationService) {
|
|
26
|
+
super();
|
|
27
|
+
this.extensionsContent = extensionsContent;
|
|
28
|
+
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
29
|
+
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
30
|
+
this.domNode = $('.chat-extensions-content-part');
|
|
31
|
+
const loadingElement = append(this.domNode, $('.loading-extensions-element'));
|
|
32
|
+
append(loadingElement, $(ThemeIcon.asCSSSelector(ThemeIcon.modify(Codicon.loading, 'spin'))), $('span.loading-message', undefined, ( localize(5056, 'Loading extensions...'))));
|
|
33
|
+
const extensionsList = append(this.domNode, $('.extensions-list'));
|
|
34
|
+
const list = this._register(instantiationService.createInstance(ExtensionsList, extensionsList, ChatViewId, { alwaysConsumeMouseWheel: false }, { onFocus: Event.None, onBlur: Event.None, filters: {} }));
|
|
35
|
+
getExtensions(extensionsContent.extensions, extensionsWorkbenchService).then(extensions => {
|
|
36
|
+
loadingElement.remove();
|
|
37
|
+
if (this._store.isDisposed) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
list.setModel(( new PagedModel(extensions)));
|
|
41
|
+
list.layout();
|
|
42
|
+
this._onDidChangeHeight.fire();
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
hasSameContent(other, followingContent, element) {
|
|
46
|
+
return other.kind === 'extensions' && other.extensions.length === this.extensionsContent.extensions.length && other.extensions.every(ext => this.extensionsContent.extensions.includes(ext));
|
|
47
|
+
}
|
|
48
|
+
addDisposable(disposable) {
|
|
49
|
+
this._register(disposable);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
ChatExtensionsContentPart = ( __decorate([
|
|
53
|
+
( __param(1, IExtensionsWorkbenchService)),
|
|
54
|
+
( __param(2, IInstantiationService))
|
|
55
|
+
], ChatExtensionsContentPart));
|
|
56
|
+
|
|
57
|
+
export { ChatExtensionsContentPart };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type MarkdownRenderOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer";
|
|
2
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
5
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
6
|
+
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
|
|
7
|
+
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
8
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
9
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
10
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
11
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
12
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
13
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
14
|
+
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
15
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
16
|
+
import { IAiEditTelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service";
|
|
17
|
+
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
18
|
+
import { IChatMarkdownContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
19
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
20
|
+
import { CodeBlockModelCollection } from "../../common/codeBlockModelCollection.js";
|
|
21
|
+
import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
22
|
+
import { ICodeBlockRenderOptions } from "../codeBlockPart.js";
|
|
23
|
+
import { EditorPool } from "./chatContentCodePools.js";
|
|
24
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
25
|
+
export interface IChatMarkdownContentPartOptions {
|
|
26
|
+
readonly codeBlockRenderOptions?: ICodeBlockRenderOptions;
|
|
27
|
+
readonly allowInlineDiffs?: boolean;
|
|
28
|
+
readonly horizontalPadding?: number;
|
|
29
|
+
readonly accessibilityOptions?: {
|
|
30
|
+
/**
|
|
31
|
+
* Message to announce to screen readers as a status update if VerboseChatProgressUpdates is enabled.
|
|
32
|
+
* Will also be used as the aria-label for the container.
|
|
33
|
+
* */
|
|
34
|
+
statusMessage?: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export declare class ChatMarkdownContentPart extends Disposable implements IChatContentPart {
|
|
38
|
+
private readonly markdown;
|
|
39
|
+
private readonly editorPool;
|
|
40
|
+
private readonly codeBlockModelCollection;
|
|
41
|
+
private readonly rendererOptions;
|
|
42
|
+
private readonly textModelService;
|
|
43
|
+
private readonly instantiationService;
|
|
44
|
+
private readonly aiEditTelemetryService;
|
|
45
|
+
private static ID_POOL;
|
|
46
|
+
readonly codeblocksPartId: string;
|
|
47
|
+
readonly domNode: HTMLElement;
|
|
48
|
+
private readonly allRefs;
|
|
49
|
+
private readonly _onDidChangeHeight;
|
|
50
|
+
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
51
|
+
private readonly _codeblocks;
|
|
52
|
+
get codeblocks(): IChatCodeBlockInfo[];
|
|
53
|
+
private readonly mathLayoutParticipants;
|
|
54
|
+
constructor(markdown: IChatMarkdownContent, context: IChatContentPartRenderContext, editorPool: EditorPool, fillInIncompleteTokens: boolean | undefined, codeBlockStartIndex: number | undefined, renderer: IMarkdownRenderer, markdownRenderOptions: MarkdownRenderOptions | undefined, currentWidth: number, codeBlockModelCollection: CodeBlockModelCollection, rendererOptions: IChatMarkdownContentPartOptions, contextKeyService: IContextKeyService, configurationService: IConfigurationService, textModelService: ITextModelService, instantiationService: IInstantiationService, aiEditTelemetryService: IAiEditTelemetryService);
|
|
55
|
+
private renderCodeBlockPill;
|
|
56
|
+
private renderCodeBlock;
|
|
57
|
+
hasSameContent(other: IChatProgressRenderableResponseContent): boolean;
|
|
58
|
+
layout(width: number): void;
|
|
59
|
+
addDisposable(disposable: IDisposable): void;
|
|
60
|
+
}
|
|
61
|
+
export declare function codeblockHasClosingBackticks(str: string): boolean;
|
|
62
|
+
export declare class CollapsedCodeBlock extends Disposable {
|
|
63
|
+
private readonly sessionResource;
|
|
64
|
+
private readonly requestId;
|
|
65
|
+
private readonly inUndoStop;
|
|
66
|
+
private readonly labelService;
|
|
67
|
+
private readonly editorService;
|
|
68
|
+
private readonly modelService;
|
|
69
|
+
private readonly languageService;
|
|
70
|
+
private readonly contextMenuService;
|
|
71
|
+
private readonly contextKeyService;
|
|
72
|
+
private readonly menuService;
|
|
73
|
+
private readonly hoverService;
|
|
74
|
+
private readonly chatService;
|
|
75
|
+
private readonly configurationService;
|
|
76
|
+
readonly element: HTMLElement;
|
|
77
|
+
private readonly pillElement;
|
|
78
|
+
private readonly statusIndicatorContainer;
|
|
79
|
+
private _uri;
|
|
80
|
+
get uri(): URI | undefined;
|
|
81
|
+
private readonly hover;
|
|
82
|
+
private tooltip;
|
|
83
|
+
private currentDiff;
|
|
84
|
+
private readonly progressStore;
|
|
85
|
+
constructor(sessionResource: URI, requestId: string, inUndoStop: string | undefined, labelService: ILabelService, editorService: IEditorService, modelService: IModelService, languageService: ILanguageService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, menuService: IMenuService, hoverService: IHoverService, chatService: IChatService, configurationService: IConfigurationService);
|
|
86
|
+
private registerListeners;
|
|
87
|
+
private showDiff;
|
|
88
|
+
/**
|
|
89
|
+
* @param uri URI of the file on-disk being changed
|
|
90
|
+
* @param isStreaming Whether the edit has completed (at the time of this being rendered)
|
|
91
|
+
*/
|
|
92
|
+
render(uri: URI, fromSubagent?: boolean): void;
|
|
93
|
+
private updateTooltip;
|
|
94
|
+
}
|