@codingame/monaco-vscode-katex-common 25.1.2 → 26.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
- package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { createElement, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
5
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
6
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
|
+
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
9
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
11
|
+
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
12
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
13
|
+
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
14
|
+
import { WorkbenchObjectTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
15
|
+
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
16
|
+
import { asCssVariable } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
17
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|
|
18
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
19
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/editorColors';
|
|
20
|
+
import { buttonSecondaryHoverBackground, buttonSecondaryForeground, buttonSecondaryBackground } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/inputColors';
|
|
21
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/listColors';
|
|
22
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/menuColors';
|
|
23
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/minimapColors';
|
|
24
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/miscColors';
|
|
25
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
26
|
+
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
27
|
+
import { katexContainerClassName } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/markdown/common/markedKatexExtension';
|
|
28
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
29
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
30
|
+
import { ChatModeKind, ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
31
|
+
import { isRequestVM, isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
32
|
+
import { CodeBlockModelCollection } from '../../common/widget/codeBlockModelCollection.js';
|
|
33
|
+
import { ChatAccessibilityProvider } from '../accessibility/chatAccessibilityProvider.js';
|
|
34
|
+
import { IChatAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
35
|
+
import { ChatListDelegate, ChatListItemRenderer } from './chatListRenderer.js';
|
|
36
|
+
import { ChatEditorOptions } from './chatOptions.js';
|
|
37
|
+
|
|
38
|
+
let ChatListWidget = class ChatListWidget extends Disposable {
|
|
39
|
+
get onDidClickRequest() {
|
|
40
|
+
return this._renderer.onDidClickRequest;
|
|
41
|
+
}
|
|
42
|
+
get onDidRerender() {
|
|
43
|
+
return this._renderer.onDidRerender;
|
|
44
|
+
}
|
|
45
|
+
get onDidDispose() {
|
|
46
|
+
return this._renderer.onDidDispose;
|
|
47
|
+
}
|
|
48
|
+
get onDidFocusOutside() {
|
|
49
|
+
return this._renderer.onDidFocusOutside;
|
|
50
|
+
}
|
|
51
|
+
get domNode() {
|
|
52
|
+
return this._container;
|
|
53
|
+
}
|
|
54
|
+
get scrollTop() {
|
|
55
|
+
return this._tree.scrollTop;
|
|
56
|
+
}
|
|
57
|
+
set scrollTop(value) {
|
|
58
|
+
this._tree.scrollTop = value;
|
|
59
|
+
}
|
|
60
|
+
get scrollHeight() {
|
|
61
|
+
return this._tree.scrollHeight;
|
|
62
|
+
}
|
|
63
|
+
get renderHeight() {
|
|
64
|
+
return this._tree.renderHeight;
|
|
65
|
+
}
|
|
66
|
+
get contentHeight() {
|
|
67
|
+
return this._tree.contentHeight;
|
|
68
|
+
}
|
|
69
|
+
get isScrolledToBottom() {
|
|
70
|
+
return this._tree.scrollTop + this._tree.renderHeight >= this._tree.scrollHeight - 2;
|
|
71
|
+
}
|
|
72
|
+
get lastItem() {
|
|
73
|
+
return this._lastItem;
|
|
74
|
+
}
|
|
75
|
+
constructor(
|
|
76
|
+
container,
|
|
77
|
+
options,
|
|
78
|
+
instantiationService,
|
|
79
|
+
contextKeyService,
|
|
80
|
+
chatService,
|
|
81
|
+
contextMenuService,
|
|
82
|
+
logService,
|
|
83
|
+
configurationService,
|
|
84
|
+
chatAccessibilityService
|
|
85
|
+
) {
|
|
86
|
+
super();
|
|
87
|
+
this.instantiationService = instantiationService;
|
|
88
|
+
this.contextKeyService = contextKeyService;
|
|
89
|
+
this.chatService = chatService;
|
|
90
|
+
this.contextMenuService = contextMenuService;
|
|
91
|
+
this.logService = logService;
|
|
92
|
+
this.configurationService = configurationService;
|
|
93
|
+
this.chatAccessibilityService = chatAccessibilityService;
|
|
94
|
+
this._onDidScroll = this._register(( new Emitter()));
|
|
95
|
+
this.onDidScroll = this._onDidScroll.event;
|
|
96
|
+
this._onDidChangeContentHeight = this._register(( new Emitter()));
|
|
97
|
+
this.onDidChangeContentHeight = this._onDidChangeContentHeight.event;
|
|
98
|
+
this._onDidClickFollowup = this._register(( new Emitter()));
|
|
99
|
+
this.onDidClickFollowup = this._onDidClickFollowup.event;
|
|
100
|
+
this._onDidFocus = this._register(( new Emitter()));
|
|
101
|
+
this.onDidFocus = this._onDidFocus.event;
|
|
102
|
+
this._onDidChangeItemHeight = this._register(( new Emitter()));
|
|
103
|
+
this.onDidChangeItemHeight = this._onDidChangeItemHeight.event;
|
|
104
|
+
this._visible = true;
|
|
105
|
+
this._mostRecentlyFocusedItemIndex = -1;
|
|
106
|
+
this._scrollLock = true;
|
|
107
|
+
this._settingChangeCounter = 0;
|
|
108
|
+
this._visibleChangeCount = 0;
|
|
109
|
+
this._bodyDimension = null;
|
|
110
|
+
this._previousLastItemMinHeight = null;
|
|
111
|
+
this._viewModel = options.viewModel;
|
|
112
|
+
this._codeBlockModelCollection = options.codeBlockModelCollection ?? this._register(
|
|
113
|
+
this.instantiationService.createInstance(CodeBlockModelCollection, "chatListWidget")
|
|
114
|
+
);
|
|
115
|
+
this._location = options.location;
|
|
116
|
+
this._getCurrentLanguageModelId = options.getCurrentLanguageModelId;
|
|
117
|
+
this._getCurrentModeInfo = options.getCurrentModeInfo;
|
|
118
|
+
this._lastItemIdContextKey = ChatContextKeys.lastItemId.bindTo(this.contextKeyService);
|
|
119
|
+
this._container = container;
|
|
120
|
+
const scopedInstantiationService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, this.contextKeyService]))));
|
|
121
|
+
this._renderStyle = options.renderStyle;
|
|
122
|
+
const overflowWidgetsContainer = options.overflowWidgetsDomNode ?? createElement("div");
|
|
123
|
+
if (!options.overflowWidgetsDomNode) {
|
|
124
|
+
overflowWidgetsContainer.classList.add("chat-overflow-widget-container", "monaco-editor");
|
|
125
|
+
this._container.append(overflowWidgetsContainer);
|
|
126
|
+
this._register(toDisposable(() => overflowWidgetsContainer.remove()));
|
|
127
|
+
}
|
|
128
|
+
const editorOptions = options.editorOptions ?? this._register(scopedInstantiationService.createInstance(
|
|
129
|
+
ChatEditorOptions,
|
|
130
|
+
options.viewId,
|
|
131
|
+
"foreground",
|
|
132
|
+
options.inputEditorBackground ?? "chat.requestEditor.background",
|
|
133
|
+
options.resultEditorBackground ?? "chat.responseEditor.background"
|
|
134
|
+
));
|
|
135
|
+
const delegate = scopedInstantiationService.createInstance(ChatListDelegate, options.defaultElementHeight ?? 200);
|
|
136
|
+
const rendererDelegate = {
|
|
137
|
+
getListLength: () => this._tree.getNode(null).visibleChildrenCount,
|
|
138
|
+
onDidScroll: this.onDidScroll,
|
|
139
|
+
container: this._container,
|
|
140
|
+
currentChatMode: options.currentChatMode ?? (() => ChatModeKind.Ask)
|
|
141
|
+
};
|
|
142
|
+
this._renderer = this._register(scopedInstantiationService.createInstance(
|
|
143
|
+
ChatListItemRenderer,
|
|
144
|
+
editorOptions,
|
|
145
|
+
options.rendererOptions ?? {},
|
|
146
|
+
rendererDelegate,
|
|
147
|
+
this._codeBlockModelCollection,
|
|
148
|
+
overflowWidgetsContainer,
|
|
149
|
+
this._viewModel
|
|
150
|
+
));
|
|
151
|
+
this._register(this._renderer.onDidClickFollowup(item => {
|
|
152
|
+
this._onDidClickFollowup.fire(item);
|
|
153
|
+
}));
|
|
154
|
+
this._register(this._renderer.onDidChangeItemHeight(e => {
|
|
155
|
+
this._updateElementHeight(e.element, e.height);
|
|
156
|
+
const secondToLastItem = this._viewModel?.getItems().at(-2);
|
|
157
|
+
if (e.element.id === secondToLastItem?.id) {
|
|
158
|
+
this.updateLastItemMinHeight();
|
|
159
|
+
}
|
|
160
|
+
this._onDidChangeItemHeight.fire(e);
|
|
161
|
+
}));
|
|
162
|
+
this._register(this._renderer.onDidClickRerunWithAgentOrCommandDetection(e => {
|
|
163
|
+
const request = this.chatService.getSession(e.sessionResource)?.getRequests().find(candidate => candidate.id === e.requestId);
|
|
164
|
+
if (request) {
|
|
165
|
+
const sendOptions = {
|
|
166
|
+
noCommandDetection: true,
|
|
167
|
+
attempt: request.attempt + 1,
|
|
168
|
+
location: this._location,
|
|
169
|
+
userSelectedModelId: this._getCurrentLanguageModelId?.(),
|
|
170
|
+
modeInfo: this._getCurrentModeInfo?.()
|
|
171
|
+
};
|
|
172
|
+
this.chatAccessibilityService.acceptRequest(e.sessionResource);
|
|
173
|
+
this.chatService.resendRequest(request, sendOptions).catch(e => this.logService.error("FAILED to rerun request", e));
|
|
174
|
+
}
|
|
175
|
+
}));
|
|
176
|
+
const styles = options.styles ?? {};
|
|
177
|
+
this._tree = this._register(scopedInstantiationService.createInstance(
|
|
178
|
+
WorkbenchObjectTree,
|
|
179
|
+
"ChatList",
|
|
180
|
+
this._container,
|
|
181
|
+
delegate,
|
|
182
|
+
[this._renderer],
|
|
183
|
+
{
|
|
184
|
+
identityProvider: {
|
|
185
|
+
getId: e => e.id
|
|
186
|
+
},
|
|
187
|
+
horizontalScrolling: false,
|
|
188
|
+
alwaysConsumeMouseWheel: false,
|
|
189
|
+
supportDynamicHeights: true,
|
|
190
|
+
hideTwistiesOfChildlessElements: true,
|
|
191
|
+
accessibilityProvider: this.instantiationService.createInstance(ChatAccessibilityProvider),
|
|
192
|
+
keyboardNavigationLabelProvider: {
|
|
193
|
+
getKeyboardNavigationLabel: e => isRequestVM(e) ? e.message : isResponseVM(e) ? e.response.value : ""
|
|
194
|
+
},
|
|
195
|
+
setRowLineHeight: false,
|
|
196
|
+
scrollToActiveElement: true,
|
|
197
|
+
filter: options.filter,
|
|
198
|
+
overrideStyles: {
|
|
199
|
+
listFocusBackground: styles.listBackground,
|
|
200
|
+
listInactiveFocusBackground: styles.listBackground,
|
|
201
|
+
listActiveSelectionBackground: styles.listBackground,
|
|
202
|
+
listFocusAndSelectionBackground: styles.listBackground,
|
|
203
|
+
listInactiveSelectionBackground: styles.listBackground,
|
|
204
|
+
listHoverBackground: styles.listBackground,
|
|
205
|
+
listBackground: styles.listBackground,
|
|
206
|
+
listFocusForeground: styles.listForeground,
|
|
207
|
+
listHoverForeground: styles.listForeground,
|
|
208
|
+
listInactiveFocusForeground: styles.listForeground,
|
|
209
|
+
listInactiveSelectionForeground: styles.listForeground,
|
|
210
|
+
listActiveSelectionForeground: styles.listForeground,
|
|
211
|
+
listFocusAndSelectionForeground: styles.listForeground,
|
|
212
|
+
listActiveSelectionIconForeground: undefined,
|
|
213
|
+
listInactiveSelectionIconForeground: undefined
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
));
|
|
217
|
+
this._scrollDownButton = this._register(( new Button(this._container, {
|
|
218
|
+
buttonBackground: asCssVariable(buttonSecondaryBackground),
|
|
219
|
+
buttonForeground: asCssVariable(buttonSecondaryForeground),
|
|
220
|
+
buttonHoverBackground: asCssVariable(buttonSecondaryHoverBackground),
|
|
221
|
+
buttonSecondaryBackground: undefined,
|
|
222
|
+
buttonSecondaryForeground: undefined,
|
|
223
|
+
buttonSecondaryHoverBackground: undefined,
|
|
224
|
+
buttonSeparator: undefined,
|
|
225
|
+
supportIcons: true
|
|
226
|
+
})));
|
|
227
|
+
this._scrollDownButton.element.classList.add("chat-scroll-down");
|
|
228
|
+
this._scrollDownButton.label = `$(${Codicon.chevronDown.id})`;
|
|
229
|
+
this._scrollDownButton.element.style.display = "none";
|
|
230
|
+
this._register(this._scrollDownButton.onDidClick(() => {
|
|
231
|
+
this.setScrollLock(true);
|
|
232
|
+
this.scrollToEnd();
|
|
233
|
+
}));
|
|
234
|
+
this._register(this._tree.onDidChangeContentHeight(() => {
|
|
235
|
+
this._onDidChangeContentHeight.fire();
|
|
236
|
+
}));
|
|
237
|
+
this._register(this._tree.onDidFocus(() => {
|
|
238
|
+
this._onDidFocus.fire();
|
|
239
|
+
}));
|
|
240
|
+
this._register(this._tree.onDidChangeFocus(() => {
|
|
241
|
+
const focused = this.getFocus();
|
|
242
|
+
if (focused && focused.length > 0) {
|
|
243
|
+
const focusedItem = focused[0];
|
|
244
|
+
const items = this.getItems();
|
|
245
|
+
const idx = items.findIndex(i => i === focusedItem);
|
|
246
|
+
if (idx !== -1) {
|
|
247
|
+
this._mostRecentlyFocusedItemIndex = idx;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}));
|
|
251
|
+
this._register(this._tree.onDidScroll(e => {
|
|
252
|
+
this._onDidScroll.fire(e);
|
|
253
|
+
this.updateScrollDownButtonVisibility();
|
|
254
|
+
}));
|
|
255
|
+
this._register(this._tree.onContextMenu(e => {
|
|
256
|
+
this.handleContextMenu(e);
|
|
257
|
+
}));
|
|
258
|
+
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
259
|
+
if (e.affectsConfiguration(ChatConfiguration.EditRequests) || e.affectsConfiguration(ChatConfiguration.CheckpointsEnabled)) {
|
|
260
|
+
this._settingChangeCounter++;
|
|
261
|
+
this.refresh();
|
|
262
|
+
}
|
|
263
|
+
}));
|
|
264
|
+
}
|
|
265
|
+
updateScrollDownButtonVisibility() {
|
|
266
|
+
const show = !this.isScrolledToBottom && !this._scrollLock;
|
|
267
|
+
this._scrollDownButton.element.style.display = show ? "" : "none";
|
|
268
|
+
}
|
|
269
|
+
handleContextMenu(e) {
|
|
270
|
+
e.browserEvent.preventDefault();
|
|
271
|
+
e.browserEvent.stopPropagation();
|
|
272
|
+
const selected = e.element;
|
|
273
|
+
const target = e.browserEvent.target;
|
|
274
|
+
const isKatexElement = target.closest(`.${katexContainerClassName}`) !== null;
|
|
275
|
+
const scopedContextKeyService = this.contextKeyService.createOverlay([[
|
|
276
|
+
ChatContextKeys.responseIsFiltered.key,
|
|
277
|
+
isResponseVM(selected) && !!selected.errorDetails?.responseIsFiltered
|
|
278
|
+
], [ChatContextKeys.isKatexMathElement.key, isKatexElement]]);
|
|
279
|
+
this.contextMenuService.showContextMenu({
|
|
280
|
+
menuId: MenuId.ChatContext,
|
|
281
|
+
menuActionOptions: {
|
|
282
|
+
shouldForwardArgs: true
|
|
283
|
+
},
|
|
284
|
+
contextKeyService: scopedContextKeyService,
|
|
285
|
+
getAnchor: () => e.anchor,
|
|
286
|
+
getActionsContext: () => selected
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
setViewModel(viewModel) {
|
|
290
|
+
this._viewModel = viewModel;
|
|
291
|
+
this._renderer.updateViewModel(viewModel);
|
|
292
|
+
}
|
|
293
|
+
refresh() {
|
|
294
|
+
if (!this._viewModel) {
|
|
295
|
+
this._tree.setChildren(null, []);
|
|
296
|
+
this._lastItem = undefined;
|
|
297
|
+
this._lastItemIdContextKey.set([]);
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
const items = this._viewModel.getItems();
|
|
301
|
+
this._lastItem = items.at(-1);
|
|
302
|
+
this._lastItemIdContextKey.set(this._lastItem ? [this._lastItem.id] : []);
|
|
303
|
+
const treeItems = ( items.map(item => ({
|
|
304
|
+
element: item,
|
|
305
|
+
collapsed: false,
|
|
306
|
+
collapsible: false
|
|
307
|
+
})));
|
|
308
|
+
const editing = this._viewModel.editing;
|
|
309
|
+
const checkpoint = this._viewModel.model?.checkpoint;
|
|
310
|
+
this._withPersistedAutoScroll(() => {
|
|
311
|
+
this._tree.setChildren(null, treeItems, {
|
|
312
|
+
diffIdentityProvider: {
|
|
313
|
+
getId: element => {
|
|
314
|
+
return (
|
|
315
|
+
element.dataId +
|
|
316
|
+
`${isResponseVM(element) && element.renderData ? `_${this._visibleChangeCount}` : ""}` + (isResponseVM(element) ? `_${element.contentReferences.length}` : "") +
|
|
317
|
+
`_${element.shouldBeRemovedOnSend ? `${element.shouldBeRemovedOnSend.afterUndoStop || "1"}` : "0"}` +
|
|
318
|
+
`_${editing ? "1" : "0"}` +
|
|
319
|
+
`_${checkpoint ? "1" : "0"}` +
|
|
320
|
+
`_setting${this._settingChangeCounter}` + (isRequestVM(element) && element.contentReferences ? `_${element.contentReferences?.length}` : "")
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
setScrollLock(value) {
|
|
328
|
+
this._scrollLock = value;
|
|
329
|
+
this.updateScrollDownButtonVisibility();
|
|
330
|
+
}
|
|
331
|
+
get scrollLock() {
|
|
332
|
+
return this._scrollLock;
|
|
333
|
+
}
|
|
334
|
+
setVisibleChangeCount(value) {
|
|
335
|
+
this._visibleChangeCount = value;
|
|
336
|
+
}
|
|
337
|
+
scrollToCurrentItem(currentElement) {
|
|
338
|
+
if (!this._viewModel?.editing || !currentElement) {
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
if (!this._tree.hasElement(currentElement)) {
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
const relativeTop = this._tree.getRelativeTop(currentElement);
|
|
345
|
+
if (relativeTop === null || relativeTop < 0 || relativeTop > 1) {
|
|
346
|
+
this._tree.reveal(currentElement, 0);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
rerender() {
|
|
350
|
+
this._tree.rerender();
|
|
351
|
+
}
|
|
352
|
+
getItems() {
|
|
353
|
+
const items = [];
|
|
354
|
+
const root = this._tree.getNode(null);
|
|
355
|
+
for (const child of root.children) {
|
|
356
|
+
if (child.element) {
|
|
357
|
+
items.push(child.element);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
return items;
|
|
361
|
+
}
|
|
362
|
+
delegateScrollFromMouseWheelEvent(event) {
|
|
363
|
+
this._tree.delegateScrollFromMouseWheelEvent(event);
|
|
364
|
+
}
|
|
365
|
+
hasElement(element) {
|
|
366
|
+
return this._tree.hasElement(element);
|
|
367
|
+
}
|
|
368
|
+
_updateElementHeight(element, height) {
|
|
369
|
+
if (this._tree.hasElement(element) && this._visible) {
|
|
370
|
+
this._withPersistedAutoScroll(() => {
|
|
371
|
+
this._tree.updateElementHeight(element, height);
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
reveal(element, relativeTop) {
|
|
376
|
+
this._tree.reveal(element, relativeTop);
|
|
377
|
+
}
|
|
378
|
+
getFocus() {
|
|
379
|
+
return this._tree.getFocus().filter(e => e !== null);
|
|
380
|
+
}
|
|
381
|
+
setFocus(elements) {
|
|
382
|
+
this._tree.setFocus(elements);
|
|
383
|
+
}
|
|
384
|
+
focusItem(item) {
|
|
385
|
+
if (!this.hasElement(item)) {
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
this._tree.setFocus([item]);
|
|
389
|
+
this._tree.domFocus();
|
|
390
|
+
}
|
|
391
|
+
focusLastItem(useMostRecentlyFocusedIndex) {
|
|
392
|
+
const items = this.getItems();
|
|
393
|
+
if (items.length === 0) {
|
|
394
|
+
return -1;
|
|
395
|
+
}
|
|
396
|
+
let focusIndex;
|
|
397
|
+
if (useMostRecentlyFocusedIndex && this._mostRecentlyFocusedItemIndex >= 0 && this._mostRecentlyFocusedItemIndex < items.length) {
|
|
398
|
+
focusIndex = this._mostRecentlyFocusedItemIndex;
|
|
399
|
+
} else {
|
|
400
|
+
focusIndex = items.length - 1;
|
|
401
|
+
}
|
|
402
|
+
this._tree.setFocus([items[focusIndex]]);
|
|
403
|
+
this._tree.domFocus();
|
|
404
|
+
return focusIndex;
|
|
405
|
+
}
|
|
406
|
+
scrollToEnd() {
|
|
407
|
+
if (this._lastItem) {
|
|
408
|
+
const offset = Math.max(this._lastItem.currentRenderedHeight ?? 0, 1e6);
|
|
409
|
+
if (this._tree.hasElement(this._lastItem)) {
|
|
410
|
+
this._tree.reveal(this._lastItem, offset);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
_withPersistedAutoScroll(fn) {
|
|
415
|
+
const wasScrolledToBottom = this.isScrolledToBottom;
|
|
416
|
+
fn();
|
|
417
|
+
if (wasScrolledToBottom) {
|
|
418
|
+
this.scrollToEnd();
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
focus() {
|
|
422
|
+
this._tree.domFocus();
|
|
423
|
+
}
|
|
424
|
+
isDOMFocused() {
|
|
425
|
+
return this._tree.isDOMFocused();
|
|
426
|
+
}
|
|
427
|
+
getCodeBlockInfosForResponse(response) {
|
|
428
|
+
return this._renderer.getCodeBlockInfosForResponse(response);
|
|
429
|
+
}
|
|
430
|
+
getCodeBlockInfoForEditor(uri) {
|
|
431
|
+
return this._renderer.getCodeBlockInfoForEditor(uri);
|
|
432
|
+
}
|
|
433
|
+
getFileTreeInfosForResponse(response) {
|
|
434
|
+
return this._renderer.getFileTreeInfosForResponse(response);
|
|
435
|
+
}
|
|
436
|
+
getLastFocusedFileTreeForResponse(response) {
|
|
437
|
+
return this._renderer.getLastFocusedFileTreeForResponse(response);
|
|
438
|
+
}
|
|
439
|
+
editorsInUse() {
|
|
440
|
+
return this._renderer.editorsInUse();
|
|
441
|
+
}
|
|
442
|
+
getTemplateDataForRequestId(requestId) {
|
|
443
|
+
if (!requestId) {
|
|
444
|
+
return undefined;
|
|
445
|
+
}
|
|
446
|
+
return this._renderer.getTemplateDataForRequestId(requestId);
|
|
447
|
+
}
|
|
448
|
+
updateRendererOptions(options) {
|
|
449
|
+
this._renderer.updateOptions(options);
|
|
450
|
+
}
|
|
451
|
+
setVisible(visible) {
|
|
452
|
+
this._visible = visible;
|
|
453
|
+
this._renderer.setVisible(visible);
|
|
454
|
+
}
|
|
455
|
+
layout(height, width) {
|
|
456
|
+
this._bodyDimension = new Dimension(width ?? this._container.clientWidth, height);
|
|
457
|
+
this.updateLastItemMinHeight();
|
|
458
|
+
this._tree.layout(height, width);
|
|
459
|
+
this._renderer.layout(width ?? this._container.clientWidth);
|
|
460
|
+
}
|
|
461
|
+
updateLastItemMinHeight() {
|
|
462
|
+
if (!this._bodyDimension) {
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
const contentHeight = this._bodyDimension.height;
|
|
466
|
+
if (this._renderStyle === "compact" || this._renderStyle === "minimal") {
|
|
467
|
+
this._container.style.removeProperty("--chat-current-response-min-height");
|
|
468
|
+
} else {
|
|
469
|
+
const secondToLastItem = this._viewModel?.getItems().at(-2);
|
|
470
|
+
const secondToLastItemHeight = Math.min(secondToLastItem?.currentRenderedHeight ?? 150, 150);
|
|
471
|
+
const lastItemMinHeight = Math.max(contentHeight - (secondToLastItemHeight + 10), 0);
|
|
472
|
+
this._container.style.setProperty("--chat-current-response-min-height", lastItemMinHeight + "px");
|
|
473
|
+
if (lastItemMinHeight !== this._previousLastItemMinHeight) {
|
|
474
|
+
this._previousLastItemMinHeight = lastItemMinHeight;
|
|
475
|
+
const lastItem = this._viewModel?.getItems().at(-1);
|
|
476
|
+
if (lastItem && this._visible && this._tree.hasElement(lastItem)) {
|
|
477
|
+
this._updateElementHeight(lastItem, undefined);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
ChatListWidget = ( __decorate([( __param(2, IInstantiationService)), ( __param(3, IContextKeyService)), ( __param(4, IChatService)), ( __param(5, IContextMenuService)), ( __param(6, ILogService)), ( __param(7, IConfigurationService)), ( __param(8, IChatAccessibilityService))], ChatListWidget));
|
|
484
|
+
|
|
485
|
+
export { ChatListWidget };
|
|
@@ -8,24 +8,38 @@ import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
8
8
|
|
|
9
9
|
var ChatEditorOptions_1;
|
|
10
10
|
let ChatEditorOptions = class ChatEditorOptions extends Disposable {
|
|
11
|
-
static {
|
|
12
|
-
|
|
11
|
+
static {
|
|
12
|
+
ChatEditorOptions_1 = this;
|
|
13
|
+
}
|
|
14
|
+
static {
|
|
15
|
+
this.lineHeightEm = 1.4;
|
|
16
|
+
}
|
|
13
17
|
get configuration() {
|
|
14
18
|
return this._config;
|
|
15
19
|
}
|
|
16
|
-
static {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
static {
|
|
21
|
+
this.relevantSettingIds = [
|
|
22
|
+
"chat.editor.lineHeight",
|
|
23
|
+
"chat.editor.fontSize",
|
|
24
|
+
"chat.editor.fontFamily",
|
|
25
|
+
"chat.editor.fontWeight",
|
|
26
|
+
"chat.editor.wordWrap",
|
|
27
|
+
"editor.cursorBlinking",
|
|
28
|
+
"editor.fontLigatures",
|
|
29
|
+
"editor.accessibilitySupport",
|
|
30
|
+
"editor.bracketPairColorization.enabled",
|
|
31
|
+
"editor.bracketPairColorization.independentColorPoolPerBracketType"
|
|
32
|
+
];
|
|
33
|
+
}
|
|
34
|
+
constructor(
|
|
35
|
+
viewId,
|
|
36
|
+
foreground,
|
|
37
|
+
inputEditorBackgroundColor,
|
|
38
|
+
resultEditorBackgroundColor,
|
|
39
|
+
configurationService,
|
|
40
|
+
themeService,
|
|
41
|
+
viewDescriptorService
|
|
42
|
+
) {
|
|
29
43
|
super();
|
|
30
44
|
this.foreground = foreground;
|
|
31
45
|
this.inputEditorBackgroundColor = inputEditorBackgroundColor;
|
|
@@ -49,36 +63,32 @@ let ChatEditorOptions = class ChatEditorOptions extends Disposable {
|
|
|
49
63
|
this.update();
|
|
50
64
|
}
|
|
51
65
|
update() {
|
|
52
|
-
const editorConfig = this.configurationService.getValue(
|
|
53
|
-
const chatEditorConfig = this.configurationService.getValue(
|
|
54
|
-
const accessibilitySupport = this.configurationService.getValue(
|
|
66
|
+
const editorConfig = this.configurationService.getValue("editor");
|
|
67
|
+
const chatEditorConfig = this.configurationService.getValue("chat")?.editor;
|
|
68
|
+
const accessibilitySupport = this.configurationService.getValue("editor.accessibilitySupport");
|
|
55
69
|
this._config = {
|
|
56
70
|
foreground: this.themeService.getColorTheme().getColor(this.foreground),
|
|
57
71
|
inputEditor: {
|
|
58
72
|
backgroundColor: this.themeService.getColorTheme().getColor(this.inputEditorBackgroundColor),
|
|
59
|
-
accessibilitySupport
|
|
73
|
+
accessibilitySupport
|
|
60
74
|
},
|
|
61
75
|
resultEditor: {
|
|
62
76
|
backgroundColor: this.themeService.getColorTheme().getColor(this.resultEditorBackgroundColor),
|
|
63
77
|
fontSize: chatEditorConfig.fontSize,
|
|
64
|
-
fontFamily: chatEditorConfig.fontFamily ===
|
|
78
|
+
fontFamily: chatEditorConfig.fontFamily === "default" ? editorConfig.fontFamily : chatEditorConfig.fontFamily,
|
|
65
79
|
fontWeight: chatEditorConfig.fontWeight,
|
|
66
80
|
lineHeight: chatEditorConfig.lineHeight ? chatEditorConfig.lineHeight : ChatEditorOptions_1.lineHeightEm * chatEditorConfig.fontSize,
|
|
67
81
|
bracketPairColorization: {
|
|
68
|
-
enabled: this.configurationService.getValue(
|
|
69
|
-
independentColorPoolPerBracketType: this.configurationService.getValue(
|
|
82
|
+
enabled: this.configurationService.getValue("editor.bracketPairColorization.enabled"),
|
|
83
|
+
independentColorPoolPerBracketType: this.configurationService.getValue("editor.bracketPairColorization.independentColorPoolPerBracketType")
|
|
70
84
|
},
|
|
71
85
|
wordWrap: chatEditorConfig.wordWrap,
|
|
72
|
-
fontLigatures: editorConfig.fontLigatures
|
|
86
|
+
fontLigatures: editorConfig.fontLigatures
|
|
73
87
|
}
|
|
74
88
|
};
|
|
75
89
|
this._onDidChange.fire();
|
|
76
90
|
}
|
|
77
91
|
};
|
|
78
|
-
ChatEditorOptions = ChatEditorOptions_1 = ( __decorate([
|
|
79
|
-
( __param(4, IConfigurationService)),
|
|
80
|
-
( __param(5, IThemeService)),
|
|
81
|
-
( __param(6, IViewDescriptorService))
|
|
82
|
-
], ChatEditorOptions));
|
|
92
|
+
ChatEditorOptions = ChatEditorOptions_1 = ( __decorate([( __param(4, IConfigurationService)), ( __param(5, IThemeService)), ( __param(6, IViewDescriptorService))], ChatEditorOptions));
|
|
83
93
|
|
|
84
94
|
export { ChatEditorOptions };
|