@codingame/monaco-vscode-api 30.0.1 → 31.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +137 -46
- package/package.json +9 -9
- package/services.d.ts +10 -1
- package/services.js +13 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/domStylesheets.js +2 -11
- package/vscode/src/vs/base/browser/overlayLayoutElement.d.ts +44 -0
- package/vscode/src/vs/base/browser/overlayLayoutElement.js +122 -0
- package/vscode/src/vs/base/browser/performance.d.ts +5 -0
- package/vscode/src/vs/base/browser/performance.js +4 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInput.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +17 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/media/scrollbars.css +5 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +2 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +14 -8
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/defaultAccount.d.ts +1 -0
- package/vscode/src/vs/base/common/event.d.ts +6 -9
- package/vscode/src/vs/base/common/event.js +12 -8
- package/vscode/src/vs/base/common/htmlContent.d.ts +10 -0
- package/vscode/src/vs/base/common/htmlContent.js +8 -1
- package/vscode/src/vs/base/common/labels.d.ts +1 -1
- package/vscode/src/vs/base/common/labels.js +13 -3
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +1 -1
- package/vscode/src/vs/base/common/observableInternal/index.js +1 -1
- package/vscode/src/vs/base/common/observableInternal/utils/utils.d.ts +6 -0
- package/vscode/src/vs/base/common/observableInternal/utils/utils.js +38 -1
- package/vscode/src/vs/base/common/performance.d.ts +3 -2
- package/vscode/src/vs/base/common/performance.js +32 -34
- package/vscode/src/vs/base/common/product.d.ts +31 -0
- package/vscode/src/vs/base/common/types.js +1 -1
- package/vscode/src/vs/base/common/uri.js +1 -1
- package/vscode/src/vs/editor/browser/view.js +2 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +30 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/workbenchUIElementFactory.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineSuggestionsView.js +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +1 -0
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +1 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +2 -1
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +1 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +4 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +204 -157
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +25 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +15 -17
- 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/actions.d.ts +1 -0
- package/vscode/src/vs/platform/actions/common/actions.js +3 -0
- 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 +45 -0
- package/vscode/src/vs/platform/agentHost/browser/nullAgentHostService.js +77 -0
- package/vscode/src/vs/platform/agentHost/browser/nullSshRemoteAgentHostService.d.ts +18 -0
- package/vscode/src/vs/platform/agentHost/browser/nullSshRemoteAgentHostService.js +25 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostUri.d.ts +58 -0
- package/vscode/src/vs/platform/agentHost/common/agentHostUri.js +73 -0
- package/vscode/src/vs/platform/agentHost/common/agentPluginManager.d.ts +11 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.d.ts +119 -0
- package/vscode/src/vs/platform/agentHost/common/agentService.service.js +6 -0
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.d.ts +122 -0
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.js +104 -0
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.service.d.ts +54 -0
- package/vscode/src/vs/platform/agentHost/common/remoteAgentHostService.service.js +6 -0
- package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.d.ts +88 -0
- package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.service.d.ts +89 -0
- package/vscode/src/vs/platform/agentHost/common/sshRemoteAgentHost.service.js +6 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/action-origin.generated.d.ts +22 -0
- package/vscode/src/vs/platform/agentHost/common/state/protocol/messages.d.ts +234 -0
- package/vscode/src/vs/platform/agentHost/common/tunnelAgentHost.d.ts +91 -0
- package/vscode/src/vs/platform/agentHost/common/tunnelAgentHost.js +5 -0
- package/vscode/src/vs/platform/browserView/common/browserView.d.ts +28 -2
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.d.ts +34 -0
- package/vscode/src/vs/platform/browserView/common/browserViewTelemetry.js +7 -0
- package/vscode/src/vs/platform/browserView/common/browserViewUri.d.ts +21 -0
- package/vscode/src/vs/platform/browserView/common/browserViewUri.js +34 -0
- package/vscode/src/vs/platform/browserView/common/cdp/types.d.ts +21 -10
- package/vscode/src/vs/platform/browserView/common/playwrightService.d.ts +7 -0
- package/vscode/src/vs/platform/browserView/common/playwrightService.service.d.ts +20 -5
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -4
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -22
- 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/dataChannel/browser/forwardingTelemetryService.d.ts +1 -0
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.js +3 -0
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +3 -1
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +3 -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/editor/common/editor.d.ts +11 -3
- package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -1
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/environment/common/environmentService.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -0
- 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.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +38 -16
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +1 -1
- 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/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/keybinding/common/keybindingResolver.js +4 -2
- 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/mcp/common/mcpPlatformTypes.d.ts +4 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +5 -5
- package/vscode/src/vs/platform/native/common/native.d.ts +11 -1
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.service.d.ts +33 -0
- package/vscode/src/vs/platform/networkFilter/common/networkFilterService.service.js +6 -0
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -10
- 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.d.ts +4 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +39 -16
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +4 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +8 -0
- 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/quickinput/common/quickInput.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +6 -1
- package/vscode/src/vs/platform/request/common/request.js +20 -20
- package/vscode/src/vs/platform/sandbox/common/settings.d.ts +11 -0
- package/vscode/src/vs/platform/sandbox/common/settings.js +14 -0
- package/vscode/src/vs/{workbench/contrib/terminalContrib/chatAgentTools → platform/sandbox}/common/terminalSandboxService.service.d.ts +6 -6
- package/vscode/src/vs/{workbench/contrib/terminalContrib/chatAgentTools → platform/sandbox}/common/terminalSandboxService.service.js +1 -1
- package/vscode/src/vs/platform/telemetry/common/errorTelemetry.d.ts +82 -0
- package/vscode/src/vs/platform/telemetry/common/errorTelemetry.js +108 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.service.d.ts +5 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +1 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -0
- package/vscode/src/vs/platform/terminal/common/terminal.js +5 -0
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +31 -31
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +18 -18
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +97 -97
- 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 +11 -11
- 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 +9 -9
- 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/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/update/common/update.d.ts +10 -3
- package/vscode/src/vs/platform/update/common/update.js +3 -1
- 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/extensionsSync.d.ts +3 -1
- package/vscode/src/vs/platform/userDataSync/common/extensionsSync.js +14 -8
- 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.api.impl.js +39 -11
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +67 -14
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +36 -13
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +164 -26
- package/vscode/src/vs/workbench/api/common/extHostChatDebug.d.ts +4 -0
- package/vscode/src/vs/workbench/api/common/extHostChatDebug.js +7 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +22 -5
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +278 -42
- 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/extHostGitExtensionService.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.js +18 -35
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +6 -4
- 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 +1 -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/extHostTypeConverters.d.ts +3 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +16 -3
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +2 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +6 -11
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +58 -32
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +153 -148
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +34 -34
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +39 -39
- 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/media/style.css +1 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +33 -31
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +26 -26
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +5 -5
- 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 +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +135 -135
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +47 -26
- 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 +13 -13
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.d.ts +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +21 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +11 -12
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +14 -5
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +12 -0
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +117 -13
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +1 -3
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +2 -23
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
- package/vscode/src/vs/workbench/browser/web.api.d.ts +69 -0
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +2 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +41 -39
- 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.d.ts +2 -2
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +163 -155
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserEditorInput.js +267 -0
- package/vscode/src/vs/workbench/contrib/browserView/common/browserView.d.ts +8 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +68 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionWorkingDirectoryResolver.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +12 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionDescription.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessions.contribution.js +88 -66
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +38 -17
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +92 -85
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +18 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chat.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +32 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +25 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +17 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatPerf.js +29 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +98 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +6 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +4 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +11 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +16 -5
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +16 -14
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.d.ts +78 -18
- package/vscode/src/vs/workbench/contrib/chat/common/customizationHarnessService.js +47 -84
- 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 +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +49 -57
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +54 -15
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +99 -25
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatPlanReviewData.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatPlanReviewData.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +16 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.d.ts +31 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +26 -6
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginGitService.service.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginGitService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +16 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +150 -89
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.d.ts +9 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +22 -21
- 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 +77 -77
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +9 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +167 -15
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +19 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +18 -20
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +61 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +12 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/reviewPlanTool.js +176 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +18 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +140 -59
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactRulesTool.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/setArtifactsTool.js +34 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.d.ts +2 -0
- 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 +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +4 -10
- package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/terminalToolIds.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -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 +133 -15
- 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.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +17 -14
- 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/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 +36 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +17 -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/media/repl.css +2 -0
- 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/debug.service.d.ts +11 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +16 -8
- 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/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
- 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 +151 -150
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.d.ts +10 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +460 -189
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +32 -32
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +120 -102
- 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/runtimeExtensionsInput.js +2 -2
- 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 +27 -27
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +56 -53
- 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 +19 -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 +7 -4
- 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/browser/mcpServerEditor.js +34 -34
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +53 -40
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.service.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +16 -16
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +5 -4
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +1 -1
- 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/multiDiffEditor.js +5 -2
- 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.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +22 -17
- 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/media/notebook.css +63 -10
- 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.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +52 -75
- 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/notebookEditorInput.js +2 -2
- 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 +12 -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/searchActionsFind.js +17 -14
- 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/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 +9 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.service.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/agentHostTerminalService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +27 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +16 -2
- 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.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +12 -10
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +8 -0
- 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/terminalEnvironment.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +321 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.d.ts +6 -11
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +6 -11
- 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.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +83 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.d.ts +7 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +137 -151
- 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.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +16 -1
- 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 +5 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.d.ts +4 -4
- 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.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -9
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingService.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/welcomeOnboarding/common/onboardingTypes.js +74 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +3 -1
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +72 -48
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.service.d.ts +17 -0
- package/vscode/src/vs/workbench/services/agentHost/common/agentHostFileSystemService.service.js +6 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +13 -13
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +22 -4
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +61 -19
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +1 -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/editorGroupsService.d.ts +16 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- 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.d.ts +2 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +18 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +6 -0
- 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/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 +10 -10
- 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/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 +12 -0
- package/vscode-dts/vscode.proposed.chatDebug.d.ts +11 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +8 -0
- package/vscode-dts/vscode.proposed.chatPromptFiles.d.ts +316 -8
- package/vscode-dts/vscode.proposed.chatSessionCustomizationProvider.d.ts +6 -4
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +92 -44
- package/vscode-dts/vscode.proposed.mcpServerDefinitions.d.ts +4 -1
- package/vscode-dts/vscode.proposed.toolInvocationApproveCombination.d.ts +13 -4
- package/vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.d.ts +0 -12
- package/vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.js +0 -6
|
@@ -4,9 +4,11 @@ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.e
|
|
|
4
4
|
import * as modalEditorPart from './media/modalEditorPart.css';
|
|
5
5
|
import { $, addDisposableListener, EventType, EventHelper, Dimension, append, hide, show, setVisibility, isHTMLElement } from '../../../../base/browser/dom.js';
|
|
6
6
|
import { StandardKeyboardEvent } from '../../../../base/browser/keyboardEvent.js';
|
|
7
|
-
import { prepareActions } from '../../../../base/browser/ui/actionbar/actionbar.js';
|
|
7
|
+
import { ActionBar, prepareActions } from '../../../../base/browser/ui/actionbar/actionbar.js';
|
|
8
8
|
import { Button } from '../../../../base/browser/ui/button/button.js';
|
|
9
|
-
import {
|
|
9
|
+
import { Action } from '../../../../base/common/actions.js';
|
|
10
|
+
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
11
|
+
import { Sash, Orientation, SashState } from '../../../../base/browser/ui/sash/sash.js';
|
|
10
12
|
import { Event, Emitter } from '../../../../base/common/event.js';
|
|
11
13
|
import { DisposableStore, toDisposable, MutableDisposable } from '../../../../base/common/lifecycle.js';
|
|
12
14
|
import { ResizableHTMLElement } from '../../../../base/browser/ui/resizable/resizable.js';
|
|
@@ -23,7 +25,7 @@ import { IThemeService } from '../../../../platform/theme/common/themeService.se
|
|
|
23
25
|
import { EditorPart } from './editorPart.js';
|
|
24
26
|
import { GroupActivationReason, GroupsOrder, GroupDirection } from '../../../services/editor/common/editorGroupsService.js';
|
|
25
27
|
import { IEditorService } from '../../../services/editor/common/editorService.service.js';
|
|
26
|
-
import { EditorPartModalContext, EditorPartModalMaximizedContext, EditorPartModalNavigationContext } from '../../../common/contextkeys.js';
|
|
28
|
+
import { EditorPartModalContext, EditorPartModalMaximizedContext, EditorPartModalNavigationContext, EditorPartModalSidebarContext, EditorPartModalSidebarVisibleContext } from '../../../common/contextkeys.js';
|
|
27
29
|
import { Verbosity, EditorResourceAccessor, SideBySideEditor } from '../../../common/editor.js';
|
|
28
30
|
import { ResourceLabel } from '../../labels.js';
|
|
29
31
|
import { IHostService } from '../../../services/host/browser/host.service.js';
|
|
@@ -32,7 +34,7 @@ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layout
|
|
|
32
34
|
import { mainWindow } from '../../../../base/browser/window.js';
|
|
33
35
|
import { localize } from '../../../../nls.js';
|
|
34
36
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
35
|
-
import { CLOSE_MODAL_EDITOR_COMMAND_ID, MOVE_MODAL_EDITOR_TO_MAIN_COMMAND_ID, MOVE_MODAL_EDITOR_TO_WINDOW_COMMAND_ID, TOGGLE_MODAL_EDITOR_MAXIMIZED_COMMAND_ID, NAVIGATE_MODAL_EDITOR_PREVIOUS_COMMAND_ID, NAVIGATE_MODAL_EDITOR_NEXT_COMMAND_ID } from './editorCommands.js';
|
|
37
|
+
import { CLOSE_MODAL_EDITOR_COMMAND_ID, MOVE_MODAL_EDITOR_TO_MAIN_COMMAND_ID, MOVE_MODAL_EDITOR_TO_WINDOW_COMMAND_ID, TOGGLE_MODAL_EDITOR_MAXIMIZED_COMMAND_ID, NAVIGATE_MODAL_EDITOR_PREVIOUS_COMMAND_ID, NAVIGATE_MODAL_EDITOR_NEXT_COMMAND_ID, TOGGLE_MODAL_EDITOR_SIDEBAR_COMMAND_ID } from './editorCommands.js';
|
|
36
38
|
|
|
37
39
|
var ModalEditorPartImpl_1;
|
|
38
40
|
registerCss(modalEditorPart);
|
|
@@ -45,7 +47,9 @@ const MODAL_HEADER_HEIGHT = 33;
|
|
|
45
47
|
const MODAL_SNAP_THRESHOLD = 20;
|
|
46
48
|
const MODAL_MAXIMIZED_PADDING = 16;
|
|
47
49
|
const MODAL_SIDEBAR_MIN_WIDTH = 160;
|
|
48
|
-
const MODAL_SIDEBAR_DEFAULT_WIDTH =
|
|
50
|
+
const MODAL_SIDEBAR_DEFAULT_WIDTH = 260;
|
|
51
|
+
const MODAL_SIDEBAR_PADDING = 8;
|
|
52
|
+
const MODAL_SIDEBAR_BORDER_RIGHT = 1;
|
|
49
53
|
const defaultModalEditorAllowableCommands = ( new Set([
|
|
50
54
|
"workbench.action.quit", "workbench.action.reloadWindow", "workbench.action.toggleFullScreen",
|
|
51
55
|
"workbench.action.gotoSymbol", "workbench.action.gotoLine",
|
|
@@ -54,7 +58,7 @@ const defaultModalEditorAllowableCommands = ( new Set([
|
|
|
54
58
|
"workbench.action.closeActiveEditor", "workbench.action.closeAllEditors", "workbench.action.closeEditorsInGroup", "workbench.action.closeUnmodifiedEditors",
|
|
55
59
|
"workbench.action.openSettings", "workbench.action.openSettings2", "workbench.action.openSettingsJson", "workbench.action.openGlobalSettings", "workbench.action.openApplicationSettingsJson", "workbench.action.openRawDefaultSettings", "workbench.action.openWorkspaceSettings", "workbench.action.openWorkspaceSettingsFile", "workbench.action.openFolderSettings", "workbench.action.openFolderSettingsFile", "workbench.action.openRemoteSettings", "workbench.action.openRemoteSettingsFile", "workbench.action.openAccessibilitySettings", "workbench.action.configureLanguageBasedSettings",
|
|
56
60
|
"workbench.action.openGlobalKeybindings", "workbench.action.openDefaultKeybindingsFile", "workbench.action.openGlobalKeybindingsFile", "workbench.action.openKeyboardLayoutPicker",
|
|
57
|
-
CLOSE_MODAL_EDITOR_COMMAND_ID, MOVE_MODAL_EDITOR_TO_MAIN_COMMAND_ID, MOVE_MODAL_EDITOR_TO_WINDOW_COMMAND_ID, TOGGLE_MODAL_EDITOR_MAXIMIZED_COMMAND_ID, NAVIGATE_MODAL_EDITOR_PREVIOUS_COMMAND_ID, NAVIGATE_MODAL_EDITOR_NEXT_COMMAND_ID]));
|
|
61
|
+
CLOSE_MODAL_EDITOR_COMMAND_ID, MOVE_MODAL_EDITOR_TO_MAIN_COMMAND_ID, MOVE_MODAL_EDITOR_TO_WINDOW_COMMAND_ID, TOGGLE_MODAL_EDITOR_MAXIMIZED_COMMAND_ID, NAVIGATE_MODAL_EDITOR_PREVIOUS_COMMAND_ID, NAVIGATE_MODAL_EDITOR_NEXT_COMMAND_ID, TOGGLE_MODAL_EDITOR_SIDEBAR_COMMAND_ID]));
|
|
58
62
|
const USE_MODAL_EDITOR_SETTING = "workbench.editor.useModal";
|
|
59
63
|
let ModalEditorPart = class ModalEditorPart {
|
|
60
64
|
constructor(
|
|
@@ -117,6 +121,17 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
117
121
|
});
|
|
118
122
|
shadowElement.appendChild(editorPartContainer);
|
|
119
123
|
const headerElement = editorPartContainer.appendChild($(".modal-editor-header"));
|
|
124
|
+
const sidebarToggleContainer = append(headerElement, $("div.modal-editor-sidebar-toggle"));
|
|
125
|
+
if (!options?.sidebar) {
|
|
126
|
+
hide(sidebarToggleContainer);
|
|
127
|
+
}
|
|
128
|
+
const sidebarToggleIcon = options?.sidebar?.sidebarHidden ? Codicon.layoutSidebarLeftOff : Codicon.layoutSidebarLeft;
|
|
129
|
+
const sidebarToggleAction = disposables.add(( new Action(TOGGLE_MODAL_EDITOR_SIDEBAR_COMMAND_ID, ( localize(3572, "Toggle Sidebar")), ThemeIcon.asClassName(sidebarToggleIcon), true)));
|
|
130
|
+
const sidebarToggleActionBar = disposables.add(( new ActionBar(sidebarToggleContainer)));
|
|
131
|
+
sidebarToggleActionBar.push(sidebarToggleAction, {
|
|
132
|
+
icon: true,
|
|
133
|
+
label: false
|
|
134
|
+
});
|
|
120
135
|
const titleElement = append(headerElement, $("div.modal-editor-title.show-file-icons"));
|
|
121
136
|
titleElement.id = titleId;
|
|
122
137
|
titleElement.textContent = "";
|
|
@@ -152,7 +167,9 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
152
167
|
const actionBarContainer = append(headerElement, $("div.modal-editor-action-container"));
|
|
153
168
|
const sidebarResult = this.createSidebar(editorPartContainer, options?.sidebar, disposables);
|
|
154
169
|
if (sidebarResult) {
|
|
155
|
-
|
|
170
|
+
if (sidebarResult.isVisible()) {
|
|
171
|
+
editorPartContainer.classList.add("has-sidebar");
|
|
172
|
+
}
|
|
156
173
|
disposables.add(sidebarResult.onDidResize(() => layoutModal()));
|
|
157
174
|
}
|
|
158
175
|
const editorPart = disposables.add(this.instantiationService.createInstance(
|
|
@@ -175,6 +192,21 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
175
192
|
hide(navigationContainer);
|
|
176
193
|
}
|
|
177
194
|
}), editorPart.navigation));
|
|
195
|
+
if (sidebarResult) {
|
|
196
|
+
disposables.add(Event.runAndSubscribe(sidebarResult.onDidResize, () => {
|
|
197
|
+
if (sidebarResult.isVisible()) {
|
|
198
|
+
editorPart.sidebarWidth = sidebarResult.hasCustomWidth() ? sidebarResult.getWidth() : undefined;
|
|
199
|
+
}
|
|
200
|
+
}));
|
|
201
|
+
disposables.add(editorPart.onDidToggleSidebar(() => {
|
|
202
|
+
sidebarResult.setVisible(!editorPart.sidebarHidden);
|
|
203
|
+
sidebarToggleAction.class = ThemeIcon.asClassName(
|
|
204
|
+
editorPart.sidebarHidden ? Codicon.layoutSidebarLeftOff : Codicon.layoutSidebarLeft
|
|
205
|
+
);
|
|
206
|
+
layoutModal();
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
209
|
+
disposables.add(sidebarToggleActionBar.onDidRun(() => editorPart.toggleSidebar()));
|
|
178
210
|
const modalEditorService = this.editorService.createScoped(editorPart, disposables);
|
|
179
211
|
const scopedInstantiationService = disposables.add(editorPart.scopedInstantiationService.createChild(( new ServiceCollection([IEditorService, modalEditorService]))));
|
|
180
212
|
const editorActionsToolbarContainer = append(actionBarContainer, $("div.modal-editor-editor-actions"));
|
|
@@ -407,6 +439,7 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
407
439
|
const height = Math.min(targetHeight, MODAL_MAX_DEFAULT_HEIGHT, availableHeight);
|
|
408
440
|
return ( new Dimension(width, height));
|
|
409
441
|
};
|
|
442
|
+
let isFirstLayout = true;
|
|
410
443
|
const layoutModal = () => {
|
|
411
444
|
if (isResizing) {
|
|
412
445
|
return;
|
|
@@ -432,6 +465,10 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
432
465
|
height = defaultSize.height;
|
|
433
466
|
}
|
|
434
467
|
height = Math.min(height, availableHeight);
|
|
468
|
+
if (isFirstLayout) {
|
|
469
|
+
isFirstLayout = false;
|
|
470
|
+
sidebarResult?.clampWidth(width);
|
|
471
|
+
}
|
|
435
472
|
resizableElement.maxSize = ( new Dimension(containerDimension.width, availableHeight));
|
|
436
473
|
resizableElement.preferredSize = defaultSize;
|
|
437
474
|
resizableElement.layout(height, width);
|
|
@@ -477,9 +514,12 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
477
514
|
if (!content) {
|
|
478
515
|
return undefined;
|
|
479
516
|
}
|
|
480
|
-
let sidebarWidth = MODAL_SIDEBAR_DEFAULT_WIDTH;
|
|
517
|
+
let sidebarWidth = content.sidebarWidth && content.sidebarWidth > 0 ? content.sidebarWidth : MODAL_SIDEBAR_DEFAULT_WIDTH;
|
|
518
|
+
let customWidth = content.sidebarWidth !== undefined && content.sidebarWidth > 0;
|
|
519
|
+
let visible = !content.sidebarHidden;
|
|
481
520
|
const sidebarContainer = append(container, $("div.modal-editor-sidebar.show-file-icons"));
|
|
482
521
|
sidebarContainer.style.width = `${sidebarWidth}px`;
|
|
522
|
+
setVisibility(visible, sidebarContainer);
|
|
483
523
|
const onDidLayoutEmitter = disposables.add(( new Emitter()));
|
|
484
524
|
const contentDisposable = disposables.add(( new MutableDisposable()));
|
|
485
525
|
contentDisposable.value = content.render(sidebarContainer, onDidLayoutEmitter.event);
|
|
@@ -490,6 +530,9 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
490
530
|
}, {
|
|
491
531
|
orientation: Orientation.VERTICAL
|
|
492
532
|
})));
|
|
533
|
+
if (!visible) {
|
|
534
|
+
sash.state = SashState.Disabled;
|
|
535
|
+
}
|
|
493
536
|
const onDidResizeEmitter = disposables.add(( new Emitter()));
|
|
494
537
|
let sashStartWidth;
|
|
495
538
|
disposables.add(sash.onDidStart(() => sashStartWidth = sidebarWidth));
|
|
@@ -501,6 +544,7 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
501
544
|
const delta = e.currentX - e.startX;
|
|
502
545
|
const maxWidth = Math.max(MODAL_SIDEBAR_MIN_WIDTH, container.clientWidth - MODAL_MIN_WIDTH);
|
|
503
546
|
sidebarWidth = Math.min(maxWidth, Math.max(MODAL_SIDEBAR_MIN_WIDTH, sashStartWidth + delta));
|
|
547
|
+
customWidth = true;
|
|
504
548
|
sidebarContainer.style.width = `${sidebarWidth}px`;
|
|
505
549
|
sash.layout();
|
|
506
550
|
onDidResizeEmitter.fire();
|
|
@@ -508,18 +552,42 @@ let ModalEditorPart = class ModalEditorPart {
|
|
|
508
552
|
disposables.add(sash.onDidReset(() => {
|
|
509
553
|
const maxWidth = Math.max(MODAL_SIDEBAR_MIN_WIDTH, container.clientWidth - MODAL_MIN_WIDTH);
|
|
510
554
|
sidebarWidth = Math.min(maxWidth, MODAL_SIDEBAR_DEFAULT_WIDTH);
|
|
555
|
+
customWidth = false;
|
|
511
556
|
sidebarContainer.style.width = `${sidebarWidth}px`;
|
|
512
557
|
sash.layout();
|
|
513
558
|
onDidResizeEmitter.fire();
|
|
514
559
|
}));
|
|
515
560
|
return {
|
|
516
561
|
onDidResize: onDidResizeEmitter.event,
|
|
517
|
-
getWidth: () => sidebarWidth,
|
|
562
|
+
getWidth: () => visible ? sidebarWidth : 0,
|
|
563
|
+
hasCustomWidth: () => customWidth,
|
|
564
|
+
clampWidth: modalWidth => {
|
|
565
|
+
if (sidebarWidth + MODAL_MIN_WIDTH > modalWidth) {
|
|
566
|
+
sidebarWidth = Math.min(
|
|
567
|
+
MODAL_SIDEBAR_DEFAULT_WIDTH,
|
|
568
|
+
Math.max(MODAL_SIDEBAR_MIN_WIDTH, modalWidth - MODAL_MIN_WIDTH)
|
|
569
|
+
);
|
|
570
|
+
customWidth = false;
|
|
571
|
+
sidebarContainer.style.width = `${sidebarWidth}px`;
|
|
572
|
+
sash.layout();
|
|
573
|
+
onDidResizeEmitter.fire();
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
isVisible: () => visible,
|
|
577
|
+
setVisible: value => {
|
|
578
|
+
visible = value;
|
|
579
|
+
setVisibility(visible, sidebarContainer);
|
|
580
|
+
container.classList.toggle("has-sidebar", visible);
|
|
581
|
+
sash.state = visible ? SashState.Enabled : SashState.Disabled;
|
|
582
|
+
onDidResizeEmitter.fire();
|
|
583
|
+
},
|
|
518
584
|
layout: height => {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
585
|
+
if (visible) {
|
|
586
|
+
onDidLayoutEmitter.fire({
|
|
587
|
+
height: height - MODAL_SIDEBAR_PADDING * 2,
|
|
588
|
+
width: sidebarWidth - MODAL_SIDEBAR_PADDING * 2 - MODAL_SIDEBAR_BORDER_RIGHT
|
|
589
|
+
});
|
|
590
|
+
}
|
|
523
591
|
sash.layout();
|
|
524
592
|
},
|
|
525
593
|
updateContent: newContent => {
|
|
@@ -553,6 +621,24 @@ let ModalEditorPartImpl = class ModalEditorPartImpl extends EditorPart {
|
|
|
553
621
|
set position(value) {
|
|
554
622
|
this._position = value;
|
|
555
623
|
}
|
|
624
|
+
get sidebarWidth() {
|
|
625
|
+
return this._sidebarWidth;
|
|
626
|
+
}
|
|
627
|
+
set sidebarWidth(value) {
|
|
628
|
+
this._sidebarWidth = value;
|
|
629
|
+
}
|
|
630
|
+
get sidebarHidden() {
|
|
631
|
+
return this._sidebarHidden;
|
|
632
|
+
}
|
|
633
|
+
set sidebarHidden(value) {
|
|
634
|
+
this._sidebarHidden = value;
|
|
635
|
+
}
|
|
636
|
+
get hasSidebar() {
|
|
637
|
+
return this._hasSidebar;
|
|
638
|
+
}
|
|
639
|
+
set hasSidebar(value) {
|
|
640
|
+
this._hasSidebar = value;
|
|
641
|
+
}
|
|
556
642
|
get navigation() {
|
|
557
643
|
return this._navigation;
|
|
558
644
|
}
|
|
@@ -580,12 +666,19 @@ let ModalEditorPartImpl = class ModalEditorPartImpl extends EditorPart {
|
|
|
580
666
|
this.onDidRequestLayout = this._onDidRequestLayout.event;
|
|
581
667
|
this._onDidChangeNavigation = this._register(( new Emitter()));
|
|
582
668
|
this.onDidChangeNavigation = this._onDidChangeNavigation.event;
|
|
669
|
+
this._sidebarHidden = false;
|
|
670
|
+
this._hasSidebar = false;
|
|
671
|
+
this._onDidToggleSidebar = this._register(( new Emitter()));
|
|
672
|
+
this.onDidToggleSidebar = this._onDidToggleSidebar.event;
|
|
583
673
|
this.optionsDisposable = this._register(( new MutableDisposable()));
|
|
584
674
|
this.previousMainWindowActiveElement = null;
|
|
585
675
|
this._maximized = options?.maximized ?? false;
|
|
586
676
|
this._size = options?.size;
|
|
587
677
|
this._position = options?.position;
|
|
588
678
|
this._navigation = options?.navigation;
|
|
679
|
+
this._hasSidebar = !!options?.sidebar;
|
|
680
|
+
this._sidebarHidden = options?.sidebar?.sidebarHidden ?? false;
|
|
681
|
+
this._sidebarWidth = options?.sidebar?.sidebarWidth;
|
|
589
682
|
if (this._maximized) {
|
|
590
683
|
this.savedSize = this._size;
|
|
591
684
|
this.savedPosition = this._position;
|
|
@@ -636,6 +729,10 @@ let ModalEditorPartImpl = class ModalEditorPartImpl extends EditorPart {
|
|
|
636
729
|
}
|
|
637
730
|
this._onDidChangeMaximized.fire(this._maximized);
|
|
638
731
|
}
|
|
732
|
+
toggleSidebar() {
|
|
733
|
+
this._sidebarHidden = !this._sidebarHidden;
|
|
734
|
+
this._onDidToggleSidebar.fire();
|
|
735
|
+
}
|
|
639
736
|
handleHeaderDoubleClick() {
|
|
640
737
|
if (this._maximized) {
|
|
641
738
|
this.savedSize = undefined;
|
|
@@ -660,6 +757,13 @@ let ModalEditorPartImpl = class ModalEditorPartImpl extends EditorPart {
|
|
|
660
757
|
this._register(this.onDidChangeNavigation(
|
|
661
758
|
navigation => hasNavigationContext.set(!!navigation && navigation.total > 1)
|
|
662
759
|
));
|
|
760
|
+
const sidebarContext = EditorPartModalSidebarContext.bindTo(this.scopedContextKeyService);
|
|
761
|
+
sidebarContext.set(this._hasSidebar);
|
|
762
|
+
const sidebarVisibleContext = EditorPartModalSidebarVisibleContext.bindTo(this.scopedContextKeyService);
|
|
763
|
+
sidebarVisibleContext.set(this._hasSidebar && !this._sidebarHidden);
|
|
764
|
+
this._register(
|
|
765
|
+
this.onDidToggleSidebar(() => sidebarVisibleContext.set(this._hasSidebar && !this._sidebarHidden))
|
|
766
|
+
);
|
|
663
767
|
super.handleContextKeys();
|
|
664
768
|
}
|
|
665
769
|
removeGroup(group, preserveFocus) {
|
|
@@ -83,7 +83,6 @@ export declare abstract class AbstractPaneCompositePart extends CompositePart<Pa
|
|
|
83
83
|
protected readonly location: ViewContainerLocation;
|
|
84
84
|
readonly registryId: string;
|
|
85
85
|
private readonly globalActionsMenuId;
|
|
86
|
-
private readonly globalLeftActionsMenuId;
|
|
87
86
|
private readonly viewDescriptorService;
|
|
88
87
|
protected readonly contextKeyService: IContextKeyService;
|
|
89
88
|
private readonly extensionService;
|
|
@@ -100,10 +99,9 @@ export declare abstract class AbstractPaneCompositePart extends CompositePart<Pa
|
|
|
100
99
|
private compositeBarPosition;
|
|
101
100
|
private emptyPaneMessageElement;
|
|
102
101
|
private globalToolBar;
|
|
103
|
-
private globalLeftToolBar;
|
|
104
102
|
private blockOpening;
|
|
105
103
|
protected contentDimension: Dimension | undefined;
|
|
106
|
-
constructor(partId: SINGLE_WINDOW_PARTS, partOptions: ICompositePartOptions, activePaneCompositeSettingsKey: string, activePaneContextKey: IContextKey<string>, paneFocusContextKey: IContextKey<boolean>, nameForTelemetry: string, compositeCSSClass: string, titleForegroundColor: string | undefined, titleBorderColor: string | undefined, location: ViewContainerLocation, registryId: string, globalActionsMenuId: MenuId,
|
|
104
|
+
constructor(partId: SINGLE_WINDOW_PARTS, partOptions: ICompositePartOptions, activePaneCompositeSettingsKey: string, activePaneContextKey: IContextKey<string>, paneFocusContextKey: IContextKey<boolean>, nameForTelemetry: string, compositeCSSClass: string, titleForegroundColor: string | undefined, titleBorderColor: string | undefined, location: ViewContainerLocation, registryId: string, globalActionsMenuId: MenuId, notificationService: INotificationService, storageService: IStorageService, contextMenuService: IContextMenuService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, hoverService: IHoverService, instantiationService: IInstantiationService, themeService: IThemeService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, extensionService: IExtensionService, menuService: IMenuService);
|
|
107
105
|
private registerListeners;
|
|
108
106
|
private onDidOpen;
|
|
109
107
|
private onDidClose;
|
|
@@ -67,7 +67,6 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
67
67
|
location,
|
|
68
68
|
registryId,
|
|
69
69
|
globalActionsMenuId,
|
|
70
|
-
globalLeftActionsMenuId,
|
|
71
70
|
notificationService,
|
|
72
71
|
storageService,
|
|
73
72
|
contextMenuService,
|
|
@@ -106,7 +105,6 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
106
105
|
this.location = location;
|
|
107
106
|
this.registryId = registryId;
|
|
108
107
|
this.globalActionsMenuId = globalActionsMenuId;
|
|
109
|
-
this.globalLeftActionsMenuId = globalLeftActionsMenuId;
|
|
110
108
|
this.viewDescriptorService = viewDescriptorService;
|
|
111
109
|
this.contextKeyService = contextKeyService;
|
|
112
110
|
this.extensionService = extensionService;
|
|
@@ -251,24 +249,6 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
251
249
|
this._register(addDisposableListener(titleArea, EventType$1.Contextmenu, e => {
|
|
252
250
|
this.onTitleAreaContextMenu(( new StandardMouseEvent(getWindow(titleArea), e)));
|
|
253
251
|
}));
|
|
254
|
-
if (this.globalLeftActionsMenuId) {
|
|
255
|
-
const globalLeftTitleActionsContainer = titleArea.appendChild($(".global-actions-left"));
|
|
256
|
-
this.globalLeftToolBar = this._register(this.instantiationService.createInstance(
|
|
257
|
-
MenuWorkbenchToolBar,
|
|
258
|
-
globalLeftTitleActionsContainer,
|
|
259
|
-
this.globalLeftActionsMenuId,
|
|
260
|
-
{
|
|
261
|
-
actionViewItemProvider: (action, options) => this.actionViewItemProvider(action, options),
|
|
262
|
-
orientation: ActionsOrientation.HORIZONTAL,
|
|
263
|
-
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
264
|
-
anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
|
|
265
|
-
hoverDelegate: this.toolbarHoverDelegate,
|
|
266
|
-
hiddenItemStrategy: HiddenItemStrategy.NoHide,
|
|
267
|
-
highlightToggledItems: false,
|
|
268
|
-
telemetrySource: this.nameForTelemetry
|
|
269
|
-
}
|
|
270
|
-
));
|
|
271
|
-
}
|
|
272
252
|
const globalTitleActionsContainer = titleArea.appendChild($(".global-actions"));
|
|
273
253
|
this.globalToolBar = this._register(this.instantiationService.createInstance(
|
|
274
254
|
MenuWorkbenchToolBar,
|
|
@@ -511,8 +491,7 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
511
491
|
}
|
|
512
492
|
const toolBarWidth = this.toolBar.getItemsWidth() + this.toolBar.getItemsLength() * 4;
|
|
513
493
|
const globalToolBarWidth = this.globalToolBar ? this.globalToolBar.getItemsWidth() + this.globalToolBar.getItemsLength() * 4 : 0;
|
|
514
|
-
|
|
515
|
-
return toolBarWidth + globalToolBarWidth + globalLeftToolBarWidth + 8;
|
|
494
|
+
return toolBarWidth + globalToolBarWidth + 8;
|
|
516
495
|
}
|
|
517
496
|
onTitleAreaContextMenu(event) {
|
|
518
497
|
if (this.shouldShowCompositeBar() && this.getCompositeBarPosition() === CompositeBarPosition.TITLE) {
|
|
@@ -563,6 +542,6 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
563
542
|
return undefined;
|
|
564
543
|
}
|
|
565
544
|
};
|
|
566
|
-
AbstractPaneCompositePart = AbstractPaneCompositePart_1 = ( __decorate([( __param(
|
|
545
|
+
AbstractPaneCompositePart = AbstractPaneCompositePart_1 = ( __decorate([( __param(12, INotificationService)), ( __param(13, IStorageService)), ( __param(14, IContextMenuService)), ( __param(15, IWorkbenchLayoutService)), ( __param(16, IKeybindingService)), ( __param(17, IHoverService)), ( __param(18, IInstantiationService)), ( __param(19, IThemeService)), ( __param(20, IViewDescriptorService)), ( __param(21, IContextKeyService)), ( __param(22, IExtensionService)), ( __param(23, IMenuService))], AbstractPaneCompositePart));
|
|
567
546
|
|
|
568
547
|
export { AbstractPaneCompositePart, CompositeBarPosition };
|
|
@@ -85,7 +85,7 @@ let PanelPart = class PanelPart extends AbstractPaneCompositePart {
|
|
|
85
85
|
super(Parts.PANEL_PART, {
|
|
86
86
|
hasTitle: true,
|
|
87
87
|
trailingSeparator: true
|
|
88
|
-
}, PanelPart_1.activePanelSettingsKey, ActivePanelContext.bindTo(contextKeyService), PanelFocusContext.bindTo(contextKeyService), "panel", "panel", undefined, PANEL_TITLE_BORDER, ViewContainerLocation.Panel, Extensions.Panels, MenuId.PanelTitle,
|
|
88
|
+
}, PanelPart_1.activePanelSettingsKey, ActivePanelContext.bindTo(contextKeyService), PanelFocusContext.bindTo(contextKeyService), "panel", "panel", undefined, PANEL_TITLE_BORDER, ViewContainerLocation.Panel, Extensions.Panels, MenuId.PanelTitle, notificationService, storageService, contextMenuService, layoutService, keybindingService, hoverService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, menuService);
|
|
89
89
|
this.commandService = commandService;
|
|
90
90
|
this.configurationService = configurationService;
|
|
91
91
|
this.minimumWidth = 300;
|
|
@@ -91,7 +91,7 @@ let SidebarPart = class SidebarPart extends AbstractPaneCompositePart {
|
|
|
91
91
|
hasTitle: true,
|
|
92
92
|
trailingSeparator: false,
|
|
93
93
|
borderWidth: () => (this.getColor(SIDE_BAR_BORDER) || this.getColor(contrastBorder)) ? 1 : 0
|
|
94
|
-
}, SidebarPart_1.activeViewletSettingsKey, ActiveViewletContext.bindTo(contextKeyService), SidebarFocusContext.bindTo(contextKeyService), "sideBar", "viewlet", SIDE_BAR_TITLE_FOREGROUND, SIDE_BAR_TITLE_BORDER, ViewContainerLocation.Sidebar, Extensions.Viewlets, MenuId.SidebarTitle,
|
|
94
|
+
}, SidebarPart_1.activeViewletSettingsKey, ActiveViewletContext.bindTo(contextKeyService), SidebarFocusContext.bindTo(contextKeyService), "sideBar", "viewlet", SIDE_BAR_TITLE_FOREGROUND, SIDE_BAR_TITLE_BORDER, ViewContainerLocation.Sidebar, Extensions.Viewlets, MenuId.SidebarTitle, notificationService, storageService, contextMenuService, layoutService, keybindingService, hoverService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, menuService);
|
|
95
95
|
this.configurationService = configurationService;
|
|
96
96
|
this.minimumWidth = 170;
|
|
97
97
|
this.maximumWidth = Number.POSITIVE_INFINITY;
|
|
@@ -164,6 +164,14 @@ export interface IWorkbenchConstructionOptions {
|
|
|
164
164
|
* such as creating tunnels and showing candidate ports to forward.
|
|
165
165
|
*/
|
|
166
166
|
readonly tunnelProvider?: ITunnelProvider;
|
|
167
|
+
/**
|
|
168
|
+
* A provider for discovering and connecting to dev tunnel agent hosts.
|
|
169
|
+
*
|
|
170
|
+
* The embedder (e.g. vscode.dev) implements this to handle tunnel listing
|
|
171
|
+
* and relay WebSocket proxying. If not provided, the sessions workbench
|
|
172
|
+
* will not be able to discover tunnel-based agent hosts.
|
|
173
|
+
*/
|
|
174
|
+
readonly tunnelDiscoveryProvider?: ITunnelDiscoveryProvider;
|
|
167
175
|
/**
|
|
168
176
|
* Endpoints to be used for proxying authentication code exchange calls in the browser.
|
|
169
177
|
*/
|
|
@@ -379,6 +387,67 @@ export interface ITunnelProvider {
|
|
|
379
387
|
*/
|
|
380
388
|
features?: TunnelProviderFeatures;
|
|
381
389
|
}
|
|
390
|
+
/**
|
|
391
|
+
* Enables the embedder to provide tunnel discovery and connection for agent
|
|
392
|
+
* host sessions.
|
|
393
|
+
*/
|
|
394
|
+
export interface ITunnelDiscoveryProvider {
|
|
395
|
+
/**
|
|
396
|
+
* List dev tunnels that have agent hosts available.
|
|
397
|
+
*
|
|
398
|
+
* The embedder is responsible for acquiring and managing authentication
|
|
399
|
+
* tokens internally.
|
|
400
|
+
*
|
|
401
|
+
* @returns An array of discovered tunnels with their metadata.
|
|
402
|
+
*/
|
|
403
|
+
listTunnels(): Promise<IDiscoveredTunnel[]>;
|
|
404
|
+
/**
|
|
405
|
+
* Connect to a tunnel's agent host port and return a message-passing
|
|
406
|
+
* interface. The embedder handles all connection details including
|
|
407
|
+
* authentication (e.g. using the Dev Tunnels SDK browser WebSocket
|
|
408
|
+
* relay + SSH port forwarding).
|
|
409
|
+
*
|
|
410
|
+
* The returned {@link ITunnelConnection} carries JSON text messages
|
|
411
|
+
* for the Agent Host Protocol.
|
|
412
|
+
*
|
|
413
|
+
* @param tunnelId The tunnel to connect to.
|
|
414
|
+
* @param clusterId The cluster region of the tunnel.
|
|
415
|
+
*/
|
|
416
|
+
connect(tunnelId: string, clusterId: string): Promise<ITunnelConnection>;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* A bidirectional message-passing connection to a tunnel's agent host.
|
|
420
|
+
* Returned by {@link ITunnelDiscoveryProvider.connect}.
|
|
421
|
+
*/
|
|
422
|
+
export interface ITunnelConnection {
|
|
423
|
+
/**
|
|
424
|
+
* Send a text message to the agent host.
|
|
425
|
+
*/
|
|
426
|
+
send(data: string): void;
|
|
427
|
+
/**
|
|
428
|
+
* Fires when a text message is received from the agent host.
|
|
429
|
+
*/
|
|
430
|
+
readonly onMessage: Event<string>;
|
|
431
|
+
/**
|
|
432
|
+
* Fires when the connection is closed.
|
|
433
|
+
*/
|
|
434
|
+
readonly onClose: Event<void>;
|
|
435
|
+
/**
|
|
436
|
+
* Close the connection and release resources.
|
|
437
|
+
*/
|
|
438
|
+
close(): void;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* A tunnel discovered by {@link ITunnelDiscoveryProvider}.
|
|
442
|
+
*/
|
|
443
|
+
export interface IDiscoveredTunnel {
|
|
444
|
+
readonly tunnelId: string;
|
|
445
|
+
readonly clusterId: string;
|
|
446
|
+
readonly name: string;
|
|
447
|
+
readonly tags: readonly string[];
|
|
448
|
+
/** Number of hosts currently accepting connections (0 = offline). */
|
|
449
|
+
readonly hostConnectionCount: number;
|
|
450
|
+
}
|
|
382
451
|
export interface ITunnelFactory {
|
|
383
452
|
(tunnelOptions: ITunnelOptions, tunnelCreationOptions: TunnelCreationOptions): Promise<ITunnel> | undefined;
|
|
384
453
|
}
|
|
@@ -55,6 +55,8 @@ export declare const EditorPartMaximizedEditorGroupContext: RawContextKey<boolea
|
|
|
55
55
|
export declare const EditorPartModalContext: RawContextKey<boolean>;
|
|
56
56
|
export declare const EditorPartModalMaximizedContext: RawContextKey<boolean>;
|
|
57
57
|
export declare const EditorPartModalNavigationContext: RawContextKey<boolean>;
|
|
58
|
+
export declare const EditorPartModalSidebarContext: RawContextKey<boolean>;
|
|
59
|
+
export declare const EditorPartModalSidebarVisibleContext: RawContextKey<boolean>;
|
|
58
60
|
export declare const EditorsVisibleContext: RawContextKey<boolean>;
|
|
59
61
|
export declare const InEditorZenModeContext: RawContextKey<boolean>;
|
|
60
62
|
export declare const IsMainEditorCenteredLayoutContext: RawContextKey<boolean>;
|
|
@@ -37,7 +37,7 @@ const TemporaryWorkspaceContext = ( new RawContextKey("temporaryWorkspace", fals
|
|
|
37
37
|
4084,
|
|
38
38
|
"The scheme of the current workspace is from a temporary file system."
|
|
39
39
|
))));
|
|
40
|
-
const IsSessionsWindowContext = ( new RawContextKey("isSessionsWindow", false, ( localize(4085, "Whether the current window is a sessions window."))));
|
|
40
|
+
const IsSessionsWindowContext = ( new RawContextKey("isSessionsWindow", false, ( localize(4085, "Whether the current window is a agent sessions window."))));
|
|
41
41
|
const HasWebFileSystemAccess = ( new RawContextKey("hasWebFileSystemAccess", false, true));
|
|
42
42
|
const EmbedderIdentifierContext = ( new RawContextKey("embedderIdentifier", undefined, ( localize(
|
|
43
43
|
4086,
|
|
@@ -93,37 +93,39 @@ const EditorPartMaximizedEditorGroupContext = ( new RawContextKey("editorPartMax
|
|
|
93
93
|
const EditorPartModalContext = ( new RawContextKey("editorPartModal", false, ( localize(4116, "Whether focus is in a modal editor part"))));
|
|
94
94
|
const EditorPartModalMaximizedContext = ( new RawContextKey("editorPartModalMaximized", false, ( localize(4117, "Whether the modal editor part is maximized"))));
|
|
95
95
|
const EditorPartModalNavigationContext = ( new RawContextKey("editorPartModalNavigation", false, ( localize(4118, "Whether the modal editor part has navigation context"))));
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
const
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
const
|
|
96
|
+
const EditorPartModalSidebarContext = ( new RawContextKey("editorPartModalSidebar", false, ( localize(4119, "Whether the modal editor part has a sidebar"))));
|
|
97
|
+
const EditorPartModalSidebarVisibleContext = ( new RawContextKey("editorPartModalSidebarVisible", false, ( localize(4120, "Whether the modal editor part sidebar is visible"))));
|
|
98
|
+
const EditorsVisibleContext = ( new RawContextKey("editorIsOpen", false, ( localize(4121, "Whether an editor is open"))));
|
|
99
|
+
const InEditorZenModeContext = ( new RawContextKey("inZenMode", false, ( localize(4122, "Whether Zen mode is enabled"))));
|
|
100
|
+
const IsMainEditorCenteredLayoutContext = ( new RawContextKey("isCenteredLayout", false, ( localize(4123, "Whether centered layout is enabled for the main editor"))));
|
|
101
|
+
const SplitEditorsVertically = ( new RawContextKey("splitEditorsVertically", false, ( localize(4124, "Whether editors split vertically"))));
|
|
102
|
+
const MainEditorAreaVisibleContext = ( new RawContextKey("mainEditorAreaVisible", true, ( localize(4125, "Whether the editor area in the main window is visible"))));
|
|
103
|
+
const EditorTabsVisibleContext = ( new RawContextKey("editorTabsVisible", true, ( localize(4126, "Whether editor tabs are visible"))));
|
|
104
|
+
const SideBarVisibleContext = ( new RawContextKey("sideBarVisible", false, ( localize(4127, "Whether the sidebar is visible"))));
|
|
105
|
+
const SidebarFocusContext = ( new RawContextKey("sideBarFocus", false, ( localize(4128, "Whether the sidebar has keyboard focus"))));
|
|
106
|
+
const ActiveViewletContext = ( new RawContextKey("activeViewlet", "", ( localize(4129, "The identifier of the active viewlet"))));
|
|
107
|
+
const StatusBarFocused = ( new RawContextKey("statusBarFocused", false, ( localize(4130, "Whether the status bar has keyboard focus"))));
|
|
108
|
+
const TitleBarStyleContext = ( new RawContextKey("titleBarStyle", "custom", ( localize(4131, "Style of the window title bar"))));
|
|
109
|
+
const TitleBarVisibleContext = ( new RawContextKey("titleBarVisible", false, ( localize(4132, "Whether the title bar is visible"))));
|
|
110
|
+
const IsCompactTitleBarContext = ( new RawContextKey("isCompactTitleBar", false, ( localize(4133, "Title bar is in compact mode"))));
|
|
111
|
+
const BannerFocused = ( new RawContextKey("bannerFocused", false, ( localize(4134, "Whether the banner has keyboard focus"))));
|
|
112
|
+
const NotificationFocusedContext = ( new RawContextKey("notificationFocus", true, ( localize(4135, "Whether a notification has keyboard focus"))));
|
|
113
|
+
const NotificationsCenterVisibleContext = ( new RawContextKey("notificationCenterVisible", false, ( localize(4136, "Whether the notifications center is visible"))));
|
|
114
|
+
const NotificationsToastsVisibleContext = ( new RawContextKey("notificationToastsVisible", false, ( localize(4137, "Whether a notification toast is visible"))));
|
|
115
|
+
const ActiveAuxiliaryContext = ( new RawContextKey("activeAuxiliary", "", ( localize(4138, "The identifier of the active auxiliary panel"))));
|
|
116
|
+
const AuxiliaryBarFocusContext = ( new RawContextKey("auxiliaryBarFocus", false, ( localize(4139, "Whether the auxiliary bar has keyboard focus"))));
|
|
117
|
+
const AuxiliaryBarVisibleContext = ( new RawContextKey("auxiliaryBarVisible", false, ( localize(4140, "Whether the auxiliary bar is visible"))));
|
|
118
|
+
const AuxiliaryBarMaximizedContext = ( new RawContextKey("auxiliaryBarMaximized", false, ( localize(4141, "Whether the auxiliary bar is maximized"))));
|
|
119
|
+
const ActivePanelContext = ( new RawContextKey("activePanel", "", ( localize(4142, "The identifier of the active panel"))));
|
|
120
|
+
const PanelFocusContext = ( new RawContextKey("panelFocus", false, ( localize(4143, "Whether the panel has keyboard focus"))));
|
|
121
|
+
const PanelPositionContext = ( new RawContextKey("panelPosition", "bottom", ( localize(4144, "The position of the panel, always 'bottom'"))));
|
|
120
122
|
const PanelAlignmentContext = ( new RawContextKey("panelAlignment", "center", ( localize(
|
|
121
|
-
|
|
123
|
+
4145,
|
|
122
124
|
"The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
|
|
123
125
|
))));
|
|
124
|
-
const PanelVisibleContext = ( new RawContextKey("panelVisible", false, ( localize(
|
|
125
|
-
const PanelMaximizedContext = ( new RawContextKey("panelMaximized", false, ( localize(
|
|
126
|
-
const FocusedViewContext = ( new RawContextKey("focusedView", "", ( localize(
|
|
126
|
+
const PanelVisibleContext = ( new RawContextKey("panelVisible", false, ( localize(4146, "Whether the panel is visible"))));
|
|
127
|
+
const PanelMaximizedContext = ( new RawContextKey("panelMaximized", false, ( localize(4147, "Whether the panel is maximized"))));
|
|
128
|
+
const FocusedViewContext = ( new RawContextKey("focusedView", "", ( localize(4148, "The identifier of the view that has keyboard focus"))));
|
|
127
129
|
function getVisbileViewContextKey(viewId) {
|
|
128
130
|
return `view.${viewId}.visible`;
|
|
129
131
|
}
|
|
@@ -134,55 +136,55 @@ let AbstractResourceContextKey = class AbstractResourceContextKey {
|
|
|
134
136
|
static {
|
|
135
137
|
this.Scheme = ( new RawContextKey("resourceScheme", undefined, {
|
|
136
138
|
type: "string",
|
|
137
|
-
description: ( localize(
|
|
139
|
+
description: ( localize(4149, "The scheme of the resource"))
|
|
138
140
|
}));
|
|
139
141
|
}
|
|
140
142
|
static {
|
|
141
143
|
this.Filename = ( new RawContextKey("resourceFilename", undefined, {
|
|
142
144
|
type: "string",
|
|
143
|
-
description: ( localize(
|
|
145
|
+
description: ( localize(4150, "The file name of the resource"))
|
|
144
146
|
}));
|
|
145
147
|
}
|
|
146
148
|
static {
|
|
147
149
|
this.Dirname = ( new RawContextKey("resourceDirname", undefined, {
|
|
148
150
|
type: "string",
|
|
149
|
-
description: ( localize(
|
|
151
|
+
description: ( localize(4151, "The folder name the resource is contained in"))
|
|
150
152
|
}));
|
|
151
153
|
}
|
|
152
154
|
static {
|
|
153
155
|
this.Path = ( new RawContextKey("resourcePath", undefined, {
|
|
154
156
|
type: "string",
|
|
155
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(4152, "The full path of the resource"))
|
|
156
158
|
}));
|
|
157
159
|
}
|
|
158
160
|
static {
|
|
159
161
|
this.LangId = ( new RawContextKey("resourceLangId", undefined, {
|
|
160
162
|
type: "string",
|
|
161
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(4153, "The language identifier of the resource"))
|
|
162
164
|
}));
|
|
163
165
|
}
|
|
164
166
|
static {
|
|
165
167
|
this.Resource = ( new RawContextKey("resource", undefined, {
|
|
166
168
|
type: "URI",
|
|
167
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(4154, "The full value of the resource including scheme and path"))
|
|
168
170
|
}));
|
|
169
171
|
}
|
|
170
172
|
static {
|
|
171
173
|
this.Extension = ( new RawContextKey("resourceExtname", undefined, {
|
|
172
174
|
type: "string",
|
|
173
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(4155, "The extension name of the resource"))
|
|
174
176
|
}));
|
|
175
177
|
}
|
|
176
178
|
static {
|
|
177
179
|
this.HasResource = ( new RawContextKey("resourceSet", undefined, {
|
|
178
180
|
type: "boolean",
|
|
179
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(4156, "Whether a resource is present or not"))
|
|
180
182
|
}));
|
|
181
183
|
}
|
|
182
184
|
static {
|
|
183
185
|
this.IsFileSystemResource = ( new RawContextKey("isFileSystemResource", undefined, {
|
|
184
186
|
type: "boolean",
|
|
185
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(4157, "Whether the resource is backed by a file system provider"))
|
|
186
188
|
}));
|
|
187
189
|
}
|
|
188
190
|
constructor(_contextKeyService, _fileService, _languageService, _modelService) {
|
|
@@ -300,4 +302,4 @@ function getAvailableEditorIds(editor, editorResolverService) {
|
|
|
300
302
|
return [];
|
|
301
303
|
}
|
|
302
304
|
|
|
303
|
-
export { ActiveAuxiliaryContext, ActiveCompareEditorCanSwapContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanRevertContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorReadonlyContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarMaximizedContext, AuxiliaryBarVisibleContext, BannerFocused, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorPartMaximizedEditorGroupContext, EditorPartModalContext, EditorPartModalMaximizedContext, EditorPartModalNavigationContext, EditorPartMultipleEditorGroupsContext, EditorTabsVisibleContext, EditorsVisibleContext, EmbedderIdentifierContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InAutomationContext, InEditorZenModeContext, IsAuxiliaryWindowContext, IsAuxiliaryWindowFocusedContext, IsCompactTitleBarContext, IsMainEditorCenteredLayoutContext, IsMainWindowFullscreenContext, IsSandboxWorkspaceContext, IsSessionsWindowContext, MainEditorAreaVisibleContext, MultipleEditorGroupsContext, MultipleEditorsSelectedInGroupContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelMaximizedContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SelectedEditorsInGroupFileOrUntitledResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, SplitEditorsVertically, StaticResourceContextKey, StatusBarFocused, TemporaryWorkspaceContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, TitleBarStyleContext, TitleBarVisibleContext, TwoEditorsSelectedInGroupContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getVisbileViewContextKey };
|
|
305
|
+
export { ActiveAuxiliaryContext, ActiveCompareEditorCanSwapContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanRevertContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorReadonlyContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarMaximizedContext, AuxiliaryBarVisibleContext, BannerFocused, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorPartMaximizedEditorGroupContext, EditorPartModalContext, EditorPartModalMaximizedContext, EditorPartModalNavigationContext, EditorPartModalSidebarContext, EditorPartModalSidebarVisibleContext, EditorPartMultipleEditorGroupsContext, EditorTabsVisibleContext, EditorsVisibleContext, EmbedderIdentifierContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InAutomationContext, InEditorZenModeContext, IsAuxiliaryWindowContext, IsAuxiliaryWindowFocusedContext, IsCompactTitleBarContext, IsMainEditorCenteredLayoutContext, IsMainWindowFullscreenContext, IsSandboxWorkspaceContext, IsSessionsWindowContext, MainEditorAreaVisibleContext, MultipleEditorGroupsContext, MultipleEditorsSelectedInGroupContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelMaximizedContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SelectedEditorsInGroupFileOrUntitledResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, SplitEditorsVertically, StaticResourceContextKey, StatusBarFocused, TemporaryWorkspaceContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, TitleBarStyleContext, TitleBarVisibleContext, TwoEditorsSelectedInGroupContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getVisbileViewContextKey };
|