@codingame/monaco-vscode-katex-common 24.3.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.d.ts → accessibility/chatAccessibilityProvider.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.js → accessibility/chatAccessibilityProvider.js} +25 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.d.ts → attachments/chatAttachmentModel.d.ts} +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.js → attachments/chatAttachmentModel.js} +24 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.d.ts → attachments/chatAttachmentWidgets.d.ts} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.js → attachments/chatAttachmentWidgets.js} +80 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.js +23 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +47 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.d.ts → widget/chatAgentHover.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.js → widget/chatAgentHover.js} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.d.ts +10 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.js +59 -119
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.js +31 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.d.ts +9 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.js +31 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.d.ts → widget/chatContentParts/chatDiffBlockPart.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.d.ts → widget/chatContentParts/chatInlineAnchorWidget.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.js → widget/chatContentParts/chatInlineAnchorWidget.js} +18 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.d.ts → widget/chatContentParts/chatMarkdownDecorationsRenderer.d.ts} +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.js → widget/chatContentParts/chatMarkdownDecorationsRenderer.js} +9 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.d.ts +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.js +31 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.js +9 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.d.ts +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.js +20 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.js +71 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.js +27 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.d.ts → widget/chatContentParts/codeBlockPart.d.ts} +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.js → widget/chatContentParts/codeBlockPart.js} +19 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatThinkingContent.css +17 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +4 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +103 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.js +18 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +11 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.d.ts → widget/chatDragAndDrop.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.js → widget/chatDragAndDrop.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.d.ts → widget/chatListRenderer.d.ts} +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.js → widget/chatListRenderer.js} +41 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.d.ts → widget/chatWidget.d.ts} +18 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.js → widget/chatWidget.js} +77 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.d.ts → widget/input/chatFollowups.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.js → widget/input/chatFollowups.js} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.d.ts → widget/input/chatInputPart.d.ts} +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.js → widget/input/chatInputPart.js} +75 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.d.ts → widget/input/chatSelectedTools.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.js → widget/input/chatSelectedTools.js} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.js +21 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chat.css +17 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatViewWelcome.css +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.js → widget/chatColors.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.d.ts → widget/chatWidgetHistoryService.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.js → widget/chatWidgetHistoryService.js} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.d.ts → widget/codeBlockModelCollection.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.js → widget/codeBlockModelCollection.js} +4 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +7 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +63 -63
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +16 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +8 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +35 -54
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +35 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +129 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -373
- /package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/{chatSessionAction.css → chatSessionPickerActionItem.css} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.d.ts → widget/chatContentMarkdownRenderer.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.js → widget/chatContentMarkdownRenderer.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.js → widget/chatContentParts/chatDiffBlockPart.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatCodeBlockPill.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatConfirmationWidget.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatExtensionsContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatInlineAnchorWidget.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMarkdownPart.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMcpServersInteractionContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatPullRequestContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatTerminalToolProgressPart.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.css → widget/chatContentParts/media/codeBlockPart.css} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.d.ts → widget/chatOptions.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.js → widget/chatOptions.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.d.ts → widget/input/chatInputPartWidgets.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.js → widget/input/chatInputPartWidgets.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatAgentHover.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.d.ts → widget/chatColors.d.ts} +0 -0
|
@@ -6,7 +6,7 @@ import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
6
6
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
7
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
8
8
|
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
9
|
-
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
9
|
+
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
10
10
|
|
|
11
11
|
const $ = $$1;
|
|
12
12
|
let ChatCommandButtonContentPart = class ChatCommandButtonContentPart extends Disposable {
|
|
@@ -17,7 +17,7 @@ let ChatCommandButtonContentPart = class ChatCommandButtonContentPart extends Di
|
|
|
17
17
|
const enabled = !isResponseVM(context.element) || !context.element.isStale;
|
|
18
18
|
const tooltip = enabled ?
|
|
19
19
|
commandButton.command.tooltip :
|
|
20
|
-
( localize(
|
|
20
|
+
( localize(5614, "Button not available in restored chat"));
|
|
21
21
|
const button = this._register(( new Button(
|
|
22
22
|
this.domNode,
|
|
23
23
|
{ ...defaultButtonStyles, supportIcons: true, title: tooltip }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
-
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
4
|
-
import { IChatConfirmation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
5
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
3
|
+
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
4
|
+
import { IChatConfirmation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
5
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
6
6
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
7
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
7
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
8
8
|
export declare class ChatConfirmationContentPart extends Disposable implements IChatContentPart {
|
|
9
9
|
private readonly instantiationService;
|
|
10
10
|
private readonly chatService;
|
|
@@ -4,8 +4,8 @@ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/even
|
|
|
4
4
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
6
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
8
|
-
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
7
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
8
|
+
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
9
9
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
10
10
|
import { SimpleChatConfirmationWidget } from './chatConfirmationWidget.js';
|
|
11
11
|
|
|
@@ -24,10 +24,10 @@ let ChatConfirmationContentPart = class ChatConfirmationContentPart extends Disp
|
|
|
24
24
|
isSecondary: button !== confirmation.buttons?.[0],
|
|
25
25
|
})))
|
|
26
26
|
: [
|
|
27
|
-
{ label: ( localize(
|
|
28
|
-
{ label: ( localize(
|
|
27
|
+
{ label: ( localize(5615, "Accept")), data: confirmation.data },
|
|
28
|
+
{ label: ( localize(5616, "Dismiss")), data: confirmation.data, isSecondary: true },
|
|
29
29
|
];
|
|
30
|
-
const confirmationWidget = this._register(this.instantiationService.createInstance(SimpleChatConfirmationWidget, context, { title: confirmation.title, buttons, message: confirmation.message
|
|
30
|
+
const confirmationWidget = this._register(this.instantiationService.createInstance(SimpleChatConfirmationWidget, context, { title: confirmation.title, buttons, message: confirmation.message }));
|
|
31
31
|
confirmationWidget.setShowButtons(!confirmation.isUsed);
|
|
32
32
|
this._register(confirmationWidget.onDidChangeHeight(() => this._onDidChangeHeight.fire()));
|
|
33
33
|
this._register(confirmationWidget.onDidClick(async (e) => {
|
|
@@ -3,13 +3,12 @@ import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/comm
|
|
|
3
3
|
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
4
4
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
5
|
import type { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
6
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
6
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
8
7
|
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
9
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
9
|
import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
|
|
11
|
-
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
12
|
-
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service";
|
|
10
|
+
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
11
|
+
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service";
|
|
13
12
|
export interface IChatConfirmationButton<T> {
|
|
14
13
|
label: string;
|
|
15
14
|
isSecondary?: boolean;
|
|
@@ -29,7 +28,6 @@ export interface IChatConfirmationWidgetOptions<T> {
|
|
|
29
28
|
partType: string;
|
|
30
29
|
partSource?: string;
|
|
31
30
|
};
|
|
32
|
-
silent?: boolean;
|
|
33
31
|
}
|
|
34
32
|
export declare class ChatQueryTitlePart extends Disposable {
|
|
35
33
|
private readonly element;
|
|
@@ -47,25 +45,21 @@ declare abstract class BaseSimpleChatConfirmationWidget<T> extends Disposable {
|
|
|
47
45
|
protected readonly context: IChatContentPartRenderContext;
|
|
48
46
|
protected readonly instantiationService: IInstantiationService;
|
|
49
47
|
protected readonly _markdownRendererService: IMarkdownRendererService;
|
|
50
|
-
private readonly _configurationService;
|
|
51
48
|
private _onDidClick;
|
|
52
49
|
get onDidClick(): Event<IChatConfirmationButton<T>>;
|
|
53
50
|
protected _onDidChangeHeight: Emitter<void>;
|
|
54
51
|
get onDidChangeHeight(): Event<void>;
|
|
55
52
|
private _domNode;
|
|
56
53
|
get domNode(): HTMLElement;
|
|
57
|
-
private get showingButtons();
|
|
58
54
|
setShowButtons(showButton: boolean): void;
|
|
59
55
|
private readonly messageElement;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidgetOptions<T>, instantiationService: IInstantiationService, _markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, _configurationService: IConfigurationService, contextKeyService: IContextKeyService);
|
|
63
|
-
protected renderMessage(element: HTMLElement, listContainer: HTMLElement): void;
|
|
56
|
+
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidgetOptions<T>, instantiationService: IInstantiationService, _markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService);
|
|
57
|
+
protected renderMessage(element: HTMLElement): void;
|
|
64
58
|
}
|
|
65
59
|
/** @deprecated Use ChatConfirmationWidget instead */
|
|
66
60
|
export declare class SimpleChatConfirmationWidget<T> extends BaseSimpleChatConfirmationWidget<T> {
|
|
67
61
|
private _renderedMessage;
|
|
68
|
-
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidgetOptions<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService,
|
|
62
|
+
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidgetOptions<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService);
|
|
69
63
|
updateMessage(message: string | IMarkdownString): void;
|
|
70
64
|
}
|
|
71
65
|
export interface IChatConfirmationWidget2Options<T> {
|
|
@@ -85,7 +79,6 @@ declare abstract class BaseChatConfirmationWidget<T> extends Disposable {
|
|
|
85
79
|
protected readonly instantiationService: IInstantiationService;
|
|
86
80
|
protected readonly markdownRendererService: IMarkdownRendererService;
|
|
87
81
|
private readonly contextMenuService;
|
|
88
|
-
private readonly _configurationService;
|
|
89
82
|
private readonly chatMarkdownAnchorService;
|
|
90
83
|
private _onDidClick;
|
|
91
84
|
get onDidClick(): Event<IChatConfirmationButton<T>>;
|
|
@@ -94,23 +87,21 @@ declare abstract class BaseChatConfirmationWidget<T> extends Disposable {
|
|
|
94
87
|
private _domNode;
|
|
95
88
|
get domNode(): HTMLElement;
|
|
96
89
|
private _buttonsDomNode;
|
|
97
|
-
private get showingButtons();
|
|
98
90
|
setShowButtons(showButton: boolean): void;
|
|
99
91
|
private readonly messageElement;
|
|
100
92
|
private readonly markdownContentPart;
|
|
101
|
-
private readonly notificationManager;
|
|
102
93
|
get codeblocksPartId(): string | undefined;
|
|
103
94
|
get codeblocks(): import("@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat").IChatCodeBlockInfo[] | undefined;
|
|
104
|
-
constructor(_context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService,
|
|
95
|
+
constructor(_context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, chatMarkdownAnchorService: IChatMarkdownAnchorService);
|
|
105
96
|
updateButtons(buttons: IChatConfirmationButton<T>[]): void;
|
|
106
|
-
protected renderMessage(element: HTMLElement | IMarkdownString | string
|
|
97
|
+
protected renderMessage(element: HTMLElement | IMarkdownString | string): void;
|
|
107
98
|
}
|
|
108
99
|
export declare class ChatConfirmationWidget<T> extends BaseChatConfirmationWidget<T> {
|
|
109
100
|
private _renderedMessage;
|
|
110
|
-
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService,
|
|
101
|
+
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, chatMarkdownAnchorService: IChatMarkdownAnchorService);
|
|
111
102
|
updateMessage(message: string | IMarkdownString): void;
|
|
112
103
|
}
|
|
113
104
|
export declare class ChatCustomConfirmationWidget<T> extends BaseChatConfirmationWidget<T> {
|
|
114
|
-
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService,
|
|
105
|
+
constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options<T>, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, chatMarkdownAnchorService: IChatMarkdownAnchorService);
|
|
115
106
|
}
|
|
116
107
|
export {};
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
|
-
import { createElement,
|
|
4
|
+
import { createElement, h, isHTMLElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { ButtonWithDropdown, Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
6
6
|
import { Separator, Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
7
|
-
import { Emitter
|
|
7
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
8
8
|
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
9
|
-
import { Disposable, MutableDisposable
|
|
9
|
+
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
10
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
11
|
import { MenuWorkbenchToolBar } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
|
|
12
12
|
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
13
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
14
13
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
15
14
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
16
15
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
16
|
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
18
17
|
import { IMarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service';
|
|
19
|
-
import { FocusMode } from '@codingame/monaco-vscode-api/vscode/vs/platform/native/common/native';
|
|
20
18
|
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { renderFileWidgets } from '../chatInlineAnchorWidget.js';
|
|
24
|
-
import { IChatMarkdownAnchorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service';
|
|
19
|
+
import { renderFileWidgets } from './chatInlineAnchorWidget.js';
|
|
20
|
+
import { IChatMarkdownAnchorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service';
|
|
25
21
|
import { ChatMarkdownContentPart } from './chatMarkdownContentPart.js';
|
|
26
22
|
import * as chatConfirmationWidget from './media/chatConfirmationWidget.css';
|
|
27
23
|
|
|
@@ -79,66 +75,23 @@ let ChatQueryTitlePart = class ChatQueryTitlePart extends Disposable {
|
|
|
79
75
|
ChatQueryTitlePart = ( __decorate([
|
|
80
76
|
( __param(3, IMarkdownRendererService))
|
|
81
77
|
], ChatQueryTitlePart));
|
|
82
|
-
let ChatConfirmationNotifier = class ChatConfirmationNotifier extends Disposable {
|
|
83
|
-
constructor(_hostService, _chatWidgetService) {
|
|
84
|
-
super();
|
|
85
|
-
this._hostService = _hostService;
|
|
86
|
-
this._chatWidgetService = _chatWidgetService;
|
|
87
|
-
this.disposables = this._register(( new MutableDisposable()));
|
|
88
|
-
}
|
|
89
|
-
async notify(targetWindow, sessionResource) {
|
|
90
|
-
this._hostService.focus(targetWindow, { mode: FocusMode.Notify });
|
|
91
|
-
const widget = this._chatWidgetService.getWidgetBySessionResource(sessionResource);
|
|
92
|
-
const title = widget?.viewModel?.model.title ? ( localize(5052, "Chat: {0}", widget.viewModel.model.title)) : ( localize(5053, "Untitled Chat"));
|
|
93
|
-
const notification = await triggerNotification(title, {
|
|
94
|
-
detail: ( localize(5054, "Approval needed to continue."))
|
|
95
|
-
});
|
|
96
|
-
if (notification) {
|
|
97
|
-
const disposables = this.disposables.value = ( new DisposableStore());
|
|
98
|
-
disposables.add(notification);
|
|
99
|
-
disposables.add(Event.once(notification.onClick)(async () => {
|
|
100
|
-
await this._hostService.focus(targetWindow, { mode: FocusMode.Force });
|
|
101
|
-
if (widget) {
|
|
102
|
-
await this._chatWidgetService.reveal(widget);
|
|
103
|
-
widget.focusInput();
|
|
104
|
-
}
|
|
105
|
-
disposables.dispose();
|
|
106
|
-
}));
|
|
107
|
-
disposables.add(this._hostService.onDidChangeFocus(focus => {
|
|
108
|
-
if (focus) {
|
|
109
|
-
disposables.dispose();
|
|
110
|
-
}
|
|
111
|
-
}));
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
ChatConfirmationNotifier = ( __decorate([
|
|
116
|
-
( __param(0, IHostService)),
|
|
117
|
-
( __param(1, IChatWidgetService))
|
|
118
|
-
], ChatConfirmationNotifier));
|
|
119
78
|
let BaseSimpleChatConfirmationWidget = class BaseSimpleChatConfirmationWidget extends Disposable {
|
|
120
79
|
get onDidClick() { return this._onDidClick.event; }
|
|
121
80
|
get onDidChangeHeight() { return this._onDidChangeHeight.event; }
|
|
122
81
|
get domNode() {
|
|
123
82
|
return this._domNode;
|
|
124
83
|
}
|
|
125
|
-
get showingButtons() {
|
|
126
|
-
return !this.domNode.classList.contains('hideButtons');
|
|
127
|
-
}
|
|
128
84
|
setShowButtons(showButton) {
|
|
129
85
|
this.domNode.classList.toggle('hideButtons', !showButton);
|
|
130
86
|
}
|
|
131
|
-
constructor(context, options, instantiationService, _markdownRendererService, contextMenuService,
|
|
87
|
+
constructor(context, options, instantiationService, _markdownRendererService, contextMenuService, contextKeyService) {
|
|
132
88
|
super();
|
|
133
89
|
this.context = context;
|
|
134
90
|
this.instantiationService = instantiationService;
|
|
135
91
|
this._markdownRendererService = _markdownRendererService;
|
|
136
|
-
this._configurationService = _configurationService;
|
|
137
92
|
this._onDidClick = this._register(( new Emitter()));
|
|
138
93
|
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
139
|
-
const { title, subtitle, message, buttons
|
|
140
|
-
this.silent = !!silent;
|
|
141
|
-
this.notificationManager = this._register(instantiationService.createInstance(ChatConfirmationNotifier));
|
|
94
|
+
const { title, subtitle, message, buttons } = options;
|
|
142
95
|
const elements = h('.chat-confirmation-widget-container@container', [
|
|
143
96
|
h('.chat-confirmation-widget@root', [
|
|
144
97
|
h('.chat-confirmation-widget-title@title'),
|
|
@@ -191,40 +144,34 @@ let BaseSimpleChatConfirmationWidget = class BaseSimpleChatConfirmationWidget ex
|
|
|
191
144
|
['chatConfirmationPartSource', options.toolbarData.partSource],
|
|
192
145
|
]);
|
|
193
146
|
const nestedInsta = this._register(instantiationService.createChild(( new ServiceCollection([IContextKeyService, overlay]))));
|
|
194
|
-
this._register(nestedInsta.createInstance(MenuWorkbenchToolBar, elements.toolbar, MenuId.ChatConfirmationMenu, {
|
|
147
|
+
const toolbar = this._register(nestedInsta.createInstance(MenuWorkbenchToolBar, elements.toolbar, MenuId.ChatConfirmationMenu, {
|
|
195
148
|
menuOptions: {
|
|
196
149
|
arg: options.toolbarData.arg,
|
|
197
150
|
shouldForwardArgs: true,
|
|
198
151
|
}
|
|
199
152
|
}));
|
|
153
|
+
this._register(toolbar.onDidChangeMenuItems(() => this._onDidChangeHeight.fire()));
|
|
200
154
|
}
|
|
201
155
|
}
|
|
202
|
-
renderMessage(element
|
|
156
|
+
renderMessage(element) {
|
|
203
157
|
this.messageElement.append(element);
|
|
204
|
-
if (this.showingButtons && this._configurationService.getValue('chat.notifyWindowOnConfirmation') && !this.silent) {
|
|
205
|
-
const targetWindow = getWindow(listContainer);
|
|
206
|
-
if (!targetWindow.document.hasFocus()) {
|
|
207
|
-
this.notificationManager.notify(targetWindow, this.context.element.sessionResource);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
158
|
}
|
|
211
159
|
};
|
|
212
160
|
BaseSimpleChatConfirmationWidget = ( __decorate([
|
|
213
161
|
( __param(2, IInstantiationService)),
|
|
214
162
|
( __param(3, IMarkdownRendererService)),
|
|
215
163
|
( __param(4, IContextMenuService)),
|
|
216
|
-
( __param(5,
|
|
217
|
-
( __param(6, IContextKeyService))
|
|
164
|
+
( __param(5, IContextKeyService))
|
|
218
165
|
], BaseSimpleChatConfirmationWidget));
|
|
219
166
|
let SimpleChatConfirmationWidget = class SimpleChatConfirmationWidget extends BaseSimpleChatConfirmationWidget {
|
|
220
|
-
constructor(context, options, instantiationService, markdownRendererService, contextMenuService,
|
|
221
|
-
super(context, options, instantiationService, markdownRendererService, contextMenuService,
|
|
167
|
+
constructor(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService) {
|
|
168
|
+
super(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService);
|
|
222
169
|
this.updateMessage(options.message);
|
|
223
170
|
}
|
|
224
171
|
updateMessage(message) {
|
|
225
172
|
this._renderedMessage?.remove();
|
|
226
173
|
const renderedMessage = this._register(this._markdownRendererService.render(typeof message === 'string' ? ( new MarkdownString(message)) : message, { asyncRenderCallback: () => this._onDidChangeHeight.fire() }));
|
|
227
|
-
this.renderMessage(renderedMessage.element
|
|
174
|
+
this.renderMessage(renderedMessage.element);
|
|
228
175
|
this._renderedMessage = renderedMessage.element;
|
|
229
176
|
}
|
|
230
177
|
};
|
|
@@ -232,8 +179,7 @@ SimpleChatConfirmationWidget = ( __decorate([
|
|
|
232
179
|
( __param(2, IInstantiationService)),
|
|
233
180
|
( __param(3, IMarkdownRendererService)),
|
|
234
181
|
( __param(4, IContextMenuService)),
|
|
235
|
-
( __param(5,
|
|
236
|
-
( __param(6, IContextKeyService))
|
|
182
|
+
( __param(5, IContextKeyService))
|
|
237
183
|
], SimpleChatConfirmationWidget));
|
|
238
184
|
let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Disposable {
|
|
239
185
|
get onDidClick() { return this._onDidClick.event; }
|
|
@@ -241,9 +187,6 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
|
|
|
241
187
|
get domNode() {
|
|
242
188
|
return this._domNode;
|
|
243
189
|
}
|
|
244
|
-
get showingButtons() {
|
|
245
|
-
return !this.domNode.classList.contains('hideButtons');
|
|
246
|
-
}
|
|
247
190
|
setShowButtons(showButton) {
|
|
248
191
|
this.domNode.classList.toggle('hideButtons', !showButton);
|
|
249
192
|
}
|
|
@@ -253,19 +196,17 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
|
|
|
253
196
|
get codeblocks() {
|
|
254
197
|
return this.markdownContentPart.value?.codeblocks;
|
|
255
198
|
}
|
|
256
|
-
constructor(_context, options, instantiationService, markdownRendererService, contextMenuService,
|
|
199
|
+
constructor(_context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService) {
|
|
257
200
|
super();
|
|
258
201
|
this._context = _context;
|
|
259
202
|
this.instantiationService = instantiationService;
|
|
260
203
|
this.markdownRendererService = markdownRendererService;
|
|
261
204
|
this.contextMenuService = contextMenuService;
|
|
262
|
-
this._configurationService = _configurationService;
|
|
263
205
|
this.chatMarkdownAnchorService = chatMarkdownAnchorService;
|
|
264
206
|
this._onDidClick = this._register(( new Emitter()));
|
|
265
207
|
this._onDidChangeHeight = this._register(( new Emitter()));
|
|
266
208
|
this.markdownContentPart = this._register(( new MutableDisposable()));
|
|
267
209
|
const { title, subtitle, message, buttons, icon } = options;
|
|
268
|
-
this.notificationManager = this._register(instantiationService.createInstance(ChatConfirmationNotifier));
|
|
269
210
|
const elements = h('.chat-confirmation-widget-container@container', [
|
|
270
211
|
h('.chat-confirmation-widget2@root', [
|
|
271
212
|
h('.chat-confirmation-widget-title', [
|
|
@@ -337,7 +278,7 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
|
|
|
337
278
|
}
|
|
338
279
|
}
|
|
339
280
|
}
|
|
340
|
-
renderMessage(element
|
|
281
|
+
renderMessage(element) {
|
|
341
282
|
this.markdownContentPart.clear();
|
|
342
283
|
if (!isHTMLElement(element)) {
|
|
343
284
|
const part = this._register(this.instantiationService.createInstance(ChatMarkdownContentPart, {
|
|
@@ -356,31 +297,24 @@ let BaseChatConfirmationWidget = class BaseChatConfirmationWidget extends Dispos
|
|
|
356
297
|
child.remove();
|
|
357
298
|
}
|
|
358
299
|
this.messageElement.append(element);
|
|
359
|
-
if (this.showingButtons && this._configurationService.getValue('chat.notifyWindowOnConfirmation')) {
|
|
360
|
-
const targetWindow = getWindow(listContainer);
|
|
361
|
-
if (!targetWindow.document.hasFocus()) {
|
|
362
|
-
this.notificationManager.notify(targetWindow, this._context.element.sessionResource);
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
300
|
}
|
|
366
301
|
};
|
|
367
302
|
BaseChatConfirmationWidget = ( __decorate([
|
|
368
303
|
( __param(2, IInstantiationService)),
|
|
369
304
|
( __param(3, IMarkdownRendererService)),
|
|
370
305
|
( __param(4, IContextMenuService)),
|
|
371
|
-
( __param(5,
|
|
372
|
-
( __param(6,
|
|
373
|
-
( __param(7, IChatMarkdownAnchorService))
|
|
306
|
+
( __param(5, IContextKeyService)),
|
|
307
|
+
( __param(6, IChatMarkdownAnchorService))
|
|
374
308
|
], BaseChatConfirmationWidget));
|
|
375
309
|
let ChatConfirmationWidget = class ChatConfirmationWidget extends BaseChatConfirmationWidget {
|
|
376
|
-
constructor(context, options, instantiationService, markdownRendererService, contextMenuService,
|
|
377
|
-
super(context, options, instantiationService, markdownRendererService, contextMenuService,
|
|
378
|
-
this.renderMessage(options.message
|
|
310
|
+
constructor(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService) {
|
|
311
|
+
super(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService);
|
|
312
|
+
this.renderMessage(options.message);
|
|
379
313
|
}
|
|
380
314
|
updateMessage(message) {
|
|
381
315
|
this._renderedMessage?.remove();
|
|
382
316
|
const renderedMessage = this._register(this.markdownRendererService.render(typeof message === 'string' ? ( new MarkdownString(message)) : message, { asyncRenderCallback: () => this._onDidChangeHeight.fire() }));
|
|
383
|
-
this.renderMessage(renderedMessage.element
|
|
317
|
+
this.renderMessage(renderedMessage.element);
|
|
384
318
|
this._renderedMessage = renderedMessage.element;
|
|
385
319
|
}
|
|
386
320
|
};
|
|
@@ -388,29 +322,27 @@ ChatConfirmationWidget = ( __decorate([
|
|
|
388
322
|
( __param(2, IInstantiationService)),
|
|
389
323
|
( __param(3, IMarkdownRendererService)),
|
|
390
324
|
( __param(4, IContextMenuService)),
|
|
391
|
-
( __param(5,
|
|
392
|
-
( __param(6,
|
|
393
|
-
( __param(7, IChatMarkdownAnchorService))
|
|
325
|
+
( __param(5, IContextKeyService)),
|
|
326
|
+
( __param(6, IChatMarkdownAnchorService))
|
|
394
327
|
], ChatConfirmationWidget));
|
|
395
328
|
let ChatCustomConfirmationWidget = class ChatCustomConfirmationWidget extends BaseChatConfirmationWidget {
|
|
396
|
-
constructor(context, options, instantiationService, markdownRendererService, contextMenuService,
|
|
397
|
-
super(context, options, instantiationService, markdownRendererService, contextMenuService,
|
|
398
|
-
this.renderMessage(options.message
|
|
329
|
+
constructor(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService) {
|
|
330
|
+
super(context, options, instantiationService, markdownRendererService, contextMenuService, contextKeyService, chatMarkdownAnchorService);
|
|
331
|
+
this.renderMessage(options.message);
|
|
399
332
|
}
|
|
400
333
|
};
|
|
401
334
|
ChatCustomConfirmationWidget = ( __decorate([
|
|
402
335
|
( __param(2, IInstantiationService)),
|
|
403
336
|
( __param(3, IMarkdownRendererService)),
|
|
404
337
|
( __param(4, IContextMenuService)),
|
|
405
|
-
( __param(5,
|
|
406
|
-
( __param(6,
|
|
407
|
-
( __param(7, IChatMarkdownAnchorService))
|
|
338
|
+
( __param(5, IContextKeyService)),
|
|
339
|
+
( __param(6, IChatMarkdownAnchorService))
|
|
408
340
|
], ChatCustomConfirmationWidget));
|
|
409
341
|
function configureAccessibilityContainer(container, title, message) {
|
|
410
342
|
container.tabIndex = 0;
|
|
411
343
|
const titleAsString = typeof title === 'string' ? title : title.value;
|
|
412
344
|
const messageAsString = typeof message === 'string' ? message : message && 'value' in message ? message.value : message && 'textContent' in message ? message.textContent : '';
|
|
413
|
-
container.setAttribute('aria-label', ( localize(
|
|
345
|
+
container.setAttribute('aria-label', ( localize(5617, "Chat Confirmation Dialog {0} {1}", titleAsString, messageAsString)));
|
|
414
346
|
container.classList.add('chat-confirmation-widget-container');
|
|
415
347
|
}
|
|
416
348
|
|
|
@@ -2,7 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { IChatRendererDelegate } from "../chatListRenderer.js";
|
|
4
4
|
import { ChatEditorOptions } from "../chatOptions.js";
|
|
5
|
-
import { CodeBlockPart, CodeCompareBlockPart } from "
|
|
5
|
+
import { CodeBlockPart, CodeCompareBlockPart } from "./codeBlockPart.js";
|
|
6
6
|
import { IDisposableReference } from "./chatCollections.js";
|
|
7
7
|
export declare class EditorPool extends Disposable {
|
|
8
8
|
private readonly isSimpleWidget;
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
-
import { CodeBlockPart, CodeCompareBlockPart } from '
|
|
6
|
+
import { CodeBlockPart, CodeCompareBlockPart } from './codeBlockPart.js';
|
|
7
7
|
import { ResourcePool } from './chatCollections.js';
|
|
8
8
|
|
|
9
9
|
let EditorPool = class EditorPool extends Disposable {
|
|
@@ -3,8 +3,8 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
3
3
|
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
4
4
|
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
5
5
|
import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service";
|
|
6
|
-
import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
7
|
-
import { DiffEditorPool } from "./
|
|
6
|
+
import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
7
|
+
import { DiffEditorPool } from "./chatContentCodePools.js";
|
|
8
8
|
/**
|
|
9
9
|
* Parses unified diff format into before/after content.
|
|
10
10
|
* Supports standard unified diff format with - and + prefixes.
|
|
@@ -2,10 +2,10 @@ import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
4
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
5
|
-
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
6
|
-
import { IChatElicitationRequest, IChatElicitationRequestSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
5
|
+
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
6
|
+
import { IChatElicitationRequest, IChatElicitationRequestSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
7
7
|
import { IChatAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
8
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
8
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
9
9
|
export declare class ChatElicitationContentPart extends Disposable implements IChatContentPart {
|
|
10
10
|
private readonly elicitation;
|
|
11
11
|
private readonly instantiationService;
|
|
@@ -7,10 +7,10 @@ import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/in
|
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
9
9
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
10
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
11
|
-
import { ElicitationState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
10
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
11
|
+
import { ElicitationState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
12
12
|
import { IChatAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
13
|
-
import { AcceptElicitationRequestActionId } from '
|
|
13
|
+
import { AcceptElicitationRequestActionId } from '../../actions/chatElicitationActions.js';
|
|
14
14
|
import { ChatConfirmationWidget } from './chatConfirmationWidget.js';
|
|
15
15
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
16
16
|
|
|
@@ -2,11 +2,11 @@ import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
2
2
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
4
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
|
-
import { ChatErrorLevel, IChatResponseErrorDetailsConfirmationButton } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
6
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
7
|
-
import { IChatErrorDetailsPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
5
|
+
import { ChatErrorLevel, IChatResponseErrorDetailsConfirmationButton } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
6
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
7
|
+
import { IChatErrorDetailsPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
8
8
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
9
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
9
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
10
10
|
export declare class ChatErrorConfirmationContentPart extends Disposable implements IChatContentPart {
|
|
11
11
|
private readonly errorDetails;
|
|
12
12
|
readonly domNode: HTMLElement;
|
|
@@ -6,8 +6,8 @@ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/even
|
|
|
6
6
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
9
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
10
|
-
import { assertIsResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
9
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
10
|
+
import { assertIsResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
11
11
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
12
12
|
import { ChatErrorWidget } from './chatErrorContentPart.js';
|
|
13
13
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
2
2
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
4
|
-
import { ChatErrorLevel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
5
|
-
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
6
|
-
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
4
|
+
import { ChatErrorLevel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
5
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
6
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
7
7
|
export declare class ChatErrorContentPart extends Disposable implements IChatContentPart {
|
|
8
8
|
private readonly errorDetails;
|
|
9
9
|
readonly domNode: HTMLElement;
|
|
@@ -3,7 +3,7 @@ import { $ as $$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/do
|
|
|
3
3
|
import { renderIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
4
4
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
5
5
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { ChatErrorLevel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
6
|
+
import { ChatErrorLevel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
7
7
|
|
|
8
8
|
const $ = $$1;
|
|
9
9
|
class ChatErrorContentPart extends Disposable {
|
|
@@ -2,10 +2,10 @@ import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"
|
|
|
2
2
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
4
|
import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service";
|
|
5
|
-
import { IChatExtensionsContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
6
|
-
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
5
|
+
import { IChatExtensionsContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
6
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
7
7
|
import { ChatTreeItem, IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
8
|
-
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
8
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
9
9
|
export declare class ChatExtensionsContentPart extends Disposable implements IChatContentPart {
|
|
10
10
|
private readonly extensionsContent;
|
|
11
11
|
readonly domNode: HTMLElement;
|
|
@@ -29,7 +29,7 @@ let ChatExtensionsContentPart = class ChatExtensionsContentPart extends Disposab
|
|
|
29
29
|
this.onDidChangeHeight = this._onDidChangeHeight.event;
|
|
30
30
|
this.domNode = $('.chat-extensions-content-part');
|
|
31
31
|
const loadingElement = append(this.domNode, $('.loading-extensions-element'));
|
|
32
|
-
append(loadingElement, $(ThemeIcon.asCSSSelector(ThemeIcon.modify(Codicon.loading, 'spin'))), $('span.loading-message', undefined, ( localize(
|
|
32
|
+
append(loadingElement, $(ThemeIcon.asCSSSelector(ThemeIcon.modify(Codicon.loading, 'spin'))), $('span.loading-message', undefined, ( localize(5618, 'Loading extensions...'))));
|
|
33
33
|
const extensionsList = append(this.domNode, $('.extensions-list'));
|
|
34
34
|
const list = this._register(instantiationService.createInstance(ExtensionsList, extensionsList, ChatViewId, { alwaysConsumeMouseWheel: false }, { onFocus: Event.None, onBlur: Event.None, filters: {} }));
|
|
35
35
|
getExtensions(extensionsContent.extensions, extensionsWorkbenchService).then(extensions => {
|
|
@@ -14,8 +14,8 @@ import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
14
14
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
15
15
|
import { INotebookDocumentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/notebook/common/notebookDocumentService.service";
|
|
16
16
|
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/search";
|
|
17
|
-
import { IChatContentInlineReference } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
18
|
-
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service";
|
|
17
|
+
import { IChatContentInlineReference } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
18
|
+
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service";
|
|
19
19
|
type ContentRefData = {
|
|
20
20
|
readonly kind: "symbol";
|
|
21
21
|
readonly symbol: IWorkspaceSymbol;
|