@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,783 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import './media/activitybarpart.css.js';
|
|
3
|
-
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
4
|
-
import { ActionBar } from 'monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js';
|
|
5
|
-
import { GLOBAL_ACTIVITY_ID, ACCOUNTS_ACTIVITY_ID } from '../../../common/activity.js';
|
|
6
|
-
import { Part } from '../../part.js';
|
|
7
|
-
import { AccountsActivityActionViewItem, GlobalActivityActionViewItem, ViewContainerActivityAction, PlaceHolderViewContainerActivityAction, PlaceHolderToggleCompositePinnedAction, PlaceHolderToggleCompositeBadgeAction } from './activitybarActions.js';
|
|
8
|
-
import { NumberBadge } from '../../../services/activity/common/activity.js';
|
|
9
|
-
import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
|
|
10
|
-
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
11
|
-
import { DisposableStore, Disposable, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
12
|
-
import { ToggleSidebarPositionAction, ToggleActivityBarVisibilityAction } from '../../actions/layoutActions.js';
|
|
13
|
-
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
14
|
-
import { ACTIVITY_BAR_BACKGROUND, ACTIVITY_BAR_BORDER, ACTIVITY_BAR_FOREGROUND, ACTIVITY_BAR_INACTIVE_FOREGROUND, ACTIVITY_BAR_ACTIVE_BORDER, ACTIVITY_BAR_ACTIVE_BACKGROUND, ACTIVITY_BAR_BADGE_BACKGROUND, ACTIVITY_BAR_BADGE_FOREGROUND, ACTIVITY_BAR_DRAG_AND_DROP_BORDER } from '../../../common/theme.js';
|
|
15
|
-
import { contrastBorder } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
16
|
-
import { CompositeBar, CompositeDragAndDrop } from '../compositeBar.js';
|
|
17
|
-
import { isAncestor, addDisposableListener, EventType, asCSSUrl, createCSSRule, Dimension } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
18
|
-
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
19
|
-
import { IExtensionService } from '../../../services/extensions/common/extensions.js';
|
|
20
|
-
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
21
|
-
import { ActivityAction, ToggleCompositePinnedAction, ToggleCompositeBadgeAction } from '../compositeBarActions.js';
|
|
22
|
-
import { IViewDescriptorService } from '../../../common/views.js';
|
|
23
|
-
import { getEnabledViewContainerContextKey } from '../../../common/contextkeys.js';
|
|
24
|
-
import { ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
25
|
-
import { assertIsDefined, isString } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
26
|
-
import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js';
|
|
27
|
-
import { CustomMenubarControl } from '../titlebar/menubarControl.js';
|
|
28
|
-
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
29
|
-
import { getMenuBarVisibility } from '../../../../platform/window/common/window.js';
|
|
30
|
-
import { isNative } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
31
|
-
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
32
|
-
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
33
|
-
import { toAction, Separator } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
34
|
-
import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboardEvent.js';
|
|
35
|
-
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
36
|
-
import { StringSHA1 } from 'monaco-editor/esm/vs/base/common/hash.js';
|
|
37
|
-
var ActivitybarPart_1;
|
|
38
|
-
let ActivitybarPart = class ActivitybarPart extends Part {
|
|
39
|
-
static { ActivitybarPart_1 = this; }
|
|
40
|
-
static { this.PINNED_VIEW_CONTAINERS = 'workbench.activity.pinnedViewlets2'; }
|
|
41
|
-
static { this.PLACEHOLDER_VIEW_CONTAINERS = 'workbench.activity.placeholderViewlets'; }
|
|
42
|
-
static { this.ACTION_HEIGHT = 48; }
|
|
43
|
-
static { this.ACCOUNTS_ACTION_INDEX = 0; }
|
|
44
|
-
static { this.GEAR_ICON = registerIcon('settings-view-bar-icon', Codicon.settingsGear, ( localize('settingsViewBarIcon', "Settings icon in the view bar."))); }
|
|
45
|
-
static { this.ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, ( localize('accountsViewBarIcon', "Accounts icon in the view bar."))); }
|
|
46
|
-
constructor(paneCompositePart, instantiationService, layoutService, themeService, storageService, extensionService, viewDescriptorService, contextKeyService, configurationService, environmentService) {
|
|
47
|
-
super("workbench.parts.activitybar" , { hasTitle: false }, themeService, storageService, layoutService);
|
|
48
|
-
this.paneCompositePart = paneCompositePart;
|
|
49
|
-
this.instantiationService = instantiationService;
|
|
50
|
-
this.storageService = storageService;
|
|
51
|
-
this.extensionService = extensionService;
|
|
52
|
-
this.viewDescriptorService = viewDescriptorService;
|
|
53
|
-
this.contextKeyService = contextKeyService;
|
|
54
|
-
this.configurationService = configurationService;
|
|
55
|
-
this.environmentService = environmentService;
|
|
56
|
-
this.minimumWidth = 48;
|
|
57
|
-
this.maximumWidth = 48;
|
|
58
|
-
this.minimumHeight = 0;
|
|
59
|
-
this.maximumHeight = Number.POSITIVE_INFINITY;
|
|
60
|
-
this.globalActivity = [];
|
|
61
|
-
this.accountsActivity = [];
|
|
62
|
-
this.compositeActions = ( new Map());
|
|
63
|
-
this.viewContainerDisposables = ( new Map());
|
|
64
|
-
this.keyboardNavigationDisposables = this._register(( new DisposableStore()));
|
|
65
|
-
this.location = 0 ;
|
|
66
|
-
this.hasExtensionsRegistered = false;
|
|
67
|
-
this.enabledViewContainersContextKeys = ( new Map());
|
|
68
|
-
this._cachedViewContainers = undefined;
|
|
69
|
-
for (const cachedViewContainer of this.cachedViewContainers) {
|
|
70
|
-
cachedViewContainer.visible = !this.shouldBeHidden(cachedViewContainer.id, cachedViewContainer);
|
|
71
|
-
}
|
|
72
|
-
this.compositeBar = this.createCompositeBar();
|
|
73
|
-
this.onDidRegisterViewContainers(this.getViewContainers());
|
|
74
|
-
this.registerListeners();
|
|
75
|
-
}
|
|
76
|
-
createCompositeBar() {
|
|
77
|
-
const cachedItems = ( this.cachedViewContainers
|
|
78
|
-
.map(container => ({
|
|
79
|
-
id: container.id,
|
|
80
|
-
name: container.name,
|
|
81
|
-
visible: container.visible,
|
|
82
|
-
order: container.order,
|
|
83
|
-
pinned: container.pinned,
|
|
84
|
-
})));
|
|
85
|
-
return this._register(this.instantiationService.createInstance(CompositeBar, cachedItems, {
|
|
86
|
-
icon: true,
|
|
87
|
-
orientation: 1 ,
|
|
88
|
-
activityHoverOptions: this.getActivityHoverOptions(),
|
|
89
|
-
preventLoopNavigation: true,
|
|
90
|
-
openComposite: async (compositeId, preserveFocus) => {
|
|
91
|
-
return (await this.paneCompositePart.openPaneComposite(compositeId, !preserveFocus)) ?? null;
|
|
92
|
-
},
|
|
93
|
-
getActivityAction: compositeId => this.getCompositeActions(compositeId).activityAction,
|
|
94
|
-
getCompositePinnedAction: compositeId => this.getCompositeActions(compositeId).pinnedAction,
|
|
95
|
-
getCompositeBadgeAction: compositeId => this.getCompositeActions(compositeId).badgeAction,
|
|
96
|
-
getOnCompositeClickAction: compositeId => toAction({ id: compositeId, label: '', run: async () => this.paneCompositePart.getActivePaneComposite()?.getId() === compositeId ? this.paneCompositePart.hideActivePaneComposite() : this.paneCompositePart.openPaneComposite(compositeId) }),
|
|
97
|
-
fillExtraContextMenuActions: (actions, e) => {
|
|
98
|
-
const menuBarVisibility = getMenuBarVisibility(this.configurationService);
|
|
99
|
-
if (menuBarVisibility === 'compact' || menuBarVisibility === 'hidden' || menuBarVisibility === 'toggle') {
|
|
100
|
-
actions.unshift(...[toAction({ id: 'toggleMenuVisibility', label: ( localize('menu', "Menu")), checked: menuBarVisibility === 'compact', run: () => this.configurationService.updateValue('window.menuBarVisibility', menuBarVisibility === 'compact' ? 'toggle' : 'compact') }), ( new Separator())]);
|
|
101
|
-
}
|
|
102
|
-
if (menuBarVisibility === 'compact' && this.menuBarContainer && e?.target) {
|
|
103
|
-
if (isAncestor(e.target, this.menuBarContainer)) {
|
|
104
|
-
actions.unshift(...[toAction({ id: 'hideCompactMenu', label: ( localize('hideMenu', "Hide Menu")), run: () => this.configurationService.updateValue('window.menuBarVisibility', 'toggle') }), ( new Separator())]);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
actions.push(( new Separator()));
|
|
108
|
-
actions.push(toAction({ id: 'toggleAccountsVisibility', label: ( localize('accounts', "Accounts")), checked: this.accountsVisibilityPreference, run: () => this.accountsVisibilityPreference = !this.accountsVisibilityPreference }));
|
|
109
|
-
actions.push(( new Separator()));
|
|
110
|
-
actions.push(toAction({ id: ToggleSidebarPositionAction.ID, label: ToggleSidebarPositionAction.getLabel(this.layoutService), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleSidebarPositionAction()).run(accessor)) }));
|
|
111
|
-
actions.push(toAction({ id: ToggleActivityBarVisibilityAction.ID, label: ( localize('hideActivitBar', "Hide Activity Bar")), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleActivityBarVisibilityAction()).run(accessor)) }));
|
|
112
|
-
},
|
|
113
|
-
getContextMenuActionsForComposite: compositeId => this.getContextMenuActionsForComposite(compositeId),
|
|
114
|
-
getDefaultCompositeId: () => this.viewDescriptorService.getDefaultViewContainer(this.location)?.id,
|
|
115
|
-
hidePart: () => this.layoutService.setPartHidden(true, "workbench.parts.sidebar" ),
|
|
116
|
-
dndHandler: ( new CompositeDragAndDrop(
|
|
117
|
-
this.viewDescriptorService,
|
|
118
|
-
0 ,
|
|
119
|
-
async (id, focus) => { return (await this.paneCompositePart.openPaneComposite(id, focus)) ?? null; },
|
|
120
|
-
(from, to, before) => this.compositeBar.move(from, to, before?.verticallyBefore),
|
|
121
|
-
() => this.compositeBar.getCompositeBarItems()
|
|
122
|
-
)),
|
|
123
|
-
compositeSize: 52,
|
|
124
|
-
colors: (theme) => this.getActivitybarItemColors(theme),
|
|
125
|
-
overflowActionSize: ActivitybarPart_1.ACTION_HEIGHT
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
getActivityHoverOptions() {
|
|
129
|
-
return {
|
|
130
|
-
position: () => this.layoutService.getSideBarPosition() === 0 ? 1 : 0 ,
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
getContextMenuActionsForComposite(compositeId) {
|
|
134
|
-
const actions = [];
|
|
135
|
-
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeId);
|
|
136
|
-
const defaultLocation = this.viewDescriptorService.getDefaultViewContainerLocation(viewContainer);
|
|
137
|
-
if (defaultLocation !== this.viewDescriptorService.getViewContainerLocation(viewContainer)) {
|
|
138
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize('resetLocation', "Reset Location")), run: () => this.viewDescriptorService.moveViewContainerToLocation(viewContainer, defaultLocation) }));
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
142
|
-
if (viewContainerModel.allViewDescriptors.length === 1) {
|
|
143
|
-
const viewToReset = viewContainerModel.allViewDescriptors[0];
|
|
144
|
-
const defaultContainer = this.viewDescriptorService.getDefaultContainerById(viewToReset.id);
|
|
145
|
-
if (defaultContainer !== viewContainer) {
|
|
146
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize('resetLocation', "Reset Location")), run: () => this.viewDescriptorService.moveViewsToContainer([viewToReset], defaultContainer) }));
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
return actions;
|
|
151
|
-
}
|
|
152
|
-
registerListeners() {
|
|
153
|
-
this._register(this.viewDescriptorService.onDidChangeViewContainers(({ added, removed }) => this.onDidChangeViewContainers(added, removed)));
|
|
154
|
-
this._register(this.viewDescriptorService.onDidChangeContainerLocation(({ viewContainer, from, to }) => this.onDidChangeViewContainerLocation(viewContainer, from, to)));
|
|
155
|
-
this.paneCompositePart.onDidPaneCompositeOpen(e => this.onDidChangeViewContainerVisibility(e.getId(), true));
|
|
156
|
-
this.paneCompositePart.onDidPaneCompositeClose(e => this.onDidChangeViewContainerVisibility(e.getId(), false));
|
|
157
|
-
const disposables = this._register(( new DisposableStore()));
|
|
158
|
-
this._register(this.extensionService.onDidRegisterExtensions(() => {
|
|
159
|
-
disposables.clear();
|
|
160
|
-
this.onDidRegisterExtensions();
|
|
161
|
-
this.compositeBar.onDidChange(() => this.saveCachedViewContainers(), this, disposables);
|
|
162
|
-
this.storageService.onDidChangeValue(0 , ActivitybarPart_1.PINNED_VIEW_CONTAINERS, disposables)(e => this.onDidPinnedViewContainersStorageValueChange(e), this, disposables);
|
|
163
|
-
this.storageService.onDidChangeValue(0 , AccountsActivityActionViewItem.ACCOUNTS_VISIBILITY_PREFERENCE_KEY, disposables)(() => this.toggleAccountsActivity(), this, disposables);
|
|
164
|
-
}));
|
|
165
|
-
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
166
|
-
if (e.affectsConfiguration('window.menuBarVisibility')) {
|
|
167
|
-
if (getMenuBarVisibility(this.configurationService) === 'compact') {
|
|
168
|
-
this.installMenubar();
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
this.uninstallMenubar();
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
onDidChangeViewContainers(added, removed) {
|
|
177
|
-
removed.filter(({ location }) => location === 0 ).forEach(({ container }) => this.onDidDeregisterViewContainer(container));
|
|
178
|
-
this.onDidRegisterViewContainers(( added.filter(({ location }) => location === 0 ).map(({ container }) => container)));
|
|
179
|
-
}
|
|
180
|
-
onDidChangeViewContainerLocation(container, from, to) {
|
|
181
|
-
if (from === this.location) {
|
|
182
|
-
this.onDidDeregisterViewContainer(container);
|
|
183
|
-
}
|
|
184
|
-
if (to === this.location) {
|
|
185
|
-
this.onDidRegisterViewContainers([container]);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
onDidChangeViewContainerVisibility(id, visible) {
|
|
189
|
-
if (visible) {
|
|
190
|
-
this.onDidViewContainerVisible(id);
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
this.compositeBar.deactivateComposite(id);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
onDidRegisterExtensions() {
|
|
197
|
-
this.hasExtensionsRegistered = true;
|
|
198
|
-
for (const { id } of this.cachedViewContainers) {
|
|
199
|
-
const viewContainer = this.getViewContainer(id);
|
|
200
|
-
if (viewContainer) {
|
|
201
|
-
this.showOrHideViewContainer(viewContainer);
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
if (this.viewDescriptorService.isViewContainerRemovedPermanently(id)) {
|
|
205
|
-
this.removeComposite(id);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
this.hideComposite(id);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
this.saveCachedViewContainers();
|
|
213
|
-
}
|
|
214
|
-
onDidViewContainerVisible(id) {
|
|
215
|
-
const viewContainer = this.getViewContainer(id);
|
|
216
|
-
if (viewContainer) {
|
|
217
|
-
this.addComposite(viewContainer);
|
|
218
|
-
this.compositeBar.activateComposite(viewContainer.id);
|
|
219
|
-
if (this.shouldBeHidden(viewContainer)) {
|
|
220
|
-
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
221
|
-
if (viewContainerModel.activeViewDescriptors.length === 0) {
|
|
222
|
-
this.hideComposite(viewContainer.id);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
showActivity(viewContainerOrActionId, badge, clazz, priority) {
|
|
228
|
-
if (this.getViewContainer(viewContainerOrActionId)) {
|
|
229
|
-
return this.compositeBar.showActivity(viewContainerOrActionId, badge, clazz, priority);
|
|
230
|
-
}
|
|
231
|
-
if (viewContainerOrActionId === GLOBAL_ACTIVITY_ID) {
|
|
232
|
-
return this.showGlobalActivity(GLOBAL_ACTIVITY_ID, badge, clazz, priority);
|
|
233
|
-
}
|
|
234
|
-
if (viewContainerOrActionId === ACCOUNTS_ACTIVITY_ID) {
|
|
235
|
-
return this.showGlobalActivity(ACCOUNTS_ACTIVITY_ID, badge, clazz, priority);
|
|
236
|
-
}
|
|
237
|
-
return Disposable.None;
|
|
238
|
-
}
|
|
239
|
-
showGlobalActivity(activityId, badge, clazz, priority) {
|
|
240
|
-
if (typeof priority !== 'number') {
|
|
241
|
-
priority = 0;
|
|
242
|
-
}
|
|
243
|
-
const activity = { badge, clazz, priority };
|
|
244
|
-
const activityCache = activityId === GLOBAL_ACTIVITY_ID ? this.globalActivity : this.accountsActivity;
|
|
245
|
-
for (let i = 0; i <= activityCache.length; i++) {
|
|
246
|
-
if (i === activityCache.length) {
|
|
247
|
-
activityCache.push(activity);
|
|
248
|
-
break;
|
|
249
|
-
}
|
|
250
|
-
else if (activityCache[i].priority <= priority) {
|
|
251
|
-
activityCache.splice(i, 0, activity);
|
|
252
|
-
break;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
this.updateGlobalActivity(activityId);
|
|
256
|
-
return toDisposable(() => this.removeGlobalActivity(activityId, activity));
|
|
257
|
-
}
|
|
258
|
-
removeGlobalActivity(activityId, activity) {
|
|
259
|
-
const activityCache = activityId === GLOBAL_ACTIVITY_ID ? this.globalActivity : this.accountsActivity;
|
|
260
|
-
const index = activityCache.indexOf(activity);
|
|
261
|
-
if (index !== -1) {
|
|
262
|
-
activityCache.splice(index, 1);
|
|
263
|
-
this.updateGlobalActivity(activityId);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
updateGlobalActivity(activityId) {
|
|
267
|
-
const activityAction = activityId === GLOBAL_ACTIVITY_ID ? this.globalActivityAction : this.accountsActivityAction;
|
|
268
|
-
if (!activityAction) {
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
const activityCache = activityId === GLOBAL_ACTIVITY_ID ? this.globalActivity : this.accountsActivity;
|
|
272
|
-
if (activityCache.length) {
|
|
273
|
-
const [{ badge, clazz, priority }] = activityCache;
|
|
274
|
-
if (badge instanceof NumberBadge && activityCache.length > 1) {
|
|
275
|
-
const cumulativeNumberBadge = this.getCumulativeNumberBadge(activityCache, priority);
|
|
276
|
-
activityAction.setBadge(cumulativeNumberBadge);
|
|
277
|
-
}
|
|
278
|
-
else {
|
|
279
|
-
activityAction.setBadge(badge, clazz);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
activityAction.setBadge(undefined);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
getCumulativeNumberBadge(activityCache, priority) {
|
|
287
|
-
const numberActivities = activityCache.filter(activity => activity.badge instanceof NumberBadge && activity.priority === priority);
|
|
288
|
-
const number = numberActivities.reduce((result, activity) => { return result + activity.badge.number; }, 0);
|
|
289
|
-
const descriptorFn = () => {
|
|
290
|
-
return numberActivities.reduce((result, activity, index) => {
|
|
291
|
-
result = result + activity.badge.getDescription();
|
|
292
|
-
if (index < numberActivities.length - 1) {
|
|
293
|
-
result = `${result}\n`;
|
|
294
|
-
}
|
|
295
|
-
return result;
|
|
296
|
-
}, '');
|
|
297
|
-
};
|
|
298
|
-
return ( new NumberBadge(number, descriptorFn));
|
|
299
|
-
}
|
|
300
|
-
uninstallMenubar() {
|
|
301
|
-
if (this.menuBar) {
|
|
302
|
-
this.menuBar.dispose();
|
|
303
|
-
this.menuBar = undefined;
|
|
304
|
-
}
|
|
305
|
-
if (this.menuBarContainer) {
|
|
306
|
-
this.menuBarContainer.remove();
|
|
307
|
-
this.menuBarContainer = undefined;
|
|
308
|
-
this.registerKeyboardNavigationListeners();
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
installMenubar() {
|
|
312
|
-
if (this.menuBar) {
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
this.menuBarContainer = document.createElement('div');
|
|
316
|
-
this.menuBarContainer.classList.add('menubar');
|
|
317
|
-
const content = assertIsDefined(this.content);
|
|
318
|
-
content.prepend(this.menuBarContainer);
|
|
319
|
-
this.menuBar = this._register(this.instantiationService.createInstance(CustomMenubarControl));
|
|
320
|
-
this.menuBar.create(this.menuBarContainer);
|
|
321
|
-
this.registerKeyboardNavigationListeners();
|
|
322
|
-
}
|
|
323
|
-
createContentArea(parent) {
|
|
324
|
-
this.element = parent;
|
|
325
|
-
this.content = document.createElement('div');
|
|
326
|
-
this.content.classList.add('content');
|
|
327
|
-
parent.appendChild(this.content);
|
|
328
|
-
if (getMenuBarVisibility(this.configurationService) === 'compact') {
|
|
329
|
-
this.installMenubar();
|
|
330
|
-
}
|
|
331
|
-
this.compositeBarContainer = this.compositeBar.create(this.content);
|
|
332
|
-
this.globalActivitiesContainer = document.createElement('div');
|
|
333
|
-
this.content.appendChild(this.globalActivitiesContainer);
|
|
334
|
-
this.registerKeyboardNavigationListeners();
|
|
335
|
-
return this.content;
|
|
336
|
-
}
|
|
337
|
-
registerKeyboardNavigationListeners() {
|
|
338
|
-
this.keyboardNavigationDisposables.clear();
|
|
339
|
-
if (this.menuBarContainer) {
|
|
340
|
-
this.keyboardNavigationDisposables.add(addDisposableListener(this.menuBarContainer, EventType.KEY_DOWN, e => {
|
|
341
|
-
const kbEvent = ( new StandardKeyboardEvent(e));
|
|
342
|
-
if (kbEvent.equals(18 ) || kbEvent.equals(17 )) {
|
|
343
|
-
this.compositeBar?.focus();
|
|
344
|
-
}
|
|
345
|
-
}));
|
|
346
|
-
}
|
|
347
|
-
if (this.compositeBarContainer) {
|
|
348
|
-
this.keyboardNavigationDisposables.add(addDisposableListener(this.compositeBarContainer, EventType.KEY_DOWN, e => {
|
|
349
|
-
const kbEvent = ( new StandardKeyboardEvent(e));
|
|
350
|
-
if (kbEvent.equals(18 ) || kbEvent.equals(17 )) {
|
|
351
|
-
this.globalActivityActionBar?.focus(true);
|
|
352
|
-
}
|
|
353
|
-
else if (kbEvent.equals(16 ) || kbEvent.equals(15 )) {
|
|
354
|
-
this.menuBar?.toggleFocus();
|
|
355
|
-
}
|
|
356
|
-
}));
|
|
357
|
-
}
|
|
358
|
-
if (this.globalActivitiesContainer) {
|
|
359
|
-
this.keyboardNavigationDisposables.add(addDisposableListener(this.globalActivitiesContainer, EventType.KEY_DOWN, e => {
|
|
360
|
-
const kbEvent = ( new StandardKeyboardEvent(e));
|
|
361
|
-
if (kbEvent.equals(16 ) || kbEvent.equals(15 )) {
|
|
362
|
-
this.compositeBar?.focus(this.getVisiblePaneCompositeIds().length - 1);
|
|
363
|
-
}
|
|
364
|
-
}));
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
createGlobalActivityActionBar(container) {
|
|
368
|
-
this.globalActivityActionBar = this._register(( new ActionBar(container, {
|
|
369
|
-
actionViewItemProvider: action => {
|
|
370
|
-
if (action.id === 'workbench.actions.manage') {
|
|
371
|
-
return this.instantiationService.createInstance(GlobalActivityActionViewItem, action, () => this.compositeBar.getContextMenuActions(), (theme) => this.getActivitybarItemColors(theme), this.getActivityHoverOptions());
|
|
372
|
-
}
|
|
373
|
-
if (action.id === 'workbench.actions.accounts') {
|
|
374
|
-
return this.instantiationService.createInstance(AccountsActivityActionViewItem, action, () => this.compositeBar.getContextMenuActions(), (theme) => this.getActivitybarItemColors(theme), this.getActivityHoverOptions());
|
|
375
|
-
}
|
|
376
|
-
throw new Error(`No view item for action '${action.id}'`);
|
|
377
|
-
},
|
|
378
|
-
orientation: 1 ,
|
|
379
|
-
ariaLabel: ( localize('manage', "Manage")),
|
|
380
|
-
animated: false,
|
|
381
|
-
preventLoopNavigation: true
|
|
382
|
-
})));
|
|
383
|
-
this.globalActivityAction = this._register(( new ActivityAction({
|
|
384
|
-
id: 'workbench.actions.manage',
|
|
385
|
-
name: ( localize('manage', "Manage")),
|
|
386
|
-
classNames: ThemeIcon.asClassNameArray(ActivitybarPart_1.GEAR_ICON),
|
|
387
|
-
})));
|
|
388
|
-
if (this.accountsVisibilityPreference) {
|
|
389
|
-
this.accountsActivityAction = this._register(( new ActivityAction({
|
|
390
|
-
id: 'workbench.actions.accounts',
|
|
391
|
-
name: ( localize('accounts', "Accounts")),
|
|
392
|
-
classNames: ThemeIcon.asClassNameArray(ActivitybarPart_1.ACCOUNTS_ICON)
|
|
393
|
-
})));
|
|
394
|
-
this.globalActivityActionBar.push(this.accountsActivityAction, { index: ActivitybarPart_1.ACCOUNTS_ACTION_INDEX });
|
|
395
|
-
}
|
|
396
|
-
this.globalActivityActionBar.push(this.globalActivityAction);
|
|
397
|
-
}
|
|
398
|
-
toggleAccountsActivity() {
|
|
399
|
-
if (!!this.accountsActivityAction === this.accountsVisibilityPreference) {
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
if (this.globalActivityActionBar) {
|
|
403
|
-
if (this.accountsActivityAction) {
|
|
404
|
-
this.globalActivityActionBar.pull(ActivitybarPart_1.ACCOUNTS_ACTION_INDEX);
|
|
405
|
-
this.accountsActivityAction = undefined;
|
|
406
|
-
}
|
|
407
|
-
else {
|
|
408
|
-
this.accountsActivityAction = this._register(( new ActivityAction({
|
|
409
|
-
id: 'workbench.actions.accounts',
|
|
410
|
-
name: ( localize('accounts', "Accounts")),
|
|
411
|
-
classNames: ThemeIcon.asClassNameArray(Codicon.account)
|
|
412
|
-
})));
|
|
413
|
-
this.globalActivityActionBar.push(this.accountsActivityAction, { index: ActivitybarPart_1.ACCOUNTS_ACTION_INDEX });
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
this.updateGlobalActivity(ACCOUNTS_ACTIVITY_ID);
|
|
417
|
-
}
|
|
418
|
-
getCompositeActions(compositeId) {
|
|
419
|
-
let compositeActions = this.compositeActions.get(compositeId);
|
|
420
|
-
if (!compositeActions) {
|
|
421
|
-
const viewContainer = this.getViewContainer(compositeId);
|
|
422
|
-
if (viewContainer) {
|
|
423
|
-
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
424
|
-
compositeActions = {
|
|
425
|
-
activityAction: this.instantiationService.createInstance(ViewContainerActivityAction, this.toActivity(viewContainerModel), this.paneCompositePart),
|
|
426
|
-
pinnedAction: ( new ToggleCompositePinnedAction(this.toActivity(viewContainerModel), this.compositeBar)),
|
|
427
|
-
badgeAction: ( new ToggleCompositeBadgeAction(this.toActivity(viewContainerModel), this.compositeBar))
|
|
428
|
-
};
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
const cachedComposite = this.cachedViewContainers.filter(c => c.id === compositeId)[0];
|
|
432
|
-
compositeActions = {
|
|
433
|
-
activityAction: this.instantiationService.createInstance(PlaceHolderViewContainerActivityAction, ActivitybarPart_1.toActivity(compositeId, compositeId, cachedComposite?.icon, undefined), this.paneCompositePart),
|
|
434
|
-
pinnedAction: ( new PlaceHolderToggleCompositePinnedAction(compositeId, this.compositeBar)),
|
|
435
|
-
badgeAction: ( new PlaceHolderToggleCompositeBadgeAction(compositeId, this.compositeBar))
|
|
436
|
-
};
|
|
437
|
-
}
|
|
438
|
-
this.compositeActions.set(compositeId, compositeActions);
|
|
439
|
-
}
|
|
440
|
-
return compositeActions;
|
|
441
|
-
}
|
|
442
|
-
onDidRegisterViewContainers(viewContainers) {
|
|
443
|
-
for (const viewContainer of viewContainers) {
|
|
444
|
-
this.addComposite(viewContainer);
|
|
445
|
-
const cachedViewContainer = this.cachedViewContainers.filter(({ id }) => id === viewContainer.id)[0];
|
|
446
|
-
if (!cachedViewContainer) {
|
|
447
|
-
this.compositeBar.pin(viewContainer.id);
|
|
448
|
-
}
|
|
449
|
-
const visibleViewContainer = this.paneCompositePart.getActivePaneComposite();
|
|
450
|
-
if (visibleViewContainer?.getId() === viewContainer.id) {
|
|
451
|
-
this.compositeBar.activateComposite(viewContainer.id);
|
|
452
|
-
}
|
|
453
|
-
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
454
|
-
this.updateActivity(viewContainer, viewContainerModel);
|
|
455
|
-
this.showOrHideViewContainer(viewContainer);
|
|
456
|
-
const disposables = ( new DisposableStore());
|
|
457
|
-
disposables.add(viewContainerModel.onDidChangeContainerInfo(() => this.updateActivity(viewContainer, viewContainerModel)));
|
|
458
|
-
disposables.add(viewContainerModel.onDidChangeActiveViewDescriptors(() => this.showOrHideViewContainer(viewContainer)));
|
|
459
|
-
this.viewContainerDisposables.set(viewContainer.id, disposables);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
onDidDeregisterViewContainer(viewContainer) {
|
|
463
|
-
const disposable = this.viewContainerDisposables.get(viewContainer.id);
|
|
464
|
-
disposable?.dispose();
|
|
465
|
-
this.viewContainerDisposables.delete(viewContainer.id);
|
|
466
|
-
this.removeComposite(viewContainer.id);
|
|
467
|
-
}
|
|
468
|
-
updateActivity(viewContainer, viewContainerModel) {
|
|
469
|
-
const activity = this.toActivity(viewContainerModel);
|
|
470
|
-
const { activityAction, pinnedAction } = this.getCompositeActions(viewContainer.id);
|
|
471
|
-
activityAction.updateActivity(activity);
|
|
472
|
-
if (pinnedAction instanceof PlaceHolderToggleCompositePinnedAction) {
|
|
473
|
-
pinnedAction.setActivity(activity);
|
|
474
|
-
}
|
|
475
|
-
this.saveCachedViewContainers();
|
|
476
|
-
}
|
|
477
|
-
toActivity(viewContainerModel) {
|
|
478
|
-
return ActivitybarPart_1.toActivity(viewContainerModel.viewContainer.id, viewContainerModel.title, viewContainerModel.icon, viewContainerModel.keybindingId);
|
|
479
|
-
}
|
|
480
|
-
static toActivity(id, name, icon, keybindingId) {
|
|
481
|
-
let classNames = undefined;
|
|
482
|
-
let iconUrl = undefined;
|
|
483
|
-
if (URI.isUri(icon)) {
|
|
484
|
-
iconUrl = icon;
|
|
485
|
-
const cssUrl = asCSSUrl(icon);
|
|
486
|
-
const hash = ( new StringSHA1());
|
|
487
|
-
hash.update(cssUrl);
|
|
488
|
-
const iconId = `activity-${id.replace(/\./g, '-')}-${hash.digest()}`;
|
|
489
|
-
const iconClass = `.monaco-workbench .activitybar .monaco-action-bar .action-label.${iconId}`;
|
|
490
|
-
classNames = [iconId, 'uri-icon'];
|
|
491
|
-
createCSSRule(iconClass, `
|
|
492
|
-
mask: ${cssUrl} no-repeat 50% 50%;
|
|
493
|
-
mask-size: 24px;
|
|
494
|
-
-webkit-mask: ${cssUrl} no-repeat 50% 50%;
|
|
495
|
-
-webkit-mask-size: 24px;
|
|
496
|
-
`);
|
|
497
|
-
}
|
|
498
|
-
else if (ThemeIcon.isThemeIcon(icon)) {
|
|
499
|
-
classNames = ThemeIcon.asClassNameArray(icon);
|
|
500
|
-
}
|
|
501
|
-
return { id, name, classNames, iconUrl, keybindingId };
|
|
502
|
-
}
|
|
503
|
-
showOrHideViewContainer(viewContainer) {
|
|
504
|
-
let contextKey = this.enabledViewContainersContextKeys.get(viewContainer.id);
|
|
505
|
-
if (!contextKey) {
|
|
506
|
-
contextKey = this.contextKeyService.createKey(getEnabledViewContainerContextKey(viewContainer.id), false);
|
|
507
|
-
this.enabledViewContainersContextKeys.set(viewContainer.id, contextKey);
|
|
508
|
-
}
|
|
509
|
-
if (this.shouldBeHidden(viewContainer)) {
|
|
510
|
-
contextKey.set(false);
|
|
511
|
-
this.hideComposite(viewContainer.id);
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
contextKey.set(true);
|
|
515
|
-
this.addComposite(viewContainer);
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
shouldBeHidden(viewContainerOrId, cachedViewContainer) {
|
|
519
|
-
const viewContainer = isString(viewContainerOrId) ? this.getViewContainer(viewContainerOrId) : viewContainerOrId;
|
|
520
|
-
const viewContainerId = isString(viewContainerOrId) ? viewContainerOrId : viewContainerOrId.id;
|
|
521
|
-
if (viewContainer) {
|
|
522
|
-
if (viewContainer.hideIfEmpty) {
|
|
523
|
-
if (this.viewDescriptorService.getViewContainerModel(viewContainer).activeViewDescriptors.length > 0) {
|
|
524
|
-
return false;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
else {
|
|
528
|
-
return false;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
if (!this.hasExtensionsRegistered && !(this.environmentService.remoteAuthority && isNative)) {
|
|
532
|
-
cachedViewContainer = cachedViewContainer || this.cachedViewContainers.find(({ id }) => id === viewContainerId);
|
|
533
|
-
if (!viewContainer && cachedViewContainer?.isBuiltin && cachedViewContainer?.visible) {
|
|
534
|
-
return false;
|
|
535
|
-
}
|
|
536
|
-
if (cachedViewContainer?.views?.length) {
|
|
537
|
-
return cachedViewContainer.views.every(({ when }) => !!when && !this.contextKeyService.contextMatchesRules(ContextKeyExpr.deserialize(when)));
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
return true;
|
|
541
|
-
}
|
|
542
|
-
addComposite(viewContainer) {
|
|
543
|
-
this.compositeBar.addComposite({ id: viewContainer.id, name: typeof viewContainer.title === 'string' ? viewContainer.title : viewContainer.title.value, order: viewContainer.order, requestedIndex: viewContainer.requestedIndex });
|
|
544
|
-
}
|
|
545
|
-
hideComposite(compositeId) {
|
|
546
|
-
this.compositeBar.hideComposite(compositeId);
|
|
547
|
-
const compositeActions = this.compositeActions.get(compositeId);
|
|
548
|
-
if (compositeActions) {
|
|
549
|
-
compositeActions.activityAction.dispose();
|
|
550
|
-
compositeActions.pinnedAction.dispose();
|
|
551
|
-
this.compositeActions.delete(compositeId);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
removeComposite(compositeId) {
|
|
555
|
-
this.compositeBar.removeComposite(compositeId);
|
|
556
|
-
const compositeActions = this.compositeActions.get(compositeId);
|
|
557
|
-
if (compositeActions) {
|
|
558
|
-
compositeActions.activityAction.dispose();
|
|
559
|
-
compositeActions.pinnedAction.dispose();
|
|
560
|
-
this.compositeActions.delete(compositeId);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
getPinnedPaneCompositeIds() {
|
|
564
|
-
const pinnedCompositeIds = ( this.compositeBar.getPinnedComposites().map(v => v.id));
|
|
565
|
-
return ( this.getViewContainers()
|
|
566
|
-
.filter(v => this.compositeBar.isPinned(v.id))
|
|
567
|
-
.sort((v1, v2) => pinnedCompositeIds.indexOf(v1.id) - pinnedCompositeIds.indexOf(v2.id))
|
|
568
|
-
.map(v => v.id));
|
|
569
|
-
}
|
|
570
|
-
getVisiblePaneCompositeIds() {
|
|
571
|
-
return ( this.compositeBar.getVisibleComposites()
|
|
572
|
-
.filter(v => this.paneCompositePart.getActivePaneComposite()?.getId() === v.id || this.compositeBar.isPinned(v.id))
|
|
573
|
-
.map(v => v.id));
|
|
574
|
-
}
|
|
575
|
-
focus() {
|
|
576
|
-
this.compositeBar.focus();
|
|
577
|
-
}
|
|
578
|
-
updateStyles() {
|
|
579
|
-
super.updateStyles();
|
|
580
|
-
const container = assertIsDefined(this.getContainer());
|
|
581
|
-
const background = this.getColor(ACTIVITY_BAR_BACKGROUND) || '';
|
|
582
|
-
container.style.backgroundColor = background;
|
|
583
|
-
const borderColor = this.getColor(ACTIVITY_BAR_BORDER) || this.getColor(contrastBorder) || '';
|
|
584
|
-
container.classList.toggle('bordered', !!borderColor);
|
|
585
|
-
container.style.borderColor = borderColor ? borderColor : '';
|
|
586
|
-
}
|
|
587
|
-
getActivitybarItemColors(theme) {
|
|
588
|
-
return {
|
|
589
|
-
activeForegroundColor: theme.getColor(ACTIVITY_BAR_FOREGROUND),
|
|
590
|
-
inactiveForegroundColor: theme.getColor(ACTIVITY_BAR_INACTIVE_FOREGROUND),
|
|
591
|
-
activeBorderColor: theme.getColor(ACTIVITY_BAR_ACTIVE_BORDER),
|
|
592
|
-
activeBackground: theme.getColor(ACTIVITY_BAR_ACTIVE_BACKGROUND),
|
|
593
|
-
badgeBackground: theme.getColor(ACTIVITY_BAR_BADGE_BACKGROUND),
|
|
594
|
-
badgeForeground: theme.getColor(ACTIVITY_BAR_BADGE_FOREGROUND),
|
|
595
|
-
dragAndDropBorder: theme.getColor(ACTIVITY_BAR_DRAG_AND_DROP_BORDER),
|
|
596
|
-
activeBackgroundColor: undefined, inactiveBackgroundColor: undefined, activeBorderBottomColor: undefined,
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
layout(width, height) {
|
|
600
|
-
if (!this.layoutService.isVisible("workbench.parts.activitybar" )) {
|
|
601
|
-
return;
|
|
602
|
-
}
|
|
603
|
-
const contentAreaSize = super.layoutContents(width, height).contentSize;
|
|
604
|
-
let availableHeight = contentAreaSize.height;
|
|
605
|
-
if (this.menuBarContainer) {
|
|
606
|
-
availableHeight -= this.menuBarContainer.clientHeight;
|
|
607
|
-
}
|
|
608
|
-
if (this.globalActivityActionBar) {
|
|
609
|
-
availableHeight -= (this.globalActivityActionBar.viewItems.length * ActivitybarPart_1.ACTION_HEIGHT);
|
|
610
|
-
}
|
|
611
|
-
this.compositeBar.layout(( new Dimension(width, availableHeight)));
|
|
612
|
-
}
|
|
613
|
-
getViewContainer(id) {
|
|
614
|
-
const viewContainer = this.viewDescriptorService.getViewContainerById(id);
|
|
615
|
-
return viewContainer && this.viewDescriptorService.getViewContainerLocation(viewContainer) === this.location ? viewContainer : undefined;
|
|
616
|
-
}
|
|
617
|
-
getViewContainers() {
|
|
618
|
-
return this.viewDescriptorService.getViewContainersByLocation(this.location);
|
|
619
|
-
}
|
|
620
|
-
onDidPinnedViewContainersStorageValueChange(e) {
|
|
621
|
-
if (this.pinnedViewContainersValue !== this.getStoredPinnedViewContainersValue() ) {
|
|
622
|
-
this._pinnedViewContainersValue = undefined;
|
|
623
|
-
this._cachedViewContainers = undefined;
|
|
624
|
-
const newCompositeItems = [];
|
|
625
|
-
const compositeItems = this.compositeBar.getCompositeBarItems();
|
|
626
|
-
for (const cachedViewContainer of this.cachedViewContainers) {
|
|
627
|
-
newCompositeItems.push({
|
|
628
|
-
id: cachedViewContainer.id,
|
|
629
|
-
name: cachedViewContainer.name,
|
|
630
|
-
order: cachedViewContainer.order,
|
|
631
|
-
pinned: cachedViewContainer.pinned,
|
|
632
|
-
visible: !!compositeItems.find(({ id }) => id === cachedViewContainer.id)
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
for (let index = 0; index < compositeItems.length; index++) {
|
|
636
|
-
if (!( newCompositeItems.some(({ id }) => id === compositeItems[index].id))) {
|
|
637
|
-
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeItems[index].id);
|
|
638
|
-
newCompositeItems.splice(index, 0, {
|
|
639
|
-
...compositeItems[index],
|
|
640
|
-
pinned: true,
|
|
641
|
-
visible: true,
|
|
642
|
-
order: viewContainer?.order,
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
this.compositeBar.setCompositeBarItems(newCompositeItems);
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
saveCachedViewContainers() {
|
|
650
|
-
const state = [];
|
|
651
|
-
const compositeItems = this.compositeBar.getCompositeBarItems();
|
|
652
|
-
for (const compositeItem of compositeItems) {
|
|
653
|
-
const viewContainer = this.getViewContainer(compositeItem.id);
|
|
654
|
-
if (viewContainer) {
|
|
655
|
-
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
656
|
-
const views = [];
|
|
657
|
-
for (const { when } of viewContainerModel.allViewDescriptors) {
|
|
658
|
-
views.push({ when: when ? when.serialize() : undefined });
|
|
659
|
-
}
|
|
660
|
-
state.push({
|
|
661
|
-
id: compositeItem.id,
|
|
662
|
-
name: viewContainerModel.title,
|
|
663
|
-
icon: URI.isUri(viewContainerModel.icon) && this.environmentService.remoteAuthority ? undefined : viewContainerModel.icon,
|
|
664
|
-
views,
|
|
665
|
-
pinned: compositeItem.pinned,
|
|
666
|
-
order: compositeItem.order,
|
|
667
|
-
visible: compositeItem.visible,
|
|
668
|
-
isBuiltin: !viewContainer.extensionId
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
state.push({ id: compositeItem.id, pinned: compositeItem.pinned, order: compositeItem.order, visible: false, isBuiltin: false });
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
this.storeCachedViewContainersState(state);
|
|
676
|
-
}
|
|
677
|
-
get cachedViewContainers() {
|
|
678
|
-
if (this._cachedViewContainers === undefined) {
|
|
679
|
-
this._cachedViewContainers = this.getPinnedViewContainers();
|
|
680
|
-
for (const placeholderViewContainer of this.getPlaceholderViewContainers()) {
|
|
681
|
-
const cachedViewContainer = this._cachedViewContainers.filter(cached => cached.id === placeholderViewContainer.id)[0];
|
|
682
|
-
if (cachedViewContainer) {
|
|
683
|
-
cachedViewContainer.name = placeholderViewContainer.name;
|
|
684
|
-
cachedViewContainer.icon = placeholderViewContainer.themeIcon ? placeholderViewContainer.themeIcon :
|
|
685
|
-
placeholderViewContainer.iconUrl ? URI.revive(placeholderViewContainer.iconUrl) : undefined;
|
|
686
|
-
if (URI.isUri(cachedViewContainer.icon) && this.environmentService.remoteAuthority) {
|
|
687
|
-
cachedViewContainer.icon = undefined;
|
|
688
|
-
}
|
|
689
|
-
cachedViewContainer.views = placeholderViewContainer.views;
|
|
690
|
-
cachedViewContainer.isBuiltin = placeholderViewContainer.isBuiltin;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
return this._cachedViewContainers;
|
|
695
|
-
}
|
|
696
|
-
storeCachedViewContainersState(cachedViewContainers) {
|
|
697
|
-
this.setPinnedViewContainers(( cachedViewContainers.map(({ id, pinned, visible, order }) => ({
|
|
698
|
-
id,
|
|
699
|
-
pinned,
|
|
700
|
-
visible,
|
|
701
|
-
order
|
|
702
|
-
}))));
|
|
703
|
-
this.setPlaceholderViewContainers(( cachedViewContainers.map(({ id, icon, name, views, isBuiltin }) => ({
|
|
704
|
-
id,
|
|
705
|
-
iconUrl: URI.isUri(icon) ? icon : undefined,
|
|
706
|
-
themeIcon: ThemeIcon.isThemeIcon(icon) ? icon : undefined,
|
|
707
|
-
name,
|
|
708
|
-
isBuiltin,
|
|
709
|
-
views
|
|
710
|
-
}))));
|
|
711
|
-
}
|
|
712
|
-
getPinnedViewContainers() {
|
|
713
|
-
return JSON.parse(this.pinnedViewContainersValue);
|
|
714
|
-
}
|
|
715
|
-
setPinnedViewContainers(pinnedViewContainers) {
|
|
716
|
-
this.pinnedViewContainersValue = JSON.stringify(pinnedViewContainers);
|
|
717
|
-
}
|
|
718
|
-
get pinnedViewContainersValue() {
|
|
719
|
-
if (!this._pinnedViewContainersValue) {
|
|
720
|
-
this._pinnedViewContainersValue = this.getStoredPinnedViewContainersValue();
|
|
721
|
-
}
|
|
722
|
-
return this._pinnedViewContainersValue;
|
|
723
|
-
}
|
|
724
|
-
set pinnedViewContainersValue(pinnedViewContainersValue) {
|
|
725
|
-
if (this.pinnedViewContainersValue !== pinnedViewContainersValue) {
|
|
726
|
-
this._pinnedViewContainersValue = pinnedViewContainersValue;
|
|
727
|
-
this.setStoredPinnedViewContainersValue(pinnedViewContainersValue);
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
getStoredPinnedViewContainersValue() {
|
|
731
|
-
return this.storageService.get(ActivitybarPart_1.PINNED_VIEW_CONTAINERS, 0 , '[]');
|
|
732
|
-
}
|
|
733
|
-
setStoredPinnedViewContainersValue(value) {
|
|
734
|
-
this.storageService.store(ActivitybarPart_1.PINNED_VIEW_CONTAINERS, value, 0 , 0 );
|
|
735
|
-
}
|
|
736
|
-
getPlaceholderViewContainers() {
|
|
737
|
-
return JSON.parse(this.placeholderViewContainersValue);
|
|
738
|
-
}
|
|
739
|
-
setPlaceholderViewContainers(placeholderViewContainers) {
|
|
740
|
-
this.placeholderViewContainersValue = JSON.stringify(placeholderViewContainers);
|
|
741
|
-
}
|
|
742
|
-
get placeholderViewContainersValue() {
|
|
743
|
-
if (!this._placeholderViewContainersValue) {
|
|
744
|
-
this._placeholderViewContainersValue = this.getStoredPlaceholderViewContainersValue();
|
|
745
|
-
}
|
|
746
|
-
return this._placeholderViewContainersValue;
|
|
747
|
-
}
|
|
748
|
-
set placeholderViewContainersValue(placeholderViewContainesValue) {
|
|
749
|
-
if (this.placeholderViewContainersValue !== placeholderViewContainesValue) {
|
|
750
|
-
this._placeholderViewContainersValue = placeholderViewContainesValue;
|
|
751
|
-
this.setStoredPlaceholderViewContainersValue(placeholderViewContainesValue);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
getStoredPlaceholderViewContainersValue() {
|
|
755
|
-
return this.storageService.get(ActivitybarPart_1.PLACEHOLDER_VIEW_CONTAINERS, 0 , '[]');
|
|
756
|
-
}
|
|
757
|
-
setStoredPlaceholderViewContainersValue(value) {
|
|
758
|
-
this.storageService.store(ActivitybarPart_1.PLACEHOLDER_VIEW_CONTAINERS, value, 0 , 1 );
|
|
759
|
-
}
|
|
760
|
-
get accountsVisibilityPreference() {
|
|
761
|
-
return this.storageService.getBoolean(AccountsActivityActionViewItem.ACCOUNTS_VISIBILITY_PREFERENCE_KEY, 0 , true);
|
|
762
|
-
}
|
|
763
|
-
set accountsVisibilityPreference(value) {
|
|
764
|
-
this.storageService.store(AccountsActivityActionViewItem.ACCOUNTS_VISIBILITY_PREFERENCE_KEY, value, 0 , 0 );
|
|
765
|
-
}
|
|
766
|
-
toJSON() {
|
|
767
|
-
return {
|
|
768
|
-
type: "workbench.parts.activitybar"
|
|
769
|
-
};
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
ActivitybarPart = ActivitybarPart_1 = ( __decorate([
|
|
773
|
-
( __param(1, IInstantiationService)),
|
|
774
|
-
( __param(2, IWorkbenchLayoutService)),
|
|
775
|
-
( __param(3, IThemeService)),
|
|
776
|
-
( __param(4, IStorageService)),
|
|
777
|
-
( __param(5, IExtensionService)),
|
|
778
|
-
( __param(6, IViewDescriptorService)),
|
|
779
|
-
( __param(7, IContextKeyService)),
|
|
780
|
-
( __param(8, IConfigurationService)),
|
|
781
|
-
( __param(9, IWorkbenchEnvironmentService))
|
|
782
|
-
], ActivitybarPart));
|
|
783
|
-
export { ActivitybarPart };
|