@codingame/monaco-vscode-api 1.82.4 → 1.82.5-next.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.d.ts +3 -3
- package/external/xterm/typings/xterm.d.ts +1729 -0
- package/external/xterm-addon-canvas/typings/xterm-addon-canvas.d.ts +38 -0
- package/external/xterm-addon-image/typings/xterm-addon-image.d.ts +115 -0
- package/external/xterm-addon-search/typings/xterm-addon-search.d.ts +141 -0
- package/external/xterm-addon-serialize/typings/xterm-addon-serialize.d.ts +83 -0
- package/external/xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts +9 -0
- package/external/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts +43 -0
- package/external/xterm-headless/typings/xterm-headless.d.ts +49 -0
- package/missing-services.js +0 -1
- package/monaco-editor-treemending.patch +1026 -1026
- package/package.json +21 -1
- package/service-override/bulkEdit.js +0 -1
- package/service-override/environment.js +0 -1
- package/service-override/extensions.js +1 -1
- package/service-override/files.js +0 -1
- package/service-override/keybindings.js +1 -6
- package/service-override/layout.js +0 -1
- package/service-override/output.js +0 -1
- package/service-override/quickaccess.js +0 -1
- package/services.js +10 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
- package/README.md +0 -392
- package/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -2
- package/service-override/accessibility.d.ts +0 -5
- package/service-override/accessibility.js +0 -11
- package/service-override/audioCue.d.ts +0 -5
- package/service-override/audioCue.js +0 -13
- package/service-override/bulkEdit.d.ts +0 -5
- package/service-override/configuration.d.ts +0 -17
- package/service-override/configuration.js +0 -117
- package/service-override/debug.d.ts +0 -5
- package/service-override/debug.js +0 -23
- package/service-override/dialogs.d.ts +0 -5
- package/service-override/dialogs.js +0 -57
- package/service-override/editor.d.ts +0 -10
- package/service-override/editor.js +0 -37
- package/service-override/environment.d.ts +0 -6
- package/service-override/extensions.d.ts +0 -50
- package/service-override/files.d.ts +0 -103
- package/service-override/keybindings.d.ts +0 -10
- package/service-override/languageDetectionWorker.d.ts +0 -5
- package/service-override/languageDetectionWorker.js +0 -15
- package/service-override/languages.d.ts +0 -11
- package/service-override/languages.js +0 -27
- package/service-override/layout.d.ts +0 -71
- package/service-override/lifecycle.d.ts +0 -5
- package/service-override/lifecycle.js +0 -10
- package/service-override/markers.d.ts +0 -5
- package/service-override/markers.js +0 -6
- package/service-override/model.d.ts +0 -5
- package/service-override/model.js +0 -10
- package/service-override/notifications.d.ts +0 -5
- package/service-override/notifications.js +0 -34
- package/service-override/output.d.ts +0 -6
- package/service-override/preferences.d.ts +0 -5
- package/service-override/preferences.js +0 -16
- package/service-override/quickaccess.d.ts +0 -10
- package/service-override/remoteAgent.d.ts +0 -6
- package/service-override/remoteAgent.js +0 -42
- package/service-override/search.d.ts +0 -5
- package/service-override/search.js +0 -19
- package/service-override/snippets.d.ts +0 -9
- package/service-override/snippets.js +0 -21
- package/service-override/storage.d.ts +0 -40
- package/service-override/storage.js +0 -116
- package/service-override/terminal.d.ts +0 -69
- package/service-override/terminal.js +0 -117
- package/service-override/textmate.d.ts +0 -6
- package/service-override/textmate.js +0 -41
- package/service-override/theme.d.ts +0 -7
- package/service-override/theme.js +0 -26
- package/service-override/viewBanner.d.ts +0 -6
- package/service-override/viewBanner.js +0 -10
- package/service-override/viewStatusBar.d.ts +0 -6
- package/service-override/viewStatusBar.js +0 -10
- package/service-override/viewTitleBar.d.ts +0 -6
- package/service-override/viewTitleBar.js +0 -10
- package/service-override/views.d.ts +0 -74
- package/service-override/views.js +0 -511
- package/service-override/workspaceTrust.d.ts +0 -5
- package/service-override/workspaceTrust.js +0 -13
- package/vscode/src/vs/base/browser/broadcast.js +0 -52
- package/vscode/src/vs/base/browser/indexedDB.d.ts +0 -17
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
- package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -465
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -977
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +0 -60
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +0 -14
- package/vscode/src/vs/base/common/codicons.d.ts +0 -556
- package/vscode/src/vs/base/common/processes.js +0 -24
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -42
- package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +0 -56
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +0 -116
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +0 -67
- package/vscode/src/vs/platform/audioCues/browser/media/all.mp3.js +0 -20
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +0 -10
- package/vscode/src/vs/platform/download/common/downloadIpc.js +0 -16
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +0 -43
- package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +0 -136
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +0 -50
- package/vscode/src/vs/platform/log/common/logIpc.js +0 -24
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +0 -94
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +0 -193
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +0 -107
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -566
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -46
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -37
- package/vscode/src/vs/platform/terminal/common/terminalLogService.js +0 -42
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +0 -467
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -66
- package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +0 -40
- 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/workbench/api/browser/viewsExtensionPoint.js +0 -699
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +0 -450
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +0 -14
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +0 -236
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +0 -43
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +0 -33
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +0 -138
- package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.d.ts +0 -21
- package/vscode/src/vs/workbench/api/common/extHostInitDataService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostLocalizationService.d.ts +0 -29
- package/vscode/src/vs/workbench/api/common/extHostManagedSockets.d.ts +0 -11
- package/vscode/src/vs/workbench/api/common/extHostRpcService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostStoragePaths.d.ts +0 -14
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +0 -53
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +0 -12
- package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -91
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +0 -21
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -605
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +0 -597
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +0 -116
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -783
- 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 -88
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +0 -228
- package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -691
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +0 -7
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +0 -84
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -318
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +0 -69
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +0 -127
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -692
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -141
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -414
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -507
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1233
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -133
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -306
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -850
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/titlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +0 -247
- package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +0 -1569
- package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +0 -292
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -124
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -58
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -227
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -212
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -419
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -398
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -78
- package/vscode/src/vs/workbench/browser/parts/panel/media/basepanelpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +0 -134
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -756
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +0 -59
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -217
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +0 -109
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +0 -234
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +0 -249
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +0 -439
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +0 -134
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +0 -115
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +0 -77
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +0 -365
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +0 -216
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +0 -104
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +0 -1589
- package/vscode/src/vs/workbench/common/activity.js +0 -3
- package/vscode/src/vs/workbench/common/dialogs.js +0 -31
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +0 -13
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +0 -312
- package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +0 -63
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +0 -45
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +0 -170
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +0 -181
- package/vscode/src/vs/workbench/contrib/audioCues/browser/commands.js +0 -49
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -262
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -339
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -119
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +0 -35
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +0 -345
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -362
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -255
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +0 -249
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -14
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -137
- 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 -72
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -106
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -198
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -783
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -397
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1296
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -176
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -958
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -496
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -345
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -297
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -398
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -825
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -619
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -58
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -525
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -679
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -354
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -204
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -141
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1172
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1142
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -66
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -273
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -312
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -166
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -661
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -103
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -229
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -629
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -693
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -951
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -334
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -96
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -573
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -413
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -100
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -19
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -98
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1480
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -344
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -121
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -173
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -115
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -258
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -25
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -281
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +0 -2414
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +0 -16
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -5
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -73
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -36
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +0 -325
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -230
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -97
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -352
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -426
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -508
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -615
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +0 -94
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -144
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -53
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -134
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -353
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +0 -586
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +0 -75
- package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +0 -200
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +0 -455
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +0 -670
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +0 -873
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +0 -132
- package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +0 -170
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +0 -70
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +0 -158
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +0 -3
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -261
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +0 -10
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -290
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -66
- package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +0 -129
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +0 -272
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +0 -1102
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +0 -1213
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +0 -94
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +0 -47
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +0 -37
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +0 -747
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +0 -349
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +0 -468
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +0 -1477
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +0 -504
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +0 -296
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +0 -79
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +0 -2041
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +0 -771
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -1004
- package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +0 -196
- package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +0 -151
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +0 -67
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -207
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +0 -27
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +0 -1666
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +0 -481
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -759
- package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearchContributions.js +0 -7
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -220
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -232
- package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -7
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -224
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -513
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +0 -46
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -204
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -354
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -459
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -365
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -35
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -23
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -308
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -41
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -39
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -58
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -383
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -1916
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -636
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -220
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -85
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +0 -66
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +0 -11
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -477
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -700
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -187
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -298
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -135
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -268
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +0 -20
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +0 -264
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +0 -87
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +0 -126
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +0 -56
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +0 -136
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +0 -83
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +0 -113
- package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +0 -101
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -54
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +0 -175
- package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +0 -311
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +0 -240
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1964
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +0 -215
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -16
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +0 -186
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +0 -239
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +0 -482
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +0 -367
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2101
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +0 -82
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +0 -82
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -762
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -617
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +0 -278
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +0 -316
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +0 -218
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -146
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -269
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +0 -1134
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -108
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +0 -420
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -676
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -72
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +0 -598
- 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 -469
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -97
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -56
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -416
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -793
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +0 -96
- package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -356
- package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +0 -253
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +0 -1016
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -272
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -93
- package/vscode/src/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +0 -110
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +0 -232
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +0 -138
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +0 -226
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +0 -98
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +0 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +0 -155
- 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 -247
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -334
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -117
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -288
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -86
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -640
- 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 -120
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -61
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -232
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +0 -842
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +0 -1047
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +0 -14
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -94
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +0 -878
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +0 -1170
- package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +0 -80
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +0 -589
- package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +0 -119
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -303
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -26
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +0 -174
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +0 -10
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +0 -320
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +0 -989
- package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +0 -66
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -622
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +0 -4
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +0 -2
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1454
- package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -162
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -523
- package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -4
- package/vscode/src/vs/workbench/services/label/common/labelService.js +0 -412
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js +0 -173
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +0 -259
- package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +0 -121
- package/vscode/src/vs/workbench/services/localization/common/locale.js +0 -3
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +0 -188
- package/vscode/src/vs/workbench/services/outline/browser/outlineService.js +0 -35
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +0 -37
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +0 -556
- package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +0 -547
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +0 -39
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +0 -1039
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +0 -393
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +0 -71
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +0 -177
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +0 -51
- package/vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js +0 -38
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +0 -35
- package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -370
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +0 -40
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +0 -280
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -399
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +0 -62
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +0 -157
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +0 -200
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.worker.js +0 -87
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateWorkerTokenizer.js +0 -140
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.d.ts +0 -11
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +0 -459
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +0 -72
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +0 -36
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +0 -118
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +0 -93
- package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +0 -24
- package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +0 -187
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +0 -353
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +0 -290
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +0 -742
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +0 -864
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +0 -265
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +0 -303
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +0 -439
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -94
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +0 -120
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +0 -66
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +0 -372
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +0 -254
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -689
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -612
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +0 -322
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +0 -27
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +0 -151
- package/workers/languageDetection.worker.js +0 -8
- package/workers/outputLinkComputer.worker.js +0 -3
- package/workers/textmate.worker.js +0 -3
|
@@ -1,1233 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import './media/editorgroupview.css.js';
|
|
3
|
-
import { isSerializedEditorGroupModel, EditorGroupModel, isGroupEditorCloseEvent, isGroupEditorOpenEvent } from '../../../common/editor/editorGroupModel.js';
|
|
4
|
-
import { DEFAULT_EDITOR_ASSOCIATION, SideBySideEditor, EditorResourceAccessor, EditorCloseContext } from '../../../common/editor.js';
|
|
5
|
-
import { ActiveEditorDirtyContext, ActiveEditorPinnedContext, ActiveEditorFirstInGroupContext, ActiveEditorLastInGroupContext, ActiveEditorStickyContext, EditorGroupEditorsCountContext, ActiveEditorGroupLockedContext } from '../../../common/contextkeys.js';
|
|
6
|
-
import { SideBySideEditorInput } from '../../../common/editor/sideBySideEditorInput.js';
|
|
7
|
-
import { Emitter, Relay } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
8
|
-
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
9
|
-
import { addDisposableListener, EventType, EventHelper, trackFocus, clearNode, isAncestor, Dimension, findParentWithClass } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
10
|
-
import { ServiceCollection } from 'monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
11
|
-
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
12
|
-
import { ProgressBar } from 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
|
|
13
|
-
import { Themable, IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
14
|
-
import { contrastBorder, editorBackground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
15
|
-
import { EDITOR_GROUP_EMPTY_BACKGROUND, EDITOR_GROUP_HEADER_BORDER, EDITOR_GROUP_HEADER_TABS_BACKGROUND, EDITOR_GROUP_HEADER_NO_TABS_BACKGROUND } from '../../../common/theme.js';
|
|
16
|
-
import { TabsTitleControl } from './tabsTitleControl.js';
|
|
17
|
-
import { EditorPanes } from './editorPanes.js';
|
|
18
|
-
import { IEditorProgressService } from 'monaco-editor/esm/vs/platform/progress/common/progress.js';
|
|
19
|
-
import { EditorProgressIndicator } from '../../../services/progress/browser/progressIndicator.js';
|
|
20
|
-
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
21
|
-
import { coalesce, firstOrDefault } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
22
|
-
import { MutableDisposable, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
23
|
-
import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
24
|
-
import { RunOnceWorker, DeferredPromise, Promises } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
25
|
-
import { EventType as EventType$1 } from 'monaco-editor/esm/vs/base/browser/touch.js';
|
|
26
|
-
import { fillActiveEditorViewState } from './editor.js';
|
|
27
|
-
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
28
|
-
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
29
|
-
import { NoTabsTitleControl } from './noTabsTitleControl.js';
|
|
30
|
-
import { MenuId, IMenuService } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
31
|
-
import { StandardMouseEvent } from 'monaco-editor/esm/vs/base/browser/mouseEvent.js';
|
|
32
|
-
import { createAndFillInActionBarActions } from 'monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js';
|
|
33
|
-
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
34
|
-
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
35
|
-
import { hash } from 'monaco-editor/esm/vs/base/common/hash.js';
|
|
36
|
-
import { getMimeTypes } from 'monaco-editor/esm/vs/editor/common/services/languagesAssociations.js';
|
|
37
|
-
import { extname, isEqual } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
38
|
-
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
39
|
-
import { EditorActivation } from 'monaco-editor/esm/vs/platform/editor/common/editor.js';
|
|
40
|
-
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
41
|
-
import { IFilesConfigurationService } from '../../../services/filesConfiguration/common/filesConfigurationService.js';
|
|
42
|
-
import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
|
|
43
|
-
import { isNative, isWindows, isLinux, isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
44
|
-
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
45
|
-
import { TelemetryTrustedValue } from '../../../../platform/telemetry/common/telemetryUtils.js';
|
|
46
|
-
import { defaultProgressBarStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
47
|
-
import { EditorGroupWatermark } from './editorGroupWatermark.js';
|
|
48
|
-
import { IFileDialogService } from '../../../../platform/dialogs/common/dialogs.js';
|
|
49
|
-
var EditorGroupView_1;
|
|
50
|
-
let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable {
|
|
51
|
-
static createNew(accessor, index, instantiationService) {
|
|
52
|
-
return instantiationService.createInstance(EditorGroupView_1, accessor, null, index);
|
|
53
|
-
}
|
|
54
|
-
static createFromSerialized(serialized, accessor, index, instantiationService) {
|
|
55
|
-
return instantiationService.createInstance(EditorGroupView_1, accessor, serialized, index);
|
|
56
|
-
}
|
|
57
|
-
static createCopy(copyFrom, accessor, index, instantiationService) {
|
|
58
|
-
return instantiationService.createInstance(EditorGroupView_1, accessor, copyFrom, index);
|
|
59
|
-
}
|
|
60
|
-
constructor(accessor, from, _index, instantiationService, contextKeyService, themeService, telemetryService, keybindingService, menuService, contextMenuService, fileDialogService, editorService, filesConfigurationService, uriIdentityService, logService) {
|
|
61
|
-
super(themeService);
|
|
62
|
-
this.accessor = accessor;
|
|
63
|
-
this._index = _index;
|
|
64
|
-
this.instantiationService = instantiationService;
|
|
65
|
-
this.contextKeyService = contextKeyService;
|
|
66
|
-
this.telemetryService = telemetryService;
|
|
67
|
-
this.keybindingService = keybindingService;
|
|
68
|
-
this.menuService = menuService;
|
|
69
|
-
this.contextMenuService = contextMenuService;
|
|
70
|
-
this.fileDialogService = fileDialogService;
|
|
71
|
-
this.editorService = editorService;
|
|
72
|
-
this.filesConfigurationService = filesConfigurationService;
|
|
73
|
-
this.uriIdentityService = uriIdentityService;
|
|
74
|
-
this.logService = logService;
|
|
75
|
-
this._onDidFocus = this._register(( new Emitter()));
|
|
76
|
-
this.onDidFocus = this._onDidFocus.event;
|
|
77
|
-
this._onWillDispose = this._register(( new Emitter()));
|
|
78
|
-
this.onWillDispose = this._onWillDispose.event;
|
|
79
|
-
this._onDidModelChange = this._register(( new Emitter()));
|
|
80
|
-
this.onDidModelChange = this._onDidModelChange.event;
|
|
81
|
-
this._onDidActiveEditorChange = this._register(( new Emitter()));
|
|
82
|
-
this.onDidActiveEditorChange = this._onDidActiveEditorChange.event;
|
|
83
|
-
this._onDidOpenEditorFail = this._register(( new Emitter()));
|
|
84
|
-
this.onDidOpenEditorFail = this._onDidOpenEditorFail.event;
|
|
85
|
-
this._onWillCloseEditor = this._register(( new Emitter()));
|
|
86
|
-
this.onWillCloseEditor = this._onWillCloseEditor.event;
|
|
87
|
-
this._onDidCloseEditor = this._register(( new Emitter()));
|
|
88
|
-
this.onDidCloseEditor = this._onDidCloseEditor.event;
|
|
89
|
-
this._onWillMoveEditor = this._register(( new Emitter()));
|
|
90
|
-
this.onWillMoveEditor = this._onWillMoveEditor.event;
|
|
91
|
-
this._onWillOpenEditor = this._register(( new Emitter()));
|
|
92
|
-
this.onWillOpenEditor = this._onWillOpenEditor.event;
|
|
93
|
-
this.disposedEditorsWorker = this._register(( new RunOnceWorker(editors => this.handleDisposedEditors(editors), 0)));
|
|
94
|
-
this.mapEditorToPendingConfirmation = ( new Map());
|
|
95
|
-
this.containerToolBarMenuDisposable = this._register(( new MutableDisposable()));
|
|
96
|
-
this.whenRestoredPromise = ( new DeferredPromise());
|
|
97
|
-
this.whenRestored = this.whenRestoredPromise.p;
|
|
98
|
-
this._disposed = false;
|
|
99
|
-
this.element = document.createElement('div');
|
|
100
|
-
this._onDidChange = this._register(( new Relay()));
|
|
101
|
-
this.onDidChange = this._onDidChange.event;
|
|
102
|
-
if (from instanceof EditorGroupView_1) {
|
|
103
|
-
this.model = this._register(from.model.clone());
|
|
104
|
-
}
|
|
105
|
-
else if (isSerializedEditorGroupModel(from)) {
|
|
106
|
-
this.model = this._register(instantiationService.createInstance(EditorGroupModel, from));
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
this.model = this._register(instantiationService.createInstance(EditorGroupModel, undefined));
|
|
110
|
-
}
|
|
111
|
-
{
|
|
112
|
-
this.scopedContextKeyService = this._register(this.contextKeyService.createScoped(this.element));
|
|
113
|
-
this.element.classList.add('editor-group-container');
|
|
114
|
-
this.registerContainerListeners();
|
|
115
|
-
this.createContainerToolbar();
|
|
116
|
-
this.createContainerContextMenu();
|
|
117
|
-
this._register(this.instantiationService.createInstance(EditorGroupWatermark, this.element));
|
|
118
|
-
this.progressBar = this._register(( new ProgressBar(this.element, defaultProgressBarStyles)));
|
|
119
|
-
this.progressBar.hide();
|
|
120
|
-
this.scopedInstantiationService = this.instantiationService.createChild(( new ServiceCollection(
|
|
121
|
-
[IContextKeyService, this.scopedContextKeyService],
|
|
122
|
-
[IEditorProgressService, this._register(( new EditorProgressIndicator(this.progressBar, this)))]
|
|
123
|
-
)));
|
|
124
|
-
this.handleGroupContextKeys();
|
|
125
|
-
this.titleContainer = document.createElement('div');
|
|
126
|
-
this.titleContainer.classList.add('title');
|
|
127
|
-
this.element.appendChild(this.titleContainer);
|
|
128
|
-
this.titleAreaControl = this.createTitleAreaControl();
|
|
129
|
-
this.editorContainer = document.createElement('div');
|
|
130
|
-
this.editorContainer.classList.add('editor-container');
|
|
131
|
-
this.element.appendChild(this.editorContainer);
|
|
132
|
-
this.editorPane = this._register(this.scopedInstantiationService.createInstance(EditorPanes, this.element, this.editorContainer, this));
|
|
133
|
-
this._onDidChange.input = this.editorPane.onDidChangeSizeConstraints;
|
|
134
|
-
this.doTrackFocus();
|
|
135
|
-
this.updateTitleContainer();
|
|
136
|
-
this.updateContainer();
|
|
137
|
-
this.updateStyles();
|
|
138
|
-
}
|
|
139
|
-
const restoreEditorsPromise = this.restoreEditors(from) ?? Promise.resolve();
|
|
140
|
-
restoreEditorsPromise.finally(() => {
|
|
141
|
-
this.whenRestoredPromise.complete();
|
|
142
|
-
});
|
|
143
|
-
this.registerListeners();
|
|
144
|
-
}
|
|
145
|
-
handleGroupContextKeys() {
|
|
146
|
-
const groupActiveEditorDirtyContext = ActiveEditorDirtyContext.bindTo(this.scopedContextKeyService);
|
|
147
|
-
const groupActiveEditorPinnedContext = ActiveEditorPinnedContext.bindTo(this.scopedContextKeyService);
|
|
148
|
-
const groupActiveEditorFirstContext = ActiveEditorFirstInGroupContext.bindTo(this.scopedContextKeyService);
|
|
149
|
-
const groupActiveEditorLastContext = ActiveEditorLastInGroupContext.bindTo(this.scopedContextKeyService);
|
|
150
|
-
const groupActiveEditorStickyContext = ActiveEditorStickyContext.bindTo(this.scopedContextKeyService);
|
|
151
|
-
const groupEditorsCountContext = EditorGroupEditorsCountContext.bindTo(this.scopedContextKeyService);
|
|
152
|
-
const groupLockedContext = ActiveEditorGroupLockedContext.bindTo(this.scopedContextKeyService);
|
|
153
|
-
const activeEditorListener = this._register(( new MutableDisposable()));
|
|
154
|
-
const observeActiveEditor = () => {
|
|
155
|
-
activeEditorListener.clear();
|
|
156
|
-
const activeEditor = this.model.activeEditor;
|
|
157
|
-
if (activeEditor) {
|
|
158
|
-
groupActiveEditorDirtyContext.set(activeEditor.isDirty() && !activeEditor.isSaving());
|
|
159
|
-
activeEditorListener.value = activeEditor.onDidChangeDirty(() => {
|
|
160
|
-
groupActiveEditorDirtyContext.set(activeEditor.isDirty() && !activeEditor.isSaving());
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
groupActiveEditorDirtyContext.set(false);
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
this._register(this.onDidModelChange(e => {
|
|
168
|
-
switch (e.kind) {
|
|
169
|
-
case 2 :
|
|
170
|
-
groupLockedContext.set(this.isLocked);
|
|
171
|
-
break;
|
|
172
|
-
case 6 :
|
|
173
|
-
case 4 :
|
|
174
|
-
case 3 :
|
|
175
|
-
case 5 :
|
|
176
|
-
groupActiveEditorFirstContext.set(this.model.isFirst(this.model.activeEditor));
|
|
177
|
-
groupActiveEditorLastContext.set(this.model.isLast(this.model.activeEditor));
|
|
178
|
-
break;
|
|
179
|
-
case 9 :
|
|
180
|
-
if (e.editor && e.editor === this.model.activeEditor) {
|
|
181
|
-
groupActiveEditorPinnedContext.set(this.model.isPinned(this.model.activeEditor));
|
|
182
|
-
}
|
|
183
|
-
break;
|
|
184
|
-
case 10 :
|
|
185
|
-
if (e.editor && e.editor === this.model.activeEditor) {
|
|
186
|
-
groupActiveEditorStickyContext.set(this.model.isSticky(this.model.activeEditor));
|
|
187
|
-
}
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
groupEditorsCountContext.set(this.count);
|
|
191
|
-
}));
|
|
192
|
-
this._register(this.onDidActiveEditorChange(() => {
|
|
193
|
-
observeActiveEditor();
|
|
194
|
-
}));
|
|
195
|
-
observeActiveEditor();
|
|
196
|
-
}
|
|
197
|
-
registerContainerListeners() {
|
|
198
|
-
this._register(addDisposableListener(this.element, EventType.DBLCLICK, e => {
|
|
199
|
-
if (this.isEmpty) {
|
|
200
|
-
EventHelper.stop(e);
|
|
201
|
-
this.editorService.openEditor({
|
|
202
|
-
resource: undefined,
|
|
203
|
-
options: {
|
|
204
|
-
pinned: true,
|
|
205
|
-
override: DEFAULT_EDITOR_ASSOCIATION.id
|
|
206
|
-
}
|
|
207
|
-
}, this.id);
|
|
208
|
-
}
|
|
209
|
-
}));
|
|
210
|
-
this._register(addDisposableListener(this.element, EventType.AUXCLICK, e => {
|
|
211
|
-
if (this.isEmpty && e.button === 1 ) {
|
|
212
|
-
EventHelper.stop(e, true);
|
|
213
|
-
this.accessor.removeGroup(this);
|
|
214
|
-
}
|
|
215
|
-
}));
|
|
216
|
-
}
|
|
217
|
-
createContainerToolbar() {
|
|
218
|
-
const toolbarContainer = document.createElement('div');
|
|
219
|
-
toolbarContainer.classList.add('editor-group-container-toolbar');
|
|
220
|
-
this.element.appendChild(toolbarContainer);
|
|
221
|
-
const containerToolbar = this._register(( new ActionBar(toolbarContainer, {
|
|
222
|
-
ariaLabel: ( localize('ariaLabelGroupActions', "Empty editor group actions"))
|
|
223
|
-
})));
|
|
224
|
-
const containerToolbarMenu = this._register(this.menuService.createMenu(MenuId.EmptyEditorGroup, this.scopedContextKeyService));
|
|
225
|
-
const updateContainerToolbar = () => {
|
|
226
|
-
const actions = { primary: [], secondary: [] };
|
|
227
|
-
this.containerToolBarMenuDisposable.value = toDisposable(() => containerToolbar.clear());
|
|
228
|
-
createAndFillInActionBarActions(containerToolbarMenu, { arg: { groupId: this.id }, shouldForwardArgs: true }, actions, 'navigation');
|
|
229
|
-
for (const action of [...actions.primary, ...actions.secondary]) {
|
|
230
|
-
const keybinding = this.keybindingService.lookupKeybinding(action.id);
|
|
231
|
-
containerToolbar.push(action, { icon: true, label: false, keybinding: keybinding?.getLabel() });
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
updateContainerToolbar();
|
|
235
|
-
this._register(containerToolbarMenu.onDidChange(updateContainerToolbar));
|
|
236
|
-
}
|
|
237
|
-
createContainerContextMenu() {
|
|
238
|
-
this._register(addDisposableListener(this.element, EventType.CONTEXT_MENU, e => this.onShowContainerContextMenu(e)));
|
|
239
|
-
this._register(addDisposableListener(this.element, EventType$1.Contextmenu, () => this.onShowContainerContextMenu()));
|
|
240
|
-
}
|
|
241
|
-
onShowContainerContextMenu(e) {
|
|
242
|
-
if (!this.isEmpty) {
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
let anchor = this.element;
|
|
246
|
-
if (e instanceof MouseEvent) {
|
|
247
|
-
anchor = ( new StandardMouseEvent(e));
|
|
248
|
-
}
|
|
249
|
-
this.contextMenuService.showContextMenu({
|
|
250
|
-
menuId: MenuId.EmptyEditorGroupContext,
|
|
251
|
-
contextKeyService: this.contextKeyService,
|
|
252
|
-
getAnchor: () => anchor,
|
|
253
|
-
onHide: () => {
|
|
254
|
-
this.focus();
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
doTrackFocus() {
|
|
259
|
-
const containerFocusTracker = this._register(trackFocus(this.element));
|
|
260
|
-
this._register(containerFocusTracker.onDidFocus(() => {
|
|
261
|
-
if (this.isEmpty) {
|
|
262
|
-
this._onDidFocus.fire();
|
|
263
|
-
}
|
|
264
|
-
}));
|
|
265
|
-
const handleTitleClickOrTouch = (e) => {
|
|
266
|
-
let target;
|
|
267
|
-
if (e instanceof MouseEvent) {
|
|
268
|
-
if (e.button !== 0 || ((isMacintosh && e.ctrlKey) )) {
|
|
269
|
-
return undefined;
|
|
270
|
-
}
|
|
271
|
-
target = e.target;
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
target = e.initialTarget;
|
|
275
|
-
}
|
|
276
|
-
if (findParentWithClass(target, 'monaco-action-bar', this.titleContainer) ||
|
|
277
|
-
findParentWithClass(target, 'monaco-breadcrumb-item', this.titleContainer)) {
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
setTimeout(() => {
|
|
281
|
-
this.focus();
|
|
282
|
-
});
|
|
283
|
-
};
|
|
284
|
-
this._register(addDisposableListener(this.titleContainer, EventType.MOUSE_DOWN, e => handleTitleClickOrTouch(e)));
|
|
285
|
-
this._register(addDisposableListener(this.titleContainer, EventType$1.Tap, e => handleTitleClickOrTouch(e)));
|
|
286
|
-
this._register(this.editorPane.onDidFocus(() => {
|
|
287
|
-
this._onDidFocus.fire();
|
|
288
|
-
}));
|
|
289
|
-
}
|
|
290
|
-
updateContainer() {
|
|
291
|
-
if (this.isEmpty) {
|
|
292
|
-
this.element.classList.add('empty');
|
|
293
|
-
this.element.tabIndex = 0;
|
|
294
|
-
this.element.setAttribute('aria-label', ( localize('emptyEditorGroup', "{0} (empty)", this.label)));
|
|
295
|
-
}
|
|
296
|
-
else {
|
|
297
|
-
this.element.classList.remove('empty');
|
|
298
|
-
this.element.removeAttribute('tabIndex');
|
|
299
|
-
this.element.removeAttribute('aria-label');
|
|
300
|
-
}
|
|
301
|
-
this.updateStyles();
|
|
302
|
-
}
|
|
303
|
-
updateTitleContainer() {
|
|
304
|
-
this.titleContainer.classList.toggle('tabs', this.accessor.partOptions.showTabs);
|
|
305
|
-
this.titleContainer.classList.toggle('show-file-icons', this.accessor.partOptions.showIcons);
|
|
306
|
-
}
|
|
307
|
-
createTitleAreaControl() {
|
|
308
|
-
if (this.titleAreaControl) {
|
|
309
|
-
this.titleAreaControl.dispose();
|
|
310
|
-
clearNode(this.titleContainer);
|
|
311
|
-
}
|
|
312
|
-
if (this.accessor.partOptions.showTabs) {
|
|
313
|
-
this.titleAreaControl = this.scopedInstantiationService.createInstance(TabsTitleControl, this.titleContainer, this.accessor, this);
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
this.titleAreaControl = this.scopedInstantiationService.createInstance(NoTabsTitleControl, this.titleContainer, this.accessor, this);
|
|
317
|
-
}
|
|
318
|
-
return this.titleAreaControl;
|
|
319
|
-
}
|
|
320
|
-
restoreEditors(from) {
|
|
321
|
-
if (this.count === 0) {
|
|
322
|
-
return;
|
|
323
|
-
}
|
|
324
|
-
let options;
|
|
325
|
-
if (from instanceof EditorGroupView_1) {
|
|
326
|
-
options = fillActiveEditorViewState(from);
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
options = Object.create(null);
|
|
330
|
-
}
|
|
331
|
-
const activeEditor = this.model.activeEditor;
|
|
332
|
-
if (!activeEditor) {
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
options.pinned = this.model.isPinned(activeEditor);
|
|
336
|
-
options.sticky = this.model.isSticky(activeEditor);
|
|
337
|
-
options.preserveFocus = true;
|
|
338
|
-
const activeElement = document.activeElement;
|
|
339
|
-
return this.doShowEditor(activeEditor, { active: true, isNew: false }, options).then(() => {
|
|
340
|
-
if (this.accessor.activeGroup === this && activeElement === document.activeElement) {
|
|
341
|
-
this.focus();
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
registerListeners() {
|
|
346
|
-
this._register(this.model.onDidModelChange(e => this.onDidGroupModelChange(e)));
|
|
347
|
-
this._register(this.accessor.onDidChangeEditorPartOptions(e => this.onDidChangeEditorPartOptions(e)));
|
|
348
|
-
this._register(this.accessor.onDidVisibilityChange(e => this.onDidVisibilityChange(e)));
|
|
349
|
-
}
|
|
350
|
-
onDidGroupModelChange(e) {
|
|
351
|
-
this._onDidModelChange.fire(e);
|
|
352
|
-
if (!e.editor) {
|
|
353
|
-
return;
|
|
354
|
-
}
|
|
355
|
-
switch (e.kind) {
|
|
356
|
-
case 3 :
|
|
357
|
-
if (isGroupEditorOpenEvent(e)) {
|
|
358
|
-
this.onDidOpenEditor(e.editor, e.editorIndex);
|
|
359
|
-
}
|
|
360
|
-
break;
|
|
361
|
-
case 4 :
|
|
362
|
-
if (isGroupEditorCloseEvent(e)) {
|
|
363
|
-
this.handleOnDidCloseEditor(e.editor, e.editorIndex, e.context, e.sticky);
|
|
364
|
-
}
|
|
365
|
-
break;
|
|
366
|
-
case 12 :
|
|
367
|
-
this.onWillDisposeEditor(e.editor);
|
|
368
|
-
break;
|
|
369
|
-
case 11 :
|
|
370
|
-
this.onDidChangeEditorDirty(e.editor);
|
|
371
|
-
break;
|
|
372
|
-
case 7 :
|
|
373
|
-
this.onDidChangeEditorLabel(e.editor);
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
onDidOpenEditor(editor, editorIndex) {
|
|
378
|
-
this.telemetryService.publicLog('editorOpened', this.toEditorTelemetryDescriptor(editor));
|
|
379
|
-
this.updateContainer();
|
|
380
|
-
}
|
|
381
|
-
handleOnDidCloseEditor(editor, editorIndex, context, sticky) {
|
|
382
|
-
this._onWillCloseEditor.fire({ groupId: this.id, editor, context, index: editorIndex, sticky });
|
|
383
|
-
const editorsToClose = [editor];
|
|
384
|
-
if (editor instanceof SideBySideEditorInput) {
|
|
385
|
-
editorsToClose.push(editor.primary, editor.secondary);
|
|
386
|
-
}
|
|
387
|
-
for (const editor of editorsToClose) {
|
|
388
|
-
if (this.canDispose(editor)) {
|
|
389
|
-
editor.dispose();
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
this.telemetryService.publicLog('editorClosed', this.toEditorTelemetryDescriptor(editor));
|
|
393
|
-
this.updateContainer();
|
|
394
|
-
this._onDidCloseEditor.fire({ groupId: this.id, editor, context, index: editorIndex, sticky });
|
|
395
|
-
}
|
|
396
|
-
canDispose(editor) {
|
|
397
|
-
for (const groupView of this.accessor.groups) {
|
|
398
|
-
if (groupView instanceof EditorGroupView_1 && groupView.model.contains(editor, {
|
|
399
|
-
strictEquals: true,
|
|
400
|
-
supportSideBySide: SideBySideEditor.ANY
|
|
401
|
-
})) {
|
|
402
|
-
return false;
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
return true;
|
|
406
|
-
}
|
|
407
|
-
toEditorTelemetryDescriptor(editor) {
|
|
408
|
-
const descriptor = editor.getTelemetryDescriptor();
|
|
409
|
-
const resource = EditorResourceAccessor.getOriginalUri(editor);
|
|
410
|
-
const path = resource ? resource.scheme === Schemas.file ? resource.fsPath : resource.path : undefined;
|
|
411
|
-
if (resource && path) {
|
|
412
|
-
let resourceExt = extname(resource);
|
|
413
|
-
const queryStringLocation = resourceExt.indexOf('?');
|
|
414
|
-
resourceExt = queryStringLocation !== -1 ? resourceExt.substr(0, queryStringLocation) : resourceExt;
|
|
415
|
-
descriptor['resource'] = { mimeType: ( new TelemetryTrustedValue(getMimeTypes(resource).join(', '))), scheme: resource.scheme, ext: resourceExt, path: hash(path) };
|
|
416
|
-
return descriptor;
|
|
417
|
-
}
|
|
418
|
-
return descriptor;
|
|
419
|
-
}
|
|
420
|
-
onWillDisposeEditor(editor) {
|
|
421
|
-
this.disposedEditorsWorker.work(editor);
|
|
422
|
-
}
|
|
423
|
-
handleDisposedEditors(disposedEditors) {
|
|
424
|
-
let activeEditor;
|
|
425
|
-
const inactiveEditors = [];
|
|
426
|
-
for (const disposedEditor of disposedEditors) {
|
|
427
|
-
const editorFindResult = this.model.findEditor(disposedEditor);
|
|
428
|
-
if (!editorFindResult) {
|
|
429
|
-
continue;
|
|
430
|
-
}
|
|
431
|
-
const editor = editorFindResult[0];
|
|
432
|
-
if (!editor.isDisposed()) {
|
|
433
|
-
continue;
|
|
434
|
-
}
|
|
435
|
-
if (this.model.isActive(editor)) {
|
|
436
|
-
activeEditor = editor;
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
inactiveEditors.push(editor);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
for (const inactiveEditor of inactiveEditors) {
|
|
443
|
-
this.doCloseEditor(inactiveEditor, false);
|
|
444
|
-
}
|
|
445
|
-
if (activeEditor) {
|
|
446
|
-
this.doCloseEditor(activeEditor, false);
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
onDidChangeEditorPartOptions(event) {
|
|
450
|
-
this.updateTitleContainer();
|
|
451
|
-
if (event.oldPartOptions.showTabs !== event.newPartOptions.showTabs) {
|
|
452
|
-
this.createTitleAreaControl();
|
|
453
|
-
this.relayout();
|
|
454
|
-
if (this.model.activeEditor) {
|
|
455
|
-
this.titleAreaControl.openEditor(this.model.activeEditor);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
else {
|
|
459
|
-
this.titleAreaControl.updateOptions(event.oldPartOptions, event.newPartOptions);
|
|
460
|
-
}
|
|
461
|
-
this.updateStyles();
|
|
462
|
-
if (event.oldPartOptions.enablePreview && !event.newPartOptions.enablePreview) {
|
|
463
|
-
if (this.model.previewEditor) {
|
|
464
|
-
this.pinEditor(this.model.previewEditor);
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
onDidChangeEditorDirty(editor) {
|
|
469
|
-
this.pinEditor(editor);
|
|
470
|
-
this.titleAreaControl.updateEditorDirty(editor);
|
|
471
|
-
}
|
|
472
|
-
onDidChangeEditorLabel(editor) {
|
|
473
|
-
this.titleAreaControl.updateEditorLabel(editor);
|
|
474
|
-
}
|
|
475
|
-
onDidVisibilityChange(visible) {
|
|
476
|
-
this.editorPane.setVisible(visible);
|
|
477
|
-
}
|
|
478
|
-
get index() {
|
|
479
|
-
return this._index;
|
|
480
|
-
}
|
|
481
|
-
get label() {
|
|
482
|
-
return ( localize('groupLabel', "Group {0}", this._index + 1));
|
|
483
|
-
}
|
|
484
|
-
get ariaLabel() {
|
|
485
|
-
return ( localize('groupAriaLabel', "Editor Group {0}", this._index + 1));
|
|
486
|
-
}
|
|
487
|
-
get disposed() {
|
|
488
|
-
return this._disposed;
|
|
489
|
-
}
|
|
490
|
-
get isEmpty() {
|
|
491
|
-
return this.count === 0;
|
|
492
|
-
}
|
|
493
|
-
get titleHeight() {
|
|
494
|
-
return this.titleAreaControl.getHeight();
|
|
495
|
-
}
|
|
496
|
-
notifyIndexChanged(newIndex) {
|
|
497
|
-
if (this._index !== newIndex) {
|
|
498
|
-
this._index = newIndex;
|
|
499
|
-
this.model.setIndex(newIndex);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
setActive(isActive) {
|
|
503
|
-
this.active = isActive;
|
|
504
|
-
this.element.classList.toggle('active', isActive);
|
|
505
|
-
this.element.classList.toggle('inactive', !isActive);
|
|
506
|
-
this.titleAreaControl.setActive(isActive);
|
|
507
|
-
this.updateStyles();
|
|
508
|
-
this.model.setActive(undefined );
|
|
509
|
-
}
|
|
510
|
-
get id() {
|
|
511
|
-
return this.model.id;
|
|
512
|
-
}
|
|
513
|
-
get editors() {
|
|
514
|
-
return this.model.getEditors(1 );
|
|
515
|
-
}
|
|
516
|
-
get count() {
|
|
517
|
-
return this.model.count;
|
|
518
|
-
}
|
|
519
|
-
get stickyCount() {
|
|
520
|
-
return this.model.stickyCount;
|
|
521
|
-
}
|
|
522
|
-
get activeEditorPane() {
|
|
523
|
-
return this.editorPane ? this.editorPane.activeEditorPane ?? undefined : undefined;
|
|
524
|
-
}
|
|
525
|
-
get activeEditor() {
|
|
526
|
-
return this.model.activeEditor;
|
|
527
|
-
}
|
|
528
|
-
get previewEditor() {
|
|
529
|
-
return this.model.previewEditor;
|
|
530
|
-
}
|
|
531
|
-
isPinned(editorOrIndex) {
|
|
532
|
-
return this.model.isPinned(editorOrIndex);
|
|
533
|
-
}
|
|
534
|
-
isSticky(editorOrIndex) {
|
|
535
|
-
return this.model.isSticky(editorOrIndex);
|
|
536
|
-
}
|
|
537
|
-
isActive(editor) {
|
|
538
|
-
return this.model.isActive(editor);
|
|
539
|
-
}
|
|
540
|
-
contains(candidate, options) {
|
|
541
|
-
return this.model.contains(candidate, options);
|
|
542
|
-
}
|
|
543
|
-
getEditors(order, options) {
|
|
544
|
-
return this.model.getEditors(order, options);
|
|
545
|
-
}
|
|
546
|
-
findEditors(resource, options) {
|
|
547
|
-
const canonicalResource = this.uriIdentityService.asCanonicalUri(resource);
|
|
548
|
-
return this.getEditors(1 ).filter(editor => {
|
|
549
|
-
if (editor.resource && isEqual(editor.resource, canonicalResource)) {
|
|
550
|
-
return true;
|
|
551
|
-
}
|
|
552
|
-
if (options?.supportSideBySide === SideBySideEditor.PRIMARY || options?.supportSideBySide === SideBySideEditor.ANY) {
|
|
553
|
-
const primaryResource = EditorResourceAccessor.getCanonicalUri(editor, { supportSideBySide: SideBySideEditor.PRIMARY });
|
|
554
|
-
if (primaryResource && isEqual(primaryResource, canonicalResource)) {
|
|
555
|
-
return true;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
if (options?.supportSideBySide === SideBySideEditor.SECONDARY || options?.supportSideBySide === SideBySideEditor.ANY) {
|
|
559
|
-
const secondaryResource = EditorResourceAccessor.getCanonicalUri(editor, { supportSideBySide: SideBySideEditor.SECONDARY });
|
|
560
|
-
if (secondaryResource && isEqual(secondaryResource, canonicalResource)) {
|
|
561
|
-
return true;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
return false;
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
getEditorByIndex(index) {
|
|
568
|
-
return this.model.getEditorByIndex(index);
|
|
569
|
-
}
|
|
570
|
-
getIndexOfEditor(editor) {
|
|
571
|
-
return this.model.indexOf(editor);
|
|
572
|
-
}
|
|
573
|
-
isFirst(editor) {
|
|
574
|
-
return this.model.isFirst(editor);
|
|
575
|
-
}
|
|
576
|
-
isLast(editor) {
|
|
577
|
-
return this.model.isLast(editor);
|
|
578
|
-
}
|
|
579
|
-
focus() {
|
|
580
|
-
if (this.activeEditorPane) {
|
|
581
|
-
this.activeEditorPane.focus();
|
|
582
|
-
}
|
|
583
|
-
else {
|
|
584
|
-
this.element.focus();
|
|
585
|
-
}
|
|
586
|
-
this._onDidFocus.fire();
|
|
587
|
-
}
|
|
588
|
-
pinEditor(candidate = this.activeEditor || undefined) {
|
|
589
|
-
if (candidate && !this.model.isPinned(candidate)) {
|
|
590
|
-
const editor = this.model.pin(candidate);
|
|
591
|
-
if (editor) {
|
|
592
|
-
this.titleAreaControl.pinEditor(editor);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
stickEditor(candidate = this.activeEditor || undefined) {
|
|
597
|
-
this.doStickEditor(candidate, true);
|
|
598
|
-
}
|
|
599
|
-
unstickEditor(candidate = this.activeEditor || undefined) {
|
|
600
|
-
this.doStickEditor(candidate, false);
|
|
601
|
-
}
|
|
602
|
-
doStickEditor(candidate, sticky) {
|
|
603
|
-
if (candidate && this.model.isSticky(candidate) !== sticky) {
|
|
604
|
-
const oldIndexOfEditor = this.getIndexOfEditor(candidate);
|
|
605
|
-
const editor = sticky ? this.model.stick(candidate) : this.model.unstick(candidate);
|
|
606
|
-
if (!editor) {
|
|
607
|
-
return;
|
|
608
|
-
}
|
|
609
|
-
const newIndexOfEditor = this.getIndexOfEditor(editor);
|
|
610
|
-
if (newIndexOfEditor !== oldIndexOfEditor) {
|
|
611
|
-
this.titleAreaControl.moveEditor(editor, oldIndexOfEditor, newIndexOfEditor);
|
|
612
|
-
}
|
|
613
|
-
if (sticky) {
|
|
614
|
-
this.titleAreaControl.stickEditor(editor);
|
|
615
|
-
}
|
|
616
|
-
else {
|
|
617
|
-
this.titleAreaControl.unstickEditor(editor);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
async openEditor(editor, options) {
|
|
622
|
-
return this.doOpenEditor(editor, options, {
|
|
623
|
-
supportSideBySide: SideBySideEditor.BOTH
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
async doOpenEditor(editor, options, internalOptions) {
|
|
627
|
-
if (!editor || editor.isDisposed()) {
|
|
628
|
-
return;
|
|
629
|
-
}
|
|
630
|
-
this._onWillOpenEditor.fire({ editor, groupId: this.id });
|
|
631
|
-
const pinned = options?.sticky
|
|
632
|
-
|| !this.accessor.partOptions.enablePreview
|
|
633
|
-
|| editor.isDirty()
|
|
634
|
-
|| ((options?.pinned ?? typeof options?.index === 'number') )
|
|
635
|
-
|| (typeof options?.index === 'number' && this.model.isSticky(options.index))
|
|
636
|
-
|| editor.hasCapability(512 );
|
|
637
|
-
const openEditorOptions = {
|
|
638
|
-
index: options ? options.index : undefined,
|
|
639
|
-
pinned,
|
|
640
|
-
sticky: options?.sticky || (typeof options?.index === 'number' && this.model.isSticky(options.index)),
|
|
641
|
-
active: this.count === 0 || !options || !options.inactive,
|
|
642
|
-
supportSideBySide: internalOptions?.supportSideBySide
|
|
643
|
-
};
|
|
644
|
-
if (options?.sticky && typeof options?.index === 'number' && !this.model.isSticky(options.index)) {
|
|
645
|
-
openEditorOptions.sticky = false;
|
|
646
|
-
}
|
|
647
|
-
if (!openEditorOptions.active && !openEditorOptions.pinned && this.model.activeEditor && !this.model.isPinned(this.model.activeEditor)) {
|
|
648
|
-
openEditorOptions.active = true;
|
|
649
|
-
}
|
|
650
|
-
let activateGroup = false;
|
|
651
|
-
let restoreGroup = false;
|
|
652
|
-
if (options?.activation === EditorActivation.ACTIVATE) {
|
|
653
|
-
activateGroup = true;
|
|
654
|
-
}
|
|
655
|
-
else if (options?.activation === EditorActivation.RESTORE) {
|
|
656
|
-
restoreGroup = true;
|
|
657
|
-
}
|
|
658
|
-
else if (options?.activation === EditorActivation.PRESERVE) {
|
|
659
|
-
activateGroup = false;
|
|
660
|
-
restoreGroup = false;
|
|
661
|
-
}
|
|
662
|
-
else if (openEditorOptions.active) {
|
|
663
|
-
activateGroup = !options || !options.preserveFocus;
|
|
664
|
-
restoreGroup = !activateGroup;
|
|
665
|
-
}
|
|
666
|
-
if (typeof openEditorOptions.index === 'number') {
|
|
667
|
-
const indexOfEditor = this.model.indexOf(editor);
|
|
668
|
-
if (indexOfEditor !== -1 && indexOfEditor !== openEditorOptions.index) {
|
|
669
|
-
this.doMoveEditorInsideGroup(editor, openEditorOptions);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
const { editor: openedEditor, isNew } = this.model.openEditor(editor, openEditorOptions);
|
|
673
|
-
if (isNew &&
|
|
674
|
-
this.count === 1 &&
|
|
675
|
-
this.accessor.groups.length > 1
|
|
676
|
-
) {
|
|
677
|
-
if (openedEditor.editorId && this.accessor.partOptions.autoLockGroups?.has(openedEditor.editorId)) {
|
|
678
|
-
this.lock(true);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
const showEditorResult = this.doShowEditor(openedEditor, { active: !!openEditorOptions.active, isNew }, options, internalOptions);
|
|
682
|
-
if (activateGroup) {
|
|
683
|
-
this.accessor.activateGroup(this);
|
|
684
|
-
}
|
|
685
|
-
else if (restoreGroup) {
|
|
686
|
-
this.accessor.restoreGroup(this);
|
|
687
|
-
}
|
|
688
|
-
return showEditorResult;
|
|
689
|
-
}
|
|
690
|
-
doShowEditor(editor, context, options, internalOptions) {
|
|
691
|
-
let openEditorPromise;
|
|
692
|
-
if (context.active) {
|
|
693
|
-
openEditorPromise = (async () => {
|
|
694
|
-
const { pane, changed, cancelled, error } = await this.editorPane.openEditor(editor, options, { newInGroup: context.isNew });
|
|
695
|
-
if (cancelled) {
|
|
696
|
-
return undefined;
|
|
697
|
-
}
|
|
698
|
-
if (changed) {
|
|
699
|
-
this._onDidActiveEditorChange.fire({ editor });
|
|
700
|
-
}
|
|
701
|
-
if (error) {
|
|
702
|
-
this._onDidOpenEditorFail.fire(editor);
|
|
703
|
-
}
|
|
704
|
-
if (!pane && this.activeEditor === editor) {
|
|
705
|
-
const focusNext = !options || !options.preserveFocus;
|
|
706
|
-
this.doCloseEditor(editor, focusNext, { fromError: true });
|
|
707
|
-
}
|
|
708
|
-
return pane;
|
|
709
|
-
})();
|
|
710
|
-
}
|
|
711
|
-
else {
|
|
712
|
-
openEditorPromise = Promise.resolve(undefined);
|
|
713
|
-
}
|
|
714
|
-
if (!internalOptions?.skipTitleUpdate) {
|
|
715
|
-
this.titleAreaControl.openEditor(editor);
|
|
716
|
-
}
|
|
717
|
-
return openEditorPromise;
|
|
718
|
-
}
|
|
719
|
-
async openEditors(editors) {
|
|
720
|
-
const editorsToOpen = coalesce(editors).filter(({ editor }) => !editor.isDisposed());
|
|
721
|
-
const firstEditor = firstOrDefault(editorsToOpen);
|
|
722
|
-
if (!firstEditor) {
|
|
723
|
-
return;
|
|
724
|
-
}
|
|
725
|
-
const openEditorsOptions = {
|
|
726
|
-
supportSideBySide: SideBySideEditor.BOTH
|
|
727
|
-
};
|
|
728
|
-
await this.doOpenEditor(firstEditor.editor, firstEditor.options, openEditorsOptions);
|
|
729
|
-
const inactiveEditors = editorsToOpen.slice(1);
|
|
730
|
-
const startingIndex = this.getIndexOfEditor(firstEditor.editor) + 1;
|
|
731
|
-
await Promises.settled(( inactiveEditors.map(({ editor, options }, index) => {
|
|
732
|
-
return this.doOpenEditor(editor, {
|
|
733
|
-
...options,
|
|
734
|
-
inactive: true,
|
|
735
|
-
pinned: true,
|
|
736
|
-
index: startingIndex + index
|
|
737
|
-
}, {
|
|
738
|
-
...openEditorsOptions,
|
|
739
|
-
skipTitleUpdate: true
|
|
740
|
-
});
|
|
741
|
-
})));
|
|
742
|
-
this.titleAreaControl.openEditors(( inactiveEditors.map(({ editor }) => editor)));
|
|
743
|
-
return this.editorPane.activeEditorPane ?? undefined;
|
|
744
|
-
}
|
|
745
|
-
moveEditors(editors, target) {
|
|
746
|
-
const internalOptions = {
|
|
747
|
-
skipTitleUpdate: this !== target
|
|
748
|
-
};
|
|
749
|
-
for (const { editor, options } of editors) {
|
|
750
|
-
this.moveEditor(editor, target, options, internalOptions);
|
|
751
|
-
}
|
|
752
|
-
if (internalOptions.skipTitleUpdate) {
|
|
753
|
-
const movedEditors = ( editors.map(({ editor }) => editor));
|
|
754
|
-
target.titleAreaControl.openEditors(movedEditors);
|
|
755
|
-
this.titleAreaControl.closeEditors(movedEditors);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
moveEditor(editor, target, options, internalOptions) {
|
|
759
|
-
if (this === target) {
|
|
760
|
-
this.doMoveEditorInsideGroup(editor, options);
|
|
761
|
-
}
|
|
762
|
-
else {
|
|
763
|
-
this.doMoveOrCopyEditorAcrossGroups(editor, target, options, { ...internalOptions, keepCopy: false });
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
doMoveEditorInsideGroup(candidate, options) {
|
|
767
|
-
const moveToIndex = options ? options.index : undefined;
|
|
768
|
-
if (typeof moveToIndex !== 'number') {
|
|
769
|
-
return;
|
|
770
|
-
}
|
|
771
|
-
const currentIndex = this.model.indexOf(candidate);
|
|
772
|
-
if (currentIndex === -1 || currentIndex === moveToIndex) {
|
|
773
|
-
return;
|
|
774
|
-
}
|
|
775
|
-
const editor = this.model.getEditorByIndex(currentIndex);
|
|
776
|
-
if (!editor) {
|
|
777
|
-
return;
|
|
778
|
-
}
|
|
779
|
-
this.model.moveEditor(editor, moveToIndex);
|
|
780
|
-
this.model.pin(editor);
|
|
781
|
-
this.titleAreaControl.moveEditor(editor, currentIndex, moveToIndex);
|
|
782
|
-
this.titleAreaControl.pinEditor(editor);
|
|
783
|
-
}
|
|
784
|
-
doMoveOrCopyEditorAcrossGroups(editor, target, openOptions, internalOptions) {
|
|
785
|
-
const keepCopy = internalOptions?.keepCopy;
|
|
786
|
-
const options = fillActiveEditorViewState(this, editor, {
|
|
787
|
-
...openOptions,
|
|
788
|
-
pinned: true,
|
|
789
|
-
sticky: !keepCopy && this.model.isSticky(editor)
|
|
790
|
-
});
|
|
791
|
-
if (!keepCopy) {
|
|
792
|
-
this._onWillMoveEditor.fire({
|
|
793
|
-
groupId: this.id,
|
|
794
|
-
editor,
|
|
795
|
-
target: target.id
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
target.doOpenEditor(keepCopy ? editor.copy() : editor, options, internalOptions);
|
|
799
|
-
if (!keepCopy) {
|
|
800
|
-
this.doCloseEditor(editor, false , { ...internalOptions, context: EditorCloseContext.MOVE });
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
copyEditors(editors, target) {
|
|
804
|
-
const internalOptions = {
|
|
805
|
-
skipTitleUpdate: this !== target
|
|
806
|
-
};
|
|
807
|
-
for (const { editor, options } of editors) {
|
|
808
|
-
this.copyEditor(editor, target, options, internalOptions);
|
|
809
|
-
}
|
|
810
|
-
if (internalOptions.skipTitleUpdate) {
|
|
811
|
-
const copiedEditors = ( editors.map(({ editor }) => editor));
|
|
812
|
-
target.titleAreaControl.openEditors(copiedEditors);
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
copyEditor(editor, target, options, internalOptions) {
|
|
816
|
-
if (this === target) {
|
|
817
|
-
this.doMoveEditorInsideGroup(editor, options);
|
|
818
|
-
}
|
|
819
|
-
else {
|
|
820
|
-
this.doMoveOrCopyEditorAcrossGroups(editor, target, options, { ...internalOptions, keepCopy: true });
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
async closeEditor(editor = this.activeEditor || undefined, options) {
|
|
824
|
-
return this.doCloseEditorWithConfirmationHandling(editor, options);
|
|
825
|
-
}
|
|
826
|
-
async doCloseEditorWithConfirmationHandling(editor = this.activeEditor || undefined, options, internalOptions) {
|
|
827
|
-
if (!editor) {
|
|
828
|
-
return false;
|
|
829
|
-
}
|
|
830
|
-
const veto = await this.handleCloseConfirmation([editor]);
|
|
831
|
-
if (veto) {
|
|
832
|
-
return false;
|
|
833
|
-
}
|
|
834
|
-
this.doCloseEditor(editor, options?.preserveFocus ? false : undefined, internalOptions);
|
|
835
|
-
return true;
|
|
836
|
-
}
|
|
837
|
-
doCloseEditor(editor, focusNext = (this.accessor.activeGroup === this), internalOptions) {
|
|
838
|
-
if (!internalOptions?.skipTitleUpdate) {
|
|
839
|
-
this.titleAreaControl.beforeCloseEditor(editor);
|
|
840
|
-
}
|
|
841
|
-
if (this.model.isActive(editor)) {
|
|
842
|
-
this.doCloseActiveEditor(focusNext, internalOptions);
|
|
843
|
-
}
|
|
844
|
-
else {
|
|
845
|
-
this.doCloseInactiveEditor(editor, internalOptions);
|
|
846
|
-
}
|
|
847
|
-
if (!internalOptions?.skipTitleUpdate) {
|
|
848
|
-
this.titleAreaControl.closeEditor(editor);
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
doCloseActiveEditor(focusNext = (this.accessor.activeGroup === this), internalOptions) {
|
|
852
|
-
const editorToClose = this.activeEditor;
|
|
853
|
-
const restoreFocus = this.shouldRestoreFocus(this.element);
|
|
854
|
-
const closeEmptyGroup = this.accessor.partOptions.closeEmptyGroups;
|
|
855
|
-
if (closeEmptyGroup && this.active && this.count === 1) {
|
|
856
|
-
const mostRecentlyActiveGroups = this.accessor.getGroups(1 );
|
|
857
|
-
const nextActiveGroup = mostRecentlyActiveGroups[1];
|
|
858
|
-
if (nextActiveGroup) {
|
|
859
|
-
if (restoreFocus) {
|
|
860
|
-
nextActiveGroup.focus();
|
|
861
|
-
}
|
|
862
|
-
else {
|
|
863
|
-
this.accessor.activateGroup(nextActiveGroup);
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
if (editorToClose) {
|
|
868
|
-
this.model.closeEditor(editorToClose, internalOptions?.context);
|
|
869
|
-
}
|
|
870
|
-
const nextActiveEditor = this.model.activeEditor;
|
|
871
|
-
if (nextActiveEditor) {
|
|
872
|
-
const preserveFocus = !focusNext;
|
|
873
|
-
let activation = undefined;
|
|
874
|
-
if (preserveFocus && this.accessor.activeGroup !== this) {
|
|
875
|
-
activation = EditorActivation.PRESERVE;
|
|
876
|
-
}
|
|
877
|
-
const options = {
|
|
878
|
-
preserveFocus,
|
|
879
|
-
activation,
|
|
880
|
-
ignoreError: internalOptions?.fromError
|
|
881
|
-
};
|
|
882
|
-
this.doOpenEditor(nextActiveEditor, options);
|
|
883
|
-
}
|
|
884
|
-
else {
|
|
885
|
-
if (editorToClose) {
|
|
886
|
-
this.editorPane.closeEditor(editorToClose);
|
|
887
|
-
}
|
|
888
|
-
if (restoreFocus && !closeEmptyGroup) {
|
|
889
|
-
this.focus();
|
|
890
|
-
}
|
|
891
|
-
this._onDidActiveEditorChange.fire({ editor: undefined });
|
|
892
|
-
if (closeEmptyGroup) {
|
|
893
|
-
this.accessor.removeGroup(this);
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
shouldRestoreFocus(target) {
|
|
898
|
-
const activeElement = document.activeElement;
|
|
899
|
-
if (activeElement === document.body) {
|
|
900
|
-
return true;
|
|
901
|
-
}
|
|
902
|
-
return isAncestor(activeElement, target);
|
|
903
|
-
}
|
|
904
|
-
doCloseInactiveEditor(editor, internalOptions) {
|
|
905
|
-
this.model.closeEditor(editor, internalOptions?.context);
|
|
906
|
-
}
|
|
907
|
-
async handleCloseConfirmation(editors) {
|
|
908
|
-
if (!editors.length) {
|
|
909
|
-
return false;
|
|
910
|
-
}
|
|
911
|
-
const editor = editors.shift();
|
|
912
|
-
let handleCloseConfirmationPromise = this.mapEditorToPendingConfirmation.get(editor);
|
|
913
|
-
if (!handleCloseConfirmationPromise) {
|
|
914
|
-
handleCloseConfirmationPromise = this.doHandleCloseConfirmation(editor);
|
|
915
|
-
this.mapEditorToPendingConfirmation.set(editor, handleCloseConfirmationPromise);
|
|
916
|
-
}
|
|
917
|
-
let veto;
|
|
918
|
-
try {
|
|
919
|
-
veto = await handleCloseConfirmationPromise;
|
|
920
|
-
}
|
|
921
|
-
finally {
|
|
922
|
-
this.mapEditorToPendingConfirmation.delete(editor);
|
|
923
|
-
}
|
|
924
|
-
if (veto) {
|
|
925
|
-
return veto;
|
|
926
|
-
}
|
|
927
|
-
return this.handleCloseConfirmation(editors);
|
|
928
|
-
}
|
|
929
|
-
async doHandleCloseConfirmation(editor, options) {
|
|
930
|
-
if (!this.shouldConfirmClose(editor)) {
|
|
931
|
-
return false;
|
|
932
|
-
}
|
|
933
|
-
if (editor instanceof SideBySideEditorInput && this.model.contains(editor.primary)) {
|
|
934
|
-
return false;
|
|
935
|
-
}
|
|
936
|
-
if (( this.accessor.groups.some(groupView => {
|
|
937
|
-
if (groupView === this) {
|
|
938
|
-
return false;
|
|
939
|
-
}
|
|
940
|
-
const otherGroup = groupView;
|
|
941
|
-
if (otherGroup.contains(editor, { supportSideBySide: SideBySideEditor.BOTH })) {
|
|
942
|
-
return true;
|
|
943
|
-
}
|
|
944
|
-
if (editor instanceof SideBySideEditorInput && otherGroup.contains(editor.primary)) {
|
|
945
|
-
return true;
|
|
946
|
-
}
|
|
947
|
-
return false;
|
|
948
|
-
}))) {
|
|
949
|
-
return false;
|
|
950
|
-
}
|
|
951
|
-
let confirmation = 2 ;
|
|
952
|
-
let saveReason = 1 ;
|
|
953
|
-
let autoSave = false;
|
|
954
|
-
if (!editor.hasCapability(4 ) && !options?.skipAutoSave && !editor.closeHandler) {
|
|
955
|
-
if (this.filesConfigurationService.getAutoSaveMode() === 3 ) {
|
|
956
|
-
autoSave = true;
|
|
957
|
-
confirmation = 0 ;
|
|
958
|
-
saveReason = 3 ;
|
|
959
|
-
}
|
|
960
|
-
else if ((isNative && (isWindows || isLinux)) && this.filesConfigurationService.getAutoSaveMode() === 4 ) {
|
|
961
|
-
autoSave = true;
|
|
962
|
-
confirmation = 0 ;
|
|
963
|
-
saveReason = 4 ;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
if (!autoSave) {
|
|
967
|
-
if (!this.activeEditor || !this.activeEditor.matches(editor)) {
|
|
968
|
-
await this.doOpenEditor(editor);
|
|
969
|
-
}
|
|
970
|
-
if (typeof editor.closeHandler?.confirm === 'function') {
|
|
971
|
-
confirmation = await editor.closeHandler.confirm([{ editor, groupId: this.id }]);
|
|
972
|
-
}
|
|
973
|
-
else {
|
|
974
|
-
let name;
|
|
975
|
-
if (editor instanceof SideBySideEditorInput) {
|
|
976
|
-
name = editor.primary.getName();
|
|
977
|
-
}
|
|
978
|
-
else {
|
|
979
|
-
name = editor.getName();
|
|
980
|
-
}
|
|
981
|
-
confirmation = await this.fileDialogService.showSaveConfirm([name]);
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
if (!editor.closeHandler && !this.shouldConfirmClose(editor)) {
|
|
985
|
-
return confirmation === 2 ? true : false;
|
|
986
|
-
}
|
|
987
|
-
switch (confirmation) {
|
|
988
|
-
case 0 : {
|
|
989
|
-
const result = await editor.save(this.id, { reason: saveReason });
|
|
990
|
-
if (!result && autoSave) {
|
|
991
|
-
return this.doHandleCloseConfirmation(editor, { skipAutoSave: true });
|
|
992
|
-
}
|
|
993
|
-
return editor.isDirty();
|
|
994
|
-
}
|
|
995
|
-
case 1 :
|
|
996
|
-
try {
|
|
997
|
-
await editor.revert(this.id);
|
|
998
|
-
return editor.isDirty();
|
|
999
|
-
}
|
|
1000
|
-
catch (error) {
|
|
1001
|
-
this.logService.error(error);
|
|
1002
|
-
await editor.revert(this.id, { soft: true });
|
|
1003
|
-
return editor.isDirty();
|
|
1004
|
-
}
|
|
1005
|
-
case 2 :
|
|
1006
|
-
return true;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
shouldConfirmClose(editor) {
|
|
1010
|
-
if (editor.closeHandler) {
|
|
1011
|
-
return editor.closeHandler.showConfirm();
|
|
1012
|
-
}
|
|
1013
|
-
return editor.isDirty() && !editor.isSaving();
|
|
1014
|
-
}
|
|
1015
|
-
async closeEditors(args, options) {
|
|
1016
|
-
if (this.isEmpty) {
|
|
1017
|
-
return true;
|
|
1018
|
-
}
|
|
1019
|
-
const editors = this.doGetEditorsToClose(args);
|
|
1020
|
-
const veto = await this.handleCloseConfirmation(editors.slice(0));
|
|
1021
|
-
if (veto) {
|
|
1022
|
-
return false;
|
|
1023
|
-
}
|
|
1024
|
-
this.doCloseEditors(editors, options);
|
|
1025
|
-
return true;
|
|
1026
|
-
}
|
|
1027
|
-
doGetEditorsToClose(args) {
|
|
1028
|
-
if (Array.isArray(args)) {
|
|
1029
|
-
return args;
|
|
1030
|
-
}
|
|
1031
|
-
const filter = args;
|
|
1032
|
-
const hasDirection = typeof filter.direction === 'number';
|
|
1033
|
-
let editorsToClose = this.model.getEditors(hasDirection ? 1 : 0 , filter);
|
|
1034
|
-
if (filter.savedOnly) {
|
|
1035
|
-
editorsToClose = editorsToClose.filter(editor => !editor.isDirty() || editor.isSaving());
|
|
1036
|
-
}
|
|
1037
|
-
else if (hasDirection && filter.except) {
|
|
1038
|
-
editorsToClose = ((filter.direction === 0) ) ?
|
|
1039
|
-
editorsToClose.slice(0, this.model.indexOf(filter.except, editorsToClose)) :
|
|
1040
|
-
editorsToClose.slice(this.model.indexOf(filter.except, editorsToClose) + 1);
|
|
1041
|
-
}
|
|
1042
|
-
else if (filter.except) {
|
|
1043
|
-
editorsToClose = editorsToClose.filter(editor => filter.except && !editor.matches(filter.except));
|
|
1044
|
-
}
|
|
1045
|
-
return editorsToClose;
|
|
1046
|
-
}
|
|
1047
|
-
doCloseEditors(editors, options) {
|
|
1048
|
-
let closeActiveEditor = false;
|
|
1049
|
-
for (const editor of editors) {
|
|
1050
|
-
if (!this.isActive(editor)) {
|
|
1051
|
-
this.doCloseInactiveEditor(editor);
|
|
1052
|
-
}
|
|
1053
|
-
else {
|
|
1054
|
-
closeActiveEditor = true;
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
if (closeActiveEditor) {
|
|
1058
|
-
this.doCloseActiveEditor(options?.preserveFocus ? false : undefined);
|
|
1059
|
-
}
|
|
1060
|
-
if (editors.length) {
|
|
1061
|
-
this.titleAreaControl.closeEditors(editors);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
async closeAllEditors(options) {
|
|
1065
|
-
if (this.isEmpty) {
|
|
1066
|
-
if (this.accessor.partOptions.closeEmptyGroups) {
|
|
1067
|
-
this.accessor.removeGroup(this);
|
|
1068
|
-
}
|
|
1069
|
-
return true;
|
|
1070
|
-
}
|
|
1071
|
-
const veto = await this.handleCloseConfirmation(this.model.getEditors(0 , options));
|
|
1072
|
-
if (veto) {
|
|
1073
|
-
return false;
|
|
1074
|
-
}
|
|
1075
|
-
this.doCloseAllEditors(options);
|
|
1076
|
-
return true;
|
|
1077
|
-
}
|
|
1078
|
-
doCloseAllEditors(options) {
|
|
1079
|
-
const editorsToClose = [];
|
|
1080
|
-
for (const editor of this.model.getEditors(1 , options)) {
|
|
1081
|
-
if (!this.isActive(editor)) {
|
|
1082
|
-
this.doCloseInactiveEditor(editor);
|
|
1083
|
-
}
|
|
1084
|
-
editorsToClose.push(editor);
|
|
1085
|
-
}
|
|
1086
|
-
if (this.activeEditor && editorsToClose.includes(this.activeEditor)) {
|
|
1087
|
-
this.doCloseActiveEditor();
|
|
1088
|
-
}
|
|
1089
|
-
if (editorsToClose.length) {
|
|
1090
|
-
this.titleAreaControl.closeEditors(editorsToClose);
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
async replaceEditors(editors) {
|
|
1094
|
-
let activeReplacement;
|
|
1095
|
-
const inactiveReplacements = [];
|
|
1096
|
-
for (let { editor, replacement, forceReplaceDirty, options } of editors) {
|
|
1097
|
-
const index = this.getIndexOfEditor(editor);
|
|
1098
|
-
if (index >= 0) {
|
|
1099
|
-
const isActiveEditor = this.isActive(editor);
|
|
1100
|
-
if (options) {
|
|
1101
|
-
options.index = index;
|
|
1102
|
-
}
|
|
1103
|
-
else {
|
|
1104
|
-
options = { index };
|
|
1105
|
-
}
|
|
1106
|
-
options.inactive = !isActiveEditor;
|
|
1107
|
-
options.pinned = options.pinned ?? true;
|
|
1108
|
-
const editorToReplace = { editor, replacement, forceReplaceDirty, options };
|
|
1109
|
-
if (isActiveEditor) {
|
|
1110
|
-
activeReplacement = editorToReplace;
|
|
1111
|
-
}
|
|
1112
|
-
else {
|
|
1113
|
-
inactiveReplacements.push(editorToReplace);
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
for (const { editor, replacement, forceReplaceDirty, options } of inactiveReplacements) {
|
|
1118
|
-
await this.doOpenEditor(replacement, options);
|
|
1119
|
-
if (!editor.matches(replacement)) {
|
|
1120
|
-
let closed = false;
|
|
1121
|
-
if (forceReplaceDirty) {
|
|
1122
|
-
this.doCloseEditor(editor, false, { context: EditorCloseContext.REPLACE });
|
|
1123
|
-
closed = true;
|
|
1124
|
-
}
|
|
1125
|
-
else {
|
|
1126
|
-
closed = await this.doCloseEditorWithConfirmationHandling(editor, { preserveFocus: true }, { context: EditorCloseContext.REPLACE });
|
|
1127
|
-
}
|
|
1128
|
-
if (!closed) {
|
|
1129
|
-
return;
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
if (activeReplacement) {
|
|
1134
|
-
const openEditorResult = this.doOpenEditor(activeReplacement.replacement, activeReplacement.options);
|
|
1135
|
-
if (!activeReplacement.editor.matches(activeReplacement.replacement)) {
|
|
1136
|
-
if (activeReplacement.forceReplaceDirty) {
|
|
1137
|
-
this.doCloseEditor(activeReplacement.editor, false, { context: EditorCloseContext.REPLACE });
|
|
1138
|
-
}
|
|
1139
|
-
else {
|
|
1140
|
-
await this.doCloseEditorWithConfirmationHandling(activeReplacement.editor, { preserveFocus: true }, { context: EditorCloseContext.REPLACE });
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
await openEditorResult;
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
get isLocked() {
|
|
1147
|
-
if (this.accessor.groups.length === 1) {
|
|
1148
|
-
return false;
|
|
1149
|
-
}
|
|
1150
|
-
return this.model.isLocked;
|
|
1151
|
-
}
|
|
1152
|
-
lock(locked) {
|
|
1153
|
-
if (this.accessor.groups.length === 1) {
|
|
1154
|
-
locked = false;
|
|
1155
|
-
}
|
|
1156
|
-
this.model.lock(locked);
|
|
1157
|
-
}
|
|
1158
|
-
updateStyles() {
|
|
1159
|
-
const isEmpty = this.isEmpty;
|
|
1160
|
-
if (isEmpty) {
|
|
1161
|
-
this.element.style.backgroundColor = this.getColor(EDITOR_GROUP_EMPTY_BACKGROUND) || '';
|
|
1162
|
-
}
|
|
1163
|
-
else {
|
|
1164
|
-
this.element.style.backgroundColor = '';
|
|
1165
|
-
}
|
|
1166
|
-
const borderColor = this.getColor(EDITOR_GROUP_HEADER_BORDER) || this.getColor(contrastBorder);
|
|
1167
|
-
if (!isEmpty && borderColor) {
|
|
1168
|
-
this.titleContainer.classList.add('title-border-bottom');
|
|
1169
|
-
this.titleContainer.style.setProperty('--title-border-bottom-color', borderColor);
|
|
1170
|
-
}
|
|
1171
|
-
else {
|
|
1172
|
-
this.titleContainer.classList.remove('title-border-bottom');
|
|
1173
|
-
this.titleContainer.style.removeProperty('--title-border-bottom-color');
|
|
1174
|
-
}
|
|
1175
|
-
const { showTabs } = this.accessor.partOptions;
|
|
1176
|
-
this.titleContainer.style.backgroundColor = this.getColor(showTabs ? EDITOR_GROUP_HEADER_TABS_BACKGROUND : EDITOR_GROUP_HEADER_NO_TABS_BACKGROUND) || '';
|
|
1177
|
-
this.editorContainer.style.backgroundColor = this.getColor(editorBackground) || '';
|
|
1178
|
-
}
|
|
1179
|
-
get minimumWidth() { return this.editorPane.minimumWidth; }
|
|
1180
|
-
get minimumHeight() { return this.editorPane.minimumHeight; }
|
|
1181
|
-
get maximumWidth() { return this.editorPane.maximumWidth; }
|
|
1182
|
-
get maximumHeight() { return this.editorPane.maximumHeight; }
|
|
1183
|
-
get proportionalLayout() {
|
|
1184
|
-
if (!this.lastLayout) {
|
|
1185
|
-
return true;
|
|
1186
|
-
}
|
|
1187
|
-
return !(this.lastLayout.width === this.minimumWidth || this.lastLayout.height === this.minimumHeight);
|
|
1188
|
-
}
|
|
1189
|
-
layout(width, height, top, left) {
|
|
1190
|
-
this.lastLayout = { width, height, top, left };
|
|
1191
|
-
this.element.classList.toggle('max-height-478px', height <= 478);
|
|
1192
|
-
const titleAreaSize = this.titleAreaControl.layout({
|
|
1193
|
-
container: ( new Dimension(width, height)),
|
|
1194
|
-
available: ( new Dimension(width, height - this.editorPane.minimumHeight))
|
|
1195
|
-
});
|
|
1196
|
-
const editorHeight = Math.max(0, height - titleAreaSize.height);
|
|
1197
|
-
this.editorContainer.style.height = `${editorHeight}px`;
|
|
1198
|
-
this.editorPane.layout({ width, height: editorHeight, top: top + titleAreaSize.height, left });
|
|
1199
|
-
}
|
|
1200
|
-
relayout() {
|
|
1201
|
-
if (this.lastLayout) {
|
|
1202
|
-
const { width, height, top, left } = this.lastLayout;
|
|
1203
|
-
this.layout(width, height, top, left);
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
setBoundarySashes(sashes) {
|
|
1207
|
-
this.editorPane.setBoundarySashes(sashes);
|
|
1208
|
-
}
|
|
1209
|
-
toJSON() {
|
|
1210
|
-
return this.model.serialize();
|
|
1211
|
-
}
|
|
1212
|
-
dispose() {
|
|
1213
|
-
this._disposed = true;
|
|
1214
|
-
this._onWillDispose.fire();
|
|
1215
|
-
this.titleAreaControl.dispose();
|
|
1216
|
-
super.dispose();
|
|
1217
|
-
}
|
|
1218
|
-
};
|
|
1219
|
-
EditorGroupView = EditorGroupView_1 = ( __decorate([
|
|
1220
|
-
( __param(3, IInstantiationService)),
|
|
1221
|
-
( __param(4, IContextKeyService)),
|
|
1222
|
-
( __param(5, IThemeService)),
|
|
1223
|
-
( __param(6, ITelemetryService)),
|
|
1224
|
-
( __param(7, IKeybindingService)),
|
|
1225
|
-
( __param(8, IMenuService)),
|
|
1226
|
-
( __param(9, IContextMenuService)),
|
|
1227
|
-
( __param(10, IFileDialogService)),
|
|
1228
|
-
( __param(11, IEditorService)),
|
|
1229
|
-
( __param(12, IFilesConfigurationService)),
|
|
1230
|
-
( __param(13, IUriIdentityService)),
|
|
1231
|
-
( __param(14, ILogService))
|
|
1232
|
-
], EditorGroupView));
|
|
1233
|
-
export { EditorGroupView };
|