@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
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { $, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { alert } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
5
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
|
+
import { createMarkdownCommandLink, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
7
|
+
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
9
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
|
+
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
12
|
+
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
13
|
+
import { renderFileWidgets } from '../chatInlineAnchorWidget.js';
|
|
14
|
+
import { IChatMarkdownAnchorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service';
|
|
15
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
16
|
+
import { AccessibilityWorkbenchSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
17
|
+
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
18
|
+
import { HoverStyle } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hover';
|
|
19
|
+
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service';
|
|
20
|
+
|
|
21
|
+
let ChatProgressContentPart = class ChatProgressContentPart extends Disposable {
|
|
22
|
+
constructor(progress, chatContentMarkdownRenderer, context, forceShowSpinner, forceShowMessage, icon, toolInvocation, instantiationService, chatMarkdownAnchorService, configurationService) {
|
|
23
|
+
super();
|
|
24
|
+
this.chatContentMarkdownRenderer = chatContentMarkdownRenderer;
|
|
25
|
+
this.toolInvocation = toolInvocation;
|
|
26
|
+
this.instantiationService = instantiationService;
|
|
27
|
+
this.chatMarkdownAnchorService = chatMarkdownAnchorService;
|
|
28
|
+
this.configurationService = configurationService;
|
|
29
|
+
this.renderedMessage = this._register(( new MutableDisposable()));
|
|
30
|
+
const followingContent = context.content.slice(context.contentIndex + 1);
|
|
31
|
+
this.showSpinner = forceShowSpinner ?? shouldShowSpinner(followingContent, context.element);
|
|
32
|
+
this.isHidden = forceShowMessage !== true && ( followingContent.some(part => part.kind !== 'progressMessage'));
|
|
33
|
+
if (this.isHidden) {
|
|
34
|
+
this.domNode = $('');
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (this.showSpinner && !this.configurationService.getValue(AccessibilityWorkbenchSettingId.VerboseChatProgressUpdates)) {
|
|
38
|
+
alert(progress.content.value);
|
|
39
|
+
}
|
|
40
|
+
const codicon = icon ? icon : this.showSpinner ? ThemeIcon.modify(Codicon.loading, 'spin') : Codicon.check;
|
|
41
|
+
const result = this.chatContentMarkdownRenderer.render(progress.content);
|
|
42
|
+
result.element.classList.add('progress-step');
|
|
43
|
+
renderFileWidgets(result.element, this.instantiationService, this.chatMarkdownAnchorService, this._store);
|
|
44
|
+
const tooltip = this.createApprovalMessage();
|
|
45
|
+
const progressPart = this._register(instantiationService.createInstance(ChatProgressSubPart, result.element, codicon, tooltip));
|
|
46
|
+
this.domNode = progressPart.domNode;
|
|
47
|
+
this.renderedMessage.value = result;
|
|
48
|
+
}
|
|
49
|
+
updateMessage(content) {
|
|
50
|
+
if (this.isHidden) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const result = this._register(this.chatContentMarkdownRenderer.render(content));
|
|
54
|
+
result.element.classList.add('progress-step');
|
|
55
|
+
renderFileWidgets(result.element, this.instantiationService, this.chatMarkdownAnchorService, this._store);
|
|
56
|
+
if (this.renderedMessage.value) {
|
|
57
|
+
this.renderedMessage.value.element.replaceWith(result.element);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.domNode.appendChild(result.element);
|
|
61
|
+
}
|
|
62
|
+
this.renderedMessage.value = result;
|
|
63
|
+
}
|
|
64
|
+
hasSameContent(other, followingContent, element) {
|
|
65
|
+
if (( followingContent.some(part => part.kind !== 'progressMessage')) && !this.isHidden) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
const showSpinner = shouldShowSpinner(followingContent, element);
|
|
69
|
+
return other.kind === 'progressMessage' && this.showSpinner === showSpinner;
|
|
70
|
+
}
|
|
71
|
+
createApprovalMessage() {
|
|
72
|
+
if (!this.toolInvocation) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
const reason = IChatToolInvocation.executionConfirmedOrDenied(this.toolInvocation);
|
|
76
|
+
if (!reason || typeof reason === 'boolean') {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
let md;
|
|
80
|
+
switch (reason.type) {
|
|
81
|
+
case ToolConfirmKind.Setting:
|
|
82
|
+
md = ( localize(
|
|
83
|
+
5077,
|
|
84
|
+
'Auto approved by {0}',
|
|
85
|
+
createMarkdownCommandLink({ title: '`' + reason.id + '`', id: 'workbench.action.openSettings', arguments: [reason.id] }, false)
|
|
86
|
+
));
|
|
87
|
+
break;
|
|
88
|
+
case ToolConfirmKind.LmServicePerTool:
|
|
89
|
+
md = reason.scope === 'session'
|
|
90
|
+
? ( localize(5078, 'Auto approved for this session'))
|
|
91
|
+
: reason.scope === 'workspace'
|
|
92
|
+
? ( localize(5079, 'Auto approved for this workspace'))
|
|
93
|
+
: ( localize(5080, 'Auto approved for this profile'));
|
|
94
|
+
md += ' (' + createMarkdownCommandLink({ title: ( localize(5081, 'Edit')), id: 'workbench.action.chat.editToolApproval', arguments: [reason.scope] }) + ')';
|
|
95
|
+
break;
|
|
96
|
+
case ToolConfirmKind.UserAction:
|
|
97
|
+
case ToolConfirmKind.Denied:
|
|
98
|
+
case ToolConfirmKind.ConfirmationNotNeeded:
|
|
99
|
+
default:
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (!md) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
return ( new MarkdownString(md, { isTrusted: true }));
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
ChatProgressContentPart = ( __decorate([
|
|
109
|
+
( __param(7, IInstantiationService)),
|
|
110
|
+
( __param(8, IChatMarkdownAnchorService)),
|
|
111
|
+
( __param(9, IConfigurationService))
|
|
112
|
+
], ChatProgressContentPart));
|
|
113
|
+
function shouldShowSpinner(followingContent, element) {
|
|
114
|
+
return isResponseVM(element) && !element.isComplete && followingContent.length === 0;
|
|
115
|
+
}
|
|
116
|
+
let ChatProgressSubPart = class ChatProgressSubPart extends Disposable {
|
|
117
|
+
constructor(messageElement, icon, tooltip, hoverService) {
|
|
118
|
+
super();
|
|
119
|
+
this.domNode = $('.progress-container');
|
|
120
|
+
const iconElement = $('div');
|
|
121
|
+
iconElement.classList.add(...ThemeIcon.asClassNameArray(icon));
|
|
122
|
+
if (tooltip) {
|
|
123
|
+
this._register(hoverService.setupDelayedHover(iconElement, {
|
|
124
|
+
content: tooltip,
|
|
125
|
+
style: HoverStyle.Pointer,
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
append(this.domNode, iconElement);
|
|
129
|
+
messageElement.classList.add('progress-step');
|
|
130
|
+
append(this.domNode, messageElement);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
ChatProgressSubPart = ( __decorate([
|
|
134
|
+
( __param(3, IHoverService))
|
|
135
|
+
], ChatProgressSubPart));
|
|
136
|
+
let ChatWorkingProgressContentPart = class ChatWorkingProgressContentPart extends ChatProgressContentPart {
|
|
137
|
+
constructor(_workingProgress, chatContentMarkdownRenderer, context, instantiationService, chatMarkdownAnchorService, configurationService, languageModelToolsService) {
|
|
138
|
+
const progressMessage = {
|
|
139
|
+
kind: 'progressMessage',
|
|
140
|
+
content: ( new MarkdownString()).appendText(( localize(5082, "Working...")))
|
|
141
|
+
};
|
|
142
|
+
super(progressMessage, chatContentMarkdownRenderer, context, undefined, undefined, undefined, undefined, instantiationService, chatMarkdownAnchorService, configurationService);
|
|
143
|
+
this._register(languageModelToolsService.onDidPrepareToolCallBecomeUnresponsive(e => {
|
|
144
|
+
if (context.element.sessionId === e.sessionId) {
|
|
145
|
+
this.updateMessage(( new MarkdownString(( localize(5083, "Waiting for tool '{0}' to respond...", e.toolData.displayName)))));
|
|
146
|
+
}
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
hasSameContent(other, followingContent, element) {
|
|
150
|
+
return other.kind === 'working';
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
ChatWorkingProgressContentPart = ( __decorate([
|
|
154
|
+
( __param(3, IInstantiationService)),
|
|
155
|
+
( __param(4, IChatMarkdownAnchorService)),
|
|
156
|
+
( __param(5, IConfigurationService)),
|
|
157
|
+
( __param(6, ILanguageModelToolsService))
|
|
158
|
+
], ChatWorkingProgressContentPart));
|
|
159
|
+
|
|
160
|
+
export { ChatProgressContentPart, ChatProgressSubPart, ChatWorkingProgressContentPart };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IChatPullRequestContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
3
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
4
|
+
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
5
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
6
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
7
|
+
export declare class ChatPullRequestContentPart extends Disposable implements IChatContentPart {
|
|
8
|
+
private readonly pullRequestContent;
|
|
9
|
+
private readonly openerService;
|
|
10
|
+
readonly domNode: HTMLElement;
|
|
11
|
+
private _onDidChangeHeight;
|
|
12
|
+
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
13
|
+
constructor(pullRequestContent: IChatPullRequestContent, openerService: IOpenerService);
|
|
14
|
+
hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
|
|
15
|
+
addDisposable(disposable: IDisposable): void;
|
|
16
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatPullRequestContentPart.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
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 chatPullRequestContent from './media/chatPullRequestContent.css';
|
|
5
|
+
import { $, append, addDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
6
|
+
import { Emitter } 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 { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
9
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
10
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
12
|
+
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
13
|
+
|
|
14
|
+
registerCss(chatPullRequestContent);
|
|
15
|
+
let ChatPullRequestContentPart = class ChatPullRequestContentPart extends Disposable {
|
|
16
|
+
constructor(pullRequestContent, openerService) {
|
|
17
|
+
super();
|
|
18
|
+
this.pullRequestContent = pullRequestContent;
|
|
19
|
+
this.openerService = openerService;
|
|
20
|
+
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
21
|
+
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
22
|
+
this.domNode = $('.chat-pull-request-content-part');
|
|
23
|
+
const container = append(this.domNode, $('.container'));
|
|
24
|
+
const contentContainer = append(container, $('.content-container'));
|
|
25
|
+
const titleContainer = append(contentContainer, $('.title-container'));
|
|
26
|
+
const icon = append(titleContainer, $('.icon'));
|
|
27
|
+
icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.gitPullRequest));
|
|
28
|
+
const titleElement = append(titleContainer, $('.title'));
|
|
29
|
+
titleElement.textContent = `${this.pullRequestContent.title} - ${this.pullRequestContent.author}`;
|
|
30
|
+
const descriptionElement = append(contentContainer, $('.description'));
|
|
31
|
+
const descriptionWrapper = append(descriptionElement, $('.description-wrapper'));
|
|
32
|
+
const plainText = renderAsPlaintext({ value: this.pullRequestContent.description });
|
|
33
|
+
descriptionWrapper.textContent = plainText;
|
|
34
|
+
const seeMoreContainer = append(descriptionElement, $('.see-more'));
|
|
35
|
+
const seeMore = append(seeMoreContainer, $('a'));
|
|
36
|
+
seeMore.textContent = ( localize(5084, 'See more'));
|
|
37
|
+
this._register(addDisposableListener(seeMore, 'click', (e) => {
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
e.stopPropagation();
|
|
40
|
+
this.openerService.open(this.pullRequestContent.uri);
|
|
41
|
+
}));
|
|
42
|
+
seeMore.href = ( this.pullRequestContent.uri.toString());
|
|
43
|
+
}
|
|
44
|
+
hasSameContent(other, followingContent, element) {
|
|
45
|
+
return other.kind === 'pullRequest';
|
|
46
|
+
}
|
|
47
|
+
addDisposable(disposable) {
|
|
48
|
+
this._register(disposable);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
ChatPullRequestContentPart = ( __decorate([
|
|
52
|
+
( __param(1, IOpenerService))
|
|
53
|
+
], ChatPullRequestContentPart));
|
|
54
|
+
|
|
55
|
+
export { ChatPullRequestContentPart };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatQuotaExceededPart.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
3
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
4
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
5
|
+
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
6
|
+
import { IChatErrorDetailsPart, IChatRendererContent, IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
7
|
+
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
8
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
9
|
+
export declare class ChatQuotaExceededPart extends Disposable implements IChatContentPart {
|
|
10
|
+
private readonly content;
|
|
11
|
+
readonly domNode: HTMLElement;
|
|
12
|
+
private readonly _onDidChangeHeight;
|
|
13
|
+
readonly onDidChangeHeight: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
14
|
+
constructor(element: IChatResponseViewModel, content: IChatErrorDetailsPart, renderer: IMarkdownRenderer, chatWidgetService: IChatWidgetService, commandService: ICommandService, telemetryService: ITelemetryService, chatEntitlementService: IChatEntitlementService);
|
|
15
|
+
hasSameContent(other: IChatRendererContent): boolean;
|
|
16
|
+
addDisposable(disposable: IDisposable): void;
|
|
17
|
+
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatQuotaExceededPart.js
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
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 { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
|
+
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
8
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
10
|
+
import { assertType } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
11
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
13
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
14
|
+
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
15
|
+
import { asCssVariable } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
16
|
+
import { textLinkForeground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
17
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
18
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
19
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
20
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
21
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
22
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
23
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
24
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
25
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
26
|
+
import { ChatEntitlement } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService';
|
|
27
|
+
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
28
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
29
|
+
|
|
30
|
+
const $ = $$1;
|
|
31
|
+
let shouldShowRetryButton = false;
|
|
32
|
+
let shouldShowWaitWarning = false;
|
|
33
|
+
let ChatQuotaExceededPart = class ChatQuotaExceededPart extends Disposable {
|
|
34
|
+
constructor(element, content, renderer, chatWidgetService, commandService, telemetryService, chatEntitlementService) {
|
|
35
|
+
super();
|
|
36
|
+
this.content = content;
|
|
37
|
+
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
38
|
+
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
39
|
+
const errorDetails = element.errorDetails;
|
|
40
|
+
assertType(!!errorDetails, 'errorDetails');
|
|
41
|
+
this.domNode = $('.chat-quota-error-widget');
|
|
42
|
+
const icon = append(this.domNode, $('span'));
|
|
43
|
+
icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.warning));
|
|
44
|
+
const messageContainer = append(this.domNode, $('.chat-quota-error-message'));
|
|
45
|
+
const markdownContent = this._register(renderer.render(( new MarkdownString(errorDetails.message))));
|
|
46
|
+
append(messageContainer, markdownContent.element);
|
|
47
|
+
let primaryButtonLabel;
|
|
48
|
+
switch (chatEntitlementService.entitlement) {
|
|
49
|
+
case ChatEntitlement.Pro:
|
|
50
|
+
case ChatEntitlement.ProPlus:
|
|
51
|
+
primaryButtonLabel = ( localize(5085, "Manage Paid Premium Requests"));
|
|
52
|
+
break;
|
|
53
|
+
case ChatEntitlement.Free:
|
|
54
|
+
primaryButtonLabel = ( localize(5086, "Upgrade to GitHub Copilot Pro"));
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
let hasAddedWaitWarning = false;
|
|
58
|
+
const addWaitWarningIfNeeded = () => {
|
|
59
|
+
if (!shouldShowWaitWarning || hasAddedWaitWarning) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
hasAddedWaitWarning = true;
|
|
63
|
+
append(messageContainer, $('.chat-quota-wait-warning', undefined, ( localize(5087, "Changes may take a few minutes to take effect."))));
|
|
64
|
+
};
|
|
65
|
+
let hasAddedRetryButton = false;
|
|
66
|
+
const addRetryButtonIfNeeded = () => {
|
|
67
|
+
if (!shouldShowRetryButton || hasAddedRetryButton) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
hasAddedRetryButton = true;
|
|
71
|
+
const retryButton = this._register(( new Button(messageContainer, {
|
|
72
|
+
buttonBackground: undefined,
|
|
73
|
+
buttonForeground: asCssVariable(textLinkForeground)
|
|
74
|
+
})));
|
|
75
|
+
retryButton.element.classList.add('chat-quota-error-secondary-button');
|
|
76
|
+
retryButton.label = ( localize(5088, "Click to Retry"));
|
|
77
|
+
this._onDidChangeHeight.fire();
|
|
78
|
+
this._register(retryButton.onDidClick(() => {
|
|
79
|
+
const widget = chatWidgetService.getWidgetBySessionResource(element.sessionResource);
|
|
80
|
+
if (!widget) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
widget.rerunLastRequest();
|
|
84
|
+
shouldShowWaitWarning = true;
|
|
85
|
+
addWaitWarningIfNeeded();
|
|
86
|
+
}));
|
|
87
|
+
};
|
|
88
|
+
if (primaryButtonLabel) {
|
|
89
|
+
const primaryButton = this._register(( new Button(messageContainer, { ...defaultButtonStyles, supportIcons: true })));
|
|
90
|
+
primaryButton.label = primaryButtonLabel;
|
|
91
|
+
primaryButton.element.classList.add('chat-quota-error-button');
|
|
92
|
+
this._register(primaryButton.onDidClick(async () => {
|
|
93
|
+
const commandId = chatEntitlementService.entitlement === ChatEntitlement.Free ? 'workbench.action.chat.upgradePlan' : 'workbench.action.chat.manageOverages';
|
|
94
|
+
telemetryService.publicLog2('workbenchActionExecuted', { id: commandId, from: 'chat-response' });
|
|
95
|
+
await commandService.executeCommand(commandId);
|
|
96
|
+
shouldShowRetryButton = true;
|
|
97
|
+
addRetryButtonIfNeeded();
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
addRetryButtonIfNeeded();
|
|
101
|
+
addWaitWarningIfNeeded();
|
|
102
|
+
}
|
|
103
|
+
hasSameContent(other) {
|
|
104
|
+
return other.kind === this.content.kind && !!other.errorDetails.isQuotaExceeded;
|
|
105
|
+
}
|
|
106
|
+
addDisposable(disposable) {
|
|
107
|
+
this._register(disposable);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
ChatQuotaExceededPart = ( __decorate([
|
|
111
|
+
( __param(3, IChatWidgetService)),
|
|
112
|
+
( __param(4, ICommandService)),
|
|
113
|
+
( __param(5, ITelemetryService)),
|
|
114
|
+
( __param(6, IChatEntitlementService))
|
|
115
|
+
], ChatQuotaExceededPart));
|
|
116
|
+
|
|
117
|
+
export { ChatQuotaExceededPart };
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { IListOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/listWidget";
|
|
2
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
+
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
4
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
|
+
import { MenuId } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
6
|
+
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
7
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
8
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
10
|
+
import { WorkbenchList } from "@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService";
|
|
11
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
12
|
+
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
13
|
+
import { ModifiedFileEntryState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
|
|
14
|
+
import { IChatContentReference, IChatWarningMessage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
15
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
16
|
+
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
17
|
+
import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js";
|
|
18
|
+
import { IDisposableReference } from "./chatCollections.js";
|
|
19
|
+
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
20
|
+
export interface IChatReferenceListItem extends IChatContentReference {
|
|
21
|
+
title?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
state?: ModifiedFileEntryState;
|
|
24
|
+
excluded?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface IChatListDividerItem {
|
|
27
|
+
kind: "divider";
|
|
28
|
+
label: string;
|
|
29
|
+
menuId?: MenuId;
|
|
30
|
+
menuArg?: unknown;
|
|
31
|
+
scopedInstantiationService?: IInstantiationService;
|
|
32
|
+
}
|
|
33
|
+
export type IChatCollapsibleListItem = IChatReferenceListItem | IChatWarningMessage | IChatListDividerItem;
|
|
34
|
+
export declare class ChatCollapsibleListContentPart extends ChatCollapsibleContentPart {
|
|
35
|
+
private readonly data;
|
|
36
|
+
private readonly contentReferencesListPool;
|
|
37
|
+
private readonly openerService;
|
|
38
|
+
private readonly menuService;
|
|
39
|
+
private readonly instantiationService;
|
|
40
|
+
private readonly contextMenuService;
|
|
41
|
+
constructor(data: ReadonlyArray<IChatCollapsibleListItem>, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService);
|
|
42
|
+
protected initContent(): HTMLElement;
|
|
43
|
+
hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface IChatUsedReferencesListOptions {
|
|
46
|
+
expandedWhenEmptyResponse?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare class ChatUsedReferencesListContentPart extends ChatCollapsibleListContentPart {
|
|
49
|
+
private readonly options;
|
|
50
|
+
constructor(data: ReadonlyArray<IChatCollapsibleListItem>, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, options: IChatUsedReferencesListOptions, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService);
|
|
51
|
+
protected isExpanded(): boolean;
|
|
52
|
+
protected setExpanded(value: boolean): void;
|
|
53
|
+
}
|
|
54
|
+
export declare class CollapsibleListPool extends Disposable {
|
|
55
|
+
private _onDidChangeVisibility;
|
|
56
|
+
private readonly menuId;
|
|
57
|
+
private readonly listOptions;
|
|
58
|
+
private readonly instantiationService;
|
|
59
|
+
private readonly themeService;
|
|
60
|
+
private readonly labelService;
|
|
61
|
+
private _pool;
|
|
62
|
+
get inUse(): ReadonlySet<WorkbenchList<IChatCollapsibleListItem>>;
|
|
63
|
+
constructor(_onDidChangeVisibility: Event<boolean>, menuId: MenuId | undefined, listOptions: IListOptions<IChatCollapsibleListItem> | undefined, instantiationService: IInstantiationService, themeService: IThemeService, labelService: ILabelService);
|
|
64
|
+
private listFactory;
|
|
65
|
+
get(): IDisposableReference<WorkbenchList<IChatCollapsibleListItem>>;
|
|
66
|
+
}
|