@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,295 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
4
|
+
import { h } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
|
+
import { Disposable, markAsSingleton } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
7
|
+
import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
8
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
9
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
10
|
+
import { isITextModel } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
|
|
11
|
+
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
|
+
import { ActionWidgetDropdownActionViewItem } from '../../../../../platform/actions/browser/actionWidgetDropdownActionViewItem.js';
|
|
13
|
+
import { IActionViewItemService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/actionViewItemService.service';
|
|
14
|
+
import { Action2, MenuId, MenuItemAction } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
15
|
+
import { IActionWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actionWidget/browser/actionWidget.service';
|
|
16
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
17
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
19
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
|
+
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
21
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
22
|
+
import { ResourceContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
23
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
24
|
+
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
25
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
26
|
+
import { chatEditingWidgetFileStateContextKey, ModifiedFileEntryState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService';
|
|
27
|
+
import { ChatRequestParser } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatRequestParser';
|
|
28
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
29
|
+
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
30
|
+
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
31
|
+
import { PROMPT_LANGUAGE_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
32
|
+
import { AgentSessionProviders, getAgentSessionProviderName, getAgentSessionProviderIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
33
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
34
|
+
import { ctxHasEditorModification } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys';
|
|
35
|
+
import { CHAT_SETUP_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
36
|
+
import { toPromptFileVariableEntry, PromptFileVariableKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries';
|
|
37
|
+
import { NEW_CHAT_SESSION_ACTION_ID } from '../chatSessions/common.js';
|
|
38
|
+
|
|
39
|
+
var ChatContinueInSessionActionItem_1;
|
|
40
|
+
var ActionLocation;
|
|
41
|
+
(function (ActionLocation) {
|
|
42
|
+
ActionLocation["ChatWidget"] = "chatWidget";
|
|
43
|
+
ActionLocation["Editor"] = "editor";
|
|
44
|
+
})(ActionLocation || (ActionLocation = {}));
|
|
45
|
+
class ContinueChatInSessionAction extends Action2 {
|
|
46
|
+
static { this.ID = 'workbench.action.chat.continueChatInSession'; }
|
|
47
|
+
constructor() {
|
|
48
|
+
super({
|
|
49
|
+
id: ContinueChatInSessionAction.ID,
|
|
50
|
+
title: ( localize2(4698, "Continue Chat in...")),
|
|
51
|
+
tooltip: ( localize(4698, "Continue Chat in...")),
|
|
52
|
+
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.requestInProgress.negate()), ( ChatContextKeys.remoteJobCreating.negate()))),
|
|
53
|
+
menu: [{
|
|
54
|
+
id: MenuId.ChatExecute,
|
|
55
|
+
group: 'navigation',
|
|
56
|
+
order: 3.4,
|
|
57
|
+
when: ( ChatContextKeys.lockedToCodingAgent.negate()),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: MenuId.EditorContent,
|
|
61
|
+
group: 'continueIn',
|
|
62
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals(ResourceContextKey.Scheme.key, Schemas.untitled)), ( ContextKeyExpr.equals(ResourceContextKey.LangId.key, PROMPT_LANGUAGE_ID)), ( ContextKeyExpr.notEquals(chatEditingWidgetFileStateContextKey.key, ModifiedFileEntryState.Modified)), ( ctxHasEditorModification.negate()))),
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
async run() {
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
let ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = class ChatContinueInSessionActionItem extends ActionWidgetDropdownActionViewItem {
|
|
71
|
+
constructor(action, location, actionWidgetService, contextKeyService, keybindingService, chatSessionsService, instantiationService, openerService) {
|
|
72
|
+
super(action, {
|
|
73
|
+
actionProvider: ChatContinueInSessionActionItem_1.actionProvider(chatSessionsService, instantiationService, location),
|
|
74
|
+
actionBarActions: ChatContinueInSessionActionItem_1.getActionBarActions(openerService)
|
|
75
|
+
}, actionWidgetService, keybindingService, contextKeyService);
|
|
76
|
+
this.location = location;
|
|
77
|
+
this.contextKeyService = contextKeyService;
|
|
78
|
+
}
|
|
79
|
+
static getActionBarActions(openerService) {
|
|
80
|
+
const learnMoreUrl = 'https://aka.ms/vscode-continue-chat-in';
|
|
81
|
+
return [{
|
|
82
|
+
id: 'workbench.action.chat.continueChatInSession.learnMore',
|
|
83
|
+
label: ( localize(4699, "Learn More")),
|
|
84
|
+
tooltip: ( localize(4699, "Learn More")),
|
|
85
|
+
class: undefined,
|
|
86
|
+
enabled: true,
|
|
87
|
+
run: async () => {
|
|
88
|
+
await openerService.open(( URI.parse(learnMoreUrl)));
|
|
89
|
+
}
|
|
90
|
+
}];
|
|
91
|
+
}
|
|
92
|
+
static actionProvider(chatSessionsService, instantiationService, location) {
|
|
93
|
+
return {
|
|
94
|
+
getActions: () => {
|
|
95
|
+
const actions = [];
|
|
96
|
+
const contributions = chatSessionsService.getAllChatSessionContributions();
|
|
97
|
+
const backgroundContrib = contributions.find(contrib => contrib.type === AgentSessionProviders.Background);
|
|
98
|
+
if (backgroundContrib && backgroundContrib.canDelegate !== false) {
|
|
99
|
+
actions.push(this.toAction(AgentSessionProviders.Background, backgroundContrib, instantiationService, location));
|
|
100
|
+
}
|
|
101
|
+
const cloudContrib = contributions.find(contrib => contrib.type === AgentSessionProviders.Cloud);
|
|
102
|
+
if (cloudContrib && cloudContrib.canDelegate !== false) {
|
|
103
|
+
actions.push(this.toAction(AgentSessionProviders.Cloud, cloudContrib, instantiationService, location));
|
|
104
|
+
}
|
|
105
|
+
if (actions.length === 0) {
|
|
106
|
+
actions.push(this.toSetupAction(AgentSessionProviders.Background, instantiationService));
|
|
107
|
+
actions.push(this.toSetupAction(AgentSessionProviders.Cloud, instantiationService));
|
|
108
|
+
}
|
|
109
|
+
return actions;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
static toAction(provider, contrib, instantiationService, location) {
|
|
114
|
+
return {
|
|
115
|
+
id: contrib.type,
|
|
116
|
+
enabled: true,
|
|
117
|
+
icon: getAgentSessionProviderIcon(provider),
|
|
118
|
+
class: undefined,
|
|
119
|
+
description: `@${contrib.name}`,
|
|
120
|
+
label: getAgentSessionProviderName(provider),
|
|
121
|
+
tooltip: ( localize(4700, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
122
|
+
category: { label: ( localize(4701, "Continue In")), order: 0, showHeader: true },
|
|
123
|
+
run: () => instantiationService.invokeFunction(accessor => {
|
|
124
|
+
if (location === ActionLocation.Editor) {
|
|
125
|
+
return ( new CreateRemoteAgentJobFromEditorAction()).run(accessor, contrib);
|
|
126
|
+
}
|
|
127
|
+
return ( new CreateRemoteAgentJobAction()).run(accessor, contrib);
|
|
128
|
+
})
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static toSetupAction(provider, instantiationService) {
|
|
132
|
+
return {
|
|
133
|
+
id: provider,
|
|
134
|
+
enabled: true,
|
|
135
|
+
icon: getAgentSessionProviderIcon(provider),
|
|
136
|
+
class: undefined,
|
|
137
|
+
label: getAgentSessionProviderName(provider),
|
|
138
|
+
tooltip: ( localize(4700, "Continue in {0}", getAgentSessionProviderName(provider))),
|
|
139
|
+
category: { label: ( localize(4701, "Continue In")), order: 0, showHeader: true },
|
|
140
|
+
run: () => instantiationService.invokeFunction(accessor => {
|
|
141
|
+
const commandService = accessor.get(ICommandService);
|
|
142
|
+
return commandService.executeCommand(CHAT_SETUP_ACTION_ID);
|
|
143
|
+
})
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
renderLabel(element) {
|
|
147
|
+
if (this.location === ActionLocation.Editor) {
|
|
148
|
+
const view = h('span.action-widget-delegate-label', [
|
|
149
|
+
h('span', { className: ThemeIcon.asClassName(Codicon.forward) }),
|
|
150
|
+
h('span', [( localize(4702, "Continue in..."))])
|
|
151
|
+
]);
|
|
152
|
+
element.appendChild(view.root);
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
const icon = this.contextKeyService.contextMatchesRules(ChatContextKeys.remoteJobCreating) ? Codicon.sync : Codicon.forward;
|
|
157
|
+
element.classList.add(...ThemeIcon.asClassNameArray(icon));
|
|
158
|
+
return super.renderLabel(element);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
ChatContinueInSessionActionItem = ChatContinueInSessionActionItem_1 = ( __decorate([
|
|
163
|
+
( __param(2, IActionWidgetService)),
|
|
164
|
+
( __param(3, IContextKeyService)),
|
|
165
|
+
( __param(4, IKeybindingService)),
|
|
166
|
+
( __param(5, IChatSessionsService)),
|
|
167
|
+
( __param(6, IInstantiationService)),
|
|
168
|
+
( __param(7, IOpenerService))
|
|
169
|
+
], ChatContinueInSessionActionItem));
|
|
170
|
+
class CreateRemoteAgentJobAction {
|
|
171
|
+
constructor() { }
|
|
172
|
+
openUntitledEditor(commandService, continuationTarget) {
|
|
173
|
+
commandService.executeCommand(`${NEW_CHAT_SESSION_ACTION_ID}.${continuationTarget.type}`);
|
|
174
|
+
}
|
|
175
|
+
async run(accessor, continuationTarget) {
|
|
176
|
+
const contextKeyService = accessor.get(IContextKeyService);
|
|
177
|
+
const commandService = accessor.get(ICommandService);
|
|
178
|
+
const widgetService = accessor.get(IChatWidgetService);
|
|
179
|
+
const chatAgentService = accessor.get(IChatAgentService);
|
|
180
|
+
const chatService = accessor.get(IChatService);
|
|
181
|
+
const editorService = accessor.get(IEditorService);
|
|
182
|
+
const remoteJobCreatingKey = ChatContextKeys.remoteJobCreating.bindTo(contextKeyService);
|
|
183
|
+
try {
|
|
184
|
+
remoteJobCreatingKey.set(true);
|
|
185
|
+
const widget = widgetService.lastFocusedWidget;
|
|
186
|
+
if (!widget || !widget.viewModel) {
|
|
187
|
+
return this.openUntitledEditor(commandService, continuationTarget);
|
|
188
|
+
}
|
|
189
|
+
const chatModel = widget.viewModel.model;
|
|
190
|
+
if (!chatModel) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const sessionResource = widget.viewModel.sessionResource;
|
|
194
|
+
const chatRequests = chatModel.getRequests();
|
|
195
|
+
let userPrompt = widget.getInput();
|
|
196
|
+
if (!userPrompt) {
|
|
197
|
+
if (!chatRequests.length) {
|
|
198
|
+
return this.openUntitledEditor(commandService, continuationTarget);
|
|
199
|
+
}
|
|
200
|
+
userPrompt = 'implement this.';
|
|
201
|
+
}
|
|
202
|
+
const attachedContext = widget.input.getAttachedAndImplicitContext(sessionResource);
|
|
203
|
+
widget.input.acceptInput(true);
|
|
204
|
+
if (widget.location === ChatAgentLocation.EditorInline) {
|
|
205
|
+
const activeEditor = editorService.activeTextEditorControl;
|
|
206
|
+
if (activeEditor) {
|
|
207
|
+
const model = activeEditor.getModel();
|
|
208
|
+
let activeEditorUri = undefined;
|
|
209
|
+
if (model && isITextModel(model)) {
|
|
210
|
+
activeEditorUri = model.uri;
|
|
211
|
+
}
|
|
212
|
+
const selection = activeEditor.getSelection();
|
|
213
|
+
if (activeEditorUri && selection) {
|
|
214
|
+
attachedContext.add({
|
|
215
|
+
kind: 'file',
|
|
216
|
+
id: 'vscode.implicit.selection',
|
|
217
|
+
name: basename(activeEditorUri),
|
|
218
|
+
value: {
|
|
219
|
+
uri: activeEditorUri,
|
|
220
|
+
range: selection
|
|
221
|
+
},
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const defaultAgent = chatAgentService.getDefaultAgent(ChatAgentLocation.Chat);
|
|
227
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
228
|
+
const requestParser = instantiationService.createInstance(ChatRequestParser);
|
|
229
|
+
const continuationTargetType = continuationTarget.type;
|
|
230
|
+
const parsedRequest = requestParser.parseChatRequest(sessionResource, userPrompt, ChatAgentLocation.Chat);
|
|
231
|
+
const addedRequest = chatModel.addRequest(parsedRequest, { variables: attachedContext.asArray() }, 0, undefined, defaultAgent);
|
|
232
|
+
await chatService.removeRequest(sessionResource, addedRequest.id);
|
|
233
|
+
const requestData = await chatService.sendRequest(sessionResource, userPrompt, {
|
|
234
|
+
agentIdSilent: continuationTargetType,
|
|
235
|
+
attachedContext: attachedContext.asArray(),
|
|
236
|
+
userSelectedModelId: widget.input.currentLanguageModel,
|
|
237
|
+
...widget.getModeRequestOptions()
|
|
238
|
+
});
|
|
239
|
+
if (requestData) {
|
|
240
|
+
await widget.handleDelegationExitIfNeeded(defaultAgent, requestData.agent);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
catch (e) {
|
|
244
|
+
console.error('Error creating remote coding agent job', e);
|
|
245
|
+
throw e;
|
|
246
|
+
}
|
|
247
|
+
finally {
|
|
248
|
+
remoteJobCreatingKey.set(false);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
class CreateRemoteAgentJobFromEditorAction {
|
|
253
|
+
constructor() { }
|
|
254
|
+
async run(accessor, continuationTarget) {
|
|
255
|
+
try {
|
|
256
|
+
const editorService = accessor.get(IEditorService);
|
|
257
|
+
const activeEditor = editorService.activeTextEditorControl;
|
|
258
|
+
const commandService = accessor.get(ICommandService);
|
|
259
|
+
if (!activeEditor) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const model = activeEditor.getModel();
|
|
263
|
+
if (!model || !isITextModel(model)) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
const uri = model.uri;
|
|
267
|
+
const attachedContext = [toPromptFileVariableEntry(uri, PromptFileVariableKind.PromptFile, undefined, false, [])];
|
|
268
|
+
const prompt = `Follow instructions in [${basename(uri)}](${( uri.toString())}).`;
|
|
269
|
+
await commandService.executeCommand(`${NEW_CHAT_SESSION_ACTION_ID}.${continuationTarget.type}`, { prompt, attachedContext });
|
|
270
|
+
}
|
|
271
|
+
catch (e) {
|
|
272
|
+
console.error('Error creating remote agent job from editor', e);
|
|
273
|
+
throw e;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
let ContinueChatInSessionActionRendering = class ContinueChatInSessionActionRendering extends Disposable {
|
|
278
|
+
static { this.ID = 'chat.continueChatInSessionActionRendering'; }
|
|
279
|
+
constructor(actionViewItemService, instantiationService) {
|
|
280
|
+
super();
|
|
281
|
+
const disposable = actionViewItemService.register(MenuId.EditorContent, ContinueChatInSessionAction.ID, (action, options, instantiationService2) => {
|
|
282
|
+
if (!(action instanceof MenuItemAction)) {
|
|
283
|
+
return undefined;
|
|
284
|
+
}
|
|
285
|
+
return instantiationService.createInstance(ChatContinueInSessionActionItem, action, ActionLocation.Editor);
|
|
286
|
+
});
|
|
287
|
+
markAsSingleton(disposable);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
ContinueChatInSessionActionRendering = ( __decorate([
|
|
291
|
+
( __param(0, IActionViewItemService)),
|
|
292
|
+
( __param(1, IInstantiationService))
|
|
293
|
+
], ContinueChatInSessionActionRendering));
|
|
294
|
+
|
|
295
|
+
export { ActionLocation, ChatContinueInSessionActionItem, ContinueChatInSessionAction, ContinueChatInSessionActionRendering };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
3
|
+
import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
5
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
|
+
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
7
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
8
|
+
import { ElicitationState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
9
|
+
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
10
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
11
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
12
|
+
|
|
13
|
+
const AcceptElicitationRequestActionId = 'workbench.action.chat.acceptElicitation';
|
|
14
|
+
class AcceptElicitationRequestAction extends Action2 {
|
|
15
|
+
constructor() {
|
|
16
|
+
super({
|
|
17
|
+
id: AcceptElicitationRequestActionId,
|
|
18
|
+
title: ( localize2(4708, "Accept Request")),
|
|
19
|
+
f1: false,
|
|
20
|
+
category: CHAT_CATEGORY,
|
|
21
|
+
keybinding: {
|
|
22
|
+
when: ( ContextKeyExpr.and(
|
|
23
|
+
ChatContextKeys.inChatSession,
|
|
24
|
+
ChatContextKeys.Editing.hasElicitationRequest
|
|
25
|
+
)),
|
|
26
|
+
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
27
|
+
weight: KeybindingWeight.WorkbenchContrib + 1,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async run(accessor) {
|
|
32
|
+
const chatWidgetService = accessor.get(IChatWidgetService);
|
|
33
|
+
const widget = chatWidgetService.lastFocusedWidget;
|
|
34
|
+
if (!widget) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const items = widget.viewModel?.getItems();
|
|
38
|
+
if (!items?.length) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
42
|
+
const item = items[i];
|
|
43
|
+
if (!isResponseVM(item)) {
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
for (const content of item.response.value) {
|
|
47
|
+
if (content.kind === 'elicitation2' && content.state.get() === ElicitationState.Pending) {
|
|
48
|
+
await content.accept(true);
|
|
49
|
+
widget.focusInput();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function registerChatElicitationActions() {
|
|
57
|
+
registerAction2(AcceptElicitationRequestAction);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { AcceptElicitationRequestActionId, registerChatElicitationActions };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
|
|
3
|
+
import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
4
|
+
import { ChatModeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
|
|
5
|
+
import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
6
|
+
export interface IVoiceChatExecuteActionContext {
|
|
7
|
+
readonly disableTimeout?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IChatExecuteActionContext {
|
|
10
|
+
widget?: IChatWidget;
|
|
11
|
+
inputValue?: string;
|
|
12
|
+
voice?: IVoiceChatExecuteActionContext;
|
|
13
|
+
}
|
|
14
|
+
declare abstract class SubmitAction extends Action2 {
|
|
15
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
export declare class ChatSubmitAction extends SubmitAction {
|
|
18
|
+
static readonly ID = "workbench.action.chat.submit";
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
21
|
+
export declare class ChatDelegateToEditSessionAction extends Action2 {
|
|
22
|
+
static readonly ID = "workbench.action.chat.delegateToEditSession";
|
|
23
|
+
constructor();
|
|
24
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
export declare const ToggleAgentModeActionId = "workbench.action.chat.toggleAgentMode";
|
|
27
|
+
export interface IToggleChatModeArgs {
|
|
28
|
+
modeId: ChatModeKind | string;
|
|
29
|
+
sessionResource: URI | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare const ChatOpenModelPickerActionId = "workbench.action.chat.openModelPicker";
|
|
32
|
+
export declare class OpenModePickerAction extends Action2 {
|
|
33
|
+
static readonly ID = "workbench.action.chat.openModePicker";
|
|
34
|
+
constructor();
|
|
35
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
export declare class ChatSessionPrimaryPickerAction extends Action2 {
|
|
38
|
+
static readonly ID = "workbench.action.chat.chatSessionPrimaryPicker";
|
|
39
|
+
constructor();
|
|
40
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): Promise<void>;
|
|
41
|
+
}
|
|
42
|
+
export declare const ChangeChatModelActionId = "workbench.action.chat.changeModel";
|
|
43
|
+
export declare class ChatEditingSessionSubmitAction extends SubmitAction {
|
|
44
|
+
static readonly ID = "workbench.action.edits.submit";
|
|
45
|
+
constructor();
|
|
46
|
+
}
|
|
47
|
+
export declare class ChatSubmitWithCodebaseAction extends Action2 {
|
|
48
|
+
static readonly ID = "workbench.action.chat.submitWithCodebase";
|
|
49
|
+
constructor();
|
|
50
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
51
|
+
}
|
|
52
|
+
export declare const CancelChatActionId = "workbench.action.chat.cancel";
|
|
53
|
+
export declare class CancelAction extends Action2 {
|
|
54
|
+
static readonly ID = "workbench.action.chat.cancel";
|
|
55
|
+
constructor();
|
|
56
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
57
|
+
}
|
|
58
|
+
export declare const CancelChatEditId = "workbench.edit.chat.cancel";
|
|
59
|
+
export declare class CancelEdit extends Action2 {
|
|
60
|
+
static readonly ID = "workbench.edit.chat.cancel";
|
|
61
|
+
constructor();
|
|
62
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
63
|
+
}
|
|
64
|
+
export declare function registerChatExecuteActions(): void;
|
|
65
|
+
export {};
|