@codingame/monaco-vscode-katex-common 25.1.2 → 26.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.d.ts +23 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidgetDropdown.js +64 -27
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.d.ts +3 -1
- package/vscode/src/vs/platform/actions/browser/actionWidgetDropdownActionViewItem.js +31 -28
- package/vscode/src/vs/platform/actions/browser/buttonbar.d.ts +2 -0
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +71 -50
- package/vscode/src/vs/platform/editor/browser/editor.js +17 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityProvider.js +112 -129
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContinueInAction.js +110 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatElicitationActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.d.ts +21 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +308 -216
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +153 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionHoverWidget.js +247 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +287 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +677 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentSessionHoverWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +263 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentModel.js +34 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.d.ts +19 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgets.js +762 -359
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.d.ts +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatImplicitContext.js +188 -99
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.js +166 -113
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.d.ts +12 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions.js +279 -213
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +533 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +382 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationWidget.js +509 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingEditorOverlay.css +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/media/chatEditingExplanationWidget.css +276 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.d.ts +24 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionPickerActionItem.js +128 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +153 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +1218 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/media/chatSessionPickerActionItem.css +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/searchableOptionPickerActionItem.js +193 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController.js +93 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatAgentHover.js +42 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentMarkdownRenderer.js +58 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAgentCommandContentPart.js +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAnonymousRateLimitedPart.js +17 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatAttachmentsContentPart.js +132 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatChangesSummaryPart.js +68 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCodeCitationContentPart.js +14 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.js +36 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleMarkdownContentPart.js +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollections.js +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCommandContentPart.js +22 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationContentPart.js +34 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatConfirmationWidget.js +198 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentCodePools.js +38 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatDiffBlockPart.js +29 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatElicitationContentPart.js +41 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorConfirmationPart.js +23 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatErrorContentPart.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatExtensionsContentPart.js +20 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget.js +291 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.js +227 -162
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownDecorationsRenderer.js +68 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMcpServersInteractionContentPart.js +76 -75
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMultiDiffContentPart.js +96 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatProgressContentPart.js +74 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatPullRequestContentPart.js +11 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.d.ts +107 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.js +814 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuotaExceededPart.js +34 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.d.ts +8 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatReferencesContentPart.js +236 -197
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.d.ts +123 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSubagentContentPart.js +492 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatSuggestNextWidget.js +75 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.d.ts +2 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTaskContentPart.js +31 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTextEditContentPart.js +42 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.d.ts +55 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.js +714 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTipContentPart.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTodoListWidget.js +143 -153
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.js +79 -61
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolOutputContentSubPart.js +209 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.d.ts +9 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTreeContentPart.js +71 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatWorkspaceEditContentPart.js +83 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart.js +248 -190
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css +1 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPullRequestContent.css +5 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css +493 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatSubagentContent.css +63 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTerminalToolProgressPart.css +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css +121 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatTipContent.css +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/abstractToolConfirmationSubPart.js +51 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatExtensionsInstallToolSubPart.js +46 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatInputOutputMarkdownProgressPart.js +99 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppModel.js +634 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatMcpAppSubPart.js +132 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatResultListSubPart.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolConfirmationSubPart.js +196 -149
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.js +577 -193
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationSubPart.js +119 -86
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationPart.js +165 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolInvocationSubPart.js +5 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputPart.js +75 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPartUtilities.js +30 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolPostExecuteConfirmationPart.js +102 -106
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolProgressPart.js +44 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolStreamingSubPart.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/terminalToolAutoExpand.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatDragAndDrop.js +122 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.d.ts +39 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.js +1110 -597
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.d.ts +291 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatListWidget.js +485 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatOptions.js +38 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.d.ts +9 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidget.js +650 -689
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatFollowups.js +21 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.d.ts +102 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.js +1253 -790
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPartWidgets.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatInputPickerActionItem.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatSelectedTools.js +51 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/delegationSessionPickerActionItem.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.d.ts +16 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modePickerActionItem.js +192 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.d.ts +11 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/modelPickerActionItem.js +99 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/sessionTargetPickerActionItem.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/workspacePickerActionItem.js +115 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chat.css +129 -167
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/media/chatViewWelcome.css +16 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageDetails.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatContextUsageWidget.js +206 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageDetails.css +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatContextUsageWidget.css +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/annotations.js +170 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatColors.js +80 -19
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatWidgetHistoryService.js +20 -28
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/codeBlockModelCollection.js +22 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAffordance.js +122 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.d.ts +19 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +316 -1040
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatEditorAffordance.js +162 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatGutterAffordance.js +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatOverlayWidget.js +416 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +194 -215
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +74 -104
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css +45 -91
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatEditorAffordance.css +22 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatOverlayWidget.css +98 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +96 -68
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveCommon.js +11 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/replInputHintContentWidget.js +150 -0
- package/vscode/src/vs/workbench/contrib/markdown/browser/markedKatexSupport.js +141 -147
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpToolCallUI.js +200 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.d.ts +548 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocolApps.js +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +338 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +58 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +364 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/interactiveEditor.css +21 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/media/interactive.css +36 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditor.js +692 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorInput.js +158 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.d.ts +80 -21
- package/vscode/src/vs/workbench/contrib/terminal/browser/chatTerminalCommandMirror.js +440 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.d.ts +0 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatInputRelatedFilesContrib.js +0 -139
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +0 -1081
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.d.ts +0 -199
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +0 -482
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +0 -37
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.d.ts +0 -94
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -495
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +0 -454
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +0 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +0 -372
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +0 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -594
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1746
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -269
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -806
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -62
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -295
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -241
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -146
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -90
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -823
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -567
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -189
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -439
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +0 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -89
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +0 -33
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -108
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Disposable, DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { DiffElementCellViewModelBase } from "./diffElementViewModel.js";
|
|
3
|
-
import { DiffSide, INotebookTextDiffEditor } from "./notebookDiffEditorBrowser.js";
|
|
4
|
-
import { ICellOutputViewModel, IInsetRenderOutput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
5
|
-
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
6
|
-
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
7
|
-
import { DiffNestedCellViewModel } from "./diffNestedCellViewModel.js";
|
|
8
|
-
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
9
|
-
export declare class OutputElement extends Disposable {
|
|
10
|
-
private _notebookEditor;
|
|
11
|
-
private _notebookTextModel;
|
|
12
|
-
private _notebookService;
|
|
13
|
-
private _quickInputService;
|
|
14
|
-
private _diffElementViewModel;
|
|
15
|
-
private _diffSide;
|
|
16
|
-
private _nestedCell;
|
|
17
|
-
private _outputContainer;
|
|
18
|
-
readonly output: ICellOutputViewModel;
|
|
19
|
-
readonly resizeListener: DisposableStore;
|
|
20
|
-
domNode: HTMLElement;
|
|
21
|
-
renderResult?: IInsetRenderOutput;
|
|
22
|
-
constructor(_notebookEditor: INotebookTextDiffEditor, _notebookTextModel: NotebookTextModel, _notebookService: INotebookService, _quickInputService: IQuickInputService, _diffElementViewModel: DiffElementCellViewModelBase, _diffSide: DiffSide, _nestedCell: DiffNestedCellViewModel, _outputContainer: HTMLElement, output: ICellOutputViewModel);
|
|
23
|
-
render(index: number, beforeElement?: HTMLElement): void;
|
|
24
|
-
private _renderMissingRenderer;
|
|
25
|
-
private _renderSearchForMimetype;
|
|
26
|
-
private _renderMessage;
|
|
27
|
-
private pickActiveMimeTypeRenderer;
|
|
28
|
-
private generateRendererInfo;
|
|
29
|
-
getCellOutputCurrentIndex(): number;
|
|
30
|
-
updateHeight(index: number, height: number): void;
|
|
31
|
-
getOutputOffsetInContainer(index: number): number;
|
|
32
|
-
getOutputOffsetInCell(index: number): number;
|
|
33
|
-
}
|
|
34
|
-
export declare class OutputContainer extends Disposable {
|
|
35
|
-
private _editor;
|
|
36
|
-
private _notebookTextModel;
|
|
37
|
-
private _diffElementViewModel;
|
|
38
|
-
private _nestedCellViewModel;
|
|
39
|
-
private _diffSide;
|
|
40
|
-
private _outputContainer;
|
|
41
|
-
private _notebookService;
|
|
42
|
-
private readonly _quickInputService;
|
|
43
|
-
private _outputEntries;
|
|
44
|
-
constructor(_editor: INotebookTextDiffEditor, _notebookTextModel: NotebookTextModel, _diffElementViewModel: DiffElementCellViewModelBase, _nestedCellViewModel: DiffNestedCellViewModel, _diffSide: DiffSide, _outputContainer: HTMLElement, _notebookService: INotebookService, _quickInputService: IQuickInputService);
|
|
45
|
-
private _updateOutputs;
|
|
46
|
-
render(): void;
|
|
47
|
-
showOutputs(): void;
|
|
48
|
-
hideOutputs(): void;
|
|
49
|
-
private _renderOutput;
|
|
50
|
-
}
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { createElement, $, addStandardDisposableListener, addDisposableListener, EventType, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
|
-
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { SideBySideDiffElementViewModel } from './diffElementViewModel.js';
|
|
7
|
-
import { DiffSide } from './notebookDiffEditorBrowser.js';
|
|
8
|
-
import { RenderOutputType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
9
|
-
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
10
|
-
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
11
|
-
import { mimetypeIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
12
|
-
import { StandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
|
|
13
|
-
import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
14
|
-
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
15
|
-
|
|
16
|
-
class OutputElement extends Disposable {
|
|
17
|
-
constructor(_notebookEditor, _notebookTextModel, _notebookService, _quickInputService, _diffElementViewModel, _diffSide, _nestedCell, _outputContainer, output) {
|
|
18
|
-
super();
|
|
19
|
-
this._notebookEditor = _notebookEditor;
|
|
20
|
-
this._notebookTextModel = _notebookTextModel;
|
|
21
|
-
this._notebookService = _notebookService;
|
|
22
|
-
this._quickInputService = _quickInputService;
|
|
23
|
-
this._diffElementViewModel = _diffElementViewModel;
|
|
24
|
-
this._diffSide = _diffSide;
|
|
25
|
-
this._nestedCell = _nestedCell;
|
|
26
|
-
this._outputContainer = _outputContainer;
|
|
27
|
-
this.output = output;
|
|
28
|
-
this.resizeListener = this._register(( new DisposableStore()));
|
|
29
|
-
}
|
|
30
|
-
render(index, beforeElement) {
|
|
31
|
-
const outputItemDiv = createElement('div');
|
|
32
|
-
let result = undefined;
|
|
33
|
-
const [mimeTypes, pick] = this.output.resolveMimeTypes(this._notebookTextModel, undefined);
|
|
34
|
-
const pickedMimeTypeRenderer = this.output.pickedMimeType || mimeTypes[pick];
|
|
35
|
-
if (mimeTypes.length > 1) {
|
|
36
|
-
outputItemDiv.style.position = 'relative';
|
|
37
|
-
const mimeTypePicker = $('.multi-mimetype-output');
|
|
38
|
-
mimeTypePicker.classList.add(...ThemeIcon.asClassNameArray(mimetypeIcon));
|
|
39
|
-
mimeTypePicker.tabIndex = 0;
|
|
40
|
-
mimeTypePicker.title = ( localize(
|
|
41
|
-
9470,
|
|
42
|
-
"Choose a different output mimetype, available mimetypes: {0}",
|
|
43
|
-
( mimeTypes.map(mimeType => mimeType.mimeType)).join(', ')
|
|
44
|
-
));
|
|
45
|
-
outputItemDiv.appendChild(mimeTypePicker);
|
|
46
|
-
this.resizeListener.add(addStandardDisposableListener(mimeTypePicker, 'mousedown', async (e) => {
|
|
47
|
-
if (e.leftButton) {
|
|
48
|
-
e.preventDefault();
|
|
49
|
-
e.stopPropagation();
|
|
50
|
-
await this.pickActiveMimeTypeRenderer(this._notebookTextModel, this.output);
|
|
51
|
-
}
|
|
52
|
-
}));
|
|
53
|
-
this.resizeListener.add((addDisposableListener(mimeTypePicker, EventType.KEY_DOWN, async (e) => {
|
|
54
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
55
|
-
if ((event.equals(KeyCode.Enter) || event.equals(KeyCode.Space))) {
|
|
56
|
-
e.preventDefault();
|
|
57
|
-
e.stopPropagation();
|
|
58
|
-
await this.pickActiveMimeTypeRenderer(this._notebookTextModel, this.output);
|
|
59
|
-
}
|
|
60
|
-
})));
|
|
61
|
-
}
|
|
62
|
-
const innerContainer = $('.output-inner-container');
|
|
63
|
-
append(outputItemDiv, innerContainer);
|
|
64
|
-
if (mimeTypes.length !== 0) {
|
|
65
|
-
const renderer = this._notebookService.getRendererInfo(pickedMimeTypeRenderer.rendererId);
|
|
66
|
-
result = renderer
|
|
67
|
-
? { type: RenderOutputType.Extension, renderer, source: this.output, mimeType: pickedMimeTypeRenderer.mimeType }
|
|
68
|
-
: this._renderMissingRenderer(this.output, pickedMimeTypeRenderer.mimeType);
|
|
69
|
-
this.output.pickedMimeType = pickedMimeTypeRenderer;
|
|
70
|
-
}
|
|
71
|
-
this.domNode = outputItemDiv;
|
|
72
|
-
this.renderResult = result;
|
|
73
|
-
if (!result) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
if (beforeElement) {
|
|
77
|
-
this._outputContainer.insertBefore(outputItemDiv, beforeElement);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
this._outputContainer.appendChild(outputItemDiv);
|
|
81
|
-
}
|
|
82
|
-
this._notebookEditor.createOutput(this._diffElementViewModel, this._nestedCell, result, () => this.getOutputOffsetInCell(index), this._diffElementViewModel instanceof SideBySideDiffElementViewModel
|
|
83
|
-
? this._diffSide
|
|
84
|
-
: this._diffElementViewModel.type === 'insert' ? DiffSide.Modified : DiffSide.Original);
|
|
85
|
-
}
|
|
86
|
-
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
87
|
-
if (!viewModel.model.outputs.length) {
|
|
88
|
-
return this._renderMessage(viewModel, ( localize(9471, "Cell has no output")));
|
|
89
|
-
}
|
|
90
|
-
if (!preferredMimeType) {
|
|
91
|
-
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
92
|
-
const mimeTypesMessage = mimeTypes.join(', ');
|
|
93
|
-
return this._renderMessage(viewModel, ( localize(
|
|
94
|
-
9472,
|
|
95
|
-
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
96
|
-
mimeTypesMessage
|
|
97
|
-
)));
|
|
98
|
-
}
|
|
99
|
-
return this._renderSearchForMimetype(viewModel, preferredMimeType);
|
|
100
|
-
}
|
|
101
|
-
_renderSearchForMimetype(viewModel, mimeType) {
|
|
102
|
-
const query = `@tag:notebookRenderer ${mimeType}`;
|
|
103
|
-
const p = $('p', undefined, `No renderer could be found for mimetype "${mimeType}", but one might be available on the Marketplace.`);
|
|
104
|
-
const a = $('a', { href: `command:workbench.extensions.search?%22${query}%22`, class: 'monaco-button monaco-text-button', tabindex: 0, role: 'button', style: 'padding: 8px; text-decoration: none; color: rgb(255, 255, 255); background-color: rgb(14, 99, 156); max-width: 200px;' }, `Search Marketplace`);
|
|
105
|
-
return {
|
|
106
|
-
type: RenderOutputType.Html,
|
|
107
|
-
source: viewModel,
|
|
108
|
-
htmlContent: p.outerHTML + a.outerHTML,
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
_renderMessage(viewModel, message) {
|
|
112
|
-
const el = $('p', undefined, message);
|
|
113
|
-
return { type: RenderOutputType.Html, source: viewModel, htmlContent: el.outerHTML };
|
|
114
|
-
}
|
|
115
|
-
async pickActiveMimeTypeRenderer(notebookTextModel, viewModel) {
|
|
116
|
-
const [mimeTypes, currIndex] = viewModel.resolveMimeTypes(notebookTextModel, undefined);
|
|
117
|
-
const items = ( mimeTypes.filter(mimeType => mimeType.isTrusted).map((mimeType, index) => ({
|
|
118
|
-
label: mimeType.mimeType,
|
|
119
|
-
id: mimeType.mimeType,
|
|
120
|
-
index: index,
|
|
121
|
-
picked: index === currIndex,
|
|
122
|
-
detail: this.generateRendererInfo(mimeType.rendererId),
|
|
123
|
-
description: index === currIndex ? ( localize(9473, "Currently Active")) : undefined
|
|
124
|
-
})));
|
|
125
|
-
const disposables = ( new DisposableStore());
|
|
126
|
-
const picker = disposables.add(this._quickInputService.createQuickPick());
|
|
127
|
-
picker.items = items;
|
|
128
|
-
picker.activeItems = items.filter(item => !!item.picked);
|
|
129
|
-
picker.placeholder = items.length !== mimeTypes.length
|
|
130
|
-
? ( localize(
|
|
131
|
-
9474,
|
|
132
|
-
"Select mimetype to render for current output. Rich mimetypes are available only when the notebook is trusted"
|
|
133
|
-
))
|
|
134
|
-
: ( localize(9475, "Select mimetype to render for current output"));
|
|
135
|
-
const pick = await ( new Promise(resolve => {
|
|
136
|
-
disposables.add(picker.onDidAccept(() => {
|
|
137
|
-
resolve(picker.selectedItems.length === 1 ? picker.selectedItems[0].index : undefined);
|
|
138
|
-
disposables.dispose();
|
|
139
|
-
}));
|
|
140
|
-
picker.show();
|
|
141
|
-
}));
|
|
142
|
-
if (pick === undefined) {
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
if (pick !== currIndex) {
|
|
146
|
-
const index = this._nestedCell.outputsViewModels.indexOf(viewModel);
|
|
147
|
-
const nextElement = this.domNode.nextElementSibling;
|
|
148
|
-
this.resizeListener.clear();
|
|
149
|
-
const element = this.domNode;
|
|
150
|
-
if (element) {
|
|
151
|
-
element.remove();
|
|
152
|
-
this._notebookEditor.removeInset(this._diffElementViewModel, this._nestedCell, viewModel, this._diffSide);
|
|
153
|
-
}
|
|
154
|
-
viewModel.pickedMimeType = mimeTypes[pick];
|
|
155
|
-
this.render(index, nextElement);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
generateRendererInfo(renderId) {
|
|
159
|
-
const renderInfo = this._notebookService.getRendererInfo(renderId);
|
|
160
|
-
if (renderInfo) {
|
|
161
|
-
const displayName = renderInfo.displayName !== '' ? renderInfo.displayName : renderInfo.id;
|
|
162
|
-
return `${displayName} (${renderInfo.extensionId.value})`;
|
|
163
|
-
}
|
|
164
|
-
return localize(9476, "built-in");
|
|
165
|
-
}
|
|
166
|
-
getCellOutputCurrentIndex() {
|
|
167
|
-
return this._diffElementViewModel.getNestedCellViewModel(this._diffSide).outputs.indexOf(this.output.model);
|
|
168
|
-
}
|
|
169
|
-
updateHeight(index, height) {
|
|
170
|
-
this._diffElementViewModel.updateOutputHeight(this._diffSide, index, height);
|
|
171
|
-
}
|
|
172
|
-
getOutputOffsetInContainer(index) {
|
|
173
|
-
return this._diffElementViewModel.getOutputOffsetInContainer(this._diffSide, index);
|
|
174
|
-
}
|
|
175
|
-
getOutputOffsetInCell(index) {
|
|
176
|
-
return this._diffElementViewModel.getOutputOffsetInCell(this._diffSide, index);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
let OutputContainer = class OutputContainer extends Disposable {
|
|
180
|
-
constructor(_editor, _notebookTextModel, _diffElementViewModel, _nestedCellViewModel, _diffSide, _outputContainer, _notebookService, _quickInputService) {
|
|
181
|
-
super();
|
|
182
|
-
this._editor = _editor;
|
|
183
|
-
this._notebookTextModel = _notebookTextModel;
|
|
184
|
-
this._diffElementViewModel = _diffElementViewModel;
|
|
185
|
-
this._nestedCellViewModel = _nestedCellViewModel;
|
|
186
|
-
this._diffSide = _diffSide;
|
|
187
|
-
this._outputContainer = _outputContainer;
|
|
188
|
-
this._notebookService = _notebookService;
|
|
189
|
-
this._quickInputService = _quickInputService;
|
|
190
|
-
this._outputEntries = ( new Map());
|
|
191
|
-
this._register(this._diffElementViewModel.onDidLayoutChange(() => {
|
|
192
|
-
this._outputEntries.forEach((value, key) => {
|
|
193
|
-
const index = _nestedCellViewModel.outputs.indexOf(key.model);
|
|
194
|
-
if (index >= 0) {
|
|
195
|
-
const top = this._diffElementViewModel.getOutputOffsetInContainer(this._diffSide, index);
|
|
196
|
-
value.domNode.style.top = `${top}px`;
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
}));
|
|
200
|
-
this._register(this._nestedCellViewModel.textModel.onDidChangeOutputs(splice => {
|
|
201
|
-
this._updateOutputs(splice);
|
|
202
|
-
}));
|
|
203
|
-
}
|
|
204
|
-
_updateOutputs(splice) {
|
|
205
|
-
const removedKeys = [];
|
|
206
|
-
this._outputEntries.forEach((value, key) => {
|
|
207
|
-
if (this._nestedCellViewModel.outputsViewModels.indexOf(key) < 0) {
|
|
208
|
-
removedKeys.push(key);
|
|
209
|
-
value.domNode.remove();
|
|
210
|
-
this._editor.removeInset(this._diffElementViewModel, this._nestedCellViewModel, key, this._diffSide);
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
removedKeys.forEach(key => {
|
|
214
|
-
this._outputEntries.get(key)?.dispose();
|
|
215
|
-
this._outputEntries.delete(key);
|
|
216
|
-
});
|
|
217
|
-
let prevElement = undefined;
|
|
218
|
-
const outputsToRender = this._nestedCellViewModel.outputsViewModels;
|
|
219
|
-
outputsToRender.reverse().forEach(output => {
|
|
220
|
-
if (( this._outputEntries.has(output))) {
|
|
221
|
-
prevElement = this._outputEntries.get(output).domNode;
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
const currIndex = this._nestedCellViewModel.outputsViewModels.indexOf(output);
|
|
225
|
-
this._renderOutput(output, currIndex, prevElement);
|
|
226
|
-
prevElement = this._outputEntries.get(output)?.domNode;
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
render() {
|
|
230
|
-
for (let index = 0; index < this._nestedCellViewModel.outputsViewModels.length; index++) {
|
|
231
|
-
const currOutput = this._nestedCellViewModel.outputsViewModels[index];
|
|
232
|
-
this._renderOutput(currOutput, index, undefined);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
showOutputs() {
|
|
236
|
-
for (let index = 0; index < this._nestedCellViewModel.outputsViewModels.length; index++) {
|
|
237
|
-
const currOutput = this._nestedCellViewModel.outputsViewModels[index];
|
|
238
|
-
this._editor.showInset(this._diffElementViewModel, currOutput.cellViewModel, currOutput, this._diffSide);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
hideOutputs() {
|
|
242
|
-
this._outputEntries.forEach((outputElement, cellOutputViewModel) => {
|
|
243
|
-
this._editor.hideInset(this._diffElementViewModel, this._nestedCellViewModel, cellOutputViewModel);
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
_renderOutput(currOutput, index, beforeElement) {
|
|
247
|
-
if (!( this._outputEntries.has(currOutput))) {
|
|
248
|
-
this._outputEntries.set(currOutput, ( new OutputElement(
|
|
249
|
-
this._editor,
|
|
250
|
-
this._notebookTextModel,
|
|
251
|
-
this._notebookService,
|
|
252
|
-
this._quickInputService,
|
|
253
|
-
this._diffElementViewModel,
|
|
254
|
-
this._diffSide,
|
|
255
|
-
this._nestedCellViewModel,
|
|
256
|
-
this._outputContainer,
|
|
257
|
-
currOutput
|
|
258
|
-
)));
|
|
259
|
-
}
|
|
260
|
-
const renderElement = this._outputEntries.get(currOutput);
|
|
261
|
-
renderElement.render(index, beforeElement);
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
OutputContainer = ( __decorate([
|
|
265
|
-
( __param(6, INotebookService)),
|
|
266
|
-
( __param(7, IQuickInputService))
|
|
267
|
-
], OutputContainer));
|
|
268
|
-
|
|
269
|
-
export { OutputContainer, OutputElement };
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import { Emitter } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
2
|
-
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
-
import { FontInfo } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/config/fontInfo";
|
|
5
|
-
import * as editorCommon from "@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon";
|
|
6
|
-
import { DiffNestedCellViewModel } from "./diffNestedCellViewModel.js";
|
|
7
|
-
import { NotebookDiffEditorEventDispatcher } from "./eventDispatcher.js";
|
|
8
|
-
import { CellDiffViewModelLayoutChangeEvent, DiffSide, IDiffElementLayoutInfo } from "./notebookDiffEditorBrowser.js";
|
|
9
|
-
import { IGenericCellViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
10
|
-
import { NotebookLayoutInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookViewEvents";
|
|
11
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
12
|
-
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
13
|
-
import { ICellOutput, INotebookTextModel, IOutputDto, IOutputItemDto } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
14
|
-
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
15
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
16
|
-
import { IDiffEditorHeightCalculatorService } from "./editorHeightCalculator.js";
|
|
17
|
-
import { NotebookDocumentMetadataTextModel } from "../../common/model/notebookMetadataTextModel.js";
|
|
18
|
-
export declare const HeightOfHiddenLinesRegionInDiffEditor = 24;
|
|
19
|
-
export declare const DefaultLineHeight = 17;
|
|
20
|
-
export declare enum PropertyFoldingState {
|
|
21
|
-
Expanded = 0,
|
|
22
|
-
Collapsed = 1
|
|
23
|
-
}
|
|
24
|
-
export declare const OUTPUT_EDITOR_HEIGHT_MAGIC = 1440;
|
|
25
|
-
type ILayoutInfoDelta0 = {
|
|
26
|
-
[K in keyof IDiffElementLayoutInfo]?: number;
|
|
27
|
-
};
|
|
28
|
-
interface ILayoutInfoDelta extends ILayoutInfoDelta0 {
|
|
29
|
-
rawOutputHeight?: number;
|
|
30
|
-
recomputeOutput?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export type IDiffElementViewModelBase = DiffElementCellViewModelBase | DiffElementPlaceholderViewModel | NotebookDocumentMetadataViewModel;
|
|
33
|
-
export declare abstract class DiffElementViewModelBase extends Disposable {
|
|
34
|
-
readonly mainDocumentTextModel: INotebookTextModel;
|
|
35
|
-
readonly editorEventDispatcher: NotebookDiffEditorEventDispatcher;
|
|
36
|
-
readonly initData: {
|
|
37
|
-
metadataStatusHeight: number;
|
|
38
|
-
outputStatusHeight: number;
|
|
39
|
-
fontInfo: FontInfo | undefined;
|
|
40
|
-
};
|
|
41
|
-
protected _layoutInfoEmitter: Emitter<CellDiffViewModelLayoutChangeEvent>;
|
|
42
|
-
onDidLayoutChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<CellDiffViewModelLayoutChangeEvent>;
|
|
43
|
-
abstract renderOutput: boolean;
|
|
44
|
-
constructor(mainDocumentTextModel: INotebookTextModel, editorEventDispatcher: NotebookDiffEditorEventDispatcher, initData: {
|
|
45
|
-
metadataStatusHeight: number;
|
|
46
|
-
outputStatusHeight: number;
|
|
47
|
-
fontInfo: FontInfo | undefined;
|
|
48
|
-
});
|
|
49
|
-
abstract layoutChange(): void;
|
|
50
|
-
abstract getHeight(lineHeight: number): number;
|
|
51
|
-
abstract get totalHeight(): number;
|
|
52
|
-
}
|
|
53
|
-
export declare class DiffElementPlaceholderViewModel extends DiffElementViewModelBase {
|
|
54
|
-
readonly type: "placeholder";
|
|
55
|
-
hiddenCells: DiffElementCellViewModelBase[];
|
|
56
|
-
protected _unfoldHiddenCells: Emitter<void>;
|
|
57
|
-
onUnfoldHiddenCells: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
58
|
-
renderOutput: boolean;
|
|
59
|
-
constructor(mainDocumentTextModel: INotebookTextModel, editorEventDispatcher: NotebookDiffEditorEventDispatcher, initData: {
|
|
60
|
-
metadataStatusHeight: number;
|
|
61
|
-
outputStatusHeight: number;
|
|
62
|
-
fontInfo: FontInfo | undefined;
|
|
63
|
-
});
|
|
64
|
-
get totalHeight(): number;
|
|
65
|
-
getHeight(_: number): number;
|
|
66
|
-
layoutChange(): void;
|
|
67
|
-
showHiddenCells(): void;
|
|
68
|
-
}
|
|
69
|
-
export declare class NotebookDocumentMetadataViewModel extends DiffElementViewModelBase {
|
|
70
|
-
readonly originalDocumentTextModel: INotebookTextModel;
|
|
71
|
-
readonly modifiedDocumentTextModel: INotebookTextModel;
|
|
72
|
-
readonly type: "unchangedMetadata" | "modifiedMetadata";
|
|
73
|
-
private readonly editorHeightCalculator;
|
|
74
|
-
readonly originalMetadata: NotebookDocumentMetadataTextModel;
|
|
75
|
-
readonly modifiedMetadata: NotebookDocumentMetadataTextModel;
|
|
76
|
-
cellFoldingState: PropertyFoldingState;
|
|
77
|
-
protected _layoutInfo: IDiffElementLayoutInfo;
|
|
78
|
-
renderOutput: boolean;
|
|
79
|
-
set editorHeight(height: number);
|
|
80
|
-
get editorHeight(): number;
|
|
81
|
-
set editorMargin(margin: number);
|
|
82
|
-
get editorMargin(): number;
|
|
83
|
-
get layoutInfo(): IDiffElementLayoutInfo;
|
|
84
|
-
get totalHeight(): number;
|
|
85
|
-
private _sourceEditorViewState;
|
|
86
|
-
constructor(originalDocumentTextModel: INotebookTextModel, modifiedDocumentTextModel: INotebookTextModel, type: "unchangedMetadata" | "modifiedMetadata", editorEventDispatcher: NotebookDiffEditorEventDispatcher, initData: {
|
|
87
|
-
metadataStatusHeight: number;
|
|
88
|
-
outputStatusHeight: number;
|
|
89
|
-
fontInfo: FontInfo | undefined;
|
|
90
|
-
}, notebookService: INotebookService, editorHeightCalculator: IDiffEditorHeightCalculatorService);
|
|
91
|
-
computeHeights(): Promise<void>;
|
|
92
|
-
layoutChange(): void;
|
|
93
|
-
protected _layout(delta: ILayoutInfoDelta): void;
|
|
94
|
-
getHeight(lineHeight: number): number;
|
|
95
|
-
private _computeTotalHeight;
|
|
96
|
-
computeInputEditorHeight(_lineHeight: number): number;
|
|
97
|
-
private _fireLayoutChangeEvent;
|
|
98
|
-
getComputedCellContainerWidth(layoutInfo: NotebookLayoutInfo, diffEditor: boolean, fullWidth: boolean): number;
|
|
99
|
-
getSourceEditorViewState(): editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null;
|
|
100
|
-
saveSpirceEditorViewState(viewState: editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null): void;
|
|
101
|
-
}
|
|
102
|
-
export declare abstract class DiffElementCellViewModelBase extends DiffElementViewModelBase {
|
|
103
|
-
readonly type: "unchanged" | "insert" | "delete" | "modified";
|
|
104
|
-
readonly index: number;
|
|
105
|
-
private readonly configurationService;
|
|
106
|
-
readonly diffEditorHeightCalculator: IDiffEditorHeightCalculatorService;
|
|
107
|
-
cellFoldingState: PropertyFoldingState;
|
|
108
|
-
metadataFoldingState: PropertyFoldingState;
|
|
109
|
-
outputFoldingState: PropertyFoldingState;
|
|
110
|
-
protected _stateChangeEmitter: Emitter<{
|
|
111
|
-
renderOutput: boolean;
|
|
112
|
-
}>;
|
|
113
|
-
onDidStateChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<{
|
|
114
|
-
renderOutput: boolean;
|
|
115
|
-
}>;
|
|
116
|
-
protected _layoutInfo: IDiffElementLayoutInfo;
|
|
117
|
-
displayIconToHideUnmodifiedCells?: boolean;
|
|
118
|
-
private _hideUnchangedCells;
|
|
119
|
-
onHideUnchangedCells: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
120
|
-
hideUnchangedCells(): void;
|
|
121
|
-
set rawOutputHeight(height: number);
|
|
122
|
-
get rawOutputHeight(): number;
|
|
123
|
-
set outputStatusHeight(height: number);
|
|
124
|
-
get outputStatusHeight(): number;
|
|
125
|
-
set outputMetadataHeight(height: number);
|
|
126
|
-
get outputMetadataHeight(): number;
|
|
127
|
-
set editorHeight(height: number);
|
|
128
|
-
get editorHeight(): number;
|
|
129
|
-
set editorMargin(margin: number);
|
|
130
|
-
get editorMargin(): number;
|
|
131
|
-
set metadataStatusHeight(height: number);
|
|
132
|
-
get metadataStatusHeight(): number;
|
|
133
|
-
set metadataHeight(height: number);
|
|
134
|
-
get metadataHeight(): number;
|
|
135
|
-
private _renderOutput;
|
|
136
|
-
set renderOutput(value: boolean);
|
|
137
|
-
get renderOutput(): boolean;
|
|
138
|
-
get layoutInfo(): IDiffElementLayoutInfo;
|
|
139
|
-
get totalHeight(): number;
|
|
140
|
-
protected get ignoreOutputs(): boolean;
|
|
141
|
-
protected get ignoreMetadata(): boolean;
|
|
142
|
-
private _sourceEditorViewState;
|
|
143
|
-
private _outputEditorViewState;
|
|
144
|
-
private _metadataEditorViewState;
|
|
145
|
-
readonly original: DiffNestedCellViewModel | undefined;
|
|
146
|
-
readonly modified: DiffNestedCellViewModel | undefined;
|
|
147
|
-
constructor(mainDocumentTextModel: INotebookTextModel, original: NotebookCellTextModel | undefined, modified: NotebookCellTextModel | undefined, type: "unchanged" | "insert" | "delete" | "modified", editorEventDispatcher: NotebookDiffEditorEventDispatcher, initData: {
|
|
148
|
-
metadataStatusHeight: number;
|
|
149
|
-
outputStatusHeight: number;
|
|
150
|
-
fontInfo: FontInfo | undefined;
|
|
151
|
-
}, notebookService: INotebookService, index: number, configurationService: IConfigurationService, diffEditorHeightCalculator: IDiffEditorHeightCalculatorService);
|
|
152
|
-
layoutChange(): void;
|
|
153
|
-
private _estimateEditorHeight;
|
|
154
|
-
protected _layout(delta: ILayoutInfoDelta): void;
|
|
155
|
-
getHeight(lineHeight: number): number;
|
|
156
|
-
private _computeTotalHeight;
|
|
157
|
-
computeInputEditorHeight(lineHeight: number): number;
|
|
158
|
-
private _getOutputTotalHeight;
|
|
159
|
-
private _fireLayoutChangeEvent;
|
|
160
|
-
abstract checkIfInputModified(): false | {
|
|
161
|
-
reason: string | undefined;
|
|
162
|
-
};
|
|
163
|
-
abstract checkIfOutputsModified(): false | {
|
|
164
|
-
reason: string | undefined;
|
|
165
|
-
};
|
|
166
|
-
abstract checkMetadataIfModified(): false | {
|
|
167
|
-
reason: string | undefined;
|
|
168
|
-
};
|
|
169
|
-
abstract isOutputEmpty(): boolean;
|
|
170
|
-
abstract getRichOutputTotalHeight(): number;
|
|
171
|
-
abstract getCellByUri(cellUri: URI): IGenericCellViewModel;
|
|
172
|
-
abstract getOutputOffsetInCell(diffSide: DiffSide, index: number): number;
|
|
173
|
-
abstract getOutputOffsetInContainer(diffSide: DiffSide, index: number): number;
|
|
174
|
-
abstract updateOutputHeight(diffSide: DiffSide, index: number, height: number): void;
|
|
175
|
-
abstract getNestedCellViewModel(diffSide: DiffSide): DiffNestedCellViewModel;
|
|
176
|
-
getComputedCellContainerWidth(layoutInfo: NotebookLayoutInfo, diffEditor: boolean, fullWidth: boolean): number;
|
|
177
|
-
getOutputEditorViewState(): editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null;
|
|
178
|
-
saveOutputEditorViewState(viewState: editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null): void;
|
|
179
|
-
getMetadataEditorViewState(): editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null;
|
|
180
|
-
saveMetadataEditorViewState(viewState: editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null): void;
|
|
181
|
-
getSourceEditorViewState(): editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null;
|
|
182
|
-
saveSpirceEditorViewState(viewState: editorCommon.ICodeEditorViewState | editorCommon.IDiffEditorViewState | null): void;
|
|
183
|
-
}
|
|
184
|
-
export declare class SideBySideDiffElementViewModel extends DiffElementCellViewModelBase {
|
|
185
|
-
readonly otherDocumentTextModel: NotebookTextModel;
|
|
186
|
-
get originalDocument(): NotebookTextModel;
|
|
187
|
-
get modifiedDocument(): INotebookTextModel;
|
|
188
|
-
readonly original: DiffNestedCellViewModel;
|
|
189
|
-
readonly modified: DiffNestedCellViewModel;
|
|
190
|
-
readonly type: "unchanged" | "modified";
|
|
191
|
-
/**
|
|
192
|
-
* The height of the editor when the unchanged lines are collapsed.
|
|
193
|
-
*/
|
|
194
|
-
private editorHeightWithUnchangedLinesCollapsed?;
|
|
195
|
-
constructor(mainDocumentTextModel: NotebookTextModel, otherDocumentTextModel: NotebookTextModel, original: NotebookCellTextModel, modified: NotebookCellTextModel, type: "unchanged" | "modified", editorEventDispatcher: NotebookDiffEditorEventDispatcher, initData: {
|
|
196
|
-
metadataStatusHeight: number;
|
|
197
|
-
outputStatusHeight: number;
|
|
198
|
-
fontInfo: FontInfo | undefined;
|
|
199
|
-
}, notebookService: INotebookService, configurationService: IConfigurationService, index: number, diffEditorHeightCalculator: IDiffEditorHeightCalculatorService);
|
|
200
|
-
checkIfInputModified(): false | {
|
|
201
|
-
reason: string | undefined;
|
|
202
|
-
};
|
|
203
|
-
checkIfOutputsModified(): false | {
|
|
204
|
-
reason: string | undefined;
|
|
205
|
-
kind: OutputComparison;
|
|
206
|
-
};
|
|
207
|
-
checkMetadataIfModified(): false | {
|
|
208
|
-
reason: undefined;
|
|
209
|
-
};
|
|
210
|
-
updateOutputHeight(diffSide: DiffSide, index: number, height: number): void;
|
|
211
|
-
getOutputOffsetInContainer(diffSide: DiffSide, index: number): number;
|
|
212
|
-
getOutputOffsetInCell(diffSide: DiffSide, index: number): number;
|
|
213
|
-
isOutputEmpty(): boolean;
|
|
214
|
-
getRichOutputTotalHeight(): number;
|
|
215
|
-
getNestedCellViewModel(diffSide: DiffSide): DiffNestedCellViewModel;
|
|
216
|
-
getCellByUri(cellUri: URI): IGenericCellViewModel;
|
|
217
|
-
computeInputEditorHeight(lineHeight: number): number;
|
|
218
|
-
private computeModifiedInputEditorHeight;
|
|
219
|
-
private computeModifiedMetadataEditorHeight;
|
|
220
|
-
computeEditorHeights(): Promise<void>;
|
|
221
|
-
}
|
|
222
|
-
export declare class SingleSideDiffElementViewModel extends DiffElementCellViewModelBase {
|
|
223
|
-
readonly otherDocumentTextModel: NotebookTextModel;
|
|
224
|
-
get cellViewModel(): DiffNestedCellViewModel;
|
|
225
|
-
get originalDocument(): NotebookTextModel | INotebookTextModel;
|
|
226
|
-
get modifiedDocument(): NotebookTextModel | INotebookTextModel;
|
|
227
|
-
readonly type: "insert" | "delete";
|
|
228
|
-
constructor(mainDocumentTextModel: NotebookTextModel, otherDocumentTextModel: NotebookTextModel, original: NotebookCellTextModel | undefined, modified: NotebookCellTextModel | undefined, type: "insert" | "delete", editorEventDispatcher: NotebookDiffEditorEventDispatcher, initData: {
|
|
229
|
-
metadataStatusHeight: number;
|
|
230
|
-
outputStatusHeight: number;
|
|
231
|
-
fontInfo: FontInfo | undefined;
|
|
232
|
-
}, notebookService: INotebookService, configurationService: IConfigurationService, diffEditorHeightCalculator: IDiffEditorHeightCalculatorService, index: number);
|
|
233
|
-
checkIfInputModified(): false | {
|
|
234
|
-
reason: string | undefined;
|
|
235
|
-
};
|
|
236
|
-
getNestedCellViewModel(diffSide: DiffSide): DiffNestedCellViewModel;
|
|
237
|
-
checkIfOutputsModified(): false | {
|
|
238
|
-
reason: string | undefined;
|
|
239
|
-
};
|
|
240
|
-
checkMetadataIfModified(): false | {
|
|
241
|
-
reason: string | undefined;
|
|
242
|
-
};
|
|
243
|
-
updateOutputHeight(diffSide: DiffSide, index: number, height: number): void;
|
|
244
|
-
getOutputOffsetInContainer(diffSide: DiffSide, index: number): number;
|
|
245
|
-
getOutputOffsetInCell(diffSide: DiffSide, index: number): number;
|
|
246
|
-
isOutputEmpty(): boolean;
|
|
247
|
-
getRichOutputTotalHeight(): number;
|
|
248
|
-
getCellByUri(cellUri: URI): IGenericCellViewModel;
|
|
249
|
-
}
|
|
250
|
-
export declare enum OutputComparison {
|
|
251
|
-
Unchanged = 0,
|
|
252
|
-
Metadata = 1,
|
|
253
|
-
Other = 2
|
|
254
|
-
}
|
|
255
|
-
export declare function outputEqual(a: ICellOutput, b: ICellOutput): OutputComparison;
|
|
256
|
-
export declare function getStreamOutputData(outputs: IOutputItemDto[]): string | null;
|
|
257
|
-
export declare function getFormattedOutputJSON(outputs: IOutputDto[]): string;
|
|
258
|
-
export {};
|