@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
2
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
4
|
-
import { IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
4
|
+
import { IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
5
5
|
import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
6
6
|
export declare abstract class BaseChatToolInvocationSubPart extends Disposable {
|
|
7
7
|
protected readonly toolInvocation: IChatToolInvocation | IChatToolInvocationSerialized;
|
|
@@ -3,7 +3,7 @@ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codi
|
|
|
3
3
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
4
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
6
|
-
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
6
|
+
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
7
7
|
|
|
8
8
|
class BaseChatToolInvocationSubPart extends Disposable {
|
|
9
9
|
static { this.idPool = 0; }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
-
import { IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
2
|
+
import { IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
3
3
|
import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
4
4
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
5
5
|
import { IChatOutputRendererService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service";
|
|
6
|
-
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
6
|
+
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
7
7
|
import { BaseChatToolInvocationSubPart } from "./chatToolInvocationSubPart.js";
|
|
8
8
|
export declare class ChatToolOutputSubPart extends BaseChatToolInvocationSubPart {
|
|
9
9
|
private readonly context;
|
|
@@ -9,7 +9,7 @@ import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/th
|
|
|
9
9
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
10
10
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
11
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
-
import { IChatToolInvocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
12
|
+
import { IChatToolInvocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
13
13
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
14
14
|
import { IChatOutputRendererService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service';
|
|
15
15
|
import { ChatProgressSubPart } from '../chatProgressContentPart.js';
|
|
@@ -75,7 +75,7 @@ let ChatToolOutputSubPart = class ChatToolOutputSubPart extends BaseChatToolInvo
|
|
|
75
75
|
parent.style.height = `${partState.height}px`;
|
|
76
76
|
}
|
|
77
77
|
const progressMessage = $('span');
|
|
78
|
-
progressMessage.textContent = ( localize(
|
|
78
|
+
progressMessage.textContent = ( localize(5753, 'Rendering tool output...'));
|
|
79
79
|
const progressPart = this._register(this.instantiationService.createInstance(ChatProgressSubPart, progressMessage, ThemeIcon.modify(Codicon.loading, 'spin'), undefined));
|
|
80
80
|
parent.appendChild(progressPart.domNode);
|
|
81
81
|
this.chatOutputItemRendererService.renderOutputPart(details.output.mimeType, details.output.value.buffer, parent, { origin: partState.webviewOrigin }, this._disposeCts.token).then((renderedItem) => {
|
|
@@ -111,7 +111,7 @@ let ChatToolOutputSubPart = class ChatToolOutputSubPart extends BaseChatToolInvo
|
|
|
111
111
|
iconElement.classList.add(...ThemeIcon.asClassNameArray(Codicon.error));
|
|
112
112
|
errorHeaderNode.append(iconElement);
|
|
113
113
|
const errorTitleNode = $('.output-error-title');
|
|
114
|
-
errorTitleNode.textContent = ( localize(
|
|
114
|
+
errorTitleNode.textContent = ( localize(5754, "Error rendering the tool output"));
|
|
115
115
|
errorHeaderNode.append(errorTitleNode);
|
|
116
116
|
const errorMessageNode = $('.output-error-details');
|
|
117
117
|
errorMessageNode.textContent = error?.message || String(error);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
2
|
+
import { ConfirmedReason, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a markdown message explaining why a tool was auto-approved.
|
|
5
|
+
* @param toolInvocation The tool invocation to get the approval message for
|
|
6
|
+
* @returns A markdown string with the approval message, or undefined if no message should be shown
|
|
7
|
+
*/
|
|
8
|
+
export declare function getToolApprovalMessage(toolInvocation: IChatToolInvocation | IChatToolInvocationSerialized): IMarkdownString | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a markdown message from a ConfirmedReason explaining why a tool was auto-approved.
|
|
11
|
+
* @param reason The confirmation reason
|
|
12
|
+
* @returns A markdown string with the approval message, or undefined if no message should be shown
|
|
13
|
+
*/
|
|
14
|
+
export declare function getApprovalMessageFromReason(reason: ConfirmedReason): IMarkdownString | undefined;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
import { MarkdownString, createMarkdownCommandLink } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
5
|
+
|
|
6
|
+
function getToolApprovalMessage(toolInvocation) {
|
|
7
|
+
const reason = IChatToolInvocation.executionConfirmedOrDenied(toolInvocation);
|
|
8
|
+
if (!reason || typeof reason === 'boolean') {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
return getApprovalMessageFromReason(reason);
|
|
12
|
+
}
|
|
13
|
+
function getApprovalMessageFromReason(reason) {
|
|
14
|
+
let md;
|
|
15
|
+
switch (reason.type) {
|
|
16
|
+
case ToolConfirmKind.Setting:
|
|
17
|
+
md = ( localize(
|
|
18
|
+
5755,
|
|
19
|
+
'Auto approved by {0}',
|
|
20
|
+
createMarkdownCommandLink({ title: '`' + reason.id + '`', id: 'workbench.action.openSettings', arguments: [reason.id] }, false)
|
|
21
|
+
));
|
|
22
|
+
break;
|
|
23
|
+
case ToolConfirmKind.LmServicePerTool:
|
|
24
|
+
md = reason.scope === 'session'
|
|
25
|
+
? ( localize(5756, 'Auto approved for this session'))
|
|
26
|
+
: reason.scope === 'workspace'
|
|
27
|
+
? ( localize(5757, 'Auto approved for this workspace'))
|
|
28
|
+
: ( localize(5758, 'Auto approved for this profile'));
|
|
29
|
+
md += ' (' + createMarkdownCommandLink({ title: ( localize(5759, 'Edit')), id: 'workbench.action.chat.editToolApproval', arguments: [reason.scope] }) + ')';
|
|
30
|
+
break;
|
|
31
|
+
case ToolConfirmKind.ConfirmationNotNeeded:
|
|
32
|
+
if (reason.reason) {
|
|
33
|
+
return typeof reason.reason === 'string'
|
|
34
|
+
? ( new MarkdownString(reason.reason, { isTrusted: true }))
|
|
35
|
+
: reason.reason;
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
case ToolConfirmKind.UserAction:
|
|
39
|
+
case ToolConfirmKind.Denied:
|
|
40
|
+
default:
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
return ( new MarkdownString(md, { isTrusted: true }));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { getApprovalMessageFromReason, getToolApprovalMessage };
|
|
@@ -4,12 +4,12 @@ import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/com
|
|
|
4
4
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
5
5
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
7
|
-
import { IChatToolInvocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
8
|
-
import { ILanguageModelToolsConfirmationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsConfirmationService.service";
|
|
9
|
-
import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service";
|
|
7
|
+
import { IChatToolInvocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
8
|
+
import { ILanguageModelToolsConfirmationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.service";
|
|
9
|
+
import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service";
|
|
10
10
|
import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
11
11
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
12
|
-
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
12
|
+
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
13
13
|
import { AbstractToolConfirmationSubPart } from "./abstractToolConfirmationSubPart.js";
|
|
14
14
|
export declare class ChatToolPostExecuteConfirmationPart extends AbstractToolConfirmationSubPart {
|
|
15
15
|
private readonly modelService;
|
|
@@ -9,11 +9,11 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
9
9
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
10
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
11
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
12
|
-
import { ChatResponseResource } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel';
|
|
13
|
-
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
14
|
-
import { ILanguageModelToolsConfirmationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsConfirmationService.service';
|
|
15
|
-
import { stringifyPromptTsxPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService';
|
|
16
|
-
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service';
|
|
12
|
+
import { ChatResponseResource } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel';
|
|
13
|
+
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
14
|
+
import { ILanguageModelToolsConfirmationService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.service';
|
|
15
|
+
import { stringifyPromptTsxPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService';
|
|
16
|
+
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service';
|
|
17
17
|
import { SkipToolPostConfirmationActionId, AcceptToolPostConfirmationActionId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
18
18
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
19
19
|
import { ChatToolOutputContentSubPart } from '../chatToolOutputContentSubPart.js';
|
|
@@ -33,8 +33,8 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
|
|
|
33
33
|
this.render({
|
|
34
34
|
allowActionId: AcceptToolPostConfirmationActionId,
|
|
35
35
|
skipActionId: SkipToolPostConfirmationActionId,
|
|
36
|
-
allowLabel: ( localize(
|
|
37
|
-
skipLabel: ( localize(
|
|
36
|
+
allowLabel: ( localize(5760, "Allow")),
|
|
37
|
+
skipLabel: ( localize(5761, 'Skip Results')),
|
|
38
38
|
partType: 'chatToolPostConfirmation',
|
|
39
39
|
subtitle: typeof subtitle === 'string' ? subtitle : subtitle?.value,
|
|
40
40
|
});
|
|
@@ -50,7 +50,7 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
|
|
|
50
50
|
return this.createResultsDisplay(this.toolInvocation, state.contentForModel);
|
|
51
51
|
}
|
|
52
52
|
getTitle() {
|
|
53
|
-
return localize(
|
|
53
|
+
return localize(5762, "Approve Tool Result");
|
|
54
54
|
}
|
|
55
55
|
additionalPrimaryActions() {
|
|
56
56
|
const actions = super.additionalPrimaryActions();
|
|
@@ -79,7 +79,7 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
|
|
|
79
79
|
createResultsDisplay(toolInvocation, contentForModel) {
|
|
80
80
|
const container = $('.tool-postconfirm-display');
|
|
81
81
|
if (!contentForModel || contentForModel.length === 0) {
|
|
82
|
-
container.textContent = ( localize(
|
|
82
|
+
container.textContent = ( localize(5763, 'No results to display'));
|
|
83
83
|
return container;
|
|
84
84
|
}
|
|
85
85
|
const parts = [];
|
|
@@ -88,6 +88,7 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
|
|
|
88
88
|
const model = this._register(this.modelService.createModel(part.value, this.languageService.createById('plaintext'), undefined, true));
|
|
89
89
|
parts.push({
|
|
90
90
|
kind: 'code',
|
|
91
|
+
title: part.title,
|
|
91
92
|
textModel: model,
|
|
92
93
|
languageId: model.getLanguageId(),
|
|
93
94
|
options: {
|
|
@@ -207,7 +208,7 @@ let ChatToolPostExecuteConfirmationPart = class ChatToolPostExecuteConfirmationP
|
|
|
207
208
|
outputSubPart.domNode.classList.add('tool-postconfirm-display');
|
|
208
209
|
return outputSubPart.domNode;
|
|
209
210
|
}
|
|
210
|
-
container.textContent = ( localize(
|
|
211
|
+
container.textContent = ( localize(5764, 'No displayable results'));
|
|
211
212
|
return container;
|
|
212
213
|
}
|
|
213
214
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
-
import { IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
4
|
+
import { IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
5
5
|
import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
6
|
-
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
6
|
+
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
7
7
|
import { BaseChatToolInvocationSubPart } from "./chatToolInvocationSubPart.js";
|
|
8
8
|
export declare class ChatToolProgressSubPart extends BaseChatToolInvocationSubPart {
|
|
9
9
|
private readonly context;
|
|
@@ -6,7 +6,7 @@ import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/comm
|
|
|
6
6
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
7
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
8
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
-
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
9
|
+
import { IChatToolInvocation, ToolConfirmKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
10
10
|
import { AccessibilityWorkbenchSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
11
11
|
import { ChatProgressContentPart } from '../chatProgressContentPart.js';
|
|
12
12
|
import { BaseChatToolInvocationSubPart } from './chatToolInvocationSubPart.js';
|
|
@@ -4,9 +4,9 @@ import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
4
4
|
import { ISharedWebContentExtractorService } from "@codingame/monaco-vscode-api/vscode/vs/platform/webContentExtractor/common/webContentExtractor.service";
|
|
5
5
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
6
6
|
import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
7
|
-
import { ChatAttachmentModel } from "
|
|
8
|
-
import { IChatAttachmentResolveService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service";
|
|
9
|
-
import { IChatInputStyles } from "./chatInputPart.js";
|
|
7
|
+
import { ChatAttachmentModel } from "../attachments/chatAttachmentModel.js";
|
|
8
|
+
import { IChatAttachmentResolveService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.service";
|
|
9
|
+
import { IChatInputStyles } from "./input/chatInputPart.js";
|
|
10
10
|
export declare class ChatDragAndDrop extends Themable {
|
|
11
11
|
private readonly widgetRef;
|
|
12
12
|
private readonly attachmentModel;
|
|
@@ -19,8 +19,8 @@ import { ISharedWebContentExtractorService } from '@codingame/monaco-vscode-api/
|
|
|
19
19
|
import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
20
20
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
21
21
|
import { extractSCMHistoryItemDropData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/scmHistoryChatContext';
|
|
22
|
-
import { IChatAttachmentResolveService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service';
|
|
23
|
-
import { convertStringToUInt8Array } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/
|
|
22
|
+
import { IChatAttachmentResolveService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.service';
|
|
23
|
+
import { convertStringToUInt8Array } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageUtils';
|
|
24
24
|
|
|
25
25
|
var ChatDragAndDropType;
|
|
26
26
|
(function (ChatDragAndDropType) {
|
|
@@ -187,15 +187,15 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
187
187
|
}
|
|
188
188
|
getDropTypeName(type) {
|
|
189
189
|
switch (type) {
|
|
190
|
-
case ChatDragAndDropType.FILE_INTERNAL: return localize(
|
|
191
|
-
case ChatDragAndDropType.FILE_EXTERNAL: return localize(
|
|
192
|
-
case ChatDragAndDropType.FOLDER: return localize(
|
|
193
|
-
case ChatDragAndDropType.IMAGE: return localize(
|
|
194
|
-
case ChatDragAndDropType.SYMBOL: return localize(
|
|
195
|
-
case ChatDragAndDropType.MARKER: return localize(
|
|
196
|
-
case ChatDragAndDropType.HTML: return localize(
|
|
197
|
-
case ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT: return localize(
|
|
198
|
-
case ChatDragAndDropType.SCM_HISTORY_ITEM: return localize(
|
|
190
|
+
case ChatDragAndDropType.FILE_INTERNAL: return localize(5765, 'File');
|
|
191
|
+
case ChatDragAndDropType.FILE_EXTERNAL: return localize(5765, 'File');
|
|
192
|
+
case ChatDragAndDropType.FOLDER: return localize(5766, 'Folder');
|
|
193
|
+
case ChatDragAndDropType.IMAGE: return localize(5767, 'Image');
|
|
194
|
+
case ChatDragAndDropType.SYMBOL: return localize(5768, 'Symbol');
|
|
195
|
+
case ChatDragAndDropType.MARKER: return localize(5769, 'Problem');
|
|
196
|
+
case ChatDragAndDropType.HTML: return localize(5770, 'URL');
|
|
197
|
+
case ChatDragAndDropType.NOTEBOOK_CELL_OUTPUT: return localize(5771, 'Output');
|
|
198
|
+
case ChatDragAndDropType.SCM_HISTORY_ITEM: return localize(5772, 'Change');
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
async resolveAttachmentsFromDragEvent(e) {
|
|
@@ -263,7 +263,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
263
263
|
async resolveHTMLAttachContext(e) {
|
|
264
264
|
const existingAttachmentNames = ( new Set(( this.attachmentModel.attachments.map(attachment => attachment.name))));
|
|
265
265
|
const createDisplayName = () => {
|
|
266
|
-
const baseName = ( localize(
|
|
266
|
+
const baseName = ( localize(5773, 'Image from URL'));
|
|
267
267
|
let uniqueName = baseName;
|
|
268
268
|
let baseNameInstance = 1;
|
|
269
269
|
while (( existingAttachmentNames.has(uniqueName))) {
|
|
@@ -328,7 +328,7 @@ let ChatDragAndDrop = class ChatDragAndDrop extends Themable {
|
|
|
328
328
|
}
|
|
329
329
|
getOverlayText(type) {
|
|
330
330
|
const typeName = this.getDropTypeName(type);
|
|
331
|
-
return localize(
|
|
331
|
+
return localize(5774, 'Attach {0} as Context', typeName);
|
|
332
332
|
}
|
|
333
333
|
updateOverlayStyles(overlay) {
|
|
334
334
|
overlay.style.backgroundColor = this.getColor(this.styles.overlayBackground) || '';
|
|
@@ -17,16 +17,16 @@ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
17
17
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
18
18
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
19
19
|
import { IWorkbenchIssueService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service";
|
|
20
|
-
import { IChatFollowup, IChatThinkingPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
21
|
-
import { IChatResponseViewModel, IChatViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
22
|
-
import { CodeBlockModelCollection } from "
|
|
20
|
+
import { IChatFollowup, IChatThinkingPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
21
|
+
import { IChatResponseViewModel, IChatViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
22
|
+
import { CodeBlockModelCollection } from "../../common/widget/codeBlockModelCollection.js";
|
|
23
23
|
import { ChatModeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
|
|
24
24
|
import { ChatTreeItem, IChatCodeBlockInfo, IChatFileTreeInfo, IChatListItemRendererOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
25
25
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
26
26
|
import { ChatAgentHover } from "./chatAgentHover.js";
|
|
27
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
27
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
28
28
|
import { ChatEditorOptions } from "./chatOptions.js";
|
|
29
|
-
import { CodeBlockPart } from "./codeBlockPart.js";
|
|
29
|
+
import { CodeBlockPart } from "./chatContentParts/codeBlockPart.js";
|
|
30
30
|
export interface IChatListItemTemplate {
|
|
31
31
|
currentElement?: ChatTreeItem;
|
|
32
32
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
3
|
import { $ as $$1, append, addDisposableListener, EventType, clearNode, addStandardDisposableListener, WindowIntervalTimer, getWindow, reset, scheduleAtNextAnimationFrame, findParentWithClass } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
4
|
import { renderFormattedText } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/formattedTextRenderer';
|
|
@@ -39,18 +38,18 @@ import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
39
38
|
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
40
39
|
import { IWorkbenchIssueService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/issue/common/issue.service';
|
|
41
40
|
import { CodiconActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView';
|
|
42
|
-
import { annotateSpecialMarkdownContent } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/annotations';
|
|
41
|
+
import { annotateSpecialMarkdownContent } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/widget/annotations';
|
|
43
42
|
import { checkModeOption } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chat';
|
|
44
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
45
|
-
import { chatSubcommandLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
46
|
-
import { ChatAgentVoteDirection, IChatToolInvocation, isChatFollowup, ChatErrorLevel, ChatAgentVoteDownReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
47
|
-
import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
48
|
-
import { getNWords } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatWordCounter';
|
|
49
|
-
import { CodeBlockModelCollection } from '../common/codeBlockModelCollection.js';
|
|
50
|
-
import { ChatAgentLocation, ChatConfiguration, CollapsedToolsDisplayMode, ThinkingDisplayMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
43
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
44
|
+
import { chatSubcommandLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes';
|
|
45
|
+
import { ChatAgentVoteDirection, IChatToolInvocation, isChatFollowup, ChatErrorLevel, ChatAgentVoteDownReason } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
51
46
|
import { localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
52
|
-
import { getChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatUri';
|
|
53
|
-
import {
|
|
47
|
+
import { getChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatUri';
|
|
48
|
+
import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
49
|
+
import { getNWords } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatWordCounter';
|
|
50
|
+
import { CodeBlockModelCollection } from '../../common/widget/codeBlockModelCollection.js';
|
|
51
|
+
import { ChatAgentLocation, ChatConfiguration, CollapsedToolsDisplayMode, ThinkingDisplayMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
52
|
+
import { MarkUnhelpfulActionId } from '../actions/chatTitleActions.js';
|
|
54
53
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
55
54
|
import { ChatAgentHover, getChatAgentHoverOptions } from './chatAgentHover.js';
|
|
56
55
|
import { ChatContentMarkdownRenderer } from './chatContentMarkdownRenderer.js';
|
|
@@ -77,13 +76,11 @@ import { ChatTaskContentPart } from './chatContentParts/chatTaskContentPart.js';
|
|
|
77
76
|
import { ChatTextEditContentPart } from './chatContentParts/chatTextEditContentPart.js';
|
|
78
77
|
import { ChatThinkingContentPart } from './chatContentParts/chatThinkingContentPart.js';
|
|
79
78
|
import { TreePool, ChatTreeContentPart } from './chatContentParts/chatTreeContentPart.js';
|
|
80
|
-
import * as chatMcpServersInteractionContent from './chatContentParts/media/chatMcpServersInteractionContent.css';
|
|
81
79
|
import { ChatToolInvocationPart } from './chatContentParts/toolInvocationParts/chatToolInvocationPart.js';
|
|
82
|
-
import { ChatMarkdownDecorationsRenderer } from './chatMarkdownDecorationsRenderer.js';
|
|
83
|
-
import { ChatCodeBlockContentProvider } from './codeBlockPart.js';
|
|
80
|
+
import { ChatMarkdownDecorationsRenderer } from './chatContentParts/chatMarkdownDecorationsRenderer.js';
|
|
81
|
+
import { ChatCodeBlockContentProvider } from './chatContentParts/codeBlockPart.js';
|
|
84
82
|
|
|
85
83
|
var ChatListItemRenderer_1;
|
|
86
|
-
registerCss(chatMcpServersInteractionContent);
|
|
87
84
|
const $ = $$1;
|
|
88
85
|
const COPILOT_USERNAME = 'GitHub Copilot';
|
|
89
86
|
const mostRecentResponseClassName = 'chat-most-recent-response';
|
|
@@ -315,7 +312,7 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
315
312
|
const codiconRestoreContainer = append(checkpointRestoreContainer, $('.codicon-container'));
|
|
316
313
|
append(codiconRestoreContainer, $('span.codicon.codicon-bookmark'));
|
|
317
314
|
const label = append(checkpointRestoreContainer, $('span.checkpoint-label-text'));
|
|
318
|
-
label.textContent = ( localize(
|
|
315
|
+
label.textContent = ( localize(5775, 'Checkpoint Restored'));
|
|
319
316
|
const checkpointRestoreToolbar = templateDisposables.add(scopedInstantiationService.createInstance(MenuWorkbenchToolBar, checkpointRestoreContainer, MenuId.ChatMessageRestoreCheckpoint, {
|
|
320
317
|
actionViewItemProvider: (action, options) => {
|
|
321
318
|
if (action instanceof MenuItemAction) {
|
|
@@ -499,10 +496,10 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
499
496
|
clearNode(templateData.detail);
|
|
500
497
|
if (element.agentOrSlashCommandDetected) {
|
|
501
498
|
const msg = element.slashCommand ? ( localize(
|
|
502
|
-
|
|
499
|
+
5776,
|
|
503
500
|
"used {0} [[(rerun without)]]",
|
|
504
501
|
`${chatSubcommandLeader}${element.slashCommand.name}`
|
|
505
|
-
)) : ( localize(
|
|
502
|
+
)) : ( localize(5777, "[[(rerun without)]]"));
|
|
506
503
|
reset(templateData.detail, renderFormattedText(msg, {
|
|
507
504
|
actionHandler: {
|
|
508
505
|
disposables: templateData.elementDisposables,
|
|
@@ -513,14 +510,14 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
513
510
|
}, $('span.agentOrSlashCommandDetected')));
|
|
514
511
|
}
|
|
515
512
|
else if (this.rendererOptions.renderStyle !== 'minimal' && !element.isComplete && !checkModeOption(this.delegate.currentChatMode(), this.rendererOptions.progressMessageAtBottomOfResponse)) {
|
|
516
|
-
templateData.detail.textContent = ( localize(
|
|
513
|
+
templateData.detail.textContent = ( localize(5778, "Working"));
|
|
517
514
|
}
|
|
518
515
|
}
|
|
519
516
|
renderConfirmationAction(element, templateData) {
|
|
520
517
|
clearNode(templateData.detail);
|
|
521
518
|
if (element.confirmation) {
|
|
522
519
|
append(templateData.detail, $('span.codicon.codicon-check', { 'aria-hidden': 'true' }));
|
|
523
|
-
append(templateData.detail, $('span.confirmation-text', undefined, ( localize(
|
|
520
|
+
append(templateData.detail, $('span.confirmation-text', undefined, ( localize(5779, 'Selected "{0}"', element.confirmation))));
|
|
524
521
|
templateData.header?.classList.remove('header-disabled');
|
|
525
522
|
templateData.header?.classList.add('partially-disabled');
|
|
526
523
|
}
|
|
@@ -612,23 +609,10 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
612
609
|
if (!this.shouldShowFileChangesSummary(element)) {
|
|
613
610
|
return undefined;
|
|
614
611
|
}
|
|
615
|
-
|
|
616
|
-
const fileChanges = [];
|
|
617
|
-
for (const part of element.model.entireResponse.value) {
|
|
618
|
-
if ((part.kind === 'textEditGroup' || part.kind === 'notebookEditGroup') && !( consideredFiles.has(( part.uri.toString(true))))) {
|
|
619
|
-
fileChanges.push({
|
|
620
|
-
kind: 'changesSummary',
|
|
621
|
-
reference: part.uri,
|
|
622
|
-
sessionId: element.sessionId,
|
|
623
|
-
requestId: element.requestId,
|
|
624
|
-
});
|
|
625
|
-
consideredFiles.add(( part.uri.toString(true)));
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
if (!fileChanges.length) {
|
|
612
|
+
if (!( element.model.entireResponse.value.some(part => part.kind === 'textEditGroup' || part.kind === 'notebookEditGroup'))) {
|
|
629
613
|
return undefined;
|
|
630
614
|
}
|
|
631
|
-
return { kind: 'changesSummary',
|
|
615
|
+
return { kind: 'changesSummary', requestId: element.requestId, sessionResource: element.sessionResource };
|
|
632
616
|
}
|
|
633
617
|
renderChatRequest(element, index, templateData) {
|
|
634
618
|
templateData.rowContainer.classList.toggle('chat-response-loading', false);
|
|
@@ -721,9 +705,11 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
721
705
|
element.currentRenderedHeight = newHeight;
|
|
722
706
|
if (fireEvent) {
|
|
723
707
|
const disposable = templateData.elementDisposables.add(scheduleAtNextAnimationFrame(getWindow(templateData.value), () => {
|
|
724
|
-
|
|
708
|
+
if (templateData.rowContainer.isConnected) {
|
|
709
|
+
element.currentRenderedHeight = templateData.rowContainer.offsetHeight;
|
|
710
|
+
this._onDidChangeItemHeight.fire({ element, height: element.currentRenderedHeight });
|
|
711
|
+
}
|
|
725
712
|
disposable.dispose();
|
|
726
|
-
this._onDidChangeItemHeight.fire({ element, height: element.currentRenderedHeight });
|
|
727
713
|
}));
|
|
728
714
|
}
|
|
729
715
|
}
|
|
@@ -731,9 +717,11 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
731
717
|
if (!templateData.currentElement) {
|
|
732
718
|
return;
|
|
733
719
|
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
720
|
+
if (templateData.rowContainer.isConnected) {
|
|
721
|
+
const newHeight = templateData.rowContainer.offsetHeight;
|
|
722
|
+
templateData.currentElement.currentRenderedHeight = newHeight;
|
|
723
|
+
this._onDidChangeItemHeight.fire({ element: templateData.currentElement, height: newHeight });
|
|
724
|
+
}
|
|
737
725
|
}
|
|
738
726
|
doNextProgressiveRender(element, index, templateData, isInRenderElement) {
|
|
739
727
|
if (!this._isVisible) {
|
|
@@ -1128,7 +1116,7 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
1128
1116
|
catch (err) {
|
|
1129
1117
|
alert(`Chat error: ${toErrorMessage(err, false)}`);
|
|
1130
1118
|
this.logService.error('ChatListItemRenderer#renderChatContentPart: error rendering content', toErrorMessage(err, true));
|
|
1131
|
-
const errorPart = this.instantiationService.createInstance(ChatErrorContentPart, ChatErrorLevel.Error, ( new MarkdownString(( localize(
|
|
1119
|
+
const errorPart = this.instantiationService.createInstance(ChatErrorContentPart, ChatErrorLevel.Error, ( new MarkdownString(( localize(5780, "Failed to render content")) + `: ${toErrorMessage(err, false)}`)), content, this.chatContentMarkdownRenderer);
|
|
1132
1120
|
return {
|
|
1133
1121
|
dispose: () => errorPart.dispose(),
|
|
1134
1122
|
domNode: errorPart.domNode,
|
|
@@ -1266,7 +1254,7 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
1266
1254
|
kind: 'thinking',
|
|
1267
1255
|
}, context, templateData);
|
|
1268
1256
|
if (thinkingPart instanceof ChatThinkingContentPart) {
|
|
1269
|
-
thinkingPart.appendItem(part?.domNode, toolInvocation.toolId, toolInvocation);
|
|
1257
|
+
thinkingPart.appendItem(part?.domNode, toolInvocation.toolId, toolInvocation, templateData.value);
|
|
1270
1258
|
thinkingPart.addDisposable(part);
|
|
1271
1259
|
thinkingPart.addDisposable(thinkingPart.onDidChangeHeight(() => {
|
|
1272
1260
|
this.updateItemHeight(templateData);
|
|
@@ -1276,7 +1264,7 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
1276
1264
|
}
|
|
1277
1265
|
if (this.shouldPinPart(toolInvocation, context.element)) {
|
|
1278
1266
|
if (lastThinking && part?.domNode && toolInvocation.presentation !== 'hidden') {
|
|
1279
|
-
lastThinking.appendItem(part?.domNode, toolInvocation.toolId, toolInvocation);
|
|
1267
|
+
lastThinking.appendItem(part?.domNode, toolInvocation.toolId, toolInvocation, templateData.value);
|
|
1280
1268
|
lastThinking.addDisposable(part);
|
|
1281
1269
|
}
|
|
1282
1270
|
}
|
|
@@ -1372,7 +1360,7 @@ let ChatListItemRenderer = class ChatListItemRenderer extends Disposable {
|
|
|
1372
1360
|
e.stopPropagation();
|
|
1373
1361
|
this._onDidClickRequest.fire(templateData);
|
|
1374
1362
|
}));
|
|
1375
|
-
|
|
1363
|
+
markdownPart.addDisposable(this.hoverService.setupManagedHover(getDefaultHoverDelegate('element'), markdownPart.domNode, ( localize(5781, "Click to Edit")), { trapFocus: true }));
|
|
1376
1364
|
}
|
|
1377
1365
|
markdownPart.addDisposable(addDisposableListener(markdownPart.domNode, EventType.FOCUS, () => {
|
|
1378
1366
|
this.hoverVisible(templateData.requestHover);
|
|
@@ -1493,15 +1481,15 @@ ChatListDelegate = ( __decorate([
|
|
|
1493
1481
|
( __param(1, ILogService))
|
|
1494
1482
|
], ChatListDelegate));
|
|
1495
1483
|
const voteDownDetailLabels = {
|
|
1496
|
-
[ChatAgentVoteDownReason.IncorrectCode]: ( localize(
|
|
1497
|
-
[ChatAgentVoteDownReason.DidNotFollowInstructions]: ( localize(
|
|
1498
|
-
[ChatAgentVoteDownReason.MissingContext]: ( localize(
|
|
1499
|
-
[ChatAgentVoteDownReason.OffensiveOrUnsafe]: ( localize(
|
|
1500
|
-
[ChatAgentVoteDownReason.PoorlyWrittenOrFormatted]: ( localize(
|
|
1501
|
-
[ChatAgentVoteDownReason.RefusedAValidRequest]: ( localize(
|
|
1502
|
-
[ChatAgentVoteDownReason.IncompleteCode]: ( localize(
|
|
1503
|
-
[ChatAgentVoteDownReason.WillReportIssue]: ( localize(
|
|
1504
|
-
[ChatAgentVoteDownReason.Other]: ( localize(
|
|
1484
|
+
[ChatAgentVoteDownReason.IncorrectCode]: ( localize(5782, "Suggested incorrect code")),
|
|
1485
|
+
[ChatAgentVoteDownReason.DidNotFollowInstructions]: ( localize(5783, "Didn't follow instructions")),
|
|
1486
|
+
[ChatAgentVoteDownReason.MissingContext]: ( localize(5784, "Missing context")),
|
|
1487
|
+
[ChatAgentVoteDownReason.OffensiveOrUnsafe]: ( localize(5785, "Offensive or unsafe")),
|
|
1488
|
+
[ChatAgentVoteDownReason.PoorlyWrittenOrFormatted]: ( localize(5786, "Poorly written or formatted")),
|
|
1489
|
+
[ChatAgentVoteDownReason.RefusedAValidRequest]: ( localize(5787, "Refused a valid request")),
|
|
1490
|
+
[ChatAgentVoteDownReason.IncompleteCode]: ( localize(5788, "Incomplete code")),
|
|
1491
|
+
[ChatAgentVoteDownReason.WillReportIssue]: ( localize(5789, "Report an issue")),
|
|
1492
|
+
[ChatAgentVoteDownReason.Other]: ( localize(5790, "Other")),
|
|
1505
1493
|
};
|
|
1506
1494
|
let ChatVoteDownButton = class ChatVoteDownButton extends DropdownMenuActionViewItem {
|
|
1507
1495
|
constructor(action, options, commandService, issueService, logService, contextMenuService) {
|