@codingame/monaco-vscode-api 32.0.1 → 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,41 @@
|
|
|
1
|
+
import { Emitter } from "../../../../../base/common/event.js";
|
|
2
|
+
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
3
|
+
import { PrefixSumComputer } from "../../../../../editor/common/model/prefixSumComputer.js";
|
|
4
|
+
import { IDiffNestedCellViewModel } from "./notebookDiffEditorBrowser.js";
|
|
5
|
+
import { ICellOutputViewModel, IGenericCellViewModel } from "../notebookBrowser.js";
|
|
6
|
+
import { CellViewModelStateChangeEvent } from "../notebookViewEvents.js";
|
|
7
|
+
import { NotebookCellTextModel } from "../../common/model/notebookCellTextModel.js";
|
|
8
|
+
import { INotebookService } from "../../common/notebookService.service.js";
|
|
9
|
+
export declare class DiffNestedCellViewModel extends Disposable implements IDiffNestedCellViewModel, IGenericCellViewModel {
|
|
10
|
+
readonly textModel: NotebookCellTextModel;
|
|
11
|
+
private _notebookService;
|
|
12
|
+
private _id;
|
|
13
|
+
get id(): string;
|
|
14
|
+
get outputs(): import("../../common/notebookCommon.js").ICellOutput[];
|
|
15
|
+
get language(): string;
|
|
16
|
+
get metadata(): import("../../common/notebookCommon.js").NotebookCellMetadata;
|
|
17
|
+
get uri(): import("../../../../../base/common/uri.js").URI;
|
|
18
|
+
get handle(): number;
|
|
19
|
+
protected readonly _onDidChangeState: Emitter<CellViewModelStateChangeEvent>;
|
|
20
|
+
private _hoveringOutput;
|
|
21
|
+
get outputIsHovered(): boolean;
|
|
22
|
+
set outputIsHovered(v: boolean);
|
|
23
|
+
private _focusOnOutput;
|
|
24
|
+
get outputIsFocused(): boolean;
|
|
25
|
+
set outputIsFocused(v: boolean);
|
|
26
|
+
private _focusInputInOutput;
|
|
27
|
+
get inputInOutputIsFocused(): boolean;
|
|
28
|
+
set inputInOutputIsFocused(v: boolean);
|
|
29
|
+
private _outputViewModels;
|
|
30
|
+
get outputsViewModels(): ICellOutputViewModel[];
|
|
31
|
+
protected _outputCollection: number[];
|
|
32
|
+
protected _outputsTop: PrefixSumComputer | null;
|
|
33
|
+
protected readonly _onDidChangeOutputLayout: Emitter<void>;
|
|
34
|
+
readonly onDidChangeOutputLayout: import("../../../../../base/common/event.js").Event<void>;
|
|
35
|
+
constructor(textModel: NotebookCellTextModel, _notebookService: INotebookService);
|
|
36
|
+
private _ensureOutputsTop;
|
|
37
|
+
getOutputOffset(index: number): number;
|
|
38
|
+
updateOutputHeight(index: number, height: number): void;
|
|
39
|
+
getOutputTotalHeight(): number;
|
|
40
|
+
dispose(): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { Emitter } from '../../../../../base/common/event.js';
|
|
4
|
+
import { Disposable } from '../../../../../base/common/lifecycle.js';
|
|
5
|
+
import { generateUuid } from '../../../../../base/common/uuid.js';
|
|
6
|
+
import { PrefixSumComputer } from '../../../../../editor/common/model/prefixSumComputer.js';
|
|
7
|
+
import { CellOutputViewModel } from '../viewModel/cellOutputViewModel.js';
|
|
8
|
+
import { INotebookService } from '../../common/notebookService.service.js';
|
|
9
|
+
|
|
10
|
+
let DiffNestedCellViewModel = class DiffNestedCellViewModel extends Disposable {
|
|
11
|
+
get id() {
|
|
12
|
+
return this._id;
|
|
13
|
+
}
|
|
14
|
+
get outputs() {
|
|
15
|
+
return this.textModel.outputs;
|
|
16
|
+
}
|
|
17
|
+
get language() {
|
|
18
|
+
return this.textModel.language;
|
|
19
|
+
}
|
|
20
|
+
get metadata() {
|
|
21
|
+
return this.textModel.metadata;
|
|
22
|
+
}
|
|
23
|
+
get uri() {
|
|
24
|
+
return this.textModel.uri;
|
|
25
|
+
}
|
|
26
|
+
get handle() {
|
|
27
|
+
return this.textModel.handle;
|
|
28
|
+
}
|
|
29
|
+
get outputIsHovered() {
|
|
30
|
+
return this._hoveringOutput;
|
|
31
|
+
}
|
|
32
|
+
set outputIsHovered(v) {
|
|
33
|
+
this._hoveringOutput = v;
|
|
34
|
+
this._onDidChangeState.fire({
|
|
35
|
+
outputIsHoveredChanged: true
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
get outputIsFocused() {
|
|
39
|
+
return this._focusOnOutput;
|
|
40
|
+
}
|
|
41
|
+
set outputIsFocused(v) {
|
|
42
|
+
this._focusOnOutput = v;
|
|
43
|
+
this._onDidChangeState.fire({
|
|
44
|
+
outputIsFocusedChanged: true
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
get inputInOutputIsFocused() {
|
|
48
|
+
return this._focusInputInOutput;
|
|
49
|
+
}
|
|
50
|
+
set inputInOutputIsFocused(v) {
|
|
51
|
+
this._focusInputInOutput = v;
|
|
52
|
+
}
|
|
53
|
+
get outputsViewModels() {
|
|
54
|
+
return this._outputViewModels;
|
|
55
|
+
}
|
|
56
|
+
constructor(textModel, _notebookService) {
|
|
57
|
+
super();
|
|
58
|
+
this.textModel = textModel;
|
|
59
|
+
this._notebookService = _notebookService;
|
|
60
|
+
this._onDidChangeState = this._register(( new Emitter()));
|
|
61
|
+
this._hoveringOutput = false;
|
|
62
|
+
this._focusOnOutput = false;
|
|
63
|
+
this._focusInputInOutput = false;
|
|
64
|
+
this._outputCollection = [];
|
|
65
|
+
this._outputsTop = null;
|
|
66
|
+
this._onDidChangeOutputLayout = this._register(( new Emitter()));
|
|
67
|
+
this.onDidChangeOutputLayout = this._onDidChangeOutputLayout.event;
|
|
68
|
+
this._id = generateUuid();
|
|
69
|
+
this._outputViewModels = ( this.textModel.outputs.map(output => ( new CellOutputViewModel(this, output, this._notebookService))));
|
|
70
|
+
this._register(this.textModel.onDidChangeOutputs(splice => {
|
|
71
|
+
this._outputCollection.splice(splice.start, splice.deleteCount, ...( splice.newOutputs.map(() => 0)));
|
|
72
|
+
const removed = this._outputViewModels.splice(splice.start, splice.deleteCount, ...( splice.newOutputs.map(output => ( new CellOutputViewModel(this, output, this._notebookService)))));
|
|
73
|
+
removed.forEach(vm => vm.dispose());
|
|
74
|
+
this._outputsTop = null;
|
|
75
|
+
this._onDidChangeOutputLayout.fire();
|
|
76
|
+
}));
|
|
77
|
+
this._outputCollection = ( new Array(this.textModel.outputs.length));
|
|
78
|
+
}
|
|
79
|
+
_ensureOutputsTop() {
|
|
80
|
+
if (!this._outputsTop) {
|
|
81
|
+
const values = ( new Uint32Array(this._outputCollection.length));
|
|
82
|
+
for (let i = 0; i < this._outputCollection.length; i++) {
|
|
83
|
+
values[i] = this._outputCollection[i];
|
|
84
|
+
}
|
|
85
|
+
this._outputsTop = ( new PrefixSumComputer(values));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
getOutputOffset(index) {
|
|
89
|
+
this._ensureOutputsTop();
|
|
90
|
+
if (index >= this._outputCollection.length) {
|
|
91
|
+
throw ( new Error("Output index out of range!"));
|
|
92
|
+
}
|
|
93
|
+
return this._outputsTop.getPrefixSum(index - 1);
|
|
94
|
+
}
|
|
95
|
+
updateOutputHeight(index, height) {
|
|
96
|
+
if (index >= this._outputCollection.length) {
|
|
97
|
+
throw ( new Error("Output index out of range!"));
|
|
98
|
+
}
|
|
99
|
+
this._ensureOutputsTop();
|
|
100
|
+
this._outputCollection[index] = height;
|
|
101
|
+
if (this._outputsTop.setValue(index, height)) {
|
|
102
|
+
this._onDidChangeOutputLayout.fire();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
getOutputTotalHeight() {
|
|
106
|
+
this._ensureOutputsTop();
|
|
107
|
+
return this._outputsTop?.getTotalSum() ?? 0;
|
|
108
|
+
}
|
|
109
|
+
dispose() {
|
|
110
|
+
super.dispose();
|
|
111
|
+
this._outputViewModels.forEach(output => {
|
|
112
|
+
output.dispose();
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
DiffNestedCellViewModel = ( __decorate([( __param(1, INotebookService))], DiffNestedCellViewModel));
|
|
117
|
+
|
|
118
|
+
export { DiffNestedCellViewModel };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { URI } from "../../../../../base/common/uri.js";
|
|
2
|
+
import { IEditorWorkerService } from "../../../../../editor/common/services/editorWorker.service.js";
|
|
3
|
+
import { ITextModelService } from "../../../../../editor/common/services/resolverService.service.js";
|
|
4
|
+
import { IConfigurationService } from "../../../../../platform/configuration/common/configuration.service.js";
|
|
5
|
+
export interface IDiffEditorHeightCalculatorService {
|
|
6
|
+
diffAndComputeHeight(original: URI, modified: URI): Promise<number>;
|
|
7
|
+
computeHeightFromLines(lineCount: number): number;
|
|
8
|
+
}
|
|
9
|
+
export declare class DiffEditorHeightCalculatorService {
|
|
10
|
+
private readonly lineHeight;
|
|
11
|
+
private readonly textModelResolverService;
|
|
12
|
+
private readonly editorWorkerService;
|
|
13
|
+
private readonly configurationService;
|
|
14
|
+
constructor(lineHeight: number, textModelResolverService: ITextModelService, editorWorkerService: IEditorWorkerService, configurationService: IConfigurationService);
|
|
15
|
+
diffAndComputeHeight(original: URI, modified: URI): Promise<number>;
|
|
16
|
+
computeHeightFromLines(lineCount: number): number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { UnchangedRegion } from '../../../../../editor/browser/widget/diffEditor/diffEditorViewModel.js';
|
|
4
|
+
import { IEditorWorkerService } from '../../../../../editor/common/services/editorWorker.service.js';
|
|
5
|
+
import { ITextModelService } from '../../../../../editor/common/services/resolverService.service.js';
|
|
6
|
+
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.service.js';
|
|
7
|
+
import { getEditorPadding } from './diffCellEditorOptions.js';
|
|
8
|
+
import { HeightOfHiddenLinesRegionInDiffEditor } from './diffElementViewModel.js';
|
|
9
|
+
|
|
10
|
+
let DiffEditorHeightCalculatorService = class DiffEditorHeightCalculatorService {
|
|
11
|
+
constructor(
|
|
12
|
+
lineHeight,
|
|
13
|
+
textModelResolverService,
|
|
14
|
+
editorWorkerService,
|
|
15
|
+
configurationService
|
|
16
|
+
) {
|
|
17
|
+
this.lineHeight = lineHeight;
|
|
18
|
+
this.textModelResolverService = textModelResolverService;
|
|
19
|
+
this.editorWorkerService = editorWorkerService;
|
|
20
|
+
this.configurationService = configurationService;
|
|
21
|
+
}
|
|
22
|
+
async diffAndComputeHeight(original, modified) {
|
|
23
|
+
const [originalModel, modifiedModel] = await Promise.all([
|
|
24
|
+
this.textModelResolverService.createModelReference(original),
|
|
25
|
+
this.textModelResolverService.createModelReference(modified)
|
|
26
|
+
]);
|
|
27
|
+
try {
|
|
28
|
+
const diffChanges = await this.editorWorkerService.computeDiff(original, modified, {
|
|
29
|
+
ignoreTrimWhitespace: true,
|
|
30
|
+
maxComputationTimeMs: 0,
|
|
31
|
+
computeMoves: false
|
|
32
|
+
}, "advanced").then(diff => diff?.changes || []);
|
|
33
|
+
const unchangedRegionFeatureEnabled = this.configurationService.getValue("diffEditor.hideUnchangedRegions.enabled");
|
|
34
|
+
const minimumLineCount = this.configurationService.getValue("diffEditor.hideUnchangedRegions.minimumLineCount");
|
|
35
|
+
const contextLineCount = this.configurationService.getValue("diffEditor.hideUnchangedRegions.contextLineCount");
|
|
36
|
+
const originalLineCount = originalModel.object.textEditorModel.getLineCount();
|
|
37
|
+
const modifiedLineCount = modifiedModel.object.textEditorModel.getLineCount();
|
|
38
|
+
const unchanged = unchangedRegionFeatureEnabled ? UnchangedRegion.fromDiffs(
|
|
39
|
+
diffChanges,
|
|
40
|
+
originalLineCount,
|
|
41
|
+
modifiedLineCount,
|
|
42
|
+
minimumLineCount ?? 3,
|
|
43
|
+
contextLineCount ?? 3
|
|
44
|
+
) : [];
|
|
45
|
+
const numberOfNewLines = diffChanges.reduce((prev, curr) => {
|
|
46
|
+
if (curr.original.isEmpty && !curr.modified.isEmpty) {
|
|
47
|
+
return prev + curr.modified.length;
|
|
48
|
+
}
|
|
49
|
+
if (!curr.original.isEmpty && !curr.modified.isEmpty && curr.modified.length > curr.original.length) {
|
|
50
|
+
return prev + curr.modified.length - curr.original.length;
|
|
51
|
+
}
|
|
52
|
+
return prev;
|
|
53
|
+
}, 0);
|
|
54
|
+
const orginalNumberOfLines = originalModel.object.textEditorModel.getLineCount();
|
|
55
|
+
const numberOfHiddenLines = unchanged.reduce((prev, curr) => prev + curr.lineCount, 0);
|
|
56
|
+
const numberOfHiddenSections = unchanged.length;
|
|
57
|
+
const unchangeRegionsHeight = numberOfHiddenSections * HeightOfHiddenLinesRegionInDiffEditor;
|
|
58
|
+
const visibleLineCount = orginalNumberOfLines + numberOfNewLines - numberOfHiddenLines;
|
|
59
|
+
return (visibleLineCount * this.lineHeight) + getEditorPadding(visibleLineCount).top + getEditorPadding(visibleLineCount).bottom + unchangeRegionsHeight;
|
|
60
|
+
} finally {
|
|
61
|
+
originalModel.dispose();
|
|
62
|
+
modifiedModel.dispose();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
computeHeightFromLines(lineCount) {
|
|
66
|
+
return lineCount * this.lineHeight + getEditorPadding(lineCount).top + getEditorPadding(lineCount).bottom;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
DiffEditorHeightCalculatorService = ( __decorate([( __param(1, ITextModelService)), ( __param(2, IEditorWorkerService)), ( __param(3, IConfigurationService))], DiffEditorHeightCalculatorService));
|
|
70
|
+
|
|
71
|
+
export { DiffEditorHeightCalculatorService };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Emitter } from "../../../../../base/common/event.js";
|
|
2
|
+
import { Disposable } from "../../../../../base/common/lifecycle.js";
|
|
3
|
+
import { IDiffElementLayoutInfo } from "./notebookDiffEditorBrowser.js";
|
|
4
|
+
import { NotebookLayoutChangeEvent, NotebookLayoutInfo } from "../notebookViewEvents.js";
|
|
5
|
+
export declare enum NotebookDiffViewEventType {
|
|
6
|
+
LayoutChanged = 1,
|
|
7
|
+
CellLayoutChanged = 2
|
|
8
|
+
}
|
|
9
|
+
export declare class NotebookDiffLayoutChangedEvent {
|
|
10
|
+
readonly source: NotebookLayoutChangeEvent;
|
|
11
|
+
readonly value: NotebookLayoutInfo;
|
|
12
|
+
readonly type = NotebookDiffViewEventType.LayoutChanged;
|
|
13
|
+
constructor(source: NotebookLayoutChangeEvent, value: NotebookLayoutInfo);
|
|
14
|
+
}
|
|
15
|
+
export declare class NotebookCellLayoutChangedEvent {
|
|
16
|
+
readonly source: IDiffElementLayoutInfo;
|
|
17
|
+
readonly type = NotebookDiffViewEventType.CellLayoutChanged;
|
|
18
|
+
constructor(source: IDiffElementLayoutInfo);
|
|
19
|
+
}
|
|
20
|
+
export type NotebookDiffViewEvent = NotebookDiffLayoutChangedEvent | NotebookCellLayoutChangedEvent;
|
|
21
|
+
export declare class NotebookDiffEditorEventDispatcher extends Disposable {
|
|
22
|
+
protected readonly _onDidChangeLayout: Emitter<NotebookDiffLayoutChangedEvent>;
|
|
23
|
+
readonly onDidChangeLayout: import("../../../../../base/common/event.js").Event<NotebookDiffLayoutChangedEvent>;
|
|
24
|
+
protected readonly _onDidChangeCellLayout: Emitter<NotebookCellLayoutChangedEvent>;
|
|
25
|
+
readonly onDidChangeCellLayout: import("../../../../../base/common/event.js").Event<NotebookCellLayoutChangedEvent>;
|
|
26
|
+
emit(events: NotebookDiffViewEvent[]): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
import { Emitter } from '../../../../../base/common/event.js';
|
|
3
|
+
import { Disposable } from '../../../../../base/common/lifecycle.js';
|
|
4
|
+
|
|
5
|
+
var NotebookDiffViewEventType;
|
|
6
|
+
(function(NotebookDiffViewEventType) {
|
|
7
|
+
NotebookDiffViewEventType[NotebookDiffViewEventType["LayoutChanged"] = 1] = "LayoutChanged";
|
|
8
|
+
NotebookDiffViewEventType[NotebookDiffViewEventType["CellLayoutChanged"] = 2] = "CellLayoutChanged";
|
|
9
|
+
})(NotebookDiffViewEventType || (NotebookDiffViewEventType = {}));
|
|
10
|
+
class NotebookDiffLayoutChangedEvent {
|
|
11
|
+
constructor(source, value) {
|
|
12
|
+
this.source = source;
|
|
13
|
+
this.value = value;
|
|
14
|
+
this.type = NotebookDiffViewEventType.LayoutChanged;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
class NotebookDiffEditorEventDispatcher extends Disposable {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this._onDidChangeLayout = this._register(( new Emitter()));
|
|
21
|
+
this.onDidChangeLayout = this._onDidChangeLayout.event;
|
|
22
|
+
this._onDidChangeCellLayout = this._register(( new Emitter()));
|
|
23
|
+
this.onDidChangeCellLayout = this._onDidChangeCellLayout.event;
|
|
24
|
+
}
|
|
25
|
+
emit(events) {
|
|
26
|
+
for (let i = 0, len = events.length; i < len; i++) {
|
|
27
|
+
const e = events[i];
|
|
28
|
+
switch (e.type) {
|
|
29
|
+
case NotebookDiffViewEventType.LayoutChanged:
|
|
30
|
+
this._onDidChangeLayout.fire(e);
|
|
31
|
+
break;
|
|
32
|
+
case NotebookDiffViewEventType.CellLayoutChanged:
|
|
33
|
+
this._onDidChangeCellLayout.fire(e);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { NotebookDiffEditorEventDispatcher, NotebookDiffLayoutChangedEvent, NotebookDiffViewEventType };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DisposableStore } from "../../../../../../base/common/lifecycle.js";
|
|
2
|
+
import { INotebookEditor } from "../../notebookBrowser.js";
|
|
3
|
+
import { ICodeEditor } from "../../../../../../editor/browser/editorBrowser.js";
|
|
4
|
+
import { IEditorWorkerService } from "../../../../../../editor/common/services/editorWorker.service.js";
|
|
5
|
+
import { NotebookCellTextModel } from "../../../common/model/notebookCellTextModel.js";
|
|
6
|
+
import { INotebookOriginalCellModelFactory } from "./notebookOriginalCellModelFactory.service.js";
|
|
7
|
+
export declare class NotebookCellDiffDecorator extends DisposableStore {
|
|
8
|
+
readonly modifiedCell: NotebookCellTextModel;
|
|
9
|
+
readonly originalCell: NotebookCellTextModel;
|
|
10
|
+
private readonly editor;
|
|
11
|
+
private readonly _editorWorkerService;
|
|
12
|
+
private readonly originalCellModelFactory;
|
|
13
|
+
private _viewZones;
|
|
14
|
+
private readonly throttledDecorator;
|
|
15
|
+
private diffForPreviouslyAppliedDecorators?;
|
|
16
|
+
private readonly perEditorDisposables;
|
|
17
|
+
constructor(notebookEditor: INotebookEditor, modifiedCell: NotebookCellTextModel, originalCell: NotebookCellTextModel, editor: ICodeEditor, _editorWorkerService: IEditorWorkerService, originalCellModelFactory: INotebookOriginalCellModelFactory);
|
|
18
|
+
update(editor: ICodeEditor): void;
|
|
19
|
+
private _updateImpl;
|
|
20
|
+
private _originalModel?;
|
|
21
|
+
private getOrCreateOriginalModel;
|
|
22
|
+
private _updateWithDiff;
|
|
23
|
+
}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { DisposableStore, toDisposable } from '../../../../../../base/common/lifecycle.js';
|
|
4
|
+
import '../../../../../../base/common/observableInternal/index.js';
|
|
5
|
+
import { ThrottledDelayer } from '../../../../../../base/common/async.js';
|
|
6
|
+
import { IEditorWorkerService } from '../../../../../../editor/common/services/editorWorker.service.js';
|
|
7
|
+
import { EditorOption } from '../../../../../../editor/common/config/editorOptions.js';
|
|
8
|
+
import { themeColorFromId } from '../../../../../../base/common/themables.js';
|
|
9
|
+
import { RenderOptions, LineSource, renderLines } from '../../../../../../editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js';
|
|
10
|
+
import { diffAddDecoration, diffWholeLineAddDecoration, diffDeleteDecoration } from '../../../../../../editor/browser/widget/diffEditor/registrations.contribution.js';
|
|
11
|
+
import { TrackedRangeStickiness, MinimapPosition, OverviewRulerLane } from '../../../../../../editor/common/model.js';
|
|
12
|
+
import { ModelDecorationOptions } from '../../../../../../editor/common/model/textModel.js';
|
|
13
|
+
import { Range } from '../../../../../../editor/common/core/range.js';
|
|
14
|
+
import { overviewRulerModifiedForeground, minimapGutterModifiedBackground, overviewRulerAddedForeground, minimapGutterAddedBackground, overviewRulerDeletedForeground, minimapGutterDeletedBackground } from '../../../../scm/common/quickDiff.js';
|
|
15
|
+
import { INotebookOriginalCellModelFactory } from './notebookOriginalCellModelFactory.service.js';
|
|
16
|
+
import { InlineDecoration, InlineDecorationType } from '../../../../../../editor/common/viewModel/inlineDecorations.js';
|
|
17
|
+
import { createElement } from '../../../../../../base/browser/dom.js';
|
|
18
|
+
import { observableFromEvent } from '../../../../../../base/common/observableInternal/observables/observableFromEvent.js';
|
|
19
|
+
import { derived } from '../../../../../../base/common/observableInternal/observables/derived.js';
|
|
20
|
+
import { autorunWithStore } from '../../../../../../base/common/observableInternal/reactions/autorun.js';
|
|
21
|
+
|
|
22
|
+
let NotebookCellDiffDecorator = class NotebookCellDiffDecorator extends DisposableStore {
|
|
23
|
+
constructor(
|
|
24
|
+
notebookEditor,
|
|
25
|
+
modifiedCell,
|
|
26
|
+
originalCell,
|
|
27
|
+
editor,
|
|
28
|
+
_editorWorkerService,
|
|
29
|
+
originalCellModelFactory
|
|
30
|
+
) {
|
|
31
|
+
super();
|
|
32
|
+
this.modifiedCell = modifiedCell;
|
|
33
|
+
this.originalCell = originalCell;
|
|
34
|
+
this.editor = editor;
|
|
35
|
+
this._editorWorkerService = _editorWorkerService;
|
|
36
|
+
this.originalCellModelFactory = originalCellModelFactory;
|
|
37
|
+
this._viewZones = [];
|
|
38
|
+
this.throttledDecorator = this.add(( new ThrottledDelayer(50)));
|
|
39
|
+
this.perEditorDisposables = this.add(( new DisposableStore()));
|
|
40
|
+
const onDidChangeVisibleRanges = observableFromEvent(
|
|
41
|
+
notebookEditor.onDidChangeVisibleRanges,
|
|
42
|
+
() => notebookEditor.visibleRanges
|
|
43
|
+
);
|
|
44
|
+
const editorObs = derived(r => {
|
|
45
|
+
const visibleRanges = onDidChangeVisibleRanges.read(r);
|
|
46
|
+
const visibleCellHandles = ( ( visibleRanges.map(range => notebookEditor.getCellsInRange(range))).flat().map(c => c.handle));
|
|
47
|
+
if (!visibleCellHandles.includes(modifiedCell.handle)) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const editor = notebookEditor.codeEditors.find(item => item[0].handle === modifiedCell.handle)?.[1];
|
|
51
|
+
if (editor?.getModel() !== this.modifiedCell.textModel) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
return editor;
|
|
55
|
+
});
|
|
56
|
+
this.add(autorunWithStore((r, store) => {
|
|
57
|
+
const editor = editorObs.read(r);
|
|
58
|
+
this.perEditorDisposables.clear();
|
|
59
|
+
if (editor) {
|
|
60
|
+
store.add(editor.onDidChangeModel(() => {
|
|
61
|
+
this.perEditorDisposables.clear();
|
|
62
|
+
}));
|
|
63
|
+
store.add(editor.onDidChangeModelContent(() => {
|
|
64
|
+
this.update(editor);
|
|
65
|
+
}));
|
|
66
|
+
store.add(editor.onDidChangeConfiguration(e => {
|
|
67
|
+
if (e.hasChanged(EditorOption.fontInfo) || e.hasChanged(EditorOption.lineHeight)) {
|
|
68
|
+
this.update(editor);
|
|
69
|
+
}
|
|
70
|
+
}));
|
|
71
|
+
this.update(editor);
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
update(editor) {
|
|
76
|
+
this.throttledDecorator.trigger(() => this._updateImpl(editor));
|
|
77
|
+
}
|
|
78
|
+
async _updateImpl(editor) {
|
|
79
|
+
if (this.isDisposed) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (editor.getOption(EditorOption.inDiffEditor)) {
|
|
83
|
+
this.perEditorDisposables.clear();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const model = editor.getModel();
|
|
87
|
+
if (!model || model !== this.modifiedCell.textModel) {
|
|
88
|
+
this.perEditorDisposables.clear();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const originalModel = this.getOrCreateOriginalModel(editor);
|
|
92
|
+
if (!originalModel) {
|
|
93
|
+
this.perEditorDisposables.clear();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const version = model.getVersionId();
|
|
97
|
+
const diff = await this._editorWorkerService.computeDiff(originalModel.uri, model.uri, {
|
|
98
|
+
computeMoves: true,
|
|
99
|
+
ignoreTrimWhitespace: false,
|
|
100
|
+
maxComputationTimeMs: Number.MAX_SAFE_INTEGER
|
|
101
|
+
}, "advanced");
|
|
102
|
+
if (this.isDisposed) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (diff && !diff.identical && this.modifiedCell.textModel && originalModel && model === editor.getModel() && editor.getModel()?.getVersionId() === version) {
|
|
106
|
+
this._updateWithDiff(editor, originalModel, diff, this.modifiedCell.textModel);
|
|
107
|
+
} else {
|
|
108
|
+
this.perEditorDisposables.clear();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
getOrCreateOriginalModel(editor) {
|
|
112
|
+
if (!this._originalModel) {
|
|
113
|
+
const model = editor.getModel();
|
|
114
|
+
if (!model) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
this._originalModel = this.add(this.originalCellModelFactory.getOrCreate(
|
|
118
|
+
model.uri,
|
|
119
|
+
this.originalCell.getValue(),
|
|
120
|
+
model.getLanguageId(),
|
|
121
|
+
this.modifiedCell.cellKind
|
|
122
|
+
)).object;
|
|
123
|
+
}
|
|
124
|
+
return this._originalModel;
|
|
125
|
+
}
|
|
126
|
+
_updateWithDiff(editor, originalModel, diff, currentModel) {
|
|
127
|
+
if (areDiffsEqual(diff, this.diffForPreviouslyAppliedDecorators)) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this.perEditorDisposables.clear();
|
|
131
|
+
const decorations = editor.createDecorationsCollection();
|
|
132
|
+
this.perEditorDisposables.add(toDisposable(() => {
|
|
133
|
+
editor.changeViewZones(viewZoneChangeAccessor => {
|
|
134
|
+
for (const id of this._viewZones) {
|
|
135
|
+
viewZoneChangeAccessor.removeZone(id);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
this._viewZones = [];
|
|
139
|
+
decorations.clear();
|
|
140
|
+
this.diffForPreviouslyAppliedDecorators = undefined;
|
|
141
|
+
}));
|
|
142
|
+
this.diffForPreviouslyAppliedDecorators = diff;
|
|
143
|
+
const chatDiffAddDecoration = ModelDecorationOptions.createDynamic({
|
|
144
|
+
...diffAddDecoration,
|
|
145
|
+
stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
|
|
146
|
+
});
|
|
147
|
+
const chatDiffWholeLineAddDecoration = ModelDecorationOptions.createDynamic({
|
|
148
|
+
...diffWholeLineAddDecoration,
|
|
149
|
+
stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
|
|
150
|
+
});
|
|
151
|
+
const createOverviewDecoration = (overviewRulerColor, minimapColor) => {
|
|
152
|
+
return ModelDecorationOptions.createDynamic({
|
|
153
|
+
description: "chat-editing-decoration",
|
|
154
|
+
overviewRuler: {
|
|
155
|
+
color: themeColorFromId(overviewRulerColor),
|
|
156
|
+
position: OverviewRulerLane.Left
|
|
157
|
+
},
|
|
158
|
+
minimap: {
|
|
159
|
+
color: themeColorFromId(minimapColor),
|
|
160
|
+
position: MinimapPosition.Gutter
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
const modifiedDecoration = createOverviewDecoration(overviewRulerModifiedForeground, minimapGutterModifiedBackground);
|
|
165
|
+
const addedDecoration = createOverviewDecoration(overviewRulerAddedForeground, minimapGutterAddedBackground);
|
|
166
|
+
const deletedDecoration = createOverviewDecoration(overviewRulerDeletedForeground, minimapGutterDeletedBackground);
|
|
167
|
+
editor.changeViewZones(viewZoneChangeAccessor => {
|
|
168
|
+
for (const id of this._viewZones) {
|
|
169
|
+
viewZoneChangeAccessor.removeZone(id);
|
|
170
|
+
}
|
|
171
|
+
this._viewZones = [];
|
|
172
|
+
const modifiedVisualDecorations = [];
|
|
173
|
+
const mightContainNonBasicASCII = originalModel.mightContainNonBasicASCII();
|
|
174
|
+
const mightContainRTL = originalModel.mightContainRTL();
|
|
175
|
+
const renderOptions = RenderOptions.fromEditor(this.editor);
|
|
176
|
+
const editorLineCount = currentModel.getLineCount();
|
|
177
|
+
for (const diffEntry of diff.changes) {
|
|
178
|
+
const originalRange = diffEntry.original;
|
|
179
|
+
originalModel.tokenization.forceTokenization(Math.max(1, originalRange.endLineNumberExclusive - 1));
|
|
180
|
+
const source = ( new LineSource(
|
|
181
|
+
originalRange.mapToLineArray(l => originalModel.tokenization.getLineTokens(l)),
|
|
182
|
+
[],
|
|
183
|
+
mightContainNonBasicASCII,
|
|
184
|
+
mightContainRTL
|
|
185
|
+
));
|
|
186
|
+
const decorations = [];
|
|
187
|
+
for (const i of diffEntry.innerChanges || []) {
|
|
188
|
+
decorations.push(( new InlineDecoration(
|
|
189
|
+
i.originalRange.delta(-(diffEntry.original.startLineNumber - 1)),
|
|
190
|
+
diffDeleteDecoration.className,
|
|
191
|
+
InlineDecorationType.Regular
|
|
192
|
+
)));
|
|
193
|
+
if (!(i.originalRange.isEmpty() && i.originalRange.startLineNumber === 1 && i.modifiedRange.endLineNumber === editorLineCount) && !i.modifiedRange.isEmpty()) {
|
|
194
|
+
modifiedVisualDecorations.push({
|
|
195
|
+
range: i.modifiedRange,
|
|
196
|
+
options: chatDiffAddDecoration
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const isCreatedContent = decorations.length === 1 && decorations[0].range.isEmpty() && diffEntry.original.startLineNumber === 1;
|
|
201
|
+
if (!diffEntry.modified.isEmpty && !(isCreatedContent && (diffEntry.modified.endLineNumberExclusive - 1) === editorLineCount)) {
|
|
202
|
+
modifiedVisualDecorations.push({
|
|
203
|
+
range: diffEntry.modified.toInclusiveRange(),
|
|
204
|
+
options: chatDiffWholeLineAddDecoration
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
if (diffEntry.original.isEmpty) {
|
|
208
|
+
modifiedVisualDecorations.push({
|
|
209
|
+
range: diffEntry.modified.toInclusiveRange(),
|
|
210
|
+
options: addedDecoration
|
|
211
|
+
});
|
|
212
|
+
} else if (diffEntry.modified.isEmpty) {
|
|
213
|
+
modifiedVisualDecorations.push({
|
|
214
|
+
range: ( new Range(
|
|
215
|
+
diffEntry.modified.startLineNumber - 1,
|
|
216
|
+
1,
|
|
217
|
+
diffEntry.modified.startLineNumber,
|
|
218
|
+
1
|
|
219
|
+
)),
|
|
220
|
+
options: deletedDecoration
|
|
221
|
+
});
|
|
222
|
+
} else {
|
|
223
|
+
modifiedVisualDecorations.push({
|
|
224
|
+
range: diffEntry.modified.toInclusiveRange(),
|
|
225
|
+
options: modifiedDecoration
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
const domNode = createElement("div");
|
|
229
|
+
domNode.className = "chat-editing-original-zone view-lines line-delete monaco-mouse-cursor-text";
|
|
230
|
+
const result = renderLines(source, renderOptions, decorations, domNode);
|
|
231
|
+
if (!isCreatedContent) {
|
|
232
|
+
const viewZoneData = {
|
|
233
|
+
afterLineNumber: diffEntry.modified.startLineNumber - 1,
|
|
234
|
+
heightInLines: result.heightInLines,
|
|
235
|
+
domNode,
|
|
236
|
+
ordinal: 50000 + 2
|
|
237
|
+
};
|
|
238
|
+
this._viewZones.push(viewZoneChangeAccessor.addZone(viewZoneData));
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
decorations.set(modifiedVisualDecorations);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
NotebookCellDiffDecorator = ( __decorate([( __param(4, IEditorWorkerService)), ( __param(5, INotebookOriginalCellModelFactory))], NotebookCellDiffDecorator));
|
|
246
|
+
function areDiffsEqual(a, b) {
|
|
247
|
+
if (a && b) {
|
|
248
|
+
if (a.changes.length !== b.changes.length) {
|
|
249
|
+
return false;
|
|
250
|
+
}
|
|
251
|
+
if (a.moves.length !== b.moves.length) {
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
if (!areLineRangeMappinsEqual(a.changes, b.changes)) {
|
|
255
|
+
return false;
|
|
256
|
+
}
|
|
257
|
+
if (!( a.moves.some((move, i) => {
|
|
258
|
+
const bMove = b.moves[i];
|
|
259
|
+
if (!areLineRangeMappinsEqual(move.changes, bMove.changes)) {
|
|
260
|
+
return true;
|
|
261
|
+
}
|
|
262
|
+
if (move.lineRangeMapping.changedLineCount !== bMove.lineRangeMapping.changedLineCount) {
|
|
263
|
+
return true;
|
|
264
|
+
}
|
|
265
|
+
if (!move.lineRangeMapping.modified.equals(bMove.lineRangeMapping.modified)) {
|
|
266
|
+
return true;
|
|
267
|
+
}
|
|
268
|
+
if (!move.lineRangeMapping.original.equals(bMove.lineRangeMapping.original)) {
|
|
269
|
+
return true;
|
|
270
|
+
}
|
|
271
|
+
return false;
|
|
272
|
+
}))) {
|
|
273
|
+
return false;
|
|
274
|
+
}
|
|
275
|
+
return true;
|
|
276
|
+
} else if (!a && !b) {
|
|
277
|
+
return true;
|
|
278
|
+
} else {
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function areLineRangeMappinsEqual(a, b) {
|
|
283
|
+
if (a.length !== b.length) {
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
286
|
+
if (( a.some((c, i) => {
|
|
287
|
+
const bChange = b[i];
|
|
288
|
+
if (c.changedLineCount !== bChange.changedLineCount) {
|
|
289
|
+
return true;
|
|
290
|
+
}
|
|
291
|
+
if ((c.innerChanges || []).length !== (bChange.innerChanges || []).length) {
|
|
292
|
+
return true;
|
|
293
|
+
}
|
|
294
|
+
if (( (c.innerChanges || []).some((innerC, innerIdx) => {
|
|
295
|
+
const bInnerC = bChange.innerChanges[innerIdx];
|
|
296
|
+
if (!innerC.modifiedRange.equalsRange(bInnerC.modifiedRange)) {
|
|
297
|
+
return true;
|
|
298
|
+
}
|
|
299
|
+
if (!innerC.originalRange.equalsRange(bInnerC.originalRange)) {
|
|
300
|
+
return true;
|
|
301
|
+
}
|
|
302
|
+
return false;
|
|
303
|
+
}))) {
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
306
|
+
return false;
|
|
307
|
+
}))) {
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
return true;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export { NotebookCellDiffDecorator };
|