@codingame/monaco-vscode-katex-common 26.2.2 → 28.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 +10 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +37 -11
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +3 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +15 -4
- package/vscode/src/vs/platform/mcp/common/modelContextProtocolApps.d.ts +576 -0
- package/vscode/src/vs/{workbench/contrib → platform}/mcp/common/modelContextProtocolApps.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +176 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +127 -64
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +12 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionApprovalModel.js +106 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +105 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +69 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +35 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +187 -78
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +138 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +23 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +394 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +28 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +38 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +113 -116
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +16 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +30 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +250 -132
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +1 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +4 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +7 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +11 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDisabledClaudeHooksContentPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatHookContentPart.js +7 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +26 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +53 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownTableScrolling.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +8 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +24 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +62 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +414 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +19 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatResourceGroupWidget.js +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +98 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +11 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +252 -80
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +29 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +246 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +39 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +36 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +3 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +6 -260
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +5 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +42 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatCodeBlockPill.css +12 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +65 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatHookContentPart.css +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +356 -415
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +14 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +102 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +68 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/codeBlockPart.css +48 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +47 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +0 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +57 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +24 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatSimpleToolProgressPart.js +103 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +15 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +44 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +85 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.d.ts +3 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +15 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +41 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +21 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +341 -88
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +13 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatQuestionCarouselAutoReply.js +440 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +24 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +437 -241
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +77 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +521 -284
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.js +664 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatModelSelectionLogic.js +127 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +57 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +4 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +89 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem2.js +87 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/permissionPickerActionItem.js +213 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +15 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +563 -140
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +35 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +26 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +26 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +145 -79
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +36 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +35 -15
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +127 -30
- 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 +20 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +96 -34
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +11 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +68 -27
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +125 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +8 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +54 -45
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +11 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +172 -112
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +2 -44
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +28 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +84 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +58 -41
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +1 -548
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +6 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +0 -187
|
@@ -87,8 +87,8 @@ let SearchableOptionPickerActionItem = class SearchableOptionPickerActionItem ex
|
|
|
87
87
|
checked: false,
|
|
88
88
|
class: "searchable-picker-see-more",
|
|
89
89
|
description: undefined,
|
|
90
|
-
tooltip: ( localize(
|
|
91
|
-
label: ( localize(
|
|
90
|
+
tooltip: ( localize(6056, "Search for more options")),
|
|
91
|
+
label: ( localize(6057, "See more...")),
|
|
92
92
|
run: () => {
|
|
93
93
|
this.showSearchableQuickPick(optionGroup);
|
|
94
94
|
}
|
|
@@ -103,7 +103,7 @@ let SearchableOptionPickerActionItem = class SearchableOptionPickerActionItem ex
|
|
|
103
103
|
if (optionGroup?.icon) {
|
|
104
104
|
domChildren.push(renderIcon(optionGroup.icon));
|
|
105
105
|
}
|
|
106
|
-
const label = this.currentOption?.name ?? optionGroup?.name ?? ( localize(
|
|
106
|
+
const label = this.currentOption?.name ?? optionGroup?.name ?? ( localize(6058, "Select..."));
|
|
107
107
|
domChildren.push($("span.chat-session-option-label", undefined, label));
|
|
108
108
|
domChildren.push(...renderLabelWithIcons(`$(chevron-down)`));
|
|
109
109
|
reset(element, ...domChildren);
|
|
@@ -118,7 +118,7 @@ let SearchableOptionPickerActionItem = class SearchableOptionPickerActionItem ex
|
|
|
118
118
|
const disposables = ( new DisposableStore());
|
|
119
119
|
const quickPick = this.quickInputService.createQuickPick();
|
|
120
120
|
disposables.add(quickPick);
|
|
121
|
-
quickPick.placeholder = optionGroup.description ?? ( localize(
|
|
121
|
+
quickPick.placeholder = optionGroup.description ?? ( localize(6059, "Select {0}", optionGroup.name));
|
|
122
122
|
quickPick.matchOnDescription = true;
|
|
123
123
|
quickPick.matchOnDetail = true;
|
|
124
124
|
quickPick.ignoreFocusOut = true;
|
package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts
CHANGED
|
@@ -5,14 +5,11 @@ import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
|
|
|
5
5
|
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
6
6
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
7
7
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
8
|
-
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
9
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
11
10
|
import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service";
|
|
12
11
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
13
|
-
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
14
12
|
import { ChatAgentLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants";
|
|
15
|
-
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
16
13
|
import { IChatViewsWelcomeDescriptor } from "./chatViewsWelcome.js";
|
|
17
14
|
export interface IViewWelcomeDelegate {
|
|
18
15
|
readonly onDidChangeViewWelcomeState: Event<void>;
|
|
@@ -42,16 +39,8 @@ export interface IChatViewWelcomeContent {
|
|
|
42
39
|
readonly additionalMessage?: string | IMarkdownString;
|
|
43
40
|
tips?: IMarkdownString;
|
|
44
41
|
readonly inputPart?: HTMLElement;
|
|
45
|
-
readonly suggestedPrompts?: readonly IChatSuggestedPrompts[];
|
|
46
42
|
readonly useLargeIcon?: boolean;
|
|
47
43
|
}
|
|
48
|
-
export interface IChatSuggestedPrompts {
|
|
49
|
-
readonly icon?: ThemeIcon;
|
|
50
|
-
readonly label: string;
|
|
51
|
-
readonly description?: string;
|
|
52
|
-
readonly prompt: string;
|
|
53
|
-
readonly uri?: URI;
|
|
54
|
-
}
|
|
55
44
|
export interface IChatViewWelcomeRenderOptions {
|
|
56
45
|
readonly firstLinkToButton?: boolean;
|
|
57
46
|
readonly location: ChatAgentLocation;
|
|
@@ -61,13 +50,9 @@ export declare class ChatViewWelcomePart extends Disposable {
|
|
|
61
50
|
readonly content: IChatViewWelcomeContent;
|
|
62
51
|
private openerService;
|
|
63
52
|
private logService;
|
|
64
|
-
private chatWidgetService;
|
|
65
|
-
private telemetryService;
|
|
66
53
|
private readonly markdownRendererService;
|
|
67
|
-
private readonly contextMenuService;
|
|
68
54
|
readonly element: HTMLElement;
|
|
69
|
-
constructor(content: IChatViewWelcomeContent, options: IChatViewWelcomeRenderOptions | undefined, openerService: IOpenerService, logService: ILogService,
|
|
70
|
-
private getPromptContextMenuActions;
|
|
55
|
+
constructor(content: IChatViewWelcomeContent, options: IChatViewWelcomeRenderOptions | undefined, openerService: IOpenerService, logService: ILogService, markdownRendererService: IMarkdownRendererService);
|
|
71
56
|
needsRerender(content: IChatViewWelcomeContent): boolean;
|
|
72
57
|
private renderMarkdownMessageContent;
|
|
73
58
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js
CHANGED
|
@@ -1,31 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { asCSSUrl } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/cssValue';
|
|
4
|
-
import { $ as $$1, append, clearNode
|
|
4
|
+
import { $ as $$1, append, clearNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { createCSSRule } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domStylesheets';
|
|
6
|
-
import { StandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
|
|
7
6
|
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
8
7
|
import { renderIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
9
|
-
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
10
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
11
8
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
12
9
|
import { StringSHA1 } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';
|
|
13
|
-
import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
14
10
|
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
15
11
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
16
12
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
17
13
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
18
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
19
14
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
20
|
-
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
21
15
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
22
16
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
23
17
|
import { IMarkdownRendererService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service';
|
|
24
18
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
25
|
-
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
26
19
|
import { defaultButtonStyles } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles';
|
|
27
|
-
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
28
|
-
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
29
20
|
import { chatViewsWelcomeRegistry } from './chatViewsWelcome.js';
|
|
30
21
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
31
22
|
|
|
@@ -106,24 +97,12 @@ let ChatViewWelcomeController = class ChatViewWelcomeController extends Disposab
|
|
|
106
97
|
};
|
|
107
98
|
ChatViewWelcomeController = ( __decorate([( __param(3, IContextKeyService)), ( __param(4, IInstantiationService))], ChatViewWelcomeController));
|
|
108
99
|
let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
|
|
109
|
-
constructor(
|
|
110
|
-
content,
|
|
111
|
-
options,
|
|
112
|
-
openerService,
|
|
113
|
-
logService,
|
|
114
|
-
chatWidgetService,
|
|
115
|
-
telemetryService,
|
|
116
|
-
markdownRendererService,
|
|
117
|
-
contextMenuService
|
|
118
|
-
) {
|
|
100
|
+
constructor(content, options, openerService, logService, markdownRendererService) {
|
|
119
101
|
super();
|
|
120
102
|
this.content = content;
|
|
121
103
|
this.openerService = openerService;
|
|
122
104
|
this.logService = logService;
|
|
123
|
-
this.chatWidgetService = chatWidgetService;
|
|
124
|
-
this.telemetryService = telemetryService;
|
|
125
105
|
this.markdownRendererService = markdownRendererService;
|
|
126
|
-
this.contextMenuService = contextMenuService;
|
|
127
106
|
this.element = $$1(".chat-welcome-view");
|
|
128
107
|
try {
|
|
129
108
|
const icon = append(this.element, $(".chat-welcome-view-icon"));
|
|
@@ -162,74 +141,6 @@ let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
|
|
|
162
141
|
disclaimers.appendChild(additionalMessageResult.element);
|
|
163
142
|
}
|
|
164
143
|
}
|
|
165
|
-
if (content.suggestedPrompts && content.suggestedPrompts.length) {
|
|
166
|
-
const suggestedPromptsContainer = append(this.element, $(".chat-welcome-view-suggested-prompts"));
|
|
167
|
-
const titleElement = append(suggestedPromptsContainer, $(".chat-welcome-view-suggested-prompts-title"));
|
|
168
|
-
titleElement.textContent = ( localize(5885, "Suggested Actions"));
|
|
169
|
-
for (const prompt of content.suggestedPrompts) {
|
|
170
|
-
const promptElement = append(suggestedPromptsContainer, $(".chat-welcome-view-suggested-prompt"));
|
|
171
|
-
promptElement.setAttribute("role", "button");
|
|
172
|
-
promptElement.setAttribute("tabindex", "0");
|
|
173
|
-
const promptAriaLabel = prompt.description ? ( localize(5886, "Suggested prompt: {0}, {1}", prompt.label, prompt.description)) : ( localize(5887, "Suggested prompt: {0}", prompt.label));
|
|
174
|
-
promptElement.setAttribute("aria-label", promptAriaLabel);
|
|
175
|
-
const titleElement = append(promptElement, $(".chat-welcome-view-suggested-prompt-title"));
|
|
176
|
-
titleElement.textContent = prompt.label;
|
|
177
|
-
const tooltip = ( localize(5888, "Suggested prompt: {0}", prompt.prompt));
|
|
178
|
-
promptElement.title = tooltip;
|
|
179
|
-
titleElement.title = tooltip;
|
|
180
|
-
if (prompt.description) {
|
|
181
|
-
const descriptionElement = append(promptElement, $(".chat-welcome-view-suggested-prompt-description"));
|
|
182
|
-
descriptionElement.textContent = prompt.description;
|
|
183
|
-
descriptionElement.title = prompt.description;
|
|
184
|
-
}
|
|
185
|
-
const executePrompt = () => {
|
|
186
|
-
this.telemetryService.publicLog2("chat.clickedSuggestedPrompt", {
|
|
187
|
-
suggestedPrompt: prompt.prompt
|
|
188
|
-
});
|
|
189
|
-
if (!this.chatWidgetService.lastFocusedWidget) {
|
|
190
|
-
const widgets = this.chatWidgetService.getWidgetsByLocations(ChatAgentLocation.Chat);
|
|
191
|
-
if (widgets.length) {
|
|
192
|
-
widgets[0].setInput(prompt.prompt);
|
|
193
|
-
}
|
|
194
|
-
} else {
|
|
195
|
-
this.chatWidgetService.lastFocusedWidget.setInput(prompt.prompt);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
this._register(
|
|
199
|
-
addDisposableListener(promptElement, EventType.CONTEXT_MENU, e => {
|
|
200
|
-
e.preventDefault();
|
|
201
|
-
e.stopImmediatePropagation();
|
|
202
|
-
const actions = this.getPromptContextMenuActions(prompt);
|
|
203
|
-
this.contextMenuService.showContextMenu({
|
|
204
|
-
getAnchor: () => ({
|
|
205
|
-
x: e.clientX,
|
|
206
|
-
y: e.clientY
|
|
207
|
-
}),
|
|
208
|
-
getActions: () => actions
|
|
209
|
-
});
|
|
210
|
-
})
|
|
211
|
-
);
|
|
212
|
-
this._register(
|
|
213
|
-
addDisposableListener(promptElement, EventType.CLICK, executePrompt)
|
|
214
|
-
);
|
|
215
|
-
this._register(addDisposableListener(promptElement, EventType.KEY_DOWN, e => {
|
|
216
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
217
|
-
if (event.equals(KeyCode.Enter) || event.equals(KeyCode.Space)) {
|
|
218
|
-
e.preventDefault();
|
|
219
|
-
e.stopPropagation();
|
|
220
|
-
executePrompt();
|
|
221
|
-
} else if (event.equals(KeyCode.F10) && event.shiftKey) {
|
|
222
|
-
e.preventDefault();
|
|
223
|
-
e.stopPropagation();
|
|
224
|
-
const actions = this.getPromptContextMenuActions(prompt);
|
|
225
|
-
this.contextMenuService.showContextMenu({
|
|
226
|
-
getAnchor: () => promptElement,
|
|
227
|
-
getActions: () => actions
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
}));
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
144
|
if (content.tips) {
|
|
234
145
|
const tips = append(this.element, $(".chat-welcome-view-tips"));
|
|
235
146
|
const tipsResult = this._register(this.markdownRendererService.render(content.tips));
|
|
@@ -239,25 +150,8 @@ let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
|
|
|
239
150
|
this.logService.error("Failed to render chat view welcome content", err);
|
|
240
151
|
}
|
|
241
152
|
}
|
|
242
|
-
getPromptContextMenuActions(prompt) {
|
|
243
|
-
const actions = [];
|
|
244
|
-
if (prompt.uri) {
|
|
245
|
-
const uri = prompt.uri;
|
|
246
|
-
actions.push(( new Action("chat.editPromptFile", ( localize(5889, "Edit Prompt File")), ThemeIcon.asClassName(Codicon.goToFile), true, async () => {
|
|
247
|
-
try {
|
|
248
|
-
await this.openerService.open(uri);
|
|
249
|
-
} catch (error) {
|
|
250
|
-
this.logService.error("Failed to open prompt file:", error);
|
|
251
|
-
}
|
|
252
|
-
})));
|
|
253
|
-
}
|
|
254
|
-
return actions;
|
|
255
|
-
}
|
|
256
153
|
needsRerender(content) {
|
|
257
|
-
return !!(this.content.title !== content.title || this.content.message.value !== content.message.value || this.content.additionalMessage !== content.additionalMessage || this.content.tips?.value !== content.tips?.value
|
|
258
|
-
const incoming = content.suggestedPrompts?.[index];
|
|
259
|
-
return incoming?.label !== prompt.label || incoming?.description !== prompt.description;
|
|
260
|
-
}));
|
|
154
|
+
return !!(this.content.title !== content.title || this.content.message.value !== content.message.value || this.content.additionalMessage !== content.additionalMessage || this.content.tips?.value !== content.tips?.value);
|
|
261
155
|
}
|
|
262
156
|
renderMarkdownMessageContent(content, options) {
|
|
263
157
|
const messageResult = this._register(this.markdownRendererService.render(content));
|
|
@@ -278,6 +172,6 @@ let ChatViewWelcomePart = class ChatViewWelcomePart extends Disposable {
|
|
|
278
172
|
return messageResult;
|
|
279
173
|
}
|
|
280
174
|
};
|
|
281
|
-
ChatViewWelcomePart = ( __decorate([( __param(2, IOpenerService)), ( __param(3, ILogService)), ( __param(4,
|
|
175
|
+
ChatViewWelcomePart = ( __decorate([( __param(2, IOpenerService)), ( __param(3, ILogService)), ( __param(4, IMarkdownRendererService))], ChatViewWelcomePart));
|
|
282
176
|
|
|
283
177
|
export { ChatViewWelcomeController, ChatViewWelcomePart };
|
|
@@ -49,7 +49,7 @@ let ChatAgentHover = class ChatAgentHover extends Disposable {
|
|
|
49
49
|
this.publisherName = $("span.chat-agent-hover-publisher-name");
|
|
50
50
|
append(hoverElement.publisher, verifiedBadge, this.publisherName);
|
|
51
51
|
hoverElement.warning.appendChild(renderIcon(Codicon.warning));
|
|
52
|
-
hoverElement.warning.appendChild($("span", undefined, ( localize(
|
|
52
|
+
hoverElement.warning.appendChild($("span", undefined, ( localize(6489, "This chat extension is using a reserved name."))));
|
|
53
53
|
}
|
|
54
54
|
setAgent(id) {
|
|
55
55
|
const agent = this.chatAgentService.getAgent(id);
|
|
@@ -95,7 +95,7 @@ function getChatAgentHoverOptions(getAgent, commandService) {
|
|
|
95
95
|
return {
|
|
96
96
|
actions: [{
|
|
97
97
|
commandId: showExtensionsWithIdsCommandId,
|
|
98
|
-
label: ( localize(
|
|
98
|
+
label: ( localize(6490, "View Extension")),
|
|
99
99
|
run: () => {
|
|
100
100
|
const agent = getAgent();
|
|
101
101
|
if (agent) {
|
|
@@ -3,7 +3,7 @@ import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/h
|
|
|
3
3
|
import { IChatAgentCommand } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents";
|
|
4
4
|
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
5
5
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
6
|
-
import { IChatContentPart } from "
|
|
6
|
+
import { IChatContentPart } from "./chatContentParts.js";
|
|
7
7
|
export declare class ChatAgentCommandContentPart extends Disposable implements IChatContentPart {
|
|
8
8
|
private readonly _hoverService;
|
|
9
9
|
readonly domNode: HTMLElement;
|
|
@@ -28,7 +28,7 @@ let ChatAgentCommandContentPart = class ChatAgentCommandContentPart extends Disp
|
|
|
28
28
|
}, {
|
|
29
29
|
groupId
|
|
30
30
|
}));
|
|
31
|
-
const rerun = ( localize(
|
|
31
|
+
const rerun = ( localize(6491, "Rerun without {0}{1}", chatSubcommandLeader, cmd.name));
|
|
32
32
|
const btn = ( new Button(this.domNode, {
|
|
33
33
|
ariaLabel: rerun
|
|
34
34
|
}));
|
|
@@ -3,7 +3,7 @@ import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
3
3
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
4
4
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
5
5
|
import { IChatErrorDetailsPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
6
|
-
import { IChatContentPart } from "
|
|
6
|
+
import { IChatContentPart } from "./chatContentParts.js";
|
|
7
7
|
export declare class ChatAnonymousRateLimitedPart extends Disposable implements IChatContentPart {
|
|
8
8
|
private readonly content;
|
|
9
9
|
readonly domNode: HTMLElement;
|
|
@@ -21,14 +21,14 @@ let ChatAnonymousRateLimitedPart = class ChatAnonymousRateLimitedPart extends Di
|
|
|
21
21
|
const messageContainer = append(this.domNode, $(".chat-rate-limited-message"));
|
|
22
22
|
const message = append(messageContainer, $("div"));
|
|
23
23
|
message.textContent = ( localize(
|
|
24
|
-
|
|
24
|
+
6492,
|
|
25
25
|
"Continue the conversation by signing in. Your free account gets 50 premium requests a month plus access to more models and AI features."
|
|
26
26
|
));
|
|
27
27
|
const signInButton = this._register(( new Button(messageContainer, {
|
|
28
28
|
...defaultButtonStyles,
|
|
29
29
|
supportIcons: true
|
|
30
30
|
})));
|
|
31
|
-
signInButton.label = ( localize(
|
|
31
|
+
signInButton.label = ( localize(6493, "Enable more AI features"));
|
|
32
32
|
signInButton.element.classList.add("chat-rate-limited-button");
|
|
33
33
|
this._register(signInButton.onDidClick(async () => {
|
|
34
34
|
const commandId = "workbench.action.chat.triggerSetup";
|
|
@@ -2,6 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { IChatRequestVariableEntry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries";
|
|
4
4
|
import { IChatContentReference } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService";
|
|
5
|
+
import { IChatAttachmentWidgetRegistry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service";
|
|
5
6
|
export interface IChatAttachmentsContentPartOptions {
|
|
6
7
|
readonly variables: readonly IChatRequestVariableEntry[];
|
|
7
8
|
readonly contentReferences?: ReadonlyArray<IChatContentReference>;
|
|
@@ -10,6 +11,7 @@ export interface IChatAttachmentsContentPartOptions {
|
|
|
10
11
|
}
|
|
11
12
|
export declare class ChatAttachmentsContentPart extends Disposable {
|
|
12
13
|
private readonly instantiationService;
|
|
14
|
+
private readonly chatAttachmentWidgetRegistry;
|
|
13
15
|
private readonly attachedContextDisposables;
|
|
14
16
|
private readonly _onDidChangeVisibility;
|
|
15
17
|
private readonly _contextResourceLabels;
|
|
@@ -19,7 +21,7 @@ export declare class ChatAttachmentsContentPart extends Disposable {
|
|
|
19
21
|
private readonly limit?;
|
|
20
22
|
readonly domNode: HTMLElement | undefined;
|
|
21
23
|
contextMenuHandler?: (attachment: IChatRequestVariableEntry, event: MouseEvent) => void;
|
|
22
|
-
constructor(options: IChatAttachmentsContentPartOptions, instantiationService: IInstantiationService);
|
|
24
|
+
constructor(options: IChatAttachmentsContentPartOptions, instantiationService: IInstantiationService, chatAttachmentWidgetRegistry: IChatAttachmentWidgetRegistry);
|
|
23
25
|
/**
|
|
24
26
|
* Update the variables and re-render the attachments in place.
|
|
25
27
|
*/
|
|
@@ -11,11 +11,13 @@ import { ResourceLabels } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
11
11
|
import { isElementVariableEntry, isImageVariableEntry, OmittedState, isPromptFileVariableEntry, isPromptTextVariableEntry, isTerminalVariableEntry, isPasteVariableEntry, isNotebookOutputVariableEntry, isSCMHistoryItemVariableEntry, isSCMHistoryItemChangeVariableEntry, isSCMHistoryItemChangeRangeVariableEntry, isWorkspaceVariableEntry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
12
12
|
import { ChatResponseReferencePartStatusKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
13
13
|
import { ToolSetOrToolItemAttachmentWidget, ElementChatAttachmentWidget, ImageAttachmentWidget, PromptFileAttachmentWidget, PromptTextAttachmentWidget, FileAttachmentWidget, TerminalCommandAttachmentWidget, PasteAttachmentWidget, NotebookCellOutputChatAttachmentWidget, SCMHistoryItemAttachmentWidget, SCMHistoryItemChangeAttachmentWidget, SCMHistoryItemChangeRangeAttachmentWidget, DefaultChatAttachmentWidget } from '../../attachments/chatAttachmentWidgets.js';
|
|
14
|
+
import { IChatAttachmentWidgetRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service';
|
|
14
15
|
|
|
15
16
|
let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Disposable {
|
|
16
|
-
constructor(options, instantiationService) {
|
|
17
|
+
constructor(options, instantiationService, chatAttachmentWidgetRegistry) {
|
|
17
18
|
super();
|
|
18
19
|
this.instantiationService = instantiationService;
|
|
20
|
+
this.chatAttachmentWidgetRegistry = chatAttachmentWidgetRegistry;
|
|
19
21
|
this.attachedContextDisposables = this._register(( new DisposableStore()));
|
|
20
22
|
this._onDidChangeVisibility = this._register(( new Emitter()));
|
|
21
23
|
this._showingAll = false;
|
|
@@ -175,7 +177,10 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
175
177
|
} else if (isWorkspaceVariableEntry(attachment)) {
|
|
176
178
|
return;
|
|
177
179
|
} else {
|
|
178
|
-
widget = this.
|
|
180
|
+
widget = this.chatAttachmentWidgetRegistry.createWidget(attachment, {
|
|
181
|
+
shouldFocusClearButton: false,
|
|
182
|
+
supportsDeletion: false
|
|
183
|
+
}, container) ?? this.instantiationService.createInstance(
|
|
179
184
|
DefaultChatAttachmentWidget,
|
|
180
185
|
resource,
|
|
181
186
|
range,
|
|
@@ -198,7 +203,7 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
198
203
|
if (isAttachmentPartialOrOmitted) {
|
|
199
204
|
ariaLabel = `${ariaLabel}${description ? ` ${description}` : ""}`;
|
|
200
205
|
for (const selector of [".monaco-icon-suffix-container", ".monaco-icon-name-container"]) {
|
|
201
|
-
const element = widget.label
|
|
206
|
+
const element = widget.label?.element.querySelector(selector);
|
|
202
207
|
if (element) {
|
|
203
208
|
element.classList.add("warning");
|
|
204
209
|
}
|
|
@@ -219,6 +224,6 @@ let ChatAttachmentsContentPart = class ChatAttachmentsContentPart extends Dispos
|
|
|
219
224
|
this.attachedContextDisposables.add(widget);
|
|
220
225
|
}
|
|
221
226
|
};
|
|
222
|
-
ChatAttachmentsContentPart = ( __decorate([( __param(1, IInstantiationService))], ChatAttachmentsContentPart));
|
|
227
|
+
ChatAttachmentsContentPart = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IChatAttachmentWidgetRegistry))], ChatAttachmentsContentPart));
|
|
223
228
|
|
|
224
229
|
export { ChatAttachmentsContentPart };
|
|
@@ -3,19 +3,17 @@ import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
|
|
|
3
3
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
4
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
5
5
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
|
-
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
6
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
8
7
|
import { IChatEditingSession, IEditSessionEntryDiff } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/editing/chatEditingService";
|
|
9
8
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
10
9
|
import { IChatChangesSummaryPart as IChatFileChangesSummaryPart, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
11
10
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
12
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "
|
|
11
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "./chatContentParts.js";
|
|
13
12
|
export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposable implements IChatContentPart {
|
|
14
13
|
private readonly content;
|
|
15
14
|
private readonly hoverService;
|
|
16
15
|
private readonly chatService;
|
|
17
16
|
private readonly editorService;
|
|
18
|
-
private readonly editorGroupsService;
|
|
19
17
|
private readonly instantiationService;
|
|
20
18
|
readonly domNode: HTMLElement;
|
|
21
19
|
readonly ELEMENT_HEIGHT = 22;
|
|
@@ -24,7 +22,7 @@ export declare class ChatCheckpointFileChangesSummaryContentPart extends Disposa
|
|
|
24
22
|
private fileChangesDiffsObservable;
|
|
25
23
|
private list;
|
|
26
24
|
private isCollapsed;
|
|
27
|
-
constructor(content: IChatFileChangesSummaryPart, context: IChatContentPartRenderContext, hoverService: IHoverService, chatService: IChatService, editorService: IEditorService,
|
|
25
|
+
constructor(content: IChatFileChangesSummaryPart, context: IChatContentPartRenderContext, hoverService: IHoverService, chatService: IChatService, editorService: IEditorService, instantiationService: IInstantiationService);
|
|
28
26
|
private computeFileChangesDiffs;
|
|
29
27
|
getCachedEntryDiffBetweenRequests(editSession: IChatEditingSession, uri: URI, startRequestId: string, stopRequestId: string): IObservable<IEditSessionEntryDiff | undefined> | undefined;
|
|
30
28
|
private renderHeader;
|
|
@@ -4,7 +4,7 @@ import { $, addDisposableListener, EventHelper } from '@codingame/monaco-vscode-
|
|
|
4
4
|
import { ButtonWithIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
5
5
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
6
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
7
|
-
import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { Disposable, DisposableStore, toDisposable, combinedDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
8
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
9
9
|
import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
10
10
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
@@ -16,7 +16,6 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
16
16
|
import { WorkbenchList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
17
17
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
18
18
|
import { ResourceLabels } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/labels';
|
|
19
|
-
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
20
19
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
21
20
|
import { createFileIconThemableTreeContainerScope } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/files/browser/views/explorerView';
|
|
22
21
|
import { MultiDiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
|
|
@@ -32,7 +31,6 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
32
31
|
hoverService,
|
|
33
32
|
chatService,
|
|
34
33
|
editorService,
|
|
35
|
-
editorGroupsService,
|
|
36
34
|
instantiationService
|
|
37
35
|
) {
|
|
38
36
|
super();
|
|
@@ -40,7 +38,6 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
40
38
|
this.hoverService = hoverService;
|
|
41
39
|
this.chatService = chatService;
|
|
42
40
|
this.editorService = editorService;
|
|
43
|
-
this.editorGroupsService = editorGroupsService;
|
|
44
41
|
this.instantiationService = instantiationService;
|
|
45
42
|
this.ELEMENT_HEIGHT = 22;
|
|
46
43
|
this.MAX_ITEMS_SHOWN = 6;
|
|
@@ -95,13 +92,13 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
95
92
|
}
|
|
96
93
|
renderViewAllFileChangesButton(container) {
|
|
97
94
|
const button = container.appendChild($(".chat-view-changes-icon"));
|
|
98
|
-
this.hoverService.setupDelayedHover(button, () => ({
|
|
99
|
-
content: ( localize2(
|
|
95
|
+
const hoverDisposable = this.hoverService.setupDelayedHover(button, () => ({
|
|
96
|
+
content: ( localize2(6494, "View All File Changes"))
|
|
100
97
|
}));
|
|
101
98
|
button.classList.add(...ThemeIcon.asClassNameArray(Codicon.diffMultiple));
|
|
102
99
|
button.setAttribute("role", "button");
|
|
103
100
|
button.tabIndex = 0;
|
|
104
|
-
return addDisposableListener(button, "click", e => {
|
|
101
|
+
return combinedDisposable(hoverDisposable, addDisposableListener(button, "click", e => {
|
|
105
102
|
const resources = ( this.fileChangesDiffsObservable.get().map(diff => ({
|
|
106
103
|
originalUri: diff.originalURI,
|
|
107
104
|
modifiedUri: diff.modifiedURI
|
|
@@ -110,9 +107,9 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
110
107
|
const input = this.instantiationService.createInstance(MultiDiffEditorInput, source, "Checkpoint File Changes", ( resources.map(resource => {
|
|
111
108
|
return ( new MultiDiffEditorItem(resource.originalUri, resource.modifiedUri, undefined));
|
|
112
109
|
})), false);
|
|
113
|
-
this.
|
|
110
|
+
this.editorService.openEditor(input);
|
|
114
111
|
EventHelper.stop(e, true);
|
|
115
|
-
});
|
|
112
|
+
}));
|
|
116
113
|
}
|
|
117
114
|
renderFilesList(container) {
|
|
118
115
|
const store = ( new DisposableStore());
|
|
@@ -159,7 +156,7 @@ let ChatCheckpointFileChangesSummaryContentPart = class ChatCheckpointFileChange
|
|
|
159
156
|
this._register(disposable);
|
|
160
157
|
}
|
|
161
158
|
};
|
|
162
|
-
ChatCheckpointFileChangesSummaryContentPart = ( __decorate([( __param(2, IHoverService)), ( __param(3, IChatService)), ( __param(4, IEditorService)), ( __param(5,
|
|
159
|
+
ChatCheckpointFileChangesSummaryContentPart = ( __decorate([( __param(2, IHoverService)), ( __param(3, IChatService)), ( __param(4, IEditorService)), ( __param(5, IInstantiationService))], ChatCheckpointFileChangesSummaryContentPart));
|
|
163
160
|
let CollapsibleChangesSummaryListPool = class CollapsibleChangesSummaryListPool extends Disposable {
|
|
164
161
|
constructor(instantiationService, themeService) {
|
|
165
162
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
3
3
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
4
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "
|
|
4
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "./chatContentParts.js";
|
|
5
5
|
import { IChatCodeCitations, IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
6
6
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
7
7
|
export declare class ChatCodeCitationContentPart extends Disposable implements IChatContentPart {
|
|
@@ -29,7 +29,7 @@ let ChatCodeCitationContentPart = class ChatCodeCitationContentPart extends Disp
|
|
|
29
29
|
buttonSecondaryHoverBackground: undefined,
|
|
30
30
|
buttonSeparator: undefined
|
|
31
31
|
})));
|
|
32
|
-
button.label = ( localize(
|
|
32
|
+
button.label = ( localize(6495, "View matches"));
|
|
33
33
|
this._register(button.onDidClick(() => {
|
|
34
34
|
const citationText = `# Code Citations\n\n` + ( citations.citations.map(c => `## License: ${c.license}\n${( c.value.toString())}\n\n\`\`\`\n${c.snippet}\n\`\`\`\n\n`)).join("\n");
|
|
35
35
|
this.editorService.openEditor({
|
|
@@ -2,10 +2,11 @@ import { ButtonWithIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/brow
|
|
|
2
2
|
import { IMarkdownString, MarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
3
3
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
5
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
6
|
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
6
7
|
import { IChatRendererContent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
7
8
|
import { ChatTreeItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat";
|
|
8
|
-
import { IChatContentPart, IChatContentPartRenderContext } from "
|
|
9
|
+
import { IChatContentPart, IChatContentPartRenderContext } from "./chatContentParts.js";
|
|
9
10
|
import { IChatMarkdownAnchorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownAnchorService.service";
|
|
10
11
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
11
12
|
import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer";
|
|
@@ -20,12 +21,13 @@ export declare abstract class ChatCollapsibleContentPart extends Disposable impl
|
|
|
20
21
|
protected _isExpanded: import("@codingame/monaco-vscode-api/vscode/vs/base/common/observable").ISettableObservable<boolean, void>;
|
|
21
22
|
protected _collapseButton: ButtonWithIcon | undefined;
|
|
22
23
|
private readonly _overrideIcon;
|
|
24
|
+
protected readonly _showCheckmarks: IObservable<boolean>;
|
|
23
25
|
private _contentElement?;
|
|
24
26
|
private _contentInitialized;
|
|
25
27
|
get icon(): ThemeIcon | undefined;
|
|
26
28
|
set icon(value: ThemeIcon | undefined);
|
|
27
29
|
protected readonly element: ChatTreeItem;
|
|
28
|
-
constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService);
|
|
30
|
+
constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService, configurationService: IConfigurationService);
|
|
29
31
|
get domNode(): HTMLElement;
|
|
30
32
|
protected init(): HTMLElement;
|
|
31
33
|
protected abstract initContent(): HTMLElement;
|
|
@@ -3,10 +3,12 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { ButtonWithIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
5
5
|
import { HoverStyle } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hover';
|
|
6
|
-
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
7
6
|
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
7
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
8
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
9
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
10
|
+
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
11
|
+
import { AccessibilityWorkbenchSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
10
12
|
import { renderFileWidgets } from './chatInlineAnchorWidget.js';
|
|
11
13
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
12
14
|
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/reactions/autorun';
|
|
@@ -18,7 +20,7 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
|
|
|
18
20
|
set icon(value) {
|
|
19
21
|
this._overrideIcon.set(value, undefined);
|
|
20
22
|
}
|
|
21
|
-
constructor(title, context, hoverMessage, hoverService) {
|
|
23
|
+
constructor(title, context, hoverMessage, hoverService, configurationService) {
|
|
22
24
|
super();
|
|
23
25
|
this.title = title;
|
|
24
26
|
this.hoverMessage = hoverMessage;
|
|
@@ -29,6 +31,11 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
|
|
|
29
31
|
this._contentInitialized = false;
|
|
30
32
|
this.element = context.element;
|
|
31
33
|
this.hasFollowingContent = context.contentIndex + 1 < context.content.length;
|
|
34
|
+
this._showCheckmarks = observableConfigValue(
|
|
35
|
+
AccessibilityWorkbenchSettingId.ShowChatCheckmarks,
|
|
36
|
+
false,
|
|
37
|
+
configurationService
|
|
38
|
+
);
|
|
32
39
|
}
|
|
33
40
|
get domNode() {
|
|
34
41
|
this._domNode ??= this.init();
|
|
@@ -50,6 +57,10 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
|
|
|
50
57
|
this._collapseButton = collapseButton;
|
|
51
58
|
this._domNode = $(".chat-used-context", undefined, buttonElement);
|
|
52
59
|
collapseButton.label = referencesLabel;
|
|
60
|
+
const hoverChevron = $("span.chat-collapsible-hover-chevron.codicon.codicon-chevron-right", {
|
|
61
|
+
"aria-hidden": "true"
|
|
62
|
+
});
|
|
63
|
+
collapseButton.element.appendChild(hoverChevron);
|
|
53
64
|
if (this.hoverMessage) {
|
|
54
65
|
this._register(this.hoverService.setupDelayedHover(collapseButton.iconElement, {
|
|
55
66
|
content: this.hoverMessage,
|
|
@@ -63,7 +74,14 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
|
|
|
63
74
|
this._isExpanded.set(this.isExpanded(), undefined);
|
|
64
75
|
this._register(autorun(r => {
|
|
65
76
|
const expanded = this._isExpanded.read(r);
|
|
66
|
-
|
|
77
|
+
const overrideIcon = this._overrideIcon.read(r);
|
|
78
|
+
const showCheckmarks = this._showCheckmarks.read(r);
|
|
79
|
+
if (overrideIcon) {
|
|
80
|
+
collapseButton.icon = overrideIcon;
|
|
81
|
+
}
|
|
82
|
+
this._domNode?.classList.toggle("show-checkmarks", showCheckmarks);
|
|
83
|
+
hoverChevron.classList.toggle("codicon-chevron-right", !expanded);
|
|
84
|
+
hoverChevron.classList.toggle("codicon-chevron-down", expanded);
|
|
67
85
|
this._domNode?.classList.toggle("chat-used-context-collapsed", !expanded);
|
|
68
86
|
this.updateAriaLabel(
|
|
69
87
|
collapseButton.element,
|
|
@@ -129,6 +147,6 @@ let ChatCollapsibleContentPart = class ChatCollapsibleContentPart extends Dispos
|
|
|
129
147
|
this._renderedTitleWithWidgets.value = result;
|
|
130
148
|
}
|
|
131
149
|
};
|
|
132
|
-
ChatCollapsibleContentPart = ( __decorate([( __param(3, IHoverService))], ChatCollapsibleContentPart));
|
|
150
|
+
ChatCollapsibleContentPart = ( __decorate([( __param(3, IHoverService)), ( __param(4, IConfigurationService))], ChatCollapsibleContentPart));
|
|
133
151
|
|
|
134
152
|
export { ChatCollapsibleContentPart };
|