@codingame/monaco-vscode-katex-common 24.3.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.d.ts → accessibility/chatAccessibilityProvider.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityProvider.js → accessibility/chatAccessibilityProvider.js} +25 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +31 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.d.ts → attachments/chatAttachmentModel.d.ts} +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentModel.js → attachments/chatAttachmentModel.js} +24 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.d.ts → attachments/chatAttachmentWidgets.d.ts} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentWidgets.js → attachments/chatAttachmentWidgets.js} +80 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatImplicitContext.js +23 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → attachments}/chatInputRelatedFilesContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +47 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +39 -39
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.d.ts → widget/chatAgentHover.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAgentHover.js → widget/chatAgentHover.js} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAgentCommandContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatAttachmentsContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.d.ts +10 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatChangesSummaryPart.js +59 -119
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCodeCitationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollapsibleContentPart.js +31 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCommandContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationContentPart.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.d.ts +9 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatConfirmationWidget.js +31 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatContentCodePools.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.d.ts → widget/chatContentParts/chatDiffBlockPart.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatElicitationContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorConfirmationPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatErrorContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.d.ts → widget/chatContentParts/chatInlineAnchorWidget.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInlineAnchorWidget.js → widget/chatContentParts/chatInlineAnchorWidget.js} +18 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownContentPart.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.d.ts → widget/chatContentParts/chatMarkdownDecorationsRenderer.d.ts} +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatMarkdownDecorationsRenderer.js → widget/chatContentParts/chatMarkdownDecorationsRenderer.js} +9 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMcpServersInteractionContentPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.d.ts +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMultiDiffContentPart.js +31 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatProgressContentPart.js +9 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatPullRequestContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.d.ts +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatReferencesContentPart.js +20 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTaskContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatThinkingContentPart.js +71 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTodoListWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolInputOutputContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatToolOutputContentSubPart.js +27 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.d.ts → widget/chatContentParts/codeBlockPart.d.ts} +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.js → widget/chatContentParts/codeBlockPart.js} +19 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatThinkingContent.css +17 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/abstractToolConfirmationSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatExtensionsInstallToolSubPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +4 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatResultListSubPart.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +103 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatTerminalToolProgressPart.js +18 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolConfirmationSubPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolInvocationSubPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolOutputPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +11 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/toolInvocationParts/chatToolProgressPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.d.ts → widget/chatDragAndDrop.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatDragAndDrop.js → widget/chatDragAndDrop.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.d.ts → widget/chatListRenderer.d.ts} +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatListRenderer.js → widget/chatListRenderer.js} +41 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.d.ts → widget/chatWidget.d.ts} +18 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidget.js → widget/chatWidget.js} +77 -57
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.d.ts → widget/input/chatFollowups.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatFollowups.js → widget/input/chatFollowups.js} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.d.ts → widget/input/chatInputPart.d.ts} +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPart.js → widget/input/chatInputPart.js} +75 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.d.ts → widget/input/chatSelectedTools.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSelectedTools.js → widget/input/chatSelectedTools.js} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modePickerActionItem.js +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{modelPicker → widget/input}/modelPickerActionItem.js +21 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chat.css +17 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatViewWelcome.css +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.js → widget/chatColors.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.d.ts → widget/chatWidgetHistoryService.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{chatWidgetHistoryService.js → widget/chatWidgetHistoryService.js} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.d.ts → widget/codeBlockModelCollection.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{codeBlockModelCollection.js → widget/codeBlockModelCollection.js} +4 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +7 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +63 -63
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +16 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +8 -18
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +35 -54
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +35 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +129 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +0 -373
- /package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/{chatSessionAction.css → chatSessionPickerActionItem.css} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.d.ts → widget/chatContentMarkdownRenderer.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentMarkdownRenderer.js → widget/chatContentMarkdownRenderer.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatCollections.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatDiffBlockPart.js → widget/chatContentParts/chatDiffBlockPart.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatSuggestNextWidget.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatTextEditContentPart.service.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatCodeBlockPill.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatConfirmationWidget.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatExtensionsContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/chatContentParts/media}/chatInlineAnchorWidget.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMarkdownPart.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatMcpServersInteractionContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatPullRequestContent.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/media/chatTerminalToolProgressPart.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{codeBlockPart.css → widget/chatContentParts/media/codeBlockPart.css} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.d.ts → widget/chatOptions.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatOptions.js → widget/chatOptions.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.d.ts → widget/input/chatInputPartWidgets.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatInputPartWidgets.js → widget/input/chatInputPartWidgets.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputCompletions.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/media}/chatAgentHover.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatColors.d.ts → widget/chatColors.d.ts} +0 -0
|
@@ -3,11 +3,10 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { ITerminalService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
5
5
|
import { DetachedProcessInfo } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/detachedTerminal';
|
|
6
|
-
import { TerminalCapabilityStore } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/capabilities/terminalCapabilityStore';
|
|
7
6
|
import { TERMINAL_BACKGROUND_COLOR } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminalColorRegistry';
|
|
8
7
|
import { PANEL_BACKGROUND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
|
9
8
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
9
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
11
10
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
12
11
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
13
12
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
@@ -19,7 +18,43 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/mini
|
|
|
19
18
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
20
19
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
21
20
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
21
|
+
import { Color } from '@codingame/monaco-vscode-api/vscode/vs/base/common/color';
|
|
22
22
|
|
|
23
|
+
function getChatTerminalBackgroundColor(theme, contextKeyService, storedBackground) {
|
|
24
|
+
if (storedBackground) {
|
|
25
|
+
const color = ( Color.fromHex(storedBackground));
|
|
26
|
+
if (color) {
|
|
27
|
+
return color;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const terminalBackground = theme.getColor(TERMINAL_BACKGROUND_COLOR);
|
|
31
|
+
if (terminalBackground) {
|
|
32
|
+
return terminalBackground;
|
|
33
|
+
}
|
|
34
|
+
const isInEditor = ChatContextKeys.inChatEditor.getValue(contextKeyService);
|
|
35
|
+
return theme.getColor(isInEditor ? editorBackground : PANEL_BACKGROUND);
|
|
36
|
+
}
|
|
37
|
+
class DetachedTerminalMirror extends Disposable {
|
|
38
|
+
_setDetachedTerminal(detachedTerminal) {
|
|
39
|
+
this._detachedTerminal = detachedTerminal.then(terminal => this._register(terminal));
|
|
40
|
+
}
|
|
41
|
+
async _getTerminal() {
|
|
42
|
+
if (!this._detachedTerminal) {
|
|
43
|
+
throw ( new Error('Detached terminal not initialized'));
|
|
44
|
+
}
|
|
45
|
+
return this._detachedTerminal;
|
|
46
|
+
}
|
|
47
|
+
async _attachToContainer(container) {
|
|
48
|
+
const terminal = await this._getTerminal();
|
|
49
|
+
container.classList.add('chat-terminal-output-terminal');
|
|
50
|
+
const needsAttach = this._attachedContainer !== container || container.firstChild === null;
|
|
51
|
+
if (needsAttach) {
|
|
52
|
+
terminal.attachToElement(container, { enableGpu: false });
|
|
53
|
+
this._attachedContainer = container;
|
|
54
|
+
}
|
|
55
|
+
return terminal;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
23
58
|
async function getCommandOutputSnapshot(xtermTerminal, command, log) {
|
|
24
59
|
const executedMarker = command.executedMarker;
|
|
25
60
|
const endMarker = command.endMarker;
|
|
@@ -79,23 +114,27 @@ async function getCommandOutputSnapshot(xtermTerminal, command, log) {
|
|
|
79
114
|
}
|
|
80
115
|
return { text, lineCount };
|
|
81
116
|
}
|
|
82
|
-
let DetachedTerminalCommandMirror = class DetachedTerminalCommandMirror extends
|
|
117
|
+
let DetachedTerminalCommandMirror = class DetachedTerminalCommandMirror extends DetachedTerminalMirror {
|
|
83
118
|
constructor(_xtermTerminal, _command, _terminalService, _contextKeyService) {
|
|
84
119
|
super();
|
|
85
120
|
this._xtermTerminal = _xtermTerminal;
|
|
86
121
|
this._command = _command;
|
|
87
122
|
this._terminalService = _terminalService;
|
|
88
123
|
this._contextKeyService = _contextKeyService;
|
|
89
|
-
|
|
124
|
+
const processInfo = this._register(( new DetachedProcessInfo({ initialCwd: '' })));
|
|
125
|
+
this._setDetachedTerminal(this._terminalService.createDetachedTerminal({
|
|
126
|
+
cols: this._xtermTerminal.raw.cols,
|
|
127
|
+
rows: 10,
|
|
128
|
+
readonly: true,
|
|
129
|
+
processInfo,
|
|
130
|
+
disableOverviewRuler: true,
|
|
131
|
+
colorProvider: {
|
|
132
|
+
getBackgroundColor: theme => getChatTerminalBackgroundColor(theme, this._contextKeyService),
|
|
133
|
+
},
|
|
134
|
+
}));
|
|
90
135
|
}
|
|
91
136
|
async attach(container) {
|
|
92
|
-
|
|
93
|
-
container.classList.add('chat-terminal-output-terminal');
|
|
94
|
-
const needsAttach = this._attachedContainer !== container || container.firstChild === null;
|
|
95
|
-
if (needsAttach) {
|
|
96
|
-
terminal.attachToElement(container);
|
|
97
|
-
this._attachedContainer = container;
|
|
98
|
-
}
|
|
137
|
+
await this._attachToContainer(container);
|
|
99
138
|
}
|
|
100
139
|
async renderCommand() {
|
|
101
140
|
const vt = await getCommandOutputSnapshot(this._xtermTerminal, this._command);
|
|
@@ -105,41 +144,100 @@ let DetachedTerminalCommandMirror = class DetachedTerminalCommandMirror extends
|
|
|
105
144
|
if (!vt.text) {
|
|
106
145
|
return { lineCount: 0 };
|
|
107
146
|
}
|
|
108
|
-
const detached = await this.
|
|
109
|
-
detached.xterm.clearBuffer();
|
|
110
|
-
detached.xterm.clearSearchDecorations?.();
|
|
147
|
+
const detached = await this._getTerminal();
|
|
111
148
|
await ( new Promise(resolve => {
|
|
112
149
|
detached.xterm.write(vt.text, () => resolve());
|
|
113
150
|
}));
|
|
114
151
|
return { lineCount: vt.lineCount };
|
|
115
152
|
}
|
|
116
|
-
|
|
153
|
+
};
|
|
154
|
+
DetachedTerminalCommandMirror = ( __decorate([
|
|
155
|
+
( __param(2, ITerminalService)),
|
|
156
|
+
( __param(3, IContextKeyService))
|
|
157
|
+
], DetachedTerminalCommandMirror));
|
|
158
|
+
let DetachedTerminalSnapshotMirror = class DetachedTerminalSnapshotMirror extends DetachedTerminalMirror {
|
|
159
|
+
constructor(output, _getTheme, _terminalService, _contextKeyService) {
|
|
160
|
+
super();
|
|
161
|
+
this._getTheme = _getTheme;
|
|
162
|
+
this._terminalService = _terminalService;
|
|
163
|
+
this._contextKeyService = _contextKeyService;
|
|
164
|
+
this._dirty = true;
|
|
165
|
+
this._output = output;
|
|
117
166
|
const processInfo = this._register(( new DetachedProcessInfo({ initialCwd: '' })));
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
cols: this._xtermTerminal.raw.cols,
|
|
167
|
+
this._setDetachedTerminal(this._terminalService.createDetachedTerminal({
|
|
168
|
+
cols: 80,
|
|
121
169
|
rows: 10,
|
|
122
170
|
readonly: true,
|
|
123
171
|
processInfo,
|
|
124
172
|
disableOverviewRuler: true,
|
|
125
|
-
capabilities,
|
|
126
173
|
colorProvider: {
|
|
127
174
|
getBackgroundColor: theme => {
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
const isInEditor = ChatContextKeys.inChatEditor.getValue(this._contextKeyService);
|
|
133
|
-
return theme.getColor(isInEditor ? editorBackground : PANEL_BACKGROUND);
|
|
134
|
-
},
|
|
175
|
+
const storedBackground = this._getTheme()?.background;
|
|
176
|
+
return getChatTerminalBackgroundColor(theme, this._contextKeyService, storedBackground);
|
|
177
|
+
}
|
|
135
178
|
}
|
|
136
|
-
});
|
|
137
|
-
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
181
|
+
setOutput(output) {
|
|
182
|
+
this._output = output;
|
|
183
|
+
this._dirty = true;
|
|
184
|
+
}
|
|
185
|
+
async attach(container) {
|
|
186
|
+
await this._attachToContainer(container);
|
|
187
|
+
this._container = container;
|
|
188
|
+
this._applyTheme(container);
|
|
189
|
+
}
|
|
190
|
+
async render() {
|
|
191
|
+
const output = this._output;
|
|
192
|
+
if (!output) {
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
if (!this._dirty) {
|
|
196
|
+
return { lineCount: this._lastRenderedLineCount ?? output.lineCount };
|
|
197
|
+
}
|
|
198
|
+
const terminal = await this._getTerminal();
|
|
199
|
+
if (this._container) {
|
|
200
|
+
this._applyTheme(this._container);
|
|
201
|
+
}
|
|
202
|
+
const text = output.text ?? '';
|
|
203
|
+
const lineCount = output.lineCount ?? this._estimateLineCount(text);
|
|
204
|
+
if (!text) {
|
|
205
|
+
this._dirty = false;
|
|
206
|
+
this._lastRenderedLineCount = lineCount;
|
|
207
|
+
return { lineCount: 0 };
|
|
208
|
+
}
|
|
209
|
+
await ( new Promise(resolve => terminal.xterm.write(text, resolve)));
|
|
210
|
+
this._dirty = false;
|
|
211
|
+
this._lastRenderedLineCount = lineCount;
|
|
212
|
+
return { lineCount };
|
|
213
|
+
}
|
|
214
|
+
_estimateLineCount(text) {
|
|
215
|
+
if (!text) {
|
|
216
|
+
return 0;
|
|
217
|
+
}
|
|
218
|
+
const sanitized = text.replace(/\r/g, '');
|
|
219
|
+
const segments = sanitized.split('\n');
|
|
220
|
+
const count = sanitized.endsWith('\n') ? segments.length - 1 : segments.length;
|
|
221
|
+
return Math.max(count, 1);
|
|
222
|
+
}
|
|
223
|
+
_applyTheme(container) {
|
|
224
|
+
const theme = this._getTheme();
|
|
225
|
+
if (!theme) {
|
|
226
|
+
container.style.removeProperty('background-color');
|
|
227
|
+
container.style.removeProperty('color');
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (theme.background) {
|
|
231
|
+
container.style.backgroundColor = theme.background;
|
|
232
|
+
}
|
|
233
|
+
if (theme.foreground) {
|
|
234
|
+
container.style.color = theme.foreground;
|
|
235
|
+
}
|
|
138
236
|
}
|
|
139
237
|
};
|
|
140
|
-
|
|
238
|
+
DetachedTerminalSnapshotMirror = ( __decorate([
|
|
141
239
|
( __param(2, ITerminalService)),
|
|
142
240
|
( __param(3, IContextKeyService))
|
|
143
|
-
],
|
|
241
|
+
], DetachedTerminalSnapshotMirror));
|
|
144
242
|
|
|
145
|
-
export { DetachedTerminalCommandMirror, getCommandOutputSnapshot };
|
|
243
|
+
export { DetachedTerminalCommandMirror, DetachedTerminalSnapshotMirror, getCommandOutputSnapshot };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
|
|
2
|
-
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
3
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
4
|
-
import { IChatSessionItem, IChatSessionItemProvider } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
|
|
5
|
-
import { ChatEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput";
|
|
6
|
-
export declare const NEW_CHAT_SESSION_ACTION_ID = "workbench.action.chat.openNewSessionEditor";
|
|
7
|
-
export type ChatSessionItemWithProvider = IChatSessionItem & {
|
|
8
|
-
readonly provider: IChatSessionItemProvider;
|
|
9
|
-
relativeTime?: string;
|
|
10
|
-
relativeTimeFullWord?: string;
|
|
11
|
-
hideRelativeTime?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare function isChatSession(schemes: readonly string[], editor?: EditorInput): editor is ChatEditorInput;
|
|
14
|
-
export declare function extractTimestamp(item: IChatSessionItem): number | undefined;
|
|
15
|
-
export declare function processSessionsWithTimeGrouping(sessions: ChatSessionItemWithProvider[]): ChatSessionItemWithProvider[];
|
|
16
|
-
export declare function getSessionItemContextOverlay(session: IChatSessionItem, provider?: IChatSessionItemProvider, chatService?: IChatService, editorGroupsService?: IEditorGroupsService): [
|
|
17
|
-
string,
|
|
18
|
-
any
|
|
19
|
-
][];
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { fromNow } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
3
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
4
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
5
|
-
import { localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
6
|
-
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
7
|
-
|
|
8
|
-
const NEW_CHAT_SESSION_ACTION_ID = 'workbench.action.chat.openNewSessionEditor';
|
|
9
|
-
function updateRelativeTime(item, lastRelativeTime) {
|
|
10
|
-
if (item.timing?.startTime) {
|
|
11
|
-
item.relativeTime = fromNow(item.timing.startTime);
|
|
12
|
-
item.relativeTimeFullWord = fromNow(item.timing.startTime, false, true);
|
|
13
|
-
if (lastRelativeTime === undefined || item.relativeTime !== lastRelativeTime) {
|
|
14
|
-
lastRelativeTime = item.relativeTime;
|
|
15
|
-
item.hideRelativeTime = false;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
item.hideRelativeTime = true;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
item.relativeTime = undefined;
|
|
23
|
-
item.relativeTimeFullWord = undefined;
|
|
24
|
-
item.hideRelativeTime = false;
|
|
25
|
-
}
|
|
26
|
-
return lastRelativeTime;
|
|
27
|
-
}
|
|
28
|
-
function extractTimestamp(item) {
|
|
29
|
-
if (item.timing?.startTime) {
|
|
30
|
-
return item.timing.startTime;
|
|
31
|
-
}
|
|
32
|
-
if ('timestamp' in item) {
|
|
33
|
-
return item.timestamp;
|
|
34
|
-
}
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
function sortSessionsByTimestamp(sessions) {
|
|
38
|
-
sessions.sort((a, b) => {
|
|
39
|
-
const aTime = a.timing?.startTime ?? 0;
|
|
40
|
-
const bTime = b.timing?.startTime ?? 0;
|
|
41
|
-
return bTime - aTime;
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function applyTimeGrouping(sessions) {
|
|
45
|
-
let lastRelativeTime;
|
|
46
|
-
sessions.forEach(session => {
|
|
47
|
-
lastRelativeTime = updateRelativeTime(session, lastRelativeTime);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function processSessionsWithTimeGrouping(sessions) {
|
|
51
|
-
const sessionsTemp = [...sessions];
|
|
52
|
-
if (( sessions.some(session => session.timing?.startTime !== undefined))) {
|
|
53
|
-
sortSessionsByTimestamp(sessionsTemp);
|
|
54
|
-
applyTimeGrouping(sessionsTemp);
|
|
55
|
-
}
|
|
56
|
-
return sessionsTemp;
|
|
57
|
-
}
|
|
58
|
-
function getSessionItemContextOverlay(session, provider, chatService, editorGroupsService
|
|
59
|
-
) {
|
|
60
|
-
const overlay = [];
|
|
61
|
-
if (provider) {
|
|
62
|
-
overlay.push([ChatContextKeys.agentSessionType.key, provider.chatSessionType]);
|
|
63
|
-
}
|
|
64
|
-
overlay.push([ChatContextKeys.isArchivedAgentSession.key, session.archived]);
|
|
65
|
-
let isActiveSession = false;
|
|
66
|
-
if (!session.archived && provider?.chatSessionType === localChatSessionType) {
|
|
67
|
-
isActiveSession = true;
|
|
68
|
-
}
|
|
69
|
-
else if (session.archived && chatService && editorGroupsService) {
|
|
70
|
-
isActiveSession = !!chatService.getSession(session.resource);
|
|
71
|
-
}
|
|
72
|
-
overlay.push([ChatContextKeys.isActiveAgentSession.key, isActiveSession]);
|
|
73
|
-
return overlay;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export { NEW_CHAT_SESSION_ACTION_ID, extractTimestamp, getSessionItemContextOverlay, processSessionsWithTimeGrouping };
|
package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { ResourceSet } from "@codingame/monaco-vscode-api/vscode/vs/base/common/map";
|
|
3
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
-
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
5
|
-
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
6
|
-
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
7
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
8
|
-
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
9
|
-
import { ChatRequestVariableSet } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries";
|
|
10
|
-
import { IToolAndToolSetEnablementMap } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService";
|
|
11
|
-
import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service";
|
|
12
|
-
import { IPromptPath } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService";
|
|
13
|
-
import { IPromptsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service";
|
|
14
|
-
export type InstructionsCollectionEvent = {
|
|
15
|
-
applyingInstructionsCount: number;
|
|
16
|
-
referencedInstructionsCount: number;
|
|
17
|
-
agentInstructionsCount: number;
|
|
18
|
-
listedInstructionsCount: number;
|
|
19
|
-
totalInstructionsCount: number;
|
|
20
|
-
};
|
|
21
|
-
export declare function newInstructionsCollectionEvent(): InstructionsCollectionEvent;
|
|
22
|
-
export declare class ComputeAutomaticInstructions {
|
|
23
|
-
private readonly _enabledTools;
|
|
24
|
-
private readonly _promptsService;
|
|
25
|
-
readonly _logService: ILogService;
|
|
26
|
-
private readonly _labelService;
|
|
27
|
-
private readonly _configurationService;
|
|
28
|
-
private readonly _workspaceService;
|
|
29
|
-
private readonly _fileService;
|
|
30
|
-
private readonly _telemetryService;
|
|
31
|
-
private readonly _languageModelToolsService;
|
|
32
|
-
private _parseResults;
|
|
33
|
-
constructor(_enabledTools: IToolAndToolSetEnablementMap | undefined, _promptsService: IPromptsService, _logService: ILogService, _labelService: ILabelService, _configurationService: IConfigurationService, _workspaceService: IWorkspaceContextService, _fileService: IFileService, _telemetryService: ITelemetryService, _languageModelToolsService: ILanguageModelToolsService);
|
|
34
|
-
private _parseInstructionsFile;
|
|
35
|
-
collect(variables: ChatRequestVariableSet, token: CancellationToken): Promise<void>;
|
|
36
|
-
private sendTelemetry;
|
|
37
|
-
/** public for testing */
|
|
38
|
-
addApplyingInstructions(instructionFiles: readonly IPromptPath[], context: {
|
|
39
|
-
files: ResourceSet;
|
|
40
|
-
instructions: ResourceSet;
|
|
41
|
-
}, variables: ChatRequestVariableSet, telemetryEvent: InstructionsCollectionEvent, token: CancellationToken): Promise<void>;
|
|
42
|
-
private _getContext;
|
|
43
|
-
private _addAgentInstructions;
|
|
44
|
-
private _matches;
|
|
45
|
-
private _getTool;
|
|
46
|
-
private _getInstructionsWithPatternsList;
|
|
47
|
-
private _addReferencedInstructions;
|
|
48
|
-
}
|