@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { $ as $$1, EventHelper, hide
|
|
3
|
+
import { $ as $$1, EventHelper, hide } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
5
5
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
6
|
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
@@ -40,13 +40,22 @@ import { ChatCollapsibleContentPart } from './chatCollapsibleContentPart.js';
|
|
|
40
40
|
import { ResourcePool } from './chatCollections.js';
|
|
41
41
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
42
42
|
|
|
43
|
-
var CollapsibleListRenderer_1
|
|
43
|
+
var CollapsibleListRenderer_1;
|
|
44
44
|
const $ = $$1;
|
|
45
45
|
let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extends ChatCollapsibleContentPart {
|
|
46
|
-
constructor(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
constructor(
|
|
47
|
+
data,
|
|
48
|
+
labelOverride,
|
|
49
|
+
context,
|
|
50
|
+
contentReferencesListPool,
|
|
51
|
+
hoverMessage,
|
|
52
|
+
openerService,
|
|
53
|
+
menuService,
|
|
54
|
+
instantiationService,
|
|
55
|
+
contextMenuService,
|
|
56
|
+
hoverService
|
|
57
|
+
) {
|
|
58
|
+
super(labelOverride ?? (data.length > 1 ? ( localize(5887, "Used {0} references", data.length)) : ( localize(5888, "Used {0} reference", 1))), context, hoverMessage, hoverService);
|
|
50
59
|
this.data = data;
|
|
51
60
|
this.contentReferencesListPool = contentReferencesListPool;
|
|
52
61
|
this.openerService = openerService;
|
|
@@ -57,18 +66,17 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
|
|
|
57
66
|
initContent() {
|
|
58
67
|
const ref = this._register(this.contentReferencesListPool.get());
|
|
59
68
|
const list = ref.object;
|
|
60
|
-
this._register(list.onDidOpen(
|
|
61
|
-
if (e.element &&
|
|
62
|
-
const uriOrLocation =
|
|
63
|
-
const uri = URI.isUri(uriOrLocation) ? uriOrLocation :
|
|
64
|
-
uriOrLocation?.uri;
|
|
69
|
+
this._register(list.onDidOpen(e => {
|
|
70
|
+
if (e.element && "reference" in e.element && typeof e.element.reference === "object") {
|
|
71
|
+
const uriOrLocation = "variableName" in e.element.reference ? e.element.reference.value : e.element.reference;
|
|
72
|
+
const uri = URI.isUri(uriOrLocation) ? uriOrLocation : uriOrLocation?.uri;
|
|
65
73
|
if (uri) {
|
|
66
74
|
this.openerService.open(uri, {
|
|
67
75
|
fromUserGesture: true,
|
|
68
76
|
editorOptions: {
|
|
69
77
|
...e.editorOptions,
|
|
70
78
|
...{
|
|
71
|
-
selection: uriOrLocation &&
|
|
79
|
+
selection: uriOrLocation && "range" in uriOrLocation ? uriOrLocation.range : undefined
|
|
72
80
|
}
|
|
73
81
|
}
|
|
74
82
|
});
|
|
@@ -84,7 +92,10 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
|
|
|
84
92
|
this.contextMenuService.showContextMenu({
|
|
85
93
|
getAnchor: () => e.anchor,
|
|
86
94
|
getActions: () => {
|
|
87
|
-
const menu = this.menuService.getMenuActions(MenuId.ChatAttachmentsContext, list.contextKeyService, {
|
|
95
|
+
const menu = this.menuService.getMenuActions(MenuId.ChatAttachmentsContext, list.contextKeyService, {
|
|
96
|
+
shouldForwardArgs: true,
|
|
97
|
+
arg: uri
|
|
98
|
+
});
|
|
88
99
|
return getFlatContextMenuActions(menu);
|
|
89
100
|
}
|
|
90
101
|
});
|
|
@@ -105,45 +116,62 @@ let ChatCollapsibleListContentPart = class ChatCollapsibleListContentPart extend
|
|
|
105
116
|
return list.getHTMLElement().parentElement;
|
|
106
117
|
}
|
|
107
118
|
hasSameContent(other, followingContent, element) {
|
|
108
|
-
return other.kind ===
|
|
119
|
+
return other.kind === "references" && other.references.length === this.data.length && (!!followingContent.length === this.hasFollowingContent);
|
|
109
120
|
}
|
|
110
121
|
};
|
|
111
|
-
ChatCollapsibleListContentPart = ( __decorate([
|
|
112
|
-
( __param(5, IOpenerService)),
|
|
113
|
-
( __param(6, IMenuService)),
|
|
114
|
-
( __param(7, IInstantiationService)),
|
|
115
|
-
( __param(8, IContextMenuService)),
|
|
116
|
-
( __param(9, IHoverService))
|
|
117
|
-
], ChatCollapsibleListContentPart));
|
|
122
|
+
ChatCollapsibleListContentPart = ( __decorate([( __param(5, IOpenerService)), ( __param(6, IMenuService)), ( __param(7, IInstantiationService)), ( __param(8, IContextMenuService)), ( __param(9, IHoverService))], ChatCollapsibleListContentPart));
|
|
118
123
|
let ChatUsedReferencesListContentPart = class ChatUsedReferencesListContentPart extends ChatCollapsibleListContentPart {
|
|
119
|
-
constructor(
|
|
120
|
-
|
|
124
|
+
constructor(
|
|
125
|
+
data,
|
|
126
|
+
labelOverride,
|
|
127
|
+
context,
|
|
128
|
+
contentReferencesListPool,
|
|
129
|
+
options,
|
|
130
|
+
openerService,
|
|
131
|
+
menuService,
|
|
132
|
+
instantiationService,
|
|
133
|
+
contextMenuService,
|
|
134
|
+
hoverService
|
|
135
|
+
) {
|
|
136
|
+
super(
|
|
137
|
+
data,
|
|
138
|
+
labelOverride,
|
|
139
|
+
context,
|
|
140
|
+
contentReferencesListPool,
|
|
141
|
+
undefined,
|
|
142
|
+
openerService,
|
|
143
|
+
menuService,
|
|
144
|
+
instantiationService,
|
|
145
|
+
contextMenuService,
|
|
146
|
+
hoverService
|
|
147
|
+
);
|
|
121
148
|
this.options = options;
|
|
122
149
|
if (data.length === 0) {
|
|
123
150
|
hide(this.domNode);
|
|
124
151
|
}
|
|
125
152
|
}
|
|
126
153
|
isExpanded() {
|
|
127
|
-
const element = this.
|
|
154
|
+
const element = this.element;
|
|
128
155
|
return element.usedReferencesExpanded ?? !!(this.options.expandedWhenEmptyResponse && element.response.value.length === 0);
|
|
129
156
|
}
|
|
130
157
|
setExpanded(value) {
|
|
131
|
-
const element = this.
|
|
158
|
+
const element = this.element;
|
|
132
159
|
element.usedReferencesExpanded = !this.isExpanded();
|
|
133
160
|
}
|
|
134
161
|
};
|
|
135
|
-
ChatUsedReferencesListContentPart = ( __decorate([
|
|
136
|
-
( __param(5, IOpenerService)),
|
|
137
|
-
( __param(6, IMenuService)),
|
|
138
|
-
( __param(7, IInstantiationService)),
|
|
139
|
-
( __param(8, IContextMenuService)),
|
|
140
|
-
( __param(9, IHoverService))
|
|
141
|
-
], ChatUsedReferencesListContentPart));
|
|
162
|
+
ChatUsedReferencesListContentPart = ( __decorate([( __param(5, IOpenerService)), ( __param(6, IMenuService)), ( __param(7, IInstantiationService)), ( __param(8, IContextMenuService)), ( __param(9, IHoverService))], ChatUsedReferencesListContentPart));
|
|
142
163
|
let CollapsibleListPool = class CollapsibleListPool extends Disposable {
|
|
143
164
|
get inUse() {
|
|
144
165
|
return this._pool.inUse;
|
|
145
166
|
}
|
|
146
|
-
constructor(
|
|
167
|
+
constructor(
|
|
168
|
+
_onDidChangeVisibility,
|
|
169
|
+
menuId,
|
|
170
|
+
listOptions,
|
|
171
|
+
instantiationService,
|
|
172
|
+
themeService,
|
|
173
|
+
labelService
|
|
174
|
+
) {
|
|
147
175
|
super();
|
|
148
176
|
this._onDidChangeVisibility = _onDidChangeVisibility;
|
|
149
177
|
this.menuId = menuId;
|
|
@@ -154,99 +182,106 @@ let CollapsibleListPool = class CollapsibleListPool extends Disposable {
|
|
|
154
182
|
this._pool = this._register(( new ResourcePool(() => this.listFactory())));
|
|
155
183
|
}
|
|
156
184
|
listFactory() {
|
|
157
|
-
const
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
185
|
+
const store = ( new DisposableStore());
|
|
186
|
+
const resourceLabels = store.add(this.instantiationService.createInstance(ResourceLabels, {
|
|
187
|
+
onDidChangeVisibility: this._onDidChangeVisibility
|
|
188
|
+
}));
|
|
189
|
+
const container = $(".chat-used-context-list");
|
|
190
|
+
store.add(createFileIconThemableTreeContainerScope(container, this.themeService));
|
|
191
|
+
const list = this.instantiationService.createInstance(WorkbenchList, "ChatListRenderer", container, ( new CollapsibleListDelegate()), [
|
|
192
|
+
this.instantiationService.createInstance(CollapsibleListRenderer, resourceLabels, this.menuId)
|
|
193
|
+
], {
|
|
161
194
|
...this.listOptions,
|
|
162
195
|
alwaysConsumeMouseWheel: false,
|
|
163
196
|
accessibilityProvider: {
|
|
164
|
-
getAriaLabel:
|
|
165
|
-
if (element.kind ===
|
|
197
|
+
getAriaLabel: element => {
|
|
198
|
+
if (element.kind === "warning") {
|
|
166
199
|
return element.content.value;
|
|
167
200
|
}
|
|
168
|
-
if (element.kind === 'divider') {
|
|
169
|
-
return element.label;
|
|
170
|
-
}
|
|
171
201
|
const reference = element.reference;
|
|
172
|
-
if (typeof reference ===
|
|
202
|
+
if (typeof reference === "string") {
|
|
173
203
|
return reference;
|
|
174
|
-
}
|
|
175
|
-
else if ('variableName' in reference) {
|
|
204
|
+
} else if ("variableName" in reference) {
|
|
176
205
|
return reference.variableName;
|
|
177
|
-
}
|
|
178
|
-
else if (URI.isUri(reference)) {
|
|
206
|
+
} else if (URI.isUri(reference)) {
|
|
179
207
|
return basename(reference.path);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
208
|
+
} else {
|
|
182
209
|
return basename(reference.uri.path);
|
|
183
210
|
}
|
|
184
211
|
},
|
|
185
|
-
getWidgetAriaLabel: () => ( localize(
|
|
212
|
+
getWidgetAriaLabel: () => ( localize(5889, "Collapsible Chat References List"))
|
|
186
213
|
},
|
|
187
214
|
dnd: {
|
|
188
|
-
getDragURI:
|
|
215
|
+
getDragURI: element => getResourceForElement(element)?.toString() ?? null,
|
|
189
216
|
getDragLabel: (elements, originalEvent) => {
|
|
190
217
|
const uris = coalesce(( elements.map(getResourceForElement)));
|
|
191
218
|
if (!uris.length) {
|
|
192
219
|
return undefined;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
else {
|
|
220
|
+
} else if (uris.length === 1) {
|
|
221
|
+
return this.labelService.getUriLabel(uris[0], {
|
|
222
|
+
relative: true
|
|
223
|
+
});
|
|
224
|
+
} else {
|
|
198
225
|
return `${uris.length}`;
|
|
199
226
|
}
|
|
200
227
|
},
|
|
201
|
-
dispose: () => {
|
|
228
|
+
dispose: () => {},
|
|
202
229
|
onDragOver: () => false,
|
|
203
|
-
drop: () => {
|
|
230
|
+
drop: () => {},
|
|
204
231
|
onDragStart: (data, originalEvent) => {
|
|
205
232
|
try {
|
|
206
233
|
const elements = data.getData();
|
|
207
234
|
const uris = coalesce(( elements.map(getResourceForElement)));
|
|
208
235
|
this.instantiationService.invokeFunction(accessor => fillEditorsDragData(accessor, uris, originalEvent));
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
},
|
|
236
|
+
} catch {}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
214
239
|
});
|
|
215
|
-
return
|
|
240
|
+
return {
|
|
241
|
+
list,
|
|
242
|
+
dispose: () => store.dispose()
|
|
243
|
+
};
|
|
216
244
|
}
|
|
217
245
|
get() {
|
|
218
|
-
const
|
|
246
|
+
const wrapper = this._pool.get();
|
|
219
247
|
let stale = false;
|
|
220
248
|
return {
|
|
221
|
-
object,
|
|
249
|
+
object: wrapper.list,
|
|
222
250
|
isStale: () => stale,
|
|
223
251
|
dispose: () => {
|
|
224
252
|
stale = true;
|
|
225
|
-
this._pool.release(
|
|
253
|
+
this._pool.release(wrapper);
|
|
226
254
|
}
|
|
227
255
|
};
|
|
228
256
|
}
|
|
257
|
+
clear() {
|
|
258
|
+
this._pool.clear();
|
|
259
|
+
}
|
|
229
260
|
};
|
|
230
|
-
CollapsibleListPool = ( __decorate([
|
|
231
|
-
( __param(3, IInstantiationService)),
|
|
232
|
-
( __param(4, IThemeService)),
|
|
233
|
-
( __param(5, ILabelService))
|
|
234
|
-
], CollapsibleListPool));
|
|
261
|
+
CollapsibleListPool = ( __decorate([( __param(3, IInstantiationService)), ( __param(4, IThemeService)), ( __param(5, ILabelService))], CollapsibleListPool));
|
|
235
262
|
class CollapsibleListDelegate {
|
|
236
263
|
getHeight(element) {
|
|
237
264
|
return 22;
|
|
238
265
|
}
|
|
239
266
|
getTemplateId(element) {
|
|
240
|
-
if (element.kind === 'divider') {
|
|
241
|
-
return DividerRenderer.TEMPLATE_ID;
|
|
242
|
-
}
|
|
243
267
|
return CollapsibleListRenderer.TEMPLATE_ID;
|
|
244
268
|
}
|
|
245
269
|
}
|
|
246
270
|
let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
247
|
-
static {
|
|
248
|
-
|
|
249
|
-
|
|
271
|
+
static {
|
|
272
|
+
CollapsibleListRenderer_1 = this;
|
|
273
|
+
}
|
|
274
|
+
static {
|
|
275
|
+
this.TEMPLATE_ID = "chatCollapsibleListRenderer";
|
|
276
|
+
}
|
|
277
|
+
constructor(
|
|
278
|
+
labels,
|
|
279
|
+
menuId,
|
|
280
|
+
themeService,
|
|
281
|
+
productService,
|
|
282
|
+
instantiationService,
|
|
283
|
+
contextKeyService
|
|
284
|
+
) {
|
|
250
285
|
this.labels = labels;
|
|
251
286
|
this.menuId = menuId;
|
|
252
287
|
this.themeService = themeService;
|
|
@@ -257,10 +292,13 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
257
292
|
}
|
|
258
293
|
renderTemplate(container) {
|
|
259
294
|
const templateDisposables = ( new DisposableStore());
|
|
260
|
-
const label = templateDisposables.add(this.labels.create(container, {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
295
|
+
const label = templateDisposables.add(this.labels.create(container, {
|
|
296
|
+
supportHighlights: true,
|
|
297
|
+
supportIcons: true
|
|
298
|
+
}));
|
|
299
|
+
const fileDiffsContainer = $(".working-set-line-counts");
|
|
300
|
+
const addedSpan = $$1(".working-set-lines-added");
|
|
301
|
+
const removedSpan = $$1(".working-set-lines-removed");
|
|
264
302
|
fileDiffsContainer.appendChild(addedSpan);
|
|
265
303
|
fileDiffsContainer.appendChild(removedSpan);
|
|
266
304
|
label.element.appendChild(fileDiffsContainer);
|
|
@@ -268,92 +306,127 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
268
306
|
let actionBarContainer;
|
|
269
307
|
let contextKeyService;
|
|
270
308
|
if (this.menuId) {
|
|
271
|
-
actionBarContainer = $(
|
|
309
|
+
actionBarContainer = $(".chat-collapsible-list-action-bar");
|
|
272
310
|
contextKeyService = templateDisposables.add(this.contextKeyService.createScoped(actionBarContainer));
|
|
273
311
|
const scopedInstantiationService = templateDisposables.add(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, contextKeyService]))));
|
|
274
|
-
toolbar = templateDisposables.add(
|
|
312
|
+
toolbar = templateDisposables.add(
|
|
313
|
+
scopedInstantiationService.createInstance(MenuWorkbenchToolBar, actionBarContainer, this.menuId, {
|
|
314
|
+
menuOptions: {
|
|
315
|
+
shouldForwardArgs: true,
|
|
316
|
+
arg: undefined
|
|
317
|
+
}
|
|
318
|
+
})
|
|
319
|
+
);
|
|
275
320
|
label.element.appendChild(actionBarContainer);
|
|
276
321
|
}
|
|
277
|
-
return {
|
|
322
|
+
return {
|
|
323
|
+
templateDisposables,
|
|
324
|
+
label,
|
|
325
|
+
toolbar,
|
|
326
|
+
actionBarContainer,
|
|
327
|
+
contextKeyService,
|
|
328
|
+
fileDiffsContainer,
|
|
329
|
+
addedSpan,
|
|
330
|
+
removedSpan
|
|
331
|
+
};
|
|
278
332
|
}
|
|
279
333
|
getReferenceIcon(data) {
|
|
280
334
|
if (ThemeIcon.isThemeIcon(data.iconPath)) {
|
|
281
335
|
return data.iconPath;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
return isDark(this.themeService.getColorTheme().type) && data.iconPath?.dark
|
|
285
|
-
? data.iconPath?.dark
|
|
286
|
-
: data.iconPath?.light;
|
|
336
|
+
} else {
|
|
337
|
+
return isDark(this.themeService.getColorTheme().type) && data.iconPath?.dark ? data.iconPath?.dark : data.iconPath?.light;
|
|
287
338
|
}
|
|
288
339
|
}
|
|
289
340
|
renderElement(data, index, templateData) {
|
|
290
|
-
if (data.kind ===
|
|
291
|
-
templateData.label.setResource({
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
341
|
+
if (data.kind === "warning") {
|
|
342
|
+
templateData.label.setResource({
|
|
343
|
+
name: data.content.value
|
|
344
|
+
}, {
|
|
345
|
+
icon: Codicon.warning
|
|
346
|
+
});
|
|
295
347
|
return;
|
|
296
348
|
}
|
|
297
349
|
const reference = data.reference;
|
|
298
350
|
const icon = this.getReferenceIcon(data);
|
|
299
|
-
templateData.label.element.style.display =
|
|
351
|
+
templateData.label.element.style.display = "flex";
|
|
300
352
|
let arg;
|
|
301
|
-
if (typeof reference ===
|
|
353
|
+
if (typeof reference === "object" && "variableName" in reference) {
|
|
302
354
|
if (reference.value) {
|
|
303
355
|
const uri = URI.isUri(reference.value) ? reference.value : reference.value.uri;
|
|
304
356
|
templateData.label.setResource({
|
|
305
357
|
resource: uri,
|
|
306
358
|
name: basenameOrAuthority(uri),
|
|
307
359
|
description: `#${reference.variableName}`,
|
|
308
|
-
range:
|
|
309
|
-
}, {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
360
|
+
range: "range" in reference.value ? reference.value.range : undefined
|
|
361
|
+
}, {
|
|
362
|
+
icon,
|
|
363
|
+
title: data.options?.status?.description ?? data.title
|
|
364
|
+
});
|
|
365
|
+
} else if (reference.variableName.startsWith("kernelVariable")) {
|
|
366
|
+
const variable = reference.variableName.split(":")[1];
|
|
313
367
|
const asVariableName = `${variable}`;
|
|
314
368
|
const label = `Kernel variable`;
|
|
315
|
-
templateData.label.setLabel(label, asVariableName, {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
369
|
+
templateData.label.setLabel(label, asVariableName, {
|
|
370
|
+
title: data.options?.status?.description
|
|
371
|
+
});
|
|
372
|
+
} else {
|
|
373
|
+
templateData.label.setLabel("Unknown variable type: " + reference.variableName);
|
|
319
374
|
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
375
|
+
} else if (typeof reference === "string") {
|
|
376
|
+
templateData.label.setLabel(reference, undefined, {
|
|
377
|
+
iconPath: URI.isUri(icon) ? icon : undefined,
|
|
378
|
+
title: data.options?.status?.description ?? data.title
|
|
379
|
+
});
|
|
380
|
+
} else {
|
|
381
|
+
const uri = "uri" in reference ? reference.uri : reference;
|
|
326
382
|
arg = uri;
|
|
327
|
-
const extraClasses = data.excluded ? [
|
|
328
|
-
if (uri.scheme ===
|
|
329
|
-
templateData.label.setResource(getResourceLabelForGithubUri(uri), {
|
|
330
|
-
|
|
331
|
-
|
|
383
|
+
const extraClasses = data.excluded ? ["excluded"] : [];
|
|
384
|
+
if (uri.scheme === "https" && isEqualAuthority(uri.authority, "github.com") && uri.path.includes("/tree/")) {
|
|
385
|
+
templateData.label.setResource(getResourceLabelForGithubUri(uri), {
|
|
386
|
+
icon: Codicon.github,
|
|
387
|
+
title: data.title,
|
|
388
|
+
strikethrough: data.excluded,
|
|
389
|
+
extraClasses
|
|
390
|
+
});
|
|
391
|
+
} else if (uri.scheme === this.productService.urlProtocol && isEqualAuthority(uri.authority, SETTINGS_AUTHORITY)) {
|
|
332
392
|
const settingId = uri.path.substring(1);
|
|
333
|
-
templateData.label.setResource({
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
393
|
+
templateData.label.setResource({
|
|
394
|
+
resource: uri,
|
|
395
|
+
name: settingId
|
|
396
|
+
}, {
|
|
397
|
+
icon: Codicon.settingsGear,
|
|
398
|
+
title: ( localize(5890, "Open setting '{0}'", settingId)),
|
|
399
|
+
strikethrough: data.excluded,
|
|
400
|
+
extraClasses
|
|
401
|
+
});
|
|
402
|
+
} else if (matchesSomeScheme(uri, Schemas.mailto, Schemas.http, Schemas.https)) {
|
|
403
|
+
templateData.label.setResource({
|
|
404
|
+
resource: uri,
|
|
405
|
+
name: ( uri.toString(true))
|
|
406
|
+
}, {
|
|
407
|
+
icon: icon ?? Codicon.globe,
|
|
408
|
+
title: data.options?.status?.description ?? data.title ?? ( uri.toString(true)),
|
|
409
|
+
strikethrough: data.excluded,
|
|
410
|
+
extraClasses
|
|
411
|
+
});
|
|
412
|
+
} else {
|
|
339
413
|
templateData.label.setFile(uri, {
|
|
340
414
|
fileKind: FileKind.FILE,
|
|
341
415
|
fileDecorations: undefined,
|
|
342
|
-
range:
|
|
416
|
+
range: "range" in reference ? reference.range : undefined,
|
|
343
417
|
title: data.options?.status?.description ?? data.title,
|
|
344
418
|
strikethrough: data.excluded,
|
|
345
419
|
extraClasses
|
|
346
420
|
});
|
|
347
421
|
}
|
|
348
422
|
}
|
|
349
|
-
for (const selector of [
|
|
423
|
+
for (const selector of [".monaco-icon-suffix-container", ".monaco-icon-name-container"]) {
|
|
350
424
|
const element = templateData.label.element.querySelector(selector);
|
|
351
425
|
if (element) {
|
|
352
426
|
if (data.options?.status?.kind === ChatResponseReferencePartStatusKind.Omitted || data.options?.status?.kind === ChatResponseReferencePartStatusKind.Partial) {
|
|
353
|
-
element.classList.add(
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
element.classList.remove('warning');
|
|
427
|
+
element.classList.add("warning");
|
|
428
|
+
} else {
|
|
429
|
+
element.classList.remove("warning");
|
|
357
430
|
}
|
|
358
431
|
}
|
|
359
432
|
}
|
|
@@ -366,14 +439,14 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
366
439
|
}
|
|
367
440
|
templateData.addedSpan.textContent = `+${diffMeta.added}`;
|
|
368
441
|
templateData.removedSpan.textContent = `-${diffMeta.removed}`;
|
|
369
|
-
templateData.fileDiffsContainer.setAttribute(
|
|
370
|
-
|
|
371
|
-
|
|
442
|
+
templateData.fileDiffsContainer.setAttribute("aria-label", ( localize(
|
|
443
|
+
5891,
|
|
444
|
+
"{0} lines added, {1} lines removed",
|
|
372
445
|
diffMeta.added,
|
|
373
446
|
diffMeta.removed
|
|
374
447
|
)));
|
|
375
448
|
}
|
|
376
|
-
templateData.label.element.querySelector(
|
|
449
|
+
templateData.label.element.querySelector(".monaco-icon-name-container")?.classList.add("modified");
|
|
377
450
|
}
|
|
378
451
|
if (templateData.toolbar) {
|
|
379
452
|
templateData.toolbar.context = arg;
|
|
@@ -389,54 +462,16 @@ let CollapsibleListRenderer = class CollapsibleListRenderer {
|
|
|
389
462
|
templateData.templateDisposables.dispose();
|
|
390
463
|
}
|
|
391
464
|
};
|
|
392
|
-
CollapsibleListRenderer = CollapsibleListRenderer_1 = ( __decorate([
|
|
393
|
-
( __param(2, IThemeService)),
|
|
394
|
-
( __param(3, IProductService)),
|
|
395
|
-
( __param(4, IInstantiationService)),
|
|
396
|
-
( __param(5, IContextKeyService))
|
|
397
|
-
], CollapsibleListRenderer));
|
|
398
|
-
let DividerRenderer = class DividerRenderer {
|
|
399
|
-
static { DividerRenderer_1 = this; }
|
|
400
|
-
static { this.TEMPLATE_ID = 'chatListDividerRenderer'; }
|
|
401
|
-
constructor(instantiationService) {
|
|
402
|
-
this.instantiationService = instantiationService;
|
|
403
|
-
this.templateId = DividerRenderer_1.TEMPLATE_ID;
|
|
404
|
-
}
|
|
405
|
-
renderTemplate(container) {
|
|
406
|
-
const templateDisposables = ( new DisposableStore());
|
|
407
|
-
const elementDisposables = templateDisposables.add(( new DisposableStore()));
|
|
408
|
-
container.classList.add('chat-list-divider');
|
|
409
|
-
const label = append(container, $$1('span.chat-list-divider-label'));
|
|
410
|
-
const line = append(container, $$1('div.chat-list-divider-line'));
|
|
411
|
-
const toolbarContainer = append(container, $$1('.chat-list-divider-toolbar'));
|
|
412
|
-
return { container, label, line, toolbarContainer, templateDisposables, elementDisposables, toolbar: undefined };
|
|
413
|
-
}
|
|
414
|
-
renderElement(data, index, templateData) {
|
|
415
|
-
templateData.label.textContent = data.label;
|
|
416
|
-
templateData.elementDisposables.clear();
|
|
417
|
-
templateData.toolbar = undefined;
|
|
418
|
-
clearNode(templateData.toolbarContainer);
|
|
419
|
-
if (data.menuId) {
|
|
420
|
-
const instantiationService = data.scopedInstantiationService || this.instantiationService;
|
|
421
|
-
templateData.toolbar = templateData.elementDisposables.add(instantiationService.createInstance(MenuWorkbenchToolBar, templateData.toolbarContainer, data.menuId, { menuOptions: { arg: data.menuArg } }));
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
disposeTemplate(templateData) {
|
|
425
|
-
templateData.templateDisposables.dispose();
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
DividerRenderer = DividerRenderer_1 = ( __decorate([
|
|
429
|
-
( __param(0, IInstantiationService))
|
|
430
|
-
], DividerRenderer));
|
|
465
|
+
CollapsibleListRenderer = CollapsibleListRenderer_1 = ( __decorate([( __param(2, IThemeService)), ( __param(3, IProductService)), ( __param(4, IInstantiationService)), ( __param(5, IContextKeyService))], CollapsibleListRenderer));
|
|
431
466
|
function getResourceLabelForGithubUri(uri) {
|
|
432
|
-
const repoPath = uri.path.split(
|
|
433
|
-
const filePath = uri.path.split(
|
|
467
|
+
const repoPath = uri.path.split("/").slice(1, 3).join("/");
|
|
468
|
+
const filePath = uri.path.split("/").slice(5);
|
|
434
469
|
const fileName = filePath.at(-1);
|
|
435
470
|
const range = getLineRangeFromGithubUri(uri);
|
|
436
471
|
return {
|
|
437
472
|
resource: uri,
|
|
438
|
-
name: fileName ?? filePath.join(
|
|
439
|
-
description: [repoPath, ...filePath.slice(0, -1)].join(
|
|
473
|
+
name: fileName ?? filePath.join("/"),
|
|
474
|
+
description: [repoPath, ...filePath.slice(0, -1)].join("/"),
|
|
440
475
|
range
|
|
441
476
|
};
|
|
442
477
|
}
|
|
@@ -464,35 +499,37 @@ function getLineRangeFromGithubUri(uri) {
|
|
|
464
499
|
};
|
|
465
500
|
}
|
|
466
501
|
function getResourceForElement(element) {
|
|
467
|
-
if (element.kind ===
|
|
502
|
+
if (element.kind === "warning") {
|
|
468
503
|
return null;
|
|
469
504
|
}
|
|
470
|
-
const {
|
|
471
|
-
|
|
505
|
+
const {
|
|
506
|
+
reference
|
|
507
|
+
} = element;
|
|
508
|
+
if (typeof reference === "string" || "variableName" in reference) {
|
|
472
509
|
return null;
|
|
473
|
-
}
|
|
474
|
-
else if (URI.isUri(reference)) {
|
|
510
|
+
} else if (URI.isUri(reference)) {
|
|
475
511
|
return reference;
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
512
|
+
} else {
|
|
478
513
|
return reference.uri;
|
|
479
514
|
}
|
|
480
515
|
}
|
|
481
516
|
registerAction2(class AddToChatAction extends Action2 {
|
|
482
|
-
static {
|
|
517
|
+
static {
|
|
518
|
+
this.id = "workbench.action.chat.addToChatAction";
|
|
519
|
+
}
|
|
483
520
|
constructor() {
|
|
484
521
|
super({
|
|
485
522
|
id: AddToChatAction.id,
|
|
486
523
|
title: {
|
|
487
|
-
...( localize2(
|
|
524
|
+
...( localize2(5892, "Add File to Chat"))
|
|
488
525
|
},
|
|
489
526
|
f1: false,
|
|
490
527
|
menu: [{
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
528
|
+
id: MenuId.ChatAttachmentsContext,
|
|
529
|
+
group: "chat",
|
|
530
|
+
order: 1,
|
|
531
|
+
when: ( ContextKeyExpr.and(ResourceContextKey.IsFileSystemResource, ( ExplorerFolderContext.negate())))
|
|
532
|
+
}]
|
|
496
533
|
});
|
|
497
534
|
}
|
|
498
535
|
async run(accessor, resource) {
|
|
@@ -507,20 +544,22 @@ registerAction2(class AddToChatAction extends Action2 {
|
|
|
507
544
|
}
|
|
508
545
|
});
|
|
509
546
|
registerAction2(class OpenChatReferenceLinkAction extends Action2 {
|
|
510
|
-
static {
|
|
547
|
+
static {
|
|
548
|
+
this.id = "workbench.action.chat.copyLink";
|
|
549
|
+
}
|
|
511
550
|
constructor() {
|
|
512
551
|
super({
|
|
513
552
|
id: OpenChatReferenceLinkAction.id,
|
|
514
553
|
title: {
|
|
515
|
-
...( localize2(
|
|
554
|
+
...( localize2(5893, "Copy Link"))
|
|
516
555
|
},
|
|
517
556
|
f1: false,
|
|
518
557
|
menu: [{
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
558
|
+
id: MenuId.ChatAttachmentsContext,
|
|
559
|
+
group: "chat",
|
|
560
|
+
order: 0,
|
|
561
|
+
when: ( ContextKeyExpr.or(( ResourceContextKey.Scheme.isEqualTo(Schemas.http)), ( ResourceContextKey.Scheme.isEqualTo(Schemas.https))))
|
|
562
|
+
}]
|
|
524
563
|
});
|
|
525
564
|
}
|
|
526
565
|
async run(accessor, resource) {
|