@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,1170 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
3
|
-
import { Event, Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
4
|
-
import { ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
5
|
-
import { equals } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
6
|
-
import { Disposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
7
|
-
import { Delayer, Barrier, Queue, Promises, runWhenIdle } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
8
|
-
import { Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js';
|
|
9
|
-
import { IWorkspaceContextService, isWorkspaceIdentifier, isSingleFolderWorkspaceIdentifier, isWorkspaceFolder, toWorkspaceFolder, Workspace as Workspace$1 } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
10
|
-
import { ConfigurationModel, mergeChanges, ConfigurationChangeEvent } from 'monaco-editor/esm/vs/platform/configuration/common/configurationModels.js';
|
|
11
|
-
import { isConfigurationOverrides, isConfigurationUpdateOverrides, ConfigurationTargetToString } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
12
|
-
import { NullPolicyConfiguration, PolicyConfiguration } from 'monaco-editor/esm/vs/platform/configuration/common/configurations.js';
|
|
13
|
-
import { Configuration } from '../common/configurationModels.js';
|
|
14
|
-
import { APPLY_ALL_PROFILES_SETTING, defaultSettingsSchemaId, userSettingsSchemaId, profileSettingsSchemaId, machineSettingsSchemaId, workspaceSettingsSchemaId, folderSettingsSchemaId, FOLDER_CONFIG_FOLDER_NAME, LOCAL_MACHINE_SCOPES, LOCAL_MACHINE_PROFILE_SCOPES, PROFILE_SCOPES } from '../common/configuration.js';
|
|
15
|
-
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
16
|
-
import { applicationSettings, windowSettings, resourceSettings, allSettings, machineSettings, machineOverridableSettings, OVERRIDE_PROPERTY_PATTERN, resourceLanguageSettingsSchemaId, configurationDefaultsSchemaId, Extensions, keyFromOverrideIdentifiers } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
17
|
-
import { isStoredWorkspaceFolder, toWorkspaceFolders, getStoredWorkspaceFolder } from '../../../../platform/workspaces/common/workspaces.js';
|
|
18
|
-
import { ConfigurationEditing } from '../common/configurationEditing.js';
|
|
19
|
-
import { DefaultConfiguration, UserConfiguration, RemoteUserConfiguration, WorkspaceConfiguration, ApplicationConfiguration, FolderConfiguration } from './configuration.js';
|
|
20
|
-
import { mark } from 'monaco-editor/esm/vs/base/common/performance.js';
|
|
21
|
-
import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.js';
|
|
22
|
-
import { Extensions as Extensions$1 } from '../../../common/contributions.js';
|
|
23
|
-
import { ILifecycleService } from '../../lifecycle/common/lifecycle.js';
|
|
24
|
-
import { toErrorMessage } from 'monaco-editor/esm/vs/base/common/errorMessage.js';
|
|
25
|
-
import { IWorkspaceTrustManagementService } from 'monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js';
|
|
26
|
-
import { distinct, delta } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
27
|
-
import { IExtensionService } from '../../extensions/common/extensions.js';
|
|
28
|
-
import { IWorkbenchAssignmentService } from '../../assignment/common/assignmentService.js';
|
|
29
|
-
import { isUndefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
30
|
-
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
31
|
-
import { NullPolicyService } from 'monaco-editor/esm/vs/platform/policy/common/policy.js';
|
|
32
|
-
import { IJSONEditingService } from '../common/jsonEditing.js';
|
|
33
|
-
import { workbenchConfigurationNodeBase } from '../../../common/configuration.js';
|
|
34
|
-
function getLocalUserConfigurationScopes(userDataProfile, hasRemote) {
|
|
35
|
-
return (userDataProfile.isDefault || userDataProfile.useDefaultFlags?.settings)
|
|
36
|
-
? hasRemote ? LOCAL_MACHINE_SCOPES : undefined
|
|
37
|
-
: hasRemote ? LOCAL_MACHINE_PROFILE_SCOPES : PROFILE_SCOPES;
|
|
38
|
-
}
|
|
39
|
-
class Workspace extends Workspace$1 {
|
|
40
|
-
constructor() {
|
|
41
|
-
super(...arguments);
|
|
42
|
-
this.initialized = false;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
class WorkspaceService extends Disposable {
|
|
46
|
-
get restrictedSettings() { return this._restrictedSettings; }
|
|
47
|
-
constructor({ remoteAuthority, configurationCache }, environmentService, userDataProfileService, userDataProfilesService, fileService, remoteAgentService, uriIdentityService, logService, policyService) {
|
|
48
|
-
super();
|
|
49
|
-
this.userDataProfileService = userDataProfileService;
|
|
50
|
-
this.userDataProfilesService = userDataProfilesService;
|
|
51
|
-
this.fileService = fileService;
|
|
52
|
-
this.remoteAgentService = remoteAgentService;
|
|
53
|
-
this.uriIdentityService = uriIdentityService;
|
|
54
|
-
this.logService = logService;
|
|
55
|
-
this.initialized = false;
|
|
56
|
-
this.applicationConfiguration = null;
|
|
57
|
-
this.remoteUserConfiguration = null;
|
|
58
|
-
this._onDidChangeConfiguration = this._register(( (new Emitter())));
|
|
59
|
-
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
60
|
-
this._onWillChangeWorkspaceFolders = this._register(( (new Emitter())));
|
|
61
|
-
this.onWillChangeWorkspaceFolders = this._onWillChangeWorkspaceFolders.event;
|
|
62
|
-
this._onDidChangeWorkspaceFolders = this._register(( (new Emitter())));
|
|
63
|
-
this.onDidChangeWorkspaceFolders = this._onDidChangeWorkspaceFolders.event;
|
|
64
|
-
this._onDidChangeWorkspaceName = this._register(( (new Emitter())));
|
|
65
|
-
this.onDidChangeWorkspaceName = this._onDidChangeWorkspaceName.event;
|
|
66
|
-
this._onDidChangeWorkbenchState = this._register(( (new Emitter())));
|
|
67
|
-
this.onDidChangeWorkbenchState = this._onDidChangeWorkbenchState.event;
|
|
68
|
-
this.isWorkspaceTrusted = true;
|
|
69
|
-
this._restrictedSettings = { default: [] };
|
|
70
|
-
this._onDidChangeRestrictedSettings = this._register(( (new Emitter())));
|
|
71
|
-
this.onDidChangeRestrictedSettings = this._onDidChangeRestrictedSettings.event;
|
|
72
|
-
this.configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
73
|
-
this.initRemoteUserConfigurationBarrier = ( (new Barrier()));
|
|
74
|
-
this.completeWorkspaceBarrier = ( (new Barrier()));
|
|
75
|
-
this.defaultConfiguration = this._register(( (new DefaultConfiguration(configurationCache, environmentService))));
|
|
76
|
-
this.policyConfiguration = policyService instanceof NullPolicyService ? ( (new NullPolicyConfiguration())) : this._register(( (new PolicyConfiguration(this.defaultConfiguration, policyService, logService))));
|
|
77
|
-
this.configurationCache = configurationCache;
|
|
78
|
-
this._configuration = ( (new Configuration(
|
|
79
|
-
this.defaultConfiguration.configurationModel,
|
|
80
|
-
this.policyConfiguration.configurationModel,
|
|
81
|
-
(new ConfigurationModel()),
|
|
82
|
-
(new ConfigurationModel()),
|
|
83
|
-
(new ConfigurationModel()),
|
|
84
|
-
(new ConfigurationModel()),
|
|
85
|
-
(new ResourceMap()),
|
|
86
|
-
(new ConfigurationModel()),
|
|
87
|
-
(new ResourceMap()),
|
|
88
|
-
this.workspace
|
|
89
|
-
)));
|
|
90
|
-
this.applicationConfigurationDisposables = this._register(( (new DisposableStore())));
|
|
91
|
-
this.createApplicationConfiguration();
|
|
92
|
-
this.localUserConfiguration = this._register(( (new UserConfiguration(
|
|
93
|
-
userDataProfileService.currentProfile.settingsResource,
|
|
94
|
-
userDataProfileService.currentProfile.tasksResource,
|
|
95
|
-
{ scopes: getLocalUserConfigurationScopes(userDataProfileService.currentProfile, !!remoteAuthority) },
|
|
96
|
-
fileService,
|
|
97
|
-
uriIdentityService,
|
|
98
|
-
logService
|
|
99
|
-
))));
|
|
100
|
-
this.cachedFolderConfigs = ( (new ResourceMap()));
|
|
101
|
-
this._register(this.localUserConfiguration.onDidChangeConfiguration(userConfiguration => this.onLocalUserConfigurationChanged(userConfiguration)));
|
|
102
|
-
if (remoteAuthority) {
|
|
103
|
-
const remoteUserConfiguration = this.remoteUserConfiguration = this._register(( (new RemoteUserConfiguration(
|
|
104
|
-
remoteAuthority,
|
|
105
|
-
configurationCache,
|
|
106
|
-
fileService,
|
|
107
|
-
uriIdentityService,
|
|
108
|
-
remoteAgentService
|
|
109
|
-
))));
|
|
110
|
-
this._register(remoteUserConfiguration.onDidInitialize(remoteUserConfigurationModel => {
|
|
111
|
-
this._register(remoteUserConfiguration.onDidChangeConfiguration(remoteUserConfigurationModel => this.onRemoteUserConfigurationChanged(remoteUserConfigurationModel)));
|
|
112
|
-
this.onRemoteUserConfigurationChanged(remoteUserConfigurationModel);
|
|
113
|
-
this.initRemoteUserConfigurationBarrier.open();
|
|
114
|
-
}));
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
this.initRemoteUserConfigurationBarrier.open();
|
|
118
|
-
}
|
|
119
|
-
this.workspaceConfiguration = this._register(( (new WorkspaceConfiguration(configurationCache, fileService, uriIdentityService, logService))));
|
|
120
|
-
this._register(this.workspaceConfiguration.onDidUpdateConfiguration(fromCache => {
|
|
121
|
-
this.onWorkspaceConfigurationChanged(fromCache).then(() => {
|
|
122
|
-
this.workspace.initialized = this.workspaceConfiguration.initialized;
|
|
123
|
-
this.checkAndMarkWorkspaceComplete(fromCache);
|
|
124
|
-
});
|
|
125
|
-
}));
|
|
126
|
-
this._register(this.defaultConfiguration.onDidChangeConfiguration(({ properties, defaults }) => this.onDefaultConfigurationChanged(defaults, properties)));
|
|
127
|
-
this._register(this.policyConfiguration.onDidChangeConfiguration(configurationModel => this.onPolicyConfigurationChanged(configurationModel)));
|
|
128
|
-
this._register(userDataProfileService.onDidChangeCurrentProfile(e => this.onUserDataProfileChanged(e)));
|
|
129
|
-
this.workspaceEditingQueue = ( (new Queue()));
|
|
130
|
-
}
|
|
131
|
-
createApplicationConfiguration() {
|
|
132
|
-
this.applicationConfigurationDisposables.clear();
|
|
133
|
-
if (this.userDataProfileService.currentProfile.isDefault || this.userDataProfileService.currentProfile.useDefaultFlags?.settings) {
|
|
134
|
-
this.applicationConfiguration = null;
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
this.applicationConfiguration = this.applicationConfigurationDisposables.add(this._register(( (new ApplicationConfiguration(this.userDataProfilesService, this.fileService, this.uriIdentityService)))));
|
|
138
|
-
this.applicationConfigurationDisposables.add(this.applicationConfiguration.onDidChangeConfiguration(configurationModel => this.onApplicationConfigurationChanged(configurationModel)));
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
async getCompleteWorkspace() {
|
|
142
|
-
await this.completeWorkspaceBarrier.wait();
|
|
143
|
-
return this.getWorkspace();
|
|
144
|
-
}
|
|
145
|
-
getWorkspace() {
|
|
146
|
-
return this.workspace;
|
|
147
|
-
}
|
|
148
|
-
getWorkbenchState() {
|
|
149
|
-
if (this.workspace.configuration) {
|
|
150
|
-
return 3 ;
|
|
151
|
-
}
|
|
152
|
-
if (this.workspace.folders.length === 1) {
|
|
153
|
-
return 2 ;
|
|
154
|
-
}
|
|
155
|
-
return 1 ;
|
|
156
|
-
}
|
|
157
|
-
getWorkspaceFolder(resource) {
|
|
158
|
-
return this.workspace.getFolder(resource);
|
|
159
|
-
}
|
|
160
|
-
addFolders(foldersToAdd, index) {
|
|
161
|
-
return this.updateFolders(foldersToAdd, [], index);
|
|
162
|
-
}
|
|
163
|
-
removeFolders(foldersToRemove) {
|
|
164
|
-
return this.updateFolders([], foldersToRemove);
|
|
165
|
-
}
|
|
166
|
-
async updateFolders(foldersToAdd, foldersToRemove, index) {
|
|
167
|
-
return this.workspaceEditingQueue.queue(() => this.doUpdateFolders(foldersToAdd, foldersToRemove, index));
|
|
168
|
-
}
|
|
169
|
-
isInsideWorkspace(resource) {
|
|
170
|
-
return !!this.getWorkspaceFolder(resource);
|
|
171
|
-
}
|
|
172
|
-
isCurrentWorkspace(workspaceIdOrFolder) {
|
|
173
|
-
switch (this.getWorkbenchState()) {
|
|
174
|
-
case 2 : {
|
|
175
|
-
let folderUri = undefined;
|
|
176
|
-
if (URI.isUri(workspaceIdOrFolder)) {
|
|
177
|
-
folderUri = workspaceIdOrFolder;
|
|
178
|
-
}
|
|
179
|
-
else if (isSingleFolderWorkspaceIdentifier(workspaceIdOrFolder)) {
|
|
180
|
-
folderUri = workspaceIdOrFolder.uri;
|
|
181
|
-
}
|
|
182
|
-
return URI.isUri(folderUri) && this.uriIdentityService.extUri.isEqual(folderUri, this.workspace.folders[0].uri);
|
|
183
|
-
}
|
|
184
|
-
case 3 :
|
|
185
|
-
return isWorkspaceIdentifier(workspaceIdOrFolder) && this.workspace.id === workspaceIdOrFolder.id;
|
|
186
|
-
}
|
|
187
|
-
return false;
|
|
188
|
-
}
|
|
189
|
-
async doUpdateFolders(foldersToAdd, foldersToRemove, index) {
|
|
190
|
-
if (this.getWorkbenchState() !== 3 ) {
|
|
191
|
-
return Promise.resolve(undefined);
|
|
192
|
-
}
|
|
193
|
-
if (foldersToAdd.length + foldersToRemove.length === 0) {
|
|
194
|
-
return Promise.resolve(undefined);
|
|
195
|
-
}
|
|
196
|
-
let foldersHaveChanged = false;
|
|
197
|
-
let currentWorkspaceFolders = this.getWorkspace().folders;
|
|
198
|
-
let newStoredFolders = ( (currentWorkspaceFolders.map(f => f.raw))).filter((folder, index) => {
|
|
199
|
-
if (!isStoredWorkspaceFolder(folder)) {
|
|
200
|
-
return true;
|
|
201
|
-
}
|
|
202
|
-
return !this.contains(foldersToRemove, currentWorkspaceFolders[index].uri);
|
|
203
|
-
});
|
|
204
|
-
foldersHaveChanged = currentWorkspaceFolders.length !== newStoredFolders.length;
|
|
205
|
-
if (foldersToAdd.length) {
|
|
206
|
-
const workspaceConfigPath = this.getWorkspace().configuration;
|
|
207
|
-
const workspaceConfigFolder = this.uriIdentityService.extUri.dirname(workspaceConfigPath);
|
|
208
|
-
currentWorkspaceFolders = toWorkspaceFolders(newStoredFolders, workspaceConfigPath, this.uriIdentityService.extUri);
|
|
209
|
-
const currentWorkspaceFolderUris = ( (currentWorkspaceFolders.map(folder => folder.uri)));
|
|
210
|
-
const storedFoldersToAdd = [];
|
|
211
|
-
for (const folderToAdd of foldersToAdd) {
|
|
212
|
-
const folderURI = folderToAdd.uri;
|
|
213
|
-
if (this.contains(currentWorkspaceFolderUris, folderURI)) {
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
|
-
try {
|
|
217
|
-
const result = await this.fileService.stat(folderURI);
|
|
218
|
-
if (!result.isDirectory) {
|
|
219
|
-
continue;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
catch (e) { }
|
|
223
|
-
storedFoldersToAdd.push(getStoredWorkspaceFolder(folderURI, false, folderToAdd.name, workspaceConfigFolder, this.uriIdentityService.extUri));
|
|
224
|
-
}
|
|
225
|
-
if (storedFoldersToAdd.length > 0) {
|
|
226
|
-
foldersHaveChanged = true;
|
|
227
|
-
if (typeof index === 'number' && index >= 0 && index < newStoredFolders.length) {
|
|
228
|
-
newStoredFolders = newStoredFolders.slice(0);
|
|
229
|
-
newStoredFolders.splice(index, 0, ...storedFoldersToAdd);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
newStoredFolders = [...newStoredFolders, ...storedFoldersToAdd];
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
if (foldersHaveChanged) {
|
|
237
|
-
return this.setFolders(newStoredFolders);
|
|
238
|
-
}
|
|
239
|
-
return Promise.resolve(undefined);
|
|
240
|
-
}
|
|
241
|
-
async setFolders(folders) {
|
|
242
|
-
if (!this.instantiationService) {
|
|
243
|
-
throw new Error('Cannot update workspace folders because workspace service is not yet ready to accept writes.');
|
|
244
|
-
}
|
|
245
|
-
await this.instantiationService.invokeFunction(accessor => this.workspaceConfiguration.setFolders(folders, accessor.get(IJSONEditingService)));
|
|
246
|
-
return this.onWorkspaceConfigurationChanged(false);
|
|
247
|
-
}
|
|
248
|
-
contains(resources, toCheck) {
|
|
249
|
-
return (
|
|
250
|
-
(resources.some(resource => this.uriIdentityService.extUri.isEqual(resource, toCheck)))
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
getConfigurationData() {
|
|
254
|
-
return this._configuration.toData();
|
|
255
|
-
}
|
|
256
|
-
getValue(arg1, arg2) {
|
|
257
|
-
const section = typeof arg1 === 'string' ? arg1 : undefined;
|
|
258
|
-
const overrides = isConfigurationOverrides(arg1) ? arg1 : isConfigurationOverrides(arg2) ? arg2 : undefined;
|
|
259
|
-
return this._configuration.getValue(section, overrides);
|
|
260
|
-
}
|
|
261
|
-
async updateValue(key, value, arg3, arg4, options) {
|
|
262
|
-
const overrides = isConfigurationUpdateOverrides(arg3) ? arg3
|
|
263
|
-
: isConfigurationOverrides(arg3) ? { resource: arg3.resource, overrideIdentifiers: arg3.overrideIdentifier ? [arg3.overrideIdentifier] : undefined } : undefined;
|
|
264
|
-
const target = overrides ? arg4 : arg3;
|
|
265
|
-
const targets = target ? [target] : [];
|
|
266
|
-
if (overrides?.overrideIdentifiers) {
|
|
267
|
-
overrides.overrideIdentifiers = distinct(overrides.overrideIdentifiers);
|
|
268
|
-
overrides.overrideIdentifiers = overrides.overrideIdentifiers.length ? overrides.overrideIdentifiers : undefined;
|
|
269
|
-
}
|
|
270
|
-
if (!targets.length) {
|
|
271
|
-
if (overrides?.overrideIdentifiers && overrides.overrideIdentifiers.length > 1) {
|
|
272
|
-
throw new Error('Configuration Target is required while updating the value for multiple override identifiers');
|
|
273
|
-
}
|
|
274
|
-
const inspect = this.inspect(key, { resource: overrides?.resource, overrideIdentifier: overrides?.overrideIdentifiers ? overrides.overrideIdentifiers[0] : undefined });
|
|
275
|
-
targets.push(...this.deriveConfigurationTargets(key, value, inspect));
|
|
276
|
-
if (equals(value, inspect.defaultValue) && targets.length === 1 && ((targets[0] === 2 || targets[0] === 3) )) {
|
|
277
|
-
value = undefined;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
await Promises.settled(( (targets.map(
|
|
281
|
-
target => this.writeConfigurationValue(key, value, target, overrides, options)
|
|
282
|
-
))));
|
|
283
|
-
}
|
|
284
|
-
async reloadConfiguration(target) {
|
|
285
|
-
if (target === undefined) {
|
|
286
|
-
this.reloadDefaultConfiguration();
|
|
287
|
-
const application = await this.reloadApplicationConfiguration(true);
|
|
288
|
-
const { local, remote } = await this.reloadUserConfiguration();
|
|
289
|
-
await this.reloadWorkspaceConfiguration();
|
|
290
|
-
await this.loadConfiguration(application, local, remote, true);
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
if (isWorkspaceFolder(target)) {
|
|
294
|
-
await this.reloadWorkspaceFolderConfiguration(target);
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
switch (target) {
|
|
298
|
-
case 7 :
|
|
299
|
-
this.reloadDefaultConfiguration();
|
|
300
|
-
return;
|
|
301
|
-
case 2 : {
|
|
302
|
-
const { local, remote } = await this.reloadUserConfiguration();
|
|
303
|
-
await this.loadConfiguration(this._configuration.applicationConfiguration, local, remote, true);
|
|
304
|
-
return;
|
|
305
|
-
}
|
|
306
|
-
case 3 :
|
|
307
|
-
await this.reloadLocalUserConfiguration();
|
|
308
|
-
return;
|
|
309
|
-
case 4 :
|
|
310
|
-
await this.reloadRemoteUserConfiguration();
|
|
311
|
-
return;
|
|
312
|
-
case 5 :
|
|
313
|
-
case 6 :
|
|
314
|
-
await this.reloadWorkspaceConfiguration();
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
hasCachedConfigurationDefaultsOverrides() {
|
|
319
|
-
return this.defaultConfiguration.hasCachedConfigurationDefaultsOverrides();
|
|
320
|
-
}
|
|
321
|
-
inspect(key, overrides) {
|
|
322
|
-
return this._configuration.inspect(key, overrides);
|
|
323
|
-
}
|
|
324
|
-
keys() {
|
|
325
|
-
return (
|
|
326
|
-
(this._configuration.keys())
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
async whenRemoteConfigurationLoaded() {
|
|
330
|
-
await this.initRemoteUserConfigurationBarrier.wait();
|
|
331
|
-
}
|
|
332
|
-
async initialize(arg) {
|
|
333
|
-
mark('code/willInitWorkspaceService');
|
|
334
|
-
const trigger = this.initialized;
|
|
335
|
-
this.initialized = false;
|
|
336
|
-
const workspace = await this.createWorkspace(arg);
|
|
337
|
-
await this.updateWorkspaceAndInitializeConfiguration(workspace, trigger);
|
|
338
|
-
this.checkAndMarkWorkspaceComplete(false);
|
|
339
|
-
mark('code/didInitWorkspaceService');
|
|
340
|
-
}
|
|
341
|
-
updateWorkspaceTrust(trusted) {
|
|
342
|
-
if (this.isWorkspaceTrusted !== trusted) {
|
|
343
|
-
this.isWorkspaceTrusted = trusted;
|
|
344
|
-
const data = this._configuration.toData();
|
|
345
|
-
const folderConfigurationModels = [];
|
|
346
|
-
for (const folder of this.workspace.folders) {
|
|
347
|
-
const folderConfiguration = this.cachedFolderConfigs.get(folder.uri);
|
|
348
|
-
let configurationModel;
|
|
349
|
-
if (folderConfiguration) {
|
|
350
|
-
configurationModel = folderConfiguration.updateWorkspaceTrust(this.isWorkspaceTrusted);
|
|
351
|
-
this._configuration.updateFolderConfiguration(folder.uri, configurationModel);
|
|
352
|
-
}
|
|
353
|
-
folderConfigurationModels.push(configurationModel);
|
|
354
|
-
}
|
|
355
|
-
if (this.getWorkbenchState() === 2 ) {
|
|
356
|
-
if (folderConfigurationModels[0]) {
|
|
357
|
-
this._configuration.updateWorkspaceConfiguration(folderConfigurationModels[0]);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
else {
|
|
361
|
-
this._configuration.updateWorkspaceConfiguration(this.workspaceConfiguration.updateWorkspaceTrust(this.isWorkspaceTrusted));
|
|
362
|
-
}
|
|
363
|
-
this.updateRestrictedSettings();
|
|
364
|
-
let keys = [];
|
|
365
|
-
if (this.restrictedSettings.userLocal) {
|
|
366
|
-
keys.push(...this.restrictedSettings.userLocal);
|
|
367
|
-
}
|
|
368
|
-
if (this.restrictedSettings.userRemote) {
|
|
369
|
-
keys.push(...this.restrictedSettings.userRemote);
|
|
370
|
-
}
|
|
371
|
-
if (this.restrictedSettings.workspace) {
|
|
372
|
-
keys.push(...this.restrictedSettings.workspace);
|
|
373
|
-
}
|
|
374
|
-
this.restrictedSettings.workspaceFolder?.forEach((value) => keys.push(...value));
|
|
375
|
-
keys = distinct(keys);
|
|
376
|
-
if (keys.length) {
|
|
377
|
-
this.triggerConfigurationChange({ keys, overrides: [] }, { data, workspace: this.workspace }, 5 );
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
acquireInstantiationService(instantiationService) {
|
|
382
|
-
this.instantiationService = instantiationService;
|
|
383
|
-
}
|
|
384
|
-
isSettingAppliedForAllProfiles(key) {
|
|
385
|
-
if (this.configurationRegistry.getConfigurationProperties()[key]?.scope === 1 ) {
|
|
386
|
-
return true;
|
|
387
|
-
}
|
|
388
|
-
const allProfilesSettings = this.getValue(APPLY_ALL_PROFILES_SETTING) ?? [];
|
|
389
|
-
return Array.isArray(allProfilesSettings) && allProfilesSettings.includes(key);
|
|
390
|
-
}
|
|
391
|
-
async createWorkspace(arg) {
|
|
392
|
-
if (isWorkspaceIdentifier(arg)) {
|
|
393
|
-
return this.createMultiFolderWorkspace(arg);
|
|
394
|
-
}
|
|
395
|
-
if (isSingleFolderWorkspaceIdentifier(arg)) {
|
|
396
|
-
return this.createSingleFolderWorkspace(arg);
|
|
397
|
-
}
|
|
398
|
-
return this.createEmptyWorkspace(arg);
|
|
399
|
-
}
|
|
400
|
-
async createMultiFolderWorkspace(workspaceIdentifier) {
|
|
401
|
-
await this.workspaceConfiguration.initialize({ id: workspaceIdentifier.id, configPath: workspaceIdentifier.configPath }, this.isWorkspaceTrusted);
|
|
402
|
-
const workspaceConfigPath = workspaceIdentifier.configPath;
|
|
403
|
-
const workspaceFolders = toWorkspaceFolders(this.workspaceConfiguration.getFolders(), workspaceConfigPath, this.uriIdentityService.extUri);
|
|
404
|
-
const workspaceId = workspaceIdentifier.id;
|
|
405
|
-
const workspace = ( (new Workspace(
|
|
406
|
-
workspaceId,
|
|
407
|
-
workspaceFolders,
|
|
408
|
-
this.workspaceConfiguration.isTransient(),
|
|
409
|
-
workspaceConfigPath,
|
|
410
|
-
uri => this.uriIdentityService.extUri.ignorePathCasing(uri)
|
|
411
|
-
)));
|
|
412
|
-
workspace.initialized = this.workspaceConfiguration.initialized;
|
|
413
|
-
return workspace;
|
|
414
|
-
}
|
|
415
|
-
createSingleFolderWorkspace(singleFolderWorkspaceIdentifier) {
|
|
416
|
-
const workspace = ( (new Workspace(
|
|
417
|
-
singleFolderWorkspaceIdentifier.id,
|
|
418
|
-
[toWorkspaceFolder(singleFolderWorkspaceIdentifier.uri)],
|
|
419
|
-
false,
|
|
420
|
-
null,
|
|
421
|
-
uri => this.uriIdentityService.extUri.ignorePathCasing(uri)
|
|
422
|
-
)));
|
|
423
|
-
workspace.initialized = true;
|
|
424
|
-
return workspace;
|
|
425
|
-
}
|
|
426
|
-
createEmptyWorkspace(emptyWorkspaceIdentifier) {
|
|
427
|
-
const workspace = ( (new Workspace(
|
|
428
|
-
emptyWorkspaceIdentifier.id,
|
|
429
|
-
[],
|
|
430
|
-
false,
|
|
431
|
-
null,
|
|
432
|
-
uri => this.uriIdentityService.extUri.ignorePathCasing(uri)
|
|
433
|
-
)));
|
|
434
|
-
workspace.initialized = true;
|
|
435
|
-
return Promise.resolve(workspace);
|
|
436
|
-
}
|
|
437
|
-
checkAndMarkWorkspaceComplete(fromCache) {
|
|
438
|
-
if (!this.completeWorkspaceBarrier.isOpen() && this.workspace.initialized) {
|
|
439
|
-
this.completeWorkspaceBarrier.open();
|
|
440
|
-
this.validateWorkspaceFoldersAndReload(fromCache);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
async updateWorkspaceAndInitializeConfiguration(workspace, trigger) {
|
|
444
|
-
const hasWorkspaceBefore = !!this.workspace;
|
|
445
|
-
let previousState;
|
|
446
|
-
let previousWorkspacePath;
|
|
447
|
-
let previousFolders = [];
|
|
448
|
-
if (hasWorkspaceBefore) {
|
|
449
|
-
previousState = this.getWorkbenchState();
|
|
450
|
-
previousWorkspacePath = this.workspace.configuration ? this.workspace.configuration.fsPath : undefined;
|
|
451
|
-
previousFolders = this.workspace.folders;
|
|
452
|
-
this.workspace.update(workspace);
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
this.workspace = workspace;
|
|
456
|
-
}
|
|
457
|
-
await this.initializeConfiguration(trigger);
|
|
458
|
-
if (hasWorkspaceBefore) {
|
|
459
|
-
const newState = this.getWorkbenchState();
|
|
460
|
-
if (previousState && newState !== previousState) {
|
|
461
|
-
this._onDidChangeWorkbenchState.fire(newState);
|
|
462
|
-
}
|
|
463
|
-
const newWorkspacePath = this.workspace.configuration ? this.workspace.configuration.fsPath : undefined;
|
|
464
|
-
if (previousWorkspacePath && newWorkspacePath !== previousWorkspacePath || newState !== previousState) {
|
|
465
|
-
this._onDidChangeWorkspaceName.fire();
|
|
466
|
-
}
|
|
467
|
-
const folderChanges = this.compareFolders(previousFolders, this.workspace.folders);
|
|
468
|
-
if (folderChanges && (folderChanges.added.length || folderChanges.removed.length || folderChanges.changed.length)) {
|
|
469
|
-
await this.handleWillChangeWorkspaceFolders(folderChanges, false);
|
|
470
|
-
this._onDidChangeWorkspaceFolders.fire(folderChanges);
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
if (!this.localUserConfiguration.hasTasksLoaded) {
|
|
474
|
-
this._register(runWhenIdle(() => this.reloadLocalUserConfiguration()));
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
compareFolders(currentFolders, newFolders) {
|
|
478
|
-
const result = { added: [], removed: [], changed: [] };
|
|
479
|
-
result.added = newFolders.filter(newFolder => !( (currentFolders.some(
|
|
480
|
-
currentFolder => ( (newFolder.uri.toString())) === ( (currentFolder.uri.toString()))
|
|
481
|
-
))));
|
|
482
|
-
for (let currentIndex = 0; currentIndex < currentFolders.length; currentIndex++) {
|
|
483
|
-
const currentFolder = currentFolders[currentIndex];
|
|
484
|
-
let newIndex = 0;
|
|
485
|
-
for (newIndex = 0; newIndex < newFolders.length && ( (currentFolder.uri.toString())) !== ( (newFolders[newIndex].uri.toString())); newIndex++) { }
|
|
486
|
-
if (newIndex < newFolders.length) {
|
|
487
|
-
if (currentIndex !== newIndex || currentFolder.name !== newFolders[newIndex].name) {
|
|
488
|
-
result.changed.push(currentFolder);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
else {
|
|
492
|
-
result.removed.push(currentFolder);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
return result;
|
|
496
|
-
}
|
|
497
|
-
async initializeConfiguration(trigger) {
|
|
498
|
-
await this.defaultConfiguration.initialize();
|
|
499
|
-
const initPolicyConfigurationPromise = this.policyConfiguration.initialize();
|
|
500
|
-
const initApplicationConfigurationPromise = this.applicationConfiguration ? this.applicationConfiguration.initialize() : Promise.resolve(( (new ConfigurationModel())));
|
|
501
|
-
const initUserConfiguration = async () => {
|
|
502
|
-
mark('code/willInitUserConfiguration');
|
|
503
|
-
const result = await Promise.all([this.localUserConfiguration.initialize(), this.remoteUserConfiguration ? this.remoteUserConfiguration.initialize() : Promise.resolve(( (new ConfigurationModel())))]);
|
|
504
|
-
if (this.applicationConfiguration) {
|
|
505
|
-
const applicationConfigurationModel = await initApplicationConfigurationPromise;
|
|
506
|
-
result[0] = this.localUserConfiguration.reparse({ exclude: applicationConfigurationModel.getValue(APPLY_ALL_PROFILES_SETTING) });
|
|
507
|
-
}
|
|
508
|
-
mark('code/didInitUserConfiguration');
|
|
509
|
-
return result;
|
|
510
|
-
};
|
|
511
|
-
const [, application, [local, remote]] = await Promise.all([
|
|
512
|
-
initPolicyConfigurationPromise,
|
|
513
|
-
initApplicationConfigurationPromise,
|
|
514
|
-
initUserConfiguration()
|
|
515
|
-
]);
|
|
516
|
-
mark('code/willInitWorkspaceConfiguration');
|
|
517
|
-
await this.loadConfiguration(application, local, remote, trigger);
|
|
518
|
-
mark('code/didInitWorkspaceConfiguration');
|
|
519
|
-
}
|
|
520
|
-
reloadDefaultConfiguration() {
|
|
521
|
-
this.onDefaultConfigurationChanged(this.defaultConfiguration.reload());
|
|
522
|
-
}
|
|
523
|
-
async reloadApplicationConfiguration(donotTrigger) {
|
|
524
|
-
if (!this.applicationConfiguration) {
|
|
525
|
-
return (
|
|
526
|
-
(new ConfigurationModel())
|
|
527
|
-
);
|
|
528
|
-
}
|
|
529
|
-
const model = await this.applicationConfiguration.loadConfiguration();
|
|
530
|
-
if (!donotTrigger) {
|
|
531
|
-
this.onApplicationConfigurationChanged(model);
|
|
532
|
-
}
|
|
533
|
-
return model;
|
|
534
|
-
}
|
|
535
|
-
async reloadUserConfiguration() {
|
|
536
|
-
const [local, remote] = await Promise.all([this.reloadLocalUserConfiguration(true), this.reloadRemoteUserConfiguration(true)]);
|
|
537
|
-
return { local, remote };
|
|
538
|
-
}
|
|
539
|
-
async reloadLocalUserConfiguration(donotTrigger) {
|
|
540
|
-
const model = await this.localUserConfiguration.reload();
|
|
541
|
-
if (!donotTrigger) {
|
|
542
|
-
this.onLocalUserConfigurationChanged(model);
|
|
543
|
-
}
|
|
544
|
-
return model;
|
|
545
|
-
}
|
|
546
|
-
async reloadRemoteUserConfiguration(donotTrigger) {
|
|
547
|
-
if (this.remoteUserConfiguration) {
|
|
548
|
-
const model = await this.remoteUserConfiguration.reload();
|
|
549
|
-
if (!donotTrigger) {
|
|
550
|
-
this.onRemoteUserConfigurationChanged(model);
|
|
551
|
-
}
|
|
552
|
-
return model;
|
|
553
|
-
}
|
|
554
|
-
return (
|
|
555
|
-
(new ConfigurationModel())
|
|
556
|
-
);
|
|
557
|
-
}
|
|
558
|
-
async reloadWorkspaceConfiguration() {
|
|
559
|
-
const workbenchState = this.getWorkbenchState();
|
|
560
|
-
if (workbenchState === 2 ) {
|
|
561
|
-
return this.onWorkspaceFolderConfigurationChanged(this.workspace.folders[0]);
|
|
562
|
-
}
|
|
563
|
-
if (workbenchState === 3 ) {
|
|
564
|
-
return this.workspaceConfiguration.reload().then(() => this.onWorkspaceConfigurationChanged(false));
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
reloadWorkspaceFolderConfiguration(folder) {
|
|
568
|
-
return this.onWorkspaceFolderConfigurationChanged(folder);
|
|
569
|
-
}
|
|
570
|
-
async loadConfiguration(applicationConfigurationModel, userConfigurationModel, remoteUserConfigurationModel, trigger) {
|
|
571
|
-
this.cachedFolderConfigs = ( (new ResourceMap()));
|
|
572
|
-
const folders = this.workspace.folders;
|
|
573
|
-
const folderConfigurations = await this.loadFolderConfigurations(folders);
|
|
574
|
-
const workspaceConfiguration = this.getWorkspaceConfigurationModel(folderConfigurations);
|
|
575
|
-
const folderConfigurationModels = ( (new ResourceMap()));
|
|
576
|
-
folderConfigurations.forEach((folderConfiguration, index) => folderConfigurationModels.set(folders[index].uri, folderConfiguration));
|
|
577
|
-
const currentConfiguration = this._configuration;
|
|
578
|
-
this._configuration = ( (new Configuration(
|
|
579
|
-
this.defaultConfiguration.configurationModel,
|
|
580
|
-
this.policyConfiguration.configurationModel,
|
|
581
|
-
applicationConfigurationModel,
|
|
582
|
-
userConfigurationModel,
|
|
583
|
-
remoteUserConfigurationModel,
|
|
584
|
-
workspaceConfiguration,
|
|
585
|
-
folderConfigurationModels,
|
|
586
|
-
(new ConfigurationModel()),
|
|
587
|
-
(new ResourceMap()),
|
|
588
|
-
this.workspace
|
|
589
|
-
)));
|
|
590
|
-
this.initialized = true;
|
|
591
|
-
if (trigger) {
|
|
592
|
-
const change = this._configuration.compare(currentConfiguration);
|
|
593
|
-
this.triggerConfigurationChange(change, { data: currentConfiguration.toData(), workspace: this.workspace }, 5 );
|
|
594
|
-
}
|
|
595
|
-
this.updateRestrictedSettings();
|
|
596
|
-
}
|
|
597
|
-
getWorkspaceConfigurationModel(folderConfigurations) {
|
|
598
|
-
switch (this.getWorkbenchState()) {
|
|
599
|
-
case 2 :
|
|
600
|
-
return folderConfigurations[0];
|
|
601
|
-
case 3 :
|
|
602
|
-
return this.workspaceConfiguration.getConfiguration();
|
|
603
|
-
default:
|
|
604
|
-
return (
|
|
605
|
-
(new ConfigurationModel())
|
|
606
|
-
);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
onUserDataProfileChanged(e) {
|
|
610
|
-
e.join((async () => {
|
|
611
|
-
const promises = [];
|
|
612
|
-
promises.push(this.localUserConfiguration.reset(e.profile.settingsResource, e.profile.tasksResource, { scopes: getLocalUserConfigurationScopes(e.profile, !!this.remoteUserConfiguration) }));
|
|
613
|
-
if (e.previous.isDefault !== e.profile.isDefault
|
|
614
|
-
|| !!e.previous.useDefaultFlags?.settings !== !!e.profile.useDefaultFlags?.settings) {
|
|
615
|
-
this.createApplicationConfiguration();
|
|
616
|
-
if (this.applicationConfiguration) {
|
|
617
|
-
promises.push(this.reloadApplicationConfiguration(true));
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
let [localUser, application] = await Promise.all(promises);
|
|
621
|
-
application = application ?? this._configuration.applicationConfiguration;
|
|
622
|
-
if (this.applicationConfiguration) {
|
|
623
|
-
localUser = this.localUserConfiguration.reparse({ exclude: application.getValue(APPLY_ALL_PROFILES_SETTING) });
|
|
624
|
-
}
|
|
625
|
-
await this.loadConfiguration(application, localUser, this._configuration.remoteUserConfiguration, true);
|
|
626
|
-
})());
|
|
627
|
-
}
|
|
628
|
-
onDefaultConfigurationChanged(configurationModel, properties) {
|
|
629
|
-
if (this.workspace) {
|
|
630
|
-
const previousData = this._configuration.toData();
|
|
631
|
-
const change = this._configuration.compareAndUpdateDefaultConfiguration(configurationModel, properties);
|
|
632
|
-
if (this.applicationConfiguration) {
|
|
633
|
-
this._configuration.updateApplicationConfiguration(this.applicationConfiguration.reparse());
|
|
634
|
-
}
|
|
635
|
-
if (this.remoteUserConfiguration) {
|
|
636
|
-
this._configuration.updateLocalUserConfiguration(this.localUserConfiguration.reparse());
|
|
637
|
-
this._configuration.updateRemoteUserConfiguration(this.remoteUserConfiguration.reparse());
|
|
638
|
-
}
|
|
639
|
-
if (this.getWorkbenchState() === 2 ) {
|
|
640
|
-
const folderConfiguration = this.cachedFolderConfigs.get(this.workspace.folders[0].uri);
|
|
641
|
-
if (folderConfiguration) {
|
|
642
|
-
this._configuration.updateWorkspaceConfiguration(folderConfiguration.reparse());
|
|
643
|
-
this._configuration.updateFolderConfiguration(this.workspace.folders[0].uri, folderConfiguration.reparse());
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
else {
|
|
647
|
-
this._configuration.updateWorkspaceConfiguration(this.workspaceConfiguration.reparseWorkspaceSettings());
|
|
648
|
-
for (const folder of this.workspace.folders) {
|
|
649
|
-
const folderConfiguration = this.cachedFolderConfigs.get(folder.uri);
|
|
650
|
-
if (folderConfiguration) {
|
|
651
|
-
this._configuration.updateFolderConfiguration(folder.uri, folderConfiguration.reparse());
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
this.triggerConfigurationChange(change, { data: previousData, workspace: this.workspace }, 7 );
|
|
656
|
-
this.updateRestrictedSettings();
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
onPolicyConfigurationChanged(policyConfiguration) {
|
|
660
|
-
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
661
|
-
const change = this._configuration.compareAndUpdatePolicyConfiguration(policyConfiguration);
|
|
662
|
-
this.triggerConfigurationChange(change, previous, 7 );
|
|
663
|
-
}
|
|
664
|
-
onApplicationConfigurationChanged(applicationConfiguration) {
|
|
665
|
-
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
666
|
-
const previousAllProfilesSettings = this._configuration.applicationConfiguration.getValue(APPLY_ALL_PROFILES_SETTING) ?? [];
|
|
667
|
-
const change = this._configuration.compareAndUpdateApplicationConfiguration(applicationConfiguration);
|
|
668
|
-
const currentAllProfilesSettings = this.getValue(APPLY_ALL_PROFILES_SETTING) ?? [];
|
|
669
|
-
const configurationProperties = this.configurationRegistry.getConfigurationProperties();
|
|
670
|
-
const changedKeys = [];
|
|
671
|
-
for (const changedKey of change.keys) {
|
|
672
|
-
if (configurationProperties[changedKey]?.scope === 1 ) {
|
|
673
|
-
changedKeys.push(changedKey);
|
|
674
|
-
if (changedKey === APPLY_ALL_PROFILES_SETTING) {
|
|
675
|
-
for (const previousAllProfileSetting of previousAllProfilesSettings) {
|
|
676
|
-
if (!currentAllProfilesSettings.includes(previousAllProfileSetting)) {
|
|
677
|
-
changedKeys.push(previousAllProfileSetting);
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
for (const currentAllProfileSetting of currentAllProfilesSettings) {
|
|
681
|
-
if (!previousAllProfilesSettings.includes(currentAllProfileSetting)) {
|
|
682
|
-
changedKeys.push(currentAllProfileSetting);
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
else if (currentAllProfilesSettings.includes(changedKey)) {
|
|
688
|
-
changedKeys.push(changedKey);
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
change.keys = changedKeys;
|
|
692
|
-
if (change.keys.includes(APPLY_ALL_PROFILES_SETTING)) {
|
|
693
|
-
this._configuration.updateLocalUserConfiguration(this.localUserConfiguration.reparse({ exclude: currentAllProfilesSettings }));
|
|
694
|
-
}
|
|
695
|
-
this.triggerConfigurationChange(change, previous, 2 );
|
|
696
|
-
}
|
|
697
|
-
onLocalUserConfigurationChanged(userConfiguration) {
|
|
698
|
-
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
699
|
-
const change = this._configuration.compareAndUpdateLocalUserConfiguration(userConfiguration);
|
|
700
|
-
this.triggerConfigurationChange(change, previous, 2 );
|
|
701
|
-
}
|
|
702
|
-
onRemoteUserConfigurationChanged(userConfiguration) {
|
|
703
|
-
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
704
|
-
const change = this._configuration.compareAndUpdateRemoteUserConfiguration(userConfiguration);
|
|
705
|
-
this.triggerConfigurationChange(change, previous, 2 );
|
|
706
|
-
}
|
|
707
|
-
async onWorkspaceConfigurationChanged(fromCache) {
|
|
708
|
-
if (this.workspace && this.workspace.configuration) {
|
|
709
|
-
let newFolders = toWorkspaceFolders(this.workspaceConfiguration.getFolders(), this.workspace.configuration, this.uriIdentityService.extUri);
|
|
710
|
-
if (this.workspace.initialized) {
|
|
711
|
-
const { added, removed, changed } = this.compareFolders(this.workspace.folders, newFolders);
|
|
712
|
-
if (added.length || removed.length || changed.length) {
|
|
713
|
-
newFolders = await this.toValidWorkspaceFolders(newFolders);
|
|
714
|
-
}
|
|
715
|
-
else {
|
|
716
|
-
newFolders = this.workspace.folders;
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
await this.updateWorkspaceConfiguration(newFolders, this.workspaceConfiguration.getConfiguration(), fromCache);
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
updateRestrictedSettings() {
|
|
723
|
-
const changed = [];
|
|
724
|
-
const allProperties = this.configurationRegistry.getConfigurationProperties();
|
|
725
|
-
const defaultRestrictedSettings = ( (Object.keys(allProperties))).filter(key => allProperties[key].restricted).sort((a, b) => a.localeCompare(b));
|
|
726
|
-
const defaultDelta = delta(defaultRestrictedSettings, this._restrictedSettings.default, (a, b) => a.localeCompare(b));
|
|
727
|
-
changed.push(...defaultDelta.added, ...defaultDelta.removed);
|
|
728
|
-
const application = (this.applicationConfiguration?.getRestrictedSettings() || []).sort((a, b) => a.localeCompare(b));
|
|
729
|
-
const applicationDelta = delta(application, this._restrictedSettings.application || [], (a, b) => a.localeCompare(b));
|
|
730
|
-
changed.push(...applicationDelta.added, ...applicationDelta.removed);
|
|
731
|
-
const userLocal = this.localUserConfiguration.getRestrictedSettings().sort((a, b) => a.localeCompare(b));
|
|
732
|
-
const userLocalDelta = delta(userLocal, this._restrictedSettings.userLocal || [], (a, b) => a.localeCompare(b));
|
|
733
|
-
changed.push(...userLocalDelta.added, ...userLocalDelta.removed);
|
|
734
|
-
const userRemote = (this.remoteUserConfiguration?.getRestrictedSettings() || []).sort((a, b) => a.localeCompare(b));
|
|
735
|
-
const userRemoteDelta = delta(userRemote, this._restrictedSettings.userRemote || [], (a, b) => a.localeCompare(b));
|
|
736
|
-
changed.push(...userRemoteDelta.added, ...userRemoteDelta.removed);
|
|
737
|
-
const workspaceFolderMap = ( (new ResourceMap()));
|
|
738
|
-
for (const workspaceFolder of this.workspace.folders) {
|
|
739
|
-
const cachedFolderConfig = this.cachedFolderConfigs.get(workspaceFolder.uri);
|
|
740
|
-
const folderRestrictedSettings = (cachedFolderConfig?.getRestrictedSettings() || []).sort((a, b) => a.localeCompare(b));
|
|
741
|
-
if (folderRestrictedSettings.length) {
|
|
742
|
-
workspaceFolderMap.set(workspaceFolder.uri, folderRestrictedSettings);
|
|
743
|
-
}
|
|
744
|
-
const previous = this._restrictedSettings.workspaceFolder?.get(workspaceFolder.uri) || [];
|
|
745
|
-
const workspaceFolderDelta = delta(folderRestrictedSettings, previous, (a, b) => a.localeCompare(b));
|
|
746
|
-
changed.push(...workspaceFolderDelta.added, ...workspaceFolderDelta.removed);
|
|
747
|
-
}
|
|
748
|
-
const workspace = this.getWorkbenchState() === 3 ? this.workspaceConfiguration.getRestrictedSettings().sort((a, b) => a.localeCompare(b))
|
|
749
|
-
: this.workspace.folders[0] ? (workspaceFolderMap.get(this.workspace.folders[0].uri) || []) : [];
|
|
750
|
-
const workspaceDelta = delta(workspace, this._restrictedSettings.workspace || [], (a, b) => a.localeCompare(b));
|
|
751
|
-
changed.push(...workspaceDelta.added, ...workspaceDelta.removed);
|
|
752
|
-
if (changed.length) {
|
|
753
|
-
this._restrictedSettings = {
|
|
754
|
-
default: defaultRestrictedSettings,
|
|
755
|
-
application: application.length ? application : undefined,
|
|
756
|
-
userLocal: userLocal.length ? userLocal : undefined,
|
|
757
|
-
userRemote: userRemote.length ? userRemote : undefined,
|
|
758
|
-
workspace: workspace.length ? workspace : undefined,
|
|
759
|
-
workspaceFolder: workspaceFolderMap.size ? workspaceFolderMap : undefined,
|
|
760
|
-
};
|
|
761
|
-
this._onDidChangeRestrictedSettings.fire(this.restrictedSettings);
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
async updateWorkspaceConfiguration(workspaceFolders, configuration, fromCache) {
|
|
765
|
-
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
766
|
-
const change = this._configuration.compareAndUpdateWorkspaceConfiguration(configuration);
|
|
767
|
-
const changes = this.compareFolders(this.workspace.folders, workspaceFolders);
|
|
768
|
-
if (changes.added.length || changes.removed.length || changes.changed.length) {
|
|
769
|
-
this.workspace.folders = workspaceFolders;
|
|
770
|
-
const change = await this.onFoldersChanged();
|
|
771
|
-
await this.handleWillChangeWorkspaceFolders(changes, fromCache);
|
|
772
|
-
this.triggerConfigurationChange(change, previous, 6 );
|
|
773
|
-
this._onDidChangeWorkspaceFolders.fire(changes);
|
|
774
|
-
}
|
|
775
|
-
else {
|
|
776
|
-
this.triggerConfigurationChange(change, previous, 5 );
|
|
777
|
-
}
|
|
778
|
-
this.updateRestrictedSettings();
|
|
779
|
-
}
|
|
780
|
-
async handleWillChangeWorkspaceFolders(changes, fromCache) {
|
|
781
|
-
const joiners = [];
|
|
782
|
-
this._onWillChangeWorkspaceFolders.fire({
|
|
783
|
-
join(updateWorkspaceTrustStatePromise) {
|
|
784
|
-
joiners.push(updateWorkspaceTrustStatePromise);
|
|
785
|
-
},
|
|
786
|
-
changes,
|
|
787
|
-
fromCache
|
|
788
|
-
});
|
|
789
|
-
try {
|
|
790
|
-
await Promises.settled(joiners);
|
|
791
|
-
}
|
|
792
|
-
catch (error) { }
|
|
793
|
-
}
|
|
794
|
-
async onWorkspaceFolderConfigurationChanged(folder) {
|
|
795
|
-
const [folderConfiguration] = await this.loadFolderConfigurations([folder]);
|
|
796
|
-
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
797
|
-
const folderConfigurationChange = this._configuration.compareAndUpdateFolderConfiguration(folder.uri, folderConfiguration);
|
|
798
|
-
if (this.getWorkbenchState() === 2 ) {
|
|
799
|
-
const workspaceConfigurationChange = this._configuration.compareAndUpdateWorkspaceConfiguration(folderConfiguration);
|
|
800
|
-
this.triggerConfigurationChange(mergeChanges(folderConfigurationChange, workspaceConfigurationChange), previous, 5 );
|
|
801
|
-
}
|
|
802
|
-
else {
|
|
803
|
-
this.triggerConfigurationChange(folderConfigurationChange, previous, 6 );
|
|
804
|
-
}
|
|
805
|
-
this.updateRestrictedSettings();
|
|
806
|
-
}
|
|
807
|
-
async onFoldersChanged() {
|
|
808
|
-
const changes = [];
|
|
809
|
-
for (const key of ( (this.cachedFolderConfigs.keys()))) {
|
|
810
|
-
if (!this.workspace.folders.filter(folder => ( (folder.uri.toString())) === ( (key.toString())))[0]) {
|
|
811
|
-
const folderConfiguration = this.cachedFolderConfigs.get(key);
|
|
812
|
-
folderConfiguration.dispose();
|
|
813
|
-
this.cachedFolderConfigs.delete(key);
|
|
814
|
-
changes.push(this._configuration.compareAndDeleteFolderConfiguration(key));
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
const toInitialize = this.workspace.folders.filter(folder => !( (this.cachedFolderConfigs.has(folder.uri))));
|
|
818
|
-
if (toInitialize.length) {
|
|
819
|
-
const folderConfigurations = await this.loadFolderConfigurations(toInitialize);
|
|
820
|
-
folderConfigurations.forEach((folderConfiguration, index) => {
|
|
821
|
-
changes.push(this._configuration.compareAndUpdateFolderConfiguration(toInitialize[index].uri, folderConfiguration));
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
return mergeChanges(...changes);
|
|
825
|
-
}
|
|
826
|
-
loadFolderConfigurations(folders) {
|
|
827
|
-
return Promise.all([...( (folders.map(folder => {
|
|
828
|
-
let folderConfiguration = this.cachedFolderConfigs.get(folder.uri);
|
|
829
|
-
if (!folderConfiguration) {
|
|
830
|
-
folderConfiguration = ( (new FolderConfiguration(
|
|
831
|
-
!this.initialized,
|
|
832
|
-
folder,
|
|
833
|
-
FOLDER_CONFIG_FOLDER_NAME,
|
|
834
|
-
this.getWorkbenchState(),
|
|
835
|
-
this.isWorkspaceTrusted,
|
|
836
|
-
this.fileService,
|
|
837
|
-
this.uriIdentityService,
|
|
838
|
-
this.logService,
|
|
839
|
-
this.configurationCache
|
|
840
|
-
)));
|
|
841
|
-
this._register(folderConfiguration.onDidChange(() => this.onWorkspaceFolderConfigurationChanged(folder)));
|
|
842
|
-
this.cachedFolderConfigs.set(folder.uri, this._register(folderConfiguration));
|
|
843
|
-
}
|
|
844
|
-
return folderConfiguration.loadConfiguration();
|
|
845
|
-
})))]);
|
|
846
|
-
}
|
|
847
|
-
async validateWorkspaceFoldersAndReload(fromCache) {
|
|
848
|
-
const validWorkspaceFolders = await this.toValidWorkspaceFolders(this.workspace.folders);
|
|
849
|
-
const { removed } = this.compareFolders(this.workspace.folders, validWorkspaceFolders);
|
|
850
|
-
if (removed.length) {
|
|
851
|
-
await this.updateWorkspaceConfiguration(validWorkspaceFolders, this.workspaceConfiguration.getConfiguration(), fromCache);
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
async toValidWorkspaceFolders(workspaceFolders) {
|
|
855
|
-
const validWorkspaceFolders = [];
|
|
856
|
-
for (const workspaceFolder of workspaceFolders) {
|
|
857
|
-
try {
|
|
858
|
-
const result = await this.fileService.stat(workspaceFolder.uri);
|
|
859
|
-
if (!result.isDirectory) {
|
|
860
|
-
continue;
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
catch (e) {
|
|
864
|
-
this.logService.warn(`Ignoring the error while validating workspace folder ${( ( workspaceFolder.uri.toString()))} - ${toErrorMessage(e)}`);
|
|
865
|
-
}
|
|
866
|
-
validWorkspaceFolders.push(workspaceFolder);
|
|
867
|
-
}
|
|
868
|
-
return validWorkspaceFolders;
|
|
869
|
-
}
|
|
870
|
-
async writeConfigurationValue(key, value, target, overrides, options) {
|
|
871
|
-
if (!this.instantiationService) {
|
|
872
|
-
throw new Error('Cannot write configuration because the configuration service is not yet ready to accept writes.');
|
|
873
|
-
}
|
|
874
|
-
if (target === 7 ) {
|
|
875
|
-
throw new Error('Invalid configuration target');
|
|
876
|
-
}
|
|
877
|
-
if (target === 8 ) {
|
|
878
|
-
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
879
|
-
this._configuration.updateValue(key, value, overrides);
|
|
880
|
-
this.triggerConfigurationChange({ keys: overrides?.overrideIdentifiers?.length ? [keyFromOverrideIdentifiers(overrides.overrideIdentifiers), key] : [key], overrides: overrides?.overrideIdentifiers?.length ? ( (overrides.overrideIdentifiers.map(overrideIdentifier => ([overrideIdentifier, [key]])))) : [] }, previous, target);
|
|
881
|
-
return;
|
|
882
|
-
}
|
|
883
|
-
const editableConfigurationTarget = this.toEditableConfigurationTarget(target, key);
|
|
884
|
-
if (!editableConfigurationTarget) {
|
|
885
|
-
throw new Error('Invalid configuration target');
|
|
886
|
-
}
|
|
887
|
-
if (editableConfigurationTarget === 2 && !this.remoteUserConfiguration) {
|
|
888
|
-
throw new Error('Invalid configuration target');
|
|
889
|
-
}
|
|
890
|
-
this.configurationEditing = this.configurationEditing ?? this.instantiationService.createInstance(ConfigurationEditing, (await this.remoteAgentService.getEnvironment())?.settingsPath ?? null);
|
|
891
|
-
await this.configurationEditing.writeConfiguration(editableConfigurationTarget, { key, value }, { scopes: overrides, ...options });
|
|
892
|
-
switch (editableConfigurationTarget) {
|
|
893
|
-
case 1 :
|
|
894
|
-
if (this.applicationConfiguration && this.isSettingAppliedForAllProfiles(key)) {
|
|
895
|
-
await this.reloadApplicationConfiguration();
|
|
896
|
-
}
|
|
897
|
-
else {
|
|
898
|
-
await this.reloadLocalUserConfiguration();
|
|
899
|
-
}
|
|
900
|
-
return;
|
|
901
|
-
case 2 :
|
|
902
|
-
return this.reloadRemoteUserConfiguration().then(() => undefined);
|
|
903
|
-
case 3 :
|
|
904
|
-
return this.reloadWorkspaceConfiguration();
|
|
905
|
-
case 4 : {
|
|
906
|
-
const workspaceFolder = overrides && overrides.resource ? this.workspace.getFolder(overrides.resource) : null;
|
|
907
|
-
if (workspaceFolder) {
|
|
908
|
-
return this.reloadWorkspaceFolderConfiguration(workspaceFolder);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
deriveConfigurationTargets(key, value, inspect) {
|
|
914
|
-
if (equals(value, inspect.value)) {
|
|
915
|
-
return [];
|
|
916
|
-
}
|
|
917
|
-
const definedTargets = [];
|
|
918
|
-
if (inspect.workspaceFolderValue !== undefined) {
|
|
919
|
-
definedTargets.push(6 );
|
|
920
|
-
}
|
|
921
|
-
if (inspect.workspaceValue !== undefined) {
|
|
922
|
-
definedTargets.push(5 );
|
|
923
|
-
}
|
|
924
|
-
if (inspect.userRemoteValue !== undefined) {
|
|
925
|
-
definedTargets.push(4 );
|
|
926
|
-
}
|
|
927
|
-
if (inspect.userLocalValue !== undefined) {
|
|
928
|
-
definedTargets.push(3 );
|
|
929
|
-
}
|
|
930
|
-
if (value === undefined) {
|
|
931
|
-
return definedTargets;
|
|
932
|
-
}
|
|
933
|
-
return [definedTargets[0] || 2 ];
|
|
934
|
-
}
|
|
935
|
-
triggerConfigurationChange(change, previous, target) {
|
|
936
|
-
if (change.keys.length) {
|
|
937
|
-
if (target !== 7 ) {
|
|
938
|
-
this.logService.debug(`Configuration keys changed in ${ConfigurationTargetToString(target)} target`, ...change.keys);
|
|
939
|
-
}
|
|
940
|
-
const configurationChangeEvent = ( (new ConfigurationChangeEvent(change, previous, this._configuration, this.workspace)));
|
|
941
|
-
configurationChangeEvent.source = target;
|
|
942
|
-
configurationChangeEvent.sourceConfig = this.getTargetConfiguration(target);
|
|
943
|
-
this._onDidChangeConfiguration.fire(configurationChangeEvent);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
getTargetConfiguration(target) {
|
|
947
|
-
switch (target) {
|
|
948
|
-
case 7 :
|
|
949
|
-
return this._configuration.defaults.contents;
|
|
950
|
-
case 2 :
|
|
951
|
-
return this._configuration.userConfiguration.contents;
|
|
952
|
-
case 5 :
|
|
953
|
-
return this._configuration.workspaceConfiguration.contents;
|
|
954
|
-
}
|
|
955
|
-
return {};
|
|
956
|
-
}
|
|
957
|
-
toEditableConfigurationTarget(target, key) {
|
|
958
|
-
if (target === 2 ) {
|
|
959
|
-
if (this.remoteUserConfiguration) {
|
|
960
|
-
const scope = this.configurationRegistry.getConfigurationProperties()[key]?.scope;
|
|
961
|
-
if (scope === 2 || scope === 6 ) {
|
|
962
|
-
return 2 ;
|
|
963
|
-
}
|
|
964
|
-
if (this.inspect(key).userRemoteValue !== undefined) {
|
|
965
|
-
return 2 ;
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
return 1 ;
|
|
969
|
-
}
|
|
970
|
-
if (target === 3 ) {
|
|
971
|
-
return 1 ;
|
|
972
|
-
}
|
|
973
|
-
if (target === 4 ) {
|
|
974
|
-
return 2 ;
|
|
975
|
-
}
|
|
976
|
-
if (target === 5 ) {
|
|
977
|
-
return 3 ;
|
|
978
|
-
}
|
|
979
|
-
if (target === 6 ) {
|
|
980
|
-
return 4 ;
|
|
981
|
-
}
|
|
982
|
-
return null;
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
let RegisterConfigurationSchemasContribution = class RegisterConfigurationSchemasContribution extends Disposable {
|
|
986
|
-
constructor(workspaceContextService, environmentService, workspaceTrustManagementService, extensionService, lifecycleService) {
|
|
987
|
-
super();
|
|
988
|
-
this.workspaceContextService = workspaceContextService;
|
|
989
|
-
this.environmentService = environmentService;
|
|
990
|
-
this.workspaceTrustManagementService = workspaceTrustManagementService;
|
|
991
|
-
extensionService.whenInstalledExtensionsRegistered().then(() => {
|
|
992
|
-
this.registerConfigurationSchemas();
|
|
993
|
-
const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
994
|
-
const delayer = this._register(( (new Delayer(50))));
|
|
995
|
-
this._register(Event.any(configurationRegistry.onDidUpdateConfiguration, configurationRegistry.onDidSchemaChange, workspaceTrustManagementService.onDidChangeTrust)(() => delayer.trigger(() => this.registerConfigurationSchemas(), lifecycleService.phase === 4 ? undefined : 2500 )));
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
registerConfigurationSchemas() {
|
|
999
|
-
const allSettingsSchema = {
|
|
1000
|
-
properties: allSettings.properties,
|
|
1001
|
-
patternProperties: allSettings.patternProperties,
|
|
1002
|
-
additionalProperties: true,
|
|
1003
|
-
allowTrailingCommas: true,
|
|
1004
|
-
allowComments: true
|
|
1005
|
-
};
|
|
1006
|
-
const userSettingsSchema = this.environmentService.remoteAuthority ?
|
|
1007
|
-
{
|
|
1008
|
-
properties: Object.assign({}, applicationSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1009
|
-
patternProperties: allSettings.patternProperties,
|
|
1010
|
-
additionalProperties: true,
|
|
1011
|
-
allowTrailingCommas: true,
|
|
1012
|
-
allowComments: true
|
|
1013
|
-
}
|
|
1014
|
-
: allSettingsSchema;
|
|
1015
|
-
const profileSettingsSchema = {
|
|
1016
|
-
properties: Object.assign({}, machineSettings.properties, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1017
|
-
patternProperties: allSettings.patternProperties,
|
|
1018
|
-
additionalProperties: true,
|
|
1019
|
-
allowTrailingCommas: true,
|
|
1020
|
-
allowComments: true
|
|
1021
|
-
};
|
|
1022
|
-
const machineSettingsSchema = {
|
|
1023
|
-
properties: Object.assign({}, machineSettings.properties, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1024
|
-
patternProperties: allSettings.patternProperties,
|
|
1025
|
-
additionalProperties: true,
|
|
1026
|
-
allowTrailingCommas: true,
|
|
1027
|
-
allowComments: true
|
|
1028
|
-
};
|
|
1029
|
-
const workspaceSettingsSchema = {
|
|
1030
|
-
properties: Object.assign({}, this.checkAndFilterPropertiesRequiringTrust(machineOverridableSettings.properties), this.checkAndFilterPropertiesRequiringTrust(windowSettings.properties), this.checkAndFilterPropertiesRequiringTrust(resourceSettings.properties)),
|
|
1031
|
-
patternProperties: allSettings.patternProperties,
|
|
1032
|
-
additionalProperties: true,
|
|
1033
|
-
allowTrailingCommas: true,
|
|
1034
|
-
allowComments: true
|
|
1035
|
-
};
|
|
1036
|
-
const defaultSettingsSchema = {
|
|
1037
|
-
properties: ( (Object.keys(allSettings.properties))).reduce((result, key) => {
|
|
1038
|
-
result[key] = Object.assign({ deprecationMessage: undefined }, allSettings.properties[key]);
|
|
1039
|
-
return result;
|
|
1040
|
-
}, {}),
|
|
1041
|
-
patternProperties: ( (Object.keys(allSettings.patternProperties))).reduce((result, key) => {
|
|
1042
|
-
result[key] = Object.assign({ deprecationMessage: undefined }, allSettings.patternProperties[key]);
|
|
1043
|
-
return result;
|
|
1044
|
-
}, {}),
|
|
1045
|
-
additionalProperties: true,
|
|
1046
|
-
allowTrailingCommas: true,
|
|
1047
|
-
allowComments: true
|
|
1048
|
-
};
|
|
1049
|
-
const folderSettingsSchema = 3 === this.workspaceContextService.getWorkbenchState() ?
|
|
1050
|
-
{
|
|
1051
|
-
properties: Object.assign({}, this.checkAndFilterPropertiesRequiringTrust(machineOverridableSettings.properties), this.checkAndFilterPropertiesRequiringTrust(resourceSettings.properties)),
|
|
1052
|
-
patternProperties: allSettings.patternProperties,
|
|
1053
|
-
additionalProperties: true,
|
|
1054
|
-
allowTrailingCommas: true,
|
|
1055
|
-
allowComments: true
|
|
1056
|
-
} : workspaceSettingsSchema;
|
|
1057
|
-
const configDefaultsSchema = {
|
|
1058
|
-
type: 'object',
|
|
1059
|
-
description: ( (localize(
|
|
1060
|
-
'configurationDefaults.description',
|
|
1061
|
-
'Contribute defaults for configurations'
|
|
1062
|
-
))),
|
|
1063
|
-
properties: Object.assign({}, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1064
|
-
patternProperties: {
|
|
1065
|
-
[OVERRIDE_PROPERTY_PATTERN]: {
|
|
1066
|
-
type: 'object',
|
|
1067
|
-
default: {},
|
|
1068
|
-
$ref: resourceLanguageSettingsSchemaId,
|
|
1069
|
-
}
|
|
1070
|
-
},
|
|
1071
|
-
additionalProperties: false
|
|
1072
|
-
};
|
|
1073
|
-
this.registerSchemas({
|
|
1074
|
-
defaultSettingsSchema,
|
|
1075
|
-
userSettingsSchema,
|
|
1076
|
-
profileSettingsSchema,
|
|
1077
|
-
machineSettingsSchema,
|
|
1078
|
-
workspaceSettingsSchema,
|
|
1079
|
-
folderSettingsSchema,
|
|
1080
|
-
configDefaultsSchema,
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
registerSchemas(schemas) {
|
|
1084
|
-
const jsonRegistry = ( (Registry.as(Extensions$2.JSONContribution)));
|
|
1085
|
-
jsonRegistry.registerSchema(defaultSettingsSchemaId, schemas.defaultSettingsSchema);
|
|
1086
|
-
jsonRegistry.registerSchema(userSettingsSchemaId, schemas.userSettingsSchema);
|
|
1087
|
-
jsonRegistry.registerSchema(profileSettingsSchemaId, schemas.profileSettingsSchema);
|
|
1088
|
-
jsonRegistry.registerSchema(machineSettingsSchemaId, schemas.machineSettingsSchema);
|
|
1089
|
-
jsonRegistry.registerSchema(workspaceSettingsSchemaId, schemas.workspaceSettingsSchema);
|
|
1090
|
-
jsonRegistry.registerSchema(folderSettingsSchemaId, schemas.folderSettingsSchema);
|
|
1091
|
-
jsonRegistry.registerSchema(configurationDefaultsSchemaId, schemas.configDefaultsSchema);
|
|
1092
|
-
}
|
|
1093
|
-
checkAndFilterPropertiesRequiringTrust(properties) {
|
|
1094
|
-
if (this.workspaceTrustManagementService.isWorkspaceTrusted()) {
|
|
1095
|
-
return properties;
|
|
1096
|
-
}
|
|
1097
|
-
const result = {};
|
|
1098
|
-
Object.entries(properties).forEach(([key, value]) => {
|
|
1099
|
-
if (!value.restricted) {
|
|
1100
|
-
result[key] = value;
|
|
1101
|
-
}
|
|
1102
|
-
});
|
|
1103
|
-
return result;
|
|
1104
|
-
}
|
|
1105
|
-
};
|
|
1106
|
-
RegisterConfigurationSchemasContribution = ( (__decorate([
|
|
1107
|
-
( (__param(0, IWorkspaceContextService))),
|
|
1108
|
-
( (__param(1, IWorkbenchEnvironmentService))),
|
|
1109
|
-
( (__param(2, IWorkspaceTrustManagementService))),
|
|
1110
|
-
( (__param(3, IExtensionService))),
|
|
1111
|
-
( (__param(4, ILifecycleService)))
|
|
1112
|
-
], RegisterConfigurationSchemasContribution)));
|
|
1113
|
-
let UpdateExperimentalSettingsDefaults = class UpdateExperimentalSettingsDefaults extends Disposable {
|
|
1114
|
-
constructor(workbenchAssignmentService) {
|
|
1115
|
-
super();
|
|
1116
|
-
this.workbenchAssignmentService = workbenchAssignmentService;
|
|
1117
|
-
this.processedExperimentalSettings = ( (new Set()));
|
|
1118
|
-
this.configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
1119
|
-
this.processExperimentalSettings(( (Object.keys(this.configurationRegistry.getConfigurationProperties()))));
|
|
1120
|
-
this._register(this.configurationRegistry.onDidUpdateConfiguration(({ properties }) => this.processExperimentalSettings(properties)));
|
|
1121
|
-
}
|
|
1122
|
-
async processExperimentalSettings(properties) {
|
|
1123
|
-
const overrides = {};
|
|
1124
|
-
const allProperties = this.configurationRegistry.getConfigurationProperties();
|
|
1125
|
-
for (const property of properties) {
|
|
1126
|
-
const schema = allProperties[property];
|
|
1127
|
-
if (!schema?.tags?.includes('experimental')) {
|
|
1128
|
-
continue;
|
|
1129
|
-
}
|
|
1130
|
-
if (( (this.processedExperimentalSettings.has(property)))) {
|
|
1131
|
-
continue;
|
|
1132
|
-
}
|
|
1133
|
-
this.processedExperimentalSettings.add(property);
|
|
1134
|
-
try {
|
|
1135
|
-
const value = await this.workbenchAssignmentService.getTreatment(`config.${property}`);
|
|
1136
|
-
if (!isUndefined(value) && !equals(value, schema.default)) {
|
|
1137
|
-
overrides[property] = value;
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
catch (error) { }
|
|
1141
|
-
}
|
|
1142
|
-
if (( (Object.keys(overrides))).length) {
|
|
1143
|
-
this.configurationRegistry.registerDefaultConfigurations([{ overrides, source: ( (localize('experimental', "Experiments"))) }]);
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
|
-
UpdateExperimentalSettingsDefaults = ( (__decorate([
|
|
1148
|
-
( (__param(0, IWorkbenchAssignmentService)))
|
|
1149
|
-
], UpdateExperimentalSettingsDefaults)));
|
|
1150
|
-
const workbenchContributionsRegistry = ( (Registry.as(Extensions$1.Workbench)));
|
|
1151
|
-
workbenchContributionsRegistry.registerWorkbenchContribution(RegisterConfigurationSchemasContribution, 3 );
|
|
1152
|
-
workbenchContributionsRegistry.registerWorkbenchContribution(UpdateExperimentalSettingsDefaults, 3 );
|
|
1153
|
-
const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
|
|
1154
|
-
configurationRegistry.registerConfiguration({
|
|
1155
|
-
...workbenchConfigurationNodeBase,
|
|
1156
|
-
properties: {
|
|
1157
|
-
[APPLY_ALL_PROFILES_SETTING]: {
|
|
1158
|
-
'type': 'array',
|
|
1159
|
-
description: ( (localize(
|
|
1160
|
-
'setting description',
|
|
1161
|
-
"Configure settings to be applied for all profiles."
|
|
1162
|
-
))),
|
|
1163
|
-
'default': [],
|
|
1164
|
-
'scope': 1 ,
|
|
1165
|
-
additionalProperties: true,
|
|
1166
|
-
uniqueItems: true,
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
export { WorkspaceService };
|