@codingame/monaco-vscode-katex-common 25.1.2 → 26.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 +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
- package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { MenuId } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
3
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
4
|
+
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
5
|
+
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
6
|
+
import { IAgentSessionsFilter, IAgentSessionsFilterExcludes } from "./agentSessionsViewer.js";
|
|
7
|
+
export declare enum AgentSessionsGrouping {
|
|
8
|
+
Capped = "capped",
|
|
9
|
+
Date = "date"
|
|
10
|
+
}
|
|
11
|
+
export interface IAgentSessionsFilterOptions extends Partial<IAgentSessionsFilter> {
|
|
12
|
+
readonly filterMenuId: MenuId;
|
|
13
|
+
readonly limitResults?: () => number | undefined;
|
|
14
|
+
notifyResults?(count: number): void;
|
|
15
|
+
readonly groupResults?: () => AgentSessionsGrouping | undefined;
|
|
16
|
+
overrideExclude?(session: IAgentSession): boolean | undefined;
|
|
17
|
+
}
|
|
18
|
+
export declare class AgentSessionsFilter extends Disposable implements Required<IAgentSessionsFilter> {
|
|
19
|
+
private readonly options;
|
|
20
|
+
private readonly chatSessionsService;
|
|
21
|
+
private readonly storageService;
|
|
22
|
+
private readonly STORAGE_KEY;
|
|
23
|
+
private readonly _onDidChange;
|
|
24
|
+
readonly onDidChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
25
|
+
readonly limitResults: () => number | undefined;
|
|
26
|
+
readonly groupResults: () => AgentSessionsGrouping | undefined;
|
|
27
|
+
private excludes;
|
|
28
|
+
private isStoringExcludes;
|
|
29
|
+
private readonly actionDisposables;
|
|
30
|
+
constructor(options: IAgentSessionsFilterOptions, chatSessionsService: IChatSessionsService, storageService: IStorageService);
|
|
31
|
+
private registerListeners;
|
|
32
|
+
private updateExcludes;
|
|
33
|
+
private storeExcludes;
|
|
34
|
+
private updateFilterActions;
|
|
35
|
+
private registerProviderActions;
|
|
36
|
+
private registerStateActions;
|
|
37
|
+
private registerArchivedActions;
|
|
38
|
+
private registerReadActions;
|
|
39
|
+
private registerResetAction;
|
|
40
|
+
isDefault(): boolean;
|
|
41
|
+
getExcludes(): IAgentSessionsFilterExcludes;
|
|
42
|
+
exclude(session: IAgentSession): boolean;
|
|
43
|
+
notifyResults(count: number): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objects';
|
|
6
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
|
+
import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
8
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
|
+
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
10
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
11
|
+
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
12
|
+
import { AgentSessionProviders, getAgentSessionProviderName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
13
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
14
|
+
import { ChatSessionStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
15
|
+
|
|
16
|
+
var AgentSessionsGrouping;
|
|
17
|
+
(function(AgentSessionsGrouping) {
|
|
18
|
+
AgentSessionsGrouping["Capped"] = "capped";
|
|
19
|
+
AgentSessionsGrouping["Date"] = "date";
|
|
20
|
+
})(AgentSessionsGrouping || (AgentSessionsGrouping = {}));
|
|
21
|
+
const DEFAULT_EXCLUDES = ( Object.freeze({
|
|
22
|
+
providers: [],
|
|
23
|
+
states: [],
|
|
24
|
+
archived: true ,
|
|
25
|
+
read: false
|
|
26
|
+
}));
|
|
27
|
+
let AgentSessionsFilter = class AgentSessionsFilter extends Disposable {
|
|
28
|
+
constructor(options, chatSessionsService, storageService) {
|
|
29
|
+
super();
|
|
30
|
+
this.options = options;
|
|
31
|
+
this.chatSessionsService = chatSessionsService;
|
|
32
|
+
this.storageService = storageService;
|
|
33
|
+
this._onDidChange = this._register(( new Emitter()));
|
|
34
|
+
this.onDidChange = this._onDidChange.event;
|
|
35
|
+
this.limitResults = () => this.options.limitResults?.();
|
|
36
|
+
this.groupResults = () => this.options.groupResults?.();
|
|
37
|
+
this.excludes = DEFAULT_EXCLUDES;
|
|
38
|
+
this.isStoringExcludes = false;
|
|
39
|
+
this.actionDisposables = this._register(( new DisposableStore()));
|
|
40
|
+
this.STORAGE_KEY = `agentSessions.filterExcludes.${this.options.filterMenuId.id.toLowerCase()}`;
|
|
41
|
+
this.updateExcludes(false);
|
|
42
|
+
this.registerListeners();
|
|
43
|
+
}
|
|
44
|
+
registerListeners() {
|
|
45
|
+
this._register(
|
|
46
|
+
this.chatSessionsService.onDidChangeItemsProviders(() => this.updateFilterActions())
|
|
47
|
+
);
|
|
48
|
+
this._register(
|
|
49
|
+
this.chatSessionsService.onDidChangeAvailability(() => this.updateFilterActions())
|
|
50
|
+
);
|
|
51
|
+
this._register(
|
|
52
|
+
this.storageService.onDidChangeValue(StorageScope.PROFILE, this.STORAGE_KEY, this._store)(() => this.updateExcludes(true))
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
updateExcludes(fromEvent) {
|
|
56
|
+
if (!this.isStoringExcludes) {
|
|
57
|
+
const excludedTypesRaw = this.storageService.get(this.STORAGE_KEY, StorageScope.PROFILE);
|
|
58
|
+
if (excludedTypesRaw) {
|
|
59
|
+
try {
|
|
60
|
+
this.excludes = JSON.parse(excludedTypesRaw);
|
|
61
|
+
} catch {
|
|
62
|
+
this.excludes = {
|
|
63
|
+
...DEFAULT_EXCLUDES
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
} else {
|
|
67
|
+
this.excludes = {
|
|
68
|
+
...DEFAULT_EXCLUDES
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
this.updateFilterActions();
|
|
73
|
+
if (fromEvent) {
|
|
74
|
+
this._onDidChange.fire();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
storeExcludes(excludes) {
|
|
78
|
+
this.excludes = excludes;
|
|
79
|
+
this.isStoringExcludes = true;
|
|
80
|
+
try {
|
|
81
|
+
if (equals(this.excludes, DEFAULT_EXCLUDES)) {
|
|
82
|
+
this.storageService.remove(this.STORAGE_KEY, StorageScope.PROFILE);
|
|
83
|
+
} else {
|
|
84
|
+
this.storageService.store(
|
|
85
|
+
this.STORAGE_KEY,
|
|
86
|
+
JSON.stringify(this.excludes),
|
|
87
|
+
StorageScope.PROFILE,
|
|
88
|
+
StorageTarget.USER
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
} finally {
|
|
92
|
+
this.isStoringExcludes = false;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
updateFilterActions() {
|
|
96
|
+
this.actionDisposables.clear();
|
|
97
|
+
this.registerProviderActions(this.actionDisposables);
|
|
98
|
+
this.registerStateActions(this.actionDisposables);
|
|
99
|
+
this.registerArchivedActions(this.actionDisposables);
|
|
100
|
+
this.registerReadActions(this.actionDisposables);
|
|
101
|
+
this.registerResetAction(this.actionDisposables);
|
|
102
|
+
}
|
|
103
|
+
registerProviderActions(disposables) {
|
|
104
|
+
const providers = ( ( Object.values(AgentSessionProviders)).map(provider => ({
|
|
105
|
+
id: provider,
|
|
106
|
+
label: getAgentSessionProviderName(provider)
|
|
107
|
+
})));
|
|
108
|
+
for (const provider of this.chatSessionsService.getAllChatSessionContributions()) {
|
|
109
|
+
if (providers.find(p => p.id === provider.type)) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
providers.push({
|
|
113
|
+
id: provider.type,
|
|
114
|
+
label: provider.name
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
const that = this;
|
|
118
|
+
let counter = 0;
|
|
119
|
+
for (const provider of providers) {
|
|
120
|
+
disposables.add(registerAction2(class extends Action2 {
|
|
121
|
+
constructor() {
|
|
122
|
+
super({
|
|
123
|
+
id: `agentSessions.filter.toggleExclude:${provider.id}.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
124
|
+
title: provider.label,
|
|
125
|
+
menu: {
|
|
126
|
+
id: that.options.filterMenuId,
|
|
127
|
+
group: "1_providers",
|
|
128
|
+
order: counter++
|
|
129
|
+
},
|
|
130
|
+
toggled: that.excludes.providers.includes(provider.id) ? ( ContextKeyExpr.false()) : ContextKeyExpr.true()
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
run() {
|
|
134
|
+
const providerExcludes = ( new Set(that.excludes.providers));
|
|
135
|
+
if (!providerExcludes.delete(provider.id)) {
|
|
136
|
+
providerExcludes.add(provider.id);
|
|
137
|
+
}
|
|
138
|
+
that.storeExcludes({
|
|
139
|
+
...that.excludes,
|
|
140
|
+
providers: Array.from(providerExcludes)
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}));
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
registerStateActions(disposables) {
|
|
147
|
+
const states = [{
|
|
148
|
+
id: ChatSessionStatus.Completed,
|
|
149
|
+
label: ( localize(4959, "Completed"))
|
|
150
|
+
}, {
|
|
151
|
+
id: ChatSessionStatus.InProgress,
|
|
152
|
+
label: ( localize(4960, "In Progress"))
|
|
153
|
+
}, {
|
|
154
|
+
id: ChatSessionStatus.NeedsInput,
|
|
155
|
+
label: ( localize(4961, "Input Needed"))
|
|
156
|
+
}, {
|
|
157
|
+
id: ChatSessionStatus.Failed,
|
|
158
|
+
label: ( localize(4962, "Failed"))
|
|
159
|
+
}];
|
|
160
|
+
const that = this;
|
|
161
|
+
let counter = 0;
|
|
162
|
+
for (const state of states) {
|
|
163
|
+
disposables.add(registerAction2(class extends Action2 {
|
|
164
|
+
constructor() {
|
|
165
|
+
super({
|
|
166
|
+
id: `agentSessions.filter.toggleExcludeState:${state.id}.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
167
|
+
title: state.label,
|
|
168
|
+
menu: {
|
|
169
|
+
id: that.options.filterMenuId,
|
|
170
|
+
group: "2_states",
|
|
171
|
+
order: counter++
|
|
172
|
+
},
|
|
173
|
+
toggled: that.excludes.states.includes(state.id) ? ( ContextKeyExpr.false()) : ContextKeyExpr.true()
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
run() {
|
|
177
|
+
const stateExcludes = ( new Set(that.excludes.states));
|
|
178
|
+
if (!stateExcludes.delete(state.id)) {
|
|
179
|
+
stateExcludes.add(state.id);
|
|
180
|
+
}
|
|
181
|
+
that.storeExcludes({
|
|
182
|
+
...that.excludes,
|
|
183
|
+
states: Array.from(stateExcludes)
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
registerArchivedActions(disposables) {
|
|
190
|
+
const that = this;
|
|
191
|
+
disposables.add(registerAction2(class extends Action2 {
|
|
192
|
+
constructor() {
|
|
193
|
+
super({
|
|
194
|
+
id: `agentSessions.filter.toggleExcludeArchived.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
195
|
+
title: ( localize(4963, "Archived")),
|
|
196
|
+
menu: {
|
|
197
|
+
id: that.options.filterMenuId,
|
|
198
|
+
group: "3_props",
|
|
199
|
+
order: 1000
|
|
200
|
+
},
|
|
201
|
+
toggled: that.excludes.archived ? ( ContextKeyExpr.false()) : ContextKeyExpr.true()
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
run() {
|
|
205
|
+
that.storeExcludes({
|
|
206
|
+
...that.excludes,
|
|
207
|
+
archived: !that.excludes.archived
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}));
|
|
211
|
+
}
|
|
212
|
+
registerReadActions(disposables) {
|
|
213
|
+
const that = this;
|
|
214
|
+
disposables.add(registerAction2(class extends Action2 {
|
|
215
|
+
constructor() {
|
|
216
|
+
super({
|
|
217
|
+
id: `agentSessions.filter.toggleExcludeRead.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
218
|
+
title: ( localize(4964, "Read")),
|
|
219
|
+
menu: {
|
|
220
|
+
id: that.options.filterMenuId,
|
|
221
|
+
group: "3_props",
|
|
222
|
+
order: 0
|
|
223
|
+
},
|
|
224
|
+
toggled: that.excludes.read ? ( ContextKeyExpr.false()) : ContextKeyExpr.true()
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
run() {
|
|
228
|
+
that.storeExcludes({
|
|
229
|
+
...that.excludes,
|
|
230
|
+
read: !that.excludes.read
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}));
|
|
234
|
+
}
|
|
235
|
+
registerResetAction(disposables) {
|
|
236
|
+
const that = this;
|
|
237
|
+
disposables.add(registerAction2(class extends Action2 {
|
|
238
|
+
constructor() {
|
|
239
|
+
super({
|
|
240
|
+
id: `agentSessions.filter.resetExcludes.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
241
|
+
title: ( localize(4965, "Reset")),
|
|
242
|
+
menu: {
|
|
243
|
+
id: that.options.filterMenuId,
|
|
244
|
+
group: "4_reset",
|
|
245
|
+
order: 0
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
run() {
|
|
250
|
+
that.storeExcludes({
|
|
251
|
+
...DEFAULT_EXCLUDES
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
}));
|
|
255
|
+
}
|
|
256
|
+
isDefault() {
|
|
257
|
+
return equals(this.excludes, DEFAULT_EXCLUDES);
|
|
258
|
+
}
|
|
259
|
+
getExcludes() {
|
|
260
|
+
return this.excludes;
|
|
261
|
+
}
|
|
262
|
+
exclude(session) {
|
|
263
|
+
const overrideExclude = this.options?.overrideExclude?.(session);
|
|
264
|
+
if (typeof overrideExclude === "boolean") {
|
|
265
|
+
return overrideExclude;
|
|
266
|
+
}
|
|
267
|
+
if (this.excludes.read && session.isRead()) {
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
if (this.excludes.providers.includes(session.providerType)) {
|
|
271
|
+
return true;
|
|
272
|
+
}
|
|
273
|
+
if (this.excludes.states.includes(session.status)) {
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
if (this.excludes.archived && this.groupResults?.() === AgentSessionsGrouping.Capped && session.isArchived()) {
|
|
277
|
+
return true;
|
|
278
|
+
}
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
notifyResults(count) {
|
|
282
|
+
this.options.notifyResults?.(count);
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
AgentSessionsFilter = ( __decorate([( __param(1, IChatSessionsService)), ( __param(2, IStorageService))], AgentSessionsFilter));
|
|
286
|
+
|
|
287
|
+
export { AgentSessionsFilter, AgentSessionsGrouping };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
3
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
|
|
4
|
+
import { IChatWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
5
|
+
import { IEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
|
|
6
|
+
export interface ISessionOpenerParticipant {
|
|
7
|
+
handleOpenSession(accessor: ServicesAccessor, session: IAgentSession, openOptions?: ISessionOpenOptions): Promise<boolean>;
|
|
8
|
+
}
|
|
9
|
+
export interface ISessionOpenOptions {
|
|
10
|
+
readonly sideBySide?: boolean;
|
|
11
|
+
readonly editorOptions?: IEditorOptions;
|
|
12
|
+
}
|
|
13
|
+
declare class SessionOpenerRegistry {
|
|
14
|
+
private readonly participants;
|
|
15
|
+
registerParticipant(participant: ISessionOpenerParticipant): IDisposable;
|
|
16
|
+
getParticipants(): readonly ISessionOpenerParticipant[];
|
|
17
|
+
}
|
|
18
|
+
export declare const sessionOpenerRegistry: SessionOpenerRegistry;
|
|
19
|
+
export declare function openSession(accessor: ServicesAccessor, session: IAgentSession, openOptions?: ISessionOpenOptions): Promise<IChatWidget | undefined>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
|
|
2
|
+
import { isLocalAgentSessionItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
3
|
+
import { ChatViewPaneTarget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
4
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
5
|
+
import { ACTIVE_GROUP, SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
6
|
+
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
7
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
8
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
+
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
10
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
|
+
import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
|
|
12
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
13
|
+
|
|
14
|
+
class SessionOpenerRegistry {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.participants = ( new Set());
|
|
17
|
+
}
|
|
18
|
+
registerParticipant(participant) {
|
|
19
|
+
this.participants.add(participant);
|
|
20
|
+
return {
|
|
21
|
+
dispose: () => {
|
|
22
|
+
this.participants.delete(participant);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
getParticipants() {
|
|
27
|
+
return Array.from(this.participants);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const sessionOpenerRegistry = ( new SessionOpenerRegistry());
|
|
31
|
+
async function openSession(accessor, session, openOptions) {
|
|
32
|
+
const instantiationService = accessor.get(IInstantiationService);
|
|
33
|
+
const logService = accessor.get(ILogService);
|
|
34
|
+
for (const participant of sessionOpenerRegistry.getParticipants()) {
|
|
35
|
+
try {
|
|
36
|
+
const handled = await instantiationService.invokeFunction(accessor => participant.handleOpenSession(accessor, session, openOptions));
|
|
37
|
+
if (handled) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
} catch (error) {
|
|
41
|
+
logService.error(error);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return instantiationService.invokeFunction(accessor => openSessionDefault(accessor, session, openOptions));
|
|
45
|
+
}
|
|
46
|
+
async function openSessionDefault(accessor, session, openOptions) {
|
|
47
|
+
const chatSessionsService = accessor.get(IChatSessionsService);
|
|
48
|
+
const chatWidgetService = accessor.get(IChatWidgetService);
|
|
49
|
+
const notificationService = accessor.get(INotificationService);
|
|
50
|
+
try {
|
|
51
|
+
session.setRead(true);
|
|
52
|
+
let sessionOptions;
|
|
53
|
+
if (isLocalAgentSessionItem(session)) {
|
|
54
|
+
sessionOptions = {};
|
|
55
|
+
} else {
|
|
56
|
+
sessionOptions = {
|
|
57
|
+
title: {
|
|
58
|
+
preferred: session.label
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
let options = {
|
|
63
|
+
...sessionOptions,
|
|
64
|
+
...openOptions?.editorOptions,
|
|
65
|
+
revealIfOpened: true
|
|
66
|
+
};
|
|
67
|
+
await chatSessionsService.activateChatSessionItemProvider(session.providerType);
|
|
68
|
+
let target;
|
|
69
|
+
if (openOptions?.sideBySide) {
|
|
70
|
+
target = ACTIVE_GROUP;
|
|
71
|
+
} else {
|
|
72
|
+
target = ChatViewPaneTarget;
|
|
73
|
+
}
|
|
74
|
+
const isLocalChatSession = session.resource.scheme === Schemas.vscodeChatEditor || session.resource.scheme === Schemas.vscodeLocalChatSession;
|
|
75
|
+
if (!isLocalChatSession && !(await chatSessionsService.canResolveChatSession(session.resource))) {
|
|
76
|
+
target = openOptions?.sideBySide ? SIDE_GROUP : ACTIVE_GROUP;
|
|
77
|
+
options = {
|
|
78
|
+
...options,
|
|
79
|
+
revealIfOpened: true
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
return await chatWidgetService.openSession(session.resource, target, options);
|
|
83
|
+
} catch (error) {
|
|
84
|
+
notificationService.error(( localize(4967, "Failed to open chat session: {0}", toErrorMessage(error))));
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export { openSession, sessionOpenerRegistry };
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { IIdentityProvider, IListVirtualDelegate, NotSelectableGroupIdType } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/list";
|
|
2
|
+
import { AriaRole } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria";
|
|
3
|
+
import { IListAccessibilityProvider } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/listWidget";
|
|
4
|
+
import { ITreeCompressionDelegate } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/asyncDataTree";
|
|
5
|
+
import { ICompressedTreeNode } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/compressedObjectTreeModel";
|
|
6
|
+
import { ICompressibleKeyboardNavigationLabelProvider, ICompressibleTreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/objectTree";
|
|
7
|
+
import { ITreeNode, ITreeElementRenderDetails, IAsyncDataSource, ITreeSorter, ITreeDragAndDrop, ITreeDragOverReaction } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree";
|
|
8
|
+
import { Disposable, DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
9
|
+
import { AgentSessionSection, AgentSessionStatus, IAgentSession, IAgentSessionSection, IAgentSessionsModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
10
|
+
import { IconLabel } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabel";
|
|
11
|
+
import { FuzzyScore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/filters";
|
|
12
|
+
import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
|
|
13
|
+
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
14
|
+
import { IDragAndDropData } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dnd";
|
|
15
|
+
import { ListViewTargetSector } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/listView";
|
|
16
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
17
|
+
import { HoverPosition } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverWidget";
|
|
18
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
19
|
+
import { MenuWorkbenchToolBar } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar";
|
|
20
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
21
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
22
|
+
import { AgentSessionsGrouping } from "./agentSessionsFilter.js";
|
|
23
|
+
export type AgentSessionListItem = IAgentSession | IAgentSessionSection;
|
|
24
|
+
interface IAgentSessionItemTemplate {
|
|
25
|
+
readonly element: HTMLElement;
|
|
26
|
+
readonly icon: HTMLElement;
|
|
27
|
+
readonly title: IconLabel;
|
|
28
|
+
readonly titleToolbar: MenuWorkbenchToolBar;
|
|
29
|
+
readonly diffContainer: HTMLElement;
|
|
30
|
+
readonly diffAddedSpan: HTMLSpanElement;
|
|
31
|
+
readonly diffRemovedSpan: HTMLSpanElement;
|
|
32
|
+
readonly badge: HTMLElement;
|
|
33
|
+
readonly description: HTMLElement;
|
|
34
|
+
readonly statusContainer: HTMLElement;
|
|
35
|
+
readonly statusProviderIcon: HTMLElement;
|
|
36
|
+
readonly statusTime: HTMLElement;
|
|
37
|
+
readonly contextKeyService: IContextKeyService;
|
|
38
|
+
readonly elementDisposable: DisposableStore;
|
|
39
|
+
readonly disposables: IDisposable;
|
|
40
|
+
}
|
|
41
|
+
export interface IAgentSessionRendererOptions {
|
|
42
|
+
getHoverPosition(): HoverPosition;
|
|
43
|
+
}
|
|
44
|
+
export declare class AgentSessionRenderer extends Disposable implements ICompressibleTreeRenderer<IAgentSession, FuzzyScore, IAgentSessionItemTemplate> {
|
|
45
|
+
private readonly options;
|
|
46
|
+
private readonly markdownRendererService;
|
|
47
|
+
private readonly productService;
|
|
48
|
+
private readonly hoverService;
|
|
49
|
+
private readonly instantiationService;
|
|
50
|
+
private readonly contextKeyService;
|
|
51
|
+
static readonly TEMPLATE_ID = "agent-session";
|
|
52
|
+
readonly templateId = "agent-session";
|
|
53
|
+
private readonly sessionHover;
|
|
54
|
+
constructor(options: IAgentSessionRendererOptions, markdownRendererService: IMarkdownRendererService, productService: IProductService, hoverService: IHoverService, instantiationService: IInstantiationService, contextKeyService: IContextKeyService);
|
|
55
|
+
renderTemplate(container: HTMLElement): IAgentSessionItemTemplate;
|
|
56
|
+
renderElement(session: ITreeNode<IAgentSession, FuzzyScore>, index: number, template: IAgentSessionItemTemplate, details?: ITreeElementRenderDetails): void;
|
|
57
|
+
private renderBadge;
|
|
58
|
+
private renderMarkdownOrText;
|
|
59
|
+
private renderDiff;
|
|
60
|
+
private getIcon;
|
|
61
|
+
private renderDescription;
|
|
62
|
+
private toDuration;
|
|
63
|
+
private renderStatus;
|
|
64
|
+
private renderHover;
|
|
65
|
+
private buildHoverContent;
|
|
66
|
+
renderCompressedElements(node: ITreeNode<ICompressedTreeNode<IAgentSession>, FuzzyScore>, index: number, templateData: IAgentSessionItemTemplate, details?: ITreeElementRenderDetails): void;
|
|
67
|
+
disposeElement(element: ITreeNode<IAgentSession, FuzzyScore>, index: number, template: IAgentSessionItemTemplate, details?: ITreeElementRenderDetails): void;
|
|
68
|
+
disposeTemplate(templateData: IAgentSessionItemTemplate): void;
|
|
69
|
+
}
|
|
70
|
+
export declare function toStatusLabel(status: AgentSessionStatus): string;
|
|
71
|
+
interface IAgentSessionSectionTemplate {
|
|
72
|
+
readonly container: HTMLElement;
|
|
73
|
+
readonly label: HTMLSpanElement;
|
|
74
|
+
readonly toolbar: MenuWorkbenchToolBar;
|
|
75
|
+
readonly contextKeyService: IContextKeyService;
|
|
76
|
+
readonly disposables: IDisposable;
|
|
77
|
+
}
|
|
78
|
+
export declare class AgentSessionSectionRenderer implements ICompressibleTreeRenderer<IAgentSessionSection, FuzzyScore, IAgentSessionSectionTemplate> {
|
|
79
|
+
private readonly instantiationService;
|
|
80
|
+
private readonly contextKeyService;
|
|
81
|
+
static readonly TEMPLATE_ID = "agent-session-section";
|
|
82
|
+
readonly templateId = "agent-session-section";
|
|
83
|
+
constructor(instantiationService: IInstantiationService, contextKeyService: IContextKeyService);
|
|
84
|
+
renderTemplate(container: HTMLElement): IAgentSessionSectionTemplate;
|
|
85
|
+
renderElement(element: ITreeNode<IAgentSessionSection, FuzzyScore>, index: number, template: IAgentSessionSectionTemplate, details?: ITreeElementRenderDetails): void;
|
|
86
|
+
renderCompressedElements(node: ITreeNode<ICompressedTreeNode<IAgentSessionSection>, FuzzyScore>, index: number, templateData: IAgentSessionSectionTemplate, details?: ITreeElementRenderDetails): void;
|
|
87
|
+
disposeElement(element: ITreeNode<IAgentSessionSection, FuzzyScore>, index: number, template: IAgentSessionSectionTemplate, details?: ITreeElementRenderDetails): void;
|
|
88
|
+
disposeTemplate(templateData: IAgentSessionSectionTemplate): void;
|
|
89
|
+
}
|
|
90
|
+
export declare class AgentSessionsListDelegate implements IListVirtualDelegate<AgentSessionListItem> {
|
|
91
|
+
static readonly ITEM_HEIGHT = 52;
|
|
92
|
+
static readonly SECTION_HEIGHT = 26;
|
|
93
|
+
getHeight(element: AgentSessionListItem): number;
|
|
94
|
+
getTemplateId(element: AgentSessionListItem): string;
|
|
95
|
+
}
|
|
96
|
+
export declare class AgentSessionsAccessibilityProvider implements IListAccessibilityProvider<AgentSessionListItem> {
|
|
97
|
+
getWidgetRole(): AriaRole;
|
|
98
|
+
getRole(element: AgentSessionListItem): AriaRole | undefined;
|
|
99
|
+
getWidgetAriaLabel(): string;
|
|
100
|
+
getAriaLabel(element: AgentSessionListItem): string | null;
|
|
101
|
+
}
|
|
102
|
+
export interface IAgentSessionsFilterExcludes {
|
|
103
|
+
readonly providers: readonly string[];
|
|
104
|
+
readonly states: readonly AgentSessionStatus[];
|
|
105
|
+
readonly archived: boolean;
|
|
106
|
+
readonly read: boolean;
|
|
107
|
+
}
|
|
108
|
+
export interface IAgentSessionsFilter {
|
|
109
|
+
/**
|
|
110
|
+
* An event that fires when the filter changes and sessions
|
|
111
|
+
* should be re-evaluated.
|
|
112
|
+
*/
|
|
113
|
+
readonly onDidChange: Event<void>;
|
|
114
|
+
/**
|
|
115
|
+
* Optional limit on the number of sessions to show.
|
|
116
|
+
*/
|
|
117
|
+
readonly limitResults?: () => number | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Whether to show section headers to group sessions.
|
|
120
|
+
* When undefined, sessions are shown as a flat list.
|
|
121
|
+
*/
|
|
122
|
+
readonly groupResults?: () => AgentSessionsGrouping | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* A callback to notify the filter about the number of
|
|
125
|
+
* results after filtering.
|
|
126
|
+
*/
|
|
127
|
+
notifyResults?(count: number): void;
|
|
128
|
+
/**
|
|
129
|
+
* The logic to exclude sessions from the view.
|
|
130
|
+
*/
|
|
131
|
+
exclude(session: IAgentSession): boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Get the current filter excludes for display in the UI.
|
|
134
|
+
*/
|
|
135
|
+
getExcludes(): IAgentSessionsFilterExcludes;
|
|
136
|
+
}
|
|
137
|
+
export declare class AgentSessionsDataSource implements IAsyncDataSource<IAgentSessionsModel, AgentSessionListItem> {
|
|
138
|
+
private readonly filter;
|
|
139
|
+
private readonly sorter;
|
|
140
|
+
private static readonly CAPPED_SESSIONS_LIMIT;
|
|
141
|
+
constructor(filter: IAgentSessionsFilter | undefined, sorter: ITreeSorter<IAgentSession>);
|
|
142
|
+
hasChildren(element: IAgentSessionsModel | AgentSessionListItem): boolean;
|
|
143
|
+
getChildren(element: IAgentSessionsModel | AgentSessionListItem): Iterable<AgentSessionListItem>;
|
|
144
|
+
private groupSessionsIntoSections;
|
|
145
|
+
private groupSessionsCapped;
|
|
146
|
+
private groupSessionsByDate;
|
|
147
|
+
}
|
|
148
|
+
export declare const AgentSessionSectionLabels: {
|
|
149
|
+
inProgress: string;
|
|
150
|
+
today: string;
|
|
151
|
+
yesterday: string;
|
|
152
|
+
week: string;
|
|
153
|
+
older: string;
|
|
154
|
+
archived: string;
|
|
155
|
+
more: string;
|
|
156
|
+
};
|
|
157
|
+
export declare function groupAgentSessionsByDate(sessions: IAgentSession[]): Map<AgentSessionSection, IAgentSessionSection>;
|
|
158
|
+
export declare class AgentSessionsIdentityProvider implements IIdentityProvider<IAgentSessionsModel | AgentSessionListItem> {
|
|
159
|
+
getId(element: IAgentSessionsModel | AgentSessionListItem): string;
|
|
160
|
+
getGroupId(element: IAgentSessionsModel | AgentSessionListItem): number | NotSelectableGroupIdType;
|
|
161
|
+
}
|
|
162
|
+
export declare class AgentSessionsCompressionDelegate implements ITreeCompressionDelegate<AgentSessionListItem> {
|
|
163
|
+
isIncompressible(element: AgentSessionListItem): boolean;
|
|
164
|
+
}
|
|
165
|
+
export interface IAgentSessionsSorterOptions {
|
|
166
|
+
overrideCompare?(sessionA: IAgentSession, sessionB: IAgentSession): number | undefined;
|
|
167
|
+
}
|
|
168
|
+
export declare class AgentSessionsSorter implements ITreeSorter<IAgentSession> {
|
|
169
|
+
private readonly options?;
|
|
170
|
+
constructor(options?: IAgentSessionsSorterOptions | undefined);
|
|
171
|
+
compare(sessionA: IAgentSession, sessionB: IAgentSession): number;
|
|
172
|
+
}
|
|
173
|
+
export declare class AgentSessionsKeyboardNavigationLabelProvider implements ICompressibleKeyboardNavigationLabelProvider<AgentSessionListItem> {
|
|
174
|
+
getKeyboardNavigationLabel(element: AgentSessionListItem): string;
|
|
175
|
+
getCompressedNodeKeyboardNavigationLabel(elements: AgentSessionListItem[]): {
|
|
176
|
+
toString(): string | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
}
|
|
179
|
+
export declare class AgentSessionsDragAndDrop extends Disposable implements ITreeDragAndDrop<AgentSessionListItem> {
|
|
180
|
+
private readonly instantiationService;
|
|
181
|
+
constructor(instantiationService: IInstantiationService);
|
|
182
|
+
onDragStart(data: IDragAndDropData, originalEvent: DragEvent): void;
|
|
183
|
+
getDragURI(element: AgentSessionListItem): string | null;
|
|
184
|
+
getDragLabel?(elements: AgentSessionListItem[], originalEvent: DragEvent): string | undefined;
|
|
185
|
+
onDragOver(data: IDragAndDropData, targetElement: AgentSessionListItem | undefined, targetIndex: number | undefined, targetSector: ListViewTargetSector | undefined, originalEvent: DragEvent): boolean | ITreeDragOverReaction;
|
|
186
|
+
drop(data: IDragAndDropData, targetElement: AgentSessionListItem | undefined, targetIndex: number | undefined, targetSector: ListViewTargetSector | undefined, originalEvent: DragEvent): void;
|
|
187
|
+
}
|
|
188
|
+
export {};
|