@codingame/monaco-vscode-api 1.78.4 → 1.78.5-next.0
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/json.js +713 -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/performance.js +18 -0
- package/dist/vscode/vs/base/common/skipList.js +160 -0
- package/dist/vscode/vs/base/common/stream.js +300 -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/product/common/productService.js +4 -0
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +17 -0
- package/dist/vscode/vs/platform/remote/common/remoteHosts.js +18 -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/uriIdentity.js +3 -0
- package/dist/vscode/vs/platform/uriIdentity/common/uriIdentityService.js +80 -0
- package/dist/vscode/vs/platform/userDataProfile/common/userDataProfile.js +427 -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 +55 -59
- 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,1766 @@
|
|
|
1
|
+
import { coalesce, asArray, isNonEmptyArray } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
2
|
+
import { encodeBase64, VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
3
|
+
import { UriList } from 'monaco-editor/esm/vs/base/common/dataTransfer.js';
|
|
4
|
+
import { once } from 'monaco-editor/esm/vs/base/common/functional.js';
|
|
5
|
+
import * as htmlContent from 'monaco-editor/esm/vs/base/common/htmlContent.js';
|
|
6
|
+
import { ResourceSet, ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
7
|
+
import { marked } from 'monaco-editor/esm/vs/base/common/marked/marked.js';
|
|
8
|
+
import { parse } from 'monaco-editor/esm/vs/base/common/marshalling.js';
|
|
9
|
+
import { Mimes } from 'monaco-editor/esm/vs/base/common/mime.js';
|
|
10
|
+
import { cloneAndChange } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
11
|
+
import { withNullAsUndefined, isUndefinedOrNull, isString, isNumber } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
12
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
13
|
+
import * as editorRange from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
14
|
+
import * as languages from 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
15
|
+
import { MarkerSeverity } from 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
16
|
+
import { getPrivateApiFor } from './extHostTestingPrivateApi.js';
|
|
17
|
+
import { DEFAULT_EDITOR_ASSOCIATION } from '../../common/editor.js';
|
|
18
|
+
import { CellKind } from '../../contrib/notebook/common/notebookCommon.js';
|
|
19
|
+
import { TestId } from '../../contrib/testing/common/testId.js';
|
|
20
|
+
import { namespaceTestTag, denamespaceTestTag } from '../../contrib/testing/common/testTypes.js';
|
|
21
|
+
import { SIDE_GROUP, ACTIVE_GROUP } from '../../services/editor/common/editorService.js';
|
|
22
|
+
import { Position as Position$1, Selection as Selection$1, Range as Range$1, ViewColumn as ViewColumn$1, WorkspaceEdit as WorkspaceEdit$1, SnippetTextEdit, SnippetString, TextEdit as TextEdit$1, SymbolKind as SymbolKind$1, SymbolInformation, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, Location, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlayHint as InlayHint$1, DocumentLink as DocumentLink$1, ColorPresentation as ColorPresentation$1, Color as Color$1, TypeHierarchyItem as TypeHierarchyItem$1, Hover as Hover$1, DocumentHighlight as DocumentHighlight$1, CompletionItem as CompletionItem$1, InlayHintLabelPart as InlayHintLabelPart$1, FoldingRangeKind as FoldingRangeKind$1, RelativePattern, NotebookRange as NotebookRange$1, NotebookCellData as NotebookCellData$1, TestTag as TestTag$1, Diagnostic as Diagnostic$1, MarkdownString as MarkdownString$1, SymbolTag as SymbolTag$1, EndOfLine as EndOfLine$1, NotebookCellOutput as NotebookCellOutput$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, CompletionItemTag as CompletionItemTag$1, CompletionItemKind as CompletionItemKind$1, TextEditorLineNumbersStyle as TextEditorLineNumbersStyle$1, NotebookCellKind as NotebookCellKind$1, DataTransfer as DataTransfer$1, DiagnosticTag as DiagnosticTag$1, NotebookCellOutputItem as NotebookCellOutputItem$1, StandardTokenType, TextDocumentSaveReason as TextDocumentSaveReason$1, ProgressLocation as ProgressLocation$1, DataTransferItem as DataTransferItem$1, DocumentSymbol as DocumentSymbol$1, EvaluatableExpression as EvaluatableExpression$1, InlineValueContext as InlineValueContext$1, SelectionRange as SelectionRange$1, CodeActionTriggerKind as CodeActionTriggerKind$1, DecorationRangeBehavior as DecorationRangeBehavior$1, CompletionTriggerKind as CompletionTriggerKind$1 } from './extHostTypes.js';
|
|
23
|
+
var Selection;
|
|
24
|
+
( ((function(Selection) {
|
|
25
|
+
function to(selection) {
|
|
26
|
+
const { selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn } = selection;
|
|
27
|
+
const start = new Position$1(selectionStartLineNumber - 1, selectionStartColumn - 1);
|
|
28
|
+
const end = new Position$1(positionLineNumber - 1, positionColumn - 1);
|
|
29
|
+
return new Selection$1(start, end);
|
|
30
|
+
}
|
|
31
|
+
Selection.to = to;
|
|
32
|
+
function from(selection) {
|
|
33
|
+
const { anchor, active } = selection;
|
|
34
|
+
return {
|
|
35
|
+
selectionStartLineNumber: anchor.line + 1,
|
|
36
|
+
selectionStartColumn: anchor.character + 1,
|
|
37
|
+
positionLineNumber: active.line + 1,
|
|
38
|
+
positionColumn: active.character + 1
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
Selection.from = from;
|
|
42
|
+
})(Selection || (Selection = {}))));
|
|
43
|
+
var Range;
|
|
44
|
+
( ((function(Range) {
|
|
45
|
+
function from(range) {
|
|
46
|
+
if (!range) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
const { start, end } = range;
|
|
50
|
+
return {
|
|
51
|
+
startLineNumber: start.line + 1,
|
|
52
|
+
startColumn: start.character + 1,
|
|
53
|
+
endLineNumber: end.line + 1,
|
|
54
|
+
endColumn: end.character + 1
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
Range.from = from;
|
|
58
|
+
function to(range) {
|
|
59
|
+
if (!range) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
const { startLineNumber, startColumn, endLineNumber, endColumn } = range;
|
|
63
|
+
return new Range$1(startLineNumber - 1, startColumn - 1, endLineNumber - 1, endColumn - 1);
|
|
64
|
+
}
|
|
65
|
+
Range.to = to;
|
|
66
|
+
})(Range || (Range = {}))));
|
|
67
|
+
var TokenType;
|
|
68
|
+
( ((function(TokenType) {
|
|
69
|
+
function to(type) {
|
|
70
|
+
switch (type) {
|
|
71
|
+
case 1 : return StandardTokenType.Comment;
|
|
72
|
+
case 0 : return StandardTokenType.Other;
|
|
73
|
+
case 3 : return StandardTokenType.RegEx;
|
|
74
|
+
case 2 : return StandardTokenType.String;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
TokenType.to = to;
|
|
78
|
+
})(TokenType || (TokenType = {}))));
|
|
79
|
+
var Position;
|
|
80
|
+
( ((function(Position) {
|
|
81
|
+
function to(position) {
|
|
82
|
+
return new Position$1(position.lineNumber - 1, position.column - 1);
|
|
83
|
+
}
|
|
84
|
+
Position.to = to;
|
|
85
|
+
function from(position) {
|
|
86
|
+
return { lineNumber: position.line + 1, column: position.character + 1 };
|
|
87
|
+
}
|
|
88
|
+
Position.from = from;
|
|
89
|
+
})(Position || (Position = {}))));
|
|
90
|
+
var DocumentSelector;
|
|
91
|
+
( ((function(DocumentSelector) {
|
|
92
|
+
function from(value, uriTransformer) {
|
|
93
|
+
return coalesce(( (asArray(value).map(sel => _doTransformDocumentSelector(sel, uriTransformer)))));
|
|
94
|
+
}
|
|
95
|
+
DocumentSelector.from = from;
|
|
96
|
+
function _doTransformDocumentSelector(selector, uriTransformer) {
|
|
97
|
+
if (typeof selector === 'string') {
|
|
98
|
+
return {
|
|
99
|
+
$serialized: true,
|
|
100
|
+
language: selector
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (selector) {
|
|
104
|
+
return {
|
|
105
|
+
$serialized: true,
|
|
106
|
+
language: selector.language,
|
|
107
|
+
scheme: _transformScheme(selector.scheme, uriTransformer),
|
|
108
|
+
pattern: GlobPattern.from(selector.pattern) ?? undefined,
|
|
109
|
+
exclusive: selector.exclusive,
|
|
110
|
+
notebookType: selector.notebookType
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
function _transformScheme(scheme, uriTransformer) {
|
|
116
|
+
if (uriTransformer && typeof scheme === 'string') {
|
|
117
|
+
return uriTransformer.transformOutgoingScheme(scheme);
|
|
118
|
+
}
|
|
119
|
+
return scheme;
|
|
120
|
+
}
|
|
121
|
+
})(DocumentSelector || (DocumentSelector = {}))));
|
|
122
|
+
var DiagnosticTag;
|
|
123
|
+
( ((function(DiagnosticTag) {
|
|
124
|
+
function from(value) {
|
|
125
|
+
switch (value) {
|
|
126
|
+
case DiagnosticTag$1.Unnecessary:
|
|
127
|
+
return 1 ;
|
|
128
|
+
case DiagnosticTag$1.Deprecated:
|
|
129
|
+
return 2 ;
|
|
130
|
+
}
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
DiagnosticTag.from = from;
|
|
134
|
+
function to(value) {
|
|
135
|
+
switch (value) {
|
|
136
|
+
case 1 :
|
|
137
|
+
return DiagnosticTag$1.Unnecessary;
|
|
138
|
+
case 2 :
|
|
139
|
+
return DiagnosticTag$1.Deprecated;
|
|
140
|
+
default:
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
DiagnosticTag.to = to;
|
|
145
|
+
})(DiagnosticTag || (DiagnosticTag = {}))));
|
|
146
|
+
var Diagnostic;
|
|
147
|
+
( ((function(Diagnostic) {
|
|
148
|
+
function from(value) {
|
|
149
|
+
let code;
|
|
150
|
+
if (value.code) {
|
|
151
|
+
if (isString(value.code) || isNumber(value.code)) {
|
|
152
|
+
code = String(value.code);
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
code = {
|
|
156
|
+
value: String(value.code.value),
|
|
157
|
+
target: value.code.target,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
...Range.from(value.range),
|
|
163
|
+
message: value.message,
|
|
164
|
+
source: value.source,
|
|
165
|
+
code,
|
|
166
|
+
severity: DiagnosticSeverity.from(value.severity),
|
|
167
|
+
relatedInformation: value.relatedInformation && ( (value.relatedInformation.map(DiagnosticRelatedInformation.from))),
|
|
168
|
+
tags: Array.isArray(value.tags) ? coalesce(( (value.tags.map(DiagnosticTag.from)))) : undefined,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
Diagnostic.from = from;
|
|
172
|
+
function to(value) {
|
|
173
|
+
const res = new Diagnostic$1(Range.to(value), value.message, DiagnosticSeverity.to(value.severity));
|
|
174
|
+
res.source = value.source;
|
|
175
|
+
res.code = isString(value.code) ? value.code : value.code?.value;
|
|
176
|
+
res.relatedInformation = value.relatedInformation && ( (value.relatedInformation.map(DiagnosticRelatedInformation.to)));
|
|
177
|
+
res.tags = value.tags && coalesce(( (value.tags.map(DiagnosticTag.to))));
|
|
178
|
+
return res;
|
|
179
|
+
}
|
|
180
|
+
Diagnostic.to = to;
|
|
181
|
+
})(Diagnostic || (Diagnostic = {}))));
|
|
182
|
+
var DiagnosticRelatedInformation;
|
|
183
|
+
( ((function(DiagnosticRelatedInformation) {
|
|
184
|
+
function from(value) {
|
|
185
|
+
return {
|
|
186
|
+
...Range.from(value.location.range),
|
|
187
|
+
message: value.message,
|
|
188
|
+
resource: value.location.uri
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
DiagnosticRelatedInformation.from = from;
|
|
192
|
+
function to(value) {
|
|
193
|
+
return new DiagnosticRelatedInformation$1(new Location(value.resource, Range.to(value)), value.message);
|
|
194
|
+
}
|
|
195
|
+
DiagnosticRelatedInformation.to = to;
|
|
196
|
+
})(DiagnosticRelatedInformation || (DiagnosticRelatedInformation = {}))));
|
|
197
|
+
var DiagnosticSeverity;
|
|
198
|
+
( ((function(DiagnosticSeverity) {
|
|
199
|
+
function from(value) {
|
|
200
|
+
switch (value) {
|
|
201
|
+
case DiagnosticSeverity$1.Error:
|
|
202
|
+
return MarkerSeverity.Error;
|
|
203
|
+
case DiagnosticSeverity$1.Warning:
|
|
204
|
+
return MarkerSeverity.Warning;
|
|
205
|
+
case DiagnosticSeverity$1.Information:
|
|
206
|
+
return MarkerSeverity.Info;
|
|
207
|
+
case DiagnosticSeverity$1.Hint:
|
|
208
|
+
return MarkerSeverity.Hint;
|
|
209
|
+
}
|
|
210
|
+
return MarkerSeverity.Error;
|
|
211
|
+
}
|
|
212
|
+
DiagnosticSeverity.from = from;
|
|
213
|
+
function to(value) {
|
|
214
|
+
switch (value) {
|
|
215
|
+
case MarkerSeverity.Info:
|
|
216
|
+
return DiagnosticSeverity$1.Information;
|
|
217
|
+
case MarkerSeverity.Warning:
|
|
218
|
+
return DiagnosticSeverity$1.Warning;
|
|
219
|
+
case MarkerSeverity.Error:
|
|
220
|
+
return DiagnosticSeverity$1.Error;
|
|
221
|
+
case MarkerSeverity.Hint:
|
|
222
|
+
return DiagnosticSeverity$1.Hint;
|
|
223
|
+
default:
|
|
224
|
+
return DiagnosticSeverity$1.Error;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
DiagnosticSeverity.to = to;
|
|
228
|
+
})(DiagnosticSeverity || (DiagnosticSeverity = {}))));
|
|
229
|
+
var ViewColumn;
|
|
230
|
+
( ((function(ViewColumn) {
|
|
231
|
+
function from(column) {
|
|
232
|
+
if (typeof column === 'number' && column >= ViewColumn$1.One) {
|
|
233
|
+
return column - 1;
|
|
234
|
+
}
|
|
235
|
+
if (column === ViewColumn$1.Beside) {
|
|
236
|
+
return SIDE_GROUP;
|
|
237
|
+
}
|
|
238
|
+
return ACTIVE_GROUP;
|
|
239
|
+
}
|
|
240
|
+
ViewColumn.from = from;
|
|
241
|
+
function to(position) {
|
|
242
|
+
if (typeof position === 'number' && position >= 0) {
|
|
243
|
+
return position + 1;
|
|
244
|
+
}
|
|
245
|
+
throw new Error(`invalid 'EditorGroupColumn'`);
|
|
246
|
+
}
|
|
247
|
+
ViewColumn.to = to;
|
|
248
|
+
})(ViewColumn || (ViewColumn = {}))));
|
|
249
|
+
function isDecorationOptions(something) {
|
|
250
|
+
return (typeof something.range !== 'undefined');
|
|
251
|
+
}
|
|
252
|
+
function isDecorationOptionsArr(something) {
|
|
253
|
+
if (something.length === 0) {
|
|
254
|
+
return true;
|
|
255
|
+
}
|
|
256
|
+
return isDecorationOptions(something[0]) ? true : false;
|
|
257
|
+
}
|
|
258
|
+
var MarkdownString;
|
|
259
|
+
( ((function(MarkdownString) {
|
|
260
|
+
function fromMany(markup) {
|
|
261
|
+
return (
|
|
262
|
+
(markup.map(MarkdownString.from))
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
MarkdownString.fromMany = fromMany;
|
|
266
|
+
function isCodeblock(thing) {
|
|
267
|
+
return thing && typeof thing === 'object'
|
|
268
|
+
&& typeof thing.language === 'string'
|
|
269
|
+
&& typeof thing.value === 'string';
|
|
270
|
+
}
|
|
271
|
+
function from(markup) {
|
|
272
|
+
let res;
|
|
273
|
+
if (isCodeblock(markup)) {
|
|
274
|
+
const { language, value } = markup;
|
|
275
|
+
res = { value: '```' + language + '\n' + value + '\n```\n' };
|
|
276
|
+
}
|
|
277
|
+
else if (MarkdownString$1.isMarkdownString(markup)) {
|
|
278
|
+
res = { value: markup.value, isTrusted: markup.isTrusted, supportThemeIcons: markup.supportThemeIcons, supportHtml: markup.supportHtml, baseUri: markup.baseUri };
|
|
279
|
+
}
|
|
280
|
+
else if (typeof markup === 'string') {
|
|
281
|
+
res = { value: markup };
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
res = { value: '' };
|
|
285
|
+
}
|
|
286
|
+
const resUris = Object.create(null);
|
|
287
|
+
res.uris = resUris;
|
|
288
|
+
const collectUri = (href) => {
|
|
289
|
+
try {
|
|
290
|
+
let uri = ( (URI.parse(href, true)));
|
|
291
|
+
uri = uri.with({ query: _uriMassage(uri.query, resUris) });
|
|
292
|
+
resUris[href] = uri;
|
|
293
|
+
}
|
|
294
|
+
catch (e) {
|
|
295
|
+
}
|
|
296
|
+
return '';
|
|
297
|
+
};
|
|
298
|
+
const renderer = new marked.Renderer();
|
|
299
|
+
renderer.link = collectUri;
|
|
300
|
+
renderer.image = href => typeof href === 'string' ? collectUri(htmlContent.parseHrefAndDimensions(href).href) : '';
|
|
301
|
+
marked(res.value, { renderer });
|
|
302
|
+
return res;
|
|
303
|
+
}
|
|
304
|
+
MarkdownString.from = from;
|
|
305
|
+
function _uriMassage(part, bucket) {
|
|
306
|
+
if (!part) {
|
|
307
|
+
return part;
|
|
308
|
+
}
|
|
309
|
+
let data;
|
|
310
|
+
try {
|
|
311
|
+
data = parse(part);
|
|
312
|
+
}
|
|
313
|
+
catch (e) {
|
|
314
|
+
}
|
|
315
|
+
if (!data) {
|
|
316
|
+
return part;
|
|
317
|
+
}
|
|
318
|
+
let changed = false;
|
|
319
|
+
data = cloneAndChange(data, value => {
|
|
320
|
+
if (URI.isUri(value)) {
|
|
321
|
+
const key = `__uri_${( ( Math.random().toString(16))).slice(2, 8)}`;
|
|
322
|
+
bucket[key] = value;
|
|
323
|
+
changed = true;
|
|
324
|
+
return key;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
return undefined;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
if (!changed) {
|
|
331
|
+
return part;
|
|
332
|
+
}
|
|
333
|
+
return JSON.stringify(data);
|
|
334
|
+
}
|
|
335
|
+
function to(value) {
|
|
336
|
+
const result = new MarkdownString$1(value.value, value.supportThemeIcons);
|
|
337
|
+
result.isTrusted = value.isTrusted;
|
|
338
|
+
result.supportHtml = value.supportHtml;
|
|
339
|
+
result.baseUri = value.baseUri ? ( (URI.from(value.baseUri))) : undefined;
|
|
340
|
+
return result;
|
|
341
|
+
}
|
|
342
|
+
MarkdownString.to = to;
|
|
343
|
+
function fromStrict(value) {
|
|
344
|
+
if (!value) {
|
|
345
|
+
return undefined;
|
|
346
|
+
}
|
|
347
|
+
return typeof value === 'string' ? value : MarkdownString.from(value);
|
|
348
|
+
}
|
|
349
|
+
MarkdownString.fromStrict = fromStrict;
|
|
350
|
+
})(MarkdownString || (MarkdownString = {}))));
|
|
351
|
+
function fromRangeOrRangeWithMessage(ranges) {
|
|
352
|
+
if (isDecorationOptionsArr(ranges)) {
|
|
353
|
+
return (
|
|
354
|
+
(ranges.map((r) => {
|
|
355
|
+
return {
|
|
356
|
+
range: Range.from(r.range),
|
|
357
|
+
hoverMessage: Array.isArray(r.hoverMessage)
|
|
358
|
+
? MarkdownString.fromMany(r.hoverMessage)
|
|
359
|
+
: (r.hoverMessage ? MarkdownString.from(r.hoverMessage) : undefined),
|
|
360
|
+
renderOptions: r.renderOptions
|
|
361
|
+
};
|
|
362
|
+
}))
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
else {
|
|
366
|
+
return (
|
|
367
|
+
(ranges.map((r) => {
|
|
368
|
+
return {
|
|
369
|
+
range: Range.from(r)
|
|
370
|
+
};
|
|
371
|
+
}))
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
function pathOrURIToURI(value) {
|
|
376
|
+
if (typeof value === 'undefined') {
|
|
377
|
+
return value;
|
|
378
|
+
}
|
|
379
|
+
if (typeof value === 'string') {
|
|
380
|
+
return URI.file(value);
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
return value;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
var ThemableDecorationAttachmentRenderOptions;
|
|
387
|
+
( ((function(ThemableDecorationAttachmentRenderOptions) {
|
|
388
|
+
function from(options) {
|
|
389
|
+
if (typeof options === 'undefined') {
|
|
390
|
+
return options;
|
|
391
|
+
}
|
|
392
|
+
return {
|
|
393
|
+
contentText: options.contentText,
|
|
394
|
+
contentIconPath: options.contentIconPath ? pathOrURIToURI(options.contentIconPath) : undefined,
|
|
395
|
+
border: options.border,
|
|
396
|
+
borderColor: options.borderColor,
|
|
397
|
+
fontStyle: options.fontStyle,
|
|
398
|
+
fontWeight: options.fontWeight,
|
|
399
|
+
textDecoration: options.textDecoration,
|
|
400
|
+
color: options.color,
|
|
401
|
+
backgroundColor: options.backgroundColor,
|
|
402
|
+
margin: options.margin,
|
|
403
|
+
width: options.width,
|
|
404
|
+
height: options.height,
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
ThemableDecorationAttachmentRenderOptions.from = from;
|
|
408
|
+
})(
|
|
409
|
+
ThemableDecorationAttachmentRenderOptions || (ThemableDecorationAttachmentRenderOptions = {})
|
|
410
|
+
)));
|
|
411
|
+
var ThemableDecorationRenderOptions;
|
|
412
|
+
( ((function(ThemableDecorationRenderOptions) {
|
|
413
|
+
function from(options) {
|
|
414
|
+
if (typeof options === 'undefined') {
|
|
415
|
+
return options;
|
|
416
|
+
}
|
|
417
|
+
return {
|
|
418
|
+
backgroundColor: options.backgroundColor,
|
|
419
|
+
outline: options.outline,
|
|
420
|
+
outlineColor: options.outlineColor,
|
|
421
|
+
outlineStyle: options.outlineStyle,
|
|
422
|
+
outlineWidth: options.outlineWidth,
|
|
423
|
+
border: options.border,
|
|
424
|
+
borderColor: options.borderColor,
|
|
425
|
+
borderRadius: options.borderRadius,
|
|
426
|
+
borderSpacing: options.borderSpacing,
|
|
427
|
+
borderStyle: options.borderStyle,
|
|
428
|
+
borderWidth: options.borderWidth,
|
|
429
|
+
fontStyle: options.fontStyle,
|
|
430
|
+
fontWeight: options.fontWeight,
|
|
431
|
+
textDecoration: options.textDecoration,
|
|
432
|
+
cursor: options.cursor,
|
|
433
|
+
color: options.color,
|
|
434
|
+
opacity: options.opacity,
|
|
435
|
+
letterSpacing: options.letterSpacing,
|
|
436
|
+
gutterIconPath: options.gutterIconPath ? pathOrURIToURI(options.gutterIconPath) : undefined,
|
|
437
|
+
gutterIconSize: options.gutterIconSize,
|
|
438
|
+
overviewRulerColor: options.overviewRulerColor,
|
|
439
|
+
before: options.before ? ThemableDecorationAttachmentRenderOptions.from(options.before) : undefined,
|
|
440
|
+
after: options.after ? ThemableDecorationAttachmentRenderOptions.from(options.after) : undefined,
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
ThemableDecorationRenderOptions.from = from;
|
|
444
|
+
})(ThemableDecorationRenderOptions || (ThemableDecorationRenderOptions = {}))));
|
|
445
|
+
var DecorationRangeBehavior;
|
|
446
|
+
( ((function(DecorationRangeBehavior) {
|
|
447
|
+
function from(value) {
|
|
448
|
+
if (typeof value === 'undefined') {
|
|
449
|
+
return value;
|
|
450
|
+
}
|
|
451
|
+
switch (value) {
|
|
452
|
+
case DecorationRangeBehavior$1.OpenOpen:
|
|
453
|
+
return 0 ;
|
|
454
|
+
case DecorationRangeBehavior$1.ClosedClosed:
|
|
455
|
+
return 1 ;
|
|
456
|
+
case DecorationRangeBehavior$1.OpenClosed:
|
|
457
|
+
return 2 ;
|
|
458
|
+
case DecorationRangeBehavior$1.ClosedOpen:
|
|
459
|
+
return 3 ;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
DecorationRangeBehavior.from = from;
|
|
463
|
+
})(DecorationRangeBehavior || (DecorationRangeBehavior = {}))));
|
|
464
|
+
var DecorationRenderOptions;
|
|
465
|
+
( ((function(DecorationRenderOptions) {
|
|
466
|
+
function from(options) {
|
|
467
|
+
return {
|
|
468
|
+
isWholeLine: options.isWholeLine,
|
|
469
|
+
rangeBehavior: options.rangeBehavior ? DecorationRangeBehavior.from(options.rangeBehavior) : undefined,
|
|
470
|
+
overviewRulerLane: options.overviewRulerLane,
|
|
471
|
+
light: options.light ? ThemableDecorationRenderOptions.from(options.light) : undefined,
|
|
472
|
+
dark: options.dark ? ThemableDecorationRenderOptions.from(options.dark) : undefined,
|
|
473
|
+
backgroundColor: options.backgroundColor,
|
|
474
|
+
outline: options.outline,
|
|
475
|
+
outlineColor: options.outlineColor,
|
|
476
|
+
outlineStyle: options.outlineStyle,
|
|
477
|
+
outlineWidth: options.outlineWidth,
|
|
478
|
+
border: options.border,
|
|
479
|
+
borderColor: options.borderColor,
|
|
480
|
+
borderRadius: options.borderRadius,
|
|
481
|
+
borderSpacing: options.borderSpacing,
|
|
482
|
+
borderStyle: options.borderStyle,
|
|
483
|
+
borderWidth: options.borderWidth,
|
|
484
|
+
fontStyle: options.fontStyle,
|
|
485
|
+
fontWeight: options.fontWeight,
|
|
486
|
+
textDecoration: options.textDecoration,
|
|
487
|
+
cursor: options.cursor,
|
|
488
|
+
color: options.color,
|
|
489
|
+
opacity: options.opacity,
|
|
490
|
+
letterSpacing: options.letterSpacing,
|
|
491
|
+
gutterIconPath: options.gutterIconPath ? pathOrURIToURI(options.gutterIconPath) : undefined,
|
|
492
|
+
gutterIconSize: options.gutterIconSize,
|
|
493
|
+
overviewRulerColor: options.overviewRulerColor,
|
|
494
|
+
before: options.before ? ThemableDecorationAttachmentRenderOptions.from(options.before) : undefined,
|
|
495
|
+
after: options.after ? ThemableDecorationAttachmentRenderOptions.from(options.after) : undefined,
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
DecorationRenderOptions.from = from;
|
|
499
|
+
})(DecorationRenderOptions || (DecorationRenderOptions = {}))));
|
|
500
|
+
var TextEdit;
|
|
501
|
+
( ((function(TextEdit) {
|
|
502
|
+
function from(edit) {
|
|
503
|
+
return {
|
|
504
|
+
text: edit.newText,
|
|
505
|
+
eol: edit.newEol && EndOfLine.from(edit.newEol),
|
|
506
|
+
range: Range.from(edit.range)
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
TextEdit.from = from;
|
|
510
|
+
function to(edit) {
|
|
511
|
+
const result = new TextEdit$1(Range.to(edit.range), edit.text);
|
|
512
|
+
result.newEol = (typeof edit.eol === 'undefined' ? undefined : EndOfLine.to(edit.eol));
|
|
513
|
+
return result;
|
|
514
|
+
}
|
|
515
|
+
TextEdit.to = to;
|
|
516
|
+
})(TextEdit || (TextEdit = {}))));
|
|
517
|
+
var WorkspaceEdit;
|
|
518
|
+
( ((function(WorkspaceEdit) {
|
|
519
|
+
function from(value, versionInfo) {
|
|
520
|
+
const result = {
|
|
521
|
+
edits: []
|
|
522
|
+
};
|
|
523
|
+
if (value instanceof WorkspaceEdit$1) {
|
|
524
|
+
const toCreate = ( (new ResourceSet()));
|
|
525
|
+
for (const entry of value._allEntries()) {
|
|
526
|
+
if (entry._type === 1 && URI.isUri(entry.to) && entry.from === undefined) {
|
|
527
|
+
toCreate.add(entry.to);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
for (const entry of value._allEntries()) {
|
|
531
|
+
if (entry._type === 1 ) {
|
|
532
|
+
result.edits.push({
|
|
533
|
+
oldResource: entry.from,
|
|
534
|
+
newResource: entry.to,
|
|
535
|
+
options: { ...entry.options, contentsBase64: entry.options?.contents && encodeBase64(VSBuffer.wrap(entry.options.contents)) },
|
|
536
|
+
metadata: entry.metadata
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
else if (entry._type === 2 ) {
|
|
540
|
+
result.edits.push({
|
|
541
|
+
resource: entry.uri,
|
|
542
|
+
textEdit: TextEdit.from(entry.edit),
|
|
543
|
+
versionId: !toCreate.has(entry.uri) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
|
|
544
|
+
metadata: entry.metadata
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
else if (entry._type === 6 ) {
|
|
548
|
+
result.edits.push({
|
|
549
|
+
resource: entry.uri,
|
|
550
|
+
textEdit: {
|
|
551
|
+
range: Range.from(entry.range),
|
|
552
|
+
text: entry.edit.value,
|
|
553
|
+
insertAsSnippet: true
|
|
554
|
+
},
|
|
555
|
+
versionId: !toCreate.has(entry.uri) ? versionInfo?.getTextDocumentVersion(entry.uri) : undefined,
|
|
556
|
+
metadata: entry.metadata
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
else if (entry._type === 3 ) {
|
|
560
|
+
result.edits.push({
|
|
561
|
+
metadata: entry.metadata,
|
|
562
|
+
resource: entry.uri,
|
|
563
|
+
cellEdit: entry.edit,
|
|
564
|
+
notebookMetadata: entry.notebookMetadata,
|
|
565
|
+
notebookVersionId: versionInfo?.getNotebookDocumentVersion(entry.uri)
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
else if (entry._type === 5 ) {
|
|
569
|
+
result.edits.push({
|
|
570
|
+
metadata: entry.metadata,
|
|
571
|
+
resource: entry.uri,
|
|
572
|
+
notebookVersionId: versionInfo?.getNotebookDocumentVersion(entry.uri),
|
|
573
|
+
cellEdit: {
|
|
574
|
+
editType: 1 ,
|
|
575
|
+
index: entry.index,
|
|
576
|
+
count: entry.count,
|
|
577
|
+
cells: ( (entry.cells.map(NotebookCellData.from)))
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
return result;
|
|
584
|
+
}
|
|
585
|
+
WorkspaceEdit.from = from;
|
|
586
|
+
function to(value) {
|
|
587
|
+
const result = new WorkspaceEdit$1();
|
|
588
|
+
const edits = ( (new ResourceMap()));
|
|
589
|
+
for (const edit of value.edits) {
|
|
590
|
+
if (edit.textEdit) {
|
|
591
|
+
const item = edit;
|
|
592
|
+
const uri = URI.revive(item.resource);
|
|
593
|
+
const range = Range.to(item.textEdit.range);
|
|
594
|
+
const text = item.textEdit.text;
|
|
595
|
+
const isSnippet = item.textEdit.insertAsSnippet;
|
|
596
|
+
let editOrSnippetTest;
|
|
597
|
+
if (isSnippet) {
|
|
598
|
+
editOrSnippetTest = SnippetTextEdit.replace(range, new SnippetString(text));
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
editOrSnippetTest = TextEdit$1.replace(range, text);
|
|
602
|
+
}
|
|
603
|
+
const array = edits.get(uri);
|
|
604
|
+
if (!array) {
|
|
605
|
+
edits.set(uri, [editOrSnippetTest]);
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
array.push(editOrSnippetTest);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
else {
|
|
612
|
+
result.renameFile(URI.revive(edit.oldResource), URI.revive(edit.newResource), edit.options);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
for (const [uri, array] of edits) {
|
|
616
|
+
result.set(uri, array);
|
|
617
|
+
}
|
|
618
|
+
return result;
|
|
619
|
+
}
|
|
620
|
+
WorkspaceEdit.to = to;
|
|
621
|
+
})(WorkspaceEdit || (WorkspaceEdit = {}))));
|
|
622
|
+
var SymbolKind;
|
|
623
|
+
( ((function(SymbolKind) {
|
|
624
|
+
const _fromMapping = Object.create(null);
|
|
625
|
+
_fromMapping[SymbolKind$1.File] = 0 ;
|
|
626
|
+
_fromMapping[SymbolKind$1.Module] = 1 ;
|
|
627
|
+
_fromMapping[SymbolKind$1.Namespace] = 2 ;
|
|
628
|
+
_fromMapping[SymbolKind$1.Package] = 3 ;
|
|
629
|
+
_fromMapping[SymbolKind$1.Class] = 4 ;
|
|
630
|
+
_fromMapping[SymbolKind$1.Method] = 5 ;
|
|
631
|
+
_fromMapping[SymbolKind$1.Property] = 6 ;
|
|
632
|
+
_fromMapping[SymbolKind$1.Field] = 7 ;
|
|
633
|
+
_fromMapping[SymbolKind$1.Constructor] = 8 ;
|
|
634
|
+
_fromMapping[SymbolKind$1.Enum] = 9 ;
|
|
635
|
+
_fromMapping[SymbolKind$1.Interface] = 10 ;
|
|
636
|
+
_fromMapping[SymbolKind$1.Function] = 11 ;
|
|
637
|
+
_fromMapping[SymbolKind$1.Variable] = 12 ;
|
|
638
|
+
_fromMapping[SymbolKind$1.Constant] = 13 ;
|
|
639
|
+
_fromMapping[SymbolKind$1.String] = 14 ;
|
|
640
|
+
_fromMapping[SymbolKind$1.Number] = 15 ;
|
|
641
|
+
_fromMapping[SymbolKind$1.Boolean] = 16 ;
|
|
642
|
+
_fromMapping[SymbolKind$1.Array] = 17 ;
|
|
643
|
+
_fromMapping[SymbolKind$1.Object] = 18 ;
|
|
644
|
+
_fromMapping[SymbolKind$1.Key] = 19 ;
|
|
645
|
+
_fromMapping[SymbolKind$1.Null] = 20 ;
|
|
646
|
+
_fromMapping[SymbolKind$1.EnumMember] = 21 ;
|
|
647
|
+
_fromMapping[SymbolKind$1.Struct] = 22 ;
|
|
648
|
+
_fromMapping[SymbolKind$1.Event] = 23 ;
|
|
649
|
+
_fromMapping[SymbolKind$1.Operator] = 24 ;
|
|
650
|
+
_fromMapping[SymbolKind$1.TypeParameter] = 25 ;
|
|
651
|
+
function from(kind) {
|
|
652
|
+
return typeof _fromMapping[kind] === 'number' ? _fromMapping[kind] : 6 ;
|
|
653
|
+
}
|
|
654
|
+
SymbolKind.from = from;
|
|
655
|
+
function to(kind) {
|
|
656
|
+
for (const k in _fromMapping) {
|
|
657
|
+
if (_fromMapping[k] === kind) {
|
|
658
|
+
return Number(k);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
return SymbolKind$1.Property;
|
|
662
|
+
}
|
|
663
|
+
SymbolKind.to = to;
|
|
664
|
+
})(SymbolKind || (SymbolKind = {}))));
|
|
665
|
+
var SymbolTag;
|
|
666
|
+
( ((function(SymbolTag) {
|
|
667
|
+
function from(kind) {
|
|
668
|
+
switch (kind) {
|
|
669
|
+
case SymbolTag$1.Deprecated: return 1 ;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
SymbolTag.from = from;
|
|
673
|
+
function to(kind) {
|
|
674
|
+
switch (kind) {
|
|
675
|
+
case 1 : return SymbolTag$1.Deprecated;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
SymbolTag.to = to;
|
|
679
|
+
})(SymbolTag || (SymbolTag = {}))));
|
|
680
|
+
var WorkspaceSymbol;
|
|
681
|
+
( ((function(WorkspaceSymbol) {
|
|
682
|
+
function from(info) {
|
|
683
|
+
return {
|
|
684
|
+
name: info.name,
|
|
685
|
+
kind: SymbolKind.from(info.kind),
|
|
686
|
+
tags: info.tags && ( (info.tags.map(SymbolTag.from))),
|
|
687
|
+
containerName: info.containerName,
|
|
688
|
+
location: location.from(info.location)
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
WorkspaceSymbol.from = from;
|
|
692
|
+
function to(info) {
|
|
693
|
+
const result = new SymbolInformation(info.name, SymbolKind.to(info.kind), info.containerName, location.to(info.location));
|
|
694
|
+
result.tags = info.tags && ( (info.tags.map(SymbolTag.to)));
|
|
695
|
+
return result;
|
|
696
|
+
}
|
|
697
|
+
WorkspaceSymbol.to = to;
|
|
698
|
+
})(WorkspaceSymbol || (WorkspaceSymbol = {}))));
|
|
699
|
+
var DocumentSymbol;
|
|
700
|
+
( ((function(DocumentSymbol) {
|
|
701
|
+
function from(info) {
|
|
702
|
+
const result = {
|
|
703
|
+
name: info.name || '!!MISSING: name!!',
|
|
704
|
+
detail: info.detail,
|
|
705
|
+
range: Range.from(info.range),
|
|
706
|
+
selectionRange: Range.from(info.selectionRange),
|
|
707
|
+
kind: SymbolKind.from(info.kind),
|
|
708
|
+
tags: info.tags?.map(SymbolTag.from) ?? []
|
|
709
|
+
};
|
|
710
|
+
if (info.children) {
|
|
711
|
+
result.children = ( (info.children.map(from)));
|
|
712
|
+
}
|
|
713
|
+
return result;
|
|
714
|
+
}
|
|
715
|
+
DocumentSymbol.from = from;
|
|
716
|
+
function to(info) {
|
|
717
|
+
const result = new DocumentSymbol$1(info.name, info.detail, SymbolKind.to(info.kind), Range.to(info.range), Range.to(info.selectionRange));
|
|
718
|
+
if (isNonEmptyArray(info.tags)) {
|
|
719
|
+
result.tags = ( (info.tags.map(SymbolTag.to)));
|
|
720
|
+
}
|
|
721
|
+
if (info.children) {
|
|
722
|
+
result.children = ( (info.children.map(to)));
|
|
723
|
+
}
|
|
724
|
+
return result;
|
|
725
|
+
}
|
|
726
|
+
DocumentSymbol.to = to;
|
|
727
|
+
})(DocumentSymbol || (DocumentSymbol = {}))));
|
|
728
|
+
var CallHierarchyItem;
|
|
729
|
+
( ((function(CallHierarchyItem) {
|
|
730
|
+
function to(item) {
|
|
731
|
+
const result = new CallHierarchyItem$1(SymbolKind.to(item.kind), item.name, item.detail || '', URI.revive(item.uri), Range.to(item.range), Range.to(item.selectionRange));
|
|
732
|
+
result._sessionId = item._sessionId;
|
|
733
|
+
result._itemId = item._itemId;
|
|
734
|
+
return result;
|
|
735
|
+
}
|
|
736
|
+
CallHierarchyItem.to = to;
|
|
737
|
+
function from(item, sessionId, itemId) {
|
|
738
|
+
sessionId = sessionId ?? item._sessionId;
|
|
739
|
+
itemId = itemId ?? item._itemId;
|
|
740
|
+
if (sessionId === undefined || itemId === undefined) {
|
|
741
|
+
throw new Error('invalid item');
|
|
742
|
+
}
|
|
743
|
+
return {
|
|
744
|
+
_sessionId: sessionId,
|
|
745
|
+
_itemId: itemId,
|
|
746
|
+
name: item.name,
|
|
747
|
+
detail: item.detail,
|
|
748
|
+
kind: SymbolKind.from(item.kind),
|
|
749
|
+
uri: item.uri,
|
|
750
|
+
range: Range.from(item.range),
|
|
751
|
+
selectionRange: Range.from(item.selectionRange),
|
|
752
|
+
tags: item.tags?.map(SymbolTag.from)
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
CallHierarchyItem.from = from;
|
|
756
|
+
})(CallHierarchyItem || (CallHierarchyItem = {}))));
|
|
757
|
+
var CallHierarchyIncomingCall;
|
|
758
|
+
( ((function(CallHierarchyIncomingCall) {
|
|
759
|
+
function to(item) {
|
|
760
|
+
return new CallHierarchyIncomingCall$1(CallHierarchyItem.to(item.from), ( (item.fromRanges.map(r => Range.to(r)))));
|
|
761
|
+
}
|
|
762
|
+
CallHierarchyIncomingCall.to = to;
|
|
763
|
+
})(CallHierarchyIncomingCall || (CallHierarchyIncomingCall = {}))));
|
|
764
|
+
var CallHierarchyOutgoingCall;
|
|
765
|
+
( ((function(CallHierarchyOutgoingCall) {
|
|
766
|
+
function to(item) {
|
|
767
|
+
return new CallHierarchyOutgoingCall$1(CallHierarchyItem.to(item.to), ( (item.fromRanges.map(r => Range.to(r)))));
|
|
768
|
+
}
|
|
769
|
+
CallHierarchyOutgoingCall.to = to;
|
|
770
|
+
})(CallHierarchyOutgoingCall || (CallHierarchyOutgoingCall = {}))));
|
|
771
|
+
var location;
|
|
772
|
+
( ((function(location) {
|
|
773
|
+
function from(value) {
|
|
774
|
+
return {
|
|
775
|
+
range: value.range && Range.from(value.range),
|
|
776
|
+
uri: value.uri
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
location.from = from;
|
|
780
|
+
function to(value) {
|
|
781
|
+
return new Location(URI.revive(value.uri), Range.to(value.range));
|
|
782
|
+
}
|
|
783
|
+
location.to = to;
|
|
784
|
+
})(location || (location = {}))));
|
|
785
|
+
var DefinitionLink;
|
|
786
|
+
( ((function(DefinitionLink) {
|
|
787
|
+
function from(value) {
|
|
788
|
+
const definitionLink = value;
|
|
789
|
+
const location = value;
|
|
790
|
+
return {
|
|
791
|
+
originSelectionRange: definitionLink.originSelectionRange
|
|
792
|
+
? Range.from(definitionLink.originSelectionRange)
|
|
793
|
+
: undefined,
|
|
794
|
+
uri: definitionLink.targetUri ? definitionLink.targetUri : location.uri,
|
|
795
|
+
range: Range.from(definitionLink.targetRange ? definitionLink.targetRange : location.range),
|
|
796
|
+
targetSelectionRange: definitionLink.targetSelectionRange
|
|
797
|
+
? Range.from(definitionLink.targetSelectionRange)
|
|
798
|
+
: undefined,
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
DefinitionLink.from = from;
|
|
802
|
+
function to(value) {
|
|
803
|
+
return {
|
|
804
|
+
targetUri: URI.revive(value.uri),
|
|
805
|
+
targetRange: Range.to(value.range),
|
|
806
|
+
targetSelectionRange: value.targetSelectionRange
|
|
807
|
+
? Range.to(value.targetSelectionRange)
|
|
808
|
+
: undefined,
|
|
809
|
+
originSelectionRange: value.originSelectionRange
|
|
810
|
+
? Range.to(value.originSelectionRange)
|
|
811
|
+
: undefined
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
DefinitionLink.to = to;
|
|
815
|
+
})(DefinitionLink || (DefinitionLink = {}))));
|
|
816
|
+
var Hover;
|
|
817
|
+
( ((function(Hover) {
|
|
818
|
+
function from(hover) {
|
|
819
|
+
return {
|
|
820
|
+
range: Range.from(hover.range),
|
|
821
|
+
contents: MarkdownString.fromMany(hover.contents)
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
Hover.from = from;
|
|
825
|
+
function to(info) {
|
|
826
|
+
return new Hover$1(( (info.contents.map(MarkdownString.to))), Range.to(info.range));
|
|
827
|
+
}
|
|
828
|
+
Hover.to = to;
|
|
829
|
+
})(Hover || (Hover = {}))));
|
|
830
|
+
var EvaluatableExpression;
|
|
831
|
+
( ((function(EvaluatableExpression) {
|
|
832
|
+
function from(expression) {
|
|
833
|
+
return {
|
|
834
|
+
range: Range.from(expression.range),
|
|
835
|
+
expression: expression.expression
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
EvaluatableExpression.from = from;
|
|
839
|
+
function to(info) {
|
|
840
|
+
return new EvaluatableExpression$1(Range.to(info.range), info.expression);
|
|
841
|
+
}
|
|
842
|
+
EvaluatableExpression.to = to;
|
|
843
|
+
})(EvaluatableExpression || (EvaluatableExpression = {}))));
|
|
844
|
+
var InlineValue;
|
|
845
|
+
( ((function(InlineValue) {
|
|
846
|
+
function from(inlineValue) {
|
|
847
|
+
if (inlineValue instanceof InlineValueText) {
|
|
848
|
+
return {
|
|
849
|
+
type: 'text',
|
|
850
|
+
range: Range.from(inlineValue.range),
|
|
851
|
+
text: inlineValue.text
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
else if (inlineValue instanceof InlineValueVariableLookup) {
|
|
855
|
+
return {
|
|
856
|
+
type: 'variable',
|
|
857
|
+
range: Range.from(inlineValue.range),
|
|
858
|
+
variableName: inlineValue.variableName,
|
|
859
|
+
caseSensitiveLookup: inlineValue.caseSensitiveLookup
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
else if (inlineValue instanceof InlineValueEvaluatableExpression) {
|
|
863
|
+
return {
|
|
864
|
+
type: 'expression',
|
|
865
|
+
range: Range.from(inlineValue.range),
|
|
866
|
+
expression: inlineValue.expression
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
else {
|
|
870
|
+
throw new Error(`Unknown 'InlineValue' type`);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
InlineValue.from = from;
|
|
874
|
+
function to(inlineValue) {
|
|
875
|
+
switch (inlineValue.type) {
|
|
876
|
+
case 'text':
|
|
877
|
+
return {
|
|
878
|
+
range: Range.to(inlineValue.range),
|
|
879
|
+
text: inlineValue.text
|
|
880
|
+
};
|
|
881
|
+
case 'variable':
|
|
882
|
+
return {
|
|
883
|
+
range: Range.to(inlineValue.range),
|
|
884
|
+
variableName: inlineValue.variableName,
|
|
885
|
+
caseSensitiveLookup: inlineValue.caseSensitiveLookup
|
|
886
|
+
};
|
|
887
|
+
case 'expression':
|
|
888
|
+
return {
|
|
889
|
+
range: Range.to(inlineValue.range),
|
|
890
|
+
expression: inlineValue.expression
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
InlineValue.to = to;
|
|
895
|
+
})(InlineValue || (InlineValue = {}))));
|
|
896
|
+
var InlineValueContext;
|
|
897
|
+
( ((function(InlineValueContext) {
|
|
898
|
+
function from(inlineValueContext) {
|
|
899
|
+
return {
|
|
900
|
+
frameId: inlineValueContext.frameId,
|
|
901
|
+
stoppedLocation: Range.from(inlineValueContext.stoppedLocation)
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
InlineValueContext.from = from;
|
|
905
|
+
function to(inlineValueContext) {
|
|
906
|
+
return new InlineValueContext$1(inlineValueContext.frameId, Range.to(inlineValueContext.stoppedLocation));
|
|
907
|
+
}
|
|
908
|
+
InlineValueContext.to = to;
|
|
909
|
+
})(InlineValueContext || (InlineValueContext = {}))));
|
|
910
|
+
var DocumentHighlight;
|
|
911
|
+
( ((function(DocumentHighlight) {
|
|
912
|
+
function from(documentHighlight) {
|
|
913
|
+
return {
|
|
914
|
+
range: Range.from(documentHighlight.range),
|
|
915
|
+
kind: documentHighlight.kind
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
DocumentHighlight.from = from;
|
|
919
|
+
function to(occurrence) {
|
|
920
|
+
return new DocumentHighlight$1(Range.to(occurrence.range), occurrence.kind);
|
|
921
|
+
}
|
|
922
|
+
DocumentHighlight.to = to;
|
|
923
|
+
})(DocumentHighlight || (DocumentHighlight = {}))));
|
|
924
|
+
var CompletionTriggerKind;
|
|
925
|
+
( ((function(CompletionTriggerKind) {
|
|
926
|
+
function to(kind) {
|
|
927
|
+
switch (kind) {
|
|
928
|
+
case 1 :
|
|
929
|
+
return CompletionTriggerKind$1.TriggerCharacter;
|
|
930
|
+
case 2 :
|
|
931
|
+
return CompletionTriggerKind$1.TriggerForIncompleteCompletions;
|
|
932
|
+
case 0 :
|
|
933
|
+
default:
|
|
934
|
+
return CompletionTriggerKind$1.Invoke;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
CompletionTriggerKind.to = to;
|
|
938
|
+
})(CompletionTriggerKind || (CompletionTriggerKind = {}))));
|
|
939
|
+
var CompletionContext;
|
|
940
|
+
( ((function(CompletionContext) {
|
|
941
|
+
function to(context) {
|
|
942
|
+
return {
|
|
943
|
+
triggerKind: CompletionTriggerKind.to(context.triggerKind),
|
|
944
|
+
triggerCharacter: context.triggerCharacter
|
|
945
|
+
};
|
|
946
|
+
}
|
|
947
|
+
CompletionContext.to = to;
|
|
948
|
+
})(CompletionContext || (CompletionContext = {}))));
|
|
949
|
+
var CompletionItemTag;
|
|
950
|
+
( ((function(CompletionItemTag) {
|
|
951
|
+
function from(kind) {
|
|
952
|
+
switch (kind) {
|
|
953
|
+
case CompletionItemTag$1.Deprecated: return 1 ;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
CompletionItemTag.from = from;
|
|
957
|
+
function to(kind) {
|
|
958
|
+
switch (kind) {
|
|
959
|
+
case 1 : return CompletionItemTag$1.Deprecated;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
CompletionItemTag.to = to;
|
|
963
|
+
})(CompletionItemTag || (CompletionItemTag = {}))));
|
|
964
|
+
var CompletionItemKind;
|
|
965
|
+
( ((function(CompletionItemKind) {
|
|
966
|
+
const _from = ( (new Map([
|
|
967
|
+
[CompletionItemKind$1.Method, 0 ],
|
|
968
|
+
[CompletionItemKind$1.Function, 1 ],
|
|
969
|
+
[CompletionItemKind$1.Constructor, 2 ],
|
|
970
|
+
[CompletionItemKind$1.Field, 3 ],
|
|
971
|
+
[CompletionItemKind$1.Variable, 4 ],
|
|
972
|
+
[CompletionItemKind$1.Class, 5 ],
|
|
973
|
+
[CompletionItemKind$1.Interface, 7 ],
|
|
974
|
+
[CompletionItemKind$1.Struct, 6 ],
|
|
975
|
+
[CompletionItemKind$1.Module, 8 ],
|
|
976
|
+
[CompletionItemKind$1.Property, 9 ],
|
|
977
|
+
[CompletionItemKind$1.Unit, 12 ],
|
|
978
|
+
[CompletionItemKind$1.Value, 13 ],
|
|
979
|
+
[CompletionItemKind$1.Constant, 14 ],
|
|
980
|
+
[CompletionItemKind$1.Enum, 15 ],
|
|
981
|
+
[CompletionItemKind$1.EnumMember, 16 ],
|
|
982
|
+
[CompletionItemKind$1.Keyword, 17 ],
|
|
983
|
+
[CompletionItemKind$1.Snippet, 27 ],
|
|
984
|
+
[CompletionItemKind$1.Text, 18 ],
|
|
985
|
+
[CompletionItemKind$1.Color, 19 ],
|
|
986
|
+
[CompletionItemKind$1.File, 20 ],
|
|
987
|
+
[CompletionItemKind$1.Reference, 21 ],
|
|
988
|
+
[CompletionItemKind$1.Folder, 23 ],
|
|
989
|
+
[CompletionItemKind$1.Event, 10 ],
|
|
990
|
+
[CompletionItemKind$1.Operator, 11 ],
|
|
991
|
+
[CompletionItemKind$1.TypeParameter, 24 ],
|
|
992
|
+
[CompletionItemKind$1.Issue, 26 ],
|
|
993
|
+
[CompletionItemKind$1.User, 25 ],
|
|
994
|
+
])));
|
|
995
|
+
function from(kind) {
|
|
996
|
+
return _from.get(kind) ?? 9 ;
|
|
997
|
+
}
|
|
998
|
+
CompletionItemKind.from = from;
|
|
999
|
+
const _to = ( (new Map([
|
|
1000
|
+
[0 , CompletionItemKind$1.Method],
|
|
1001
|
+
[1 , CompletionItemKind$1.Function],
|
|
1002
|
+
[2 , CompletionItemKind$1.Constructor],
|
|
1003
|
+
[3 , CompletionItemKind$1.Field],
|
|
1004
|
+
[4 , CompletionItemKind$1.Variable],
|
|
1005
|
+
[5 , CompletionItemKind$1.Class],
|
|
1006
|
+
[7 , CompletionItemKind$1.Interface],
|
|
1007
|
+
[6 , CompletionItemKind$1.Struct],
|
|
1008
|
+
[8 , CompletionItemKind$1.Module],
|
|
1009
|
+
[9 , CompletionItemKind$1.Property],
|
|
1010
|
+
[12 , CompletionItemKind$1.Unit],
|
|
1011
|
+
[13 , CompletionItemKind$1.Value],
|
|
1012
|
+
[14 , CompletionItemKind$1.Constant],
|
|
1013
|
+
[15 , CompletionItemKind$1.Enum],
|
|
1014
|
+
[16 , CompletionItemKind$1.EnumMember],
|
|
1015
|
+
[17 , CompletionItemKind$1.Keyword],
|
|
1016
|
+
[27 , CompletionItemKind$1.Snippet],
|
|
1017
|
+
[18 , CompletionItemKind$1.Text],
|
|
1018
|
+
[19 , CompletionItemKind$1.Color],
|
|
1019
|
+
[20 , CompletionItemKind$1.File],
|
|
1020
|
+
[21 , CompletionItemKind$1.Reference],
|
|
1021
|
+
[23 , CompletionItemKind$1.Folder],
|
|
1022
|
+
[10 , CompletionItemKind$1.Event],
|
|
1023
|
+
[11 , CompletionItemKind$1.Operator],
|
|
1024
|
+
[24 , CompletionItemKind$1.TypeParameter],
|
|
1025
|
+
[25 , CompletionItemKind$1.User],
|
|
1026
|
+
[26 , CompletionItemKind$1.Issue],
|
|
1027
|
+
])));
|
|
1028
|
+
function to(kind) {
|
|
1029
|
+
return _to.get(kind) ?? CompletionItemKind$1.Property;
|
|
1030
|
+
}
|
|
1031
|
+
CompletionItemKind.to = to;
|
|
1032
|
+
})(CompletionItemKind || (CompletionItemKind = {}))));
|
|
1033
|
+
var CompletionItem;
|
|
1034
|
+
( ((function(CompletionItem) {
|
|
1035
|
+
function to(suggestion, converter) {
|
|
1036
|
+
const result = new CompletionItem$1(suggestion.label);
|
|
1037
|
+
result.insertText = suggestion.insertText;
|
|
1038
|
+
result.kind = CompletionItemKind.to(suggestion.kind);
|
|
1039
|
+
result.tags = suggestion.tags?.map(CompletionItemTag.to);
|
|
1040
|
+
result.detail = suggestion.detail;
|
|
1041
|
+
result.documentation = htmlContent.isMarkdownString(suggestion.documentation) ? MarkdownString.to(suggestion.documentation) : suggestion.documentation;
|
|
1042
|
+
result.sortText = suggestion.sortText;
|
|
1043
|
+
result.filterText = suggestion.filterText;
|
|
1044
|
+
result.preselect = suggestion.preselect;
|
|
1045
|
+
result.commitCharacters = suggestion.commitCharacters;
|
|
1046
|
+
if (editorRange.Range.isIRange(suggestion.range)) {
|
|
1047
|
+
result.range = Range.to(suggestion.range);
|
|
1048
|
+
}
|
|
1049
|
+
else if (typeof suggestion.range === 'object') {
|
|
1050
|
+
result.range = { inserting: Range.to(suggestion.range.insert), replacing: Range.to(suggestion.range.replace) };
|
|
1051
|
+
}
|
|
1052
|
+
result.keepWhitespace = typeof suggestion.insertTextRules === 'undefined' ? false : Boolean(suggestion.insertTextRules & 1 );
|
|
1053
|
+
if (typeof suggestion.insertTextRules !== 'undefined' && suggestion.insertTextRules & 4 ) {
|
|
1054
|
+
result.insertText = new SnippetString(suggestion.insertText);
|
|
1055
|
+
}
|
|
1056
|
+
else {
|
|
1057
|
+
result.insertText = suggestion.insertText;
|
|
1058
|
+
result.textEdit = result.range instanceof Range$1 ? new TextEdit$1(result.range, result.insertText) : undefined;
|
|
1059
|
+
}
|
|
1060
|
+
if (suggestion.additionalTextEdits && suggestion.additionalTextEdits.length > 0) {
|
|
1061
|
+
result.additionalTextEdits = ( (suggestion.additionalTextEdits.map(e => TextEdit.to(e))));
|
|
1062
|
+
}
|
|
1063
|
+
result.command = converter && suggestion.command ? converter.fromInternal(suggestion.command) : undefined;
|
|
1064
|
+
return result;
|
|
1065
|
+
}
|
|
1066
|
+
CompletionItem.to = to;
|
|
1067
|
+
})(CompletionItem || (CompletionItem = {}))));
|
|
1068
|
+
var ParameterInformation;
|
|
1069
|
+
( ((function(ParameterInformation) {
|
|
1070
|
+
function from(info) {
|
|
1071
|
+
if (typeof info.label !== 'string' && !Array.isArray(info.label)) {
|
|
1072
|
+
throw new TypeError('Invalid label');
|
|
1073
|
+
}
|
|
1074
|
+
return {
|
|
1075
|
+
label: info.label,
|
|
1076
|
+
documentation: MarkdownString.fromStrict(info.documentation)
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
ParameterInformation.from = from;
|
|
1080
|
+
function to(info) {
|
|
1081
|
+
return {
|
|
1082
|
+
label: info.label,
|
|
1083
|
+
documentation: htmlContent.isMarkdownString(info.documentation) ? MarkdownString.to(info.documentation) : info.documentation
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
ParameterInformation.to = to;
|
|
1087
|
+
})(ParameterInformation || (ParameterInformation = {}))));
|
|
1088
|
+
var SignatureInformation;
|
|
1089
|
+
( ((function(SignatureInformation) {
|
|
1090
|
+
function from(info) {
|
|
1091
|
+
return {
|
|
1092
|
+
label: info.label,
|
|
1093
|
+
documentation: MarkdownString.fromStrict(info.documentation),
|
|
1094
|
+
parameters: Array.isArray(info.parameters) ? ( (info.parameters.map(ParameterInformation.from))) : [],
|
|
1095
|
+
activeParameter: info.activeParameter,
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
SignatureInformation.from = from;
|
|
1099
|
+
function to(info) {
|
|
1100
|
+
return {
|
|
1101
|
+
label: info.label,
|
|
1102
|
+
documentation: htmlContent.isMarkdownString(info.documentation) ? MarkdownString.to(info.documentation) : info.documentation,
|
|
1103
|
+
parameters: Array.isArray(info.parameters) ? ( (info.parameters.map(ParameterInformation.to))) : [],
|
|
1104
|
+
activeParameter: info.activeParameter,
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
SignatureInformation.to = to;
|
|
1108
|
+
})(SignatureInformation || (SignatureInformation = {}))));
|
|
1109
|
+
var SignatureHelp;
|
|
1110
|
+
( ((function(SignatureHelp) {
|
|
1111
|
+
function from(help) {
|
|
1112
|
+
return {
|
|
1113
|
+
activeSignature: help.activeSignature,
|
|
1114
|
+
activeParameter: help.activeParameter,
|
|
1115
|
+
signatures: Array.isArray(help.signatures) ? ( (help.signatures.map(SignatureInformation.from))) : [],
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
SignatureHelp.from = from;
|
|
1119
|
+
function to(help) {
|
|
1120
|
+
return {
|
|
1121
|
+
activeSignature: help.activeSignature,
|
|
1122
|
+
activeParameter: help.activeParameter,
|
|
1123
|
+
signatures: Array.isArray(help.signatures) ? ( (help.signatures.map(SignatureInformation.to))) : [],
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
SignatureHelp.to = to;
|
|
1127
|
+
})(SignatureHelp || (SignatureHelp = {}))));
|
|
1128
|
+
var InlayHint;
|
|
1129
|
+
( ((function(InlayHint) {
|
|
1130
|
+
function to(converter, hint) {
|
|
1131
|
+
const res = new InlayHint$1(Position.to(hint.position), typeof hint.label === 'string' ? hint.label : ( (hint.label.map(InlayHintLabelPart.to.bind(undefined, converter)))), hint.kind && InlayHintKind.to(hint.kind));
|
|
1132
|
+
res.textEdits = hint.textEdits && ( (hint.textEdits.map(TextEdit.to)));
|
|
1133
|
+
res.tooltip = htmlContent.isMarkdownString(hint.tooltip) ? MarkdownString.to(hint.tooltip) : hint.tooltip;
|
|
1134
|
+
res.paddingLeft = hint.paddingLeft;
|
|
1135
|
+
res.paddingRight = hint.paddingRight;
|
|
1136
|
+
return res;
|
|
1137
|
+
}
|
|
1138
|
+
InlayHint.to = to;
|
|
1139
|
+
})(InlayHint || (InlayHint = {}))));
|
|
1140
|
+
var InlayHintLabelPart;
|
|
1141
|
+
( ((function(InlayHintLabelPart) {
|
|
1142
|
+
function to(converter, part) {
|
|
1143
|
+
const result = new InlayHintLabelPart$1(part.label);
|
|
1144
|
+
result.tooltip = htmlContent.isMarkdownString(part.tooltip)
|
|
1145
|
+
? MarkdownString.to(part.tooltip)
|
|
1146
|
+
: part.tooltip;
|
|
1147
|
+
if (languages.Command.is(part.command)) {
|
|
1148
|
+
result.command = converter.fromInternal(part.command);
|
|
1149
|
+
}
|
|
1150
|
+
if (part.location) {
|
|
1151
|
+
result.location = location.to(part.location);
|
|
1152
|
+
}
|
|
1153
|
+
return result;
|
|
1154
|
+
}
|
|
1155
|
+
InlayHintLabelPart.to = to;
|
|
1156
|
+
})(InlayHintLabelPart || (InlayHintLabelPart = {}))));
|
|
1157
|
+
var InlayHintKind;
|
|
1158
|
+
( ((function(InlayHintKind) {
|
|
1159
|
+
function from(kind) {
|
|
1160
|
+
return kind;
|
|
1161
|
+
}
|
|
1162
|
+
InlayHintKind.from = from;
|
|
1163
|
+
function to(kind) {
|
|
1164
|
+
return kind;
|
|
1165
|
+
}
|
|
1166
|
+
InlayHintKind.to = to;
|
|
1167
|
+
})(InlayHintKind || (InlayHintKind = {}))));
|
|
1168
|
+
var DocumentLink;
|
|
1169
|
+
( ((function(DocumentLink) {
|
|
1170
|
+
function from(link) {
|
|
1171
|
+
return {
|
|
1172
|
+
range: Range.from(link.range),
|
|
1173
|
+
url: link.target,
|
|
1174
|
+
tooltip: link.tooltip
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
DocumentLink.from = from;
|
|
1178
|
+
function to(link) {
|
|
1179
|
+
let target = undefined;
|
|
1180
|
+
if (link.url) {
|
|
1181
|
+
try {
|
|
1182
|
+
target = typeof link.url === 'string' ? ( (URI.parse(link.url, true))) : URI.revive(link.url);
|
|
1183
|
+
}
|
|
1184
|
+
catch (err) {
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
return new DocumentLink$1(Range.to(link.range), target);
|
|
1188
|
+
}
|
|
1189
|
+
DocumentLink.to = to;
|
|
1190
|
+
})(DocumentLink || (DocumentLink = {}))));
|
|
1191
|
+
var ColorPresentation;
|
|
1192
|
+
( ((function(ColorPresentation) {
|
|
1193
|
+
function to(colorPresentation) {
|
|
1194
|
+
const cp = new ColorPresentation$1(colorPresentation.label);
|
|
1195
|
+
if (colorPresentation.textEdit) {
|
|
1196
|
+
cp.textEdit = TextEdit.to(colorPresentation.textEdit);
|
|
1197
|
+
}
|
|
1198
|
+
if (colorPresentation.additionalTextEdits) {
|
|
1199
|
+
cp.additionalTextEdits = ( (colorPresentation.additionalTextEdits.map(value => TextEdit.to(value))));
|
|
1200
|
+
}
|
|
1201
|
+
return cp;
|
|
1202
|
+
}
|
|
1203
|
+
ColorPresentation.to = to;
|
|
1204
|
+
function from(colorPresentation) {
|
|
1205
|
+
return {
|
|
1206
|
+
label: colorPresentation.label,
|
|
1207
|
+
textEdit: colorPresentation.textEdit ? TextEdit.from(colorPresentation.textEdit) : undefined,
|
|
1208
|
+
additionalTextEdits: colorPresentation.additionalTextEdits ? ( (colorPresentation.additionalTextEdits.map(value => TextEdit.from(value)))) : undefined
|
|
1209
|
+
};
|
|
1210
|
+
}
|
|
1211
|
+
ColorPresentation.from = from;
|
|
1212
|
+
})(ColorPresentation || (ColorPresentation = {}))));
|
|
1213
|
+
var Color;
|
|
1214
|
+
( ((function(Color) {
|
|
1215
|
+
function to(c) {
|
|
1216
|
+
return new Color$1(c[0], c[1], c[2], c[3]);
|
|
1217
|
+
}
|
|
1218
|
+
Color.to = to;
|
|
1219
|
+
function from(color) {
|
|
1220
|
+
return [color.red, color.green, color.blue, color.alpha];
|
|
1221
|
+
}
|
|
1222
|
+
Color.from = from;
|
|
1223
|
+
})(Color || (Color = {}))));
|
|
1224
|
+
var SelectionRange;
|
|
1225
|
+
( ((function(SelectionRange) {
|
|
1226
|
+
function from(obj) {
|
|
1227
|
+
return { range: Range.from(obj.range) };
|
|
1228
|
+
}
|
|
1229
|
+
SelectionRange.from = from;
|
|
1230
|
+
function to(obj) {
|
|
1231
|
+
return new SelectionRange$1(Range.to(obj.range));
|
|
1232
|
+
}
|
|
1233
|
+
SelectionRange.to = to;
|
|
1234
|
+
})(SelectionRange || (SelectionRange = {}))));
|
|
1235
|
+
var TextDocumentSaveReason;
|
|
1236
|
+
( ((function(TextDocumentSaveReason) {
|
|
1237
|
+
function to(reason) {
|
|
1238
|
+
switch (reason) {
|
|
1239
|
+
case 2 :
|
|
1240
|
+
return TextDocumentSaveReason$1.AfterDelay;
|
|
1241
|
+
case 1 :
|
|
1242
|
+
return TextDocumentSaveReason$1.Manual;
|
|
1243
|
+
case 3 :
|
|
1244
|
+
case 4 :
|
|
1245
|
+
return TextDocumentSaveReason$1.FocusOut;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
TextDocumentSaveReason.to = to;
|
|
1249
|
+
})(TextDocumentSaveReason || (TextDocumentSaveReason = {}))));
|
|
1250
|
+
var TextEditorLineNumbersStyle;
|
|
1251
|
+
( ((function(TextEditorLineNumbersStyle) {
|
|
1252
|
+
function from(style) {
|
|
1253
|
+
switch (style) {
|
|
1254
|
+
case TextEditorLineNumbersStyle$1.Off:
|
|
1255
|
+
return 0 ;
|
|
1256
|
+
case TextEditorLineNumbersStyle$1.Relative:
|
|
1257
|
+
return 2 ;
|
|
1258
|
+
case TextEditorLineNumbersStyle$1.On:
|
|
1259
|
+
default:
|
|
1260
|
+
return 1 ;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
TextEditorLineNumbersStyle.from = from;
|
|
1264
|
+
function to(style) {
|
|
1265
|
+
switch (style) {
|
|
1266
|
+
case 0 :
|
|
1267
|
+
return TextEditorLineNumbersStyle$1.Off;
|
|
1268
|
+
case 2 :
|
|
1269
|
+
return TextEditorLineNumbersStyle$1.Relative;
|
|
1270
|
+
case 1 :
|
|
1271
|
+
default:
|
|
1272
|
+
return TextEditorLineNumbersStyle$1.On;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
TextEditorLineNumbersStyle.to = to;
|
|
1276
|
+
})(TextEditorLineNumbersStyle || (TextEditorLineNumbersStyle = {}))));
|
|
1277
|
+
var EndOfLine;
|
|
1278
|
+
( ((function(EndOfLine) {
|
|
1279
|
+
function from(eol) {
|
|
1280
|
+
if (eol === EndOfLine$1.CRLF) {
|
|
1281
|
+
return 1 ;
|
|
1282
|
+
}
|
|
1283
|
+
else if (eol === EndOfLine$1.LF) {
|
|
1284
|
+
return 0 ;
|
|
1285
|
+
}
|
|
1286
|
+
return undefined;
|
|
1287
|
+
}
|
|
1288
|
+
EndOfLine.from = from;
|
|
1289
|
+
function to(eol) {
|
|
1290
|
+
if (eol === 1 ) {
|
|
1291
|
+
return EndOfLine$1.CRLF;
|
|
1292
|
+
}
|
|
1293
|
+
else if (eol === 0 ) {
|
|
1294
|
+
return EndOfLine$1.LF;
|
|
1295
|
+
}
|
|
1296
|
+
return undefined;
|
|
1297
|
+
}
|
|
1298
|
+
EndOfLine.to = to;
|
|
1299
|
+
})(EndOfLine || (EndOfLine = {}))));
|
|
1300
|
+
var ProgressLocation;
|
|
1301
|
+
( ((function(ProgressLocation) {
|
|
1302
|
+
function from(loc) {
|
|
1303
|
+
if (typeof loc === 'object') {
|
|
1304
|
+
return loc.viewId;
|
|
1305
|
+
}
|
|
1306
|
+
switch (loc) {
|
|
1307
|
+
case ProgressLocation$1.SourceControl: return 3 ;
|
|
1308
|
+
case ProgressLocation$1.Window: return 10 ;
|
|
1309
|
+
case ProgressLocation$1.Notification: return 15 ;
|
|
1310
|
+
}
|
|
1311
|
+
throw new Error(`Unknown 'ProgressLocation'`);
|
|
1312
|
+
}
|
|
1313
|
+
ProgressLocation.from = from;
|
|
1314
|
+
})(ProgressLocation || (ProgressLocation = {}))));
|
|
1315
|
+
var FoldingRange;
|
|
1316
|
+
( ((function(FoldingRange) {
|
|
1317
|
+
function from(r) {
|
|
1318
|
+
const range = { start: r.start + 1, end: r.end + 1 };
|
|
1319
|
+
if (r.kind) {
|
|
1320
|
+
range.kind = FoldingRangeKind.from(r.kind);
|
|
1321
|
+
}
|
|
1322
|
+
return range;
|
|
1323
|
+
}
|
|
1324
|
+
FoldingRange.from = from;
|
|
1325
|
+
function to(r) {
|
|
1326
|
+
const range = { start: r.start - 1, end: r.end - 1 };
|
|
1327
|
+
if (r.kind) {
|
|
1328
|
+
range.kind = FoldingRangeKind.to(r.kind);
|
|
1329
|
+
}
|
|
1330
|
+
return range;
|
|
1331
|
+
}
|
|
1332
|
+
FoldingRange.to = to;
|
|
1333
|
+
})(FoldingRange || (FoldingRange = {}))));
|
|
1334
|
+
var FoldingRangeKind;
|
|
1335
|
+
( ((function(FoldingRangeKind) {
|
|
1336
|
+
function from(kind) {
|
|
1337
|
+
if (kind) {
|
|
1338
|
+
switch (kind) {
|
|
1339
|
+
case FoldingRangeKind$1.Comment:
|
|
1340
|
+
return languages.FoldingRangeKind.Comment;
|
|
1341
|
+
case FoldingRangeKind$1.Imports:
|
|
1342
|
+
return languages.FoldingRangeKind.Imports;
|
|
1343
|
+
case FoldingRangeKind$1.Region:
|
|
1344
|
+
return languages.FoldingRangeKind.Region;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
return undefined;
|
|
1348
|
+
}
|
|
1349
|
+
FoldingRangeKind.from = from;
|
|
1350
|
+
function to(kind) {
|
|
1351
|
+
if (kind) {
|
|
1352
|
+
switch (kind.value) {
|
|
1353
|
+
case languages.FoldingRangeKind.Comment.value:
|
|
1354
|
+
return FoldingRangeKind$1.Comment;
|
|
1355
|
+
case languages.FoldingRangeKind.Imports.value:
|
|
1356
|
+
return FoldingRangeKind$1.Imports;
|
|
1357
|
+
case languages.FoldingRangeKind.Region.value:
|
|
1358
|
+
return FoldingRangeKind$1.Region;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
return undefined;
|
|
1362
|
+
}
|
|
1363
|
+
FoldingRangeKind.to = to;
|
|
1364
|
+
})(FoldingRangeKind || (FoldingRangeKind = {}))));
|
|
1365
|
+
var TextEditorOpenOptions;
|
|
1366
|
+
( ((function(TextEditorOpenOptions) {
|
|
1367
|
+
function from(options) {
|
|
1368
|
+
if (options) {
|
|
1369
|
+
return {
|
|
1370
|
+
pinned: typeof options.preview === 'boolean' ? !options.preview : undefined,
|
|
1371
|
+
inactive: options.background,
|
|
1372
|
+
preserveFocus: options.preserveFocus,
|
|
1373
|
+
selection: typeof options.selection === 'object' ? Range.from(options.selection) : undefined,
|
|
1374
|
+
override: typeof options.override === 'boolean' ? DEFAULT_EDITOR_ASSOCIATION.id : undefined
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
return undefined;
|
|
1378
|
+
}
|
|
1379
|
+
TextEditorOpenOptions.from = from;
|
|
1380
|
+
})(TextEditorOpenOptions || (TextEditorOpenOptions = {}))));
|
|
1381
|
+
var GlobPattern;
|
|
1382
|
+
( ((function(GlobPattern) {
|
|
1383
|
+
function from(pattern) {
|
|
1384
|
+
if (pattern instanceof RelativePattern) {
|
|
1385
|
+
return pattern.toJSON();
|
|
1386
|
+
}
|
|
1387
|
+
if (typeof pattern === 'string') {
|
|
1388
|
+
return pattern;
|
|
1389
|
+
}
|
|
1390
|
+
if (isRelativePatternShape(pattern) || isLegacyRelativePatternShape(pattern)) {
|
|
1391
|
+
return new RelativePattern(pattern.baseUri ?? pattern.base, pattern.pattern).toJSON();
|
|
1392
|
+
}
|
|
1393
|
+
return pattern;
|
|
1394
|
+
}
|
|
1395
|
+
GlobPattern.from = from;
|
|
1396
|
+
function isRelativePatternShape(obj) {
|
|
1397
|
+
const rp = obj;
|
|
1398
|
+
if (!rp) {
|
|
1399
|
+
return false;
|
|
1400
|
+
}
|
|
1401
|
+
return URI.isUri(rp.baseUri) && typeof rp.pattern === 'string';
|
|
1402
|
+
}
|
|
1403
|
+
function isLegacyRelativePatternShape(obj) {
|
|
1404
|
+
const rp = obj;
|
|
1405
|
+
if (!rp) {
|
|
1406
|
+
return false;
|
|
1407
|
+
}
|
|
1408
|
+
return typeof rp.base === 'string' && typeof rp.pattern === 'string';
|
|
1409
|
+
}
|
|
1410
|
+
function to(pattern) {
|
|
1411
|
+
if (typeof pattern === 'string') {
|
|
1412
|
+
return pattern;
|
|
1413
|
+
}
|
|
1414
|
+
return new RelativePattern(URI.revive(pattern.baseUri), pattern.pattern);
|
|
1415
|
+
}
|
|
1416
|
+
GlobPattern.to = to;
|
|
1417
|
+
})(GlobPattern || (GlobPattern = {}))));
|
|
1418
|
+
var LanguageSelector;
|
|
1419
|
+
( ((function(LanguageSelector) {
|
|
1420
|
+
function from(selector) {
|
|
1421
|
+
if (!selector) {
|
|
1422
|
+
return undefined;
|
|
1423
|
+
}
|
|
1424
|
+
else if (Array.isArray(selector)) {
|
|
1425
|
+
return (
|
|
1426
|
+
(selector.map(from))
|
|
1427
|
+
);
|
|
1428
|
+
}
|
|
1429
|
+
else if (typeof selector === 'string') {
|
|
1430
|
+
return selector;
|
|
1431
|
+
}
|
|
1432
|
+
else {
|
|
1433
|
+
const filter = selector;
|
|
1434
|
+
return {
|
|
1435
|
+
language: filter.language,
|
|
1436
|
+
scheme: filter.scheme,
|
|
1437
|
+
pattern: GlobPattern.from(filter.pattern),
|
|
1438
|
+
exclusive: filter.exclusive,
|
|
1439
|
+
notebookType: filter.notebookType
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
LanguageSelector.from = from;
|
|
1444
|
+
})(LanguageSelector || (LanguageSelector = {}))));
|
|
1445
|
+
var NotebookRange;
|
|
1446
|
+
( ((function(NotebookRange) {
|
|
1447
|
+
function from(range) {
|
|
1448
|
+
return { start: range.start, end: range.end };
|
|
1449
|
+
}
|
|
1450
|
+
NotebookRange.from = from;
|
|
1451
|
+
function to(range) {
|
|
1452
|
+
return new NotebookRange$1(range.start, range.end);
|
|
1453
|
+
}
|
|
1454
|
+
NotebookRange.to = to;
|
|
1455
|
+
})(NotebookRange || (NotebookRange = {}))));
|
|
1456
|
+
var NotebookCellExecutionSummary;
|
|
1457
|
+
( ((function(NotebookCellExecutionSummary) {
|
|
1458
|
+
function to(data) {
|
|
1459
|
+
return {
|
|
1460
|
+
timing: typeof data.runStartTime === 'number' && typeof data.runEndTime === 'number' ? { startTime: data.runStartTime, endTime: data.runEndTime } : undefined,
|
|
1461
|
+
executionOrder: data.executionOrder,
|
|
1462
|
+
success: data.lastRunSuccess
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
NotebookCellExecutionSummary.to = to;
|
|
1466
|
+
function from(data) {
|
|
1467
|
+
return {
|
|
1468
|
+
lastRunSuccess: data.success,
|
|
1469
|
+
runStartTime: data.timing?.startTime,
|
|
1470
|
+
runEndTime: data.timing?.endTime,
|
|
1471
|
+
executionOrder: data.executionOrder
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
NotebookCellExecutionSummary.from = from;
|
|
1475
|
+
})(NotebookCellExecutionSummary || (NotebookCellExecutionSummary = {}))));
|
|
1476
|
+
var NotebookCellKind;
|
|
1477
|
+
( ((function(NotebookCellKind) {
|
|
1478
|
+
function from(data) {
|
|
1479
|
+
switch (data) {
|
|
1480
|
+
case NotebookCellKind$1.Markup:
|
|
1481
|
+
return CellKind.Markup;
|
|
1482
|
+
case NotebookCellKind$1.Code:
|
|
1483
|
+
default:
|
|
1484
|
+
return CellKind.Code;
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
NotebookCellKind.from = from;
|
|
1488
|
+
function to(data) {
|
|
1489
|
+
switch (data) {
|
|
1490
|
+
case CellKind.Markup:
|
|
1491
|
+
return NotebookCellKind$1.Markup;
|
|
1492
|
+
case CellKind.Code:
|
|
1493
|
+
default:
|
|
1494
|
+
return NotebookCellKind$1.Code;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
NotebookCellKind.to = to;
|
|
1498
|
+
})(NotebookCellKind || (NotebookCellKind = {}))));
|
|
1499
|
+
var NotebookCellData;
|
|
1500
|
+
( ((function(NotebookCellData) {
|
|
1501
|
+
function from(data) {
|
|
1502
|
+
return {
|
|
1503
|
+
cellKind: NotebookCellKind.from(data.kind),
|
|
1504
|
+
language: data.languageId,
|
|
1505
|
+
mime: data.mime,
|
|
1506
|
+
source: data.value,
|
|
1507
|
+
metadata: data.metadata,
|
|
1508
|
+
internalMetadata: NotebookCellExecutionSummary.from(data.executionSummary ?? {}),
|
|
1509
|
+
outputs: data.outputs ? ( (data.outputs.map(NotebookCellOutput.from))) : []
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
NotebookCellData.from = from;
|
|
1513
|
+
function to(data) {
|
|
1514
|
+
return new NotebookCellData$1(NotebookCellKind.to(data.cellKind), data.source, data.language, data.mime, data.outputs ? ( (data.outputs.map(NotebookCellOutput.to))) : undefined, data.metadata, data.internalMetadata ? NotebookCellExecutionSummary.to(data.internalMetadata) : undefined);
|
|
1515
|
+
}
|
|
1516
|
+
NotebookCellData.to = to;
|
|
1517
|
+
})(NotebookCellData || (NotebookCellData = {}))));
|
|
1518
|
+
var NotebookCellOutputItem;
|
|
1519
|
+
( ((function(NotebookCellOutputItem) {
|
|
1520
|
+
function from(item) {
|
|
1521
|
+
return {
|
|
1522
|
+
mime: item.mime,
|
|
1523
|
+
valueBytes: VSBuffer.wrap(item.data),
|
|
1524
|
+
};
|
|
1525
|
+
}
|
|
1526
|
+
NotebookCellOutputItem.from = from;
|
|
1527
|
+
function to(item) {
|
|
1528
|
+
return new NotebookCellOutputItem$1(item.valueBytes.buffer, item.mime);
|
|
1529
|
+
}
|
|
1530
|
+
NotebookCellOutputItem.to = to;
|
|
1531
|
+
})(NotebookCellOutputItem || (NotebookCellOutputItem = {}))));
|
|
1532
|
+
var NotebookCellOutput;
|
|
1533
|
+
( ((function(NotebookCellOutput) {
|
|
1534
|
+
function from(output) {
|
|
1535
|
+
return {
|
|
1536
|
+
outputId: output.id,
|
|
1537
|
+
items: ( (output.items.map(NotebookCellOutputItem.from))),
|
|
1538
|
+
metadata: output.metadata
|
|
1539
|
+
};
|
|
1540
|
+
}
|
|
1541
|
+
NotebookCellOutput.from = from;
|
|
1542
|
+
function to(output) {
|
|
1543
|
+
const items = ( (output.items.map(NotebookCellOutputItem.to)));
|
|
1544
|
+
return new NotebookCellOutput$1(items, output.outputId, output.metadata);
|
|
1545
|
+
}
|
|
1546
|
+
NotebookCellOutput.to = to;
|
|
1547
|
+
})(NotebookCellOutput || (NotebookCellOutput = {}))));
|
|
1548
|
+
var NotebookExclusiveDocumentPattern;
|
|
1549
|
+
( ((function(NotebookExclusiveDocumentPattern) {
|
|
1550
|
+
function from(pattern) {
|
|
1551
|
+
if (isExclusivePattern(pattern)) {
|
|
1552
|
+
return {
|
|
1553
|
+
include: withNullAsUndefined(GlobPattern.from(pattern.include)),
|
|
1554
|
+
exclude: withNullAsUndefined(GlobPattern.from(pattern.exclude))
|
|
1555
|
+
};
|
|
1556
|
+
}
|
|
1557
|
+
return withNullAsUndefined(GlobPattern.from(pattern));
|
|
1558
|
+
}
|
|
1559
|
+
NotebookExclusiveDocumentPattern.from = from;
|
|
1560
|
+
function to(pattern) {
|
|
1561
|
+
if (isExclusivePattern(pattern)) {
|
|
1562
|
+
return {
|
|
1563
|
+
include: GlobPattern.to(pattern.include),
|
|
1564
|
+
exclude: GlobPattern.to(pattern.exclude)
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
return GlobPattern.to(pattern);
|
|
1568
|
+
}
|
|
1569
|
+
NotebookExclusiveDocumentPattern.to = to;
|
|
1570
|
+
function isExclusivePattern(obj) {
|
|
1571
|
+
const ep = obj;
|
|
1572
|
+
if (!ep) {
|
|
1573
|
+
return false;
|
|
1574
|
+
}
|
|
1575
|
+
return !isUndefinedOrNull(ep.include) && !isUndefinedOrNull(ep.exclude);
|
|
1576
|
+
}
|
|
1577
|
+
})(
|
|
1578
|
+
NotebookExclusiveDocumentPattern || (NotebookExclusiveDocumentPattern = {})
|
|
1579
|
+
)));
|
|
1580
|
+
var TestTag;
|
|
1581
|
+
( ((function(TestTag) {
|
|
1582
|
+
TestTag.namespace = namespaceTestTag;
|
|
1583
|
+
TestTag.denamespace = denamespaceTestTag;
|
|
1584
|
+
})(TestTag || (TestTag = {}))));
|
|
1585
|
+
var TestItem;
|
|
1586
|
+
( ((function(TestItem) {
|
|
1587
|
+
function from(item) {
|
|
1588
|
+
const ctrlId = getPrivateApiFor(item).controllerId;
|
|
1589
|
+
return {
|
|
1590
|
+
extId: ( (TestId.fromExtHostTestItem(item, ctrlId).toString())),
|
|
1591
|
+
label: item.label,
|
|
1592
|
+
uri: URI.revive(item.uri),
|
|
1593
|
+
busy: item.busy,
|
|
1594
|
+
tags: ( (item.tags.map(t => TestTag.namespace(ctrlId, t.id)))),
|
|
1595
|
+
range: editorRange.Range.lift(Range.from(item.range)),
|
|
1596
|
+
description: item.description || null,
|
|
1597
|
+
sortText: item.sortText || null,
|
|
1598
|
+
error: item.error ? (MarkdownString.fromStrict(item.error) || null) : null,
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
TestItem.from = from;
|
|
1602
|
+
function toPlain(item) {
|
|
1603
|
+
return {
|
|
1604
|
+
parent: undefined,
|
|
1605
|
+
error: undefined,
|
|
1606
|
+
id: TestId.fromString(item.extId).localId,
|
|
1607
|
+
label: item.label,
|
|
1608
|
+
uri: URI.revive(item.uri),
|
|
1609
|
+
tags: ( ((item.tags || []).map(t => {
|
|
1610
|
+
const { tagId } = TestTag.denamespace(t);
|
|
1611
|
+
return new TestTag$1(tagId);
|
|
1612
|
+
}))),
|
|
1613
|
+
children: {
|
|
1614
|
+
add: () => { },
|
|
1615
|
+
delete: () => { },
|
|
1616
|
+
forEach: () => { },
|
|
1617
|
+
*[Symbol.iterator]() { },
|
|
1618
|
+
get: () => undefined,
|
|
1619
|
+
replace: () => { },
|
|
1620
|
+
size: 0,
|
|
1621
|
+
},
|
|
1622
|
+
range: Range.to(item.range || undefined),
|
|
1623
|
+
canResolveChildren: false,
|
|
1624
|
+
busy: item.busy,
|
|
1625
|
+
description: item.description || undefined,
|
|
1626
|
+
sortText: item.sortText || undefined,
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
TestItem.toPlain = toPlain;
|
|
1630
|
+
})(TestItem || (TestItem = {}))));
|
|
1631
|
+
( ((function(TestTag) {
|
|
1632
|
+
function from(tag) {
|
|
1633
|
+
return { id: tag.id };
|
|
1634
|
+
}
|
|
1635
|
+
TestTag.from = from;
|
|
1636
|
+
function to(tag) {
|
|
1637
|
+
return new TestTag$1(tag.id);
|
|
1638
|
+
}
|
|
1639
|
+
TestTag.to = to;
|
|
1640
|
+
})(TestTag || (TestTag = {}))));
|
|
1641
|
+
var CodeActionTriggerKind;
|
|
1642
|
+
( ((function(CodeActionTriggerKind) {
|
|
1643
|
+
function to(value) {
|
|
1644
|
+
switch (value) {
|
|
1645
|
+
case 1 :
|
|
1646
|
+
return CodeActionTriggerKind$1.Invoke;
|
|
1647
|
+
case 2 :
|
|
1648
|
+
return CodeActionTriggerKind$1.Automatic;
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
CodeActionTriggerKind.to = to;
|
|
1652
|
+
})(CodeActionTriggerKind || (CodeActionTriggerKind = {}))));
|
|
1653
|
+
var TypeHierarchyItem;
|
|
1654
|
+
( ((function(TypeHierarchyItem) {
|
|
1655
|
+
function to(item) {
|
|
1656
|
+
const result = new TypeHierarchyItem$1(SymbolKind.to(item.kind), item.name, item.detail || '', URI.revive(item.uri), Range.to(item.range), Range.to(item.selectionRange));
|
|
1657
|
+
result._sessionId = item._sessionId;
|
|
1658
|
+
result._itemId = item._itemId;
|
|
1659
|
+
return result;
|
|
1660
|
+
}
|
|
1661
|
+
TypeHierarchyItem.to = to;
|
|
1662
|
+
function from(item, sessionId, itemId) {
|
|
1663
|
+
sessionId = sessionId ?? item._sessionId;
|
|
1664
|
+
itemId = itemId ?? item._itemId;
|
|
1665
|
+
if (sessionId === undefined || itemId === undefined) {
|
|
1666
|
+
throw new Error('invalid item');
|
|
1667
|
+
}
|
|
1668
|
+
return {
|
|
1669
|
+
_sessionId: sessionId,
|
|
1670
|
+
_itemId: itemId,
|
|
1671
|
+
kind: SymbolKind.from(item.kind),
|
|
1672
|
+
name: item.name,
|
|
1673
|
+
detail: item.detail ?? '',
|
|
1674
|
+
uri: item.uri,
|
|
1675
|
+
range: Range.from(item.range),
|
|
1676
|
+
selectionRange: Range.from(item.selectionRange),
|
|
1677
|
+
tags: item.tags?.map(SymbolTag.from)
|
|
1678
|
+
};
|
|
1679
|
+
}
|
|
1680
|
+
TypeHierarchyItem.from = from;
|
|
1681
|
+
})(TypeHierarchyItem || (TypeHierarchyItem = {}))));
|
|
1682
|
+
var DataTransferItem;
|
|
1683
|
+
( ((function(DataTransferItem) {
|
|
1684
|
+
function to(mime, item, resolveFileData) {
|
|
1685
|
+
const file = item.fileData;
|
|
1686
|
+
if (file) {
|
|
1687
|
+
return new (class extends DataTransferItem$1 {
|
|
1688
|
+
asFile() {
|
|
1689
|
+
return {
|
|
1690
|
+
name: file.name,
|
|
1691
|
+
uri: URI.revive(file.uri),
|
|
1692
|
+
data: once(() => resolveFileData()),
|
|
1693
|
+
};
|
|
1694
|
+
}
|
|
1695
|
+
})('', item.id);
|
|
1696
|
+
}
|
|
1697
|
+
if (mime === Mimes.uriList && item.uriListData) {
|
|
1698
|
+
return new DataTransferItem$1(reviveUriList(item.uriListData));
|
|
1699
|
+
}
|
|
1700
|
+
return new DataTransferItem$1(item.asString);
|
|
1701
|
+
}
|
|
1702
|
+
DataTransferItem.to = to;
|
|
1703
|
+
async function from(mime, item) {
|
|
1704
|
+
const stringValue = await item.asString();
|
|
1705
|
+
if (mime === Mimes.uriList) {
|
|
1706
|
+
return {
|
|
1707
|
+
id: item.id,
|
|
1708
|
+
asString: stringValue,
|
|
1709
|
+
fileData: undefined,
|
|
1710
|
+
uriListData: serializeUriList(stringValue),
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
const fileValue = item.asFile();
|
|
1714
|
+
return {
|
|
1715
|
+
id: item.id,
|
|
1716
|
+
asString: stringValue,
|
|
1717
|
+
fileData: fileValue ? { name: fileValue.name, uri: fileValue.uri } : undefined,
|
|
1718
|
+
};
|
|
1719
|
+
}
|
|
1720
|
+
DataTransferItem.from = from;
|
|
1721
|
+
function serializeUriList(stringValue) {
|
|
1722
|
+
return (
|
|
1723
|
+
(UriList.split(stringValue).map(part => {
|
|
1724
|
+
if (part.startsWith('#')) {
|
|
1725
|
+
return part;
|
|
1726
|
+
}
|
|
1727
|
+
try {
|
|
1728
|
+
return (
|
|
1729
|
+
(URI.parse(part))
|
|
1730
|
+
);
|
|
1731
|
+
}
|
|
1732
|
+
catch {
|
|
1733
|
+
}
|
|
1734
|
+
return part;
|
|
1735
|
+
}))
|
|
1736
|
+
);
|
|
1737
|
+
}
|
|
1738
|
+
function reviveUriList(parts) {
|
|
1739
|
+
return UriList.create(( (parts.map(part => {
|
|
1740
|
+
return typeof part === 'string' ? part : URI.revive(part);
|
|
1741
|
+
}))));
|
|
1742
|
+
}
|
|
1743
|
+
})(DataTransferItem || (DataTransferItem = {}))));
|
|
1744
|
+
var DataTransfer;
|
|
1745
|
+
( ((function(DataTransfer) {
|
|
1746
|
+
function toDataTransfer(value, resolveFileData) {
|
|
1747
|
+
const init = ( (value.items.map(([type, item]) => {
|
|
1748
|
+
return [type, DataTransferItem.to(type, item, () => resolveFileData(item.id))];
|
|
1749
|
+
})));
|
|
1750
|
+
return new DataTransfer$1(init);
|
|
1751
|
+
}
|
|
1752
|
+
DataTransfer.toDataTransfer = toDataTransfer;
|
|
1753
|
+
async function toDataTransferDTO(value) {
|
|
1754
|
+
const newDTO = { items: [] };
|
|
1755
|
+
const promises = [];
|
|
1756
|
+
value.forEach((value, key) => {
|
|
1757
|
+
promises.push((async () => {
|
|
1758
|
+
newDTO.items.push([key, await DataTransferItem.from(key, value)]);
|
|
1759
|
+
})());
|
|
1760
|
+
});
|
|
1761
|
+
await Promise.all(promises);
|
|
1762
|
+
return newDTO;
|
|
1763
|
+
}
|
|
1764
|
+
DataTransfer.toDataTransferDTO = toDataTransferDTO;
|
|
1765
|
+
})(DataTransfer || (DataTransfer = {}))));
|
|
1766
|
+
export { CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CodeActionTriggerKind, Color, ColorPresentation, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionTriggerKind, DataTransfer, DataTransferItem, DecorationRangeBehavior, DecorationRenderOptions, DefinitionLink, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentHighlight, DocumentLink, DocumentSelector, DocumentSymbol, EndOfLine, EvaluatableExpression, FoldingRange, FoldingRangeKind, GlobPattern, Hover, InlayHint, InlayHintKind, InlayHintLabelPart, InlineValue, InlineValueContext, LanguageSelector, MarkdownString, NotebookCellData, NotebookCellExecutionSummary, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookExclusiveDocumentPattern, NotebookRange, ParameterInformation, Position, ProgressLocation, Range, Selection, SelectionRange, SignatureHelp, SignatureInformation, SymbolKind, SymbolTag, TestItem, TestTag, TextDocumentSaveReason, TextEdit, TextEditorLineNumbersStyle, TextEditorOpenOptions, ThemableDecorationAttachmentRenderOptions, ThemableDecorationRenderOptions, TokenType, TypeHierarchyItem, ViewColumn, WorkspaceEdit, WorkspaceSymbol, fromRangeOrRangeWithMessage, isDecorationOptionsArr, location, pathOrURIToURI };
|