@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
|
@@ -15,7 +15,7 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
15
15
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
16
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
17
17
|
import { ChatMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
18
|
-
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
18
|
+
import { isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
19
19
|
import { CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, ACTION_REGENERATE_RESPONSE, ACTION_TOGGLE_DIFF, ACTION_REPORT_ISSUE, MENU_INLINE_CHAT_WIDGET_STATUS } from '../common/inlineChat.js';
|
|
20
20
|
import { EditorBasedInlineChatWidget } from './inlineChatWidget.js';
|
|
21
21
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
@@ -225,7 +225,7 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
225
225
|
this._ctxCursorPosition.reset();
|
|
226
226
|
this.widget.chatWidget.setVisible(false);
|
|
227
227
|
super.hide();
|
|
228
|
-
status(( localize(
|
|
228
|
+
status(( localize(8355, 'Closed inline chat widget')));
|
|
229
229
|
scrollState.restore(this.editor);
|
|
230
230
|
}
|
|
231
231
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { EditOperation } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation';
|
|
3
3
|
import { TrackedRangeStickiness } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
|
|
4
4
|
import { AsyncIterableSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
5
|
-
import { getNWords } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatWordCounter';
|
|
5
|
+
import { getNWords } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatWordCounter';
|
|
6
6
|
|
|
7
7
|
async function performAsyncTextEdit(model, edit, progress, obs, editSource) {
|
|
8
8
|
const [id] = model.deltaDecorations([], [{
|
|
@@ -4,7 +4,6 @@ export declare enum InlineChatConfigKeys {
|
|
|
4
4
|
FinishOnType = "inlineChat.finishOnType",
|
|
5
5
|
StartWithOverlayWidget = "inlineChat.startWithOverlayWidget",
|
|
6
6
|
HoldToSpeech = "inlineChat.holdToSpeech",
|
|
7
|
-
AccessibleDiffView = "inlineChat.accessibleDiffView",
|
|
8
7
|
/** @deprecated do not read on client */
|
|
9
8
|
EnableV2 = "inlineChat.enableV2",
|
|
10
9
|
notebookAgent = "inlineChat.notebookAgent"
|
|
@@ -22,7 +22,6 @@ var InlineChatConfigKeys;
|
|
|
22
22
|
InlineChatConfigKeys["FinishOnType"] = "inlineChat.finishOnType";
|
|
23
23
|
InlineChatConfigKeys["StartWithOverlayWidget"] = "inlineChat.startWithOverlayWidget";
|
|
24
24
|
InlineChatConfigKeys["HoldToSpeech"] = "inlineChat.holdToSpeech";
|
|
25
|
-
InlineChatConfigKeys["AccessibleDiffView"] = "inlineChat.accessibleDiffView";
|
|
26
25
|
InlineChatConfigKeys["EnableV2"] = "inlineChat.enableV2";
|
|
27
26
|
InlineChatConfigKeys["notebookAgent"] = "inlineChat.notebookAgent";
|
|
28
27
|
})(InlineChatConfigKeys || (InlineChatConfigKeys = {}));
|
|
@@ -31,7 +30,7 @@ var InlineChatConfigKeys;
|
|
|
31
30
|
properties: {
|
|
32
31
|
[InlineChatConfigKeys.FinishOnType]: {
|
|
33
32
|
description: ( localize(
|
|
34
|
-
|
|
33
|
+
8356,
|
|
35
34
|
"Whether to finish an inline chat session when typing outside of changed regions."
|
|
36
35
|
)),
|
|
37
36
|
default: false,
|
|
@@ -39,31 +38,14 @@ var InlineChatConfigKeys;
|
|
|
39
38
|
},
|
|
40
39
|
[InlineChatConfigKeys.HoldToSpeech]: {
|
|
41
40
|
description: ( localize(
|
|
42
|
-
|
|
41
|
+
8357,
|
|
43
42
|
"Whether holding the inline chat keybinding will automatically enable speech recognition."
|
|
44
43
|
)),
|
|
45
44
|
default: true,
|
|
46
45
|
type: 'boolean'
|
|
47
46
|
},
|
|
48
|
-
[InlineChatConfigKeys.AccessibleDiffView]: {
|
|
49
|
-
description: ( localize(
|
|
50
|
-
8328,
|
|
51
|
-
"Whether the inline chat also renders an accessible diff viewer for its changes."
|
|
52
|
-
)),
|
|
53
|
-
default: 'auto',
|
|
54
|
-
type: 'string',
|
|
55
|
-
enum: ['auto', 'on', 'off'],
|
|
56
|
-
markdownEnumDescriptions: [
|
|
57
|
-
( localize(
|
|
58
|
-
8329,
|
|
59
|
-
"The accessible diff viewer is based on screen reader mode being enabled."
|
|
60
|
-
)),
|
|
61
|
-
( localize(8330, "The accessible diff viewer is always enabled.")),
|
|
62
|
-
( localize(8331, "The accessible diff viewer is never enabled.")),
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
47
|
[InlineChatConfigKeys.EnableV2]: {
|
|
66
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(8358, "Whether to use the next version of inline chat.")),
|
|
67
49
|
default: false,
|
|
68
50
|
type: 'boolean',
|
|
69
51
|
tags: ['preview'],
|
|
@@ -72,7 +54,7 @@ var InlineChatConfigKeys;
|
|
|
72
54
|
}
|
|
73
55
|
},
|
|
74
56
|
[InlineChatConfigKeys.notebookAgent]: {
|
|
75
|
-
markdownDescription: ( localize(
|
|
57
|
+
markdownDescription: ( localize(8359, "Enable agent-like behavior for inline chat widget in notebooks.")),
|
|
76
58
|
default: false,
|
|
77
59
|
type: 'boolean',
|
|
78
60
|
tags: ['experimental'],
|
|
@@ -90,42 +72,41 @@ var InlineChatResponseType;
|
|
|
90
72
|
InlineChatResponseType["MessagesAndEdits"] = "messagesAndEdits";
|
|
91
73
|
})(InlineChatResponseType || (InlineChatResponseType = {}));
|
|
92
74
|
const CTX_INLINE_CHAT_POSSIBLE = ( new RawContextKey('inlineChatPossible', false, ( localize(
|
|
93
|
-
|
|
75
|
+
8360,
|
|
94
76
|
"Whether a provider for inline chat exists and whether an editor for inline chat is open"
|
|
95
77
|
))));
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey('inlineChatFocused', false, ( localize(8340, "Whether the interactive editor input is focused"))));
|
|
78
|
+
const CTX_INLINE_CHAT_HAS_AGENT2 = ( new RawContextKey('inlineChatHasEditsAgent', false, ( localize(8361, "Whether an agent for inline for interactive editors exists"))));
|
|
79
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE = ( new RawContextKey('inlineChatHasNotebookInline', false, ( localize(8362, "Whether an agent for notebook cells exists"))));
|
|
80
|
+
const CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT = ( new RawContextKey('inlineChatHasNotebookAgent', false, ( localize(8363, "Whether an agent for notebook cells exists"))));
|
|
81
|
+
const CTX_INLINE_CHAT_VISIBLE = ( new RawContextKey('inlineChatVisible', false, ( localize(8364, "Whether the interactive editor input is visible"))));
|
|
82
|
+
const CTX_INLINE_CHAT_FOCUSED = ( new RawContextKey('inlineChatFocused', false, ( localize(8365, "Whether the interactive editor input is focused"))));
|
|
102
83
|
const CTX_INLINE_CHAT_EDITING = ( new RawContextKey('inlineChatEditing', true, ( localize(
|
|
103
|
-
|
|
84
|
+
8366,
|
|
104
85
|
"Whether the user is currently editing or generating code in the inline chat"
|
|
105
86
|
))));
|
|
106
|
-
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey('inlineChatResponseFocused', false, ( localize(
|
|
87
|
+
const CTX_INLINE_CHAT_RESPONSE_FOCUSED = ( new RawContextKey('inlineChatResponseFocused', false, ( localize(8367, "Whether the interactive widget's response is focused"))));
|
|
107
88
|
const CTX_INLINE_CHAT_INNER_CURSOR_FIRST = ( new RawContextKey('inlineChatInnerCursorFirst', false, ( localize(
|
|
108
|
-
|
|
89
|
+
8368,
|
|
109
90
|
"Whether the cursor of the iteractive editor input is on the first line"
|
|
110
91
|
))));
|
|
111
92
|
const CTX_INLINE_CHAT_INNER_CURSOR_LAST = ( new RawContextKey('inlineChatInnerCursorLast', false, ( localize(
|
|
112
|
-
|
|
93
|
+
8369,
|
|
113
94
|
"Whether the cursor of the iteractive editor input is on the last line"
|
|
114
95
|
))));
|
|
115
96
|
const CTX_INLINE_CHAT_OUTER_CURSOR_POSITION = ( new RawContextKey('inlineChatOuterCursorPosition', '', ( localize(
|
|
116
|
-
|
|
97
|
+
8370,
|
|
117
98
|
"Whether the cursor of the outer editor is above or below the interactive editor input"
|
|
118
99
|
))));
|
|
119
|
-
const CTX_INLINE_CHAT_HAS_STASHED_SESSION = ( new RawContextKey('inlineChatHasStashedSession', false, ( localize(
|
|
120
|
-
const CTX_INLINE_CHAT_CHANGE_HAS_DIFF = ( new RawContextKey('inlineChatChangeHasDiff', false, ( localize(
|
|
121
|
-
const CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF = ( new RawContextKey('inlineChatChangeShowsDiff', false, ( localize(
|
|
122
|
-
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey('inlineChatRequestInProgress', false, ( localize(
|
|
100
|
+
const CTX_INLINE_CHAT_HAS_STASHED_SESSION = ( new RawContextKey('inlineChatHasStashedSession', false, ( localize(8371, "Whether interactive editor has kept a session for quick restore"))));
|
|
101
|
+
const CTX_INLINE_CHAT_CHANGE_HAS_DIFF = ( new RawContextKey('inlineChatChangeHasDiff', false, ( localize(8372, "Whether the current change supports showing a diff"))));
|
|
102
|
+
const CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF = ( new RawContextKey('inlineChatChangeShowsDiff', false, ( localize(8373, "Whether the current change showing a diff"))));
|
|
103
|
+
const CTX_INLINE_CHAT_REQUEST_IN_PROGRESS = ( new RawContextKey('inlineChatRequestInProgress', false, ( localize(8374, "Whether an inline chat request is currently in progress"))));
|
|
123
104
|
const CTX_INLINE_CHAT_RESPONSE_TYPE = ( new RawContextKey('inlineChatResponseType', InlineChatResponseType.None, ( localize(
|
|
124
|
-
|
|
105
|
+
8375,
|
|
125
106
|
"What type was the responses have been receieved, nothing yet, just messages, or messaged and local edits"
|
|
126
107
|
))));
|
|
127
|
-
const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(
|
|
128
|
-
const CTX_INLINE_CHAT_V2_ENABLED = ( ContextKeyExpr.or(
|
|
108
|
+
const CTX_INLINE_CHAT_V1_ENABLED = ( ContextKeyExpr.or(( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE))));
|
|
109
|
+
const CTX_INLINE_CHAT_V2_ENABLED = ( ContextKeyExpr.or(CTX_INLINE_CHAT_HAS_AGENT2, ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT))));
|
|
129
110
|
const ACTION_START = 'inlineChat.start';
|
|
130
111
|
const ACTION_ACCEPT_CHANGES = 'inlineChat.acceptChanges';
|
|
131
112
|
const ACTION_DISCARD_CHANGES = 'inlineChat.discardHunkChange';
|
|
@@ -137,18 +118,18 @@ const MENU_INLINE_CHAT_WIDGET_STATUS = MenuId.for('inlineChatWidget.status');
|
|
|
137
118
|
const MENU_INLINE_CHAT_WIDGET_SECONDARY = MenuId.for('inlineChatWidget.secondary');
|
|
138
119
|
const MENU_INLINE_CHAT_ZONE = MenuId.for('inlineChatWidget.changesZone');
|
|
139
120
|
const MENU_INLINE_CHAT_SIDE = MenuId.for('inlineChatWidget.side');
|
|
140
|
-
const inlineChatForeground = registerColor('inlineChat.foreground', editorWidgetForeground, ( localize(
|
|
141
|
-
const inlineChatBackground = registerColor('inlineChat.background', editorWidgetBackground, ( localize(
|
|
142
|
-
registerColor('inlineChat.border', editorWidgetBorder, ( localize(
|
|
143
|
-
registerColor('inlineChat.shadow', widgetShadow, ( localize(
|
|
144
|
-
registerColor('inlineChatInput.border', editorWidgetBorder, ( localize(
|
|
145
|
-
registerColor('inlineChatInput.focusBorder', focusBorder, ( localize(
|
|
146
|
-
registerColor('inlineChatInput.placeholderForeground', inputPlaceholderForeground, ( localize(
|
|
147
|
-
registerColor('inlineChatInput.background', inputBackground, ( localize(
|
|
148
|
-
registerColor('inlineChatDiff.inserted', ( transparent(diffInserted, .5)), ( localize(
|
|
149
|
-
const overviewRulerInlineChatDiffInserted = registerColor('editorOverviewRuler.inlineChatInserted', { dark: ( transparent(diffInserted, 0.6)), light: ( transparent(diffInserted, 0.8)), hcDark: ( transparent(diffInserted, 0.6)), hcLight: ( transparent(diffInserted, 0.8)) }, ( localize(
|
|
150
|
-
const minimapInlineChatDiffInserted = registerColor('editorMinimap.inlineChatInserted', { dark: ( transparent(diffInserted, 0.6)), light: ( transparent(diffInserted, 0.8)), hcDark: ( transparent(diffInserted, 0.6)), hcLight: ( transparent(diffInserted, 0.8)) }, ( localize(
|
|
151
|
-
registerColor('inlineChatDiff.removed', ( transparent(diffRemoved, .5)), ( localize(
|
|
152
|
-
registerColor('editorOverviewRuler.inlineChatRemoved', { dark: ( transparent(diffRemoved, 0.6)), light: ( transparent(diffRemoved, 0.8)), hcDark: ( transparent(diffRemoved, 0.6)), hcLight: ( transparent(diffRemoved, 0.8)) }, ( localize(
|
|
121
|
+
const inlineChatForeground = registerColor('inlineChat.foreground', editorWidgetForeground, ( localize(8376, "Foreground color of the interactive editor widget")));
|
|
122
|
+
const inlineChatBackground = registerColor('inlineChat.background', editorWidgetBackground, ( localize(8377, "Background color of the interactive editor widget")));
|
|
123
|
+
registerColor('inlineChat.border', editorWidgetBorder, ( localize(8378, "Border color of the interactive editor widget")));
|
|
124
|
+
registerColor('inlineChat.shadow', widgetShadow, ( localize(8379, "Shadow color of the interactive editor widget")));
|
|
125
|
+
registerColor('inlineChatInput.border', editorWidgetBorder, ( localize(8380, "Border color of the interactive editor input")));
|
|
126
|
+
registerColor('inlineChatInput.focusBorder', focusBorder, ( localize(8381, "Border color of the interactive editor input when focused")));
|
|
127
|
+
registerColor('inlineChatInput.placeholderForeground', inputPlaceholderForeground, ( localize(8382, "Foreground color of the interactive editor input placeholder")));
|
|
128
|
+
registerColor('inlineChatInput.background', inputBackground, ( localize(8383, "Background color of the interactive editor input")));
|
|
129
|
+
registerColor('inlineChatDiff.inserted', ( transparent(diffInserted, .5)), ( localize(8384, "Background color of inserted text in the interactive editor input")));
|
|
130
|
+
const overviewRulerInlineChatDiffInserted = registerColor('editorOverviewRuler.inlineChatInserted', { dark: ( transparent(diffInserted, 0.6)), light: ( transparent(diffInserted, 0.8)), hcDark: ( transparent(diffInserted, 0.6)), hcLight: ( transparent(diffInserted, 0.8)) }, ( localize(8385, 'Overview ruler marker color for inline chat inserted content.')));
|
|
131
|
+
const minimapInlineChatDiffInserted = registerColor('editorMinimap.inlineChatInserted', { dark: ( transparent(diffInserted, 0.6)), light: ( transparent(diffInserted, 0.8)), hcDark: ( transparent(diffInserted, 0.6)), hcLight: ( transparent(diffInserted, 0.8)) }, ( localize(8386, 'Minimap marker color for inline chat inserted content.')));
|
|
132
|
+
registerColor('inlineChatDiff.removed', ( transparent(diffRemoved, .5)), ( localize(8387, "Background color of removed text in the interactive editor input")));
|
|
133
|
+
registerColor('editorOverviewRuler.inlineChatRemoved', { dark: ( transparent(diffRemoved, 0.6)), light: ( transparent(diffRemoved, 0.8)), hcDark: ( transparent(diffRemoved, 0.6)), hcLight: ( transparent(diffRemoved, 0.8)) }, ( localize(8388, 'Overview ruler marker color for inline chat removed content.')));
|
|
153
134
|
|
|
154
135
|
export { ACTION_ACCEPT_CHANGES, ACTION_DISCARD_CHANGES, ACTION_REGENERATE_RESPONSE, ACTION_REPORT_ISSUE, ACTION_START, ACTION_TOGGLE_DIFF, ACTION_VIEW_IN_CHAT, CTX_INLINE_CHAT_CHANGE_HAS_DIFF, CTX_INLINE_CHAT_CHANGE_SHOWS_DIFF, CTX_INLINE_CHAT_EDITING, CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_HAS_AGENT2, CTX_INLINE_CHAT_HAS_NOTEBOOK_AGENT, CTX_INLINE_CHAT_HAS_NOTEBOOK_INLINE, CTX_INLINE_CHAT_HAS_STASHED_SESSION, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_OUTER_CURSOR_POSITION, CTX_INLINE_CHAT_POSSIBLE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_RESPONSE_FOCUSED, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_V1_ENABLED, CTX_INLINE_CHAT_V2_ENABLED, CTX_INLINE_CHAT_VISIBLE, INLINE_CHAT_ID, InlineChatConfigKeys, InlineChatResponseType, MENU_INLINE_CHAT_SIDE, MENU_INLINE_CHAT_WIDGET_SECONDARY, MENU_INLINE_CHAT_WIDGET_STATUS, MENU_INLINE_CHAT_ZONE, inlineChatBackground, inlineChatForeground, minimapInlineChatDiffInserted, overviewRulerInlineChatDiffInserted };
|
|
@@ -63,8 +63,8 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
63
63
|
const arg = prompt.arguments[i];
|
|
64
64
|
const restore = backSnapshots.at(i);
|
|
65
65
|
quickPick.step = i + 1;
|
|
66
|
-
quickPick.placeholder = arg.required ? arg.description : `${arg.description || ''} (${( localize(
|
|
67
|
-
quickPick.title = ( localize(
|
|
66
|
+
quickPick.placeholder = arg.required ? arg.description : `${arg.description || ''} (${( localize(8874, 'Optional'))})`;
|
|
67
|
+
quickPick.title = ( localize(8875, 'Value for: {0}', arg.title || arg.name));
|
|
68
68
|
quickPick.value = restore?.value ?? ((args.hasOwnProperty(arg.name) && args[arg.name]) || '');
|
|
69
69
|
quickPick.items = restore?.items ?? [];
|
|
70
70
|
quickPick.activeItems = restore?.activeItems ?? [];
|
|
@@ -85,7 +85,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
quickPick.value = '';
|
|
88
|
-
quickPick.placeholder = ( localize(
|
|
88
|
+
quickPick.placeholder = ( localize(8876, 'Loading...'));
|
|
89
89
|
quickPick.busy = true;
|
|
90
90
|
return args;
|
|
91
91
|
}
|
|
@@ -95,15 +95,15 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
95
95
|
const input$ = observableValue(this, quickPick.value);
|
|
96
96
|
const asyncPicks = [
|
|
97
97
|
{
|
|
98
|
-
name: ( localize(
|
|
98
|
+
name: ( localize(8877, 'Suggestions')),
|
|
99
99
|
observer: this._promptCompletions(arg, input$, argsSoFar),
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
name: ( localize(
|
|
102
|
+
name: ( localize(8878, 'Active File')),
|
|
103
103
|
observer: this._activeFileCompletions(),
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
|
-
name: ( localize(
|
|
106
|
+
name: ( localize(8879, 'Files')),
|
|
107
107
|
observer: this._fileCompletions(input$),
|
|
108
108
|
}
|
|
109
109
|
];
|
|
@@ -113,8 +113,8 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
let items = [];
|
|
116
|
-
items.push({ id: 'insert-text', label: ( localize(
|
|
117
|
-
items.push({ id: 'run-command', label: ( localize(
|
|
116
|
+
items.push({ id: 'insert-text', label: ( localize(8880, 'Insert as text')), iconClass: ThemeIcon.asClassName(Codicon.textSize), action: 'text', alwaysShow: true });
|
|
117
|
+
items.push({ id: 'run-command', label: ( localize(8881, 'Run as Command')), description: ( localize(8882, 'Inserts the command output as the prompt argument')), iconClass: ThemeIcon.asClassName(Codicon.terminal), action: 'command', alwaysShow: true });
|
|
118
118
|
let busy = false;
|
|
119
119
|
for (const pick of asyncPicks) {
|
|
120
120
|
const state = pick.observer.read(reader);
|
|
@@ -156,7 +156,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
156
156
|
store.add(quickPick.onDidAccept(() => {
|
|
157
157
|
const item = quickPick.selectedItems[0];
|
|
158
158
|
if (!quickPick.value && arg.required && (!item || item.action === 'text' || item.action === 'command')) {
|
|
159
|
-
quickPick.validationMessage = ( localize(
|
|
159
|
+
quickPick.validationMessage = ( localize(8883, "This argument is required"));
|
|
160
160
|
}
|
|
161
161
|
else if (!item) {
|
|
162
162
|
resolve({ id: 'insert-text', label: '', action: 'text' });
|
|
@@ -260,7 +260,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
260
260
|
const items = [];
|
|
261
261
|
items.push({
|
|
262
262
|
id: 'active-file',
|
|
263
|
-
label: ( localize(
|
|
263
|
+
label: ( localize(8884, 'Active File')),
|
|
264
264
|
description: this._labelService.getUriLabel(resource),
|
|
265
265
|
iconClasses: getIconClasses(this._modelService, this._languageService, resource),
|
|
266
266
|
uri: resource,
|
|
@@ -271,11 +271,11 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
271
271
|
const selectedText = selection.model.getValueInRange(selection.range);
|
|
272
272
|
const lineCount = selection.range.endLineNumber - selection.range.startLineNumber + 1;
|
|
273
273
|
const description = lineCount === 1
|
|
274
|
-
? ( localize(
|
|
275
|
-
: ( localize(
|
|
274
|
+
? ( localize(8885, 'line {0}', selection.range.startLineNumber))
|
|
275
|
+
: ( localize(8886, '{0} lines', lineCount));
|
|
276
276
|
items.push({
|
|
277
277
|
id: 'selected-text',
|
|
278
|
-
label: ( localize(
|
|
278
|
+
label: ( localize(8887, 'Selected Text')),
|
|
279
279
|
description,
|
|
280
280
|
selectedText,
|
|
281
281
|
iconClass: ThemeIcon.asClassName(Codicon.selection),
|
|
@@ -303,7 +303,7 @@ let McpPromptArgumentPick = class McpPromptArgumentPick extends Disposable {
|
|
|
303
303
|
async _getTerminalOutput(command, token) {
|
|
304
304
|
const terminal = (this._terminal ??= this._register(await this._terminalService.createTerminal({
|
|
305
305
|
config: {
|
|
306
|
-
name: ( localize(
|
|
306
|
+
name: ( localize(8888, "MCP Terminal")),
|
|
307
307
|
isTransient: true,
|
|
308
308
|
forceShellIntegration: true,
|
|
309
309
|
isFeatureTerminal: true,
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INotebookOutputVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries";
|
|
1
|
+
import { INotebookOutputVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
|
|
2
2
|
import { ICellOutputViewModel, INotebookEditor } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
3
3
|
export declare const NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT_CONST: string[];
|
|
4
4
|
export declare function createNotebookOutputVariableEntry(outputViewModel: ICellOutputViewModel, mimeType: string, notebookEditor: INotebookEditor): INotebookOutputVariableEntry | undefined;
|
|
@@ -304,7 +304,7 @@ async function joinSelectedCells(bulkEditService, notificationService, context)
|
|
|
304
304
|
const cellKind = cells[0].cellKind;
|
|
305
305
|
const isSameKind = cells.every(cell => cell.cellKind === cellKind);
|
|
306
306
|
if (!isSameKind) {
|
|
307
|
-
const message = ( localize(
|
|
307
|
+
const message = ( localize(9348, "Cannot join cells of different kinds"));
|
|
308
308
|
return notificationService.warn(message);
|
|
309
309
|
}
|
|
310
310
|
const firstCell = cells[0];
|
|
@@ -332,7 +332,7 @@ async function joinSelectedCells(bulkEditService, notificationService, context)
|
|
|
332
332
|
})));
|
|
333
333
|
}
|
|
334
334
|
if (edits.length) {
|
|
335
|
-
await bulkEditService.apply(edits, { quotableLabel: ( localize(
|
|
335
|
+
await bulkEditService.apply(edits, { quotableLabel: ( localize(9349, "Join Notebook Cells")) });
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
async function joinNotebookCells(editor, range, direction, constraint) {
|
|
@@ -62,8 +62,8 @@ class CellDiffPlaceholderElement extends Disposable {
|
|
|
62
62
|
super();
|
|
63
63
|
templateData.body.classList.remove('left', 'right', 'full');
|
|
64
64
|
const text = (placeholder.hiddenCells.length === 1) ?
|
|
65
|
-
( localize(
|
|
66
|
-
( localize(
|
|
65
|
+
( localize(9466, '{0} hidden cell', placeholder.hiddenCells.length)) :
|
|
66
|
+
( localize(9467, '{0} hidden cells', placeholder.hiddenCells.length));
|
|
67
67
|
templateData.placeholder.innerText = text;
|
|
68
68
|
this._register(addDisposableListener(templateData.placeholder, 'dblclick', (e) => {
|
|
69
69
|
if (e.button !== 0) {
|
|
@@ -1687,7 +1687,7 @@ class CollapsedCellOverlayWidget extends Disposable {
|
|
|
1687
1687
|
this._nodes = h('div.diff-hidden-cells', [
|
|
1688
1688
|
h('div.center@content', { style: { display: 'flex' } }, [
|
|
1689
1689
|
$('a', {
|
|
1690
|
-
title: ( localize(
|
|
1690
|
+
title: ( localize(9468, 'Show Unchanged Cells')),
|
|
1691
1691
|
role: 'button',
|
|
1692
1692
|
onclick: () => { this._action.fire(); }
|
|
1693
1693
|
}, ...renderLabelWithIcons('$(unfold)'))
|
|
@@ -1718,7 +1718,7 @@ class UnchangedCellOverlayWidget extends Disposable {
|
|
|
1718
1718
|
this._nodes = h('div.diff-hidden-cells', [
|
|
1719
1719
|
h('div.center@content', { style: { display: 'flex' } }, [
|
|
1720
1720
|
$('a', {
|
|
1721
|
-
title: ( localize(
|
|
1721
|
+
title: ( localize(9469, 'Hide Unchanged Cells')),
|
|
1722
1722
|
role: 'button',
|
|
1723
1723
|
onclick: () => { this._action.fire(); }
|
|
1724
1724
|
}, ...renderLabelWithIcons('$(fold)')),
|
|
@@ -38,7 +38,7 @@ class OutputElement extends Disposable {
|
|
|
38
38
|
mimeTypePicker.classList.add(...ThemeIcon.asClassNameArray(mimetypeIcon));
|
|
39
39
|
mimeTypePicker.tabIndex = 0;
|
|
40
40
|
mimeTypePicker.title = ( localize(
|
|
41
|
-
|
|
41
|
+
9470,
|
|
42
42
|
"Choose a different output mimetype, available mimetypes: {0}",
|
|
43
43
|
( mimeTypes.map(mimeType => mimeType.mimeType)).join(', ')
|
|
44
44
|
));
|
|
@@ -85,13 +85,13 @@ class OutputElement extends Disposable {
|
|
|
85
85
|
}
|
|
86
86
|
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
87
87
|
if (!viewModel.model.outputs.length) {
|
|
88
|
-
return this._renderMessage(viewModel, ( localize(
|
|
88
|
+
return this._renderMessage(viewModel, ( localize(9471, "Cell has no output")));
|
|
89
89
|
}
|
|
90
90
|
if (!preferredMimeType) {
|
|
91
91
|
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
92
92
|
const mimeTypesMessage = mimeTypes.join(', ');
|
|
93
93
|
return this._renderMessage(viewModel, ( localize(
|
|
94
|
-
|
|
94
|
+
9472,
|
|
95
95
|
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
96
96
|
mimeTypesMessage
|
|
97
97
|
)));
|
|
@@ -120,7 +120,7 @@ class OutputElement extends Disposable {
|
|
|
120
120
|
index: index,
|
|
121
121
|
picked: index === currIndex,
|
|
122
122
|
detail: this.generateRendererInfo(mimeType.rendererId),
|
|
123
|
-
description: index === currIndex ? ( localize(
|
|
123
|
+
description: index === currIndex ? ( localize(9473, "Currently Active")) : undefined
|
|
124
124
|
})));
|
|
125
125
|
const disposables = ( new DisposableStore());
|
|
126
126
|
const picker = disposables.add(this._quickInputService.createQuickPick());
|
|
@@ -128,10 +128,10 @@ class OutputElement extends Disposable {
|
|
|
128
128
|
picker.activeItems = items.filter(item => !!item.picked);
|
|
129
129
|
picker.placeholder = items.length !== mimeTypes.length
|
|
130
130
|
? ( localize(
|
|
131
|
-
|
|
131
|
+
9474,
|
|
132
132
|
"Select mimetype to render for current output. Rich mimetypes are available only when the notebook is trusted"
|
|
133
133
|
))
|
|
134
|
-
: ( localize(
|
|
134
|
+
: ( localize(9475, "Select mimetype to render for current output"));
|
|
135
135
|
const pick = await ( new Promise(resolve => {
|
|
136
136
|
disposables.add(picker.onDidAccept(() => {
|
|
137
137
|
resolve(picker.selectedItems.length === 1 ? picker.selectedItems[0].index : undefined);
|
|
@@ -161,7 +161,7 @@ class OutputElement extends Disposable {
|
|
|
161
161
|
const displayName = renderInfo.displayName !== '' ? renderInfo.displayName : renderInfo.id;
|
|
162
162
|
return `${displayName} (${renderInfo.extensionId.value})`;
|
|
163
163
|
}
|
|
164
|
-
return localize(
|
|
164
|
+
return localize(9476, "built-in");
|
|
165
165
|
}
|
|
166
166
|
getCellOutputCurrentIndex() {
|
|
167
167
|
return this._diffElementViewModel.getNestedCellViewModel(this._diffSide).outputs.indexOf(this.output.model);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IReference, ReferenceCollection } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IModifiedFileEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService";
|
|
2
|
+
import { IModifiedFileEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
|
|
3
3
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
4
4
|
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
5
5
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
@@ -275,7 +275,7 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
275
275
|
accessibilityProvider: {
|
|
276
276
|
getAriaLabel() { return null; },
|
|
277
277
|
getWidgetAriaLabel() {
|
|
278
|
-
return localize(
|
|
278
|
+
return localize(9497, "Notebook Text Diff");
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
281
|
});
|
|
@@ -14,15 +14,15 @@ const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY = 'notebook.diffEditor.cell.ignor
|
|
|
14
14
|
const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE = ( new RawContextKey(NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY, false));
|
|
15
15
|
const NOTEBOOK_DIFF_CELL_PROPERTY = ( new RawContextKey('notebook.diffEditor.cell.property.changed', false));
|
|
16
16
|
const NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED = ( new RawContextKey('notebook.diffEditor.cell.property.expanded', false));
|
|
17
|
-
const NOTEBOOK_DIFF_CELLS_COLLAPSED = ( new RawContextKey('notebook.diffEditor.allCollapsed', undefined, ( localize(
|
|
18
|
-
const NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS = ( new RawContextKey('notebook.diffEditor.hasUnchangedCells', undefined, ( localize(
|
|
19
|
-
const NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN = ( new RawContextKey('notebook.diffEditor.unchangedCellsAreHidden', undefined, ( localize(
|
|
17
|
+
const NOTEBOOK_DIFF_CELLS_COLLAPSED = ( new RawContextKey('notebook.diffEditor.allCollapsed', undefined, ( localize(9498, "Whether all cells in notebook diff editor are collapsed"))));
|
|
18
|
+
const NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS = ( new RawContextKey('notebook.diffEditor.hasUnchangedCells', undefined, ( localize(9499, "Whether there are unchanged cells in the notebook diff editor"))));
|
|
19
|
+
const NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN = ( new RawContextKey('notebook.diffEditor.unchangedCellsAreHidden', undefined, ( localize(9500, "Whether the unchanged cells in the notebook diff editor are hidden"))));
|
|
20
20
|
const NOTEBOOK_DIFF_ITEM_KIND = ( new RawContextKey('notebook.diffEditor.item.kind', undefined, ( localize(
|
|
21
|
-
|
|
21
|
+
9501,
|
|
22
22
|
"The kind of item in the notebook diff editor, Cell, Metadata or Output"
|
|
23
23
|
))));
|
|
24
24
|
const NOTEBOOK_DIFF_ITEM_DIFF_STATE = ( new RawContextKey('notebook.diffEditor.item.state', undefined, ( localize(
|
|
25
|
-
|
|
25
|
+
9502,
|
|
26
26
|
"The diff state of item in the notebook diff editor, delete, insert, modified or unchanged"
|
|
27
27
|
))));
|
|
28
28
|
|
|
@@ -79,7 +79,7 @@ let CellDiffPlaceholderRenderer = class CellDiffPlaceholderRenderer {
|
|
|
79
79
|
const elementDisposables = ( new DisposableStore());
|
|
80
80
|
const marginOverlay = ( new CollapsedCellOverlayWidget(body));
|
|
81
81
|
const contents = append(body, $('.contents'));
|
|
82
|
-
const placeholder = append(contents, $('span.text', { title: ( localize(
|
|
82
|
+
const placeholder = append(contents, $('span.text', { title: ( localize(9503, 'Double click to show')) }));
|
|
83
83
|
return {
|
|
84
84
|
body,
|
|
85
85
|
container,
|
|
@@ -233,17 +233,17 @@ let WorkbenchUIElementFactory = class WorkbenchUIElementFactory {
|
|
|
233
233
|
const notebookDocument = uri.scheme === Schemas.vscodeNotebookCell ? that.notebookDocumentService.getNotebook(uri) : undefined;
|
|
234
234
|
const cellIndex = Schemas.vscodeNotebookCell ? that.notebookDocumentService.getNotebook(uri)?.getCellIndex(uri) : undefined;
|
|
235
235
|
if (notebookDocument && cellIndex !== undefined) {
|
|
236
|
-
name = ( localize(
|
|
236
|
+
name = ( localize(9504, "Cell {0}", `${cellIndex + 1}`));
|
|
237
237
|
const nb = notebookDocument ? that.notebookService.getNotebookTextModel(notebookDocument?.uri) : undefined;
|
|
238
238
|
const cellLanguage = nb && cellIndex !== undefined ? nb.cells[cellIndex].language : undefined;
|
|
239
239
|
extraClasses = cellLanguage ? getIconClassesForLanguageId(cellLanguage) : undefined;
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
else if (uri.scheme === Schemas.vscodeNotebookCellMetadata || uri.scheme === Schemas.vscodeNotebookCellMetadataDiff) {
|
|
243
|
-
description = ( localize(
|
|
243
|
+
description = ( localize(9505, "Metadata"));
|
|
244
244
|
}
|
|
245
245
|
else if (uri.scheme === Schemas.vscodeNotebookCellOutput || uri.scheme === Schemas.vscodeNotebookCellOutputDiff) {
|
|
246
|
-
description = ( localize(
|
|
246
|
+
description = ( localize(9506, "Output"));
|
|
247
247
|
}
|
|
248
248
|
label.element.setResource({ name, description }, { strikethrough: options.strikethrough, forceLabel: true, hideIcon: !extraClasses, extraClasses });
|
|
249
249
|
}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import type { ITerminalCommand } from "@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/capabilities/capabilities";
|
|
3
|
+
import { type IDetachedTerminalInstance } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal";
|
|
3
4
|
import { ITerminalService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service";
|
|
4
5
|
import { XtermTerminal } from "@codingame/monaco-vscode-xterm-addons-common/vscode/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal";
|
|
5
6
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
7
|
+
import type { IChatTerminalToolInvocationData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
8
|
+
/**
|
|
9
|
+
* Base class for detached terminal mirrors.
|
|
10
|
+
* Handles attaching to containers and managing the detached terminal instance.
|
|
11
|
+
*/
|
|
12
|
+
declare abstract class DetachedTerminalMirror extends Disposable {
|
|
13
|
+
private _detachedTerminal;
|
|
14
|
+
private _attachedContainer;
|
|
15
|
+
protected _setDetachedTerminal(detachedTerminal: Promise<IDetachedTerminalInstance>): void;
|
|
16
|
+
protected _getTerminal(): Promise<IDetachedTerminalInstance>;
|
|
17
|
+
protected _attachToContainer(container: HTMLElement): Promise<IDetachedTerminalInstance>;
|
|
18
|
+
}
|
|
6
19
|
export declare function getCommandOutputSnapshot(xtermTerminal: XtermTerminal, command: ITerminalCommand, log?: (reason: "fallback" | "primary", error: unknown) => void): Promise<{
|
|
7
20
|
text: string;
|
|
8
21
|
lineCount: number;
|
|
@@ -17,18 +30,36 @@ interface IDetachedTerminalCommandMirror {
|
|
|
17
30
|
* Mirrors a terminal command's output into a detached terminal instance.
|
|
18
31
|
* Used in the chat terminal tool progress part to show command output for example.
|
|
19
32
|
*/
|
|
20
|
-
export declare class DetachedTerminalCommandMirror extends
|
|
33
|
+
export declare class DetachedTerminalCommandMirror extends DetachedTerminalMirror implements IDetachedTerminalCommandMirror {
|
|
21
34
|
private readonly _xtermTerminal;
|
|
22
35
|
private readonly _command;
|
|
23
36
|
private readonly _terminalService;
|
|
24
37
|
private readonly _contextKeyService;
|
|
25
|
-
private _detachedTerminal;
|
|
26
|
-
private _attachedContainer?;
|
|
27
38
|
constructor(_xtermTerminal: XtermTerminal, _command: ITerminalCommand, _terminalService: ITerminalService, _contextKeyService: IContextKeyService);
|
|
28
39
|
attach(container: HTMLElement): Promise<void>;
|
|
29
40
|
renderCommand(): Promise<{
|
|
30
41
|
lineCount?: number;
|
|
31
42
|
} | undefined>;
|
|
32
|
-
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Mirrors a terminal output snapshot into a detached terminal instance.
|
|
46
|
+
* Used when the terminal has been disposed of but we still want to show the output.
|
|
47
|
+
*/
|
|
48
|
+
export declare class DetachedTerminalSnapshotMirror extends DetachedTerminalMirror {
|
|
49
|
+
private readonly _getTheme;
|
|
50
|
+
private readonly _terminalService;
|
|
51
|
+
private readonly _contextKeyService;
|
|
52
|
+
private _output;
|
|
53
|
+
private _container;
|
|
54
|
+
private _dirty;
|
|
55
|
+
private _lastRenderedLineCount;
|
|
56
|
+
constructor(output: IChatTerminalToolInvocationData["terminalCommandOutput"] | undefined, _getTheme: () => IChatTerminalToolInvocationData["terminalTheme"] | undefined, _terminalService: ITerminalService, _contextKeyService: IContextKeyService);
|
|
57
|
+
setOutput(output: IChatTerminalToolInvocationData["terminalCommandOutput"] | undefined): void;
|
|
58
|
+
attach(container: HTMLElement): Promise<void>;
|
|
59
|
+
render(): Promise<{
|
|
60
|
+
lineCount?: number;
|
|
61
|
+
} | undefined>;
|
|
62
|
+
private _estimateLineCount;
|
|
63
|
+
private _applyTheme;
|
|
33
64
|
}
|
|
34
65
|
export {};
|