@codingame/monaco-vscode-api 1.78.4 → 1.78.5
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/README.md +28 -9
- package/dist/api.js +192 -2
- package/dist/assets/breakpointWidget.css +31 -0
- package/dist/assets/callStackEditorContribution.css +12 -0
- package/dist/assets/debug.contribution.css +138 -0
- package/dist/assets/debugHover.css +80 -0
- package/dist/assets/debugToolBar.css +49 -0
- package/dist/assets/editorquickaccess.css +8 -0
- package/dist/assets/editorstatus.css +51 -0
- package/dist/assets/exceptionWidget.css +52 -0
- package/dist/assets/notificationsActions.css +14 -0
- package/dist/assets/notificationsCenter.css +69 -0
- package/dist/assets/notificationsList.css +152 -0
- package/dist/assets/notificationsToasts.css +63 -0
- package/dist/assets/panelpart.css +75 -0
- package/dist/assets/paneview.css +148 -0
- package/dist/assets/paneviewlet.css +79 -0
- package/dist/assets/sidebysideeditor.css +9 -0
- package/dist/assets.js +15 -0
- package/dist/default-extensions/bat.js +6 -6
- package/dist/default-extensions/clojure.js +5 -5
- package/dist/default-extensions/coffeescript.js +6 -6
- package/dist/default-extensions/cpp.js +11 -11
- package/dist/default-extensions/csharp.js +6 -6
- package/dist/default-extensions/css.js +5 -5
- package/dist/default-extensions/dart.js +5 -5
- package/dist/default-extensions/diff.js +5 -5
- package/dist/default-extensions/docker.js +5 -5
- package/dist/default-extensions/fsharp.js +6 -6
- package/dist/default-extensions/go.js +5 -5
- package/dist/default-extensions/groovy.js +6 -6
- package/dist/default-extensions/handlebars.js +5 -5
- package/dist/default-extensions/hlsl.js +5 -5
- package/dist/default-extensions/html.js +7 -7
- package/dist/default-extensions/ini.js +6 -6
- package/dist/default-extensions/java.js +6 -6
- package/dist/default-extensions/javascript.js +9 -9
- package/dist/default-extensions/json.js +6 -6
- package/dist/default-extensions/julia.js +5 -5
- package/dist/default-extensions/latex.js +11 -11
- package/dist/default-extensions/less.js +5 -5
- package/dist/default-extensions/log.js +4 -4
- package/dist/default-extensions/lua.js +5 -5
- package/dist/default-extensions/make.js +5 -5
- package/dist/default-extensions/markdown-basics.js +6 -6
- package/dist/default-extensions/objective-c.js +6 -6
- package/dist/default-extensions/perl.js +7 -7
- package/dist/default-extensions/php.js +7 -7
- package/dist/default-extensions/powershell.js +5 -5
- package/dist/default-extensions/pug.js +5 -5
- package/dist/default-extensions/python.js +6 -6
- package/dist/default-extensions/r.js +5 -5
- package/dist/default-extensions/razor.js +5 -5
- package/dist/default-extensions/ruby.js +5 -5
- package/dist/default-extensions/rust.js +5 -5
- package/dist/default-extensions/scss.js +6 -6
- package/dist/default-extensions/shaderlab.js +5 -5
- package/dist/default-extensions/shellscript.js +5 -5
- package/dist/default-extensions/sql.js +5 -5
- package/dist/default-extensions/swift.js +6 -6
- package/dist/default-extensions/theme-abyss.js +4 -4
- package/dist/default-extensions/theme-defaults.js +12 -12
- package/dist/default-extensions/theme-kimbie-dark.js +4 -4
- package/dist/default-extensions/theme-monokai-dimmed.js +4 -4
- package/dist/default-extensions/theme-monokai.js +4 -4
- package/dist/default-extensions/theme-quietlight.js +4 -4
- package/dist/default-extensions/theme-red.js +4 -4
- package/dist/default-extensions/theme-seti.js +4 -4
- package/dist/default-extensions/theme-solarized-dark.js +4 -4
- package/dist/default-extensions/theme-solarized-light.js +4 -4
- package/dist/default-extensions/theme-tomorrow-night-blue.js +4 -4
- package/dist/default-extensions/typescript-basics.js +9 -9
- package/dist/default-extensions/typescript-language-features.js +3 -3
- package/dist/default-extensions/vb.js +6 -6
- package/dist/default-extensions/xml.js +7 -7
- package/dist/default-extensions/yaml.js +5 -5
- package/dist/{extension-tools-b2d018a3.js → extension-tools-b68a64de.js} +2 -15
- package/dist/extensions.js +150 -4
- package/dist/json.js +92 -0
- package/dist/monaco-treemending.js +882 -0
- package/dist/monaco.js +24 -458
- package/dist/node_modules/tslib/tslib.es6.js +21 -0
- package/dist/override/vs/workbench/browser/parts/editor/textEditor.js +2 -0
- package/dist/rollup-extension-directory-plugin.js +1 -1
- package/dist/rollup-vsix-plugin.js +1 -1
- package/dist/service-override/_46__46__47__46__46__47_vscode_47_vs_47_platform_47_audioCues_47_browser_47_media_47__42__46_mp3.js +11 -0
- package/dist/service-override/audioCue.js +13 -0
- package/dist/service-override/configuration.js +100 -0
- package/dist/service-override/debug.js +23 -0
- package/dist/service-override/dialogs.js +13 -0
- package/dist/service-override/files.js +244 -0
- package/dist/service-override/keybindings.js +100 -0
- package/dist/service-override/languages.js +27 -0
- package/dist/service-override/layout.js +41 -0
- package/dist/service-override/modelEditor.js +128 -0
- package/dist/service-override/notifications.js +34 -0
- package/dist/service-override/preferences.js +10 -0
- package/dist/{snippets.js → service-override/snippets.js} +5 -3
- package/dist/service-override/textmate.js +36 -0
- package/dist/service-override/theme.js +26 -0
- package/dist/services.d.ts +118 -1
- package/dist/services.js +59 -3
- package/dist/tools.js +20 -0
- package/dist/vscode/vs/base/browser/ui/splitview/paneview.js +289 -0
- package/dist/vscode/vs/base/common/console.js +58 -0
- package/dist/vscode/vs/base/common/date.js +204 -0
- package/dist/vscode/vs/base/common/jsonEdit.js +164 -0
- package/dist/vscode/vs/base/common/jsonFormatter.js +187 -0
- package/dist/vscode/vs/base/common/keybindingParser.js +87 -0
- package/dist/vscode/vs/base/common/skipList.js +160 -0
- package/dist/vscode/vs/base/common/uriIpc.js +32 -0
- package/dist/vscode/vs/base/parts/ipc/common/ipc.net.js +45 -0
- package/dist/vscode/vs/base/parts/request/browser/request.js +60 -0
- package/dist/vscode/vs/base/parts/request/common/request.js +8 -0
- package/dist/vscode/vs/editor/browser/config/editorConfiguration.js +91 -0
- package/dist/vscode/vs/editor/common/services/languageFeaturesService.js +41 -0
- package/dist/vscode/vs/editor/common/services/modelUndoRedoParticipant.js +56 -0
- package/dist/vscode/vs/editor/common/services/textResourceConfigurationService.js +112 -0
- package/dist/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +112 -0
- package/dist/vscode/vs/platform/debug/common/extensionHostDebug.js +3 -0
- package/dist/{extensionManagement.js → vscode/vs/platform/extensionManagement/common/extensionManagement.js} +2 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +14 -0
- package/dist/vscode/vs/platform/extensionManagement/common/extensionNls.js +66 -0
- package/dist/vscode/vs/platform/extensionManagement/common/implicitActivationEvents.js +53 -0
- package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +69 -0
- package/dist/vscode/vs/platform/externalServices/common/serviceMachineId.js +27 -0
- package/dist/vscode/vs/platform/files/common/fileService.js +920 -0
- package/dist/vscode/vs/platform/files/common/inMemoryFilesystemProvider.js +175 -0
- package/dist/vscode/vs/platform/files/common/io.js +80 -0
- package/dist/vscode/vs/platform/files/common/watcher.js +69 -0
- package/dist/vscode/vs/platform/keyboardLayout/common/keyboardConfig.js +42 -0
- package/dist/vscode/vs/platform/keyboardLayout/common/keyboardLayout.js +12 -0
- package/dist/vscode/vs/platform/keyboardLayout/common/keyboardMapper.js +23 -0
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +17 -0
- package/dist/vscode/vs/platform/request/browser/requestService.js +25 -0
- package/dist/vscode/vs/platform/request/common/request.js +50 -0
- package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +119 -0
- package/dist/{tokenClassificationRegistry.js → vscode/vs/platform/theme/common/tokenClassificationRegistry.js} +82 -136
- package/dist/vscode/vs/platform/tunnel/common/tunnel.js +3 -0
- package/dist/vscode/vs/platform/uriIdentity/common/uriIdentityService.js +80 -0
- package/dist/vscode/vs/platform/userDataSync/common/content.js +9 -0
- package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +299 -0
- package/dist/vscode/vs/platform/workspace/common/editSessions.js +3 -0
- package/dist/vscode/vs/platform/workspace/common/virtualWorkspace.js +17 -0
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +195 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadBulkEdits.js +49 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadClipboard.js +22 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadCommands.js +93 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadConfiguration.js +78 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadConsole.js +33 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +347 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +67 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +73 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +246 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +379 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadEditor.js +410 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadEditors.js +223 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadExtensionService.js +213 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystem.js +270 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystemEventService.js +223 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +909 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguages.js +76 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadMessageService.js +114 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadOutputService.js +73 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadProgress.js +62 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadQuickOpen.js +183 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadSaveParticipant.js +43 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTelemetry.js +50 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadWindow.js +48 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +227 -0
- package/dist/vscode/vs/workbench/api/common/cache.js +28 -0
- package/dist/vscode/vs/workbench/api/common/configurationExtensionPoint.js +450 -0
- package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +131 -0
- package/dist/vscode/vs/workbench/api/common/extHostApiCommands.js +656 -0
- package/dist/vscode/vs/workbench/api/common/extHostApiDeprecationService.js +35 -0
- package/dist/vscode/vs/workbench/api/common/extHostBulkEdits.js +21 -0
- package/dist/vscode/vs/workbench/api/common/extHostClipboard.js +15 -0
- package/dist/vscode/vs/workbench/api/common/extHostCommands.js +415 -0
- package/dist/vscode/vs/workbench/api/common/extHostConfiguration.js +264 -0
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +786 -0
- package/dist/vscode/vs/workbench/api/common/extHostDecorations.js +94 -0
- package/dist/vscode/vs/workbench/api/common/extHostDiagnostics.js +292 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentContentProviders.js +65 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentData.js +212 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentSaveParticipant.js +126 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocuments.js +144 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentsAndEditors.js +147 -0
- package/dist/vscode/vs/workbench/api/common/extHostEditorTabs.js +328 -0
- package/dist/vscode/vs/workbench/api/common/extHostExtensionActivator.js +309 -0
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +814 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystem.js +272 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemConsumer.js +153 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemEventService.js +193 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemInfo.js +35 -0
- package/dist/vscode/vs/workbench/api/common/extHostInitDataService.js +3 -0
- package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +2038 -0
- package/dist/vscode/vs/workbench/api/common/extHostLanguages.js +164 -0
- package/dist/vscode/vs/workbench/api/common/extHostLocalizationService.js +85 -0
- package/dist/vscode/vs/workbench/api/common/extHostMemento.js +74 -0
- package/dist/vscode/vs/workbench/api/common/extHostMessageService.js +55 -0
- package/dist/vscode/vs/workbench/api/common/extHostOutput.js +257 -0
- package/dist/vscode/vs/workbench/api/common/extHostProgress.js +80 -0
- package/dist/vscode/vs/workbench/api/common/extHostQuickOpen.js +580 -0
- package/dist/vscode/vs/workbench/api/common/extHostRpcService.js +12 -0
- package/dist/vscode/vs/workbench/api/common/extHostSecretState.js +24 -0
- package/dist/vscode/vs/workbench/api/common/extHostSecrets.js +29 -0
- package/dist/vscode/vs/workbench/api/common/extHostStorage.js +42 -0
- package/dist/vscode/vs/workbench/api/common/extHostStoragePaths.js +64 -0
- package/dist/vscode/vs/workbench/api/common/extHostTelemetry.js +266 -0
- package/dist/vscode/vs/workbench/api/common/extHostTerminalService.js +3 -0
- package/dist/vscode/vs/workbench/api/common/extHostTestItem.js +122 -0
- package/dist/vscode/vs/workbench/api/common/extHostTestingPrivateApi.js +15 -0
- package/dist/vscode/vs/workbench/api/common/extHostTextEditor.js +511 -0
- package/dist/vscode/vs/workbench/api/common/extHostTextEditors.js +128 -0
- package/dist/vscode/vs/workbench/api/common/extHostTunnelService.js +36 -0
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +1766 -0
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +2810 -0
- package/dist/vscode/vs/workbench/api/common/extHostUriTransformerService.js +19 -0
- package/dist/vscode/vs/workbench/api/common/extHostVariableResolverService.js +138 -0
- package/dist/vscode/vs/workbench/api/common/extHostWindow.js +59 -0
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +534 -0
- package/dist/vscode/vs/workbench/api/common/jsonValidationExtensionPoint.js +97 -0
- package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +36 -0
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +1201 -0
- package/dist/vscode/vs/workbench/browser/actions.js +77 -0
- package/dist/vscode/vs/workbench/browser/codeeditor.js +185 -0
- package/dist/vscode/vs/workbench/browser/composite.js +102 -0
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +146 -0
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +68 -0
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +124 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +876 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +1946 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorAutoSave.js +157 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +1289 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +242 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +213 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +460 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +139 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/sideBySideEditor.js +387 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +289 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsActions.js +124 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsAlerts.js +58 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsCenter.js +224 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsCommands.js +241 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsList.js +185 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsTelemetry.js +35 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsToasts.js +417 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsViewer.js +392 -0
- package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +422 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewPane.js +520 -0
- package/dist/vscode/vs/workbench/browser/quickaccess.js +17 -0
- package/dist/vscode/vs/workbench/common/component.js +23 -0
- package/dist/vscode/vs/workbench/common/configuration.js +8 -0
- package/dist/vscode/vs/workbench/common/contextkeys.js +170 -0
- package/dist/vscode/vs/workbench/common/contributions.js +111 -0
- package/dist/vscode/vs/workbench/common/dialogs.js +31 -0
- package/dist/vscode/vs/workbench/common/editor/binaryEditorModel.js +39 -0
- package/dist/vscode/vs/workbench/common/editor/diffEditorInput.js +164 -0
- package/dist/vscode/vs/workbench/common/editor/diffEditorModel.js +23 -0
- package/dist/vscode/vs/workbench/common/editor/editorInput.js +97 -0
- package/dist/vscode/vs/workbench/common/editor/editorModel.js +26 -0
- package/dist/vscode/vs/workbench/common/editor/editorOptions.js +48 -0
- package/dist/vscode/vs/workbench/common/editor/resourceEditorInput.js +133 -0
- package/dist/vscode/vs/workbench/common/editor/sideBySideEditorInput.js +228 -0
- package/dist/vscode/vs/workbench/common/editor/textDiffEditorModel.js +42 -0
- package/dist/vscode/vs/workbench/common/editor/textEditorModel.js +165 -0
- package/dist/vscode/vs/workbench/common/editor/textResourceEditorInput.js +146 -0
- package/dist/vscode/vs/workbench/common/editor/textResourceEditorModel.js +24 -0
- package/dist/vscode/vs/workbench/common/editor.js +307 -0
- package/dist/{memento.js → vscode/vs/workbench/common/memento.js} +1 -1
- package/dist/vscode/vs/workbench/common/notifications.js +448 -0
- package/dist/vscode/vs/workbench/common/resources.js +86 -0
- package/dist/{theme2.js → vscode/vs/workbench/common/theme.js} +1 -168
- package/dist/vscode/vs/workbench/common/views.js +20 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +45 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +170 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +160 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/commands.js +49 -0
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +25 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy.js +126 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +100 -0
- package/dist/{languages.js → vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js} +154 -180
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/menuPreventer.js +35 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/selectionClipboard.js +2 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.js +50 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/baseDebugView.js +192 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +776 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointWidget.js +378 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointsView.js +714 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +172 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debug.contribution.js +451 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +294 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugAdapterManager.js +397 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugColors.js +309 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +749 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +619 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +58 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +675 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +317 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugIcons.js +135 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugMemory.js +204 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugQuickAccess.js +142 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugService.js +1171 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +1134 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSessionPicker.js +104 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugTaskRunner.js +273 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugToolBar.js +312 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/exceptionWidget.js +103 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/linkDetector.js +229 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/rawDebugSession.js +666 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/variablesView.js +287 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +150 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/breakpoints.js +19 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debug.js +285 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugCompoundRoot.js +15 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugContentProvider.js +96 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +1451 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugSchemas.js +344 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugSource.js +121 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +148 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugTelemetry.js +34 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugUtils.js +292 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugViewModel.js +107 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugger.js +254 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput.js +25 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +81 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/replModel.js +230 -0
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensions.js +3 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +321 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +398 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +389 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +3 -0
- package/dist/vscode/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +212 -0
- package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +369 -0
- package/dist/{files2.js → vscode/vs/workbench/contrib/files/common/files.js} +1 -1
- package/dist/vscode/vs/workbench/contrib/markers/common/markers.js +20 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +9 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/outputLinkProvider.js +74 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/outputServices.js +166 -0
- package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModel.js +317 -0
- package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModelService.js +31 -0
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +153 -0
- package/dist/vscode/vs/workbench/contrib/search/common/search.js +27 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +159 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippets.js +3 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +229 -0
- package/dist/{snippetsService.js → vscode/vs/workbench/contrib/snippets/browser/snippetsService.js} +28 -412
- package/dist/vscode/vs/workbench/contrib/snippets/browser/tabCompletion.js +166 -0
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +161 -0
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testId.js +109 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testItemCollection.js +75 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testTypes.js +7 -0
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy.js +133 -0
- package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +829 -0
- package/dist/vscode/vs/workbench/services/activity/common/activity.js +22 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configuration.js +847 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1104 -0
- package/dist/{configuration2.js → vscode/vs/workbench/services/configuration/common/configuration.js} +1 -1
- package/dist/vscode/vs/workbench/services/configuration/common/configurationCache.js +80 -0
- package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +590 -0
- package/dist/vscode/vs/workbench/services/configuration/common/configurationModels.js +119 -0
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditing.js +9 -0
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +119 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +303 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +26 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.js +36 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +174 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +10 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +299 -0
- package/dist/vscode/vs/workbench/services/decorations/browser/decorationsService.js +312 -0
- package/dist/vscode/vs/workbench/services/decorations/common/decorations.js +3 -0
- package/dist/vscode/vs/workbench/services/dialogs/common/dialogService.js +65 -0
- package/dist/vscode/vs/workbench/services/editor/browser/codeEditorService.js +80 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorGroupColumn.js +23 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorGroupsService.js +14 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorResolverService.js +31 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorService.js +10 -0
- package/dist/vscode/vs/workbench/services/environment/browser/environmentService.js +4 -0
- package/dist/vscode/vs/workbench/services/environment/common/environmentService.js +4 -0
- package/dist/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.js +6 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extHostCustomers.js +40 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +189 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDevOptions.js +23 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionHostProtocol.js +6 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +57 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +74 -0
- package/dist/{extensionsRegistry.js → vscode/vs/workbench/services/extensions/common/extensionsRegistry.js} +87 -208
- package/dist/vscode/vs/workbench/services/extensions/common/lazyPromise.js +70 -0
- package/dist/vscode/vs/workbench/services/extensions/common/proxyIdentifier.js +23 -0
- package/dist/vscode/vs/workbench/services/extensions/common/remoteConsoleUtil.js +47 -0
- package/dist/vscode/vs/workbench/services/extensions/common/rpcProtocol.js +762 -0
- package/dist/vscode/vs/workbench/services/extensions/common/workspaceContains.js +92 -0
- package/dist/vscode/vs/workbench/services/files/browser/elevatedFileService.js +9 -0
- package/dist/vscode/vs/workbench/services/files/common/elevatedFileService.js +3 -0
- package/dist/vscode/vs/workbench/services/files/common/files.js +4 -0
- package/dist/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +124 -0
- package/dist/vscode/vs/workbench/services/history/common/history.js +3 -0
- package/dist/vscode/vs/workbench/services/host/browser/host.js +3 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +855 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +490 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/cz.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de-swiss.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/dk.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/dvorak.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-belgian.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-ext.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-in.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en.darwin.js +133 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en.linux.js +182 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en.win.js +167 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es-latin.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/hu.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/it.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/it.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/jp-roman.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/jp.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ko.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js +17 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js +6 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js +23 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/no.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pt-br.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/sv.win.js +164 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/thai.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/tr.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/zh-hans.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/fallbackKeyboardMapper.js +28 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/keybindingIO.js +72 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/keymapInfo.js +108 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +888 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +350 -0
- package/dist/vscode/vs/workbench/services/label/common/labelService.js +302 -0
- package/dist/{languageService.js → vscode/vs/workbench/services/language/common/languageService.js} +8 -163
- package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +5 -0
- package/dist/vscode/vs/workbench/services/languageStatus/common/languageStatusService.js +3 -0
- package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +12 -0
- package/dist/vscode/vs/workbench/services/lifecycle/common/lifecycle.js +11 -0
- package/dist/vscode/vs/workbench/services/lifecycle/common/lifecycleService.js +85 -0
- package/dist/vscode/vs/workbench/services/notification/common/notificationService.js +186 -0
- package/dist/vscode/vs/workbench/services/output/common/output.js +51 -0
- package/dist/vscode/vs/workbench/services/panecomposite/browser/panecomposite.js +3 -0
- package/dist/vscode/vs/workbench/services/path/browser/pathService.js +34 -0
- package/dist/vscode/vs/workbench/services/path/common/pathService.js +107 -0
- package/dist/vscode/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +35 -0
- package/dist/vscode/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +555 -0
- package/dist/vscode/vs/workbench/services/preferences/browser/preferencesService.js +547 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferences.js +20 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesEditorInput.js +37 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1031 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesValidation.js +357 -0
- package/dist/vscode/vs/workbench/services/progress/browser/progressIndicator.js +174 -0
- package/dist/vscode/vs/workbench/services/remote/common/remoteAgentService.js +3 -0
- package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +428 -0
- package/dist/vscode/vs/workbench/services/search/common/search.js +158 -0
- package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +72 -0
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +355 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/arrayOperation.js +62 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeature.js +3 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +422 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +60 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +36 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerHost.js +198 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerTokenizerController.js +151 -0
- package/dist/vscode/vs/workbench/services/textMate/common/TMGrammarFactory.js +117 -0
- package/dist/vscode/vs/workbench/services/textMate/common/TMGrammars.js +93 -0
- package/dist/vscode/vs/workbench/services/textMate/common/TMScopeRegistry.js +24 -0
- package/dist/vscode/vs/workbench/services/textfile/browser/browserTextFileService.js +55 -0
- package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +578 -0
- package/dist/vscode/vs/workbench/services/textfile/common/encoding.js +493 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textEditorService.js +150 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +711 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +401 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textFileSaveParticipant.js +54 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textfiles.js +45 -0
- package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +187 -0
- package/dist/vscode/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +37 -0
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +353 -0
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +291 -0
- package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +736 -0
- package/dist/vscode/vs/workbench/services/themes/common/colorExtensionPoint.js +171 -0
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +864 -0
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeSchema.js +265 -0
- package/dist/vscode/vs/workbench/services/themes/common/fileIconThemeSchema.js +303 -0
- package/dist/vscode/vs/workbench/services/themes/common/hostColorSchemeService.js +3 -0
- package/dist/vscode/vs/workbench/services/themes/common/plistParser.js +439 -0
- package/dist/vscode/vs/workbench/services/themes/common/productIconThemeSchema.js +94 -0
- package/dist/vscode/vs/workbench/services/themes/common/textMateScopeMatcher.js +120 -0
- package/dist/vscode/vs/workbench/services/themes/common/themeCompatibility.js +66 -0
- package/dist/vscode/vs/workbench/services/themes/common/themeConfiguration.js +374 -0
- package/dist/vscode/vs/workbench/services/themes/common/themeExtensionPoints.js +258 -0
- package/dist/vscode/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +268 -0
- package/dist/vscode/vs/workbench/services/themes/common/workbenchThemeService.js +46 -0
- package/dist/vscode/vs/workbench/services/timer/browser/timerService.js +3 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput.js +122 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel.js +240 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.js +3 -0
- package/dist/vscode/vs/workbench/services/userData/browser/userDataInit.js +3 -0
- package/dist/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.js +7 -0
- package/dist/vscode/vs/workbench/services/userDataProfile/common/userDataProfileService.js +52 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +55 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopy.js +2 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.js +3 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +414 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant.js +39 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.js +181 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +112 -0
- package/dist/vscode/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +325 -0
- package/dist/vscode/vs/workbench/services/workspaces/browser/workspaces.js +11 -0
- package/dist/vscode/vs/workbench/services/workspaces/browser/workspacesService.js +154 -0
- package/dist/vscode/vs/workbench/services/workspaces/common/workspaceEditing.js +3 -0
- package/dist/vscode-default-extensions/bat/package.json.js +2 -0
- package/dist/vscode-default-extensions/clojure/package.json.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/package.json.js +2 -0
- package/dist/vscode-default-extensions/cpp/package.json.js +2 -0
- package/dist/vscode-default-extensions/csharp/package.json.js +2 -0
- package/dist/vscode-default-extensions/css/package.json.js +2 -0
- package/dist/vscode-default-extensions/dart/package.json.js +2 -0
- package/dist/vscode-default-extensions/diff/package.json.js +2 -0
- package/dist/vscode-default-extensions/docker/package.json.js +2 -0
- package/dist/vscode-default-extensions/fsharp/package.json.js +2 -0
- package/dist/vscode-default-extensions/go/package.json.js +2 -0
- package/dist/vscode-default-extensions/groovy/package.json.js +2 -0
- package/dist/vscode-default-extensions/handlebars/package.json.js +2 -0
- package/dist/vscode-default-extensions/hlsl/package.json.js +2 -0
- package/dist/vscode-default-extensions/html/package.json.js +2 -0
- package/dist/vscode-default-extensions/ini/package.json.js +2 -0
- package/dist/vscode-default-extensions/java/package.json.js +2 -0
- package/dist/vscode-default-extensions/javascript/package.json.js +2 -0
- package/dist/vscode-default-extensions/json/package.json.js +2 -0
- package/dist/vscode-default-extensions/julia/package.json.js +2 -0
- package/dist/vscode-default-extensions/latex/package.json.js +2 -0
- package/dist/vscode-default-extensions/less/package.json.js +2 -0
- package/dist/vscode-default-extensions/log/package.json.js +2 -0
- package/dist/vscode-default-extensions/lua/package.json.js +2 -0
- package/dist/vscode-default-extensions/make/package.json.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/package.json.js +2 -0
- package/dist/vscode-default-extensions/objective-c/package.json.js +2 -0
- package/dist/vscode-default-extensions/perl/package.json.js +2 -0
- package/dist/vscode-default-extensions/php/package.json.js +2 -0
- package/dist/vscode-default-extensions/powershell/package.json.js +2 -0
- package/dist/vscode-default-extensions/pug/package.json.js +2 -0
- package/dist/vscode-default-extensions/python/package.json.js +2 -0
- package/dist/vscode-default-extensions/r/package.json.js +2 -0
- package/dist/vscode-default-extensions/razor/package.json.js +2 -0
- package/dist/vscode-default-extensions/ruby/package.json.js +2 -0
- package/dist/vscode-default-extensions/rust/package.json.js +2 -0
- package/dist/vscode-default-extensions/scss/package.json.js +2 -0
- package/dist/vscode-default-extensions/shaderlab/package.json.js +2 -0
- package/dist/vscode-default-extensions/shellscript/package.json.js +2 -0
- package/dist/vscode-default-extensions/sql/package.json.js +2 -0
- package/dist/vscode-default-extensions/swift/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-abyss/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-kimbie-dark/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai-dimmed/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-quietlight/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-red/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-seti/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-dark/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-light/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/package.json.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/package.json.js +2 -0
- package/dist/vscode-default-extensions/typescript-language-features/package.json.js +2 -0
- package/dist/vscode-default-extensions/vb/package.json.js +2 -0
- package/dist/vscode-default-extensions/xml/package.json.js +2 -0
- package/dist/vscode-default-extensions/yaml/package.json.js +2 -0
- package/dist/vscode-services/commands.js +37 -0
- package/dist/vscode-services/debug.js +74 -0
- package/dist/vscode-services/env.js +69 -0
- package/dist/vscode-services/extHost.js +385 -0
- package/dist/vscode-services/extensions.js +46 -0
- package/dist/vscode-services/languages.js +203 -0
- package/dist/vscode-services/missing-services.js +959 -0
- package/dist/vscode-services/window.js +189 -0
- package/dist/vscode-services/workspace.js +164 -0
- package/monaco-editor-treemending.patch +23574 -0
- package/monaco-treemending.js +3 -0
- package/package.json +57 -60
- package/dist/api2.js +0 -1294
- package/dist/audioCue.js +0 -805
- package/dist/button.js +0 -352
- package/dist/configuration.js +0 -4438
- package/dist/debug.js +0 -15673
- package/dist/dialogs.js +0 -752
- package/dist/dom.js +0 -101
- package/dist/files.js +0 -3167
- package/dist/keybindings.js +0 -4310
- package/dist/layout.contribution.darwin.js +0 -1994
- package/dist/layout.contribution.linux.js +0 -899
- package/dist/layout.contribution.win.js +0 -3551
- package/dist/modelEditor.js +0 -8893
- package/dist/notifications.js +0 -2302
- package/dist/platform.js +0 -105
- package/dist/polyfill.js +0 -55651
- package/dist/preferences.js +0 -2532
- package/dist/textmate.js +0 -1428
- package/dist/theme.js +0 -4116
- package/dist/utils.js +0 -345
- package/dist/webpack-loader.cjs +0 -18
- package/dist/webpack-loader.d.ts +0 -4
- package/dist/{iconv.js → override/iconv.js} +0 -0
- package/dist/{jschardet.js → override/jschardet.js} +0 -0
- package/dist/{audioCue.d.ts → service-override/audioCue.d.ts} +0 -0
- package/dist/{configuration.d.ts → service-override/configuration.d.ts} +0 -0
- package/dist/{debug.d.ts → service-override/debug.d.ts} +0 -0
- package/dist/{dialogs.d.ts → service-override/dialogs.d.ts} +0 -0
- package/dist/{files.d.ts → service-override/files.d.ts} +0 -0
- package/dist/{keybindings.d.ts → service-override/keybindings.d.ts} +0 -0
- package/dist/{languages.d.ts → service-override/languages.d.ts} +0 -0
- package/dist/{modelEditor.d.ts → service-override/modelEditor.d.ts} +0 -0
- package/dist/{notifications.d.ts → service-override/notifications.d.ts} +0 -0
- package/dist/{preferences.d.ts → service-override/preferences.d.ts} +0 -0
- package/dist/{snippets.d.ts → service-override/snippets.d.ts} +0 -0
- package/dist/{textmate.d.ts → service-override/textmate.d.ts} +0 -0
- package/dist/{theme.d.ts → service-override/theme.d.ts} +0 -0
- package/dist/{injection.js → tools/injection.js} +0 -0
- package/dist/{jsonErrorMessages.js → vscode/vs/base/common/jsonErrorMessages.js} +0 -0
- package/dist/{_.contribution.js → vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/_.contribution.js} +0 -0
- package/dist/{unboundCommands.js → vscode/vs/workbench/services/keybinding/browser/unboundCommands.js} +2 -2
- /package/dist/{language-configuration.js → vscode-default-extensions/bat/language-configuration.json.js} +0 -0
- /package/dist/{batchfile.js → vscode-default-extensions/bat/snippets/batchfile.code-snippets.js} +0 -0
- /package/dist/{batchfile.tmLanguage.js → vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration2.js → vscode-default-extensions/clojure/language-configuration.json.js} +0 -0
- /package/dist/{clojure.tmLanguage.js → vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration3.js → vscode-default-extensions/coffeescript/language-configuration.json.js} +0 -0
- /package/dist/{coffeescript.js → vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.js} +0 -0
- /package/dist/{coffeescript.tmLanguage.js → vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration4.js → vscode-default-extensions/cpp/language-configuration.json.js} +0 -0
- /package/dist/{c.js → vscode-default-extensions/cpp/snippets/c.code-snippets.js} +0 -0
- /package/dist/{cpp.js → vscode-default-extensions/cpp/snippets/cpp.code-snippets.js} +0 -0
- /package/dist/{c.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.js} +0 -0
- /package/dist/{cpp.embedded.macro.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.js} +0 -0
- /package/dist/{cpp.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.js} +0 -0
- /package/dist/{cuda-cpp.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.js} +0 -0
- /package/dist/{platform.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/platform.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration5.js → vscode-default-extensions/csharp/language-configuration.json.js} +0 -0
- /package/dist/{csharp.js → vscode-default-extensions/csharp/snippets/csharp.code-snippets.js} +0 -0
- /package/dist/{csharp.tmLanguage.js → vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration6.js → vscode-default-extensions/css/language-configuration.json.js} +0 -0
- /package/dist/{css.tmLanguage.js → vscode-default-extensions/css/syntaxes/css.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration7.js → vscode-default-extensions/dart/language-configuration.json.js} +0 -0
- /package/dist/{dart.tmLanguage.js → vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration8.js → vscode-default-extensions/diff/language-configuration.json.js} +0 -0
- /package/dist/{diff.tmLanguage.js → vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration9.js → vscode-default-extensions/docker/language-configuration.json.js} +0 -0
- /package/dist/{docker.tmLanguage.js → vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration10.js → vscode-default-extensions/fsharp/language-configuration.json.js} +0 -0
- /package/dist/{fsharp.js → vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.js} +0 -0
- /package/dist/{fsharp.tmLanguage.js → vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration11.js → vscode-default-extensions/go/language-configuration.json.js} +0 -0
- /package/dist/{go.tmLanguage.js → vscode-default-extensions/go/syntaxes/go.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration12.js → vscode-default-extensions/groovy/language-configuration.json.js} +0 -0
- /package/dist/{groovy.js → vscode-default-extensions/groovy/snippets/groovy.code-snippets.js} +0 -0
- /package/dist/{groovy.tmLanguage.js → vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration13.js → vscode-default-extensions/handlebars/language-configuration.json.js} +0 -0
- /package/dist/{Handlebars.tmLanguage.js → vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration14.js → vscode-default-extensions/hlsl/language-configuration.json.js} +0 -0
- /package/dist/{hlsl.tmLanguage.js → vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration15.js → vscode-default-extensions/html/language-configuration.json.js} +0 -0
- /package/dist/{html.js → vscode-default-extensions/html/snippets/html.code-snippets.js} +0 -0
- /package/dist/{html-derivative.tmLanguage.js → vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.js} +0 -0
- /package/dist/{html.tmLanguage.js → vscode-default-extensions/html/syntaxes/html.tmLanguage.json.js} +0 -0
- /package/dist/{ini.language-configuration.js → vscode-default-extensions/ini/ini.language-configuration.json.js} +0 -0
- /package/dist/{properties.language-configuration.js → vscode-default-extensions/ini/properties.language-configuration.json.js} +0 -0
- /package/dist/{ini.tmLanguage.js → vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration16.js → vscode-default-extensions/java/language-configuration.json.js} +0 -0
- /package/dist/{java.js → vscode-default-extensions/java/snippets/java.code-snippets.js} +0 -0
- /package/dist/{java.tmLanguage.js → vscode-default-extensions/java/syntaxes/java.tmLanguage.json.js} +0 -0
- /package/dist/{javascript-language-configuration.js → vscode-default-extensions/javascript/javascript-language-configuration.json.js} +0 -0
- /package/dist/{javascript.js → vscode-default-extensions/javascript/snippets/javascript.code-snippets.js} +0 -0
- /package/dist/{JavaScript.tmLanguage.js → vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.js} +0 -0
- /package/dist/{JavaScriptReact.tmLanguage.js → vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.js} +0 -0
- /package/dist/{Regular Expressions (JavaScript).js → vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.js} +0 -0
- /package/dist/{tags-language-configuration.js → vscode-default-extensions/javascript/tags-language-configuration.json.js} +0 -0
- /package/dist/{language-configuration17.js → vscode-default-extensions/json/language-configuration.json.js} +0 -0
- /package/dist/{JSON.tmLanguage.js → vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.js} +0 -0
- /package/dist/{JSONC.tmLanguage.js → vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration18.js → vscode-default-extensions/julia/language-configuration.json.js} +0 -0
- /package/dist/{julia.tmLanguage.js → vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.js} +0 -0
- /package/dist/{latex-cpp-embedded-language-configuration.js → vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.js} +0 -0
- /package/dist/{latex-language-configuration.js → vscode-default-extensions/latex/latex-language-configuration.json.js} +0 -0
- /package/dist/{markdown-latex-combined-language-configuration.js → vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.js} +0 -0
- /package/dist/{Bibtex.tmLanguage.js → vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.js} +0 -0
- /package/dist/{LaTeX.tmLanguage.js → vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.js} +0 -0
- /package/dist/{TeX.tmLanguage.js → vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.js} +0 -0
- /package/dist/{cpp-grammar-bailout.tmLanguage.js → vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.js} +0 -0
- /package/dist/{markdown-latex-combined.tmLanguage.js → vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration19.js → vscode-default-extensions/less/language-configuration.json.js} +0 -0
- /package/dist/{less.tmLanguage.js → vscode-default-extensions/less/syntaxes/less.tmLanguage.json.js} +0 -0
- /package/dist/{log.tmLanguage.js → vscode-default-extensions/log/syntaxes/log.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration20.js → vscode-default-extensions/lua/language-configuration.json.js} +0 -0
- /package/dist/{lua.tmLanguage.js → vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration21.js → vscode-default-extensions/make/language-configuration.json.js} +0 -0
- /package/dist/{make.tmLanguage.js → vscode-default-extensions/make/syntaxes/make.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration22.js → vscode-default-extensions/markdown-basics/language-configuration.json.js} +0 -0
- /package/dist/{markdown.js → vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.js} +0 -0
- /package/dist/{markdown.tmLanguage.js → vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration23.js → vscode-default-extensions/objective-c/language-configuration.json.js} +0 -0
- /package/dist/{objective-c.tmLanguage.js → vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.js} +0 -0
- /package/dist/{objective-c__.tmLanguage.js → vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.js} +0 -0
- /package/dist/{perl.language-configuration.js → vscode-default-extensions/perl/perl.language-configuration.json.js} +0 -0
- /package/dist/{perl6.language-configuration.js → vscode-default-extensions/perl/perl6.language-configuration.json.js} +0 -0
- /package/dist/{perl.tmLanguage.js → vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.js} +0 -0
- /package/dist/{perl6.tmLanguage.js → vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration24.js → vscode-default-extensions/php/language-configuration.json.js} +0 -0
- /package/dist/{php.js → vscode-default-extensions/php/snippets/php.code-snippets.js} +0 -0
- /package/dist/{html.tmLanguage2.js → vscode-default-extensions/php/syntaxes/html.tmLanguage.json.js} +0 -0
- /package/dist/{php.tmLanguage.js → vscode-default-extensions/php/syntaxes/php.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration25.js → vscode-default-extensions/powershell/language-configuration.json.js} +0 -0
- /package/dist/{powershell.tmLanguage.js → vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration26.js → vscode-default-extensions/pug/language-configuration.json.js} +0 -0
- /package/dist/{pug.tmLanguage.js → vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration27.js → vscode-default-extensions/python/language-configuration.json.js} +0 -0
- /package/dist/{MagicPython.tmLanguage.js → vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.js} +0 -0
- /package/dist/{MagicRegExp.tmLanguage.js → vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration28.js → vscode-default-extensions/r/language-configuration.json.js} +0 -0
- /package/dist/{r.tmLanguage.js → vscode-default-extensions/r/syntaxes/r.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration29.js → vscode-default-extensions/razor/language-configuration.json.js} +0 -0
- /package/dist/{cshtml.tmLanguage.js → vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration30.js → vscode-default-extensions/ruby/language-configuration.json.js} +0 -0
- /package/dist/{ruby.tmLanguage.js → vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration31.js → vscode-default-extensions/rust/language-configuration.json.js} +0 -0
- /package/dist/{rust.tmLanguage.js → vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration32.js → vscode-default-extensions/scss/language-configuration.json.js} +0 -0
- /package/dist/{sassdoc.tmLanguage.js → vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.js} +0 -0
- /package/dist/{scss.tmLanguage.js → vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration33.js → vscode-default-extensions/shaderlab/language-configuration.json.js} +0 -0
- /package/dist/{shaderlab.tmLanguage.js → vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration34.js → vscode-default-extensions/shellscript/language-configuration.json.js} +0 -0
- /package/dist/{shell-unix-bash.tmLanguage.js → vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration35.js → vscode-default-extensions/sql/language-configuration.json.js} +0 -0
- /package/dist/{sql.tmLanguage.js → vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration36.js → vscode-default-extensions/swift/language-configuration.json.js} +0 -0
- /package/dist/{swift.js → vscode-default-extensions/swift/snippets/swift.code-snippets.js} +0 -0
- /package/dist/{swift.tmLanguage.js → vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.js} +0 -0
- /package/dist/{abyss-color-theme.js → vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.js} +0 -0
- /package/dist/{vs_minimal-icon-theme.js → vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.js} +0 -0
- /package/dist/{dark_plus.js → vscode-default-extensions/theme-defaults/themes/dark_plus.json.js} +0 -0
- /package/dist/{dark_plus_experimental.js → vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.js} +0 -0
- /package/dist/{dark_vs.js → vscode-default-extensions/theme-defaults/themes/dark_vs.json.js} +0 -0
- /package/dist/{hc_black.js → vscode-default-extensions/theme-defaults/themes/hc_black.json.js} +0 -0
- /package/dist/{hc_light.js → vscode-default-extensions/theme-defaults/themes/hc_light.json.js} +0 -0
- /package/dist/{light_plus.js → vscode-default-extensions/theme-defaults/themes/light_plus.json.js} +0 -0
- /package/dist/{light_plus_experimental.js → vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.js} +0 -0
- /package/dist/{light_vs.js → vscode-default-extensions/theme-defaults/themes/light_vs.json.js} +0 -0
- /package/dist/{kimbie-dark-color-theme.js → vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.js} +0 -0
- /package/dist/{monokai-color-theme.js → vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.js} +0 -0
- /package/dist/{dimmed-monokai-color-theme.js → vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.js} +0 -0
- /package/dist/{quietlight-color-theme.js → vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.js} +0 -0
- /package/dist/{Red-color-theme.js → vscode-default-extensions/theme-red/themes/Red-color-theme.json.js} +0 -0
- /package/dist/{vs-seti-icon-theme.js → vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.js} +0 -0
- /package/dist/{solarized-dark-color-theme.js → vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.js} +0 -0
- /package/dist/{solarized-light-color-theme.js → vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.js} +0 -0
- /package/dist/{tomorrow-night-blue-color-theme.js → vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.js} +0 -0
- /package/dist/{language-configuration37.js → vscode-default-extensions/typescript-basics/language-configuration.json.js} +0 -0
- /package/dist/{typescript.js → vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.js} +0 -0
- /package/dist/{TypeScript.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.js} +0 -0
- /package/dist/{TypeScriptReact.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.js} +0 -0
- /package/dist/{jsdoc.js.injection.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.js} +0 -0
- /package/dist/{jsdoc.ts.injection.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration38.js → vscode-default-extensions/vb/language-configuration.json.js} +0 -0
- /package/dist/{vb.js → vscode-default-extensions/vb/snippets/vb.code-snippets.js} +0 -0
- /package/dist/{asp-vb-net.tmlanguage.js → vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.js} +0 -0
- /package/dist/{xml.tmLanguage.js → vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.js} +0 -0
- /package/dist/{xsl.tmLanguage.js → vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.js} +0 -0
- /package/dist/{xml.language-configuration.js → vscode-default-extensions/xml/xml.language-configuration.json.js} +0 -0
- /package/dist/{xsl.language-configuration.js → vscode-default-extensions/xml/xsl.language-configuration.json.js} +0 -0
- /package/dist/{language-configuration39.js → vscode-default-extensions/yaml/language-configuration.json.js} +0 -0
- /package/dist/{yaml.tmLanguage.js → vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.js} +0 -0
|
@@ -0,0 +1,1104 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/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 { 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, configurationDefaultsSchemaId, OVERRIDE_PROPERTY_PATTERN, resourceLanguageSettingsSchemaId, Extensions as Extensions$1, 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, 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 } 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 { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
29
|
+
import { NullPolicyService } from 'monaco-editor/esm/vs/platform/policy/common/policy.js';
|
|
30
|
+
import { updateIgnoredSettings } from '../../../../platform/userDataSync/common/settingsMerge.js';
|
|
31
|
+
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
32
|
+
import { IJSONEditingService } from '../common/jsonEditing.js';
|
|
33
|
+
function getLocalUserConfigurationScopes(userDataProfile, hasRemote) {
|
|
34
|
+
return userDataProfile.isDefault
|
|
35
|
+
? hasRemote ? LOCAL_MACHINE_SCOPES : undefined
|
|
36
|
+
: hasRemote ? LOCAL_MACHINE_PROFILE_SCOPES : PROFILE_SCOPES;
|
|
37
|
+
}
|
|
38
|
+
class Workspace extends Workspace$1 {
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
|
+
this.initialized = false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
class WorkspaceService extends Disposable {
|
|
45
|
+
get restrictedSettings() { return this._restrictedSettings; }
|
|
46
|
+
constructor({ remoteAuthority, configurationCache }, environmentService, userDataProfileService, userDataProfilesService, fileService, remoteAgentService, uriIdentityService, logService, policyService) {
|
|
47
|
+
super();
|
|
48
|
+
this.userDataProfileService = userDataProfileService;
|
|
49
|
+
this.userDataProfilesService = userDataProfilesService;
|
|
50
|
+
this.fileService = fileService;
|
|
51
|
+
this.remoteAgentService = remoteAgentService;
|
|
52
|
+
this.uriIdentityService = uriIdentityService;
|
|
53
|
+
this.logService = logService;
|
|
54
|
+
this.initialized = false;
|
|
55
|
+
this.applicationConfiguration = null;
|
|
56
|
+
this.remoteUserConfiguration = null;
|
|
57
|
+
this._onDidChangeConfiguration = this._register(( (new Emitter())));
|
|
58
|
+
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
59
|
+
this._onWillChangeWorkspaceFolders = this._register(( (new Emitter())));
|
|
60
|
+
this.onWillChangeWorkspaceFolders = this._onWillChangeWorkspaceFolders.event;
|
|
61
|
+
this._onDidChangeWorkspaceFolders = this._register(( (new Emitter())));
|
|
62
|
+
this.onDidChangeWorkspaceFolders = this._onDidChangeWorkspaceFolders.event;
|
|
63
|
+
this._onDidChangeWorkspaceName = this._register(( (new Emitter())));
|
|
64
|
+
this.onDidChangeWorkspaceName = this._onDidChangeWorkspaceName.event;
|
|
65
|
+
this._onDidChangeWorkbenchState = this._register(( (new Emitter())));
|
|
66
|
+
this.onDidChangeWorkbenchState = this._onDidChangeWorkbenchState.event;
|
|
67
|
+
this.isWorkspaceTrusted = true;
|
|
68
|
+
this._restrictedSettings = { default: [] };
|
|
69
|
+
this._onDidChangeRestrictedSettings = this._register(( (new Emitter())));
|
|
70
|
+
this.onDidChangeRestrictedSettings = this._onDidChangeRestrictedSettings.event;
|
|
71
|
+
this.configurationRegistry = ( (Registry.as(Extensions$1.Configuration)));
|
|
72
|
+
this.initRemoteUserConfigurationBarrier = ( (new Barrier()));
|
|
73
|
+
this.completeWorkspaceBarrier = ( (new Barrier()));
|
|
74
|
+
this.defaultConfiguration = this._register(( (new DefaultConfiguration(configurationCache, environmentService))));
|
|
75
|
+
this.policyConfiguration = policyService instanceof NullPolicyService ? ( (new NullPolicyConfiguration())) : this._register(( (new PolicyConfiguration(this.defaultConfiguration, policyService, logService))));
|
|
76
|
+
this.configurationCache = configurationCache;
|
|
77
|
+
this._configuration = ( (new Configuration(
|
|
78
|
+
this.defaultConfiguration.configurationModel,
|
|
79
|
+
this.policyConfiguration.configurationModel,
|
|
80
|
+
(new ConfigurationModel()),
|
|
81
|
+
(new ConfigurationModel()),
|
|
82
|
+
(new ConfigurationModel()),
|
|
83
|
+
(new ConfigurationModel()),
|
|
84
|
+
(new ResourceMap()),
|
|
85
|
+
(new ConfigurationModel()),
|
|
86
|
+
(new ResourceMap()),
|
|
87
|
+
this.workspace
|
|
88
|
+
)));
|
|
89
|
+
this.applicationConfigurationDisposables = this._register(( (new DisposableStore())));
|
|
90
|
+
this.createApplicationConfiguration();
|
|
91
|
+
this.localUserConfiguration = this._register(( (new UserConfiguration(
|
|
92
|
+
userDataProfileService.currentProfile.settingsResource,
|
|
93
|
+
userDataProfileService.currentProfile.tasksResource,
|
|
94
|
+
getLocalUserConfigurationScopes(userDataProfileService.currentProfile, !!remoteAuthority),
|
|
95
|
+
fileService,
|
|
96
|
+
uriIdentityService,
|
|
97
|
+
logService
|
|
98
|
+
))));
|
|
99
|
+
this.cachedFolderConfigs = ( (new ResourceMap()));
|
|
100
|
+
this._register(this.localUserConfiguration.onDidChangeConfiguration(userConfiguration => this.onLocalUserConfigurationChanged(userConfiguration)));
|
|
101
|
+
if (remoteAuthority) {
|
|
102
|
+
const remoteUserConfiguration = this.remoteUserConfiguration = this._register(( (new RemoteUserConfiguration(
|
|
103
|
+
remoteAuthority,
|
|
104
|
+
configurationCache,
|
|
105
|
+
fileService,
|
|
106
|
+
uriIdentityService,
|
|
107
|
+
remoteAgentService
|
|
108
|
+
))));
|
|
109
|
+
this._register(remoteUserConfiguration.onDidInitialize(remoteUserConfigurationModel => {
|
|
110
|
+
this._register(remoteUserConfiguration.onDidChangeConfiguration(remoteUserConfigurationModel => this.onRemoteUserConfigurationChanged(remoteUserConfigurationModel)));
|
|
111
|
+
this.onRemoteUserConfigurationChanged(remoteUserConfigurationModel);
|
|
112
|
+
this.initRemoteUserConfigurationBarrier.open();
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this.initRemoteUserConfigurationBarrier.open();
|
|
117
|
+
}
|
|
118
|
+
this.workspaceConfiguration = this._register(( (new WorkspaceConfiguration(configurationCache, fileService, uriIdentityService, logService))));
|
|
119
|
+
this._register(this.workspaceConfiguration.onDidUpdateConfiguration(fromCache => {
|
|
120
|
+
this.onWorkspaceConfigurationChanged(fromCache).then(() => {
|
|
121
|
+
this.workspace.initialized = this.workspaceConfiguration.initialized;
|
|
122
|
+
this.checkAndMarkWorkspaceComplete(fromCache);
|
|
123
|
+
});
|
|
124
|
+
}));
|
|
125
|
+
this._register(this.defaultConfiguration.onDidChangeConfiguration(({ properties, defaults }) => this.onDefaultConfigurationChanged(defaults, properties)));
|
|
126
|
+
this._register(this.policyConfiguration.onDidChangeConfiguration(configurationModel => this.onPolicyConfigurationChanged(configurationModel)));
|
|
127
|
+
this._register(userDataProfileService.onDidChangeCurrentProfile(e => this.onUserDataProfileChanged(e)));
|
|
128
|
+
this.workspaceEditingQueue = ( (new Queue()));
|
|
129
|
+
}
|
|
130
|
+
createApplicationConfiguration() {
|
|
131
|
+
this.applicationConfigurationDisposables.clear();
|
|
132
|
+
if (this.userDataProfileService.currentProfile.isDefault) {
|
|
133
|
+
this.applicationConfiguration = null;
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
this.applicationConfiguration = this.applicationConfigurationDisposables.add(this._register(( (new UserConfiguration(
|
|
137
|
+
this.userDataProfilesService.defaultProfile.settingsResource,
|
|
138
|
+
undefined,
|
|
139
|
+
[1 ],
|
|
140
|
+
this.fileService,
|
|
141
|
+
this.uriIdentityService,
|
|
142
|
+
this.logService
|
|
143
|
+
)))));
|
|
144
|
+
this.applicationConfigurationDisposables.add(this.applicationConfiguration.onDidChangeConfiguration(configurationModel => this.onApplicationConfigurationChanged(configurationModel)));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
async getCompleteWorkspace() {
|
|
148
|
+
await this.completeWorkspaceBarrier.wait();
|
|
149
|
+
return this.getWorkspace();
|
|
150
|
+
}
|
|
151
|
+
getWorkspace() {
|
|
152
|
+
return this.workspace;
|
|
153
|
+
}
|
|
154
|
+
getWorkbenchState() {
|
|
155
|
+
if (this.workspace.configuration) {
|
|
156
|
+
return 3 ;
|
|
157
|
+
}
|
|
158
|
+
if (this.workspace.folders.length === 1) {
|
|
159
|
+
return 2 ;
|
|
160
|
+
}
|
|
161
|
+
return 1 ;
|
|
162
|
+
}
|
|
163
|
+
getWorkspaceFolder(resource) {
|
|
164
|
+
return this.workspace.getFolder(resource);
|
|
165
|
+
}
|
|
166
|
+
addFolders(foldersToAdd, index) {
|
|
167
|
+
return this.updateFolders(foldersToAdd, [], index);
|
|
168
|
+
}
|
|
169
|
+
removeFolders(foldersToRemove) {
|
|
170
|
+
return this.updateFolders([], foldersToRemove);
|
|
171
|
+
}
|
|
172
|
+
async updateFolders(foldersToAdd, foldersToRemove, index) {
|
|
173
|
+
return this.workspaceEditingQueue.queue(() => this.doUpdateFolders(foldersToAdd, foldersToRemove, index));
|
|
174
|
+
}
|
|
175
|
+
isInsideWorkspace(resource) {
|
|
176
|
+
return !!this.getWorkspaceFolder(resource);
|
|
177
|
+
}
|
|
178
|
+
isCurrentWorkspace(workspaceIdOrFolder) {
|
|
179
|
+
switch (this.getWorkbenchState()) {
|
|
180
|
+
case 2 : {
|
|
181
|
+
let folderUri = undefined;
|
|
182
|
+
if (URI.isUri(workspaceIdOrFolder)) {
|
|
183
|
+
folderUri = workspaceIdOrFolder;
|
|
184
|
+
}
|
|
185
|
+
else if (isSingleFolderWorkspaceIdentifier(workspaceIdOrFolder)) {
|
|
186
|
+
folderUri = workspaceIdOrFolder.uri;
|
|
187
|
+
}
|
|
188
|
+
return URI.isUri(folderUri) && this.uriIdentityService.extUri.isEqual(folderUri, this.workspace.folders[0].uri);
|
|
189
|
+
}
|
|
190
|
+
case 3 :
|
|
191
|
+
return isWorkspaceIdentifier(workspaceIdOrFolder) && this.workspace.id === workspaceIdOrFolder.id;
|
|
192
|
+
}
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
async doUpdateFolders(foldersToAdd, foldersToRemove, index) {
|
|
196
|
+
if (this.getWorkbenchState() !== 3 ) {
|
|
197
|
+
return Promise.resolve(undefined);
|
|
198
|
+
}
|
|
199
|
+
if (foldersToAdd.length + foldersToRemove.length === 0) {
|
|
200
|
+
return Promise.resolve(undefined);
|
|
201
|
+
}
|
|
202
|
+
let foldersHaveChanged = false;
|
|
203
|
+
let currentWorkspaceFolders = this.getWorkspace().folders;
|
|
204
|
+
let newStoredFolders = ( (currentWorkspaceFolders.map(f => f.raw))).filter((folder, index) => {
|
|
205
|
+
if (!isStoredWorkspaceFolder(folder)) {
|
|
206
|
+
return true;
|
|
207
|
+
}
|
|
208
|
+
return !this.contains(foldersToRemove, currentWorkspaceFolders[index].uri);
|
|
209
|
+
});
|
|
210
|
+
foldersHaveChanged = currentWorkspaceFolders.length !== newStoredFolders.length;
|
|
211
|
+
if (foldersToAdd.length) {
|
|
212
|
+
const workspaceConfigPath = this.getWorkspace().configuration;
|
|
213
|
+
const workspaceConfigFolder = this.uriIdentityService.extUri.dirname(workspaceConfigPath);
|
|
214
|
+
currentWorkspaceFolders = toWorkspaceFolders(newStoredFolders, workspaceConfigPath, this.uriIdentityService.extUri);
|
|
215
|
+
const currentWorkspaceFolderUris = ( (currentWorkspaceFolders.map(folder => folder.uri)));
|
|
216
|
+
const storedFoldersToAdd = [];
|
|
217
|
+
for (const folderToAdd of foldersToAdd) {
|
|
218
|
+
const folderURI = folderToAdd.uri;
|
|
219
|
+
if (this.contains(currentWorkspaceFolderUris, folderURI)) {
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
try {
|
|
223
|
+
const result = await this.fileService.stat(folderURI);
|
|
224
|
+
if (!result.isDirectory) {
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
catch (e) { }
|
|
229
|
+
storedFoldersToAdd.push(getStoredWorkspaceFolder(folderURI, false, folderToAdd.name, workspaceConfigFolder, this.uriIdentityService.extUri));
|
|
230
|
+
}
|
|
231
|
+
if (storedFoldersToAdd.length > 0) {
|
|
232
|
+
foldersHaveChanged = true;
|
|
233
|
+
if (typeof index === 'number' && index >= 0 && index < newStoredFolders.length) {
|
|
234
|
+
newStoredFolders = newStoredFolders.slice(0);
|
|
235
|
+
newStoredFolders.splice(index, 0, ...storedFoldersToAdd);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
newStoredFolders = [...newStoredFolders, ...storedFoldersToAdd];
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
if (foldersHaveChanged) {
|
|
243
|
+
return this.setFolders(newStoredFolders);
|
|
244
|
+
}
|
|
245
|
+
return Promise.resolve(undefined);
|
|
246
|
+
}
|
|
247
|
+
async setFolders(folders) {
|
|
248
|
+
if (!this.instantiationService) {
|
|
249
|
+
throw new Error('Cannot update workspace folders because workspace service is not yet ready to accept writes.');
|
|
250
|
+
}
|
|
251
|
+
await this.instantiationService.invokeFunction(accessor => this.workspaceConfiguration.setFolders(folders, accessor.get(IJSONEditingService)));
|
|
252
|
+
return this.onWorkspaceConfigurationChanged(false);
|
|
253
|
+
}
|
|
254
|
+
contains(resources, toCheck) {
|
|
255
|
+
return (
|
|
256
|
+
(resources.some(resource => this.uriIdentityService.extUri.isEqual(resource, toCheck)))
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
getConfigurationData() {
|
|
260
|
+
return this._configuration.toData();
|
|
261
|
+
}
|
|
262
|
+
getValue(arg1, arg2) {
|
|
263
|
+
const section = typeof arg1 === 'string' ? arg1 : undefined;
|
|
264
|
+
const overrides = isConfigurationOverrides(arg1) ? arg1 : isConfigurationOverrides(arg2) ? arg2 : undefined;
|
|
265
|
+
return this._configuration.getValue(section, overrides);
|
|
266
|
+
}
|
|
267
|
+
async updateValue(key, value, arg3, arg4, options) {
|
|
268
|
+
const overrides = isConfigurationUpdateOverrides(arg3) ? arg3
|
|
269
|
+
: isConfigurationOverrides(arg3) ? { resource: arg3.resource, overrideIdentifiers: arg3.overrideIdentifier ? [arg3.overrideIdentifier] : undefined } : undefined;
|
|
270
|
+
const target = overrides ? arg4 : arg3;
|
|
271
|
+
const targets = target ? [target] : [];
|
|
272
|
+
if (overrides?.overrideIdentifiers) {
|
|
273
|
+
overrides.overrideIdentifiers = distinct(overrides.overrideIdentifiers);
|
|
274
|
+
overrides.overrideIdentifiers = overrides.overrideIdentifiers.length ? overrides.overrideIdentifiers : undefined;
|
|
275
|
+
}
|
|
276
|
+
if (!targets.length) {
|
|
277
|
+
if (overrides?.overrideIdentifiers && overrides.overrideIdentifiers.length > 1) {
|
|
278
|
+
throw new Error('Configuration Target is required while updating the value for multiple override identifiers');
|
|
279
|
+
}
|
|
280
|
+
const inspect = this.inspect(key, { resource: overrides?.resource, overrideIdentifier: overrides?.overrideIdentifiers ? overrides.overrideIdentifiers[0] : undefined });
|
|
281
|
+
targets.push(...this.deriveConfigurationTargets(key, value, inspect));
|
|
282
|
+
if (equals(value, inspect.defaultValue) && targets.length === 1 && ((targets[0] === 2 || targets[0] === 3) )) {
|
|
283
|
+
value = undefined;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
await Promises.settled(( (targets.map(
|
|
287
|
+
target => this.writeConfigurationValue(key, value, target, overrides, options)
|
|
288
|
+
))));
|
|
289
|
+
}
|
|
290
|
+
async reloadConfiguration(target) {
|
|
291
|
+
if (target === undefined) {
|
|
292
|
+
this.reloadDefaultConfiguration();
|
|
293
|
+
const application = await this.reloadApplicationConfiguration(true);
|
|
294
|
+
const { local, remote } = await this.reloadUserConfiguration();
|
|
295
|
+
await this.reloadWorkspaceConfiguration();
|
|
296
|
+
await this.loadConfiguration(application, local, remote);
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
if (isWorkspaceFolder(target)) {
|
|
300
|
+
await this.reloadWorkspaceFolderConfiguration(target);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
switch (target) {
|
|
304
|
+
case 7 :
|
|
305
|
+
this.reloadDefaultConfiguration();
|
|
306
|
+
return;
|
|
307
|
+
case 2 : {
|
|
308
|
+
const { local, remote } = await this.reloadUserConfiguration();
|
|
309
|
+
await this.loadConfiguration(this._configuration.applicationConfiguration, local, remote);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
case 3 :
|
|
313
|
+
await this.reloadLocalUserConfiguration();
|
|
314
|
+
return;
|
|
315
|
+
case 4 :
|
|
316
|
+
await this.reloadRemoteUserConfiguration();
|
|
317
|
+
return;
|
|
318
|
+
case 5 :
|
|
319
|
+
case 6 :
|
|
320
|
+
await this.reloadWorkspaceConfiguration();
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
hasCachedConfigurationDefaultsOverrides() {
|
|
325
|
+
return this.defaultConfiguration.hasCachedConfigurationDefaultsOverrides();
|
|
326
|
+
}
|
|
327
|
+
inspect(key, overrides) {
|
|
328
|
+
return this._configuration.inspect(key, overrides);
|
|
329
|
+
}
|
|
330
|
+
keys() {
|
|
331
|
+
return (
|
|
332
|
+
(this._configuration.keys())
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
async whenRemoteConfigurationLoaded() {
|
|
336
|
+
await this.initRemoteUserConfigurationBarrier.wait();
|
|
337
|
+
}
|
|
338
|
+
async initialize(arg) {
|
|
339
|
+
mark('code/willInitWorkspaceService');
|
|
340
|
+
const workspace = await this.createWorkspace(arg);
|
|
341
|
+
await this.updateWorkspaceAndInitializeConfiguration(workspace);
|
|
342
|
+
this.checkAndMarkWorkspaceComplete(false);
|
|
343
|
+
mark('code/didInitWorkspaceService');
|
|
344
|
+
}
|
|
345
|
+
updateWorkspaceTrust(trusted) {
|
|
346
|
+
if (this.isWorkspaceTrusted !== trusted) {
|
|
347
|
+
this.isWorkspaceTrusted = trusted;
|
|
348
|
+
const data = this._configuration.toData();
|
|
349
|
+
const folderConfigurationModels = [];
|
|
350
|
+
for (const folder of this.workspace.folders) {
|
|
351
|
+
const folderConfiguration = this.cachedFolderConfigs.get(folder.uri);
|
|
352
|
+
let configurationModel;
|
|
353
|
+
if (folderConfiguration) {
|
|
354
|
+
configurationModel = folderConfiguration.updateWorkspaceTrust(this.isWorkspaceTrusted);
|
|
355
|
+
this._configuration.updateFolderConfiguration(folder.uri, configurationModel);
|
|
356
|
+
}
|
|
357
|
+
folderConfigurationModels.push(configurationModel);
|
|
358
|
+
}
|
|
359
|
+
if (this.getWorkbenchState() === 2 ) {
|
|
360
|
+
if (folderConfigurationModels[0]) {
|
|
361
|
+
this._configuration.updateWorkspaceConfiguration(folderConfigurationModels[0]);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
this._configuration.updateWorkspaceConfiguration(this.workspaceConfiguration.updateWorkspaceTrust(this.isWorkspaceTrusted));
|
|
366
|
+
}
|
|
367
|
+
this.updateRestrictedSettings();
|
|
368
|
+
let keys = [];
|
|
369
|
+
if (this.restrictedSettings.userLocal) {
|
|
370
|
+
keys.push(...this.restrictedSettings.userLocal);
|
|
371
|
+
}
|
|
372
|
+
if (this.restrictedSettings.userRemote) {
|
|
373
|
+
keys.push(...this.restrictedSettings.userRemote);
|
|
374
|
+
}
|
|
375
|
+
if (this.restrictedSettings.workspace) {
|
|
376
|
+
keys.push(...this.restrictedSettings.workspace);
|
|
377
|
+
}
|
|
378
|
+
this.restrictedSettings.workspaceFolder?.forEach((value) => keys.push(...value));
|
|
379
|
+
keys = distinct(keys);
|
|
380
|
+
if (keys.length) {
|
|
381
|
+
this.triggerConfigurationChange({ keys, overrides: [] }, { data, workspace: this.workspace }, 5 );
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
acquireInstantiationService(instantiationService) {
|
|
386
|
+
this.instantiationService = instantiationService;
|
|
387
|
+
}
|
|
388
|
+
async createWorkspace(arg) {
|
|
389
|
+
if (isWorkspaceIdentifier(arg)) {
|
|
390
|
+
return this.createMultiFolderWorkspace(arg);
|
|
391
|
+
}
|
|
392
|
+
if (isSingleFolderWorkspaceIdentifier(arg)) {
|
|
393
|
+
return this.createSingleFolderWorkspace(arg);
|
|
394
|
+
}
|
|
395
|
+
return this.createEmptyWorkspace(arg);
|
|
396
|
+
}
|
|
397
|
+
async createMultiFolderWorkspace(workspaceIdentifier) {
|
|
398
|
+
await this.workspaceConfiguration.initialize({ id: workspaceIdentifier.id, configPath: workspaceIdentifier.configPath }, this.isWorkspaceTrusted);
|
|
399
|
+
const workspaceConfigPath = workspaceIdentifier.configPath;
|
|
400
|
+
const workspaceFolders = toWorkspaceFolders(this.workspaceConfiguration.getFolders(), workspaceConfigPath, this.uriIdentityService.extUri);
|
|
401
|
+
const workspaceId = workspaceIdentifier.id;
|
|
402
|
+
const workspace = ( (new Workspace(
|
|
403
|
+
workspaceId,
|
|
404
|
+
workspaceFolders,
|
|
405
|
+
this.workspaceConfiguration.isTransient(),
|
|
406
|
+
workspaceConfigPath,
|
|
407
|
+
uri => this.uriIdentityService.extUri.ignorePathCasing(uri)
|
|
408
|
+
)));
|
|
409
|
+
workspace.initialized = this.workspaceConfiguration.initialized;
|
|
410
|
+
return workspace;
|
|
411
|
+
}
|
|
412
|
+
createSingleFolderWorkspace(singleFolderWorkspaceIdentifier) {
|
|
413
|
+
const workspace = ( (new Workspace(
|
|
414
|
+
singleFolderWorkspaceIdentifier.id,
|
|
415
|
+
[toWorkspaceFolder(singleFolderWorkspaceIdentifier.uri)],
|
|
416
|
+
false,
|
|
417
|
+
null,
|
|
418
|
+
uri => this.uriIdentityService.extUri.ignorePathCasing(uri)
|
|
419
|
+
)));
|
|
420
|
+
workspace.initialized = true;
|
|
421
|
+
return workspace;
|
|
422
|
+
}
|
|
423
|
+
createEmptyWorkspace(emptyWorkspaceIdentifier) {
|
|
424
|
+
const workspace = ( (new Workspace(
|
|
425
|
+
emptyWorkspaceIdentifier.id,
|
|
426
|
+
[],
|
|
427
|
+
false,
|
|
428
|
+
null,
|
|
429
|
+
uri => this.uriIdentityService.extUri.ignorePathCasing(uri)
|
|
430
|
+
)));
|
|
431
|
+
workspace.initialized = true;
|
|
432
|
+
return Promise.resolve(workspace);
|
|
433
|
+
}
|
|
434
|
+
checkAndMarkWorkspaceComplete(fromCache) {
|
|
435
|
+
if (!this.completeWorkspaceBarrier.isOpen() && this.workspace.initialized) {
|
|
436
|
+
this.completeWorkspaceBarrier.open();
|
|
437
|
+
this.validateWorkspaceFoldersAndReload(fromCache);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
async updateWorkspaceAndInitializeConfiguration(workspace) {
|
|
441
|
+
const hasWorkspaceBefore = !!this.workspace;
|
|
442
|
+
let previousState;
|
|
443
|
+
let previousWorkspacePath;
|
|
444
|
+
let previousFolders = [];
|
|
445
|
+
if (hasWorkspaceBefore) {
|
|
446
|
+
previousState = this.getWorkbenchState();
|
|
447
|
+
previousWorkspacePath = this.workspace.configuration ? this.workspace.configuration.fsPath : undefined;
|
|
448
|
+
previousFolders = this.workspace.folders;
|
|
449
|
+
this.workspace.update(workspace);
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
this.workspace = workspace;
|
|
453
|
+
}
|
|
454
|
+
await this.initializeConfiguration();
|
|
455
|
+
if (hasWorkspaceBefore) {
|
|
456
|
+
const newState = this.getWorkbenchState();
|
|
457
|
+
if (previousState && newState !== previousState) {
|
|
458
|
+
this._onDidChangeWorkbenchState.fire(newState);
|
|
459
|
+
}
|
|
460
|
+
const newWorkspacePath = this.workspace.configuration ? this.workspace.configuration.fsPath : undefined;
|
|
461
|
+
if (previousWorkspacePath && newWorkspacePath !== previousWorkspacePath || newState !== previousState) {
|
|
462
|
+
this._onDidChangeWorkspaceName.fire();
|
|
463
|
+
}
|
|
464
|
+
const folderChanges = this.compareFolders(previousFolders, this.workspace.folders);
|
|
465
|
+
if (folderChanges && (folderChanges.added.length || folderChanges.removed.length || folderChanges.changed.length)) {
|
|
466
|
+
await this.handleWillChangeWorkspaceFolders(folderChanges, false);
|
|
467
|
+
this._onDidChangeWorkspaceFolders.fire(folderChanges);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
if (!this.localUserConfiguration.hasTasksLoaded) {
|
|
471
|
+
this._register(runWhenIdle(() => this.reloadLocalUserConfiguration()));
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
compareFolders(currentFolders, newFolders) {
|
|
475
|
+
const result = { added: [], removed: [], changed: [] };
|
|
476
|
+
result.added = newFolders.filter(newFolder => !( (currentFolders.some(
|
|
477
|
+
currentFolder => ( (newFolder.uri.toString())) === ( (currentFolder.uri.toString()))
|
|
478
|
+
))));
|
|
479
|
+
for (let currentIndex = 0; currentIndex < currentFolders.length; currentIndex++) {
|
|
480
|
+
const currentFolder = currentFolders[currentIndex];
|
|
481
|
+
let newIndex = 0;
|
|
482
|
+
for (newIndex = 0; newIndex < newFolders.length && ( (currentFolder.uri.toString())) !== ( (newFolders[newIndex].uri.toString())); newIndex++) { }
|
|
483
|
+
if (newIndex < newFolders.length) {
|
|
484
|
+
if (currentIndex !== newIndex || currentFolder.name !== newFolders[newIndex].name) {
|
|
485
|
+
result.changed.push(currentFolder);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
result.removed.push(currentFolder);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return result;
|
|
493
|
+
}
|
|
494
|
+
async initializeConfiguration() {
|
|
495
|
+
await this.defaultConfiguration.initialize();
|
|
496
|
+
const [, application, user] = await Promise.all([
|
|
497
|
+
this.policyConfiguration.initialize(),
|
|
498
|
+
this.initializeApplicationConfiguration(),
|
|
499
|
+
(async () => {
|
|
500
|
+
mark('code/willInitUserConfiguration');
|
|
501
|
+
const result = await this.initializeUserConfiguration();
|
|
502
|
+
mark('code/didInitUserConfiguration');
|
|
503
|
+
return result;
|
|
504
|
+
})()
|
|
505
|
+
]);
|
|
506
|
+
mark('code/willInitWorkspaceConfiguration');
|
|
507
|
+
await this.loadConfiguration(application, user.local, user.remote);
|
|
508
|
+
mark('code/didInitWorkspaceConfiguration');
|
|
509
|
+
}
|
|
510
|
+
async initializeApplicationConfiguration() {
|
|
511
|
+
return this.applicationConfiguration ? this.applicationConfiguration.initialize() : Promise.resolve(( (new ConfigurationModel())));
|
|
512
|
+
}
|
|
513
|
+
async initializeUserConfiguration() {
|
|
514
|
+
const [local, remote] = await Promise.all([this.localUserConfiguration.initialize(), this.remoteUserConfiguration ? this.remoteUserConfiguration.initialize() : Promise.resolve(( (new ConfigurationModel())))]);
|
|
515
|
+
return { local, remote };
|
|
516
|
+
}
|
|
517
|
+
reloadDefaultConfiguration() {
|
|
518
|
+
this.onDefaultConfigurationChanged(this.defaultConfiguration.reload());
|
|
519
|
+
}
|
|
520
|
+
async reloadApplicationConfiguration(donotTrigger) {
|
|
521
|
+
if (!this.applicationConfiguration) {
|
|
522
|
+
return (
|
|
523
|
+
(new ConfigurationModel())
|
|
524
|
+
);
|
|
525
|
+
}
|
|
526
|
+
const model = await this.applicationConfiguration.reload();
|
|
527
|
+
if (!donotTrigger) {
|
|
528
|
+
this.onApplicationConfigurationChanged(model);
|
|
529
|
+
}
|
|
530
|
+
return model;
|
|
531
|
+
}
|
|
532
|
+
async reloadUserConfiguration() {
|
|
533
|
+
const [local, remote] = await Promise.all([this.reloadLocalUserConfiguration(true), this.reloadRemoteUserConfiguration(true)]);
|
|
534
|
+
return { local, remote };
|
|
535
|
+
}
|
|
536
|
+
async reloadLocalUserConfiguration(donotTrigger) {
|
|
537
|
+
const model = await this.localUserConfiguration.reload();
|
|
538
|
+
if (!donotTrigger) {
|
|
539
|
+
this.onLocalUserConfigurationChanged(model);
|
|
540
|
+
}
|
|
541
|
+
return model;
|
|
542
|
+
}
|
|
543
|
+
async reloadRemoteUserConfiguration(donotTrigger) {
|
|
544
|
+
if (this.remoteUserConfiguration) {
|
|
545
|
+
const model = await this.remoteUserConfiguration.reload();
|
|
546
|
+
if (!donotTrigger) {
|
|
547
|
+
this.onRemoteUserConfigurationChanged(model);
|
|
548
|
+
}
|
|
549
|
+
return model;
|
|
550
|
+
}
|
|
551
|
+
return (
|
|
552
|
+
(new ConfigurationModel())
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
async reloadWorkspaceConfiguration() {
|
|
556
|
+
const workbenchState = this.getWorkbenchState();
|
|
557
|
+
if (workbenchState === 2 ) {
|
|
558
|
+
return this.onWorkspaceFolderConfigurationChanged(this.workspace.folders[0]);
|
|
559
|
+
}
|
|
560
|
+
if (workbenchState === 3 ) {
|
|
561
|
+
return this.workspaceConfiguration.reload().then(() => this.onWorkspaceConfigurationChanged(false));
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
reloadWorkspaceFolderConfiguration(folder) {
|
|
565
|
+
return this.onWorkspaceFolderConfigurationChanged(folder);
|
|
566
|
+
}
|
|
567
|
+
async loadConfiguration(applicationConfigurationModel, userConfigurationModel, remoteUserConfigurationModel) {
|
|
568
|
+
this.cachedFolderConfigs = ( (new ResourceMap()));
|
|
569
|
+
const folders = this.workspace.folders;
|
|
570
|
+
const folderConfigurations = await this.loadFolderConfigurations(folders);
|
|
571
|
+
const workspaceConfiguration = this.getWorkspaceConfigurationModel(folderConfigurations);
|
|
572
|
+
const folderConfigurationModels = ( (new ResourceMap()));
|
|
573
|
+
folderConfigurations.forEach((folderConfiguration, index) => folderConfigurationModels.set(folders[index].uri, folderConfiguration));
|
|
574
|
+
const currentConfiguration = this._configuration;
|
|
575
|
+
this._configuration = ( (new Configuration(
|
|
576
|
+
this.defaultConfiguration.configurationModel,
|
|
577
|
+
this.policyConfiguration.configurationModel,
|
|
578
|
+
applicationConfigurationModel,
|
|
579
|
+
userConfigurationModel,
|
|
580
|
+
remoteUserConfigurationModel,
|
|
581
|
+
workspaceConfiguration,
|
|
582
|
+
folderConfigurationModels,
|
|
583
|
+
(new ConfigurationModel()),
|
|
584
|
+
(new ResourceMap()),
|
|
585
|
+
this.workspace
|
|
586
|
+
)));
|
|
587
|
+
if (this.initialized) {
|
|
588
|
+
const change = this._configuration.compare(currentConfiguration);
|
|
589
|
+
this.triggerConfigurationChange(change, { data: currentConfiguration.toData(), workspace: this.workspace }, 5 );
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
this.initialized = true;
|
|
593
|
+
}
|
|
594
|
+
this.updateRestrictedSettings();
|
|
595
|
+
}
|
|
596
|
+
getWorkspaceConfigurationModel(folderConfigurations) {
|
|
597
|
+
switch (this.getWorkbenchState()) {
|
|
598
|
+
case 2 :
|
|
599
|
+
return folderConfigurations[0];
|
|
600
|
+
case 3 :
|
|
601
|
+
return this.workspaceConfiguration.getConfiguration();
|
|
602
|
+
default:
|
|
603
|
+
return (
|
|
604
|
+
(new ConfigurationModel())
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
onUserDataProfileChanged(e) {
|
|
609
|
+
e.join((async () => {
|
|
610
|
+
if (e.preserveData) {
|
|
611
|
+
await Promise.all([
|
|
612
|
+
this.copyProfileSettings(e.previous.settingsResource, e.profile.settingsResource),
|
|
613
|
+
this.copyProfileTasks(e.previous.tasksResource, e.profile.tasksResource)
|
|
614
|
+
]);
|
|
615
|
+
}
|
|
616
|
+
const promises = [];
|
|
617
|
+
promises.push(this.localUserConfiguration.reset(e.profile.settingsResource, e.profile.tasksResource, getLocalUserConfigurationScopes(e.profile, !!this.remoteUserConfiguration)));
|
|
618
|
+
if (e.previous.isDefault !== e.profile.isDefault) {
|
|
619
|
+
this.createApplicationConfiguration();
|
|
620
|
+
if (this.applicationConfiguration) {
|
|
621
|
+
promises.push(this.reloadApplicationConfiguration(true));
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
const [localUser, application] = await Promise.all(promises);
|
|
625
|
+
await this.loadConfiguration(application ?? this._configuration.applicationConfiguration, localUser, this._configuration.remoteUserConfiguration);
|
|
626
|
+
})());
|
|
627
|
+
}
|
|
628
|
+
async copyProfileSettings(from, to) {
|
|
629
|
+
let fromContent;
|
|
630
|
+
try {
|
|
631
|
+
fromContent = ( ((await this.fileService.readFile(from)).value.toString()));
|
|
632
|
+
}
|
|
633
|
+
catch (error) {
|
|
634
|
+
if (error.fileOperationResult !== 1 ) {
|
|
635
|
+
throw error;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
if (!fromContent) {
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
641
|
+
const allSettings = ( (Registry.as(Extensions$1.Configuration))).getConfigurationProperties();
|
|
642
|
+
const applicationSettings = ( (Object.keys(allSettings))).filter(key => allSettings[key]?.scope === 1 );
|
|
643
|
+
const toContent = updateIgnoredSettings(fromContent, '{}', applicationSettings, {});
|
|
644
|
+
await this.fileService.writeFile(to, VSBuffer.fromString(toContent));
|
|
645
|
+
}
|
|
646
|
+
async copyProfileTasks(from, to) {
|
|
647
|
+
if (await this.fileService.exists(from)) {
|
|
648
|
+
await this.fileService.copy(from, to);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
onDefaultConfigurationChanged(configurationModel, properties) {
|
|
652
|
+
if (this.workspace) {
|
|
653
|
+
const previousData = this._configuration.toData();
|
|
654
|
+
const change = this._configuration.compareAndUpdateDefaultConfiguration(configurationModel, properties);
|
|
655
|
+
if (this.applicationConfiguration) {
|
|
656
|
+
this._configuration.updateApplicationConfiguration(this.applicationConfiguration.reparse());
|
|
657
|
+
}
|
|
658
|
+
if (this.remoteUserConfiguration) {
|
|
659
|
+
this._configuration.updateLocalUserConfiguration(this.localUserConfiguration.reparse());
|
|
660
|
+
this._configuration.updateRemoteUserConfiguration(this.remoteUserConfiguration.reparse());
|
|
661
|
+
}
|
|
662
|
+
if (this.getWorkbenchState() === 2 ) {
|
|
663
|
+
const folderConfiguration = this.cachedFolderConfigs.get(this.workspace.folders[0].uri);
|
|
664
|
+
if (folderConfiguration) {
|
|
665
|
+
this._configuration.updateWorkspaceConfiguration(folderConfiguration.reparse());
|
|
666
|
+
this._configuration.updateFolderConfiguration(this.workspace.folders[0].uri, folderConfiguration.reparse());
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
else {
|
|
670
|
+
this._configuration.updateWorkspaceConfiguration(this.workspaceConfiguration.reparseWorkspaceSettings());
|
|
671
|
+
for (const folder of this.workspace.folders) {
|
|
672
|
+
const folderConfiguration = this.cachedFolderConfigs.get(folder.uri);
|
|
673
|
+
if (folderConfiguration) {
|
|
674
|
+
this._configuration.updateFolderConfiguration(folder.uri, folderConfiguration.reparse());
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
this.triggerConfigurationChange(change, { data: previousData, workspace: this.workspace }, 7 );
|
|
679
|
+
this.updateRestrictedSettings();
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
onPolicyConfigurationChanged(policyConfiguration) {
|
|
683
|
+
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
684
|
+
const change = this._configuration.compareAndUpdatePolicyConfiguration(policyConfiguration);
|
|
685
|
+
this.triggerConfigurationChange(change, previous, 7 );
|
|
686
|
+
}
|
|
687
|
+
onApplicationConfigurationChanged(applicationConfiguration) {
|
|
688
|
+
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
689
|
+
const change = this._configuration.compareAndUpdateApplicationConfiguration(applicationConfiguration);
|
|
690
|
+
const configurationProperties = this.configurationRegistry.getConfigurationProperties();
|
|
691
|
+
change.keys = change.keys.filter(key => configurationProperties[key]?.scope === 1 );
|
|
692
|
+
this.triggerConfigurationChange(change, previous, 2 );
|
|
693
|
+
}
|
|
694
|
+
onLocalUserConfigurationChanged(userConfiguration) {
|
|
695
|
+
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
696
|
+
const change = this._configuration.compareAndUpdateLocalUserConfiguration(userConfiguration);
|
|
697
|
+
this.triggerConfigurationChange(change, previous, 2 );
|
|
698
|
+
}
|
|
699
|
+
onRemoteUserConfigurationChanged(userConfiguration) {
|
|
700
|
+
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
701
|
+
const change = this._configuration.compareAndUpdateRemoteUserConfiguration(userConfiguration);
|
|
702
|
+
this.triggerConfigurationChange(change, previous, 2 );
|
|
703
|
+
}
|
|
704
|
+
async onWorkspaceConfigurationChanged(fromCache) {
|
|
705
|
+
if (this.workspace && this.workspace.configuration) {
|
|
706
|
+
let newFolders = toWorkspaceFolders(this.workspaceConfiguration.getFolders(), this.workspace.configuration, this.uriIdentityService.extUri);
|
|
707
|
+
if (this.workspace.initialized) {
|
|
708
|
+
const { added, removed, changed } = this.compareFolders(this.workspace.folders, newFolders);
|
|
709
|
+
if (added.length || removed.length || changed.length) {
|
|
710
|
+
newFolders = await this.toValidWorkspaceFolders(newFolders);
|
|
711
|
+
}
|
|
712
|
+
else {
|
|
713
|
+
newFolders = this.workspace.folders;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
await this.updateWorkspaceConfiguration(newFolders, this.workspaceConfiguration.getConfiguration(), fromCache);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
updateRestrictedSettings() {
|
|
720
|
+
const changed = [];
|
|
721
|
+
const allProperties = this.configurationRegistry.getConfigurationProperties();
|
|
722
|
+
const defaultRestrictedSettings = ( (Object.keys(allProperties))).filter(key => allProperties[key].restricted).sort((a, b) => a.localeCompare(b));
|
|
723
|
+
const defaultDelta = delta(defaultRestrictedSettings, this._restrictedSettings.default, (a, b) => a.localeCompare(b));
|
|
724
|
+
changed.push(...defaultDelta.added, ...defaultDelta.removed);
|
|
725
|
+
const application = (this.applicationConfiguration?.getRestrictedSettings() || []).sort((a, b) => a.localeCompare(b));
|
|
726
|
+
const applicationDelta = delta(application, this._restrictedSettings.application || [], (a, b) => a.localeCompare(b));
|
|
727
|
+
changed.push(...applicationDelta.added, ...applicationDelta.removed);
|
|
728
|
+
const userLocal = this.localUserConfiguration.getRestrictedSettings().sort((a, b) => a.localeCompare(b));
|
|
729
|
+
const userLocalDelta = delta(userLocal, this._restrictedSettings.userLocal || [], (a, b) => a.localeCompare(b));
|
|
730
|
+
changed.push(...userLocalDelta.added, ...userLocalDelta.removed);
|
|
731
|
+
const userRemote = (this.remoteUserConfiguration?.getRestrictedSettings() || []).sort((a, b) => a.localeCompare(b));
|
|
732
|
+
const userRemoteDelta = delta(userRemote, this._restrictedSettings.userRemote || [], (a, b) => a.localeCompare(b));
|
|
733
|
+
changed.push(...userRemoteDelta.added, ...userRemoteDelta.removed);
|
|
734
|
+
const workspaceFolderMap = ( (new ResourceMap()));
|
|
735
|
+
for (const workspaceFolder of this.workspace.folders) {
|
|
736
|
+
const cachedFolderConfig = this.cachedFolderConfigs.get(workspaceFolder.uri);
|
|
737
|
+
const folderRestrictedSettings = (cachedFolderConfig?.getRestrictedSettings() || []).sort((a, b) => a.localeCompare(b));
|
|
738
|
+
if (folderRestrictedSettings.length) {
|
|
739
|
+
workspaceFolderMap.set(workspaceFolder.uri, folderRestrictedSettings);
|
|
740
|
+
}
|
|
741
|
+
const previous = this._restrictedSettings.workspaceFolder?.get(workspaceFolder.uri) || [];
|
|
742
|
+
const workspaceFolderDelta = delta(folderRestrictedSettings, previous, (a, b) => a.localeCompare(b));
|
|
743
|
+
changed.push(...workspaceFolderDelta.added, ...workspaceFolderDelta.removed);
|
|
744
|
+
}
|
|
745
|
+
const workspace = this.getWorkbenchState() === 3 ? this.workspaceConfiguration.getRestrictedSettings().sort((a, b) => a.localeCompare(b))
|
|
746
|
+
: this.workspace.folders[0] ? (workspaceFolderMap.get(this.workspace.folders[0].uri) || []) : [];
|
|
747
|
+
const workspaceDelta = delta(workspace, this._restrictedSettings.workspace || [], (a, b) => a.localeCompare(b));
|
|
748
|
+
changed.push(...workspaceDelta.added, ...workspaceDelta.removed);
|
|
749
|
+
if (changed.length) {
|
|
750
|
+
this._restrictedSettings = {
|
|
751
|
+
default: defaultRestrictedSettings,
|
|
752
|
+
application: application.length ? application : undefined,
|
|
753
|
+
userLocal: userLocal.length ? userLocal : undefined,
|
|
754
|
+
userRemote: userRemote.length ? userRemote : undefined,
|
|
755
|
+
workspace: workspace.length ? workspace : undefined,
|
|
756
|
+
workspaceFolder: workspaceFolderMap.size ? workspaceFolderMap : undefined,
|
|
757
|
+
};
|
|
758
|
+
this._onDidChangeRestrictedSettings.fire(this.restrictedSettings);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
async updateWorkspaceConfiguration(workspaceFolders, configuration, fromCache) {
|
|
762
|
+
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
763
|
+
const change = this._configuration.compareAndUpdateWorkspaceConfiguration(configuration);
|
|
764
|
+
const changes = this.compareFolders(this.workspace.folders, workspaceFolders);
|
|
765
|
+
if (changes.added.length || changes.removed.length || changes.changed.length) {
|
|
766
|
+
this.workspace.folders = workspaceFolders;
|
|
767
|
+
const change = await this.onFoldersChanged();
|
|
768
|
+
await this.handleWillChangeWorkspaceFolders(changes, fromCache);
|
|
769
|
+
this.triggerConfigurationChange(change, previous, 6 );
|
|
770
|
+
this._onDidChangeWorkspaceFolders.fire(changes);
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
this.triggerConfigurationChange(change, previous, 5 );
|
|
774
|
+
}
|
|
775
|
+
this.updateRestrictedSettings();
|
|
776
|
+
}
|
|
777
|
+
async handleWillChangeWorkspaceFolders(changes, fromCache) {
|
|
778
|
+
const joiners = [];
|
|
779
|
+
this._onWillChangeWorkspaceFolders.fire({
|
|
780
|
+
join(updateWorkspaceTrustStatePromise) {
|
|
781
|
+
joiners.push(updateWorkspaceTrustStatePromise);
|
|
782
|
+
},
|
|
783
|
+
changes,
|
|
784
|
+
fromCache
|
|
785
|
+
});
|
|
786
|
+
try {
|
|
787
|
+
await Promises.settled(joiners);
|
|
788
|
+
}
|
|
789
|
+
catch (error) { }
|
|
790
|
+
}
|
|
791
|
+
async onWorkspaceFolderConfigurationChanged(folder) {
|
|
792
|
+
const [folderConfiguration] = await this.loadFolderConfigurations([folder]);
|
|
793
|
+
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
794
|
+
const folderConfigurationChange = this._configuration.compareAndUpdateFolderConfiguration(folder.uri, folderConfiguration);
|
|
795
|
+
if (this.getWorkbenchState() === 2 ) {
|
|
796
|
+
const workspaceConfigurationChange = this._configuration.compareAndUpdateWorkspaceConfiguration(folderConfiguration);
|
|
797
|
+
this.triggerConfigurationChange(mergeChanges(folderConfigurationChange, workspaceConfigurationChange), previous, 5 );
|
|
798
|
+
}
|
|
799
|
+
else {
|
|
800
|
+
this.triggerConfigurationChange(folderConfigurationChange, previous, 6 );
|
|
801
|
+
}
|
|
802
|
+
this.updateRestrictedSettings();
|
|
803
|
+
}
|
|
804
|
+
async onFoldersChanged() {
|
|
805
|
+
const changes = [];
|
|
806
|
+
for (const key of ( (this.cachedFolderConfigs.keys()))) {
|
|
807
|
+
if (!this.workspace.folders.filter(folder => ( (folder.uri.toString())) === ( (key.toString())))[0]) {
|
|
808
|
+
const folderConfiguration = this.cachedFolderConfigs.get(key);
|
|
809
|
+
folderConfiguration.dispose();
|
|
810
|
+
this.cachedFolderConfigs.delete(key);
|
|
811
|
+
changes.push(this._configuration.compareAndDeleteFolderConfiguration(key));
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
const toInitialize = this.workspace.folders.filter(folder => !this.cachedFolderConfigs.has(folder.uri));
|
|
815
|
+
if (toInitialize.length) {
|
|
816
|
+
const folderConfigurations = await this.loadFolderConfigurations(toInitialize);
|
|
817
|
+
folderConfigurations.forEach((folderConfiguration, index) => {
|
|
818
|
+
changes.push(this._configuration.compareAndUpdateFolderConfiguration(toInitialize[index].uri, folderConfiguration));
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
return mergeChanges(...changes);
|
|
822
|
+
}
|
|
823
|
+
loadFolderConfigurations(folders) {
|
|
824
|
+
return Promise.all([...( (folders.map(folder => {
|
|
825
|
+
let folderConfiguration = this.cachedFolderConfigs.get(folder.uri);
|
|
826
|
+
if (!folderConfiguration) {
|
|
827
|
+
folderConfiguration = ( (new FolderConfiguration(
|
|
828
|
+
!this.initialized,
|
|
829
|
+
folder,
|
|
830
|
+
FOLDER_CONFIG_FOLDER_NAME,
|
|
831
|
+
this.getWorkbenchState(),
|
|
832
|
+
this.isWorkspaceTrusted,
|
|
833
|
+
this.fileService,
|
|
834
|
+
this.uriIdentityService,
|
|
835
|
+
this.logService,
|
|
836
|
+
this.configurationCache
|
|
837
|
+
)));
|
|
838
|
+
this._register(folderConfiguration.onDidChange(() => this.onWorkspaceFolderConfigurationChanged(folder)));
|
|
839
|
+
this.cachedFolderConfigs.set(folder.uri, this._register(folderConfiguration));
|
|
840
|
+
}
|
|
841
|
+
return folderConfiguration.loadConfiguration();
|
|
842
|
+
})))]);
|
|
843
|
+
}
|
|
844
|
+
async validateWorkspaceFoldersAndReload(fromCache) {
|
|
845
|
+
const validWorkspaceFolders = await this.toValidWorkspaceFolders(this.workspace.folders);
|
|
846
|
+
const { removed } = this.compareFolders(this.workspace.folders, validWorkspaceFolders);
|
|
847
|
+
if (removed.length) {
|
|
848
|
+
await this.updateWorkspaceConfiguration(validWorkspaceFolders, this.workspaceConfiguration.getConfiguration(), fromCache);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
async toValidWorkspaceFolders(workspaceFolders) {
|
|
852
|
+
const validWorkspaceFolders = [];
|
|
853
|
+
for (const workspaceFolder of workspaceFolders) {
|
|
854
|
+
try {
|
|
855
|
+
const result = await this.fileService.stat(workspaceFolder.uri);
|
|
856
|
+
if (!result.isDirectory) {
|
|
857
|
+
continue;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
catch (e) {
|
|
861
|
+
this.logService.warn(`Ignoring the error while validating workspace folder ${( ( workspaceFolder.uri.toString()))} - ${toErrorMessage(e)}`);
|
|
862
|
+
}
|
|
863
|
+
validWorkspaceFolders.push(workspaceFolder);
|
|
864
|
+
}
|
|
865
|
+
return validWorkspaceFolders;
|
|
866
|
+
}
|
|
867
|
+
async writeConfigurationValue(key, value, target, overrides, options) {
|
|
868
|
+
if (!this.instantiationService) {
|
|
869
|
+
throw new Error('Cannot write configuration because the configuration service is not yet ready to accept writes.');
|
|
870
|
+
}
|
|
871
|
+
if (target === 7 ) {
|
|
872
|
+
throw new Error('Invalid configuration target');
|
|
873
|
+
}
|
|
874
|
+
if (target === 8 ) {
|
|
875
|
+
const previous = { data: this._configuration.toData(), workspace: this.workspace };
|
|
876
|
+
this._configuration.updateValue(key, value, overrides);
|
|
877
|
+
this.triggerConfigurationChange({ keys: overrides?.overrideIdentifiers?.length ? [keyFromOverrideIdentifiers(overrides.overrideIdentifiers), key] : [key], overrides: overrides?.overrideIdentifiers?.length ? ( (overrides.overrideIdentifiers.map(overrideIdentifier => ([overrideIdentifier, [key]])))) : [] }, previous, target);
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
const editableConfigurationTarget = this.toEditableConfigurationTarget(target, key);
|
|
881
|
+
if (!editableConfigurationTarget) {
|
|
882
|
+
throw new Error('Invalid configuration target');
|
|
883
|
+
}
|
|
884
|
+
if (editableConfigurationTarget === 2 && !this.remoteUserConfiguration) {
|
|
885
|
+
throw new Error('Invalid configuration target');
|
|
886
|
+
}
|
|
887
|
+
this.configurationEditing = this.configurationEditing ?? this.instantiationService.createInstance(ConfigurationEditing, (await this.remoteAgentService.getEnvironment())?.settingsPath ?? null);
|
|
888
|
+
await this.configurationEditing.writeConfiguration(editableConfigurationTarget, { key, value }, { scopes: overrides, ...options });
|
|
889
|
+
switch (editableConfigurationTarget) {
|
|
890
|
+
case 1 :
|
|
891
|
+
if (this.applicationConfiguration && this.configurationRegistry.getConfigurationProperties()[key].scope === 1 ) {
|
|
892
|
+
await this.reloadApplicationConfiguration();
|
|
893
|
+
}
|
|
894
|
+
else {
|
|
895
|
+
await this.reloadLocalUserConfiguration();
|
|
896
|
+
}
|
|
897
|
+
return;
|
|
898
|
+
case 2 :
|
|
899
|
+
return this.reloadRemoteUserConfiguration().then(() => undefined);
|
|
900
|
+
case 3 :
|
|
901
|
+
return this.reloadWorkspaceConfiguration();
|
|
902
|
+
case 4 : {
|
|
903
|
+
const workspaceFolder = overrides && overrides.resource ? this.workspace.getFolder(overrides.resource) : null;
|
|
904
|
+
if (workspaceFolder) {
|
|
905
|
+
return this.reloadWorkspaceFolderConfiguration(workspaceFolder);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
deriveConfigurationTargets(key, value, inspect) {
|
|
911
|
+
if (equals(value, inspect.value)) {
|
|
912
|
+
return [];
|
|
913
|
+
}
|
|
914
|
+
const definedTargets = [];
|
|
915
|
+
if (inspect.workspaceFolderValue !== undefined) {
|
|
916
|
+
definedTargets.push(6 );
|
|
917
|
+
}
|
|
918
|
+
if (inspect.workspaceValue !== undefined) {
|
|
919
|
+
definedTargets.push(5 );
|
|
920
|
+
}
|
|
921
|
+
if (inspect.userRemoteValue !== undefined) {
|
|
922
|
+
definedTargets.push(4 );
|
|
923
|
+
}
|
|
924
|
+
if (inspect.userLocalValue !== undefined) {
|
|
925
|
+
definedTargets.push(3 );
|
|
926
|
+
}
|
|
927
|
+
if (value === undefined) {
|
|
928
|
+
return definedTargets;
|
|
929
|
+
}
|
|
930
|
+
return [definedTargets[0] || 2 ];
|
|
931
|
+
}
|
|
932
|
+
triggerConfigurationChange(change, previous, target) {
|
|
933
|
+
if (change.keys.length) {
|
|
934
|
+
if (target !== 7 ) {
|
|
935
|
+
this.logService.debug(`Configuration keys changed in ${ConfigurationTargetToString(target)} target`, ...change.keys);
|
|
936
|
+
}
|
|
937
|
+
const configurationChangeEvent = ( (new ConfigurationChangeEvent(change, previous, this._configuration, this.workspace)));
|
|
938
|
+
configurationChangeEvent.source = target;
|
|
939
|
+
configurationChangeEvent.sourceConfig = this.getTargetConfiguration(target);
|
|
940
|
+
this._onDidChangeConfiguration.fire(configurationChangeEvent);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
getTargetConfiguration(target) {
|
|
944
|
+
switch (target) {
|
|
945
|
+
case 7 :
|
|
946
|
+
return this._configuration.defaults.contents;
|
|
947
|
+
case 2 :
|
|
948
|
+
return this._configuration.userConfiguration.contents;
|
|
949
|
+
case 5 :
|
|
950
|
+
return this._configuration.workspaceConfiguration.contents;
|
|
951
|
+
}
|
|
952
|
+
return {};
|
|
953
|
+
}
|
|
954
|
+
toEditableConfigurationTarget(target, key) {
|
|
955
|
+
if (target === 2 ) {
|
|
956
|
+
if (this.remoteUserConfiguration) {
|
|
957
|
+
const scope = this.configurationRegistry.getConfigurationProperties()[key]?.scope;
|
|
958
|
+
if (scope === 2 || scope === 6 ) {
|
|
959
|
+
return 2 ;
|
|
960
|
+
}
|
|
961
|
+
if (this.inspect(key).userRemoteValue !== undefined) {
|
|
962
|
+
return 2 ;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
return 1 ;
|
|
966
|
+
}
|
|
967
|
+
if (target === 3 ) {
|
|
968
|
+
return 1 ;
|
|
969
|
+
}
|
|
970
|
+
if (target === 4 ) {
|
|
971
|
+
return 2 ;
|
|
972
|
+
}
|
|
973
|
+
if (target === 5 ) {
|
|
974
|
+
return 3 ;
|
|
975
|
+
}
|
|
976
|
+
if (target === 6 ) {
|
|
977
|
+
return 4 ;
|
|
978
|
+
}
|
|
979
|
+
return null;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
let RegisterConfigurationSchemasContribution = class RegisterConfigurationSchemasContribution extends Disposable {
|
|
983
|
+
constructor(workspaceContextService, environmentService, workspaceTrustManagementService, extensionService, lifecycleService) {
|
|
984
|
+
super();
|
|
985
|
+
this.workspaceContextService = workspaceContextService;
|
|
986
|
+
this.environmentService = environmentService;
|
|
987
|
+
this.workspaceTrustManagementService = workspaceTrustManagementService;
|
|
988
|
+
extensionService.whenInstalledExtensionsRegistered().then(() => {
|
|
989
|
+
this.registerConfigurationSchemas();
|
|
990
|
+
const configurationRegistry = ( (Registry.as(Extensions$1.Configuration)));
|
|
991
|
+
const delayer = this._register(( (new Delayer(50))));
|
|
992
|
+
this._register(Event.any(configurationRegistry.onDidUpdateConfiguration, configurationRegistry.onDidSchemaChange, workspaceTrustManagementService.onDidChangeTrust)(() => delayer.trigger(() => this.registerConfigurationSchemas(), lifecycleService.phase === 4 ? undefined : 2500 )));
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
registerConfigurationSchemas() {
|
|
996
|
+
const jsonRegistry = ( (Registry.as(Extensions$2.JSONContribution)));
|
|
997
|
+
const allSettingsSchema = {
|
|
998
|
+
properties: allSettings.properties,
|
|
999
|
+
patternProperties: allSettings.patternProperties,
|
|
1000
|
+
additionalProperties: true,
|
|
1001
|
+
allowTrailingCommas: true,
|
|
1002
|
+
allowComments: true
|
|
1003
|
+
};
|
|
1004
|
+
const userSettingsSchema = this.environmentService.remoteAuthority ?
|
|
1005
|
+
{
|
|
1006
|
+
properties: Object.assign({}, applicationSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1007
|
+
patternProperties: allSettings.patternProperties,
|
|
1008
|
+
additionalProperties: true,
|
|
1009
|
+
allowTrailingCommas: true,
|
|
1010
|
+
allowComments: true
|
|
1011
|
+
}
|
|
1012
|
+
: allSettingsSchema;
|
|
1013
|
+
const profileSettingsSchema = {
|
|
1014
|
+
properties: Object.assign({}, machineSettings.properties, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1015
|
+
patternProperties: allSettings.patternProperties,
|
|
1016
|
+
additionalProperties: true,
|
|
1017
|
+
allowTrailingCommas: true,
|
|
1018
|
+
allowComments: true
|
|
1019
|
+
};
|
|
1020
|
+
const machineSettingsSchema = {
|
|
1021
|
+
properties: Object.assign({}, machineSettings.properties, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1022
|
+
patternProperties: allSettings.patternProperties,
|
|
1023
|
+
additionalProperties: true,
|
|
1024
|
+
allowTrailingCommas: true,
|
|
1025
|
+
allowComments: true
|
|
1026
|
+
};
|
|
1027
|
+
const workspaceSettingsSchema = {
|
|
1028
|
+
properties: Object.assign({}, this.checkAndFilterPropertiesRequiringTrust(machineOverridableSettings.properties), this.checkAndFilterPropertiesRequiringTrust(windowSettings.properties), this.checkAndFilterPropertiesRequiringTrust(resourceSettings.properties)),
|
|
1029
|
+
patternProperties: allSettings.patternProperties,
|
|
1030
|
+
additionalProperties: true,
|
|
1031
|
+
allowTrailingCommas: true,
|
|
1032
|
+
allowComments: true
|
|
1033
|
+
};
|
|
1034
|
+
jsonRegistry.registerSchema(defaultSettingsSchemaId, {
|
|
1035
|
+
properties: ( (Object.keys(allSettings.properties))).reduce((result, key) => {
|
|
1036
|
+
result[key] = Object.assign({ deprecationMessage: undefined }, allSettings.properties[key]);
|
|
1037
|
+
return result;
|
|
1038
|
+
}, {}),
|
|
1039
|
+
patternProperties: ( (Object.keys(allSettings.patternProperties))).reduce((result, key) => {
|
|
1040
|
+
result[key] = Object.assign({ deprecationMessage: undefined }, allSettings.patternProperties[key]);
|
|
1041
|
+
return result;
|
|
1042
|
+
}, {}),
|
|
1043
|
+
additionalProperties: true,
|
|
1044
|
+
allowTrailingCommas: true,
|
|
1045
|
+
allowComments: true
|
|
1046
|
+
});
|
|
1047
|
+
jsonRegistry.registerSchema(userSettingsSchemaId, userSettingsSchema);
|
|
1048
|
+
jsonRegistry.registerSchema(profileSettingsSchemaId, profileSettingsSchema);
|
|
1049
|
+
jsonRegistry.registerSchema(machineSettingsSchemaId, machineSettingsSchema);
|
|
1050
|
+
if (3 === this.workspaceContextService.getWorkbenchState()) {
|
|
1051
|
+
const folderSettingsSchema = {
|
|
1052
|
+
properties: Object.assign({}, this.checkAndFilterPropertiesRequiringTrust(machineOverridableSettings.properties), this.checkAndFilterPropertiesRequiringTrust(resourceSettings.properties)),
|
|
1053
|
+
patternProperties: allSettings.patternProperties,
|
|
1054
|
+
additionalProperties: true,
|
|
1055
|
+
allowTrailingCommas: true,
|
|
1056
|
+
allowComments: true
|
|
1057
|
+
};
|
|
1058
|
+
jsonRegistry.registerSchema(workspaceSettingsSchemaId, workspaceSettingsSchema);
|
|
1059
|
+
jsonRegistry.registerSchema(folderSettingsSchemaId, folderSettingsSchema);
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
jsonRegistry.registerSchema(workspaceSettingsSchemaId, workspaceSettingsSchema);
|
|
1063
|
+
jsonRegistry.registerSchema(folderSettingsSchemaId, workspaceSettingsSchema);
|
|
1064
|
+
}
|
|
1065
|
+
jsonRegistry.registerSchema(configurationDefaultsSchemaId, {
|
|
1066
|
+
type: 'object',
|
|
1067
|
+
description: ( (localize(
|
|
1068
|
+
'configurationDefaults.description',
|
|
1069
|
+
'Contribute defaults for configurations'
|
|
1070
|
+
))),
|
|
1071
|
+
properties: Object.assign({}, machineOverridableSettings.properties, windowSettings.properties, resourceSettings.properties),
|
|
1072
|
+
patternProperties: {
|
|
1073
|
+
[OVERRIDE_PROPERTY_PATTERN]: {
|
|
1074
|
+
type: 'object',
|
|
1075
|
+
default: {},
|
|
1076
|
+
$ref: resourceLanguageSettingsSchemaId,
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
additionalProperties: false
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
checkAndFilterPropertiesRequiringTrust(properties) {
|
|
1083
|
+
if (this.workspaceTrustManagementService.isWorkspaceTrusted()) {
|
|
1084
|
+
return properties;
|
|
1085
|
+
}
|
|
1086
|
+
const result = {};
|
|
1087
|
+
Object.entries(properties).forEach(([key, value]) => {
|
|
1088
|
+
if (!value.restricted) {
|
|
1089
|
+
result[key] = value;
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
return result;
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
RegisterConfigurationSchemasContribution = ( (__decorate([
|
|
1096
|
+
( (__param(0, IWorkspaceContextService))),
|
|
1097
|
+
( (__param(1, IWorkbenchEnvironmentService))),
|
|
1098
|
+
( (__param(2, IWorkspaceTrustManagementService))),
|
|
1099
|
+
( (__param(3, IExtensionService))),
|
|
1100
|
+
( (__param(4, ILifecycleService)))
|
|
1101
|
+
], RegisterConfigurationSchemasContribution)));
|
|
1102
|
+
const workbenchContributionsRegistry = ( (Registry.as(Extensions.Workbench)));
|
|
1103
|
+
workbenchContributionsRegistry.registerWorkbenchContribution(RegisterConfigurationSchemasContribution, 3 );
|
|
1104
|
+
export { WorkspaceService };
|