@codingame/monaco-vscode-api 32.0.2 → 33.0.3
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/missing-services.js +51 -7
- package/package.json +8 -8
- package/service-override/tools/views.d.ts +2 -2
- package/services.d.ts +3 -0
- package/services.js +8 -3
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/common/arrays.js +5 -1
- package/vscode/src/vs/base/common/async.js +94 -1
- package/vscode/src/vs/base/common/cache.js +22 -1
- package/vscode/src/vs/base/common/defaultAccount.d.ts +63 -0
- package/vscode/src/vs/base/common/policy.d.ts +1 -1
- package/vscode/src/vs/base/common/product.d.ts +0 -2
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.d.ts +12 -0
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.js +1 -1
- package/vscode/src/vs/editor/common/textModelEditSource.js +18 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +22 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +58 -17
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js +6 -3
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +7 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +24 -10
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +1 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +12 -12
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentHostUri.js +3 -0
- package/vscode/src/vs/platform/agentHost/common/agentPluginManager.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.d.ts +13 -4
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.js +8 -3
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.service.d.ts +17 -1
- package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.d.ts +27 -0
- package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.service.d.ts +20 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +1 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.d.ts +1054 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/actions.js +59 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/commands.d.ts +17 -1
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +6 -2
- package/vscode/src/vs/platform/agentHost/common/state/protocol/state.d.ts +5 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocolUpgrade.d.ts +73 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.d.ts +139 -0
- package/vscode/src/vs/platform/agentHost/common/state/sessionState.js +24 -0
- package/vscode/src/vs/platform/browserView/common/browserView.d.ts +20 -0
- package/vscode/src/vs/platform/browserView/common/browserView.js +1 -0
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.d.ts +3 -1
- package/vscode/src/vs/platform/configuration/common/configuration.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +10 -10
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +16 -1
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.js +8 -0
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +9 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +0 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +14 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverService.js +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
- package/vscode/src/vs/platform/list/browser/listService.js +25 -25
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +1 -1
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.service.d.ts +2 -4
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/policy/common/policy.d.ts +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +20 -20
- package/vscode/src/vs/platform/telemetry/common/telemetry.js +4 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +34 -34
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/theme/common/sizeUtils.d.ts +5 -3
- package/vscode/src/vs/platform/theme/common/sizeUtils.js +17 -3
- package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +11 -11
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +7 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostChatStatus.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +4 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +12 -0
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +98 -38
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +35 -35
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +127 -127
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +29 -29
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +23 -23
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +26 -26
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +37 -37
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +19 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.d.ts +1 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +139 -176
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +28 -27
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +16 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +24 -7
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -19
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +22 -22
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +27 -27
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewMenuActions.d.ts +7 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewMenuActions.js +28 -5
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +7 -0
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +11 -5
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +12 -9
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +14 -14
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +225 -225
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +82 -82
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +161 -161
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +156 -156
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +68 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/exportAgentHostDebugLogsAction.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service.d.ts +70 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostUntitledProvisionalSessionService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +43 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatOutputPartStateCache.service.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatOutputPartStateCache.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +93 -86
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +4 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +29 -21
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +7 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +41 -2
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +17 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +152 -49
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +17 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +21 -19
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +79 -79
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.d.ts +92 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/extensionPromptFileService.js +329 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +5 -44
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +33 -276
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +12 -12
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.d.ts +7 -12
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorDiffInput.js +68 -64
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +85 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +149 -151
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +179 -179
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -25
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +47 -47
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +6 -6
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +30 -30
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +79 -76
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +28 -28
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletionLanguageStatusBarContribution.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletionLanguageStatusBarContribution.js +108 -0
- package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletions.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +49 -0
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +66 -66
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +40 -40
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +42 -42
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +16 -16
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +4 -4
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +746 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +300 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +55 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +273 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +1963 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +314 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +258 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +886 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +118 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +71 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +40 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +313 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +265 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +185 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +104 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +43 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +41 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +469 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +933 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +180 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +32 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +643 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +197 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +539 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +39 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +90 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +92 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/opener/browser/opener.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/opener/browser/opener.contribution.js +44 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +60 -60
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +11 -11
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/common/search.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/search/common/search.js +9 -1
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -10
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +104 -74
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +30 -30
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +14 -14
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +2 -1
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +14 -3
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -25
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +15 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +11 -2
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +65 -22
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +15 -3
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +19 -3
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/policies/common/accountPolicyService.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +30 -30
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
- package/vscode/src/vs/workbench/services/title/browser/titleService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
- package/vscode-dts/vscode.proposed.authIssuers.d.ts +14 -0
- package/vscode-dts/vscode.proposed.chatOutputRenderer.d.ts +23 -3
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +0 -9
- package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.service.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolOutputStateCache.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/toolResultCompressor.d.ts +0 -39
- package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +0 -9
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.d.ts +0 -76
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +0 -470
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/runtimeExtensionsEditor.css +0 -86
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +0 -47
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
2
|
+
import { ILanguageService } from "../../../../../../editor/common/languages/language.service.js";
|
|
3
|
+
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
4
|
+
import { CellDiffInfo } from "../notebookDiffViewModel.js";
|
|
5
|
+
import { INotebookEditor } from "../../notebookBrowser.js";
|
|
6
|
+
import { MenuId } from "../../../../../../platform/actions/common/actions.js";
|
|
7
|
+
import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
|
|
8
|
+
import { IActionViewItemProvider } from "../../../../../../base/browser/ui/actionbar/actionbar.js";
|
|
9
|
+
export interface INotebookDeletedCellDecorator {
|
|
10
|
+
getTop(deletedIndex: number): number | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare class NotebookDeletedCellDecorator extends Disposable implements INotebookDeletedCellDecorator {
|
|
13
|
+
private readonly _notebookEditor;
|
|
14
|
+
private readonly toolbar;
|
|
15
|
+
private readonly languageService;
|
|
16
|
+
private readonly instantiationService;
|
|
17
|
+
private readonly zoneRemover;
|
|
18
|
+
private readonly createdViewZones;
|
|
19
|
+
private readonly deletedCellInfos;
|
|
20
|
+
constructor(_notebookEditor: INotebookEditor, toolbar: {
|
|
21
|
+
menuId: MenuId;
|
|
22
|
+
className: string;
|
|
23
|
+
telemetrySource?: string;
|
|
24
|
+
argFactory: (deletedCellIndex: number) => any;
|
|
25
|
+
actionViewItemProvider?: IActionViewItemProvider;
|
|
26
|
+
} | undefined, languageService: ILanguageService, instantiationService: IInstantiationService);
|
|
27
|
+
getTop(deletedIndex: number): number | undefined;
|
|
28
|
+
reveal(deletedIndex: number): void;
|
|
29
|
+
apply(diffInfo: CellDiffInfo[], original: NotebookTextModel): void;
|
|
30
|
+
clear(): void;
|
|
31
|
+
private _createWidget;
|
|
32
|
+
private _createWidgetImpl;
|
|
33
|
+
}
|
|
34
|
+
export declare class NotebookDeletedCellWidget extends Disposable {
|
|
35
|
+
private readonly _notebookEditor;
|
|
36
|
+
private readonly _toolbarOptions;
|
|
37
|
+
private readonly code;
|
|
38
|
+
private readonly language;
|
|
39
|
+
private readonly _originalIndex;
|
|
40
|
+
private readonly languageService;
|
|
41
|
+
private readonly instantiationService;
|
|
42
|
+
private readonly container;
|
|
43
|
+
constructor(_notebookEditor: INotebookEditor, _toolbarOptions: {
|
|
44
|
+
menuId: MenuId;
|
|
45
|
+
className: string;
|
|
46
|
+
telemetrySource?: string;
|
|
47
|
+
argFactory: (deletedCellIndex: number) => any;
|
|
48
|
+
actionViewItemProvider?: IActionViewItemProvider;
|
|
49
|
+
} | undefined, code: string, language: string, container: HTMLElement, _originalIndex: number, languageService: ILanguageService, instantiationService: IInstantiationService);
|
|
50
|
+
render(): Promise<number>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { createTrustedTypesPolicy } from '../../../../../../base/browser/trustedTypes.js';
|
|
4
|
+
import { Disposable, DisposableStore, toDisposable, dispose } from '../../../../../../base/common/lifecycle.js';
|
|
5
|
+
import { splitLines } from '../../../../../../base/common/strings.js';
|
|
6
|
+
import { EditorOption } from '../../../../../../editor/common/config/editorOptions.js';
|
|
7
|
+
import { ILanguageService } from '../../../../../../editor/common/languages/language.service.js';
|
|
8
|
+
import { tokenizeToString } from '../../../../../../editor/common/languages/textToHtmlTokenizer.js';
|
|
9
|
+
import { DefaultLineHeight } from '../diffElementViewModel.js';
|
|
10
|
+
import { NotebookOverviewRulerLane } from '../../notebookBrowser.js';
|
|
11
|
+
import { createElement, append, $ } from '../../../../../../base/browser/dom.js';
|
|
12
|
+
import { MenuWorkbenchToolBar, HiddenItemStrategy } from '../../../../../../platform/actions/browser/toolbar.js';
|
|
13
|
+
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
14
|
+
import { ServiceCollection } from '../../../../../../platform/instantiation/common/serviceCollection.js';
|
|
15
|
+
import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
|
|
16
|
+
import { overviewRulerDeletedForeground } from '../../../../scm/common/quickDiff.js';
|
|
17
|
+
|
|
18
|
+
const ttPolicy = createTrustedTypesPolicy("notebookRenderer", {
|
|
19
|
+
createHTML: value => value
|
|
20
|
+
});
|
|
21
|
+
let NotebookDeletedCellDecorator = class NotebookDeletedCellDecorator extends Disposable {
|
|
22
|
+
constructor(_notebookEditor, toolbar, languageService, instantiationService) {
|
|
23
|
+
super();
|
|
24
|
+
this._notebookEditor = _notebookEditor;
|
|
25
|
+
this.toolbar = toolbar;
|
|
26
|
+
this.languageService = languageService;
|
|
27
|
+
this.instantiationService = instantiationService;
|
|
28
|
+
this.zoneRemover = this._register(( new DisposableStore()));
|
|
29
|
+
this.createdViewZones = ( new Map());
|
|
30
|
+
this.deletedCellInfos = ( new Map());
|
|
31
|
+
}
|
|
32
|
+
getTop(deletedIndex) {
|
|
33
|
+
const info = this.deletedCellInfos.get(deletedIndex);
|
|
34
|
+
if (!info) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (info.previousIndex === -1) {
|
|
38
|
+
return 0;
|
|
39
|
+
}
|
|
40
|
+
const cells = this._notebookEditor.getCellsInRange({
|
|
41
|
+
start: info.previousIndex,
|
|
42
|
+
end: info.previousIndex + 1
|
|
43
|
+
});
|
|
44
|
+
if (!cells.length) {
|
|
45
|
+
return this._notebookEditor.getLayoutInfo().height + info.offset;
|
|
46
|
+
}
|
|
47
|
+
const cell = cells[0];
|
|
48
|
+
const cellHeight = this._notebookEditor.getHeightOfElement(cell);
|
|
49
|
+
const top = this._notebookEditor.getAbsoluteTopOfElement(cell);
|
|
50
|
+
return top + cellHeight + info.offset;
|
|
51
|
+
}
|
|
52
|
+
reveal(deletedIndex) {
|
|
53
|
+
const top = this.getTop(deletedIndex);
|
|
54
|
+
if (typeof top === "number") {
|
|
55
|
+
this._notebookEditor.focusContainer();
|
|
56
|
+
this._notebookEditor.revealOffsetInCenterIfOutsideViewport(top);
|
|
57
|
+
const info = this.deletedCellInfos.get(deletedIndex);
|
|
58
|
+
if (info) {
|
|
59
|
+
const prevIndex = info.previousIndex === -1 ? 0 : info.previousIndex;
|
|
60
|
+
this._notebookEditor.setFocus({
|
|
61
|
+
start: prevIndex,
|
|
62
|
+
end: prevIndex
|
|
63
|
+
});
|
|
64
|
+
this._notebookEditor.setSelections([{
|
|
65
|
+
start: prevIndex,
|
|
66
|
+
end: prevIndex
|
|
67
|
+
}]);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
apply(diffInfo, original) {
|
|
72
|
+
this.clear();
|
|
73
|
+
let currentIndex = -1;
|
|
74
|
+
const deletedCellsToRender = {
|
|
75
|
+
cells: [],
|
|
76
|
+
index: 0
|
|
77
|
+
};
|
|
78
|
+
diffInfo.forEach(diff => {
|
|
79
|
+
if (diff.type === "delete") {
|
|
80
|
+
const deletedCell = original.cells[diff.originalCellIndex];
|
|
81
|
+
if (deletedCell) {
|
|
82
|
+
deletedCellsToRender.cells.push({
|
|
83
|
+
cell: deletedCell,
|
|
84
|
+
originalIndex: diff.originalCellIndex,
|
|
85
|
+
previousIndex: currentIndex
|
|
86
|
+
});
|
|
87
|
+
deletedCellsToRender.index = currentIndex;
|
|
88
|
+
}
|
|
89
|
+
} else {
|
|
90
|
+
if (deletedCellsToRender.cells.length) {
|
|
91
|
+
this._createWidget(deletedCellsToRender.index + 1, deletedCellsToRender.cells);
|
|
92
|
+
deletedCellsToRender.cells.length = 0;
|
|
93
|
+
}
|
|
94
|
+
currentIndex = diff.modifiedCellIndex;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
if (deletedCellsToRender.cells.length) {
|
|
98
|
+
this._createWidget(deletedCellsToRender.index + 1, deletedCellsToRender.cells);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
clear() {
|
|
102
|
+
this.deletedCellInfos.clear();
|
|
103
|
+
this.zoneRemover.clear();
|
|
104
|
+
}
|
|
105
|
+
_createWidget(index, cells) {
|
|
106
|
+
this._createWidgetImpl(index, cells);
|
|
107
|
+
}
|
|
108
|
+
async _createWidgetImpl(index, cells) {
|
|
109
|
+
const rootContainer = createElement("div");
|
|
110
|
+
const widgets = [];
|
|
111
|
+
const heights = await Promise.all(( cells.map(async cell => {
|
|
112
|
+
const widget = ( new NotebookDeletedCellWidget(
|
|
113
|
+
this._notebookEditor,
|
|
114
|
+
this.toolbar,
|
|
115
|
+
cell.cell.getValue(),
|
|
116
|
+
cell.cell.language,
|
|
117
|
+
rootContainer,
|
|
118
|
+
cell.originalIndex,
|
|
119
|
+
this.languageService,
|
|
120
|
+
this.instantiationService
|
|
121
|
+
));
|
|
122
|
+
widgets.push(widget);
|
|
123
|
+
const height = await widget.render();
|
|
124
|
+
this.deletedCellInfos.set(cell.originalIndex, {
|
|
125
|
+
height,
|
|
126
|
+
previousIndex: cell.previousIndex,
|
|
127
|
+
offset: 0
|
|
128
|
+
});
|
|
129
|
+
return height;
|
|
130
|
+
})));
|
|
131
|
+
Array.from(( this.deletedCellInfos.keys())).sort((a, b) => a - b).forEach(originalIndex => {
|
|
132
|
+
const previousDeletedCell = this.deletedCellInfos.get(originalIndex - 1);
|
|
133
|
+
if (previousDeletedCell) {
|
|
134
|
+
const deletedCell = this.deletedCellInfos.get(originalIndex);
|
|
135
|
+
if (deletedCell) {
|
|
136
|
+
deletedCell.offset = previousDeletedCell.height + previousDeletedCell.offset;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
const totalHeight = heights.reduce((prev, curr) => prev + curr, 0);
|
|
141
|
+
this._notebookEditor.changeViewZones(accessor => {
|
|
142
|
+
const notebookViewZone = {
|
|
143
|
+
afterModelPosition: index,
|
|
144
|
+
heightInPx: totalHeight + 4,
|
|
145
|
+
domNode: rootContainer
|
|
146
|
+
};
|
|
147
|
+
const id = accessor.addZone(notebookViewZone);
|
|
148
|
+
accessor.layoutZone(id);
|
|
149
|
+
this.createdViewZones.set(index, id);
|
|
150
|
+
const deletedCellOverviewRulereDecorationIds = this._notebookEditor.deltaCellDecorations([], [{
|
|
151
|
+
viewZoneId: id,
|
|
152
|
+
options: {
|
|
153
|
+
overviewRuler: {
|
|
154
|
+
color: overviewRulerDeletedForeground,
|
|
155
|
+
position: NotebookOverviewRulerLane.Center
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}]);
|
|
159
|
+
this.zoneRemover.add(toDisposable(() => {
|
|
160
|
+
if (this.createdViewZones.get(index) === id) {
|
|
161
|
+
this.createdViewZones.delete(index);
|
|
162
|
+
}
|
|
163
|
+
if (!this._notebookEditor.isDisposed) {
|
|
164
|
+
this._notebookEditor.changeViewZones(accessor => {
|
|
165
|
+
accessor.removeZone(id);
|
|
166
|
+
dispose(widgets);
|
|
167
|
+
});
|
|
168
|
+
this._notebookEditor.deltaCellDecorations(deletedCellOverviewRulereDecorationIds, []);
|
|
169
|
+
}
|
|
170
|
+
}));
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
NotebookDeletedCellDecorator = ( __decorate([( __param(2, ILanguageService)), ( __param(3, IInstantiationService))], NotebookDeletedCellDecorator));
|
|
175
|
+
let NotebookDeletedCellWidget = class NotebookDeletedCellWidget extends Disposable {
|
|
176
|
+
constructor(
|
|
177
|
+
_notebookEditor,
|
|
178
|
+
_toolbarOptions,
|
|
179
|
+
code,
|
|
180
|
+
language,
|
|
181
|
+
container,
|
|
182
|
+
_originalIndex,
|
|
183
|
+
languageService,
|
|
184
|
+
instantiationService
|
|
185
|
+
) {
|
|
186
|
+
super();
|
|
187
|
+
this._notebookEditor = _notebookEditor;
|
|
188
|
+
this._toolbarOptions = _toolbarOptions;
|
|
189
|
+
this.code = code;
|
|
190
|
+
this.language = language;
|
|
191
|
+
this._originalIndex = _originalIndex;
|
|
192
|
+
this.languageService = languageService;
|
|
193
|
+
this.instantiationService = instantiationService;
|
|
194
|
+
this.container = append(container, createElement("div"));
|
|
195
|
+
this._register(toDisposable(() => {
|
|
196
|
+
container.removeChild(this.container);
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
async render() {
|
|
200
|
+
const code = this.code;
|
|
201
|
+
const languageId = this.language;
|
|
202
|
+
const codeHtml = await tokenizeToString(this.languageService, code, languageId);
|
|
203
|
+
const fontInfo = this._notebookEditor.getBaseCellEditorOptions(languageId).value;
|
|
204
|
+
const fontFamilyVar = "--notebook-editor-font-family";
|
|
205
|
+
const fontSizeVar = "--notebook-editor-font-size";
|
|
206
|
+
const fontWeightVar = "--notebook-editor-font-weight";
|
|
207
|
+
const editor = ( this._notebookEditor.codeEditors.map(c => c[1])).find(c => c);
|
|
208
|
+
const layoutInfo = editor?.getOptions().get(EditorOption.layoutInfo);
|
|
209
|
+
const style = `` + `font-family: var(${fontFamilyVar});` + `font-weight: var(${fontWeightVar});` + `font-size: var(${fontSizeVar});` + fontInfo.lineHeight ? `line-height: ${fontInfo.lineHeight}px;` : "" + layoutInfo?.contentLeft ? `margin-left: ${layoutInfo}px;` : "" + `white-space: pre;`;
|
|
210
|
+
const rootContainer = this.container;
|
|
211
|
+
rootContainer.classList.add("code-cell-row");
|
|
212
|
+
if (this._toolbarOptions) {
|
|
213
|
+
const toolbar = createElement("div");
|
|
214
|
+
toolbar.className = this._toolbarOptions.className;
|
|
215
|
+
rootContainer.appendChild(toolbar);
|
|
216
|
+
const scopedInstaService = this._register(this.instantiationService.createChild(( new ServiceCollection([IContextKeyService, this._notebookEditor.scopedContextKeyService]))));
|
|
217
|
+
const toolbarWidget = scopedInstaService.createInstance(MenuWorkbenchToolBar, toolbar, this._toolbarOptions.menuId, {
|
|
218
|
+
telemetrySource: this._toolbarOptions.telemetrySource,
|
|
219
|
+
hiddenItemStrategy: HiddenItemStrategy.NoHide,
|
|
220
|
+
toolbarOptions: {
|
|
221
|
+
primaryGroup: () => true
|
|
222
|
+
},
|
|
223
|
+
menuOptions: {
|
|
224
|
+
renderShortTitle: true,
|
|
225
|
+
arg: this._toolbarOptions.argFactory(this._originalIndex)
|
|
226
|
+
},
|
|
227
|
+
actionViewItemProvider: this._toolbarOptions.actionViewItemProvider
|
|
228
|
+
});
|
|
229
|
+
this._store.add(toolbarWidget);
|
|
230
|
+
toolbar.style.position = "absolute";
|
|
231
|
+
toolbar.style.right = "40px";
|
|
232
|
+
toolbar.style.zIndex = "10";
|
|
233
|
+
toolbar.classList.add("hover");
|
|
234
|
+
}
|
|
235
|
+
const container = append(rootContainer, $(".cell-inner-container"));
|
|
236
|
+
container.style.position = "relative";
|
|
237
|
+
const focusIndicatorLeft = append(container, $(
|
|
238
|
+
".cell-focus-indicator.cell-focus-indicator-side.cell-focus-indicator-left"
|
|
239
|
+
));
|
|
240
|
+
const cellContainer = append(container, $(".cell.code"));
|
|
241
|
+
append(focusIndicatorLeft, $("div.execution-count-label"));
|
|
242
|
+
const editorPart = append(cellContainer, $(".cell-editor-part"));
|
|
243
|
+
let editorContainer = append(editorPart, $(".cell-editor-container"));
|
|
244
|
+
editorContainer = append(editorContainer, $(".code", {
|
|
245
|
+
style
|
|
246
|
+
}));
|
|
247
|
+
if (fontInfo.fontFamily) {
|
|
248
|
+
editorContainer.style.setProperty(fontFamilyVar, fontInfo.fontFamily);
|
|
249
|
+
}
|
|
250
|
+
if (fontInfo.fontSize) {
|
|
251
|
+
editorContainer.style.setProperty(fontSizeVar, `${fontInfo.fontSize}px`);
|
|
252
|
+
}
|
|
253
|
+
if (fontInfo.fontWeight) {
|
|
254
|
+
editorContainer.style.setProperty(fontWeightVar, fontInfo.fontWeight);
|
|
255
|
+
}
|
|
256
|
+
editorContainer.innerHTML = (ttPolicy?.createHTML(codeHtml) || codeHtml);
|
|
257
|
+
const lineCount = splitLines(code).length;
|
|
258
|
+
const height = (lineCount * (fontInfo.lineHeight || DefaultLineHeight)) + 12 + 12;
|
|
259
|
+
const totalHeight = height + 16 + 16;
|
|
260
|
+
return totalHeight;
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
NotebookDeletedCellWidget = ( __decorate([( __param(6, ILanguageService)), ( __param(7, IInstantiationService))], NotebookDeletedCellWidget));
|
|
264
|
+
|
|
265
|
+
export { NotebookDeletedCellDecorator, NotebookDeletedCellWidget };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
2
|
+
import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
|
|
3
|
+
import { INotebookEditorWorkerService } from "../../../common/services/notebookWorkerService.service.js";
|
|
4
|
+
import { INotebookEditorContribution, INotebookEditor } from "../../notebookBrowser.js";
|
|
5
|
+
import { INotebookLoggingService } from "../../../common/notebookLoggingService.service.js";
|
|
6
|
+
export declare class NotebookInlineDiffDecorationContribution extends Disposable implements INotebookEditorContribution {
|
|
7
|
+
private readonly notebookEditor;
|
|
8
|
+
private readonly notebookEditorWorkerService;
|
|
9
|
+
private readonly instantiationService;
|
|
10
|
+
private readonly logService;
|
|
11
|
+
static ID: string;
|
|
12
|
+
private previous?;
|
|
13
|
+
private insertedCellDecorator;
|
|
14
|
+
private deletedCellDecorator;
|
|
15
|
+
private readonly cellDecorators;
|
|
16
|
+
private cachedNotebookDiff?;
|
|
17
|
+
private listeners;
|
|
18
|
+
constructor(notebookEditor: INotebookEditor, notebookEditorWorkerService: INotebookEditorWorkerService, instantiationService: IInstantiationService, logService: INotebookLoggingService);
|
|
19
|
+
private clear;
|
|
20
|
+
dispose(): void;
|
|
21
|
+
private initialize;
|
|
22
|
+
private _update;
|
|
23
|
+
private updateCells;
|
|
24
|
+
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { Event } from '../../../../../../base/common/event.js';
|
|
4
|
+
import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
5
|
+
import '../../../../../../base/common/observableInternal/index.js';
|
|
6
|
+
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
7
|
+
import { INotebookEditorWorkerService } from '../../../common/services/notebookWorkerService.service.js';
|
|
8
|
+
import { registerNotebookContribution } from '../../notebookEditorExtensions.js';
|
|
9
|
+
import { NotebookCellDiffDecorator } from './notebookCellDiffDecorator.js';
|
|
10
|
+
import { NotebookDeletedCellDecorator } from './notebookDeletedCellDecorator.js';
|
|
11
|
+
import { NotebookInsertedCellDecorator } from './notebookInsertedCellDecorator.js';
|
|
12
|
+
import { INotebookLoggingService } from '../../../common/notebookLoggingService.service.js';
|
|
13
|
+
import { computeDiff } from '../../../common/notebookDiff.js';
|
|
14
|
+
import '../../../../../../platform/instantiation/common/extensions.js';
|
|
15
|
+
import './notebookOriginalModelRefFactory.js';
|
|
16
|
+
import './notebookOriginalCellModelFactory.js';
|
|
17
|
+
import { autorun } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
18
|
+
|
|
19
|
+
let NotebookInlineDiffDecorationContribution = class NotebookInlineDiffDecorationContribution extends Disposable {
|
|
20
|
+
static {
|
|
21
|
+
this.ID = "workbench.notebook.inlineDiffDecoration";
|
|
22
|
+
}
|
|
23
|
+
constructor(
|
|
24
|
+
notebookEditor,
|
|
25
|
+
notebookEditorWorkerService,
|
|
26
|
+
instantiationService,
|
|
27
|
+
logService
|
|
28
|
+
) {
|
|
29
|
+
super();
|
|
30
|
+
this.notebookEditor = notebookEditor;
|
|
31
|
+
this.notebookEditorWorkerService = notebookEditorWorkerService;
|
|
32
|
+
this.instantiationService = instantiationService;
|
|
33
|
+
this.logService = logService;
|
|
34
|
+
this.cellDecorators = ( new Map());
|
|
35
|
+
this.listeners = [];
|
|
36
|
+
this.logService.debug("inlineDiff", "Watching for previous model");
|
|
37
|
+
this._register(autorun(reader => {
|
|
38
|
+
this.previous = this.notebookEditor.notebookOptions.previousModelToCompare.read(reader);
|
|
39
|
+
if (this.previous) {
|
|
40
|
+
this.logService.debug("inlineDiff", "Previous model set");
|
|
41
|
+
if (this.notebookEditor.hasModel()) {
|
|
42
|
+
this.initialize();
|
|
43
|
+
} else {
|
|
44
|
+
this.logService.debug("inlineDiff", "Waiting for model to attach");
|
|
45
|
+
this.listeners.push(
|
|
46
|
+
Event.once(this.notebookEditor.onDidAttachViewModel)(() => this.initialize())
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
clear() {
|
|
53
|
+
this.listeners.forEach(l => l.dispose());
|
|
54
|
+
this.cellDecorators.forEach((v, cell) => {
|
|
55
|
+
v.dispose();
|
|
56
|
+
this.cellDecorators.delete(cell);
|
|
57
|
+
});
|
|
58
|
+
this.insertedCellDecorator?.dispose();
|
|
59
|
+
this.deletedCellDecorator?.dispose();
|
|
60
|
+
this.cachedNotebookDiff = undefined;
|
|
61
|
+
this.listeners = [];
|
|
62
|
+
this.logService.debug("inlineDiff", "Cleared decorations and listeners");
|
|
63
|
+
}
|
|
64
|
+
dispose() {
|
|
65
|
+
this.logService.debug("inlineDiff", "Disposing");
|
|
66
|
+
this.clear();
|
|
67
|
+
super.dispose();
|
|
68
|
+
}
|
|
69
|
+
initialize() {
|
|
70
|
+
this.clear();
|
|
71
|
+
if (!this.previous) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.insertedCellDecorator = this.instantiationService.createInstance(NotebookInsertedCellDecorator, this.notebookEditor);
|
|
75
|
+
this.deletedCellDecorator = this.instantiationService.createInstance(NotebookDeletedCellDecorator, this.notebookEditor, undefined);
|
|
76
|
+
this._update();
|
|
77
|
+
const onVisibleChange = Event.debounce(
|
|
78
|
+
this.notebookEditor.onDidChangeVisibleRanges,
|
|
79
|
+
e => e,
|
|
80
|
+
100,
|
|
81
|
+
undefined,
|
|
82
|
+
undefined,
|
|
83
|
+
undefined,
|
|
84
|
+
this._store
|
|
85
|
+
);
|
|
86
|
+
this.listeners.push(onVisibleChange(() => this._update()));
|
|
87
|
+
this.listeners.push(this.notebookEditor.onDidChangeModel(() => this._update()));
|
|
88
|
+
if (this.notebookEditor.textModel) {
|
|
89
|
+
const onContentChange = Event.debounce(
|
|
90
|
+
this.notebookEditor.textModel.onDidChangeContent,
|
|
91
|
+
(_, event) => event,
|
|
92
|
+
100,
|
|
93
|
+
undefined,
|
|
94
|
+
undefined,
|
|
95
|
+
undefined,
|
|
96
|
+
this._store
|
|
97
|
+
);
|
|
98
|
+
const onOriginalContentChange = Event.debounce(
|
|
99
|
+
this.previous.onDidChangeContent,
|
|
100
|
+
(_, event) => event,
|
|
101
|
+
100,
|
|
102
|
+
undefined,
|
|
103
|
+
undefined,
|
|
104
|
+
undefined,
|
|
105
|
+
this._store
|
|
106
|
+
);
|
|
107
|
+
this.listeners.push(onContentChange(() => this._update()));
|
|
108
|
+
this.listeners.push(onOriginalContentChange(() => this._update()));
|
|
109
|
+
}
|
|
110
|
+
this.logService.debug("inlineDiff", "Initialized");
|
|
111
|
+
}
|
|
112
|
+
async _update() {
|
|
113
|
+
const current = this.notebookEditor.getViewModel()?.notebookDocument;
|
|
114
|
+
if (!this.previous || !current) {
|
|
115
|
+
this.logService.debug("inlineDiff", "Update skipped - no original or current document");
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (!this.cachedNotebookDiff || this.cachedNotebookDiff.originalVersion !== this.previous.versionId || this.cachedNotebookDiff.version !== current.versionId) {
|
|
119
|
+
let diffInfo = {
|
|
120
|
+
cellDiffInfo: []
|
|
121
|
+
};
|
|
122
|
+
try {
|
|
123
|
+
const notebookDiff = await this.notebookEditorWorkerService.computeDiff(this.previous.uri, current.uri);
|
|
124
|
+
diffInfo = computeDiff(this.previous, current, notebookDiff);
|
|
125
|
+
} catch (e) {
|
|
126
|
+
this.logService.error("inlineDiff", "Error computing diff:\n" + e);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
this.cachedNotebookDiff = {
|
|
130
|
+
cellDiffInfo: diffInfo.cellDiffInfo,
|
|
131
|
+
originalVersion: this.previous.versionId,
|
|
132
|
+
version: current.versionId
|
|
133
|
+
};
|
|
134
|
+
this.insertedCellDecorator?.apply(diffInfo.cellDiffInfo);
|
|
135
|
+
this.deletedCellDecorator?.apply(diffInfo.cellDiffInfo, this.previous);
|
|
136
|
+
}
|
|
137
|
+
await this.updateCells(this.previous, current, this.cachedNotebookDiff.cellDiffInfo);
|
|
138
|
+
}
|
|
139
|
+
async updateCells(original, modified, cellDiffs) {
|
|
140
|
+
const validDiffDecorators = ( new Set());
|
|
141
|
+
cellDiffs.forEach(diff => {
|
|
142
|
+
if (diff.type === "modified") {
|
|
143
|
+
const modifiedCell = modified.cells[diff.modifiedCellIndex];
|
|
144
|
+
const originalCell = original.cells[diff.originalCellIndex];
|
|
145
|
+
const editor = this.notebookEditor.codeEditors.find(([vm]) => vm.handle === modifiedCell.handle)?.[1];
|
|
146
|
+
if (editor) {
|
|
147
|
+
const currentDecorator = this.cellDecorators.get(modifiedCell);
|
|
148
|
+
if ((currentDecorator?.modifiedCell !== modifiedCell || currentDecorator?.originalCell !== originalCell)) {
|
|
149
|
+
currentDecorator?.dispose();
|
|
150
|
+
const decorator = this.instantiationService.createInstance(
|
|
151
|
+
NotebookCellDiffDecorator,
|
|
152
|
+
this.notebookEditor,
|
|
153
|
+
modifiedCell,
|
|
154
|
+
originalCell,
|
|
155
|
+
editor
|
|
156
|
+
);
|
|
157
|
+
this.cellDecorators.set(modifiedCell, decorator);
|
|
158
|
+
validDiffDecorators.add(decorator);
|
|
159
|
+
this._register(editor.onDidDispose(() => {
|
|
160
|
+
decorator.dispose();
|
|
161
|
+
if (this.cellDecorators.get(modifiedCell) === decorator) {
|
|
162
|
+
this.cellDecorators.delete(modifiedCell);
|
|
163
|
+
}
|
|
164
|
+
}));
|
|
165
|
+
} else if (currentDecorator) {
|
|
166
|
+
validDiffDecorators.add(currentDecorator);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
this.cellDecorators.forEach((v, cell) => {
|
|
172
|
+
if (!( validDiffDecorators.has(v))) {
|
|
173
|
+
v.dispose();
|
|
174
|
+
this.cellDecorators.delete(cell);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
NotebookInlineDiffDecorationContribution = ( __decorate([( __param(1, INotebookEditorWorkerService)), ( __param(2, IInstantiationService)), ( __param(3, INotebookLoggingService))], NotebookInlineDiffDecorationContribution));
|
|
180
|
+
registerNotebookContribution(
|
|
181
|
+
NotebookInlineDiffDecorationContribution.ID,
|
|
182
|
+
NotebookInlineDiffDecorationContribution
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
export { NotebookInlineDiffDecorationContribution };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as DOM from "../../../../../../base/browser/dom.js";
|
|
2
|
+
import { CodeWindow } from "../../../../../../base/browser/window.js";
|
|
3
|
+
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
4
|
+
import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
|
|
5
|
+
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
6
|
+
import { NotebookDiffEditorInput } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/notebookDiffEditorInput";
|
|
7
|
+
import { INotebookEditorOptions } from "../../notebookBrowser.js";
|
|
8
|
+
import { NotebookEditorWidget } from "../../notebookEditorWidget.js";
|
|
9
|
+
import { NotebookOptions } from "../../notebookOptions.js";
|
|
10
|
+
import { INotebookEditorService } from "../../services/notebookEditorService.service.js";
|
|
11
|
+
export declare class NotebookInlineDiffWidget extends Disposable {
|
|
12
|
+
private readonly rootElement;
|
|
13
|
+
private readonly groupId;
|
|
14
|
+
private readonly window;
|
|
15
|
+
private readonly options;
|
|
16
|
+
private dimension;
|
|
17
|
+
private readonly instantiationService;
|
|
18
|
+
private readonly widgetService;
|
|
19
|
+
private widget;
|
|
20
|
+
private position;
|
|
21
|
+
get editorWidget(): NotebookEditorWidget | undefined;
|
|
22
|
+
constructor(rootElement: HTMLElement, groupId: number, window: CodeWindow, options: NotebookOptions, dimension: DOM.Dimension | undefined, instantiationService: IInstantiationService, widgetService: INotebookEditorService);
|
|
23
|
+
show(input: NotebookDiffEditorInput, model: NotebookTextModel | undefined, previousModel: NotebookTextModel | undefined, options: INotebookEditorOptions | undefined): Promise<void>;
|
|
24
|
+
hide(): void;
|
|
25
|
+
setLayout(dimension: DOM.Dimension, position: DOM.IDomPosition): void;
|
|
26
|
+
private createNotebookWidget;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { setParentFlowTo } from '../../../../../../base/browser/dom.js';
|
|
4
|
+
import { Disposable } from '../../../../../../base/common/lifecycle.js';
|
|
5
|
+
import { EditorExtensionsRegistry } from '../../../../../../editor/browser/editorExtensions.js';
|
|
6
|
+
import { MenuId } from '../../../../../../platform/actions/common/actions.js';
|
|
7
|
+
import { IInstantiationService } from '../../../../../../platform/instantiation/common/instantiation.js';
|
|
8
|
+
import { NotebookInlineDiffDecorationContribution } from './notebookInlineDiff.js';
|
|
9
|
+
import { NotebookEditorExtensionsRegistry } from '../../notebookEditorExtensions.js';
|
|
10
|
+
import { INotebookEditorService } from '../../services/notebookEditorService.service.js';
|
|
11
|
+
|
|
12
|
+
let NotebookInlineDiffWidget = class NotebookInlineDiffWidget extends Disposable {
|
|
13
|
+
get editorWidget() {
|
|
14
|
+
return this.widget.value;
|
|
15
|
+
}
|
|
16
|
+
constructor(
|
|
17
|
+
rootElement,
|
|
18
|
+
groupId,
|
|
19
|
+
window,
|
|
20
|
+
options,
|
|
21
|
+
dimension,
|
|
22
|
+
instantiationService,
|
|
23
|
+
widgetService
|
|
24
|
+
) {
|
|
25
|
+
super();
|
|
26
|
+
this.rootElement = rootElement;
|
|
27
|
+
this.groupId = groupId;
|
|
28
|
+
this.window = window;
|
|
29
|
+
this.options = options;
|
|
30
|
+
this.dimension = dimension;
|
|
31
|
+
this.instantiationService = instantiationService;
|
|
32
|
+
this.widgetService = widgetService;
|
|
33
|
+
this.widget = {
|
|
34
|
+
value: undefined
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
async show(input, model, previousModel, options) {
|
|
38
|
+
if (!this.widget.value) {
|
|
39
|
+
this.createNotebookWidget(input, this.groupId, this.rootElement);
|
|
40
|
+
}
|
|
41
|
+
if (this.dimension) {
|
|
42
|
+
this.widget.value?.layout(this.dimension, this.rootElement, this.position);
|
|
43
|
+
}
|
|
44
|
+
if (model) {
|
|
45
|
+
await this.widget.value?.setOptions({
|
|
46
|
+
...options
|
|
47
|
+
});
|
|
48
|
+
this.widget.value?.notebookOptions.previousModelToCompare.set(previousModel, undefined);
|
|
49
|
+
await this.widget.value.setModel(model, options?.viewState);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
hide() {
|
|
53
|
+
if (this.widget.value) {
|
|
54
|
+
this.widget.value.notebookOptions.previousModelToCompare.set(undefined, undefined);
|
|
55
|
+
this.widget.value.onWillHide();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
setLayout(dimension, position) {
|
|
59
|
+
this.dimension = dimension;
|
|
60
|
+
this.position = position;
|
|
61
|
+
}
|
|
62
|
+
createNotebookWidget(input, groupId, rootElement) {
|
|
63
|
+
const contributions = NotebookEditorExtensionsRegistry.getSomeEditorContributions([NotebookInlineDiffDecorationContribution.ID]);
|
|
64
|
+
const menuIds = {
|
|
65
|
+
notebookToolbar: MenuId.NotebookToolbar,
|
|
66
|
+
cellTitleToolbar: MenuId.NotebookCellTitle,
|
|
67
|
+
cellDeleteToolbar: MenuId.NotebookCellDelete,
|
|
68
|
+
cellInsertToolbar: MenuId.NotebookCellBetween,
|
|
69
|
+
cellTopInsertToolbar: MenuId.NotebookCellListTop,
|
|
70
|
+
cellExecuteToolbar: MenuId.NotebookCellExecute,
|
|
71
|
+
cellExecutePrimary: undefined
|
|
72
|
+
};
|
|
73
|
+
const skipContributions = [
|
|
74
|
+
"editor.contrib.review",
|
|
75
|
+
"editor.contrib.floatingClickMenu",
|
|
76
|
+
"editor.contrib.dirtydiff",
|
|
77
|
+
"editor.contrib.testingOutputPeek",
|
|
78
|
+
"editor.contrib.testingDecorations",
|
|
79
|
+
"store.contrib.stickyScrollController",
|
|
80
|
+
"editor.contrib.findController",
|
|
81
|
+
"editor.contrib.emptyTextEditorHint"
|
|
82
|
+
];
|
|
83
|
+
const cellEditorContributions = EditorExtensionsRegistry.getEditorContributions().filter(c => skipContributions.indexOf(c.id) === -1);
|
|
84
|
+
this.widget = this.instantiationService.invokeFunction(this.widgetService.retrieveWidget, groupId, input, {
|
|
85
|
+
contributions,
|
|
86
|
+
menuIds,
|
|
87
|
+
cellEditorContributions,
|
|
88
|
+
options: this.options
|
|
89
|
+
}, this.dimension, this.window);
|
|
90
|
+
if (this.rootElement && this.widget.value.getDomNode()) {
|
|
91
|
+
this.rootElement.setAttribute("aria-flowto", this.widget.value.getDomNode().id || "");
|
|
92
|
+
setParentFlowTo(this.widget.value.getDomNode(), this.rootElement);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
dispose() {
|
|
96
|
+
super.dispose();
|
|
97
|
+
if (this.widget.value) {
|
|
98
|
+
this.widget.value.dispose();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
NotebookInlineDiffWidget = ( __decorate([( __param(5, IInstantiationService)), ( __param(6, INotebookEditorService))], NotebookInlineDiffWidget));
|
|
103
|
+
|
|
104
|
+
export { NotebookInlineDiffWidget };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Disposable } from "../../../../../../base/common/lifecycle.js";
|
|
2
|
+
import { CellDiffInfo } from "../notebookDiffViewModel.js";
|
|
3
|
+
import { INotebookEditor } from "../../notebookBrowser.js";
|
|
4
|
+
export declare class NotebookInsertedCellDecorator extends Disposable {
|
|
5
|
+
private readonly notebookEditor;
|
|
6
|
+
private readonly decorators;
|
|
7
|
+
constructor(notebookEditor: INotebookEditor);
|
|
8
|
+
apply(diffInfo: CellDiffInfo[]): void;
|
|
9
|
+
clear(): void;
|
|
10
|
+
}
|