@codingame/monaco-vscode-katex-common 24.3.0 → 25.0.1
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 +107 -39
- 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 +19 -132
- 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
|
@@ -3,20 +3,20 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { $, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { alert } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
5
5
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
|
-
import {
|
|
6
|
+
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
7
7
|
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
8
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
9
9
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
10
10
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { IChatMarkdownAnchorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service';
|
|
11
|
+
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
12
|
+
import { renderFileWidgets } from './chatInlineAnchorWidget.js';
|
|
13
|
+
import { getToolApprovalMessage } from './toolInvocationParts/chatToolPartUtilities.js';
|
|
14
|
+
import { IChatMarkdownAnchorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service';
|
|
15
15
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
16
16
|
import { AccessibilityWorkbenchSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
17
17
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
18
18
|
import { HoverStyle } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hover';
|
|
19
|
-
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service';
|
|
19
|
+
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service';
|
|
20
20
|
|
|
21
21
|
let ChatProgressContentPart = class ChatProgressContentPart extends Disposable {
|
|
22
22
|
constructor(progress, chatContentMarkdownRenderer, context, forceShowSpinner, forceShowMessage, icon, toolInvocation, instantiationService, chatMarkdownAnchorService, configurationService) {
|
|
@@ -69,40 +69,7 @@ let ChatProgressContentPart = class ChatProgressContentPart extends Disposable {
|
|
|
69
69
|
return other.kind === 'progressMessage' && this.showSpinner === showSpinner;
|
|
70
70
|
}
|
|
71
71
|
createApprovalMessage() {
|
|
72
|
-
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
const reason = IChatToolInvocation.executionConfirmedOrDenied(this.toolInvocation);
|
|
76
|
-
if (!reason || typeof reason === 'boolean') {
|
|
77
|
-
return undefined;
|
|
78
|
-
}
|
|
79
|
-
let md;
|
|
80
|
-
switch (reason.type) {
|
|
81
|
-
case ToolConfirmKind.Setting:
|
|
82
|
-
md = ( localize(
|
|
83
|
-
5077,
|
|
84
|
-
'Auto approved by {0}',
|
|
85
|
-
createMarkdownCommandLink({ title: '`' + reason.id + '`', id: 'workbench.action.openSettings', arguments: [reason.id] }, false)
|
|
86
|
-
));
|
|
87
|
-
break;
|
|
88
|
-
case ToolConfirmKind.LmServicePerTool:
|
|
89
|
-
md = reason.scope === 'session'
|
|
90
|
-
? ( localize(5078, 'Auto approved for this session'))
|
|
91
|
-
: reason.scope === 'workspace'
|
|
92
|
-
? ( localize(5079, 'Auto approved for this workspace'))
|
|
93
|
-
: ( localize(5080, 'Auto approved for this profile'));
|
|
94
|
-
md += ' (' + createMarkdownCommandLink({ title: ( localize(5081, 'Edit')), id: 'workbench.action.chat.editToolApproval', arguments: [reason.scope] }) + ')';
|
|
95
|
-
break;
|
|
96
|
-
case ToolConfirmKind.UserAction:
|
|
97
|
-
case ToolConfirmKind.Denied:
|
|
98
|
-
case ToolConfirmKind.ConfirmationNotNeeded:
|
|
99
|
-
default:
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
if (!md) {
|
|
103
|
-
return undefined;
|
|
104
|
-
}
|
|
105
|
-
return ( new MarkdownString(md, { isTrusted: true }));
|
|
72
|
+
return this.toolInvocation && getToolApprovalMessage(this.toolInvocation);
|
|
106
73
|
}
|
|
107
74
|
};
|
|
108
75
|
ChatProgressContentPart = ( __decorate([
|
|
@@ -137,12 +104,12 @@ let ChatWorkingProgressContentPart = class ChatWorkingProgressContentPart extend
|
|
|
137
104
|
constructor(_workingProgress, chatContentMarkdownRenderer, context, instantiationService, chatMarkdownAnchorService, configurationService, languageModelToolsService) {
|
|
138
105
|
const progressMessage = {
|
|
139
106
|
kind: 'progressMessage',
|
|
140
|
-
content: ( new MarkdownString()).appendText(( localize(
|
|
107
|
+
content: ( new MarkdownString()).appendText(( localize(5652, "Working...")))
|
|
141
108
|
};
|
|
142
109
|
super(progressMessage, chatContentMarkdownRenderer, context, undefined, undefined, undefined, undefined, instantiationService, chatMarkdownAnchorService, configurationService);
|
|
143
110
|
this._register(languageModelToolsService.onDidPrepareToolCallBecomeUnresponsive(e => {
|
|
144
111
|
if (context.element.sessionId === e.sessionId) {
|
|
145
|
-
this.updateMessage(( new MarkdownString(( localize(
|
|
112
|
+
this.updateMessage(( new MarkdownString(( localize(5653, "Waiting for tool '{0}' to respond...", e.toolData.displayName)))));
|
|
146
113
|
}
|
|
147
114
|
}));
|
|
148
115
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IChatPullRequestContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
3
|
-
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
2
|
+
import { IChatPullRequestContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
3
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
4
4
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
5
|
-
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
5
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
6
6
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
7
7
|
export declare class ChatPullRequestContentPart extends Disposable implements IChatContentPart {
|
|
8
8
|
private readonly pullRequestContent;
|
|
@@ -33,7 +33,7 @@ let ChatPullRequestContentPart = class ChatPullRequestContentPart extends Dispos
|
|
|
33
33
|
descriptionWrapper.textContent = plainText;
|
|
34
34
|
const seeMoreContainer = append(descriptionElement, $('.see-more'));
|
|
35
35
|
const seeMore = append(seeMoreContainer, $('a'));
|
|
36
|
-
seeMore.textContent = ( localize(
|
|
36
|
+
seeMore.textContent = ( localize(5654, 'See more'));
|
|
37
37
|
this._register(addDisposableListener(seeMore, 'click', (e) => {
|
|
38
38
|
e.preventDefault();
|
|
39
39
|
e.stopPropagation();
|
|
@@ -3,9 +3,9 @@ import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platfo
|
|
|
3
3
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
4
4
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
5
5
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
6
|
-
import { IChatErrorDetailsPart, IChatRendererContent, IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
6
|
+
import { IChatErrorDetailsPart, IChatRendererContent, IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
7
7
|
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
8
|
-
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
8
|
+
import { IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
9
9
|
export declare class ChatQuotaExceededPart extends Disposable implements IChatContentPart {
|
|
10
10
|
private readonly content;
|
|
11
11
|
readonly domNode: HTMLElement;
|
|
@@ -48,10 +48,10 @@ let ChatQuotaExceededPart = class ChatQuotaExceededPart extends Disposable {
|
|
|
48
48
|
switch (chatEntitlementService.entitlement) {
|
|
49
49
|
case ChatEntitlement.Pro:
|
|
50
50
|
case ChatEntitlement.ProPlus:
|
|
51
|
-
primaryButtonLabel = ( localize(
|
|
51
|
+
primaryButtonLabel = ( localize(5655, "Manage Paid Premium Requests"));
|
|
52
52
|
break;
|
|
53
53
|
case ChatEntitlement.Free:
|
|
54
|
-
primaryButtonLabel = ( localize(
|
|
54
|
+
primaryButtonLabel = ( localize(5656, "Upgrade to GitHub Copilot Pro"));
|
|
55
55
|
break;
|
|
56
56
|
}
|
|
57
57
|
let hasAddedWaitWarning = false;
|
|
@@ -60,7 +60,7 @@ let ChatQuotaExceededPart = class ChatQuotaExceededPart extends Disposable {
|
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
hasAddedWaitWarning = true;
|
|
63
|
-
append(messageContainer, $('.chat-quota-wait-warning', undefined, ( localize(
|
|
63
|
+
append(messageContainer, $('.chat-quota-wait-warning', undefined, ( localize(5657, "Changes may take a few minutes to take effect."))));
|
|
64
64
|
};
|
|
65
65
|
let hasAddedRetryButton = false;
|
|
66
66
|
const addRetryButtonIfNeeded = () => {
|
|
@@ -73,7 +73,7 @@ let ChatQuotaExceededPart = class ChatQuotaExceededPart extends Disposable {
|
|
|
73
73
|
buttonForeground: asCssVariable(textLinkForeground)
|
|
74
74
|
})));
|
|
75
75
|
retryButton.element.classList.add('chat-quota-error-secondary-button');
|
|
76
|
-
retryButton.label = ( localize(
|
|
76
|
+
retryButton.label = ( localize(5658, "Click to Retry"));
|
|
77
77
|
this._onDidChangeHeight.fire();
|
|
78
78
|
this._register(retryButton.onDidClick(() => {
|
|
79
79
|
const widget = chatWidgetService.getWidgetBySessionResource(element.sessionResource);
|
|
@@ -10,13 +10,14 @@ import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/l
|
|
|
10
10
|
import { WorkbenchList } from "@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService";
|
|
11
11
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
12
12
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
13
|
-
import { ModifiedFileEntryState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
|
|
14
|
-
import { IChatContentReference, IChatWarningMessage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
15
|
-
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
13
|
+
import { ModifiedFileEntryState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
|
|
14
|
+
import { IChatContentReference, IChatWarningMessage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
15
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
16
16
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
17
17
|
import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js";
|
|
18
18
|
import { IDisposableReference } from "./chatCollections.js";
|
|
19
|
-
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
19
|
+
import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
20
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
20
21
|
export interface IChatReferenceListItem extends IChatContentReference {
|
|
21
22
|
title?: string;
|
|
22
23
|
description?: string;
|
|
@@ -38,7 +39,7 @@ export declare class ChatCollapsibleListContentPart extends ChatCollapsibleConte
|
|
|
38
39
|
private readonly menuService;
|
|
39
40
|
private readonly instantiationService;
|
|
40
41
|
private readonly contextMenuService;
|
|
41
|
-
constructor(data: ReadonlyArray<IChatCollapsibleListItem>, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService);
|
|
42
|
+
constructor(data: ReadonlyArray<IChatCollapsibleListItem>, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, hoverMessage: IMarkdownString | undefined, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, hoverService: IHoverService);
|
|
42
43
|
protected initContent(): HTMLElement;
|
|
43
44
|
hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean;
|
|
44
45
|
}
|
|
@@ -47,7 +48,7 @@ export interface IChatUsedReferencesListOptions {
|
|
|
47
48
|
}
|
|
48
49
|
export declare class ChatUsedReferencesListContentPart extends ChatCollapsibleListContentPart {
|
|
49
50
|
private readonly options;
|
|
50
|
-
constructor(data: ReadonlyArray<IChatCollapsibleListItem>, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, options: IChatUsedReferencesListOptions, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService);
|
|
51
|
+
constructor(data: ReadonlyArray<IChatCollapsibleListItem>, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, options: IChatUsedReferencesListOptions, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, hoverService: IHoverService);
|
|
51
52
|
protected isExpanded(): boolean;
|
|
52
53
|
protected setExpanded(value: boolean): void;
|
|
53
54
|
}
|
|
@@ -33,19 +33,20 @@ import { ResourceContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workb
|
|
|
33
33
|
import { SETTINGS_AUTHORITY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences';
|
|
34
34
|
import { createFileIconThemableTreeContainerScope } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/browser/views/explorerView';
|
|
35
35
|
import { ExplorerFolderContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/common/files';
|
|
36
|
-
import { chatEditingWidgetFileStateContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService';
|
|
37
|
-
import { ChatResponseReferencePartStatusKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
36
|
+
import { chatEditingWidgetFileStateContextKey } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService';
|
|
37
|
+
import { ChatResponseReferencePartStatusKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
38
38
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
39
39
|
import { ChatCollapsibleContentPart } from './chatCollapsibleContentPart.js';
|
|
40
40
|
import { ResourcePool } from './chatCollections.js';
|
|
41
|
+
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
41
42
|
|
|
42
43
|
var CollapsibleListRenderer_1, DividerRenderer_1;
|
|
43
44
|
const $ = $$1;
|
|
44
45
|
let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extends ChatCollapsibleContentPart {
|
|
45
|
-
constructor(data, labelOverride, context, contentReferencesListPool, openerService, menuService, instantiationService, contextMenuService) {
|
|
46
|
+
constructor(data, labelOverride, context, contentReferencesListPool, hoverMessage, openerService, menuService, instantiationService, contextMenuService, hoverService) {
|
|
46
47
|
super(labelOverride ?? (data.length > 1 ?
|
|
47
|
-
( localize(
|
|
48
|
-
( localize(
|
|
48
|
+
( localize(5659, "Used {0} references", data.length)) :
|
|
49
|
+
( localize(5660, "Used {0} reference", 1))), context, hoverMessage, hoverService);
|
|
49
50
|
this.data = data;
|
|
50
51
|
this.contentReferencesListPool = contentReferencesListPool;
|
|
51
52
|
this.openerService = openerService;
|
|
@@ -108,14 +109,15 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
|
|
|
108
109
|
}
|
|
109
110
|
};
|
|
110
111
|
ChatCollapsibleListContentPart = ( __decorate([
|
|
111
|
-
( __param(
|
|
112
|
-
( __param(
|
|
113
|
-
( __param(
|
|
114
|
-
( __param(
|
|
112
|
+
( __param(5, IOpenerService)),
|
|
113
|
+
( __param(6, IMenuService)),
|
|
114
|
+
( __param(7, IInstantiationService)),
|
|
115
|
+
( __param(8, IContextMenuService)),
|
|
116
|
+
( __param(9, IHoverService))
|
|
115
117
|
], ChatCollapsibleListContentPart));
|
|
116
118
|
let ChatUsedReferencesListContentPart = class ChatUsedReferencesListContentPart extends ChatCollapsibleListContentPart {
|
|
117
|
-
constructor(data, labelOverride, context, contentReferencesListPool, options, openerService, menuService, instantiationService, contextMenuService) {
|
|
118
|
-
super(data, labelOverride, context, contentReferencesListPool, openerService, menuService, instantiationService, contextMenuService);
|
|
119
|
+
constructor(data, labelOverride, context, contentReferencesListPool, options, openerService, menuService, instantiationService, contextMenuService, hoverService) {
|
|
120
|
+
super(data, labelOverride, context, contentReferencesListPool, undefined, openerService, menuService, instantiationService, contextMenuService, hoverService);
|
|
119
121
|
this.options = options;
|
|
120
122
|
if (data.length === 0) {
|
|
121
123
|
hide(this.domNode);
|
|
@@ -134,7 +136,8 @@ ChatUsedReferencesListContentPart = ( __decorate([
|
|
|
134
136
|
( __param(5, IOpenerService)),
|
|
135
137
|
( __param(6, IMenuService)),
|
|
136
138
|
( __param(7, IInstantiationService)),
|
|
137
|
-
( __param(8, IContextMenuService))
|
|
139
|
+
( __param(8, IContextMenuService)),
|
|
140
|
+
( __param(9, IHoverService))
|
|
138
141
|
], ChatUsedReferencesListContentPart));
|
|
139
142
|
let CollapsibleListPool = class CollapsibleListPool extends Disposable {
|
|
140
143
|
get inUse() {
|
|
@@ -179,7 +182,7 @@ let CollapsibleListPool = class CollapsibleListPool extends Disposable {
|
|
|
179
182
|
return basename(reference.uri.path);
|
|
180
183
|
}
|
|
181
184
|
},
|
|
182
|
-
getWidgetAriaLabel: () => ( localize(
|
|
185
|
+
getWidgetAriaLabel: () => ( localize(5661, "Collapsible Chat References List"))
|
|
183
186
|
},
|
|
184
187
|
dnd: {
|
|
185
188
|
getDragURI: (element) => getResourceForElement(element)?.toString() ?? null,
|
|
@@ -327,7 +330,7 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
327
330
|
}
|
|
328
331
|
else if (uri.scheme === this.productService.urlProtocol && isEqualAuthority(uri.authority, SETTINGS_AUTHORITY)) {
|
|
329
332
|
const settingId = uri.path.substring(1);
|
|
330
|
-
templateData.label.setResource({ resource: uri, name: settingId }, { icon: Codicon.settingsGear, title: ( localize(
|
|
333
|
+
templateData.label.setResource({ resource: uri, name: settingId }, { icon: Codicon.settingsGear, title: ( localize(5662, "Open setting '{0}'", settingId)), strikethrough: data.excluded, extraClasses });
|
|
331
334
|
}
|
|
332
335
|
else if (matchesSomeScheme(uri, Schemas.mailto, Schemas.http, Schemas.https)) {
|
|
333
336
|
templateData.label.setResource({ resource: uri, name: ( uri.toString(true)) }, { icon: icon ?? Codicon.globe, title: data.options?.status?.description ?? data.title ?? ( uri.toString(true)), strikethrough: data.excluded, extraClasses });
|
|
@@ -364,7 +367,7 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
364
367
|
templateData.addedSpan.textContent = `+${diffMeta.added}`;
|
|
365
368
|
templateData.removedSpan.textContent = `-${diffMeta.removed}`;
|
|
366
369
|
templateData.fileDiffsContainer.setAttribute('aria-label', ( localize(
|
|
367
|
-
|
|
370
|
+
5663,
|
|
368
371
|
'{0} lines added, {1} lines removed',
|
|
369
372
|
diffMeta.added,
|
|
370
373
|
diffMeta.removed
|
|
@@ -481,7 +484,7 @@ registerAction2(class AddToChatAction extends Action2 {
|
|
|
481
484
|
super({
|
|
482
485
|
id: AddToChatAction.id,
|
|
483
486
|
title: {
|
|
484
|
-
...( localize2(
|
|
487
|
+
...( localize2(5664, "Add File to Chat")),
|
|
485
488
|
},
|
|
486
489
|
f1: false,
|
|
487
490
|
menu: [{
|
|
@@ -509,7 +512,7 @@ registerAction2(class OpenChatReferenceLinkAction extends Action2 {
|
|
|
509
512
|
super({
|
|
510
513
|
id: OpenChatReferenceLinkAction.id,
|
|
511
514
|
title: {
|
|
512
|
-
...( localize2(
|
|
515
|
+
...( localize2(5665, "Copy Link")),
|
|
513
516
|
},
|
|
514
517
|
f1: false,
|
|
515
518
|
menu: [{
|
|
@@ -42,8 +42,8 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
this._currentMode = mode;
|
|
45
|
-
const modeName = mode.name.get() || mode.label.get() || ( localize(
|
|
46
|
-
this.titleElement.textContent = ( localize(
|
|
45
|
+
const modeName = mode.name.get() || mode.label.get() || ( localize(5666, 'current mode'));
|
|
46
|
+
this.titleElement.textContent = ( localize(5667, 'Proceed from {0}', modeName));
|
|
47
47
|
const childrenToRemove = [];
|
|
48
48
|
for (let i = 1; i < this.promptsContainer.children.length; i++) {
|
|
49
49
|
childrenToRemove.push(this.promptsContainer.children[i]);
|
|
@@ -68,7 +68,7 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
68
68
|
const button = $('.chat-welcome-view-suggested-prompt');
|
|
69
69
|
button.setAttribute('tabindex', '0');
|
|
70
70
|
button.setAttribute('role', 'button');
|
|
71
|
-
button.setAttribute('aria-label', ( localize(
|
|
71
|
+
button.setAttribute('aria-label', ( localize(5668, '{0}', handoff.label)));
|
|
72
72
|
const titleElement = append(button, $('.chat-welcome-view-suggested-prompt-title'));
|
|
73
73
|
titleElement.textContent = handoff.label;
|
|
74
74
|
const showContinueOn = handoff.showContinueOn ?? true;
|
|
@@ -79,7 +79,7 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
79
79
|
const dropdownContainer = append(button, $('.chat-suggest-next-dropdown'));
|
|
80
80
|
dropdownContainer.setAttribute('tabindex', '0');
|
|
81
81
|
dropdownContainer.setAttribute('role', 'button');
|
|
82
|
-
dropdownContainer.setAttribute('aria-label', ( localize(
|
|
82
|
+
dropdownContainer.setAttribute('aria-label', ( localize(5669, 'More options for {0}', handoff.label)));
|
|
83
83
|
dropdownContainer.setAttribute('aria-haspopup', 'true');
|
|
84
84
|
const separator = append(dropdownContainer, $('.chat-suggest-next-separator'));
|
|
85
85
|
separator.setAttribute('aria-hidden', 'true');
|
|
@@ -94,7 +94,7 @@ let ChatSuggestNextWidget = class ChatSuggestNextWidget extends Disposable {
|
|
|
94
94
|
const name = getAgentSessionProviderName(provider);
|
|
95
95
|
return (new Action(
|
|
96
96
|
contrib.type,
|
|
97
|
-
localize(
|
|
97
|
+
localize(5670, "Continue in {0}", name),
|
|
98
98
|
ThemeIcon.isThemeIcon(icon) ? ThemeIcon.asClassName(icon) : undefined,
|
|
99
99
|
true,
|
|
100
100
|
() => {
|
|
@@ -2,9 +2,9 @@ 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 { 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 { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
6
|
-
import { IChatTask, IChatTaskSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
7
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
5
|
+
import { IChatProgressRenderableResponseContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
6
|
+
import { IChatTask, IChatTaskSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
7
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
8
8
|
import { CollapsibleListPool } from "./chatReferencesContentPart.js";
|
|
9
9
|
export declare class ChatTaskContentPart extends Disposable implements IChatContentPart {
|
|
10
10
|
private readonly task;
|
|
@@ -13,7 +13,7 @@ let ChatTaskContentPart = class ChatTaskContentPart extends Disposable {
|
|
|
13
13
|
this.task = task;
|
|
14
14
|
if (task.progress.length) {
|
|
15
15
|
this.isSettled = true;
|
|
16
|
-
const refsPart = this._register(instantiationService.createInstance(ChatCollapsibleListContentPart, task.progress, task.content.value, context, contentReferencesListPool));
|
|
16
|
+
const refsPart = this._register(instantiationService.createInstance(ChatCollapsibleListContentPart, task.progress, task.content.value, context, contentReferencesListPool, undefined));
|
|
17
17
|
this.domNode = $('.chat-progress-task');
|
|
18
18
|
this.domNode.appendChild(refsPart.domNode);
|
|
19
19
|
this.onDidChangeHeight = refsPart.onDidChangeHeight;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
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
|
-
import { IChatProgressRenderableResponseContent, IChatTextEditGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
3
|
+
import { IChatProgressRenderableResponseContent, IChatTextEditGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
4
4
|
import { IChatListItemRendererOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
5
5
|
import { DiffEditorPool } from "./chatContentCodePools.js";
|
|
6
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
6
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
7
7
|
import { ICodeCompareModelService } from "./chatTextEditContentPart.service.js";
|
|
8
8
|
export declare class ChatTextEditContentPart extends Disposable implements IChatContentPart {
|
|
9
9
|
private readonly codeCompareModelService;
|
|
@@ -18,7 +18,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ins
|
|
|
18
18
|
import '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/modelService';
|
|
19
19
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
20
20
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
21
|
-
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
21
|
+
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
22
22
|
import { ICodeCompareModelService } from './chatTextEditContentPart.service.js';
|
|
23
23
|
|
|
24
24
|
const $ = $$1;
|
|
@@ -35,8 +35,8 @@ let ChatTextEditContentPart = class ChatTextEditContentPart extends Disposable {
|
|
|
35
35
|
this.domNode = $('.interactive-edits-summary', undefined, !element.isComplete
|
|
36
36
|
? ''
|
|
37
37
|
: element.isCanceled
|
|
38
|
-
? ( localize(
|
|
39
|
-
: ( localize(
|
|
38
|
+
? ( localize(5671, "Making changes was aborted."))
|
|
39
|
+
: ( localize(5672, "Made changes.")));
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
this.domNode = $('div');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IReference } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IResolvedTextEditorModel } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService";
|
|
3
|
-
import { IChatTextEditGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
4
|
-
import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
3
|
+
import { IChatTextEditGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
4
|
+
import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
5
5
|
export declare const ICodeCompareModelService: import("@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation").ServiceIdentifier<ICodeCompareModelService>;
|
|
6
6
|
export interface ICodeCompareModelService {
|
|
7
7
|
_serviceBrand: undefined;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { IChatThinkingPart, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService";
|
|
2
|
-
import { IChatContentPartRenderContext, IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts";
|
|
3
|
-
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
1
|
+
import { IChatThinkingPart, IChatToolInvocation, IChatToolInvocationSerialized } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
2
|
+
import { IChatContentPartRenderContext, IChatContentPart } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts";
|
|
3
|
+
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
4
4
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
5
5
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
7
|
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
8
8
|
import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js";
|
|
9
|
-
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service";
|
|
9
|
+
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service";
|
|
10
10
|
import { ILanguageModelsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service";
|
|
11
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
11
12
|
export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart implements IChatContentPart {
|
|
12
13
|
private readonly chatContentMarkdownRenderer;
|
|
13
14
|
private readonly instantiationService;
|
|
@@ -30,9 +31,9 @@ export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart
|
|
|
30
31
|
private toolInvocationCount;
|
|
31
32
|
private streamingCompleted;
|
|
32
33
|
private isActive;
|
|
33
|
-
private currentToolCallLabel;
|
|
34
34
|
private toolInvocations;
|
|
35
|
-
|
|
35
|
+
private singleToolItemInfo;
|
|
36
|
+
constructor(content: IChatThinkingPart, context: IChatContentPartRenderContext, chatContentMarkdownRenderer: IMarkdownRenderer, instantiationService: IInstantiationService, configurationService: IConfigurationService, chatMarkdownAnchorService: IChatMarkdownAnchorService, languageModelsService: ILanguageModelsService, hoverService: IHoverService);
|
|
36
37
|
protected initContent(): HTMLElement;
|
|
37
38
|
private renderMarkdown;
|
|
38
39
|
private setDropdownClickable;
|
|
@@ -45,8 +46,9 @@ export declare class ChatThinkingContentPart extends ChatCollapsibleContentPart
|
|
|
45
46
|
finalizeTitleIfDefault(): void;
|
|
46
47
|
private setGeneratedTitleOnToolInvocations;
|
|
47
48
|
private generateTitleViaLLM;
|
|
49
|
+
private restoreSingleToolToOriginalPosition;
|
|
48
50
|
private setFallbackTitle;
|
|
49
|
-
appendItem(content: HTMLElement, toolInvocationId?: string, toolInvocation?: IChatToolInvocation | IChatToolInvocationSerialized): void;
|
|
51
|
+
appendItem(content: HTMLElement, toolInvocationId?: string, toolInvocation?: IChatToolInvocation | IChatToolInvocationSerialized, originalParent?: HTMLElement): void;
|
|
50
52
|
setupThinkingContainer(content: IChatThinkingPart, context: IChatContentPartRenderContext): void;
|
|
51
53
|
protected setTitle(title: string, omitPrefix?: boolean): void;
|
|
52
54
|
hasSameContent(other: IChatRendererContent, _followingContent: IChatRendererContent[], _element: ChatTreeItem): boolean;
|