@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
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { append, addDisposableListener, EventType, isHTMLElement, getWindow, createTextNode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { alert } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/aria/aria';
|
|
5
|
+
import { KeyCode, KeyMod } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
6
|
+
import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
|
|
7
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
|
+
import { format } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
9
|
+
import { CONTEXT_FIND_WIDGET_VISIBLE, MATCHES_LIMIT } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findModel';
|
|
10
|
+
import { FindReplaceState } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findState';
|
|
11
|
+
import { NLS_MATCHES_LOCATION, NLS_NO_RESULTS } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findWidget';
|
|
12
|
+
import { FindWidgetSearchHistory } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findWidgetSearchHistory';
|
|
13
|
+
import { ReplaceWidgetHistory } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/replaceWidgetHistory';
|
|
14
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
16
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
17
|
+
import { IContextViewService, IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
18
|
+
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
19
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
21
|
+
import { FindModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/find/findModel';
|
|
22
|
+
import { SimpleFindReplaceWidget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget';
|
|
23
|
+
import { CellEditState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
24
|
+
import { KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
25
|
+
|
|
26
|
+
const FIND_HIDE_TRANSITION = "find-hide-transition";
|
|
27
|
+
const FIND_SHOW_TRANSITION = "find-show-transition";
|
|
28
|
+
let MAX_MATCHES_COUNT_WIDTH = 69;
|
|
29
|
+
const PROGRESS_BAR_DELAY = 200;
|
|
30
|
+
let NotebookFindContrib = class NotebookFindContrib extends Disposable {
|
|
31
|
+
static {
|
|
32
|
+
this.id = "workbench.notebook.find";
|
|
33
|
+
}
|
|
34
|
+
constructor(notebookEditor, instantiationService) {
|
|
35
|
+
super();
|
|
36
|
+
this.notebookEditor = notebookEditor;
|
|
37
|
+
this.instantiationService = instantiationService;
|
|
38
|
+
this._widget = ( new Lazy(() => this._register(
|
|
39
|
+
this.instantiationService.createInstance(NotebookFindWidget, this.notebookEditor)
|
|
40
|
+
)));
|
|
41
|
+
}
|
|
42
|
+
get widget() {
|
|
43
|
+
return this._widget.value;
|
|
44
|
+
}
|
|
45
|
+
show(initialInput, options) {
|
|
46
|
+
return this._widget.value.show(initialInput, options);
|
|
47
|
+
}
|
|
48
|
+
hide() {
|
|
49
|
+
this._widget.rawValue?.hide();
|
|
50
|
+
}
|
|
51
|
+
replace(searchString) {
|
|
52
|
+
return this._widget.value.replace(searchString);
|
|
53
|
+
}
|
|
54
|
+
isVisible() {
|
|
55
|
+
return this._widget.rawValue?.isVisible ?? false;
|
|
56
|
+
}
|
|
57
|
+
findNext() {
|
|
58
|
+
if (this._widget.rawValue) {
|
|
59
|
+
this._widget.value.findNext();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
findPrevious() {
|
|
63
|
+
if (this._widget.rawValue) {
|
|
64
|
+
this._widget.value.findPrevious();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
NotebookFindContrib = ( __decorate([( __param(1, IInstantiationService))], NotebookFindContrib));
|
|
69
|
+
let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidget {
|
|
70
|
+
constructor(
|
|
71
|
+
_notebookEditor,
|
|
72
|
+
contextViewService,
|
|
73
|
+
contextKeyService,
|
|
74
|
+
configurationService,
|
|
75
|
+
contextMenuService,
|
|
76
|
+
hoverService,
|
|
77
|
+
instantiationService,
|
|
78
|
+
storageService
|
|
79
|
+
) {
|
|
80
|
+
const findSearchHistory = FindWidgetSearchHistory.getOrCreate(storageService);
|
|
81
|
+
const replaceHistory = ReplaceWidgetHistory.getOrCreate(storageService);
|
|
82
|
+
super(
|
|
83
|
+
contextViewService,
|
|
84
|
+
contextKeyService,
|
|
85
|
+
configurationService,
|
|
86
|
+
contextMenuService,
|
|
87
|
+
instantiationService,
|
|
88
|
+
hoverService,
|
|
89
|
+
( new FindReplaceState()),
|
|
90
|
+
_notebookEditor,
|
|
91
|
+
findSearchHistory,
|
|
92
|
+
replaceHistory
|
|
93
|
+
);
|
|
94
|
+
this._isFocused = false;
|
|
95
|
+
this._showTimeout = null;
|
|
96
|
+
this._hideTimeout = null;
|
|
97
|
+
this._findModel = ( new FindModel(this._notebookEditor, this._state, this._configurationService));
|
|
98
|
+
append(this._notebookEditor.getDomNode(), this.getDomNode());
|
|
99
|
+
this._findWidgetFocused = KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED.bindTo(contextKeyService);
|
|
100
|
+
this._findWidgetVisible = CONTEXT_FIND_WIDGET_VISIBLE.bindTo(contextKeyService);
|
|
101
|
+
this._register(this._findInput.onKeyDown(e => this._onFindInputKeyDown(e)));
|
|
102
|
+
this._register(this._replaceInput.onKeyDown(e => this._onReplaceInputKeyDown(e)));
|
|
103
|
+
this._register(this._state.onFindReplaceStateChange(e => {
|
|
104
|
+
this.onInputChanged();
|
|
105
|
+
if (e.isSearching) {
|
|
106
|
+
if (this._state.isSearching) {
|
|
107
|
+
this._progressBar.infinite().show(PROGRESS_BAR_DELAY);
|
|
108
|
+
} else {
|
|
109
|
+
this._progressBar.stop().hide();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (this._findModel.currentMatch >= 0) {
|
|
113
|
+
const currentMatch = this._findModel.getCurrentMatch();
|
|
114
|
+
this._replaceBtn.setEnabled(currentMatch.isModelMatch);
|
|
115
|
+
}
|
|
116
|
+
const matches = this._findModel.findMatches;
|
|
117
|
+
this._replaceAllBtn.setEnabled(
|
|
118
|
+
matches.length > 0 && matches.find(match => match.webviewMatches.length > 0) === undefined
|
|
119
|
+
);
|
|
120
|
+
if (e.filters) {
|
|
121
|
+
this._findInput.updateFilterState(this._state.filters?.isModified() ?? false);
|
|
122
|
+
}
|
|
123
|
+
}));
|
|
124
|
+
this._register(addDisposableListener(this.getDomNode(), EventType.FOCUS, e => {
|
|
125
|
+
this._previousFocusElement = isHTMLElement(e.relatedTarget) ? e.relatedTarget : undefined;
|
|
126
|
+
}, true));
|
|
127
|
+
}
|
|
128
|
+
get findModel() {
|
|
129
|
+
return this._findModel;
|
|
130
|
+
}
|
|
131
|
+
get isFocused() {
|
|
132
|
+
return this._isFocused;
|
|
133
|
+
}
|
|
134
|
+
_onFindInputKeyDown(e) {
|
|
135
|
+
if (e.equals(KeyCode.Enter)) {
|
|
136
|
+
this.find(false);
|
|
137
|
+
e.preventDefault();
|
|
138
|
+
return;
|
|
139
|
+
} else if (e.equals(KeyMod.Shift | KeyCode.Enter)) {
|
|
140
|
+
this.find(true);
|
|
141
|
+
e.preventDefault();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
_onReplaceInputKeyDown(e) {
|
|
146
|
+
if (e.equals(KeyCode.Enter)) {
|
|
147
|
+
this.replaceOne();
|
|
148
|
+
e.preventDefault();
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
onInputChanged() {
|
|
153
|
+
this._state.change({
|
|
154
|
+
searchString: this.inputValue
|
|
155
|
+
}, false);
|
|
156
|
+
const findMatches = this._findModel.findMatches;
|
|
157
|
+
if (findMatches && findMatches.length) {
|
|
158
|
+
return true;
|
|
159
|
+
}
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
findIndex(index) {
|
|
163
|
+
this._findModel.find({
|
|
164
|
+
index
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
find(previous) {
|
|
168
|
+
this._findModel.find({
|
|
169
|
+
previous
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
findNext() {
|
|
173
|
+
this.find(false);
|
|
174
|
+
}
|
|
175
|
+
findPrevious() {
|
|
176
|
+
this.find(true);
|
|
177
|
+
}
|
|
178
|
+
replaceOne() {
|
|
179
|
+
if (!this._notebookEditor.hasModel()) {
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (!this._findModel.findMatches.length) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
this._findModel.ensureFindMatches();
|
|
186
|
+
if (this._findModel.currentMatch < 0) {
|
|
187
|
+
this._findModel.find({
|
|
188
|
+
previous: false
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
const currentMatch = this._findModel.getCurrentMatch();
|
|
192
|
+
const cell = currentMatch.cell;
|
|
193
|
+
if (currentMatch.isModelMatch) {
|
|
194
|
+
const match = currentMatch.match;
|
|
195
|
+
this._progressBar.infinite().show(PROGRESS_BAR_DELAY);
|
|
196
|
+
const replacePattern = this.replacePattern;
|
|
197
|
+
const replaceString = replacePattern.buildReplaceString(match.matches, this._state.preserveCase);
|
|
198
|
+
const viewModel = this._notebookEditor.getViewModel();
|
|
199
|
+
viewModel.replaceOne(cell, match.range, replaceString).then(() => {
|
|
200
|
+
this._progressBar.stop();
|
|
201
|
+
});
|
|
202
|
+
} else {
|
|
203
|
+
console.error("Replace does not work for output match");
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
replaceAll() {
|
|
207
|
+
if (!this._notebookEditor.hasModel()) {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
this._progressBar.infinite().show(PROGRESS_BAR_DELAY);
|
|
211
|
+
const replacePattern = this.replacePattern;
|
|
212
|
+
const cellFindMatches = this._findModel.findMatches;
|
|
213
|
+
const replaceStrings = [];
|
|
214
|
+
cellFindMatches.forEach(cellFindMatch => {
|
|
215
|
+
cellFindMatch.contentMatches.forEach(match => {
|
|
216
|
+
const matches = match.matches;
|
|
217
|
+
replaceStrings.push(replacePattern.buildReplaceString(matches, this._state.preserveCase));
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
const viewModel = this._notebookEditor.getViewModel();
|
|
221
|
+
viewModel.replaceAll(this._findModel.findMatches, replaceStrings).then(() => {
|
|
222
|
+
this._progressBar.stop();
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
findFirst() {}
|
|
226
|
+
onFocusTrackerFocus() {
|
|
227
|
+
this._findWidgetFocused.set(true);
|
|
228
|
+
this._isFocused = true;
|
|
229
|
+
}
|
|
230
|
+
onFocusTrackerBlur() {
|
|
231
|
+
this._previousFocusElement = undefined;
|
|
232
|
+
this._findWidgetFocused.reset();
|
|
233
|
+
this._isFocused = false;
|
|
234
|
+
}
|
|
235
|
+
onReplaceInputFocusTrackerFocus() {}
|
|
236
|
+
onReplaceInputFocusTrackerBlur() {}
|
|
237
|
+
onFindInputFocusTrackerFocus() {}
|
|
238
|
+
onFindInputFocusTrackerBlur() {}
|
|
239
|
+
async show(initialInput, options) {
|
|
240
|
+
const searchStringUpdate = this._state.searchString !== initialInput;
|
|
241
|
+
super.show(initialInput, options);
|
|
242
|
+
this._state.change({
|
|
243
|
+
searchString: initialInput ?? this._state.searchString,
|
|
244
|
+
isRevealed: true
|
|
245
|
+
}, false);
|
|
246
|
+
this._findWidgetVisible.set(true);
|
|
247
|
+
if (typeof options?.matchIndex === "number") {
|
|
248
|
+
if (!this._findModel.findMatches.length) {
|
|
249
|
+
await this._findModel.research();
|
|
250
|
+
}
|
|
251
|
+
this.findIndex(options.matchIndex);
|
|
252
|
+
} else if (options?.focus !== false) {
|
|
253
|
+
this._findInput.select();
|
|
254
|
+
}
|
|
255
|
+
if (!searchStringUpdate && options?.searchStringSeededFrom) {
|
|
256
|
+
this._findModel.refreshCurrentMatch(options.searchStringSeededFrom);
|
|
257
|
+
}
|
|
258
|
+
if (this._showTimeout === null) {
|
|
259
|
+
if (this._hideTimeout !== null) {
|
|
260
|
+
getWindow(this.getDomNode()).clearTimeout(this._hideTimeout);
|
|
261
|
+
this._hideTimeout = null;
|
|
262
|
+
this._notebookEditor.removeClassName(FIND_HIDE_TRANSITION);
|
|
263
|
+
}
|
|
264
|
+
this._notebookEditor.addClassName(FIND_SHOW_TRANSITION);
|
|
265
|
+
this._showTimeout = getWindow(this.getDomNode()).setTimeout(() => {
|
|
266
|
+
this._notebookEditor.removeClassName(FIND_SHOW_TRANSITION);
|
|
267
|
+
this._showTimeout = null;
|
|
268
|
+
}, 200);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
replace(initialFindInput, initialReplaceInput) {
|
|
272
|
+
super.showWithReplace(initialFindInput, initialReplaceInput);
|
|
273
|
+
this._state.change({
|
|
274
|
+
searchString: initialFindInput ?? "",
|
|
275
|
+
replaceString: initialReplaceInput ?? "",
|
|
276
|
+
isRevealed: true
|
|
277
|
+
}, false);
|
|
278
|
+
this._replaceInput.select();
|
|
279
|
+
if (this._showTimeout === null) {
|
|
280
|
+
if (this._hideTimeout !== null) {
|
|
281
|
+
getWindow(this.getDomNode()).clearTimeout(this._hideTimeout);
|
|
282
|
+
this._hideTimeout = null;
|
|
283
|
+
this._notebookEditor.removeClassName(FIND_HIDE_TRANSITION);
|
|
284
|
+
}
|
|
285
|
+
this._notebookEditor.addClassName(FIND_SHOW_TRANSITION);
|
|
286
|
+
this._showTimeout = getWindow(this.getDomNode()).setTimeout(() => {
|
|
287
|
+
this._notebookEditor.removeClassName(FIND_SHOW_TRANSITION);
|
|
288
|
+
this._showTimeout = null;
|
|
289
|
+
}, 200);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
hide() {
|
|
293
|
+
super.hide();
|
|
294
|
+
this._state.change({
|
|
295
|
+
isRevealed: false
|
|
296
|
+
}, false);
|
|
297
|
+
this._findWidgetVisible.set(false);
|
|
298
|
+
this._findModel.clear();
|
|
299
|
+
this._notebookEditor.findStop();
|
|
300
|
+
this._progressBar.stop();
|
|
301
|
+
if (this._hideTimeout === null) {
|
|
302
|
+
if (this._showTimeout !== null) {
|
|
303
|
+
getWindow(this.getDomNode()).clearTimeout(this._showTimeout);
|
|
304
|
+
this._showTimeout = null;
|
|
305
|
+
this._notebookEditor.removeClassName(FIND_SHOW_TRANSITION);
|
|
306
|
+
}
|
|
307
|
+
this._notebookEditor.addClassName(FIND_HIDE_TRANSITION);
|
|
308
|
+
this._hideTimeout = getWindow(this.getDomNode()).setTimeout(() => {
|
|
309
|
+
this._notebookEditor.removeClassName(FIND_HIDE_TRANSITION);
|
|
310
|
+
}, 200);
|
|
311
|
+
}
|
|
312
|
+
if (this._previousFocusElement && this._previousFocusElement.offsetParent) {
|
|
313
|
+
this._previousFocusElement.focus();
|
|
314
|
+
this._previousFocusElement = undefined;
|
|
315
|
+
}
|
|
316
|
+
if (this._notebookEditor.hasModel()) {
|
|
317
|
+
for (let i = 0; i < this._notebookEditor.getLength(); i++) {
|
|
318
|
+
const cell = this._notebookEditor.cellAt(i);
|
|
319
|
+
if (cell.getEditState() === CellEditState.Editing && cell.editStateSource === "find") {
|
|
320
|
+
cell.updateEditState(CellEditState.Preview, "closeFind");
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
_updateMatchesCount() {
|
|
326
|
+
if (!this._findModel || !this._findModel.findMatches) {
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
this._matchesCount.style.minWidth = MAX_MATCHES_COUNT_WIDTH + "px";
|
|
330
|
+
this._matchesCount.title = "";
|
|
331
|
+
this._matchesCount.firstChild?.remove();
|
|
332
|
+
let label;
|
|
333
|
+
if (this._state.matchesCount > 0) {
|
|
334
|
+
let matchesCount = String(this._state.matchesCount);
|
|
335
|
+
if (this._state.matchesCount >= MATCHES_LIMIT) {
|
|
336
|
+
matchesCount += "+";
|
|
337
|
+
}
|
|
338
|
+
const matchesPosition = this._findModel.currentMatch < 0 ? "?" : String((this._findModel.currentMatch + 1));
|
|
339
|
+
label = format(NLS_MATCHES_LOCATION, matchesPosition, matchesCount);
|
|
340
|
+
} else {
|
|
341
|
+
label = NLS_NO_RESULTS;
|
|
342
|
+
}
|
|
343
|
+
this._matchesCount.appendChild(createTextNode(label));
|
|
344
|
+
alert(
|
|
345
|
+
this._getAriaLabel(label, this._state.currentMatch, this._state.searchString)
|
|
346
|
+
);
|
|
347
|
+
MAX_MATCHES_COUNT_WIDTH = Math.max(MAX_MATCHES_COUNT_WIDTH, this._matchesCount.clientWidth);
|
|
348
|
+
}
|
|
349
|
+
_getAriaLabel(label, currentMatch, searchString) {
|
|
350
|
+
if (label === NLS_NO_RESULTS) {
|
|
351
|
+
return searchString === "" ? ( localize(9610, "{0} found", label)) : ( localize(9611, "{0} found for '{1}'", label, searchString));
|
|
352
|
+
}
|
|
353
|
+
return localize(9612, "{0} found for '{1}'", label, searchString);
|
|
354
|
+
}
|
|
355
|
+
dispose() {
|
|
356
|
+
this._notebookEditor?.removeClassName(FIND_SHOW_TRANSITION);
|
|
357
|
+
this._notebookEditor?.removeClassName(FIND_HIDE_TRANSITION);
|
|
358
|
+
this._findModel.dispose();
|
|
359
|
+
super.dispose();
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
NotebookFindWidget = ( __decorate([( __param(1, IContextViewService)), ( __param(2, IContextKeyService)), ( __param(3, IConfigurationService)), ( __param(4, IContextMenuService)), ( __param(5, IHoverService)), ( __param(6, IInstantiationService)), ( __param(7, IStorageService))], NotebookFindWidget));
|
|
363
|
+
|
|
364
|
+
export { NotebookFindContrib };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
.interactive-editor .input-cell-container:focus-within .input-editor-container>.monaco-editor {
|
|
7
|
+
outline: solid 1px var(--vscode-notebook-focusedCellBorder);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.interactive-editor .input-cell-container .input-editor-container>.monaco-editor {
|
|
11
|
+
outline: solid 1px var(--vscode-notebook-inactiveFocusedCellBorder);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.interactive-editor .input-cell-container .input-focus-indicator {
|
|
15
|
+
top: 8px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.interactive-editor .input-cell-container .monaco-editor-background,
|
|
19
|
+
.interactive-editor .input-cell-container .margin-view-overlays {
|
|
20
|
+
background-color: var(--vscode-notebook-cellEditorBackground, var(--vscode-editor-background));
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
|
|
6
|
+
.interactive-editor .input-cell-container {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.interactive-editor .input-cell-container .input-focus-indicator {
|
|
11
|
+
position: absolute;
|
|
12
|
+
left: 0px;
|
|
13
|
+
height: 19px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.interactive-editor .input-cell-container .input-focus-indicator::before {
|
|
17
|
+
border-left: 3px solid transparent;
|
|
18
|
+
border-radius: 2px;
|
|
19
|
+
margin-left: 4px;
|
|
20
|
+
content: "";
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 0px;
|
|
23
|
+
height: 100%;
|
|
24
|
+
z-index: 10;
|
|
25
|
+
left: 0px;
|
|
26
|
+
top: 0px;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.interactive-editor .input-cell-container .run-button-container {
|
|
31
|
+
position: absolute;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.interactive-editor .input-cell-container .run-button-container .monaco-toolbar .actions-container {
|
|
35
|
+
justify-content: center;
|
|
36
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as DOM from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
|
|
2
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
4
|
+
import { ICodeEditorViewState, ICompositeCodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon";
|
|
5
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
6
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
7
|
+
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
8
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
|
+
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
+
import { EditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
11
|
+
import { IEditorOpenContext, IEditorPaneScrollPosition, IEditorPaneSelectionChangeEvent, IEditorPaneWithScrolling } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
12
|
+
import { INotebookEditorOptions, INotebookEditorViewState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
13
|
+
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
14
|
+
import { NotebookEditorWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
15
|
+
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
16
|
+
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
17
|
+
import { INotebookKernelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
|
|
18
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
19
|
+
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
20
|
+
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
21
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
22
|
+
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
23
|
+
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service";
|
|
24
|
+
import { ITextEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
|
|
25
|
+
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
26
|
+
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
27
|
+
import { ReplEditorInput } from "./replEditorInput.js";
|
|
28
|
+
import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
29
|
+
import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
30
|
+
export interface InteractiveEditorViewState {
|
|
31
|
+
readonly notebook?: INotebookEditorViewState;
|
|
32
|
+
readonly input?: ICodeEditorViewState | null;
|
|
33
|
+
}
|
|
34
|
+
export interface InteractiveEditorOptions extends ITextEditorOptions {
|
|
35
|
+
readonly viewState?: InteractiveEditorViewState;
|
|
36
|
+
}
|
|
37
|
+
export declare class ReplEditor extends EditorPane implements IEditorPaneWithScrolling {
|
|
38
|
+
private readonly _accessibilityService;
|
|
39
|
+
private _rootElement;
|
|
40
|
+
private _styleElement;
|
|
41
|
+
private _notebookEditorContainer;
|
|
42
|
+
private _notebookWidget;
|
|
43
|
+
private _inputCellContainer;
|
|
44
|
+
private _inputFocusIndicator;
|
|
45
|
+
private _inputRunButtonContainer;
|
|
46
|
+
private _inputEditorContainer;
|
|
47
|
+
private _codeEditorWidget;
|
|
48
|
+
private _notebookWidgetService;
|
|
49
|
+
private _instantiationService;
|
|
50
|
+
private _languageService;
|
|
51
|
+
private _contextKeyService;
|
|
52
|
+
private _configurationService;
|
|
53
|
+
private _notebookKernelService;
|
|
54
|
+
private _keybindingService;
|
|
55
|
+
private _menuService;
|
|
56
|
+
private _contextMenuService;
|
|
57
|
+
private _editorGroupService;
|
|
58
|
+
private _extensionService;
|
|
59
|
+
private readonly _widgetDisposableStore;
|
|
60
|
+
private _lastLayoutDimensions?;
|
|
61
|
+
private _editorOptions;
|
|
62
|
+
private _notebookOptions;
|
|
63
|
+
private _editorMemento;
|
|
64
|
+
private readonly _groupListener;
|
|
65
|
+
private _runbuttonToolbar;
|
|
66
|
+
private _hintElement;
|
|
67
|
+
private _onDidFocusWidget;
|
|
68
|
+
get onDidFocus(): Event<void>;
|
|
69
|
+
private _onDidChangeSelection;
|
|
70
|
+
readonly onDidChangeSelection: Event<IEditorPaneSelectionChangeEvent>;
|
|
71
|
+
private _onDidChangeScroll;
|
|
72
|
+
readonly onDidChangeScroll: Event<void>;
|
|
73
|
+
constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService, instantiationService: IInstantiationService, notebookWidgetService: INotebookEditorService, contextKeyService: IContextKeyService, notebookKernelService: INotebookKernelService, languageService: ILanguageService, keybindingService: IKeybindingService, configurationService: IConfigurationService, menuService: IMenuService, contextMenuService: IContextMenuService, editorGroupService: IEditorGroupsService, textResourceConfigurationService: ITextResourceConfigurationService, notebookExecutionStateService: INotebookExecutionStateService, extensionService: IExtensionService, _accessibilityService: IAccessibilityService);
|
|
74
|
+
private get inputCellContainerHeight();
|
|
75
|
+
private get inputCellEditorHeight();
|
|
76
|
+
protected createEditor(parent: HTMLElement): void;
|
|
77
|
+
private _setupRunButtonToolbar;
|
|
78
|
+
private _createLayoutStyles;
|
|
79
|
+
private _computeEditorOptions;
|
|
80
|
+
protected saveState(): void;
|
|
81
|
+
getViewState(): InteractiveEditorViewState | undefined;
|
|
82
|
+
private _saveEditorViewState;
|
|
83
|
+
private _loadNotebookEditorViewState;
|
|
84
|
+
setInput(input: ReplEditorInput, options: InteractiveEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
|
|
85
|
+
private handleViewCellChange;
|
|
86
|
+
private handleAppend;
|
|
87
|
+
setOptions(options: INotebookEditorOptions | undefined): void;
|
|
88
|
+
private _toEditorPaneSelectionChangeReason;
|
|
89
|
+
private _cellAtBottom;
|
|
90
|
+
private _scrollIfNecessary;
|
|
91
|
+
private _syncWithKernel;
|
|
92
|
+
layout(dimension: DOM.Dimension, position: DOM.IDomPosition): void;
|
|
93
|
+
private _layoutWidgets;
|
|
94
|
+
private _validateDimension;
|
|
95
|
+
private _hasConflictingDecoration;
|
|
96
|
+
private _updateInputHint;
|
|
97
|
+
getScrollPosition(): IEditorPaneScrollPosition;
|
|
98
|
+
setScrollPosition(position: IEditorPaneScrollPosition): void;
|
|
99
|
+
focus(): void;
|
|
100
|
+
focusHistory(): void;
|
|
101
|
+
protected setEditorVisible(visible: boolean): void;
|
|
102
|
+
clearInput(): void;
|
|
103
|
+
getControl(): ReplEditorControl & ICompositeCodeEditor;
|
|
104
|
+
private getActiveCodeEditor;
|
|
105
|
+
}
|
|
106
|
+
export type ReplEditorControl = {
|
|
107
|
+
activeCodeEditor: ICodeEditor | undefined;
|
|
108
|
+
notebookEditor: NotebookEditorWidget | undefined;
|
|
109
|
+
};
|
|
110
|
+
export declare function isReplEditorControl(control: unknown): control is ReplEditorControl;
|