@codingame/monaco-vscode-api 4.4.1 → 4.5.0-improve-code-splitting.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/extensions.js +4 -4
- package/lifecycle.js +2 -2
- package/localExtensionHost.js +9 -8
- package/missing-services.js +200 -194
- package/monaco.d.ts +1 -1
- package/monaco.js +8 -8
- package/package.json +8 -8
- package/service-override/tools/editor.d.ts +13 -13
- package/service-override/tools/editor.js +10 -10
- package/service-override/tools/views.js +6 -6
- package/services.d.ts +69 -58
- package/services.js +62 -58
- package/tools/l10n.js +2 -2
- package/vscode/src/vs/base/common/labels.js +2 -2
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaInput.js +2 -2
- package/vscode/src/vs/editor/browser/editorExtensions.d.ts +1 -1
- package/vscode/src/vs/editor/browser/editorExtensions.js +4 -3
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +1 -1
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +6 -5
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +5 -5
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +4 -4
- package/vscode/src/vs/editor/browser/services/openerService.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +9 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +2 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +4 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +3 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +3 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +1 -1
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.js +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -2
- package/vscode/src/vs/editor/common/services/markerDecorationsService.js +2 -1
- package/vscode/src/vs/editor/common/services/modelService.js +2 -2
- package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -2
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +2 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +4 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +5 -5
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +2 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/color.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +8 -6
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +2 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +13 -9
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +4 -3
- package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -2
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +6 -3
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +2 -1
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +6 -5
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +3 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +4 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +7 -5
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +4 -3
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +6 -3
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +6 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +7 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -3
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +6 -5
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -1
- package/vscode/src/vs/editor/contrib/links/browser/links.js +2 -2
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +3 -2
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +2 -1
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +4 -4
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +5 -4
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +2 -2
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +2 -2
- package/vscode/src/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestAlternatives.js +2 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +6 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +3 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +6 -6
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +3 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +4 -4
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +1 -2
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -2
- package/vscode/src/vs/editor/editor.api.d.ts +80 -22
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +13 -11
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditorService.js +2 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +31 -26
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +3 -3
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -17
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -3
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +19 -0
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.js +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +1 -20
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +4 -6
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +22 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.js +3 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +2 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +3 -2
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +6 -5
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +2 -2
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +9 -8
- package/vscode/src/vs/platform/actions/browser/toolbar.js +6 -5
- package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -24
- package/vscode/src/vs/platform/actions/common/actions.js +5 -5
- package/vscode/src/vs/platform/actions/common/actions.service.d.ts +25 -0
- package/vscode/src/vs/platform/actions/common/actions.service.js +3 -0
- package/vscode/src/vs/platform/actions/common/menuService.js +3 -3
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
- package/vscode/src/vs/platform/clipboard/common/{clipboardService.d.ts → clipboardService.service.d.ts} +14 -14
- package/vscode/src/vs/platform/commands/common/commands.d.ts +2 -10
- package/vscode/src/vs/platform/commands/common/commands.js +2 -3
- package/vscode/src/vs/platform/commands/common/commands.service.d.ts +13 -0
- package/vscode/src/vs/platform/commands/common/commands.service.js +3 -0
- package/vscode/src/vs/platform/configuration/common/configuration.d.ts +10 -57
- package/vscode/src/vs/platform/configuration/common/configuration.js +1 -3
- package/vscode/src/vs/platform/configuration/common/configuration.service.d.ts +56 -0
- package/vscode/src/vs/platform/configuration/common/configuration.service.js +3 -0
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +3 -2
- package/vscode/src/vs/platform/contextkey/common/contextkey.d.ts +2 -16
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +1 -3
- package/vscode/src/vs/platform/contextkey/common/contextkey.service.d.ts +22 -0
- package/vscode/src/vs/platform/contextkey/common/contextkey.service.js +3 -0
- package/vscode/src/vs/platform/contextview/browser/contextMenuService.js +7 -6
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +3 -21
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +25 -0
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +1 -1
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.js +1 -3
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.service.js +4 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +1 -121
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +7 -4
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +125 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.js +4 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +3 -3
- package/vscode/src/vs/platform/environment/common/environment.d.ts +1 -41
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +45 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -33
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +37 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.js +6 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +4 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.service.js +3 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.js +3 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.js +3 -0
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.js +3 -0
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +1 -3
- package/vscode/src/vs/platform/extensionResourceLoader/common/{extensionResourceLoader.d.ts → extensionResourceLoader.service.d.ts} +10 -10
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service.js +3 -0
- package/vscode/src/vs/platform/extensions/common/extensions.js +1 -3
- package/vscode/src/vs/platform/extensions/common/extensions.service.js +3 -0
- package/vscode/src/vs/platform/files/common/files.d.ts +2 -211
- package/vscode/src/vs/platform/files/common/files.js +1 -3
- package/vscode/src/vs/platform/files/common/files.service.d.ts +218 -0
- package/vscode/src/vs/platform/files/common/files.service.js +3 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +2 -1
- package/vscode/src/vs/platform/hover/browser/hover.d.ts +1 -35
- package/vscode/src/vs/platform/hover/browser/hover.js +3 -4
- package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +38 -0
- package/vscode/src/vs/platform/hover/browser/hover.service.js +3 -0
- package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +1 -57
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +62 -0
- package/vscode/src/vs/platform/keybinding/common/keybindingResolver.d.ts +2 -1
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +1 -3
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.service.js +3 -0
- package/vscode/src/vs/platform/label/common/label.d.ts +1 -37
- package/vscode/src/vs/platform/label/common/label.service.d.ts +39 -0
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.d.ts +1 -10
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +2 -4
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +13 -0
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.js +3 -0
- package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +1 -83
- package/vscode/src/vs/platform/layout/browser/layoutService.service.d.ts +84 -0
- package/vscode/src/vs/platform/list/browser/listService.js +8 -7
- package/vscode/src/vs/platform/list/browser/listService.service.js +3 -0
- package/vscode/src/vs/platform/log/common/log.d.ts +1 -77
- package/vscode/src/vs/platform/log/common/log.js +1 -4
- package/vscode/src/vs/platform/log/common/log.service.d.ts +87 -0
- package/vscode/src/vs/platform/log/common/log.service.js +4 -0
- package/vscode/src/vs/platform/markers/common/markers.d.ts +1 -19
- package/vscode/src/vs/platform/markers/common/markers.js +1 -3
- package/vscode/src/vs/platform/markers/common/markers.service.d.ts +22 -0
- package/vscode/src/vs/platform/markers/common/markers.service.js +3 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +2 -91
- package/vscode/src/vs/platform/notification/common/notification.js +2 -5
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +94 -0
- package/vscode/src/vs/platform/notification/common/notification.service.js +3 -0
- package/vscode/src/vs/platform/opener/browser/link.js +1 -1
- package/vscode/src/vs/platform/opener/common/opener.d.ts +1 -41
- package/vscode/src/vs/platform/opener/common/opener.js +1 -3
- package/vscode/src/vs/platform/opener/common/opener.service.d.ts +45 -0
- package/vscode/src/vs/platform/opener/common/opener.service.js +3 -0
- package/vscode/src/vs/platform/policy/common/policy.js +1 -3
- package/vscode/src/vs/platform/policy/common/policy.service.js +3 -0
- package/vscode/src/vs/platform/product/common/productService.js +1 -3
- package/vscode/src/vs/platform/product/common/productService.service.js +3 -0
- package/vscode/src/vs/platform/progress/common/progress.js +2 -4
- package/vscode/src/vs/platform/progress/common/progress.service.js +4 -0
- package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +3 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +7 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +13 -81
- package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -3
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +82 -0
- package/vscode/src/vs/platform/quickinput/common/quickInput.service.js +3 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -26
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +1 -3
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.d.ts +27 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.js +3 -0
- package/vscode/src/vs/platform/remote/common/{remoteExtensionsScanner.js → remoteExtensionsScanner.service.js} +1 -2
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.d.ts +2 -16
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.d.ts +20 -0
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.js +3 -0
- package/vscode/src/vs/platform/request/common/request.js +1 -3
- package/vscode/src/vs/platform/request/common/request.service.js +3 -0
- package/vscode/src/vs/platform/secrets/common/secrets.d.ts +1 -10
- package/vscode/src/vs/platform/secrets/common/secrets.service.d.ts +11 -0
- package/vscode/src/vs/platform/secrets/common/secrets.service.js +3 -0
- package/vscode/src/vs/platform/sign/common/sign.js +1 -3
- package/vscode/src/vs/platform/sign/common/sign.service.js +4 -0
- package/vscode/src/vs/platform/storage/common/storage.d.ts +3 -151
- package/vscode/src/vs/platform/storage/common/storage.js +1 -3
- package/vscode/src/vs/platform/storage/common/storage.service.d.ts +158 -0
- package/vscode/src/vs/platform/storage/common/storage.service.js +3 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -34
- package/vscode/src/vs/platform/telemetry/common/telemetry.js +1 -4
- package/vscode/src/vs/platform/telemetry/common/telemetry.service.d.ts +35 -0
- package/vscode/src/vs/platform/telemetry/common/telemetry.service.js +4 -0
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -12
- package/vscode/src/vs/platform/terminal/common/terminal.js +1 -3
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +14 -0
- package/vscode/src/vs/platform/terminal/common/terminal.service.js +3 -0
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +2 -14
- package/vscode/src/vs/platform/theme/common/themeService.js +1 -3
- package/vscode/src/vs/platform/theme/common/themeService.service.d.ts +16 -0
- package/vscode/src/vs/platform/theme/common/themeService.service.js +3 -0
- package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +1 -31
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +3 -5
- package/vscode/src/vs/platform/tunnel/common/tunnel.service.d.ts +34 -0
- package/vscode/src/vs/platform/tunnel/common/tunnel.service.js +3 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.js +1 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedo.service.js +3 -0
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +4 -4
- package/vscode/src/vs/platform/update/common/update.js +1 -3
- package/vscode/src/vs/platform/update/common/update.service.js +3 -0
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.d.ts +38 -0
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +1 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +1 -23
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -7
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.d.ts +27 -0
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.js +3 -0
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +11 -9
- package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.service.js +3 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +1 -11
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.js +11 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.service.js +3 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +6 -8
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.service.js +3 -0
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +9 -7
- package/vscode/src/vs/platform/workspace/common/editSessions.js +1 -3
- package/vscode/src/vs/platform/workspace/common/editSessions.service.js +3 -0
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -53
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -3
- package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +57 -0
- package/vscode/src/vs/platform/workspace/common/workspace.service.js +3 -0
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.d.ts +1 -42
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.d.ts +46 -0
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.js +5 -0
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +1 -3
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.js +3 -0
- package/vscode/src/vs/workbench/api/browser/statusBarService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDecorations.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLocalizationService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMessageService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostOutput.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStoragePaths.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTask.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +4 -3
- package/vscode/src/vs/workbench/api/common/extensionHostMain.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +15 -15
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +13 -11
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +2 -1
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +9 -9
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +9 -9
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +10 -9
- package/vscode/src/vs/workbench/browser/actions.d.ts +3 -2
- package/vscode/src/vs/workbench/browser/actions.js +3 -2
- package/vscode/src/vs/workbench/browser/codeeditor.js +5 -4
- package/vscode/src/vs/workbench/browser/composite.d.ts +3 -3
- package/vscode/src/vs/workbench/browser/dnd.js +9 -8
- package/vscode/src/vs/workbench/browser/editor.js +3 -3
- package/vscode/src/vs/workbench/browser/labels.js +7 -7
- package/vscode/src/vs/workbench/browser/panecomposite.d.ts +6 -6
- package/vscode/src/vs/workbench/browser/panecomposite.js +6 -6
- package/vscode/src/vs/workbench/browser/part.d.ts +4 -3
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.js +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +15 -10
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +8 -5
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +15 -14
- package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +14 -11
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -15
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +5 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +6 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +17 -13
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +9 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +2 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +11 -10
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +9 -8
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +20 -18
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +5 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +11 -8
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -5
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +3 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsTelemetry.js +3 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +13 -11
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +9 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +20 -16
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +25 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +9 -8
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +10 -9
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +10 -9
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +15 -12
- package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +9 -9
- package/vscode/src/vs/workbench/browser/quickaccess.js +4 -4
- package/vscode/src/vs/workbench/common/component.d.ts +4 -2
- package/vscode/src/vs/workbench/common/configuration.js +3 -3
- package/vscode/src/vs/workbench/common/contextkeys.js +3 -2
- package/vscode/src/vs/workbench/common/contributions.js +4 -4
- package/vscode/src/vs/workbench/common/editor/binaryEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +5 -4
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +5 -4
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +3 -2
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +7 -6
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +6 -6
- package/vscode/src/vs/workbench/common/editor/textResourceEditorModel.js +2 -2
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/notifications.js +5 -4
- package/vscode/src/vs/workbench/common/resources.js +2 -2
- package/vscode/src/vs/workbench/common/views.d.ts +2 -50
- package/vscode/src/vs/workbench/common/views.js +1 -3
- package/vscode/src/vs/workbench/common/views.service.d.ts +53 -0
- package/vscode/src/vs/workbench/common/views.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +2 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +8 -6
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +3 -2
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +6 -5
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +10 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +4 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +5 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +3 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +10 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +11 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +13 -13
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +10 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +19 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +3 -193
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +1 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debug.service.d.ts +198 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.js +4 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +51 -44
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +8 -6
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +6 -8
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +17 -16
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +13 -10
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +13 -11
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +30 -26
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +8 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +17 -14
- package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -38
- package/vscode/src/vs/workbench/contrib/files/browser/files.editorPane.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/files.js +1 -3
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +11 -10
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +24 -22
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +23 -19
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +13 -12
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +11 -9
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -3
- package/vscode/src/vs/workbench/contrib/files/common/explorerModel.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/files/common/files.js +2 -2
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +14 -12
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -5
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +7 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +11 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +8 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +1 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -6
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +7 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +4 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +5 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +1 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +7 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +16 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +16 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +1 -1
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +19 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +7 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +11 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +1 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.service.js +4 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.service.js +4 -0
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +7 -6
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +5 -4
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +1 -8
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +1 -3
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +20 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +32 -25
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +17 -12
- package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -4
- package/vscode/src/vs/workbench/contrib/scm/common/scm.service.js +4 -0
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +8 -7
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -11
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/search/common/search.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.d.ts +1 -15
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.service.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +4 -3
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -3
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +0 -2
- package/vscode/src/vs/workbench/contrib/tags/common/{workspaceTags.js → workspaceTags.service.js} +0 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -18
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +1 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +1 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.js +4 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +1 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +1 -3
- package/vscode/src/vs/workbench/contrib/timeline/common/timeline.service.js +4 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.js +2 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +9 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +6 -6
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service.js +3 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +1 -38
- package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -3
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +40 -0
- package/vscode/src/vs/workbench/services/activity/common/activity.service.js +3 -0
- package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service.js +3 -0
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +1 -3
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.js +3 -0
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +3 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.service.js +3 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.js +3 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +1 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.js +4 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service.js +3 -0
- package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -11
- package/vscode/src/vs/workbench/services/banner/browser/bannerService.service.d.ts +14 -0
- package/vscode/src/vs/workbench/services/configuration/common/configuration.js +1 -4
- package/vscode/src/vs/workbench/services/configuration/common/configuration.service.js +4 -0
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.service.js +3 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +4 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +12 -10
- package/vscode/src/vs/workbench/services/editor/browser/editorService.js +11 -9
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +4 -5
- package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +3 -2
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -48
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +1 -3
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +50 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +2 -62
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -3
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +65 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.js +3 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +3 -211
- package/vscode/src/vs/workbench/services/editor/common/editorService.js +1 -3
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +214 -0
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.js +3 -0
- package/vscode/src/vs/workbench/services/environment/browser/{environmentService.d.ts → environmentService.service.d.ts} +8 -8
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.js +4 -0
- package/vscode/src/vs/workbench/services/environment/common/{environmentService.d.ts → environmentService.service.d.ts} +4 -4
- package/vscode/src/vs/workbench/services/environment/common/{environmentService.js → environmentService.service.js} +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.service.js +3 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +1 -3
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.service.js +3 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -8
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.js +8 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +8 -7
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.js +3 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.js +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +6 -7
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.js +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +6 -131
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +1 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +135 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.js +3 -0
- package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +2 -27
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +12 -10
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +30 -0
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.js +3 -0
- package/vscode/src/vs/workbench/services/history/common/history.d.ts +1 -76
- package/vscode/src/vs/workbench/services/history/common/history.js +1 -3
- package/vscode/src/vs/workbench/services/history/common/history.service.d.ts +77 -0
- package/vscode/src/vs/workbench/services/history/common/history.service.js +3 -0
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +102 -0
- package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.service.js +3 -0
- package/vscode/src/vs/workbench/services/keybinding/common/{keybindingEditing.d.ts → keybindingEditing.service.d.ts} +0 -1
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.service.js +3 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +4 -4
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -3
- package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service.js +3 -0
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +3 -13
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.d.ts +15 -0
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.js +3 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +1 -160
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +1 -4
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +161 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.js +4 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +1 -68
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +1 -3
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.d.ts +70 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.js +3 -0
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +3 -2
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -3
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.service.js +3 -0
- package/vscode/src/vs/workbench/services/output/common/output.d.ts +1 -36
- package/vscode/src/vs/workbench/services/output/common/output.js +1 -3
- package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +39 -0
- package/vscode/src/vs/workbench/services/output/common/output.service.js +3 -0
- package/vscode/src/vs/workbench/services/panecomposite/browser/{panecomposite.d.ts → panecomposite.service.d.ts} +18 -18
- package/vscode/src/vs/workbench/services/path/common/pathService.service.d.ts +65 -0
- package/vscode/src/vs/workbench/services/path/common/pathService.service.js +3 -0
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +2 -31
- package/vscode/src/vs/workbench/services/preferences/common/preferences.js +1 -3
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +35 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.js +3 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.d.ts +2 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.d.ts +2 -31
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.d.ts +34 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.js +3 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +4 -5
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.js +3 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +12 -11
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -5
- package/vscode/src/vs/workbench/services/search/common/search.js +1 -3
- package/vscode/src/vs/workbench/services/search/common/search.service.js +3 -0
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +2 -21
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +1 -3
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.d.ts +23 -0
- package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.js +3 -0
- package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.service.js +3 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +4 -4
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +7 -7
- package/vscode/src/vs/workbench/services/textfile/common/{textEditorService.d.ts → textEditorService.service.d.ts} +14 -15
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.service.js +3 -0
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +12 -11
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +4 -97
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +1 -3
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +102 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.js +3 -0
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -4
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.js +4 -0
- package/vscode/src/vs/workbench/services/timer/browser/timerService.service.js +3 -0
- package/vscode/src/vs/workbench/services/title/browser/{titleService.d.ts → titleService.service.d.ts} +4 -4
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +8 -8
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.js +3 -0
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.service.js +3 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.js +3 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.service.js +3 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.d.ts +1 -11
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +1 -5
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +15 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.js +5 -0
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +1 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.service.js +3 -0
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +14 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +14 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.js +3 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +4 -109
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +114 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.js +3 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/{workingCopyHistory.js → workingCopyHistory.service.js} +1 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.js +3 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.service.js +3 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +9 -8
- package/override/iconv.js +0 -43
- package/override/jschardet.js +0 -7
- package/override/vs/platform/dialogs/common/dialogs.js +0 -8
- package/service-override/tools/editorAssets.js +0 -3
- package/vscode/src/vs/base/browser/deviceAccess.js +0 -60
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
- package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -492
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -1110
- package/vscode/src/vs/platform/environment/common/environmentService.js +0 -8
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +0 -333
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +0 -901
- package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.js +0 -10
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +0 -10
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.d.ts +0 -13
- package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.js +0 -30
- package/vscode/src/vs/platform/secrets/common/secrets.js +0 -127
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -272
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -709
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
- package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.d.ts +0 -38
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfileIpc.js +0 -65
- package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.js +0 -65
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.js +0 -45
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
- package/vscode/src/vs/platform/workspace/common/workspaceTrust.js +0 -18
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -904
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -762
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +0 -300
- package/vscode/src/vs/workbench/browser/media/style.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -665
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -226
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +0 -45
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -604
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -344
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +0 -243
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +0 -1402
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +0 -185
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -519
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -1028
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +0 -390
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +0 -640
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -469
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +0 -66
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -157
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +0 -37
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -235
- package/vscode/src/vs/workbench/browser/style.js +0 -53
- package/vscode/src/vs/workbench/browser/window.js +0 -380
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +0 -878
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -298
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -363
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -133
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +0 -54
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +0 -37
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -41
- package/vscode/src/vs/workbench/contrib/comments/browser/commentMenus.js +0 -43
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +0 -354
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -21
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -144
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -76
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +0 -56
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -181
- package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +0 -14
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +0 -211
- package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +0 -59
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -6
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +0 -27
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +0 -49
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -406
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +0 -145
- package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.js +0 -155
- package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +0 -236
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +0 -634
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +0 -229
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +0 -74
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +0 -40
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +0 -79
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +0 -348
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +0 -98
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +0 -146
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +0 -104
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +0 -401
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +0 -197
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +0 -39
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +0 -126
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +0 -616
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +0 -159
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +0 -264
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +0 -171
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.js +0 -326
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js +0 -31
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +0 -192
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +0 -37
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +0 -39
- package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.js +0 -44
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -92
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +0 -934
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -64
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -537
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -141
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +0 -166
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -804
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +0 -55
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +0 -9
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -238
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +0 -27
- package/vscode/src/vs/workbench/contrib/testing/common/storedValue.js +0 -36
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +0 -62
- package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +0 -116
- package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +0 -194
- package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +0 -158
- package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +0 -160
- package/vscode/src/vs/workbench/contrib/testing/common/testService.js +0 -102
- package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +0 -196
- package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +0 -127
- package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.js +0 -29
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -281
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -358
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -131
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -311
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -96
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -654
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -140
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -65
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -230
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +0 -45
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +0 -375
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +0 -525
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +0 -934
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +0 -26
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -143
- package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.js +0 -75
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +0 -31
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.js +0 -69
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.js +0 -50
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -341
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.js +0 -9
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +0 -184
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -11
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -672
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +0 -378
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +0 -396
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +0 -150
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +0 -44
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +0 -339
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +0 -11
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +0 -160
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +0 -18
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +0 -39
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +0 -17
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.d.ts +0 -20
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +0 -45
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +0 -17
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +0 -6
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1511
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +0 -102
- package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.js +0 -418
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +0 -267
- package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.js +0 -26
- package/vscode/src/vs/workbench/services/path/common/pathService.d.ts +0 -65
- package/vscode/src/vs/workbench/services/path/common/pathService.js +0 -108
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -4
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +0 -521
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.js +0 -59
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +0 -83
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +0 -182
- package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.js +0 -77
- package/vscode/src/vs/workbench/services/timer/browser/timerService.js +0 -243
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +0 -100
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -132
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityRegistry.js +0 -15
- package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +0 -37
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +0 -15
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +0 -60
- package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.js +0 -150
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -708
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -601
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +0 -62
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +0 -40
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant.js +0 -40
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.js +0 -181
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.js +0 -126
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.js +0 -102
- /package/vscode/src/vs/platform/clipboard/common/{clipboardService.js → clipboardService.service.js} +0 -0
- /package/vscode/src/vs/platform/contextview/browser/{contextView.js → contextView.service.js} +0 -0
- /package/vscode/src/vs/platform/debug/common/{extensionHostDebug.js → extensionHostDebug.service.js} +0 -0
- /package/vscode/src/vs/platform/download/common/{download.js → download.service.js} +0 -0
- /package/vscode/src/vs/platform/encryption/common/{encryptionService.js → encryptionService.service.js} +0 -0
- /package/vscode/src/vs/platform/environment/common/{environment.js → environment.service.js} +0 -0
- /package/vscode/src/vs/platform/keybinding/common/{keybinding.js → keybinding.service.js} +0 -0
- /package/vscode/src/vs/platform/label/common/{label.js → label.service.js} +0 -0
- /package/vscode/src/vs/platform/layout/browser/{layoutService.js → layoutService.service.js} +0 -0
- /package/vscode/src/vs/platform/product/common/{productService.d.ts → productService.service.d.ts} +0 -0
- /package/vscode/src/vs/platform/uriIdentity/common/{uriIdentity.js → uriIdentity.service.js} +0 -0
- /package/vscode/src/vs/platform/url/common/{url.js → url.service.js} +0 -0
- /package/vscode/src/vs/platform/workspace/common/{canonicalUri.js → canonicalUri.service.js} +0 -0
- /package/vscode/src/vs/workbench/browser/parts/editor/{breadcrumbs.d.ts → breadcrumbs.service.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatContributionService.js → chatContributionService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatVariables.js → chatVariables.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatSavingService.js → inlineChatSavingService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatSessionService.js → inlineChatSessionService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/notebook/browser/services/{notebookEditorService.js → notebookEditorService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookCellStatusBarService.js → notebookCellStatusBarService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookEditorModelResolverService.js → notebookEditorModelResolverService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookKeymapService.js → notebookKeymapService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookLoggingService.js → notebookLoggingService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookRendererMessagingService.js → notebookRendererMessagingService.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/scm/common/{quickDiff.js → quickDiff.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/search/browser/{replace.js → replace.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/search/common/{notebookSearch.js → notebookSearch.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/share/common/{share.js → share.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/snippets/browser/{snippets.js → snippets.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/terminal/common/{environmentVariable.js → environmentVariable.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/{links.js → links.service.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/testing/common/{testingPeekOpener.js → testingPeekOpener.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/banner/browser/{bannerService.js → bannerService.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/decorations/common/{decorations.js → decorations.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/editor/common/{customEditorLabelService.d.ts → customEditorLabelService.service.d.ts} +0 -0
- /package/vscode/src/vs/workbench/services/editor/common/{editorPaneService.js → editorPaneService.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/extensionRecommendations/common/{extensionRecommendations.js → extensionRecommendations.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/files/common/{elevatedFileService.js → elevatedFileService.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/host/browser/{host.js → host.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/issue/common/{issue.js → issue.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/localization/common/{locale.d.ts → locale.service.d.ts} +0 -0
- /package/vscode/src/vs/workbench/services/localization/common/{locale.js → locale.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/outline/browser/{outline.js → outline.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/panecomposite/browser/{panecomposite.js → panecomposite.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/textMate/browser/{textMateTokenizationFeature.js → textMateTokenizationFeature.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/themes/common/{hostColorSchemeService.js → hostColorSchemeService.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/title/browser/{titleService.js → titleService.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/views/browser/{treeViewsService.js → treeViewsService.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/views/common/{viewsService.d.ts → viewsService.service.d.ts} +0 -0
- /package/vscode/src/vs/workbench/services/views/common/{viewsService.js → viewsService.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/workingCopy/common/{workingCopyBackup.js → workingCopyBackup.service.js} +0 -0
- /package/vscode/src/vs/workbench/services/workspaces/common/{workspaceEditing.js → workspaceEditing.service.js} +0 -0
|
@@ -1,1110 +0,0 @@
|
|
|
1
|
-
import { $ } from '../../dom.js';
|
|
2
|
-
import { Sizing, SplitView } from '../splitview/splitview.js';
|
|
3
|
-
import { tail2, equals } from '../../../common/arrays.js';
|
|
4
|
-
import { Color } from '../../../common/color.js';
|
|
5
|
-
import { Event, Relay, Emitter } from '../../../common/event.js';
|
|
6
|
-
import { Disposable, DisposableStore, toDisposable } from '../../../common/lifecycle.js';
|
|
7
|
-
import { rot } from '../../../common/numbers.js';
|
|
8
|
-
import { isUndefined } from '../../../common/types.js';
|
|
9
|
-
import './gridview.css.js';
|
|
10
|
-
import '../sash/sash.js';
|
|
11
|
-
const defaultStyles = {
|
|
12
|
-
separatorBorder: Color.transparent
|
|
13
|
-
};
|
|
14
|
-
function orthogonal(orientation) {
|
|
15
|
-
return orientation === 0 ? 1 : 0 ;
|
|
16
|
-
}
|
|
17
|
-
class LayoutController {
|
|
18
|
-
constructor(isLayoutEnabled) {
|
|
19
|
-
this.isLayoutEnabled = isLayoutEnabled;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
function toAbsoluteBoundarySashes(sashes, orientation) {
|
|
23
|
-
if (orientation === 1 ) {
|
|
24
|
-
return { left: sashes.start, right: sashes.end, top: sashes.orthogonalStart, bottom: sashes.orthogonalEnd };
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return { top: sashes.start, bottom: sashes.end, left: sashes.orthogonalStart, right: sashes.orthogonalEnd };
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
function fromAbsoluteBoundarySashes(sashes, orientation) {
|
|
31
|
-
if (orientation === 1 ) {
|
|
32
|
-
return { start: sashes.left, end: sashes.right, orthogonalStart: sashes.top, orthogonalEnd: sashes.bottom };
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return { start: sashes.top, end: sashes.bottom, orthogonalStart: sashes.left, orthogonalEnd: sashes.right };
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function validateIndex(index, numChildren) {
|
|
39
|
-
if (Math.abs(index) > numChildren) {
|
|
40
|
-
throw new Error('Invalid index');
|
|
41
|
-
}
|
|
42
|
-
return rot(index, numChildren + 1);
|
|
43
|
-
}
|
|
44
|
-
class BranchNode {
|
|
45
|
-
get size() { return this._size; }
|
|
46
|
-
get orthogonalSize() { return this._orthogonalSize; }
|
|
47
|
-
get absoluteOffset() { return this._absoluteOffset; }
|
|
48
|
-
get absoluteOrthogonalOffset() { return this._absoluteOrthogonalOffset; }
|
|
49
|
-
get styles() { return this._styles; }
|
|
50
|
-
get width() {
|
|
51
|
-
return this.orientation === 1 ? this.size : this.orthogonalSize;
|
|
52
|
-
}
|
|
53
|
-
get height() {
|
|
54
|
-
return this.orientation === 1 ? this.orthogonalSize : this.size;
|
|
55
|
-
}
|
|
56
|
-
get top() {
|
|
57
|
-
return this.orientation === 1 ? this._absoluteOffset : this._absoluteOrthogonalOffset;
|
|
58
|
-
}
|
|
59
|
-
get left() {
|
|
60
|
-
return this.orientation === 1 ? this._absoluteOrthogonalOffset : this._absoluteOffset;
|
|
61
|
-
}
|
|
62
|
-
get minimumSize() {
|
|
63
|
-
return this.children.length === 0 ? 0 : Math.max(...( this.children.map(
|
|
64
|
-
(c, index) => this.splitview.isViewVisible(index) ? c.minimumOrthogonalSize : 0
|
|
65
|
-
)));
|
|
66
|
-
}
|
|
67
|
-
get maximumSize() {
|
|
68
|
-
return Math.min(...( this.children.map(
|
|
69
|
-
(c, index) => this.splitview.isViewVisible(index) ? c.maximumOrthogonalSize : Number.POSITIVE_INFINITY
|
|
70
|
-
)));
|
|
71
|
-
}
|
|
72
|
-
get priority() {
|
|
73
|
-
if (this.children.length === 0) {
|
|
74
|
-
return 0 ;
|
|
75
|
-
}
|
|
76
|
-
const priorities = ( this.children.map(
|
|
77
|
-
c => typeof c.priority === 'undefined' ? 0 : c.priority
|
|
78
|
-
));
|
|
79
|
-
if (( priorities.some(p => p === 2 ))) {
|
|
80
|
-
return 2 ;
|
|
81
|
-
}
|
|
82
|
-
else if (( priorities.some(p => p === 1 ))) {
|
|
83
|
-
return 1 ;
|
|
84
|
-
}
|
|
85
|
-
return 0 ;
|
|
86
|
-
}
|
|
87
|
-
get proportionalLayout() {
|
|
88
|
-
if (this.children.length === 0) {
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
return this.children.every(c => c.proportionalLayout);
|
|
92
|
-
}
|
|
93
|
-
get minimumOrthogonalSize() {
|
|
94
|
-
return this.splitview.minimumSize;
|
|
95
|
-
}
|
|
96
|
-
get maximumOrthogonalSize() {
|
|
97
|
-
return this.splitview.maximumSize;
|
|
98
|
-
}
|
|
99
|
-
get minimumWidth() {
|
|
100
|
-
return this.orientation === 1 ? this.minimumOrthogonalSize : this.minimumSize;
|
|
101
|
-
}
|
|
102
|
-
get minimumHeight() {
|
|
103
|
-
return this.orientation === 1 ? this.minimumSize : this.minimumOrthogonalSize;
|
|
104
|
-
}
|
|
105
|
-
get maximumWidth() {
|
|
106
|
-
return this.orientation === 1 ? this.maximumOrthogonalSize : this.maximumSize;
|
|
107
|
-
}
|
|
108
|
-
get maximumHeight() {
|
|
109
|
-
return this.orientation === 1 ? this.maximumSize : this.maximumOrthogonalSize;
|
|
110
|
-
}
|
|
111
|
-
get boundarySashes() { return this._boundarySashes; }
|
|
112
|
-
set boundarySashes(boundarySashes) {
|
|
113
|
-
if (this._boundarySashes.start === boundarySashes.start
|
|
114
|
-
&& this._boundarySashes.end === boundarySashes.end
|
|
115
|
-
&& this._boundarySashes.orthogonalStart === boundarySashes.orthogonalStart
|
|
116
|
-
&& this._boundarySashes.orthogonalEnd === boundarySashes.orthogonalEnd) {
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
this._boundarySashes = boundarySashes;
|
|
120
|
-
this.splitview.orthogonalStartSash = boundarySashes.orthogonalStart;
|
|
121
|
-
this.splitview.orthogonalEndSash = boundarySashes.orthogonalEnd;
|
|
122
|
-
for (let index = 0; index < this.children.length; index++) {
|
|
123
|
-
const child = this.children[index];
|
|
124
|
-
const first = index === 0;
|
|
125
|
-
const last = index === this.children.length - 1;
|
|
126
|
-
child.boundarySashes = {
|
|
127
|
-
start: boundarySashes.orthogonalStart,
|
|
128
|
-
end: boundarySashes.orthogonalEnd,
|
|
129
|
-
orthogonalStart: first ? boundarySashes.start : child.boundarySashes.orthogonalStart,
|
|
130
|
-
orthogonalEnd: last ? boundarySashes.end : child.boundarySashes.orthogonalEnd,
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
get edgeSnapping() { return this._edgeSnapping; }
|
|
135
|
-
set edgeSnapping(edgeSnapping) {
|
|
136
|
-
if (this._edgeSnapping === edgeSnapping) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
this._edgeSnapping = edgeSnapping;
|
|
140
|
-
for (const child of this.children) {
|
|
141
|
-
if (child instanceof BranchNode) {
|
|
142
|
-
child.edgeSnapping = edgeSnapping;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
this.updateSplitviewEdgeSnappingEnablement();
|
|
146
|
-
}
|
|
147
|
-
constructor(orientation, layoutController, styles, splitviewProportionalLayout, size = 0, orthogonalSize = 0, edgeSnapping = false, childDescriptors) {
|
|
148
|
-
this.orientation = orientation;
|
|
149
|
-
this.layoutController = layoutController;
|
|
150
|
-
this.splitviewProportionalLayout = splitviewProportionalLayout;
|
|
151
|
-
this.children = [];
|
|
152
|
-
this._absoluteOffset = 0;
|
|
153
|
-
this._absoluteOrthogonalOffset = 0;
|
|
154
|
-
this.absoluteOrthogonalSize = 0;
|
|
155
|
-
this._onDidChange = ( new Emitter());
|
|
156
|
-
this.onDidChange = this._onDidChange.event;
|
|
157
|
-
this._onDidVisibilityChange = ( new Emitter());
|
|
158
|
-
this.onDidVisibilityChange = this._onDidVisibilityChange.event;
|
|
159
|
-
this.childrenVisibilityChangeDisposable = ( new DisposableStore());
|
|
160
|
-
this._onDidScroll = ( new Emitter());
|
|
161
|
-
this.onDidScrollDisposable = Disposable.None;
|
|
162
|
-
this.onDidScroll = this._onDidScroll.event;
|
|
163
|
-
this.childrenChangeDisposable = Disposable.None;
|
|
164
|
-
this._onDidSashReset = ( new Emitter());
|
|
165
|
-
this.onDidSashReset = this._onDidSashReset.event;
|
|
166
|
-
this.splitviewSashResetDisposable = Disposable.None;
|
|
167
|
-
this.childrenSashResetDisposable = Disposable.None;
|
|
168
|
-
this._boundarySashes = {};
|
|
169
|
-
this._edgeSnapping = false;
|
|
170
|
-
this._styles = styles;
|
|
171
|
-
this._size = size;
|
|
172
|
-
this._orthogonalSize = orthogonalSize;
|
|
173
|
-
this.element = $('.monaco-grid-branch-node');
|
|
174
|
-
if (!childDescriptors) {
|
|
175
|
-
this.splitview = ( new SplitView(
|
|
176
|
-
this.element,
|
|
177
|
-
{ orientation, styles, proportionalLayout: splitviewProportionalLayout }
|
|
178
|
-
));
|
|
179
|
-
this.splitview.layout(size, { orthogonalSize, absoluteOffset: 0, absoluteOrthogonalOffset: 0, absoluteSize: size, absoluteOrthogonalSize: orthogonalSize });
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
const descriptor = {
|
|
183
|
-
views: ( childDescriptors.map(childDescriptor => {
|
|
184
|
-
return {
|
|
185
|
-
view: childDescriptor.node,
|
|
186
|
-
size: childDescriptor.node.size,
|
|
187
|
-
visible: childDescriptor.visible !== false
|
|
188
|
-
};
|
|
189
|
-
})),
|
|
190
|
-
size: this.orthogonalSize
|
|
191
|
-
};
|
|
192
|
-
const options = { proportionalLayout: splitviewProportionalLayout, orientation, styles };
|
|
193
|
-
this.children = ( childDescriptors.map(c => c.node));
|
|
194
|
-
this.splitview = ( new SplitView(this.element, { ...options, descriptor }));
|
|
195
|
-
this.children.forEach((node, index) => {
|
|
196
|
-
const first = index === 0;
|
|
197
|
-
const last = index === this.children.length;
|
|
198
|
-
node.boundarySashes = {
|
|
199
|
-
start: this.boundarySashes.orthogonalStart,
|
|
200
|
-
end: this.boundarySashes.orthogonalEnd,
|
|
201
|
-
orthogonalStart: first ? this.boundarySashes.start : this.splitview.sashes[index - 1],
|
|
202
|
-
orthogonalEnd: last ? this.boundarySashes.end : this.splitview.sashes[index],
|
|
203
|
-
};
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
const onDidSashReset = ( Event.map(this.splitview.onDidSashReset, i => [i]));
|
|
207
|
-
this.splitviewSashResetDisposable = onDidSashReset(this._onDidSashReset.fire, this._onDidSashReset);
|
|
208
|
-
this.updateChildrenEvents();
|
|
209
|
-
}
|
|
210
|
-
style(styles) {
|
|
211
|
-
this._styles = styles;
|
|
212
|
-
this.splitview.style(styles);
|
|
213
|
-
for (const child of this.children) {
|
|
214
|
-
if (child instanceof BranchNode) {
|
|
215
|
-
child.style(styles);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
layout(size, offset, ctx) {
|
|
220
|
-
if (!this.layoutController.isLayoutEnabled) {
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
if (typeof ctx === 'undefined') {
|
|
224
|
-
throw new Error('Invalid state');
|
|
225
|
-
}
|
|
226
|
-
this._size = ctx.orthogonalSize;
|
|
227
|
-
this._orthogonalSize = size;
|
|
228
|
-
this._absoluteOffset = ctx.absoluteOffset + offset;
|
|
229
|
-
this._absoluteOrthogonalOffset = ctx.absoluteOrthogonalOffset;
|
|
230
|
-
this.absoluteOrthogonalSize = ctx.absoluteOrthogonalSize;
|
|
231
|
-
this.splitview.layout(ctx.orthogonalSize, {
|
|
232
|
-
orthogonalSize: size,
|
|
233
|
-
absoluteOffset: this._absoluteOrthogonalOffset,
|
|
234
|
-
absoluteOrthogonalOffset: this._absoluteOffset,
|
|
235
|
-
absoluteSize: ctx.absoluteOrthogonalSize,
|
|
236
|
-
absoluteOrthogonalSize: ctx.absoluteSize
|
|
237
|
-
});
|
|
238
|
-
this.updateSplitviewEdgeSnappingEnablement();
|
|
239
|
-
}
|
|
240
|
-
setVisible(visible) {
|
|
241
|
-
for (const child of this.children) {
|
|
242
|
-
child.setVisible(visible);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
addChild(node, size, index, skipLayout) {
|
|
246
|
-
index = validateIndex(index, this.children.length);
|
|
247
|
-
this.splitview.addView(node, size, index, skipLayout);
|
|
248
|
-
this.children.splice(index, 0, node);
|
|
249
|
-
this.updateBoundarySashes();
|
|
250
|
-
this.onDidChildrenChange();
|
|
251
|
-
}
|
|
252
|
-
removeChild(index, sizing) {
|
|
253
|
-
index = validateIndex(index, this.children.length);
|
|
254
|
-
const result = this.splitview.removeView(index, sizing);
|
|
255
|
-
this.children.splice(index, 1);
|
|
256
|
-
this.updateBoundarySashes();
|
|
257
|
-
this.onDidChildrenChange();
|
|
258
|
-
return result;
|
|
259
|
-
}
|
|
260
|
-
removeAllChildren() {
|
|
261
|
-
const result = this.splitview.removeAllViews();
|
|
262
|
-
this.children.splice(0, this.children.length);
|
|
263
|
-
this.updateBoundarySashes();
|
|
264
|
-
this.onDidChildrenChange();
|
|
265
|
-
return result;
|
|
266
|
-
}
|
|
267
|
-
moveChild(from, to) {
|
|
268
|
-
from = validateIndex(from, this.children.length);
|
|
269
|
-
to = validateIndex(to, this.children.length);
|
|
270
|
-
if (from === to) {
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
if (from < to) {
|
|
274
|
-
to -= 1;
|
|
275
|
-
}
|
|
276
|
-
this.splitview.moveView(from, to);
|
|
277
|
-
this.children.splice(to, 0, this.children.splice(from, 1)[0]);
|
|
278
|
-
this.updateBoundarySashes();
|
|
279
|
-
this.onDidChildrenChange();
|
|
280
|
-
}
|
|
281
|
-
swapChildren(from, to) {
|
|
282
|
-
from = validateIndex(from, this.children.length);
|
|
283
|
-
to = validateIndex(to, this.children.length);
|
|
284
|
-
if (from === to) {
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
this.splitview.swapViews(from, to);
|
|
288
|
-
[this.children[from].boundarySashes, this.children[to].boundarySashes]
|
|
289
|
-
= [this.children[from].boundarySashes, this.children[to].boundarySashes];
|
|
290
|
-
[this.children[from], this.children[to]] = [this.children[to], this.children[from]];
|
|
291
|
-
this.onDidChildrenChange();
|
|
292
|
-
}
|
|
293
|
-
resizeChild(index, size) {
|
|
294
|
-
index = validateIndex(index, this.children.length);
|
|
295
|
-
this.splitview.resizeView(index, size);
|
|
296
|
-
}
|
|
297
|
-
isChildExpanded(index) {
|
|
298
|
-
return this.splitview.isViewExpanded(index);
|
|
299
|
-
}
|
|
300
|
-
distributeViewSizes(recursive = false) {
|
|
301
|
-
this.splitview.distributeViewSizes();
|
|
302
|
-
if (recursive) {
|
|
303
|
-
for (const child of this.children) {
|
|
304
|
-
if (child instanceof BranchNode) {
|
|
305
|
-
child.distributeViewSizes(true);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
getChildSize(index) {
|
|
311
|
-
index = validateIndex(index, this.children.length);
|
|
312
|
-
return this.splitview.getViewSize(index);
|
|
313
|
-
}
|
|
314
|
-
isChildVisible(index) {
|
|
315
|
-
index = validateIndex(index, this.children.length);
|
|
316
|
-
return this.splitview.isViewVisible(index);
|
|
317
|
-
}
|
|
318
|
-
setChildVisible(index, visible) {
|
|
319
|
-
index = validateIndex(index, this.children.length);
|
|
320
|
-
if (this.splitview.isViewVisible(index) === visible) {
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
const wereAllChildrenHidden = this.splitview.contentSize === 0;
|
|
324
|
-
this.splitview.setViewVisible(index, visible);
|
|
325
|
-
const areAllChildrenHidden = this.splitview.contentSize === 0;
|
|
326
|
-
if ((visible && wereAllChildrenHidden) || (!visible && areAllChildrenHidden)) {
|
|
327
|
-
this._onDidVisibilityChange.fire(visible);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
getChildCachedVisibleSize(index) {
|
|
331
|
-
index = validateIndex(index, this.children.length);
|
|
332
|
-
return this.splitview.getViewCachedVisibleSize(index);
|
|
333
|
-
}
|
|
334
|
-
updateBoundarySashes() {
|
|
335
|
-
for (let i = 0; i < this.children.length; i++) {
|
|
336
|
-
this.children[i].boundarySashes = {
|
|
337
|
-
start: this.boundarySashes.orthogonalStart,
|
|
338
|
-
end: this.boundarySashes.orthogonalEnd,
|
|
339
|
-
orthogonalStart: i === 0 ? this.boundarySashes.start : this.splitview.sashes[i - 1],
|
|
340
|
-
orthogonalEnd: i === this.children.length - 1 ? this.boundarySashes.end : this.splitview.sashes[i],
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
onDidChildrenChange() {
|
|
345
|
-
this.updateChildrenEvents();
|
|
346
|
-
this._onDidChange.fire(undefined);
|
|
347
|
-
}
|
|
348
|
-
updateChildrenEvents() {
|
|
349
|
-
const onDidChildrenChange = ( Event.map(Event.any(...( this.children.map(c => c.onDidChange))), () => undefined));
|
|
350
|
-
this.childrenChangeDisposable.dispose();
|
|
351
|
-
this.childrenChangeDisposable = onDidChildrenChange(this._onDidChange.fire, this._onDidChange);
|
|
352
|
-
const onDidChildrenSashReset = Event.any(...( this.children.map((c, i) => ( Event.map(c.onDidSashReset, location => [i, ...location])))));
|
|
353
|
-
this.childrenSashResetDisposable.dispose();
|
|
354
|
-
this.childrenSashResetDisposable = onDidChildrenSashReset(this._onDidSashReset.fire, this._onDidSashReset);
|
|
355
|
-
const onDidScroll = Event.any(Event.signal(this.splitview.onDidScroll), ...( this.children.map(c => c.onDidScroll)));
|
|
356
|
-
this.onDidScrollDisposable.dispose();
|
|
357
|
-
this.onDidScrollDisposable = onDidScroll(this._onDidScroll.fire, this._onDidScroll);
|
|
358
|
-
this.childrenVisibilityChangeDisposable.clear();
|
|
359
|
-
this.children.forEach((child, index) => {
|
|
360
|
-
if (child instanceof BranchNode) {
|
|
361
|
-
this.childrenVisibilityChangeDisposable.add(child.onDidVisibilityChange((visible) => {
|
|
362
|
-
this.setChildVisible(index, visible);
|
|
363
|
-
}));
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
trySet2x2(other) {
|
|
368
|
-
if (this.children.length !== 2 || other.children.length !== 2) {
|
|
369
|
-
return Disposable.None;
|
|
370
|
-
}
|
|
371
|
-
if (this.getChildSize(0) !== other.getChildSize(0)) {
|
|
372
|
-
return Disposable.None;
|
|
373
|
-
}
|
|
374
|
-
const [firstChild, secondChild] = this.children;
|
|
375
|
-
const [otherFirstChild, otherSecondChild] = other.children;
|
|
376
|
-
if (!(firstChild instanceof LeafNode) || !(secondChild instanceof LeafNode)) {
|
|
377
|
-
return Disposable.None;
|
|
378
|
-
}
|
|
379
|
-
if (!(otherFirstChild instanceof LeafNode) || !(otherSecondChild instanceof LeafNode)) {
|
|
380
|
-
return Disposable.None;
|
|
381
|
-
}
|
|
382
|
-
if (this.orientation === 0 ) {
|
|
383
|
-
secondChild.linkedWidthNode = otherFirstChild.linkedHeightNode = firstChild;
|
|
384
|
-
firstChild.linkedWidthNode = otherSecondChild.linkedHeightNode = secondChild;
|
|
385
|
-
otherSecondChild.linkedWidthNode = firstChild.linkedHeightNode = otherFirstChild;
|
|
386
|
-
otherFirstChild.linkedWidthNode = secondChild.linkedHeightNode = otherSecondChild;
|
|
387
|
-
}
|
|
388
|
-
else {
|
|
389
|
-
otherFirstChild.linkedWidthNode = secondChild.linkedHeightNode = firstChild;
|
|
390
|
-
otherSecondChild.linkedWidthNode = firstChild.linkedHeightNode = secondChild;
|
|
391
|
-
firstChild.linkedWidthNode = otherSecondChild.linkedHeightNode = otherFirstChild;
|
|
392
|
-
secondChild.linkedWidthNode = otherFirstChild.linkedHeightNode = otherSecondChild;
|
|
393
|
-
}
|
|
394
|
-
const mySash = this.splitview.sashes[0];
|
|
395
|
-
const otherSash = other.splitview.sashes[0];
|
|
396
|
-
mySash.linkedSash = otherSash;
|
|
397
|
-
otherSash.linkedSash = mySash;
|
|
398
|
-
this._onDidChange.fire(undefined);
|
|
399
|
-
other._onDidChange.fire(undefined);
|
|
400
|
-
return toDisposable(() => {
|
|
401
|
-
mySash.linkedSash = otherSash.linkedSash = undefined;
|
|
402
|
-
firstChild.linkedHeightNode = firstChild.linkedWidthNode = undefined;
|
|
403
|
-
secondChild.linkedHeightNode = secondChild.linkedWidthNode = undefined;
|
|
404
|
-
otherFirstChild.linkedHeightNode = otherFirstChild.linkedWidthNode = undefined;
|
|
405
|
-
otherSecondChild.linkedHeightNode = otherSecondChild.linkedWidthNode = undefined;
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
updateSplitviewEdgeSnappingEnablement() {
|
|
409
|
-
this.splitview.startSnappingEnabled = this._edgeSnapping || this._absoluteOrthogonalOffset > 0;
|
|
410
|
-
this.splitview.endSnappingEnabled = this._edgeSnapping || this._absoluteOrthogonalOffset + this._size < this.absoluteOrthogonalSize;
|
|
411
|
-
}
|
|
412
|
-
dispose() {
|
|
413
|
-
for (const child of this.children) {
|
|
414
|
-
child.dispose();
|
|
415
|
-
}
|
|
416
|
-
this._onDidChange.dispose();
|
|
417
|
-
this._onDidSashReset.dispose();
|
|
418
|
-
this._onDidVisibilityChange.dispose();
|
|
419
|
-
this.childrenVisibilityChangeDisposable.dispose();
|
|
420
|
-
this.splitviewSashResetDisposable.dispose();
|
|
421
|
-
this.childrenSashResetDisposable.dispose();
|
|
422
|
-
this.childrenChangeDisposable.dispose();
|
|
423
|
-
this.onDidScrollDisposable.dispose();
|
|
424
|
-
this.splitview.dispose();
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
function createLatchedOnDidChangeViewEvent(view) {
|
|
428
|
-
const [onDidChangeViewConstraints, onDidSetViewSize] = Event.split(view.onDidChange, isUndefined);
|
|
429
|
-
return Event.any(onDidSetViewSize, ( Event.map(Event.latch(( Event.map(
|
|
430
|
-
onDidChangeViewConstraints,
|
|
431
|
-
_ => ([view.minimumWidth, view.maximumWidth, view.minimumHeight, view.maximumHeight])
|
|
432
|
-
)), equals), _ => undefined)));
|
|
433
|
-
}
|
|
434
|
-
class LeafNode {
|
|
435
|
-
get size() { return this._size; }
|
|
436
|
-
get orthogonalSize() { return this._orthogonalSize; }
|
|
437
|
-
get linkedWidthNode() { return this._linkedWidthNode; }
|
|
438
|
-
set linkedWidthNode(node) {
|
|
439
|
-
this._onDidLinkedWidthNodeChange.input = node ? node._onDidViewChange : Event.None;
|
|
440
|
-
this._linkedWidthNode = node;
|
|
441
|
-
this._onDidSetLinkedNode.fire(undefined);
|
|
442
|
-
}
|
|
443
|
-
get linkedHeightNode() { return this._linkedHeightNode; }
|
|
444
|
-
set linkedHeightNode(node) {
|
|
445
|
-
this._onDidLinkedHeightNodeChange.input = node ? node._onDidViewChange : Event.None;
|
|
446
|
-
this._linkedHeightNode = node;
|
|
447
|
-
this._onDidSetLinkedNode.fire(undefined);
|
|
448
|
-
}
|
|
449
|
-
constructor(view, orientation, layoutController, orthogonalSize, size = 0) {
|
|
450
|
-
this.view = view;
|
|
451
|
-
this.orientation = orientation;
|
|
452
|
-
this.layoutController = layoutController;
|
|
453
|
-
this._size = 0;
|
|
454
|
-
this.absoluteOffset = 0;
|
|
455
|
-
this.absoluteOrthogonalOffset = 0;
|
|
456
|
-
this.onDidScroll = Event.None;
|
|
457
|
-
this.onDidSashReset = Event.None;
|
|
458
|
-
this._onDidLinkedWidthNodeChange = ( new Relay());
|
|
459
|
-
this._linkedWidthNode = undefined;
|
|
460
|
-
this._onDidLinkedHeightNodeChange = ( new Relay());
|
|
461
|
-
this._linkedHeightNode = undefined;
|
|
462
|
-
this._onDidSetLinkedNode = ( new Emitter());
|
|
463
|
-
this.disposables = ( new DisposableStore());
|
|
464
|
-
this._boundarySashes = {};
|
|
465
|
-
this.cachedWidth = 0;
|
|
466
|
-
this.cachedHeight = 0;
|
|
467
|
-
this.cachedTop = 0;
|
|
468
|
-
this.cachedLeft = 0;
|
|
469
|
-
this._orthogonalSize = orthogonalSize;
|
|
470
|
-
this._size = size;
|
|
471
|
-
const onDidChange = createLatchedOnDidChangeViewEvent(view);
|
|
472
|
-
this._onDidViewChange = ( Event.map(
|
|
473
|
-
onDidChange,
|
|
474
|
-
e => e && (this.orientation === 0 ? e.width : e.height),
|
|
475
|
-
this.disposables
|
|
476
|
-
));
|
|
477
|
-
this.onDidChange = Event.any(this._onDidViewChange, this._onDidSetLinkedNode.event, this._onDidLinkedWidthNodeChange.event, this._onDidLinkedHeightNodeChange.event);
|
|
478
|
-
}
|
|
479
|
-
get width() {
|
|
480
|
-
return this.orientation === 1 ? this.orthogonalSize : this.size;
|
|
481
|
-
}
|
|
482
|
-
get height() {
|
|
483
|
-
return this.orientation === 1 ? this.size : this.orthogonalSize;
|
|
484
|
-
}
|
|
485
|
-
get top() {
|
|
486
|
-
return this.orientation === 1 ? this.absoluteOffset : this.absoluteOrthogonalOffset;
|
|
487
|
-
}
|
|
488
|
-
get left() {
|
|
489
|
-
return this.orientation === 1 ? this.absoluteOrthogonalOffset : this.absoluteOffset;
|
|
490
|
-
}
|
|
491
|
-
get element() {
|
|
492
|
-
return this.view.element;
|
|
493
|
-
}
|
|
494
|
-
get minimumWidth() {
|
|
495
|
-
return this.linkedWidthNode ? Math.max(this.linkedWidthNode.view.minimumWidth, this.view.minimumWidth) : this.view.minimumWidth;
|
|
496
|
-
}
|
|
497
|
-
get maximumWidth() {
|
|
498
|
-
return this.linkedWidthNode ? Math.min(this.linkedWidthNode.view.maximumWidth, this.view.maximumWidth) : this.view.maximumWidth;
|
|
499
|
-
}
|
|
500
|
-
get minimumHeight() {
|
|
501
|
-
return this.linkedHeightNode ? Math.max(this.linkedHeightNode.view.minimumHeight, this.view.minimumHeight) : this.view.minimumHeight;
|
|
502
|
-
}
|
|
503
|
-
get maximumHeight() {
|
|
504
|
-
return this.linkedHeightNode ? Math.min(this.linkedHeightNode.view.maximumHeight, this.view.maximumHeight) : this.view.maximumHeight;
|
|
505
|
-
}
|
|
506
|
-
get minimumSize() {
|
|
507
|
-
return this.orientation === 1 ? this.minimumHeight : this.minimumWidth;
|
|
508
|
-
}
|
|
509
|
-
get maximumSize() {
|
|
510
|
-
return this.orientation === 1 ? this.maximumHeight : this.maximumWidth;
|
|
511
|
-
}
|
|
512
|
-
get priority() {
|
|
513
|
-
return this.view.priority;
|
|
514
|
-
}
|
|
515
|
-
get proportionalLayout() {
|
|
516
|
-
return this.view.proportionalLayout ?? true;
|
|
517
|
-
}
|
|
518
|
-
get snap() {
|
|
519
|
-
return this.view.snap;
|
|
520
|
-
}
|
|
521
|
-
get minimumOrthogonalSize() {
|
|
522
|
-
return this.orientation === 1 ? this.minimumWidth : this.minimumHeight;
|
|
523
|
-
}
|
|
524
|
-
get maximumOrthogonalSize() {
|
|
525
|
-
return this.orientation === 1 ? this.maximumWidth : this.maximumHeight;
|
|
526
|
-
}
|
|
527
|
-
get boundarySashes() { return this._boundarySashes; }
|
|
528
|
-
set boundarySashes(boundarySashes) {
|
|
529
|
-
this._boundarySashes = boundarySashes;
|
|
530
|
-
this.view.setBoundarySashes?.(toAbsoluteBoundarySashes(boundarySashes, this.orientation));
|
|
531
|
-
}
|
|
532
|
-
layout(size, offset, ctx) {
|
|
533
|
-
if (!this.layoutController.isLayoutEnabled) {
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
if (typeof ctx === 'undefined') {
|
|
537
|
-
throw new Error('Invalid state');
|
|
538
|
-
}
|
|
539
|
-
this._size = size;
|
|
540
|
-
this._orthogonalSize = ctx.orthogonalSize;
|
|
541
|
-
this.absoluteOffset = ctx.absoluteOffset + offset;
|
|
542
|
-
this.absoluteOrthogonalOffset = ctx.absoluteOrthogonalOffset;
|
|
543
|
-
this._layout(this.width, this.height, this.top, this.left);
|
|
544
|
-
}
|
|
545
|
-
_layout(width, height, top, left) {
|
|
546
|
-
if (this.cachedWidth === width && this.cachedHeight === height && this.cachedTop === top && this.cachedLeft === left) {
|
|
547
|
-
return;
|
|
548
|
-
}
|
|
549
|
-
this.cachedWidth = width;
|
|
550
|
-
this.cachedHeight = height;
|
|
551
|
-
this.cachedTop = top;
|
|
552
|
-
this.cachedLeft = left;
|
|
553
|
-
this.view.layout(width, height, top, left);
|
|
554
|
-
}
|
|
555
|
-
setVisible(visible) {
|
|
556
|
-
this.view.setVisible?.(visible);
|
|
557
|
-
}
|
|
558
|
-
dispose() {
|
|
559
|
-
this.disposables.dispose();
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
function flipNode(node, size, orthogonalSize) {
|
|
563
|
-
if (node instanceof BranchNode) {
|
|
564
|
-
const result = ( new BranchNode(
|
|
565
|
-
orthogonal(node.orientation),
|
|
566
|
-
node.layoutController,
|
|
567
|
-
node.styles,
|
|
568
|
-
node.splitviewProportionalLayout,
|
|
569
|
-
size,
|
|
570
|
-
orthogonalSize,
|
|
571
|
-
node.edgeSnapping
|
|
572
|
-
));
|
|
573
|
-
let totalSize = 0;
|
|
574
|
-
for (let i = node.children.length - 1; i >= 0; i--) {
|
|
575
|
-
const child = node.children[i];
|
|
576
|
-
const childSize = child instanceof BranchNode ? child.orthogonalSize : child.size;
|
|
577
|
-
let newSize = node.size === 0 ? 0 : Math.round((size * childSize) / node.size);
|
|
578
|
-
totalSize += newSize;
|
|
579
|
-
if (i === 0) {
|
|
580
|
-
newSize += size - totalSize;
|
|
581
|
-
}
|
|
582
|
-
result.addChild(flipNode(child, orthogonalSize, newSize), newSize, 0, true);
|
|
583
|
-
}
|
|
584
|
-
node.dispose();
|
|
585
|
-
return result;
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
const result = ( new LeafNode(
|
|
589
|
-
node.view,
|
|
590
|
-
orthogonal(node.orientation),
|
|
591
|
-
node.layoutController,
|
|
592
|
-
orthogonalSize
|
|
593
|
-
));
|
|
594
|
-
node.dispose();
|
|
595
|
-
return result;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
class GridView {
|
|
599
|
-
get root() { return this._root; }
|
|
600
|
-
set root(root) {
|
|
601
|
-
const oldRoot = this._root;
|
|
602
|
-
if (oldRoot) {
|
|
603
|
-
this.element.removeChild(oldRoot.element);
|
|
604
|
-
oldRoot.dispose();
|
|
605
|
-
}
|
|
606
|
-
this._root = root;
|
|
607
|
-
this.element.appendChild(root.element);
|
|
608
|
-
this.onDidSashResetRelay.input = root.onDidSashReset;
|
|
609
|
-
this._onDidChange.input = ( Event.map(root.onDidChange, () => undefined));
|
|
610
|
-
this._onDidScroll.input = root.onDidScroll;
|
|
611
|
-
}
|
|
612
|
-
get width() { return this.root.width; }
|
|
613
|
-
get height() { return this.root.height; }
|
|
614
|
-
get minimumWidth() { return this.root.minimumWidth; }
|
|
615
|
-
get minimumHeight() { return this.root.minimumHeight; }
|
|
616
|
-
get maximumWidth() { return this.root.maximumHeight; }
|
|
617
|
-
get maximumHeight() { return this.root.maximumHeight; }
|
|
618
|
-
get orientation() { return this._root.orientation; }
|
|
619
|
-
get boundarySashes() { return this._boundarySashes; }
|
|
620
|
-
set orientation(orientation) {
|
|
621
|
-
if (this._root.orientation === orientation) {
|
|
622
|
-
return;
|
|
623
|
-
}
|
|
624
|
-
const { size, orthogonalSize, absoluteOffset, absoluteOrthogonalOffset } = this._root;
|
|
625
|
-
this.root = flipNode(this._root, orthogonalSize, size);
|
|
626
|
-
this.root.layout(size, 0, { orthogonalSize, absoluteOffset: absoluteOrthogonalOffset, absoluteOrthogonalOffset: absoluteOffset, absoluteSize: size, absoluteOrthogonalSize: orthogonalSize });
|
|
627
|
-
this.boundarySashes = this.boundarySashes;
|
|
628
|
-
}
|
|
629
|
-
set boundarySashes(boundarySashes) {
|
|
630
|
-
this._boundarySashes = boundarySashes;
|
|
631
|
-
this.root.boundarySashes = fromAbsoluteBoundarySashes(boundarySashes, this.orientation);
|
|
632
|
-
}
|
|
633
|
-
set edgeSnapping(edgeSnapping) {
|
|
634
|
-
this.root.edgeSnapping = edgeSnapping;
|
|
635
|
-
}
|
|
636
|
-
constructor(options = {}) {
|
|
637
|
-
this.onDidSashResetRelay = ( new Relay());
|
|
638
|
-
this._onDidScroll = ( new Relay());
|
|
639
|
-
this._onDidChange = ( new Relay());
|
|
640
|
-
this._boundarySashes = {};
|
|
641
|
-
this.disposable2x2 = Disposable.None;
|
|
642
|
-
this.onDidSashReset = this.onDidSashResetRelay.event;
|
|
643
|
-
this.onDidScroll = this._onDidScroll.event;
|
|
644
|
-
this.onDidChange = this._onDidChange.event;
|
|
645
|
-
this.maximizedNode = undefined;
|
|
646
|
-
this._onDidChangeViewMaximized = ( new Emitter());
|
|
647
|
-
this.onDidChangeViewMaximized = this._onDidChangeViewMaximized.event;
|
|
648
|
-
this.element = $('.monaco-grid-view');
|
|
649
|
-
this.styles = options.styles || defaultStyles;
|
|
650
|
-
this.proportionalLayout = typeof options.proportionalLayout !== 'undefined' ? !!options.proportionalLayout : true;
|
|
651
|
-
this.layoutController = ( new LayoutController(false));
|
|
652
|
-
this.root = ( new BranchNode(
|
|
653
|
-
0 ,
|
|
654
|
-
this.layoutController,
|
|
655
|
-
this.styles,
|
|
656
|
-
this.proportionalLayout
|
|
657
|
-
));
|
|
658
|
-
}
|
|
659
|
-
style(styles) {
|
|
660
|
-
this.styles = styles;
|
|
661
|
-
this.root.style(styles);
|
|
662
|
-
}
|
|
663
|
-
layout(width, height, top = 0, left = 0) {
|
|
664
|
-
this.layoutController.isLayoutEnabled = true;
|
|
665
|
-
const [size, orthogonalSize, offset, orthogonalOffset] = this.root.orientation === 1 ? [height, width, top, left] : [width, height, left, top];
|
|
666
|
-
this.root.layout(size, 0, { orthogonalSize, absoluteOffset: offset, absoluteOrthogonalOffset: orthogonalOffset, absoluteSize: size, absoluteOrthogonalSize: orthogonalSize });
|
|
667
|
-
}
|
|
668
|
-
addView(view, size, location) {
|
|
669
|
-
if (this.hasMaximizedView()) {
|
|
670
|
-
this.exitMaximizedView();
|
|
671
|
-
}
|
|
672
|
-
this.disposable2x2.dispose();
|
|
673
|
-
this.disposable2x2 = Disposable.None;
|
|
674
|
-
const [rest, index] = tail2(location);
|
|
675
|
-
const [pathToParent, parent] = this.getNode(rest);
|
|
676
|
-
if (parent instanceof BranchNode) {
|
|
677
|
-
const node = ( new LeafNode(
|
|
678
|
-
view,
|
|
679
|
-
orthogonal(parent.orientation),
|
|
680
|
-
this.layoutController,
|
|
681
|
-
parent.orthogonalSize
|
|
682
|
-
));
|
|
683
|
-
try {
|
|
684
|
-
parent.addChild(node, size, index);
|
|
685
|
-
}
|
|
686
|
-
catch (err) {
|
|
687
|
-
node.dispose();
|
|
688
|
-
throw err;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
else {
|
|
692
|
-
const [, grandParent] = tail2(pathToParent);
|
|
693
|
-
const [, parentIndex] = tail2(rest);
|
|
694
|
-
let newSiblingSize = 0;
|
|
695
|
-
const newSiblingCachedVisibleSize = grandParent.getChildCachedVisibleSize(parentIndex);
|
|
696
|
-
if (typeof newSiblingCachedVisibleSize === 'number') {
|
|
697
|
-
newSiblingSize = Sizing.Invisible(newSiblingCachedVisibleSize);
|
|
698
|
-
}
|
|
699
|
-
const oldChild = grandParent.removeChild(parentIndex);
|
|
700
|
-
oldChild.dispose();
|
|
701
|
-
const newParent = ( new BranchNode(
|
|
702
|
-
parent.orientation,
|
|
703
|
-
parent.layoutController,
|
|
704
|
-
this.styles,
|
|
705
|
-
this.proportionalLayout,
|
|
706
|
-
parent.size,
|
|
707
|
-
parent.orthogonalSize,
|
|
708
|
-
grandParent.edgeSnapping
|
|
709
|
-
));
|
|
710
|
-
grandParent.addChild(newParent, parent.size, parentIndex);
|
|
711
|
-
const newSibling = ( new LeafNode(parent.view, grandParent.orientation, this.layoutController, parent.size));
|
|
712
|
-
newParent.addChild(newSibling, newSiblingSize, 0);
|
|
713
|
-
if (typeof size !== 'number' && size.type === 'split') {
|
|
714
|
-
size = Sizing.Split(0);
|
|
715
|
-
}
|
|
716
|
-
const node = ( new LeafNode(view, grandParent.orientation, this.layoutController, parent.size));
|
|
717
|
-
newParent.addChild(node, size, index);
|
|
718
|
-
}
|
|
719
|
-
this.trySet2x2();
|
|
720
|
-
}
|
|
721
|
-
removeView(location, sizing) {
|
|
722
|
-
if (this.hasMaximizedView()) {
|
|
723
|
-
this.exitMaximizedView();
|
|
724
|
-
}
|
|
725
|
-
this.disposable2x2.dispose();
|
|
726
|
-
this.disposable2x2 = Disposable.None;
|
|
727
|
-
const [rest, index] = tail2(location);
|
|
728
|
-
const [pathToParent, parent] = this.getNode(rest);
|
|
729
|
-
if (!(parent instanceof BranchNode)) {
|
|
730
|
-
throw new Error('Invalid location');
|
|
731
|
-
}
|
|
732
|
-
const node = parent.children[index];
|
|
733
|
-
if (!(node instanceof LeafNode)) {
|
|
734
|
-
throw new Error('Invalid location');
|
|
735
|
-
}
|
|
736
|
-
parent.removeChild(index, sizing);
|
|
737
|
-
node.dispose();
|
|
738
|
-
if (parent.children.length === 0) {
|
|
739
|
-
throw new Error('Invalid grid state');
|
|
740
|
-
}
|
|
741
|
-
if (parent.children.length > 1) {
|
|
742
|
-
this.trySet2x2();
|
|
743
|
-
return node.view;
|
|
744
|
-
}
|
|
745
|
-
if (pathToParent.length === 0) {
|
|
746
|
-
const sibling = parent.children[0];
|
|
747
|
-
if (sibling instanceof LeafNode) {
|
|
748
|
-
return node.view;
|
|
749
|
-
}
|
|
750
|
-
parent.removeChild(0);
|
|
751
|
-
parent.dispose();
|
|
752
|
-
this.root = sibling;
|
|
753
|
-
this.boundarySashes = this.boundarySashes;
|
|
754
|
-
this.trySet2x2();
|
|
755
|
-
return node.view;
|
|
756
|
-
}
|
|
757
|
-
const [, grandParent] = tail2(pathToParent);
|
|
758
|
-
const [, parentIndex] = tail2(rest);
|
|
759
|
-
const isSiblingVisible = parent.isChildVisible(0);
|
|
760
|
-
const sibling = parent.removeChild(0);
|
|
761
|
-
const sizes = ( grandParent.children.map((_, i) => grandParent.getChildSize(i)));
|
|
762
|
-
grandParent.removeChild(parentIndex, sizing);
|
|
763
|
-
parent.dispose();
|
|
764
|
-
if (sibling instanceof BranchNode) {
|
|
765
|
-
sizes.splice(parentIndex, 1, ...( sibling.children.map(c => c.size)));
|
|
766
|
-
const siblingChildren = sibling.removeAllChildren();
|
|
767
|
-
for (let i = 0; i < siblingChildren.length; i++) {
|
|
768
|
-
grandParent.addChild(siblingChildren[i], siblingChildren[i].size, parentIndex + i);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
const newSibling = ( new LeafNode(
|
|
773
|
-
sibling.view,
|
|
774
|
-
orthogonal(sibling.orientation),
|
|
775
|
-
this.layoutController,
|
|
776
|
-
sibling.size
|
|
777
|
-
));
|
|
778
|
-
const sizing = isSiblingVisible ? sibling.orthogonalSize : Sizing.Invisible(sibling.orthogonalSize);
|
|
779
|
-
grandParent.addChild(newSibling, sizing, parentIndex);
|
|
780
|
-
}
|
|
781
|
-
sibling.dispose();
|
|
782
|
-
for (let i = 0; i < sizes.length; i++) {
|
|
783
|
-
grandParent.resizeChild(i, sizes[i]);
|
|
784
|
-
}
|
|
785
|
-
this.trySet2x2();
|
|
786
|
-
return node.view;
|
|
787
|
-
}
|
|
788
|
-
moveView(parentLocation, from, to) {
|
|
789
|
-
if (this.hasMaximizedView()) {
|
|
790
|
-
this.exitMaximizedView();
|
|
791
|
-
}
|
|
792
|
-
const [, parent] = this.getNode(parentLocation);
|
|
793
|
-
if (!(parent instanceof BranchNode)) {
|
|
794
|
-
throw new Error('Invalid location');
|
|
795
|
-
}
|
|
796
|
-
parent.moveChild(from, to);
|
|
797
|
-
this.trySet2x2();
|
|
798
|
-
}
|
|
799
|
-
swapViews(from, to) {
|
|
800
|
-
if (this.hasMaximizedView()) {
|
|
801
|
-
this.exitMaximizedView();
|
|
802
|
-
}
|
|
803
|
-
const [fromRest, fromIndex] = tail2(from);
|
|
804
|
-
const [, fromParent] = this.getNode(fromRest);
|
|
805
|
-
if (!(fromParent instanceof BranchNode)) {
|
|
806
|
-
throw new Error('Invalid from location');
|
|
807
|
-
}
|
|
808
|
-
const fromSize = fromParent.getChildSize(fromIndex);
|
|
809
|
-
const fromNode = fromParent.children[fromIndex];
|
|
810
|
-
if (!(fromNode instanceof LeafNode)) {
|
|
811
|
-
throw new Error('Invalid from location');
|
|
812
|
-
}
|
|
813
|
-
const [toRest, toIndex] = tail2(to);
|
|
814
|
-
const [, toParent] = this.getNode(toRest);
|
|
815
|
-
if (!(toParent instanceof BranchNode)) {
|
|
816
|
-
throw new Error('Invalid to location');
|
|
817
|
-
}
|
|
818
|
-
const toSize = toParent.getChildSize(toIndex);
|
|
819
|
-
const toNode = toParent.children[toIndex];
|
|
820
|
-
if (!(toNode instanceof LeafNode)) {
|
|
821
|
-
throw new Error('Invalid to location');
|
|
822
|
-
}
|
|
823
|
-
if (fromParent === toParent) {
|
|
824
|
-
fromParent.swapChildren(fromIndex, toIndex);
|
|
825
|
-
}
|
|
826
|
-
else {
|
|
827
|
-
fromParent.removeChild(fromIndex);
|
|
828
|
-
toParent.removeChild(toIndex);
|
|
829
|
-
fromParent.addChild(toNode, fromSize, fromIndex);
|
|
830
|
-
toParent.addChild(fromNode, toSize, toIndex);
|
|
831
|
-
}
|
|
832
|
-
this.trySet2x2();
|
|
833
|
-
}
|
|
834
|
-
resizeView(location, size) {
|
|
835
|
-
if (this.hasMaximizedView()) {
|
|
836
|
-
this.exitMaximizedView();
|
|
837
|
-
}
|
|
838
|
-
const [rest, index] = tail2(location);
|
|
839
|
-
const [pathToParent, parent] = this.getNode(rest);
|
|
840
|
-
if (!(parent instanceof BranchNode)) {
|
|
841
|
-
throw new Error('Invalid location');
|
|
842
|
-
}
|
|
843
|
-
if (!size.width && !size.height) {
|
|
844
|
-
return;
|
|
845
|
-
}
|
|
846
|
-
const [parentSize, grandParentSize] = parent.orientation === 1 ? [size.width, size.height] : [size.height, size.width];
|
|
847
|
-
if (typeof grandParentSize === 'number' && pathToParent.length > 0) {
|
|
848
|
-
const [, grandParent] = tail2(pathToParent);
|
|
849
|
-
const [, parentIndex] = tail2(rest);
|
|
850
|
-
grandParent.resizeChild(parentIndex, grandParentSize);
|
|
851
|
-
}
|
|
852
|
-
if (typeof parentSize === 'number') {
|
|
853
|
-
parent.resizeChild(index, parentSize);
|
|
854
|
-
}
|
|
855
|
-
this.trySet2x2();
|
|
856
|
-
}
|
|
857
|
-
getViewSize(location) {
|
|
858
|
-
if (!location) {
|
|
859
|
-
return { width: this.root.width, height: this.root.height };
|
|
860
|
-
}
|
|
861
|
-
const [, node] = this.getNode(location);
|
|
862
|
-
return { width: node.width, height: node.height };
|
|
863
|
-
}
|
|
864
|
-
getViewCachedVisibleSize(location) {
|
|
865
|
-
const [rest, index] = tail2(location);
|
|
866
|
-
const [, parent] = this.getNode(rest);
|
|
867
|
-
if (!(parent instanceof BranchNode)) {
|
|
868
|
-
throw new Error('Invalid location');
|
|
869
|
-
}
|
|
870
|
-
return parent.getChildCachedVisibleSize(index);
|
|
871
|
-
}
|
|
872
|
-
expandView(location) {
|
|
873
|
-
if (this.hasMaximizedView()) {
|
|
874
|
-
this.exitMaximizedView();
|
|
875
|
-
}
|
|
876
|
-
const [ancestors, node] = this.getNode(location);
|
|
877
|
-
if (!(node instanceof LeafNode)) {
|
|
878
|
-
throw new Error('Invalid location');
|
|
879
|
-
}
|
|
880
|
-
for (let i = 0; i < ancestors.length; i++) {
|
|
881
|
-
ancestors[i].resizeChild(location[i], Number.POSITIVE_INFINITY);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
isViewExpanded(location) {
|
|
885
|
-
if (this.hasMaximizedView()) {
|
|
886
|
-
return false;
|
|
887
|
-
}
|
|
888
|
-
const [ancestors, node] = this.getNode(location);
|
|
889
|
-
if (!(node instanceof LeafNode)) {
|
|
890
|
-
throw new Error('Invalid location');
|
|
891
|
-
}
|
|
892
|
-
for (let i = 0; i < ancestors.length; i++) {
|
|
893
|
-
if (!ancestors[i].isChildExpanded(location[i])) {
|
|
894
|
-
return false;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
return true;
|
|
898
|
-
}
|
|
899
|
-
maximizeView(location) {
|
|
900
|
-
const [, nodeToMaximize] = this.getNode(location);
|
|
901
|
-
if (!(nodeToMaximize instanceof LeafNode)) {
|
|
902
|
-
throw new Error('Location is not a LeafNode');
|
|
903
|
-
}
|
|
904
|
-
if (this.maximizedNode === nodeToMaximize) {
|
|
905
|
-
return;
|
|
906
|
-
}
|
|
907
|
-
if (this.hasMaximizedView()) {
|
|
908
|
-
this.exitMaximizedView();
|
|
909
|
-
}
|
|
910
|
-
function hideAllViewsBut(parent, exclude) {
|
|
911
|
-
for (let i = 0; i < parent.children.length; i++) {
|
|
912
|
-
const child = parent.children[i];
|
|
913
|
-
if (child instanceof LeafNode) {
|
|
914
|
-
if (child !== exclude) {
|
|
915
|
-
parent.setChildVisible(i, false);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
else {
|
|
919
|
-
hideAllViewsBut(child, exclude);
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
hideAllViewsBut(this.root, nodeToMaximize);
|
|
924
|
-
this.maximizedNode = nodeToMaximize;
|
|
925
|
-
this._onDidChangeViewMaximized.fire(true);
|
|
926
|
-
}
|
|
927
|
-
exitMaximizedView() {
|
|
928
|
-
if (!this.maximizedNode) {
|
|
929
|
-
return;
|
|
930
|
-
}
|
|
931
|
-
this.maximizedNode = undefined;
|
|
932
|
-
function showViewsInReverseOrder(parent) {
|
|
933
|
-
for (let index = parent.children.length - 1; index >= 0; index--) {
|
|
934
|
-
const child = parent.children[index];
|
|
935
|
-
if (child instanceof LeafNode) {
|
|
936
|
-
parent.setChildVisible(index, true);
|
|
937
|
-
}
|
|
938
|
-
else {
|
|
939
|
-
showViewsInReverseOrder(child);
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
showViewsInReverseOrder(this.root);
|
|
944
|
-
this._onDidChangeViewMaximized.fire(false);
|
|
945
|
-
}
|
|
946
|
-
hasMaximizedView() {
|
|
947
|
-
return this.maximizedNode !== undefined;
|
|
948
|
-
}
|
|
949
|
-
isViewMaximized(location) {
|
|
950
|
-
const [, node] = this.getNode(location);
|
|
951
|
-
if (!(node instanceof LeafNode)) {
|
|
952
|
-
throw new Error('Location is not a LeafNode');
|
|
953
|
-
}
|
|
954
|
-
return node === this.maximizedNode;
|
|
955
|
-
}
|
|
956
|
-
distributeViewSizes(location) {
|
|
957
|
-
if (this.hasMaximizedView()) {
|
|
958
|
-
this.exitMaximizedView();
|
|
959
|
-
}
|
|
960
|
-
if (!location) {
|
|
961
|
-
this.root.distributeViewSizes(true);
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
const [, node] = this.getNode(location);
|
|
965
|
-
if (!(node instanceof BranchNode)) {
|
|
966
|
-
throw new Error('Invalid location');
|
|
967
|
-
}
|
|
968
|
-
node.distributeViewSizes();
|
|
969
|
-
this.trySet2x2();
|
|
970
|
-
}
|
|
971
|
-
isViewVisible(location) {
|
|
972
|
-
const [rest, index] = tail2(location);
|
|
973
|
-
const [, parent] = this.getNode(rest);
|
|
974
|
-
if (!(parent instanceof BranchNode)) {
|
|
975
|
-
throw new Error('Invalid from location');
|
|
976
|
-
}
|
|
977
|
-
return parent.isChildVisible(index);
|
|
978
|
-
}
|
|
979
|
-
setViewVisible(location, visible) {
|
|
980
|
-
if (this.hasMaximizedView()) {
|
|
981
|
-
this.exitMaximizedView();
|
|
982
|
-
return;
|
|
983
|
-
}
|
|
984
|
-
const [rest, index] = tail2(location);
|
|
985
|
-
const [, parent] = this.getNode(rest);
|
|
986
|
-
if (!(parent instanceof BranchNode)) {
|
|
987
|
-
throw new Error('Invalid from location');
|
|
988
|
-
}
|
|
989
|
-
parent.setChildVisible(index, visible);
|
|
990
|
-
}
|
|
991
|
-
getView(location) {
|
|
992
|
-
const node = location ? this.getNode(location)[1] : this._root;
|
|
993
|
-
return this._getViews(node, this.orientation);
|
|
994
|
-
}
|
|
995
|
-
static deserialize(json, deserializer, options = {}) {
|
|
996
|
-
if (typeof json.orientation !== 'number') {
|
|
997
|
-
throw new Error('Invalid JSON: \'orientation\' property must be a number.');
|
|
998
|
-
}
|
|
999
|
-
else if (typeof json.width !== 'number') {
|
|
1000
|
-
throw new Error('Invalid JSON: \'width\' property must be a number.');
|
|
1001
|
-
}
|
|
1002
|
-
else if (typeof json.height !== 'number') {
|
|
1003
|
-
throw new Error('Invalid JSON: \'height\' property must be a number.');
|
|
1004
|
-
}
|
|
1005
|
-
else if (json.root?.type !== 'branch') {
|
|
1006
|
-
throw new Error('Invalid JSON: \'root\' property must have \'type\' value of branch.');
|
|
1007
|
-
}
|
|
1008
|
-
const orientation = json.orientation;
|
|
1009
|
-
const height = json.height;
|
|
1010
|
-
const result = ( new GridView(options));
|
|
1011
|
-
result._deserialize(json.root, orientation, deserializer, height);
|
|
1012
|
-
return result;
|
|
1013
|
-
}
|
|
1014
|
-
_deserialize(root, orientation, deserializer, orthogonalSize) {
|
|
1015
|
-
this.root = this._deserializeNode(root, orientation, deserializer, orthogonalSize);
|
|
1016
|
-
}
|
|
1017
|
-
_deserializeNode(node, orientation, deserializer, orthogonalSize) {
|
|
1018
|
-
let result;
|
|
1019
|
-
if (node.type === 'branch') {
|
|
1020
|
-
const serializedChildren = node.data;
|
|
1021
|
-
const children = ( serializedChildren.map(serializedChild => {
|
|
1022
|
-
return {
|
|
1023
|
-
node: this._deserializeNode(serializedChild, orthogonal(orientation), deserializer, node.size),
|
|
1024
|
-
visible: serializedChild.visible
|
|
1025
|
-
};
|
|
1026
|
-
}));
|
|
1027
|
-
result = ( new BranchNode(
|
|
1028
|
-
orientation,
|
|
1029
|
-
this.layoutController,
|
|
1030
|
-
this.styles,
|
|
1031
|
-
this.proportionalLayout,
|
|
1032
|
-
node.size,
|
|
1033
|
-
orthogonalSize,
|
|
1034
|
-
undefined,
|
|
1035
|
-
children
|
|
1036
|
-
));
|
|
1037
|
-
}
|
|
1038
|
-
else {
|
|
1039
|
-
result = ( new LeafNode(
|
|
1040
|
-
deserializer.fromJSON(node.data),
|
|
1041
|
-
orientation,
|
|
1042
|
-
this.layoutController,
|
|
1043
|
-
orthogonalSize,
|
|
1044
|
-
node.size
|
|
1045
|
-
));
|
|
1046
|
-
if (node.maximized && !this.maximizedNode) {
|
|
1047
|
-
this.maximizedNode = result;
|
|
1048
|
-
this._onDidChangeViewMaximized.fire(true);
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
return result;
|
|
1052
|
-
}
|
|
1053
|
-
_getViews(node, orientation, cachedVisibleSize) {
|
|
1054
|
-
const box = { top: node.top, left: node.left, width: node.width, height: node.height };
|
|
1055
|
-
if (node instanceof LeafNode) {
|
|
1056
|
-
return { view: node.view, box, cachedVisibleSize, maximized: this.maximizedNode === node };
|
|
1057
|
-
}
|
|
1058
|
-
const children = [];
|
|
1059
|
-
for (let i = 0; i < node.children.length; i++) {
|
|
1060
|
-
const child = node.children[i];
|
|
1061
|
-
const cachedVisibleSize = node.getChildCachedVisibleSize(i);
|
|
1062
|
-
children.push(this._getViews(child, orthogonal(orientation), cachedVisibleSize));
|
|
1063
|
-
}
|
|
1064
|
-
return { children, box };
|
|
1065
|
-
}
|
|
1066
|
-
getNode(location, node = this.root, path = []) {
|
|
1067
|
-
if (location.length === 0) {
|
|
1068
|
-
return [path, node];
|
|
1069
|
-
}
|
|
1070
|
-
if (!(node instanceof BranchNode)) {
|
|
1071
|
-
throw new Error('Invalid location');
|
|
1072
|
-
}
|
|
1073
|
-
const [index, ...rest] = location;
|
|
1074
|
-
if (index < 0 || index >= node.children.length) {
|
|
1075
|
-
throw new Error('Invalid location');
|
|
1076
|
-
}
|
|
1077
|
-
const child = node.children[index];
|
|
1078
|
-
path.push(node);
|
|
1079
|
-
return this.getNode(rest, child, path);
|
|
1080
|
-
}
|
|
1081
|
-
trySet2x2() {
|
|
1082
|
-
this.disposable2x2.dispose();
|
|
1083
|
-
this.disposable2x2 = Disposable.None;
|
|
1084
|
-
if (this.root.children.length !== 2) {
|
|
1085
|
-
return;
|
|
1086
|
-
}
|
|
1087
|
-
const [first, second] = this.root.children;
|
|
1088
|
-
if (!(first instanceof BranchNode) || !(second instanceof BranchNode)) {
|
|
1089
|
-
return;
|
|
1090
|
-
}
|
|
1091
|
-
this.disposable2x2 = first.trySet2x2(second);
|
|
1092
|
-
}
|
|
1093
|
-
getViewMap(map, node) {
|
|
1094
|
-
if (!node) {
|
|
1095
|
-
node = this.root;
|
|
1096
|
-
}
|
|
1097
|
-
if (node instanceof BranchNode) {
|
|
1098
|
-
node.children.forEach(child => this.getViewMap(map, child));
|
|
1099
|
-
}
|
|
1100
|
-
else {
|
|
1101
|
-
map.set(node.view, node.element);
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
dispose() {
|
|
1105
|
-
this.onDidSashResetRelay.dispose();
|
|
1106
|
-
this.root.dispose();
|
|
1107
|
-
this.element.parentElement?.removeChild(this.element);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
export { GridView, Sizing, orthogonal };
|