@codingame/monaco-vscode-api 1.78.4-next.3 → 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.d.ts +11 -11
- 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/{layout.js → service-override/layout.js} +8 -8
- 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/{contributions.js → vscode/vs/workbench/common/contributions.js} +3 -2
- 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/{textEditor.js → vscode/vs/workbench/services/editor/common/editorGroupColumn.js} +3 -14
- 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/{layoutService.js → vscode/vs/workbench/services/layout/browser/layoutService.js} +1 -1
- 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/extHost.js +0 -19602
- package/dist/extensions2.js +0 -77
- 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/missing-services.js +0 -34881
- 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/variableResolver.js +0 -586
- 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,2810 @@
|
|
|
1
|
+
import { __decorate, __classPrivateFieldSet, __classPrivateFieldGet } from '../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { coalesceInPlace, equals } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
3
|
+
import { illegalArgument } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
4
|
+
import { MarkdownString as MarkdownString$1 } from 'monaco-editor/esm/vs/base/common/htmlContent.js';
|
|
5
|
+
import { ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
6
|
+
import { normalizeMimeType, Mimes } from 'monaco-editor/esm/vs/base/common/mime.js';
|
|
7
|
+
import { nextCharLength } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
8
|
+
import { isNumber, isObject, isString, isStringArray } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
9
|
+
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
10
|
+
import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
|
|
11
|
+
import { FileSystemProviderErrorCode, markAsFileSystemProviderError } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
12
|
+
import { RemoteAuthorityResolverErrorCode } from '../../../platform/remote/common/remoteAuthorityResolver.js';
|
|
13
|
+
import { isTextStreamMime } from '../../contrib/notebook/common/notebookCommon.js';
|
|
14
|
+
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
15
|
+
var _Disposable_callOnDispose, _MarkdownString_delegate, _DataTransfer_instances, _DataTransfer_items, _DataTransfer_normalizeMime, _a, _NotebookCellOutputItem_encoder;
|
|
16
|
+
var Disposable_1, Position_1, Range_1, Selection_1, TextEdit_1, NotebookEdit_1, SnippetString_1, Location_1, SymbolInformation_1, DocumentSymbol_1, CodeActionKind_1, MarkdownString_1, TaskGroup_1, Task_1, TreeItem_1, FileSystemError_1, TestMessage_1;
|
|
17
|
+
function es5ClassCompat(target) {
|
|
18
|
+
const interceptFunctions = {
|
|
19
|
+
apply: function () {
|
|
20
|
+
const args = arguments.length === 1 ? [] : arguments[1];
|
|
21
|
+
return Reflect.construct(target, args, arguments[0].constructor);
|
|
22
|
+
},
|
|
23
|
+
call: function () {
|
|
24
|
+
if (arguments.length === 0) {
|
|
25
|
+
return Reflect.construct(target, []);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
const [thisArg, ...restArgs] = arguments;
|
|
29
|
+
return Reflect.construct(target, restArgs, thisArg.constructor);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return Object.assign(target, interceptFunctions);
|
|
34
|
+
}
|
|
35
|
+
let Disposable = Disposable_1 = class Disposable {
|
|
36
|
+
static from(...inDisposables) {
|
|
37
|
+
let disposables = inDisposables;
|
|
38
|
+
return ( new Disposable_1(function () {
|
|
39
|
+
if (disposables) {
|
|
40
|
+
for (const disposable of disposables) {
|
|
41
|
+
if (disposable && typeof disposable.dispose === 'function') {
|
|
42
|
+
disposable.dispose();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
disposables = undefined;
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
constructor(callOnDispose) {
|
|
50
|
+
_Disposable_callOnDispose.set(this, void 0);
|
|
51
|
+
__classPrivateFieldSet(this, _Disposable_callOnDispose, callOnDispose, "f");
|
|
52
|
+
}
|
|
53
|
+
dispose() {
|
|
54
|
+
if (typeof __classPrivateFieldGet(this, _Disposable_callOnDispose, "f") === 'function') {
|
|
55
|
+
__classPrivateFieldGet(this, _Disposable_callOnDispose, "f").call(this);
|
|
56
|
+
__classPrivateFieldSet(this, _Disposable_callOnDispose, undefined, "f");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
_Disposable_callOnDispose = ( new WeakMap());
|
|
61
|
+
Disposable = Disposable_1 = ( __decorate([
|
|
62
|
+
es5ClassCompat
|
|
63
|
+
], Disposable));
|
|
64
|
+
let Position = Position_1 = class Position {
|
|
65
|
+
static Min(...positions) {
|
|
66
|
+
if (positions.length === 0) {
|
|
67
|
+
throw new TypeError();
|
|
68
|
+
}
|
|
69
|
+
let result = positions[0];
|
|
70
|
+
for (let i = 1; i < positions.length; i++) {
|
|
71
|
+
const p = positions[i];
|
|
72
|
+
if (p.isBefore(result)) {
|
|
73
|
+
result = p;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
static Max(...positions) {
|
|
79
|
+
if (positions.length === 0) {
|
|
80
|
+
throw new TypeError();
|
|
81
|
+
}
|
|
82
|
+
let result = positions[0];
|
|
83
|
+
for (let i = 1; i < positions.length; i++) {
|
|
84
|
+
const p = positions[i];
|
|
85
|
+
if (p.isAfter(result)) {
|
|
86
|
+
result = p;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return result;
|
|
90
|
+
}
|
|
91
|
+
static isPosition(other) {
|
|
92
|
+
if (!other) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
if (other instanceof Position_1) {
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
const { line, character } = other;
|
|
99
|
+
if (typeof line === 'number' && typeof character === 'number') {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
static of(obj) {
|
|
105
|
+
if (obj instanceof Position_1) {
|
|
106
|
+
return obj;
|
|
107
|
+
}
|
|
108
|
+
else if (this.isPosition(obj)) {
|
|
109
|
+
return ( new Position_1(obj.line, obj.character));
|
|
110
|
+
}
|
|
111
|
+
throw new Error('Invalid argument, is NOT a position-like object');
|
|
112
|
+
}
|
|
113
|
+
get line() {
|
|
114
|
+
return this._line;
|
|
115
|
+
}
|
|
116
|
+
get character() {
|
|
117
|
+
return this._character;
|
|
118
|
+
}
|
|
119
|
+
constructor(line, character) {
|
|
120
|
+
if (line < 0) {
|
|
121
|
+
throw illegalArgument('line must be non-negative');
|
|
122
|
+
}
|
|
123
|
+
if (character < 0) {
|
|
124
|
+
throw illegalArgument('character must be non-negative');
|
|
125
|
+
}
|
|
126
|
+
this._line = line;
|
|
127
|
+
this._character = character;
|
|
128
|
+
}
|
|
129
|
+
isBefore(other) {
|
|
130
|
+
if (this._line < other._line) {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
if (other._line < this._line) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
return this._character < other._character;
|
|
137
|
+
}
|
|
138
|
+
isBeforeOrEqual(other) {
|
|
139
|
+
if (this._line < other._line) {
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
if (other._line < this._line) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
return this._character <= other._character;
|
|
146
|
+
}
|
|
147
|
+
isAfter(other) {
|
|
148
|
+
return !this.isBeforeOrEqual(other);
|
|
149
|
+
}
|
|
150
|
+
isAfterOrEqual(other) {
|
|
151
|
+
return !this.isBefore(other);
|
|
152
|
+
}
|
|
153
|
+
isEqual(other) {
|
|
154
|
+
return this._line === other._line && this._character === other._character;
|
|
155
|
+
}
|
|
156
|
+
compareTo(other) {
|
|
157
|
+
if (this._line < other._line) {
|
|
158
|
+
return -1;
|
|
159
|
+
}
|
|
160
|
+
else if (this._line > other.line) {
|
|
161
|
+
return 1;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
if (this._character < other._character) {
|
|
165
|
+
return -1;
|
|
166
|
+
}
|
|
167
|
+
else if (this._character > other._character) {
|
|
168
|
+
return 1;
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
return 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
translate(lineDeltaOrChange, characterDelta = 0) {
|
|
176
|
+
if (lineDeltaOrChange === null || characterDelta === null) {
|
|
177
|
+
throw illegalArgument();
|
|
178
|
+
}
|
|
179
|
+
let lineDelta;
|
|
180
|
+
if (typeof lineDeltaOrChange === 'undefined') {
|
|
181
|
+
lineDelta = 0;
|
|
182
|
+
}
|
|
183
|
+
else if (typeof lineDeltaOrChange === 'number') {
|
|
184
|
+
lineDelta = lineDeltaOrChange;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
lineDelta = typeof lineDeltaOrChange.lineDelta === 'number' ? lineDeltaOrChange.lineDelta : 0;
|
|
188
|
+
characterDelta = typeof lineDeltaOrChange.characterDelta === 'number' ? lineDeltaOrChange.characterDelta : 0;
|
|
189
|
+
}
|
|
190
|
+
if (lineDelta === 0 && characterDelta === 0) {
|
|
191
|
+
return this;
|
|
192
|
+
}
|
|
193
|
+
return ( new Position_1(this.line + lineDelta, this.character + characterDelta));
|
|
194
|
+
}
|
|
195
|
+
with(lineOrChange, character = this.character) {
|
|
196
|
+
if (lineOrChange === null || character === null) {
|
|
197
|
+
throw illegalArgument();
|
|
198
|
+
}
|
|
199
|
+
let line;
|
|
200
|
+
if (typeof lineOrChange === 'undefined') {
|
|
201
|
+
line = this.line;
|
|
202
|
+
}
|
|
203
|
+
else if (typeof lineOrChange === 'number') {
|
|
204
|
+
line = lineOrChange;
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
line = typeof lineOrChange.line === 'number' ? lineOrChange.line : this.line;
|
|
208
|
+
character = typeof lineOrChange.character === 'number' ? lineOrChange.character : this.character;
|
|
209
|
+
}
|
|
210
|
+
if (line === this.line && character === this.character) {
|
|
211
|
+
return this;
|
|
212
|
+
}
|
|
213
|
+
return ( new Position_1(line, character));
|
|
214
|
+
}
|
|
215
|
+
toJSON() {
|
|
216
|
+
return { line: this.line, character: this.character };
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
Position = Position_1 = ( __decorate([
|
|
220
|
+
es5ClassCompat
|
|
221
|
+
], Position));
|
|
222
|
+
let Range = Range_1 = class Range {
|
|
223
|
+
static isRange(thing) {
|
|
224
|
+
if (thing instanceof Range_1) {
|
|
225
|
+
return true;
|
|
226
|
+
}
|
|
227
|
+
if (!thing) {
|
|
228
|
+
return false;
|
|
229
|
+
}
|
|
230
|
+
return Position.isPosition(thing.start)
|
|
231
|
+
&& Position.isPosition(thing.end);
|
|
232
|
+
}
|
|
233
|
+
static of(obj) {
|
|
234
|
+
if (obj instanceof Range_1) {
|
|
235
|
+
return obj;
|
|
236
|
+
}
|
|
237
|
+
if (this.isRange(obj)) {
|
|
238
|
+
return ( new Range_1(obj.start, obj.end));
|
|
239
|
+
}
|
|
240
|
+
throw new Error('Invalid argument, is NOT a range-like object');
|
|
241
|
+
}
|
|
242
|
+
get start() {
|
|
243
|
+
return this._start;
|
|
244
|
+
}
|
|
245
|
+
get end() {
|
|
246
|
+
return this._end;
|
|
247
|
+
}
|
|
248
|
+
constructor(startLineOrStart, startColumnOrEnd, endLine, endColumn) {
|
|
249
|
+
let start;
|
|
250
|
+
let end;
|
|
251
|
+
if (typeof startLineOrStart === 'number' && typeof startColumnOrEnd === 'number' && typeof endLine === 'number' && typeof endColumn === 'number') {
|
|
252
|
+
start = ( new Position(startLineOrStart, startColumnOrEnd));
|
|
253
|
+
end = ( new Position(endLine, endColumn));
|
|
254
|
+
}
|
|
255
|
+
else if (Position.isPosition(startLineOrStart) && Position.isPosition(startColumnOrEnd)) {
|
|
256
|
+
start = Position.of(startLineOrStart);
|
|
257
|
+
end = Position.of(startColumnOrEnd);
|
|
258
|
+
}
|
|
259
|
+
if (!start || !end) {
|
|
260
|
+
throw new Error('Invalid arguments');
|
|
261
|
+
}
|
|
262
|
+
if (start.isBefore(end)) {
|
|
263
|
+
this._start = start;
|
|
264
|
+
this._end = end;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
this._start = end;
|
|
268
|
+
this._end = start;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
contains(positionOrRange) {
|
|
272
|
+
if (Range_1.isRange(positionOrRange)) {
|
|
273
|
+
return this.contains(positionOrRange.start)
|
|
274
|
+
&& this.contains(positionOrRange.end);
|
|
275
|
+
}
|
|
276
|
+
else if (Position.isPosition(positionOrRange)) {
|
|
277
|
+
if (Position.of(positionOrRange).isBefore(this._start)) {
|
|
278
|
+
return false;
|
|
279
|
+
}
|
|
280
|
+
if (this._end.isBefore(positionOrRange)) {
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
283
|
+
return true;
|
|
284
|
+
}
|
|
285
|
+
return false;
|
|
286
|
+
}
|
|
287
|
+
isEqual(other) {
|
|
288
|
+
return this._start.isEqual(other._start) && this._end.isEqual(other._end);
|
|
289
|
+
}
|
|
290
|
+
intersection(other) {
|
|
291
|
+
const start = Position.Max(other.start, this._start);
|
|
292
|
+
const end = Position.Min(other.end, this._end);
|
|
293
|
+
if (start.isAfter(end)) {
|
|
294
|
+
return undefined;
|
|
295
|
+
}
|
|
296
|
+
return ( new Range_1(start, end));
|
|
297
|
+
}
|
|
298
|
+
union(other) {
|
|
299
|
+
if (this.contains(other)) {
|
|
300
|
+
return this;
|
|
301
|
+
}
|
|
302
|
+
else if (other.contains(this)) {
|
|
303
|
+
return other;
|
|
304
|
+
}
|
|
305
|
+
const start = Position.Min(other.start, this._start);
|
|
306
|
+
const end = Position.Max(other.end, this.end);
|
|
307
|
+
return ( new Range_1(start, end));
|
|
308
|
+
}
|
|
309
|
+
get isEmpty() {
|
|
310
|
+
return this._start.isEqual(this._end);
|
|
311
|
+
}
|
|
312
|
+
get isSingleLine() {
|
|
313
|
+
return this._start.line === this._end.line;
|
|
314
|
+
}
|
|
315
|
+
with(startOrChange, end = this.end) {
|
|
316
|
+
if (startOrChange === null || end === null) {
|
|
317
|
+
throw illegalArgument();
|
|
318
|
+
}
|
|
319
|
+
let start;
|
|
320
|
+
if (!startOrChange) {
|
|
321
|
+
start = this.start;
|
|
322
|
+
}
|
|
323
|
+
else if (Position.isPosition(startOrChange)) {
|
|
324
|
+
start = startOrChange;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
start = startOrChange.start || this.start;
|
|
328
|
+
end = startOrChange.end || this.end;
|
|
329
|
+
}
|
|
330
|
+
if (start.isEqual(this._start) && end.isEqual(this.end)) {
|
|
331
|
+
return this;
|
|
332
|
+
}
|
|
333
|
+
return ( new Range_1(start, end));
|
|
334
|
+
}
|
|
335
|
+
toJSON() {
|
|
336
|
+
return [this.start, this.end];
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
Range = Range_1 = ( __decorate([
|
|
340
|
+
es5ClassCompat
|
|
341
|
+
], Range));
|
|
342
|
+
let Selection = Selection_1 = class Selection extends Range {
|
|
343
|
+
static isSelection(thing) {
|
|
344
|
+
if (thing instanceof Selection_1) {
|
|
345
|
+
return true;
|
|
346
|
+
}
|
|
347
|
+
if (!thing) {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
return Range.isRange(thing)
|
|
351
|
+
&& Position.isPosition(thing.anchor)
|
|
352
|
+
&& Position.isPosition(thing.active)
|
|
353
|
+
&& typeof thing.isReversed === 'boolean';
|
|
354
|
+
}
|
|
355
|
+
get anchor() {
|
|
356
|
+
return this._anchor;
|
|
357
|
+
}
|
|
358
|
+
get active() {
|
|
359
|
+
return this._active;
|
|
360
|
+
}
|
|
361
|
+
constructor(anchorLineOrAnchor, anchorColumnOrActive, activeLine, activeColumn) {
|
|
362
|
+
let anchor;
|
|
363
|
+
let active;
|
|
364
|
+
if (typeof anchorLineOrAnchor === 'number' && typeof anchorColumnOrActive === 'number' && typeof activeLine === 'number' && typeof activeColumn === 'number') {
|
|
365
|
+
anchor = ( new Position(anchorLineOrAnchor, anchorColumnOrActive));
|
|
366
|
+
active = ( new Position(activeLine, activeColumn));
|
|
367
|
+
}
|
|
368
|
+
else if (Position.isPosition(anchorLineOrAnchor) && Position.isPosition(anchorColumnOrActive)) {
|
|
369
|
+
anchor = Position.of(anchorLineOrAnchor);
|
|
370
|
+
active = Position.of(anchorColumnOrActive);
|
|
371
|
+
}
|
|
372
|
+
if (!anchor || !active) {
|
|
373
|
+
throw new Error('Invalid arguments');
|
|
374
|
+
}
|
|
375
|
+
super(anchor, active);
|
|
376
|
+
this._anchor = anchor;
|
|
377
|
+
this._active = active;
|
|
378
|
+
}
|
|
379
|
+
get isReversed() {
|
|
380
|
+
return this._anchor === this._end;
|
|
381
|
+
}
|
|
382
|
+
toJSON() {
|
|
383
|
+
return {
|
|
384
|
+
start: this.start,
|
|
385
|
+
end: this.end,
|
|
386
|
+
active: this.active,
|
|
387
|
+
anchor: this.anchor
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
Selection = Selection_1 = ( __decorate([
|
|
392
|
+
es5ClassCompat
|
|
393
|
+
], Selection));
|
|
394
|
+
class RemoteAuthorityResolverError extends Error {
|
|
395
|
+
static NotAvailable(message, handled) {
|
|
396
|
+
return ( new RemoteAuthorityResolverError(message, RemoteAuthorityResolverErrorCode.NotAvailable, handled));
|
|
397
|
+
}
|
|
398
|
+
static TemporarilyNotAvailable(message) {
|
|
399
|
+
return ( new RemoteAuthorityResolverError(message, RemoteAuthorityResolverErrorCode.TemporarilyNotAvailable));
|
|
400
|
+
}
|
|
401
|
+
constructor(message, code = RemoteAuthorityResolverErrorCode.Unknown, detail) {
|
|
402
|
+
super(message);
|
|
403
|
+
this._message = message;
|
|
404
|
+
this._code = code;
|
|
405
|
+
this._detail = detail;
|
|
406
|
+
Object.setPrototypeOf(this, RemoteAuthorityResolverError.prototype);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
var EndOfLine;
|
|
410
|
+
( (function(EndOfLine) {
|
|
411
|
+
EndOfLine[EndOfLine["LF"] = 1] = "LF";
|
|
412
|
+
EndOfLine[EndOfLine["CRLF"] = 2] = "CRLF";
|
|
413
|
+
})(EndOfLine || (EndOfLine = {})));
|
|
414
|
+
var EnvironmentVariableMutatorType;
|
|
415
|
+
( (function(EnvironmentVariableMutatorType) {
|
|
416
|
+
EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Replace"] = 1] = "Replace";
|
|
417
|
+
EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Append"] = 2] = "Append";
|
|
418
|
+
EnvironmentVariableMutatorType[EnvironmentVariableMutatorType["Prepend"] = 3] = "Prepend";
|
|
419
|
+
})(EnvironmentVariableMutatorType || (EnvironmentVariableMutatorType = {})));
|
|
420
|
+
let TextEdit = TextEdit_1 = class TextEdit {
|
|
421
|
+
static isTextEdit(thing) {
|
|
422
|
+
if (thing instanceof TextEdit_1) {
|
|
423
|
+
return true;
|
|
424
|
+
}
|
|
425
|
+
if (!thing) {
|
|
426
|
+
return false;
|
|
427
|
+
}
|
|
428
|
+
return Range.isRange(thing)
|
|
429
|
+
&& typeof thing.newText === 'string';
|
|
430
|
+
}
|
|
431
|
+
static replace(range, newText) {
|
|
432
|
+
return ( new TextEdit_1(range, newText));
|
|
433
|
+
}
|
|
434
|
+
static insert(position, newText) {
|
|
435
|
+
return TextEdit_1.replace(( new Range(position, position)), newText);
|
|
436
|
+
}
|
|
437
|
+
static delete(range) {
|
|
438
|
+
return TextEdit_1.replace(range, '');
|
|
439
|
+
}
|
|
440
|
+
static setEndOfLine(eol) {
|
|
441
|
+
const ret = ( new TextEdit_1(( new Range(( new Position(0, 0)), ( new Position(0, 0)))), ''));
|
|
442
|
+
ret.newEol = eol;
|
|
443
|
+
return ret;
|
|
444
|
+
}
|
|
445
|
+
get range() {
|
|
446
|
+
return this._range;
|
|
447
|
+
}
|
|
448
|
+
set range(value) {
|
|
449
|
+
if (value && !Range.isRange(value)) {
|
|
450
|
+
throw illegalArgument('range');
|
|
451
|
+
}
|
|
452
|
+
this._range = value;
|
|
453
|
+
}
|
|
454
|
+
get newText() {
|
|
455
|
+
return this._newText || '';
|
|
456
|
+
}
|
|
457
|
+
set newText(value) {
|
|
458
|
+
if (value && typeof value !== 'string') {
|
|
459
|
+
throw illegalArgument('newText');
|
|
460
|
+
}
|
|
461
|
+
this._newText = value;
|
|
462
|
+
}
|
|
463
|
+
get newEol() {
|
|
464
|
+
return this._newEol;
|
|
465
|
+
}
|
|
466
|
+
set newEol(value) {
|
|
467
|
+
if (value && typeof value !== 'number') {
|
|
468
|
+
throw illegalArgument('newEol');
|
|
469
|
+
}
|
|
470
|
+
this._newEol = value;
|
|
471
|
+
}
|
|
472
|
+
constructor(range, newText) {
|
|
473
|
+
this._range = range;
|
|
474
|
+
this._newText = newText;
|
|
475
|
+
}
|
|
476
|
+
toJSON() {
|
|
477
|
+
return {
|
|
478
|
+
range: this.range,
|
|
479
|
+
newText: this.newText,
|
|
480
|
+
newEol: this._newEol
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
TextEdit = TextEdit_1 = ( __decorate([
|
|
485
|
+
es5ClassCompat
|
|
486
|
+
], TextEdit));
|
|
487
|
+
let NotebookEdit = NotebookEdit_1 = class NotebookEdit {
|
|
488
|
+
static isNotebookCellEdit(thing) {
|
|
489
|
+
if (thing instanceof NotebookEdit_1) {
|
|
490
|
+
return true;
|
|
491
|
+
}
|
|
492
|
+
if (!thing) {
|
|
493
|
+
return false;
|
|
494
|
+
}
|
|
495
|
+
return NotebookRange.isNotebookRange(thing)
|
|
496
|
+
&& Array.isArray(thing.newCells);
|
|
497
|
+
}
|
|
498
|
+
static replaceCells(range, newCells) {
|
|
499
|
+
return ( new NotebookEdit_1(range, newCells));
|
|
500
|
+
}
|
|
501
|
+
static insertCells(index, newCells) {
|
|
502
|
+
return ( new NotebookEdit_1(( new NotebookRange(index, index)), newCells));
|
|
503
|
+
}
|
|
504
|
+
static deleteCells(range) {
|
|
505
|
+
return ( new NotebookEdit_1(range, []));
|
|
506
|
+
}
|
|
507
|
+
static updateCellMetadata(index, newMetadata) {
|
|
508
|
+
const edit = ( new NotebookEdit_1(( new NotebookRange(index, index)), []));
|
|
509
|
+
edit.newCellMetadata = newMetadata;
|
|
510
|
+
return edit;
|
|
511
|
+
}
|
|
512
|
+
static updateNotebookMetadata(newMetadata) {
|
|
513
|
+
const edit = ( new NotebookEdit_1(( new NotebookRange(0, 0)), []));
|
|
514
|
+
edit.newNotebookMetadata = newMetadata;
|
|
515
|
+
return edit;
|
|
516
|
+
}
|
|
517
|
+
constructor(range, newCells) {
|
|
518
|
+
this.range = range;
|
|
519
|
+
this.newCells = newCells;
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
NotebookEdit = NotebookEdit_1 = ( __decorate([
|
|
523
|
+
es5ClassCompat
|
|
524
|
+
], NotebookEdit));
|
|
525
|
+
class SnippetTextEdit {
|
|
526
|
+
static isSnippetTextEdit(thing) {
|
|
527
|
+
if (thing instanceof SnippetTextEdit) {
|
|
528
|
+
return true;
|
|
529
|
+
}
|
|
530
|
+
if (!thing) {
|
|
531
|
+
return false;
|
|
532
|
+
}
|
|
533
|
+
return Range.isRange(thing.range)
|
|
534
|
+
&& SnippetString.isSnippetString(thing.snippet);
|
|
535
|
+
}
|
|
536
|
+
static replace(range, snippet) {
|
|
537
|
+
return ( new SnippetTextEdit(range, snippet));
|
|
538
|
+
}
|
|
539
|
+
static insert(position, snippet) {
|
|
540
|
+
return SnippetTextEdit.replace(( new Range(position, position)), snippet);
|
|
541
|
+
}
|
|
542
|
+
constructor(range, snippet) {
|
|
543
|
+
this.range = range;
|
|
544
|
+
this.snippet = snippet;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
let WorkspaceEdit = class WorkspaceEdit {
|
|
548
|
+
constructor() {
|
|
549
|
+
this._edits = [];
|
|
550
|
+
}
|
|
551
|
+
_allEntries() {
|
|
552
|
+
return this._edits;
|
|
553
|
+
}
|
|
554
|
+
renameFile(from, to, options, metadata) {
|
|
555
|
+
this._edits.push({ _type: 1 , from, to, options, metadata });
|
|
556
|
+
}
|
|
557
|
+
createFile(uri, options, metadata) {
|
|
558
|
+
this._edits.push({ _type: 1 , from: undefined, to: uri, options, metadata });
|
|
559
|
+
}
|
|
560
|
+
deleteFile(uri, options, metadata) {
|
|
561
|
+
this._edits.push({ _type: 1 , from: uri, to: undefined, options, metadata });
|
|
562
|
+
}
|
|
563
|
+
replaceNotebookMetadata(uri, value, metadata) {
|
|
564
|
+
this._edits.push({ _type: 3 , metadata, uri, edit: { editType: 5 , metadata: value }, notebookMetadata: value });
|
|
565
|
+
}
|
|
566
|
+
replaceNotebookCells(uri, startOrRange, cellData, metadata) {
|
|
567
|
+
const start = startOrRange.start;
|
|
568
|
+
const end = startOrRange.end;
|
|
569
|
+
if (start !== end || cellData.length > 0) {
|
|
570
|
+
this._edits.push({ _type: 5 , uri, index: start, count: end - start, cells: cellData, metadata });
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
replaceNotebookCellMetadata(uri, index, cellMetadata, metadata) {
|
|
574
|
+
this._edits.push({ _type: 3 , metadata, uri, edit: { editType: 8 , index, metadata: cellMetadata } });
|
|
575
|
+
}
|
|
576
|
+
replace(uri, range, newText, metadata) {
|
|
577
|
+
this._edits.push({ _type: 2 , uri, edit: ( new TextEdit(range, newText)), metadata });
|
|
578
|
+
}
|
|
579
|
+
insert(resource, position, newText, metadata) {
|
|
580
|
+
this.replace(resource, ( new Range(position, position)), newText, metadata);
|
|
581
|
+
}
|
|
582
|
+
delete(resource, range, metadata) {
|
|
583
|
+
this.replace(resource, range, '', metadata);
|
|
584
|
+
}
|
|
585
|
+
has(uri) {
|
|
586
|
+
return ( this._edits.some(edit => edit._type === 2 && ( edit.uri.toString()) === ( uri.toString())));
|
|
587
|
+
}
|
|
588
|
+
set(uri, edits) {
|
|
589
|
+
if (!edits) {
|
|
590
|
+
for (let i = 0; i < this._edits.length; i++) {
|
|
591
|
+
const element = this._edits[i];
|
|
592
|
+
switch (element._type) {
|
|
593
|
+
case 2 :
|
|
594
|
+
case 6 :
|
|
595
|
+
case 3 :
|
|
596
|
+
case 5 :
|
|
597
|
+
if (( element.uri.toString()) === ( uri.toString())) {
|
|
598
|
+
this._edits[i] = undefined;
|
|
599
|
+
}
|
|
600
|
+
break;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
coalesceInPlace(this._edits);
|
|
604
|
+
}
|
|
605
|
+
else {
|
|
606
|
+
for (const editOrTuple of edits) {
|
|
607
|
+
if (!editOrTuple) {
|
|
608
|
+
continue;
|
|
609
|
+
}
|
|
610
|
+
let edit;
|
|
611
|
+
let metadata;
|
|
612
|
+
if (Array.isArray(editOrTuple)) {
|
|
613
|
+
edit = editOrTuple[0];
|
|
614
|
+
metadata = editOrTuple[1];
|
|
615
|
+
}
|
|
616
|
+
else {
|
|
617
|
+
edit = editOrTuple;
|
|
618
|
+
}
|
|
619
|
+
if (NotebookEdit.isNotebookCellEdit(edit)) {
|
|
620
|
+
if (edit.newCellMetadata) {
|
|
621
|
+
this.replaceNotebookCellMetadata(uri, edit.range.start, edit.newCellMetadata, metadata);
|
|
622
|
+
}
|
|
623
|
+
else if (edit.newNotebookMetadata) {
|
|
624
|
+
this.replaceNotebookMetadata(uri, edit.newNotebookMetadata, metadata);
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
this.replaceNotebookCells(uri, edit.range, edit.newCells, metadata);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
else if (SnippetTextEdit.isSnippetTextEdit(edit)) {
|
|
631
|
+
this._edits.push({ _type: 6 , uri, range: edit.range, edit: edit.snippet, metadata });
|
|
632
|
+
}
|
|
633
|
+
else {
|
|
634
|
+
this._edits.push({ _type: 2 , uri, edit, metadata });
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
get(uri) {
|
|
640
|
+
const res = [];
|
|
641
|
+
for (const candidate of this._edits) {
|
|
642
|
+
if (candidate._type === 2 && ( candidate.uri.toString()) === ( uri.toString())) {
|
|
643
|
+
res.push(candidate.edit);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
return res;
|
|
647
|
+
}
|
|
648
|
+
entries() {
|
|
649
|
+
const textEdits = ( new ResourceMap());
|
|
650
|
+
for (const candidate of this._edits) {
|
|
651
|
+
if (candidate._type === 2 ) {
|
|
652
|
+
let textEdit = textEdits.get(candidate.uri);
|
|
653
|
+
if (!textEdit) {
|
|
654
|
+
textEdit = [candidate.uri, []];
|
|
655
|
+
textEdits.set(candidate.uri, textEdit);
|
|
656
|
+
}
|
|
657
|
+
textEdit[1].push(candidate.edit);
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
return [...( textEdits.values())];
|
|
661
|
+
}
|
|
662
|
+
get size() {
|
|
663
|
+
return this.entries().length;
|
|
664
|
+
}
|
|
665
|
+
toJSON() {
|
|
666
|
+
return this.entries();
|
|
667
|
+
}
|
|
668
|
+
};
|
|
669
|
+
WorkspaceEdit = ( __decorate([
|
|
670
|
+
es5ClassCompat
|
|
671
|
+
], WorkspaceEdit));
|
|
672
|
+
let SnippetString = SnippetString_1 = class SnippetString {
|
|
673
|
+
static isSnippetString(thing) {
|
|
674
|
+
if (thing instanceof SnippetString_1) {
|
|
675
|
+
return true;
|
|
676
|
+
}
|
|
677
|
+
if (!thing) {
|
|
678
|
+
return false;
|
|
679
|
+
}
|
|
680
|
+
return typeof thing.value === 'string';
|
|
681
|
+
}
|
|
682
|
+
static _escape(value) {
|
|
683
|
+
return value.replace(/\$|}|\\/g, '\\$&');
|
|
684
|
+
}
|
|
685
|
+
constructor(value) {
|
|
686
|
+
this._tabstop = 1;
|
|
687
|
+
this.value = value || '';
|
|
688
|
+
}
|
|
689
|
+
appendText(string) {
|
|
690
|
+
this.value += SnippetString_1._escape(string);
|
|
691
|
+
return this;
|
|
692
|
+
}
|
|
693
|
+
appendTabstop(number = this._tabstop++) {
|
|
694
|
+
this.value += '$';
|
|
695
|
+
this.value += number;
|
|
696
|
+
return this;
|
|
697
|
+
}
|
|
698
|
+
appendPlaceholder(value, number = this._tabstop++) {
|
|
699
|
+
if (typeof value === 'function') {
|
|
700
|
+
const nested = ( new SnippetString_1());
|
|
701
|
+
nested._tabstop = this._tabstop;
|
|
702
|
+
value(nested);
|
|
703
|
+
this._tabstop = nested._tabstop;
|
|
704
|
+
value = nested.value;
|
|
705
|
+
}
|
|
706
|
+
else {
|
|
707
|
+
value = SnippetString_1._escape(value);
|
|
708
|
+
}
|
|
709
|
+
this.value += '${';
|
|
710
|
+
this.value += number;
|
|
711
|
+
this.value += ':';
|
|
712
|
+
this.value += value;
|
|
713
|
+
this.value += '}';
|
|
714
|
+
return this;
|
|
715
|
+
}
|
|
716
|
+
appendChoice(values, number = this._tabstop++) {
|
|
717
|
+
const value = ( values.map(s => s.replace(/\$|}|\\|,/g, '\\$&'))).join(',');
|
|
718
|
+
this.value += '${';
|
|
719
|
+
this.value += number;
|
|
720
|
+
this.value += '|';
|
|
721
|
+
this.value += value;
|
|
722
|
+
this.value += '|}';
|
|
723
|
+
return this;
|
|
724
|
+
}
|
|
725
|
+
appendVariable(name, defaultValue) {
|
|
726
|
+
if (typeof defaultValue === 'function') {
|
|
727
|
+
const nested = ( new SnippetString_1());
|
|
728
|
+
nested._tabstop = this._tabstop;
|
|
729
|
+
defaultValue(nested);
|
|
730
|
+
this._tabstop = nested._tabstop;
|
|
731
|
+
defaultValue = nested.value;
|
|
732
|
+
}
|
|
733
|
+
else if (typeof defaultValue === 'string') {
|
|
734
|
+
defaultValue = defaultValue.replace(/\$|}/g, '\\$&');
|
|
735
|
+
}
|
|
736
|
+
this.value += '${';
|
|
737
|
+
this.value += name;
|
|
738
|
+
if (defaultValue) {
|
|
739
|
+
this.value += ':';
|
|
740
|
+
this.value += defaultValue;
|
|
741
|
+
}
|
|
742
|
+
this.value += '}';
|
|
743
|
+
return this;
|
|
744
|
+
}
|
|
745
|
+
};
|
|
746
|
+
SnippetString = SnippetString_1 = ( __decorate([
|
|
747
|
+
es5ClassCompat
|
|
748
|
+
], SnippetString));
|
|
749
|
+
var DiagnosticTag;
|
|
750
|
+
( (function(DiagnosticTag) {
|
|
751
|
+
DiagnosticTag[DiagnosticTag["Unnecessary"] = 1] = "Unnecessary";
|
|
752
|
+
DiagnosticTag[DiagnosticTag["Deprecated"] = 2] = "Deprecated";
|
|
753
|
+
})(DiagnosticTag || (DiagnosticTag = {})));
|
|
754
|
+
var DiagnosticSeverity;
|
|
755
|
+
( (function(DiagnosticSeverity) {
|
|
756
|
+
DiagnosticSeverity[DiagnosticSeverity["Hint"] = 3] = "Hint";
|
|
757
|
+
DiagnosticSeverity[DiagnosticSeverity["Information"] = 2] = "Information";
|
|
758
|
+
DiagnosticSeverity[DiagnosticSeverity["Warning"] = 1] = "Warning";
|
|
759
|
+
DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error";
|
|
760
|
+
})(DiagnosticSeverity || (DiagnosticSeverity = {})));
|
|
761
|
+
let Location = Location_1 = class Location {
|
|
762
|
+
static isLocation(thing) {
|
|
763
|
+
if (thing instanceof Location_1) {
|
|
764
|
+
return true;
|
|
765
|
+
}
|
|
766
|
+
if (!thing) {
|
|
767
|
+
return false;
|
|
768
|
+
}
|
|
769
|
+
return Range.isRange(thing.range)
|
|
770
|
+
&& URI.isUri(thing.uri);
|
|
771
|
+
}
|
|
772
|
+
constructor(uri, rangeOrPosition) {
|
|
773
|
+
this.uri = uri;
|
|
774
|
+
if (!rangeOrPosition) ;
|
|
775
|
+
else if (Range.isRange(rangeOrPosition)) {
|
|
776
|
+
this.range = Range.of(rangeOrPosition);
|
|
777
|
+
}
|
|
778
|
+
else if (Position.isPosition(rangeOrPosition)) {
|
|
779
|
+
this.range = ( new Range(rangeOrPosition, rangeOrPosition));
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
throw new Error('Illegal argument');
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
toJSON() {
|
|
786
|
+
return {
|
|
787
|
+
uri: this.uri,
|
|
788
|
+
range: this.range
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
Location = Location_1 = ( __decorate([
|
|
793
|
+
es5ClassCompat
|
|
794
|
+
], Location));
|
|
795
|
+
let DiagnosticRelatedInformation = class DiagnosticRelatedInformation {
|
|
796
|
+
static is(thing) {
|
|
797
|
+
if (!thing) {
|
|
798
|
+
return false;
|
|
799
|
+
}
|
|
800
|
+
return typeof thing.message === 'string'
|
|
801
|
+
&& thing.location
|
|
802
|
+
&& Range.isRange(thing.location.range)
|
|
803
|
+
&& URI.isUri(thing.location.uri);
|
|
804
|
+
}
|
|
805
|
+
constructor(location, message) {
|
|
806
|
+
this.location = location;
|
|
807
|
+
this.message = message;
|
|
808
|
+
}
|
|
809
|
+
static isEqual(a, b) {
|
|
810
|
+
if (a === b) {
|
|
811
|
+
return true;
|
|
812
|
+
}
|
|
813
|
+
if (!a || !b) {
|
|
814
|
+
return false;
|
|
815
|
+
}
|
|
816
|
+
return a.message === b.message
|
|
817
|
+
&& a.location.range.isEqual(b.location.range)
|
|
818
|
+
&& ( a.location.uri.toString()) === ( b.location.uri.toString());
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
DiagnosticRelatedInformation = ( __decorate([
|
|
822
|
+
es5ClassCompat
|
|
823
|
+
], DiagnosticRelatedInformation));
|
|
824
|
+
let Diagnostic = class Diagnostic {
|
|
825
|
+
constructor(range, message, severity = DiagnosticSeverity.Error) {
|
|
826
|
+
if (!Range.isRange(range)) {
|
|
827
|
+
throw new TypeError('range must be set');
|
|
828
|
+
}
|
|
829
|
+
if (!message) {
|
|
830
|
+
throw new TypeError('message must be set');
|
|
831
|
+
}
|
|
832
|
+
this.range = range;
|
|
833
|
+
this.message = message;
|
|
834
|
+
this.severity = severity;
|
|
835
|
+
}
|
|
836
|
+
toJSON() {
|
|
837
|
+
return {
|
|
838
|
+
severity: DiagnosticSeverity[this.severity],
|
|
839
|
+
message: this.message,
|
|
840
|
+
range: this.range,
|
|
841
|
+
source: this.source,
|
|
842
|
+
code: this.code,
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
static isEqual(a, b) {
|
|
846
|
+
if (a === b) {
|
|
847
|
+
return true;
|
|
848
|
+
}
|
|
849
|
+
if (!a || !b) {
|
|
850
|
+
return false;
|
|
851
|
+
}
|
|
852
|
+
return a.message === b.message
|
|
853
|
+
&& a.severity === b.severity
|
|
854
|
+
&& a.code === b.code
|
|
855
|
+
&& a.severity === b.severity
|
|
856
|
+
&& a.source === b.source
|
|
857
|
+
&& a.range.isEqual(b.range)
|
|
858
|
+
&& equals(a.tags, b.tags)
|
|
859
|
+
&& equals(a.relatedInformation, b.relatedInformation, DiagnosticRelatedInformation.isEqual);
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
Diagnostic = ( __decorate([
|
|
863
|
+
es5ClassCompat
|
|
864
|
+
], Diagnostic));
|
|
865
|
+
let Hover = class Hover {
|
|
866
|
+
constructor(contents, range) {
|
|
867
|
+
if (!contents) {
|
|
868
|
+
throw new Error('Illegal argument, contents must be defined');
|
|
869
|
+
}
|
|
870
|
+
if (Array.isArray(contents)) {
|
|
871
|
+
this.contents = contents;
|
|
872
|
+
}
|
|
873
|
+
else {
|
|
874
|
+
this.contents = [contents];
|
|
875
|
+
}
|
|
876
|
+
this.range = range;
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
Hover = ( __decorate([
|
|
880
|
+
es5ClassCompat
|
|
881
|
+
], Hover));
|
|
882
|
+
var DocumentHighlightKind;
|
|
883
|
+
( (function(DocumentHighlightKind) {
|
|
884
|
+
DocumentHighlightKind[DocumentHighlightKind["Text"] = 0] = "Text";
|
|
885
|
+
DocumentHighlightKind[DocumentHighlightKind["Read"] = 1] = "Read";
|
|
886
|
+
DocumentHighlightKind[DocumentHighlightKind["Write"] = 2] = "Write";
|
|
887
|
+
})(DocumentHighlightKind || (DocumentHighlightKind = {})));
|
|
888
|
+
let DocumentHighlight = class DocumentHighlight {
|
|
889
|
+
constructor(range, kind = DocumentHighlightKind.Text) {
|
|
890
|
+
this.range = range;
|
|
891
|
+
this.kind = kind;
|
|
892
|
+
}
|
|
893
|
+
toJSON() {
|
|
894
|
+
return {
|
|
895
|
+
range: this.range,
|
|
896
|
+
kind: DocumentHighlightKind[this.kind]
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
DocumentHighlight = ( __decorate([
|
|
901
|
+
es5ClassCompat
|
|
902
|
+
], DocumentHighlight));
|
|
903
|
+
var SymbolKind;
|
|
904
|
+
( (function(SymbolKind) {
|
|
905
|
+
SymbolKind[SymbolKind["File"] = 0] = "File";
|
|
906
|
+
SymbolKind[SymbolKind["Module"] = 1] = "Module";
|
|
907
|
+
SymbolKind[SymbolKind["Namespace"] = 2] = "Namespace";
|
|
908
|
+
SymbolKind[SymbolKind["Package"] = 3] = "Package";
|
|
909
|
+
SymbolKind[SymbolKind["Class"] = 4] = "Class";
|
|
910
|
+
SymbolKind[SymbolKind["Method"] = 5] = "Method";
|
|
911
|
+
SymbolKind[SymbolKind["Property"] = 6] = "Property";
|
|
912
|
+
SymbolKind[SymbolKind["Field"] = 7] = "Field";
|
|
913
|
+
SymbolKind[SymbolKind["Constructor"] = 8] = "Constructor";
|
|
914
|
+
SymbolKind[SymbolKind["Enum"] = 9] = "Enum";
|
|
915
|
+
SymbolKind[SymbolKind["Interface"] = 10] = "Interface";
|
|
916
|
+
SymbolKind[SymbolKind["Function"] = 11] = "Function";
|
|
917
|
+
SymbolKind[SymbolKind["Variable"] = 12] = "Variable";
|
|
918
|
+
SymbolKind[SymbolKind["Constant"] = 13] = "Constant";
|
|
919
|
+
SymbolKind[SymbolKind["String"] = 14] = "String";
|
|
920
|
+
SymbolKind[SymbolKind["Number"] = 15] = "Number";
|
|
921
|
+
SymbolKind[SymbolKind["Boolean"] = 16] = "Boolean";
|
|
922
|
+
SymbolKind[SymbolKind["Array"] = 17] = "Array";
|
|
923
|
+
SymbolKind[SymbolKind["Object"] = 18] = "Object";
|
|
924
|
+
SymbolKind[SymbolKind["Key"] = 19] = "Key";
|
|
925
|
+
SymbolKind[SymbolKind["Null"] = 20] = "Null";
|
|
926
|
+
SymbolKind[SymbolKind["EnumMember"] = 21] = "EnumMember";
|
|
927
|
+
SymbolKind[SymbolKind["Struct"] = 22] = "Struct";
|
|
928
|
+
SymbolKind[SymbolKind["Event"] = 23] = "Event";
|
|
929
|
+
SymbolKind[SymbolKind["Operator"] = 24] = "Operator";
|
|
930
|
+
SymbolKind[SymbolKind["TypeParameter"] = 25] = "TypeParameter";
|
|
931
|
+
})(SymbolKind || (SymbolKind = {})));
|
|
932
|
+
var SymbolTag;
|
|
933
|
+
( (function(SymbolTag) {
|
|
934
|
+
SymbolTag[SymbolTag["Deprecated"] = 1] = "Deprecated";
|
|
935
|
+
})(SymbolTag || (SymbolTag = {})));
|
|
936
|
+
let SymbolInformation = SymbolInformation_1 = class SymbolInformation {
|
|
937
|
+
static validate(candidate) {
|
|
938
|
+
if (!candidate.name) {
|
|
939
|
+
throw new Error('name must not be falsy');
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
constructor(name, kind, rangeOrContainer, locationOrUri, containerName) {
|
|
943
|
+
this.name = name;
|
|
944
|
+
this.kind = kind;
|
|
945
|
+
this.containerName = containerName;
|
|
946
|
+
if (typeof rangeOrContainer === 'string') {
|
|
947
|
+
this.containerName = rangeOrContainer;
|
|
948
|
+
}
|
|
949
|
+
if (locationOrUri instanceof Location) {
|
|
950
|
+
this.location = locationOrUri;
|
|
951
|
+
}
|
|
952
|
+
else if (rangeOrContainer instanceof Range) {
|
|
953
|
+
this.location = ( new Location(locationOrUri, rangeOrContainer));
|
|
954
|
+
}
|
|
955
|
+
SymbolInformation_1.validate(this);
|
|
956
|
+
}
|
|
957
|
+
toJSON() {
|
|
958
|
+
return {
|
|
959
|
+
name: this.name,
|
|
960
|
+
kind: SymbolKind[this.kind],
|
|
961
|
+
location: this.location,
|
|
962
|
+
containerName: this.containerName
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
SymbolInformation = SymbolInformation_1 = ( __decorate([
|
|
967
|
+
es5ClassCompat
|
|
968
|
+
], SymbolInformation));
|
|
969
|
+
let DocumentSymbol = DocumentSymbol_1 = class DocumentSymbol {
|
|
970
|
+
static validate(candidate) {
|
|
971
|
+
if (!candidate.name) {
|
|
972
|
+
throw new Error('name must not be falsy');
|
|
973
|
+
}
|
|
974
|
+
if (!candidate.range.contains(candidate.selectionRange)) {
|
|
975
|
+
throw new Error('selectionRange must be contained in fullRange');
|
|
976
|
+
}
|
|
977
|
+
candidate.children?.forEach(DocumentSymbol_1.validate);
|
|
978
|
+
}
|
|
979
|
+
constructor(name, detail, kind, range, selectionRange) {
|
|
980
|
+
this.name = name;
|
|
981
|
+
this.detail = detail;
|
|
982
|
+
this.kind = kind;
|
|
983
|
+
this.range = range;
|
|
984
|
+
this.selectionRange = selectionRange;
|
|
985
|
+
this.children = [];
|
|
986
|
+
DocumentSymbol_1.validate(this);
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
DocumentSymbol = DocumentSymbol_1 = ( __decorate([
|
|
990
|
+
es5ClassCompat
|
|
991
|
+
], DocumentSymbol));
|
|
992
|
+
var CodeActionTriggerKind;
|
|
993
|
+
( (function(CodeActionTriggerKind) {
|
|
994
|
+
CodeActionTriggerKind[CodeActionTriggerKind["Invoke"] = 1] = "Invoke";
|
|
995
|
+
CodeActionTriggerKind[CodeActionTriggerKind["Automatic"] = 2] = "Automatic";
|
|
996
|
+
})(CodeActionTriggerKind || (CodeActionTriggerKind = {})));
|
|
997
|
+
let CodeAction = class CodeAction {
|
|
998
|
+
constructor(title, kind) {
|
|
999
|
+
this.title = title;
|
|
1000
|
+
this.kind = kind;
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
CodeAction = ( __decorate([
|
|
1004
|
+
es5ClassCompat
|
|
1005
|
+
], CodeAction));
|
|
1006
|
+
let CodeActionKind = CodeActionKind_1 = class CodeActionKind {
|
|
1007
|
+
constructor(value) {
|
|
1008
|
+
this.value = value;
|
|
1009
|
+
}
|
|
1010
|
+
append(parts) {
|
|
1011
|
+
return ( new CodeActionKind_1(this.value ? this.value + CodeActionKind_1.sep + parts : parts));
|
|
1012
|
+
}
|
|
1013
|
+
intersects(other) {
|
|
1014
|
+
return this.contains(other) || other.contains(this);
|
|
1015
|
+
}
|
|
1016
|
+
contains(other) {
|
|
1017
|
+
return this.value === other.value || other.value.startsWith(this.value + CodeActionKind_1.sep);
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
CodeActionKind.sep = '.';
|
|
1021
|
+
CodeActionKind = CodeActionKind_1 = ( __decorate([
|
|
1022
|
+
es5ClassCompat
|
|
1023
|
+
], CodeActionKind));
|
|
1024
|
+
CodeActionKind.Empty = ( new CodeActionKind(''));
|
|
1025
|
+
CodeActionKind.QuickFix = CodeActionKind.Empty.append('quickfix');
|
|
1026
|
+
CodeActionKind.Refactor = CodeActionKind.Empty.append('refactor');
|
|
1027
|
+
CodeActionKind.RefactorExtract = CodeActionKind.Refactor.append('extract');
|
|
1028
|
+
CodeActionKind.RefactorInline = CodeActionKind.Refactor.append('inline');
|
|
1029
|
+
CodeActionKind.RefactorMove = CodeActionKind.Refactor.append('move');
|
|
1030
|
+
CodeActionKind.RefactorRewrite = CodeActionKind.Refactor.append('rewrite');
|
|
1031
|
+
CodeActionKind.Source = CodeActionKind.Empty.append('source');
|
|
1032
|
+
CodeActionKind.SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');
|
|
1033
|
+
CodeActionKind.SourceFixAll = CodeActionKind.Source.append('fixAll');
|
|
1034
|
+
let SelectionRange = class SelectionRange {
|
|
1035
|
+
constructor(range, parent) {
|
|
1036
|
+
this.range = range;
|
|
1037
|
+
this.parent = parent;
|
|
1038
|
+
if (parent && !parent.range.contains(this.range)) {
|
|
1039
|
+
throw new Error('Invalid argument: parent must contain this range');
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
SelectionRange = ( __decorate([
|
|
1044
|
+
es5ClassCompat
|
|
1045
|
+
], SelectionRange));
|
|
1046
|
+
class CallHierarchyItem {
|
|
1047
|
+
constructor(kind, name, detail, uri, range, selectionRange) {
|
|
1048
|
+
this.kind = kind;
|
|
1049
|
+
this.name = name;
|
|
1050
|
+
this.detail = detail;
|
|
1051
|
+
this.uri = uri;
|
|
1052
|
+
this.range = range;
|
|
1053
|
+
this.selectionRange = selectionRange;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
class CallHierarchyIncomingCall {
|
|
1057
|
+
constructor(item, fromRanges) {
|
|
1058
|
+
this.fromRanges = fromRanges;
|
|
1059
|
+
this.from = item;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
class CallHierarchyOutgoingCall {
|
|
1063
|
+
constructor(item, fromRanges) {
|
|
1064
|
+
this.fromRanges = fromRanges;
|
|
1065
|
+
this.to = item;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
var LanguageStatusSeverity;
|
|
1069
|
+
( (function(LanguageStatusSeverity) {
|
|
1070
|
+
LanguageStatusSeverity[LanguageStatusSeverity["Information"] = 0] = "Information";
|
|
1071
|
+
LanguageStatusSeverity[LanguageStatusSeverity["Warning"] = 1] = "Warning";
|
|
1072
|
+
LanguageStatusSeverity[LanguageStatusSeverity["Error"] = 2] = "Error";
|
|
1073
|
+
})(LanguageStatusSeverity || (LanguageStatusSeverity = {})));
|
|
1074
|
+
let CodeLens = class CodeLens {
|
|
1075
|
+
constructor(range, command) {
|
|
1076
|
+
this.range = range;
|
|
1077
|
+
this.command = command;
|
|
1078
|
+
}
|
|
1079
|
+
get isResolved() {
|
|
1080
|
+
return !!this.command;
|
|
1081
|
+
}
|
|
1082
|
+
};
|
|
1083
|
+
CodeLens = ( __decorate([
|
|
1084
|
+
es5ClassCompat
|
|
1085
|
+
], CodeLens));
|
|
1086
|
+
let MarkdownString = MarkdownString_1 = class MarkdownString {
|
|
1087
|
+
static isMarkdownString(thing) {
|
|
1088
|
+
if (thing instanceof MarkdownString_1) {
|
|
1089
|
+
return true;
|
|
1090
|
+
}
|
|
1091
|
+
return thing && thing.appendCodeblock && thing.appendMarkdown && thing.appendText && (thing.value !== undefined);
|
|
1092
|
+
}
|
|
1093
|
+
constructor(value, supportThemeIcons = false) {
|
|
1094
|
+
_MarkdownString_delegate.set(this, void 0);
|
|
1095
|
+
__classPrivateFieldSet(this, _MarkdownString_delegate, ( new MarkdownString$1(value, { supportThemeIcons })), "f");
|
|
1096
|
+
}
|
|
1097
|
+
get value() {
|
|
1098
|
+
return __classPrivateFieldGet(this, _MarkdownString_delegate, "f").value;
|
|
1099
|
+
}
|
|
1100
|
+
set value(value) {
|
|
1101
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").value = value;
|
|
1102
|
+
}
|
|
1103
|
+
get isTrusted() {
|
|
1104
|
+
return __classPrivateFieldGet(this, _MarkdownString_delegate, "f").isTrusted;
|
|
1105
|
+
}
|
|
1106
|
+
set isTrusted(value) {
|
|
1107
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").isTrusted = value;
|
|
1108
|
+
}
|
|
1109
|
+
get supportThemeIcons() {
|
|
1110
|
+
return __classPrivateFieldGet(this, _MarkdownString_delegate, "f").supportThemeIcons;
|
|
1111
|
+
}
|
|
1112
|
+
set supportThemeIcons(value) {
|
|
1113
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").supportThemeIcons = value;
|
|
1114
|
+
}
|
|
1115
|
+
get supportHtml() {
|
|
1116
|
+
return __classPrivateFieldGet(this, _MarkdownString_delegate, "f").supportHtml;
|
|
1117
|
+
}
|
|
1118
|
+
set supportHtml(value) {
|
|
1119
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").supportHtml = value;
|
|
1120
|
+
}
|
|
1121
|
+
get baseUri() {
|
|
1122
|
+
return __classPrivateFieldGet(this, _MarkdownString_delegate, "f").baseUri;
|
|
1123
|
+
}
|
|
1124
|
+
set baseUri(value) {
|
|
1125
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").baseUri = value;
|
|
1126
|
+
}
|
|
1127
|
+
appendText(value) {
|
|
1128
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").appendText(value);
|
|
1129
|
+
return this;
|
|
1130
|
+
}
|
|
1131
|
+
appendMarkdown(value) {
|
|
1132
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").appendMarkdown(value);
|
|
1133
|
+
return this;
|
|
1134
|
+
}
|
|
1135
|
+
appendCodeblock(value, language) {
|
|
1136
|
+
__classPrivateFieldGet(this, _MarkdownString_delegate, "f").appendCodeblock(language ?? '', value);
|
|
1137
|
+
return this;
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
_MarkdownString_delegate = ( new WeakMap());
|
|
1141
|
+
MarkdownString = MarkdownString_1 = ( __decorate([
|
|
1142
|
+
es5ClassCompat
|
|
1143
|
+
], MarkdownString));
|
|
1144
|
+
let ParameterInformation = class ParameterInformation {
|
|
1145
|
+
constructor(label, documentation) {
|
|
1146
|
+
this.label = label;
|
|
1147
|
+
this.documentation = documentation;
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
ParameterInformation = ( __decorate([
|
|
1151
|
+
es5ClassCompat
|
|
1152
|
+
], ParameterInformation));
|
|
1153
|
+
let SignatureInformation = class SignatureInformation {
|
|
1154
|
+
constructor(label, documentation) {
|
|
1155
|
+
this.label = label;
|
|
1156
|
+
this.documentation = documentation;
|
|
1157
|
+
this.parameters = [];
|
|
1158
|
+
}
|
|
1159
|
+
};
|
|
1160
|
+
SignatureInformation = ( __decorate([
|
|
1161
|
+
es5ClassCompat
|
|
1162
|
+
], SignatureInformation));
|
|
1163
|
+
let SignatureHelp = class SignatureHelp {
|
|
1164
|
+
constructor() {
|
|
1165
|
+
this.activeSignature = 0;
|
|
1166
|
+
this.activeParameter = 0;
|
|
1167
|
+
this.signatures = [];
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
SignatureHelp = ( __decorate([
|
|
1171
|
+
es5ClassCompat
|
|
1172
|
+
], SignatureHelp));
|
|
1173
|
+
var SignatureHelpTriggerKind;
|
|
1174
|
+
( (function(SignatureHelpTriggerKind) {
|
|
1175
|
+
SignatureHelpTriggerKind[SignatureHelpTriggerKind["Invoke"] = 1] = "Invoke";
|
|
1176
|
+
SignatureHelpTriggerKind[SignatureHelpTriggerKind["TriggerCharacter"] = 2] = "TriggerCharacter";
|
|
1177
|
+
SignatureHelpTriggerKind[SignatureHelpTriggerKind["ContentChange"] = 3] = "ContentChange";
|
|
1178
|
+
})(SignatureHelpTriggerKind || (SignatureHelpTriggerKind = {})));
|
|
1179
|
+
var InlayHintKind;
|
|
1180
|
+
( (function(InlayHintKind) {
|
|
1181
|
+
InlayHintKind[InlayHintKind["Type"] = 1] = "Type";
|
|
1182
|
+
InlayHintKind[InlayHintKind["Parameter"] = 2] = "Parameter";
|
|
1183
|
+
})(InlayHintKind || (InlayHintKind = {})));
|
|
1184
|
+
let InlayHintLabelPart = class InlayHintLabelPart {
|
|
1185
|
+
constructor(value) {
|
|
1186
|
+
this.value = value;
|
|
1187
|
+
}
|
|
1188
|
+
};
|
|
1189
|
+
InlayHintLabelPart = ( __decorate([
|
|
1190
|
+
es5ClassCompat
|
|
1191
|
+
], InlayHintLabelPart));
|
|
1192
|
+
let InlayHint = class InlayHint {
|
|
1193
|
+
constructor(position, label, kind) {
|
|
1194
|
+
this.position = position;
|
|
1195
|
+
this.label = label;
|
|
1196
|
+
this.kind = kind;
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
InlayHint = ( __decorate([
|
|
1200
|
+
es5ClassCompat
|
|
1201
|
+
], InlayHint));
|
|
1202
|
+
var CompletionTriggerKind;
|
|
1203
|
+
( (function(CompletionTriggerKind) {
|
|
1204
|
+
CompletionTriggerKind[CompletionTriggerKind["Invoke"] = 0] = "Invoke";
|
|
1205
|
+
CompletionTriggerKind[CompletionTriggerKind["TriggerCharacter"] = 1] = "TriggerCharacter";
|
|
1206
|
+
CompletionTriggerKind[CompletionTriggerKind["TriggerForIncompleteCompletions"] = 2] = "TriggerForIncompleteCompletions";
|
|
1207
|
+
})(CompletionTriggerKind || (CompletionTriggerKind = {})));
|
|
1208
|
+
var CompletionItemKind;
|
|
1209
|
+
( (function(CompletionItemKind) {
|
|
1210
|
+
CompletionItemKind[CompletionItemKind["Text"] = 0] = "Text";
|
|
1211
|
+
CompletionItemKind[CompletionItemKind["Method"] = 1] = "Method";
|
|
1212
|
+
CompletionItemKind[CompletionItemKind["Function"] = 2] = "Function";
|
|
1213
|
+
CompletionItemKind[CompletionItemKind["Constructor"] = 3] = "Constructor";
|
|
1214
|
+
CompletionItemKind[CompletionItemKind["Field"] = 4] = "Field";
|
|
1215
|
+
CompletionItemKind[CompletionItemKind["Variable"] = 5] = "Variable";
|
|
1216
|
+
CompletionItemKind[CompletionItemKind["Class"] = 6] = "Class";
|
|
1217
|
+
CompletionItemKind[CompletionItemKind["Interface"] = 7] = "Interface";
|
|
1218
|
+
CompletionItemKind[CompletionItemKind["Module"] = 8] = "Module";
|
|
1219
|
+
CompletionItemKind[CompletionItemKind["Property"] = 9] = "Property";
|
|
1220
|
+
CompletionItemKind[CompletionItemKind["Unit"] = 10] = "Unit";
|
|
1221
|
+
CompletionItemKind[CompletionItemKind["Value"] = 11] = "Value";
|
|
1222
|
+
CompletionItemKind[CompletionItemKind["Enum"] = 12] = "Enum";
|
|
1223
|
+
CompletionItemKind[CompletionItemKind["Keyword"] = 13] = "Keyword";
|
|
1224
|
+
CompletionItemKind[CompletionItemKind["Snippet"] = 14] = "Snippet";
|
|
1225
|
+
CompletionItemKind[CompletionItemKind["Color"] = 15] = "Color";
|
|
1226
|
+
CompletionItemKind[CompletionItemKind["File"] = 16] = "File";
|
|
1227
|
+
CompletionItemKind[CompletionItemKind["Reference"] = 17] = "Reference";
|
|
1228
|
+
CompletionItemKind[CompletionItemKind["Folder"] = 18] = "Folder";
|
|
1229
|
+
CompletionItemKind[CompletionItemKind["EnumMember"] = 19] = "EnumMember";
|
|
1230
|
+
CompletionItemKind[CompletionItemKind["Constant"] = 20] = "Constant";
|
|
1231
|
+
CompletionItemKind[CompletionItemKind["Struct"] = 21] = "Struct";
|
|
1232
|
+
CompletionItemKind[CompletionItemKind["Event"] = 22] = "Event";
|
|
1233
|
+
CompletionItemKind[CompletionItemKind["Operator"] = 23] = "Operator";
|
|
1234
|
+
CompletionItemKind[CompletionItemKind["TypeParameter"] = 24] = "TypeParameter";
|
|
1235
|
+
CompletionItemKind[CompletionItemKind["User"] = 25] = "User";
|
|
1236
|
+
CompletionItemKind[CompletionItemKind["Issue"] = 26] = "Issue";
|
|
1237
|
+
})(CompletionItemKind || (CompletionItemKind = {})));
|
|
1238
|
+
var CompletionItemTag;
|
|
1239
|
+
( (function(CompletionItemTag) {
|
|
1240
|
+
CompletionItemTag[CompletionItemTag["Deprecated"] = 1] = "Deprecated";
|
|
1241
|
+
})(CompletionItemTag || (CompletionItemTag = {})));
|
|
1242
|
+
let CompletionItem = class CompletionItem {
|
|
1243
|
+
constructor(label, kind) {
|
|
1244
|
+
this.label = label;
|
|
1245
|
+
this.kind = kind;
|
|
1246
|
+
}
|
|
1247
|
+
toJSON() {
|
|
1248
|
+
return {
|
|
1249
|
+
label: this.label,
|
|
1250
|
+
kind: this.kind && CompletionItemKind[this.kind],
|
|
1251
|
+
detail: this.detail,
|
|
1252
|
+
documentation: this.documentation,
|
|
1253
|
+
sortText: this.sortText,
|
|
1254
|
+
filterText: this.filterText,
|
|
1255
|
+
preselect: this.preselect,
|
|
1256
|
+
insertText: this.insertText,
|
|
1257
|
+
textEdit: this.textEdit
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
};
|
|
1261
|
+
CompletionItem = ( __decorate([
|
|
1262
|
+
es5ClassCompat
|
|
1263
|
+
], CompletionItem));
|
|
1264
|
+
let CompletionList = class CompletionList {
|
|
1265
|
+
constructor(items = [], isIncomplete = false) {
|
|
1266
|
+
this.items = items;
|
|
1267
|
+
this.isIncomplete = isIncomplete;
|
|
1268
|
+
}
|
|
1269
|
+
};
|
|
1270
|
+
CompletionList = ( __decorate([
|
|
1271
|
+
es5ClassCompat
|
|
1272
|
+
], CompletionList));
|
|
1273
|
+
let InlineSuggestion = class InlineSuggestion {
|
|
1274
|
+
constructor(insertText, range, command) {
|
|
1275
|
+
this.insertText = insertText;
|
|
1276
|
+
this.range = range;
|
|
1277
|
+
this.command = command;
|
|
1278
|
+
}
|
|
1279
|
+
};
|
|
1280
|
+
InlineSuggestion = ( __decorate([
|
|
1281
|
+
es5ClassCompat
|
|
1282
|
+
], InlineSuggestion));
|
|
1283
|
+
let InlineSuggestionList = class InlineSuggestionList {
|
|
1284
|
+
constructor(items) {
|
|
1285
|
+
this.commands = undefined;
|
|
1286
|
+
this.items = items;
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
InlineSuggestionList = ( __decorate([
|
|
1290
|
+
es5ClassCompat
|
|
1291
|
+
], InlineSuggestionList));
|
|
1292
|
+
var ViewColumn;
|
|
1293
|
+
( (function(ViewColumn) {
|
|
1294
|
+
ViewColumn[ViewColumn["Active"] = -1] = "Active";
|
|
1295
|
+
ViewColumn[ViewColumn["Beside"] = -2] = "Beside";
|
|
1296
|
+
ViewColumn[ViewColumn["One"] = 1] = "One";
|
|
1297
|
+
ViewColumn[ViewColumn["Two"] = 2] = "Two";
|
|
1298
|
+
ViewColumn[ViewColumn["Three"] = 3] = "Three";
|
|
1299
|
+
ViewColumn[ViewColumn["Four"] = 4] = "Four";
|
|
1300
|
+
ViewColumn[ViewColumn["Five"] = 5] = "Five";
|
|
1301
|
+
ViewColumn[ViewColumn["Six"] = 6] = "Six";
|
|
1302
|
+
ViewColumn[ViewColumn["Seven"] = 7] = "Seven";
|
|
1303
|
+
ViewColumn[ViewColumn["Eight"] = 8] = "Eight";
|
|
1304
|
+
ViewColumn[ViewColumn["Nine"] = 9] = "Nine";
|
|
1305
|
+
})(ViewColumn || (ViewColumn = {})));
|
|
1306
|
+
var TextEditorLineNumbersStyle;
|
|
1307
|
+
( (function(TextEditorLineNumbersStyle) {
|
|
1308
|
+
TextEditorLineNumbersStyle[TextEditorLineNumbersStyle["Off"] = 0] = "Off";
|
|
1309
|
+
TextEditorLineNumbersStyle[TextEditorLineNumbersStyle["On"] = 1] = "On";
|
|
1310
|
+
TextEditorLineNumbersStyle[TextEditorLineNumbersStyle["Relative"] = 2] = "Relative";
|
|
1311
|
+
})(TextEditorLineNumbersStyle || (TextEditorLineNumbersStyle = {})));
|
|
1312
|
+
var TextDocumentSaveReason;
|
|
1313
|
+
( (function(TextDocumentSaveReason) {
|
|
1314
|
+
TextDocumentSaveReason[TextDocumentSaveReason["Manual"] = 1] = "Manual";
|
|
1315
|
+
TextDocumentSaveReason[TextDocumentSaveReason["AfterDelay"] = 2] = "AfterDelay";
|
|
1316
|
+
TextDocumentSaveReason[TextDocumentSaveReason["FocusOut"] = 3] = "FocusOut";
|
|
1317
|
+
})(TextDocumentSaveReason || (TextDocumentSaveReason = {})));
|
|
1318
|
+
var TextEditorRevealType;
|
|
1319
|
+
( (function(TextEditorRevealType) {
|
|
1320
|
+
TextEditorRevealType[TextEditorRevealType["Default"] = 0] = "Default";
|
|
1321
|
+
TextEditorRevealType[TextEditorRevealType["InCenter"] = 1] = "InCenter";
|
|
1322
|
+
TextEditorRevealType[TextEditorRevealType["InCenterIfOutsideViewport"] = 2] = "InCenterIfOutsideViewport";
|
|
1323
|
+
TextEditorRevealType[TextEditorRevealType["AtTop"] = 3] = "AtTop";
|
|
1324
|
+
})(TextEditorRevealType || (TextEditorRevealType = {})));
|
|
1325
|
+
var TextEditorSelectionChangeKind;
|
|
1326
|
+
( (function(TextEditorSelectionChangeKind) {
|
|
1327
|
+
TextEditorSelectionChangeKind[TextEditorSelectionChangeKind["Keyboard"] = 1] = "Keyboard";
|
|
1328
|
+
TextEditorSelectionChangeKind[TextEditorSelectionChangeKind["Mouse"] = 2] = "Mouse";
|
|
1329
|
+
TextEditorSelectionChangeKind[TextEditorSelectionChangeKind["Command"] = 3] = "Command";
|
|
1330
|
+
})(TextEditorSelectionChangeKind || (TextEditorSelectionChangeKind = {})));
|
|
1331
|
+
var TextDocumentChangeReason;
|
|
1332
|
+
( (function(TextDocumentChangeReason) {
|
|
1333
|
+
TextDocumentChangeReason[TextDocumentChangeReason["Undo"] = 1] = "Undo";
|
|
1334
|
+
TextDocumentChangeReason[TextDocumentChangeReason["Redo"] = 2] = "Redo";
|
|
1335
|
+
})(TextDocumentChangeReason || (TextDocumentChangeReason = {})));
|
|
1336
|
+
var DecorationRangeBehavior;
|
|
1337
|
+
( (function(DecorationRangeBehavior) {
|
|
1338
|
+
DecorationRangeBehavior[DecorationRangeBehavior["OpenOpen"] = 0] = "OpenOpen";
|
|
1339
|
+
DecorationRangeBehavior[DecorationRangeBehavior["ClosedClosed"] = 1] = "ClosedClosed";
|
|
1340
|
+
DecorationRangeBehavior[DecorationRangeBehavior["OpenClosed"] = 2] = "OpenClosed";
|
|
1341
|
+
DecorationRangeBehavior[DecorationRangeBehavior["ClosedOpen"] = 3] = "ClosedOpen";
|
|
1342
|
+
})(DecorationRangeBehavior || (DecorationRangeBehavior = {})));
|
|
1343
|
+
( (function(TextEditorSelectionChangeKind) {
|
|
1344
|
+
function fromValue(s) {
|
|
1345
|
+
switch (s) {
|
|
1346
|
+
case 'keyboard': return TextEditorSelectionChangeKind.Keyboard;
|
|
1347
|
+
case 'mouse': return TextEditorSelectionChangeKind.Mouse;
|
|
1348
|
+
case 'api': return TextEditorSelectionChangeKind.Command;
|
|
1349
|
+
}
|
|
1350
|
+
return undefined;
|
|
1351
|
+
}
|
|
1352
|
+
TextEditorSelectionChangeKind.fromValue = fromValue;
|
|
1353
|
+
})(TextEditorSelectionChangeKind || (TextEditorSelectionChangeKind = {})));
|
|
1354
|
+
let DocumentLink = class DocumentLink {
|
|
1355
|
+
constructor(range, target) {
|
|
1356
|
+
if (target && !(URI.isUri(target))) {
|
|
1357
|
+
throw illegalArgument('target');
|
|
1358
|
+
}
|
|
1359
|
+
if (!Range.isRange(range) || range.isEmpty) {
|
|
1360
|
+
throw illegalArgument('range');
|
|
1361
|
+
}
|
|
1362
|
+
this.range = range;
|
|
1363
|
+
this.target = target;
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
DocumentLink = ( __decorate([
|
|
1367
|
+
es5ClassCompat
|
|
1368
|
+
], DocumentLink));
|
|
1369
|
+
let Color = class Color {
|
|
1370
|
+
constructor(red, green, blue, alpha) {
|
|
1371
|
+
this.red = red;
|
|
1372
|
+
this.green = green;
|
|
1373
|
+
this.blue = blue;
|
|
1374
|
+
this.alpha = alpha;
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1377
|
+
Color = ( __decorate([
|
|
1378
|
+
es5ClassCompat
|
|
1379
|
+
], Color));
|
|
1380
|
+
let ColorInformation = class ColorInformation {
|
|
1381
|
+
constructor(range, color) {
|
|
1382
|
+
if (color && !(color instanceof Color)) {
|
|
1383
|
+
throw illegalArgument('color');
|
|
1384
|
+
}
|
|
1385
|
+
if (!Range.isRange(range) || range.isEmpty) {
|
|
1386
|
+
throw illegalArgument('range');
|
|
1387
|
+
}
|
|
1388
|
+
this.range = range;
|
|
1389
|
+
this.color = color;
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
ColorInformation = ( __decorate([
|
|
1393
|
+
es5ClassCompat
|
|
1394
|
+
], ColorInformation));
|
|
1395
|
+
let ColorPresentation = class ColorPresentation {
|
|
1396
|
+
constructor(label) {
|
|
1397
|
+
if (!label || typeof label !== 'string') {
|
|
1398
|
+
throw illegalArgument('label');
|
|
1399
|
+
}
|
|
1400
|
+
this.label = label;
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1403
|
+
ColorPresentation = ( __decorate([
|
|
1404
|
+
es5ClassCompat
|
|
1405
|
+
], ColorPresentation));
|
|
1406
|
+
let TaskGroup = TaskGroup_1 = class TaskGroup {
|
|
1407
|
+
static from(value) {
|
|
1408
|
+
switch (value) {
|
|
1409
|
+
case 'clean':
|
|
1410
|
+
return TaskGroup_1.Clean;
|
|
1411
|
+
case 'build':
|
|
1412
|
+
return TaskGroup_1.Build;
|
|
1413
|
+
case 'rebuild':
|
|
1414
|
+
return TaskGroup_1.Rebuild;
|
|
1415
|
+
case 'test':
|
|
1416
|
+
return TaskGroup_1.Test;
|
|
1417
|
+
default:
|
|
1418
|
+
return undefined;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
constructor(id, label) {
|
|
1422
|
+
this.label = label;
|
|
1423
|
+
if (typeof id !== 'string') {
|
|
1424
|
+
throw illegalArgument('name');
|
|
1425
|
+
}
|
|
1426
|
+
if (typeof label !== 'string') {
|
|
1427
|
+
throw illegalArgument('name');
|
|
1428
|
+
}
|
|
1429
|
+
this._id = id;
|
|
1430
|
+
}
|
|
1431
|
+
get id() {
|
|
1432
|
+
return this._id;
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1435
|
+
TaskGroup.Clean = ( new TaskGroup_1('clean', 'Clean'));
|
|
1436
|
+
TaskGroup.Build = ( new TaskGroup_1('build', 'Build'));
|
|
1437
|
+
TaskGroup.Rebuild = ( new TaskGroup_1('rebuild', 'Rebuild'));
|
|
1438
|
+
TaskGroup.Test = ( new TaskGroup_1('test', 'Test'));
|
|
1439
|
+
TaskGroup = TaskGroup_1 = ( __decorate([
|
|
1440
|
+
es5ClassCompat
|
|
1441
|
+
], TaskGroup));
|
|
1442
|
+
function computeTaskExecutionId(values) {
|
|
1443
|
+
let id = '';
|
|
1444
|
+
for (let i = 0; i < values.length; i++) {
|
|
1445
|
+
id += values[i].replace(/,/g, ',,') + ',';
|
|
1446
|
+
}
|
|
1447
|
+
return id;
|
|
1448
|
+
}
|
|
1449
|
+
let ProcessExecution = class ProcessExecution {
|
|
1450
|
+
constructor(process, varg1, varg2) {
|
|
1451
|
+
if (typeof process !== 'string') {
|
|
1452
|
+
throw illegalArgument('process');
|
|
1453
|
+
}
|
|
1454
|
+
this._args = [];
|
|
1455
|
+
this._process = process;
|
|
1456
|
+
if (varg1 !== undefined) {
|
|
1457
|
+
if (Array.isArray(varg1)) {
|
|
1458
|
+
this._args = varg1;
|
|
1459
|
+
this._options = varg2;
|
|
1460
|
+
}
|
|
1461
|
+
else {
|
|
1462
|
+
this._options = varg1;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
get process() {
|
|
1467
|
+
return this._process;
|
|
1468
|
+
}
|
|
1469
|
+
set process(value) {
|
|
1470
|
+
if (typeof value !== 'string') {
|
|
1471
|
+
throw illegalArgument('process');
|
|
1472
|
+
}
|
|
1473
|
+
this._process = value;
|
|
1474
|
+
}
|
|
1475
|
+
get args() {
|
|
1476
|
+
return this._args;
|
|
1477
|
+
}
|
|
1478
|
+
set args(value) {
|
|
1479
|
+
if (!Array.isArray(value)) {
|
|
1480
|
+
value = [];
|
|
1481
|
+
}
|
|
1482
|
+
this._args = value;
|
|
1483
|
+
}
|
|
1484
|
+
get options() {
|
|
1485
|
+
return this._options;
|
|
1486
|
+
}
|
|
1487
|
+
set options(value) {
|
|
1488
|
+
this._options = value;
|
|
1489
|
+
}
|
|
1490
|
+
computeId() {
|
|
1491
|
+
const props = [];
|
|
1492
|
+
props.push('process');
|
|
1493
|
+
if (this._process !== undefined) {
|
|
1494
|
+
props.push(this._process);
|
|
1495
|
+
}
|
|
1496
|
+
if (this._args && this._args.length > 0) {
|
|
1497
|
+
for (const arg of this._args) {
|
|
1498
|
+
props.push(arg);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
return computeTaskExecutionId(props);
|
|
1502
|
+
}
|
|
1503
|
+
};
|
|
1504
|
+
ProcessExecution = ( __decorate([
|
|
1505
|
+
es5ClassCompat
|
|
1506
|
+
], ProcessExecution));
|
|
1507
|
+
let ShellExecution = class ShellExecution {
|
|
1508
|
+
constructor(arg0, arg1, arg2) {
|
|
1509
|
+
this._args = [];
|
|
1510
|
+
if (Array.isArray(arg1)) {
|
|
1511
|
+
if (!arg0) {
|
|
1512
|
+
throw illegalArgument('command can\'t be undefined or null');
|
|
1513
|
+
}
|
|
1514
|
+
if (typeof arg0 !== 'string' && typeof arg0.value !== 'string') {
|
|
1515
|
+
throw illegalArgument('command');
|
|
1516
|
+
}
|
|
1517
|
+
this._command = arg0;
|
|
1518
|
+
this._args = arg1;
|
|
1519
|
+
this._options = arg2;
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
if (typeof arg0 !== 'string') {
|
|
1523
|
+
throw illegalArgument('commandLine');
|
|
1524
|
+
}
|
|
1525
|
+
this._commandLine = arg0;
|
|
1526
|
+
this._options = arg1;
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
get commandLine() {
|
|
1530
|
+
return this._commandLine;
|
|
1531
|
+
}
|
|
1532
|
+
set commandLine(value) {
|
|
1533
|
+
if (typeof value !== 'string') {
|
|
1534
|
+
throw illegalArgument('commandLine');
|
|
1535
|
+
}
|
|
1536
|
+
this._commandLine = value;
|
|
1537
|
+
}
|
|
1538
|
+
get command() {
|
|
1539
|
+
return this._command ? this._command : '';
|
|
1540
|
+
}
|
|
1541
|
+
set command(value) {
|
|
1542
|
+
if (typeof value !== 'string' && typeof value.value !== 'string') {
|
|
1543
|
+
throw illegalArgument('command');
|
|
1544
|
+
}
|
|
1545
|
+
this._command = value;
|
|
1546
|
+
}
|
|
1547
|
+
get args() {
|
|
1548
|
+
return this._args;
|
|
1549
|
+
}
|
|
1550
|
+
set args(value) {
|
|
1551
|
+
this._args = value || [];
|
|
1552
|
+
}
|
|
1553
|
+
get options() {
|
|
1554
|
+
return this._options;
|
|
1555
|
+
}
|
|
1556
|
+
set options(value) {
|
|
1557
|
+
this._options = value;
|
|
1558
|
+
}
|
|
1559
|
+
computeId() {
|
|
1560
|
+
const props = [];
|
|
1561
|
+
props.push('shell');
|
|
1562
|
+
if (this._commandLine !== undefined) {
|
|
1563
|
+
props.push(this._commandLine);
|
|
1564
|
+
}
|
|
1565
|
+
if (this._command !== undefined) {
|
|
1566
|
+
props.push(typeof this._command === 'string' ? this._command : this._command.value);
|
|
1567
|
+
}
|
|
1568
|
+
if (this._args && this._args.length > 0) {
|
|
1569
|
+
for (const arg of this._args) {
|
|
1570
|
+
props.push(typeof arg === 'string' ? arg : arg.value);
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
return computeTaskExecutionId(props);
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
ShellExecution = ( __decorate([
|
|
1577
|
+
es5ClassCompat
|
|
1578
|
+
], ShellExecution));
|
|
1579
|
+
var ShellQuoting;
|
|
1580
|
+
( (function(ShellQuoting) {
|
|
1581
|
+
ShellQuoting[ShellQuoting["Escape"] = 1] = "Escape";
|
|
1582
|
+
ShellQuoting[ShellQuoting["Strong"] = 2] = "Strong";
|
|
1583
|
+
ShellQuoting[ShellQuoting["Weak"] = 3] = "Weak";
|
|
1584
|
+
})(ShellQuoting || (ShellQuoting = {})));
|
|
1585
|
+
var TaskScope;
|
|
1586
|
+
( (function(TaskScope) {
|
|
1587
|
+
TaskScope[TaskScope["Global"] = 1] = "Global";
|
|
1588
|
+
TaskScope[TaskScope["Workspace"] = 2] = "Workspace";
|
|
1589
|
+
})(TaskScope || (TaskScope = {})));
|
|
1590
|
+
class CustomExecution {
|
|
1591
|
+
constructor(callback) {
|
|
1592
|
+
this._callback = callback;
|
|
1593
|
+
}
|
|
1594
|
+
computeId() {
|
|
1595
|
+
return 'customExecution' + generateUuid();
|
|
1596
|
+
}
|
|
1597
|
+
set callback(value) {
|
|
1598
|
+
this._callback = value;
|
|
1599
|
+
}
|
|
1600
|
+
get callback() {
|
|
1601
|
+
return this._callback;
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
let Task = Task_1 = class Task {
|
|
1605
|
+
constructor(definition, arg2, arg3, arg4, arg5, arg6) {
|
|
1606
|
+
this.__deprecated = false;
|
|
1607
|
+
this._definition = this.definition = definition;
|
|
1608
|
+
let problemMatchers;
|
|
1609
|
+
if (typeof arg2 === 'string') {
|
|
1610
|
+
this._name = this.name = arg2;
|
|
1611
|
+
this._source = this.source = arg3;
|
|
1612
|
+
this.execution = arg4;
|
|
1613
|
+
problemMatchers = arg5;
|
|
1614
|
+
this.__deprecated = true;
|
|
1615
|
+
}
|
|
1616
|
+
else if (arg2 === TaskScope.Global || arg2 === TaskScope.Workspace) {
|
|
1617
|
+
this.target = arg2;
|
|
1618
|
+
this._name = this.name = arg3;
|
|
1619
|
+
this._source = this.source = arg4;
|
|
1620
|
+
this.execution = arg5;
|
|
1621
|
+
problemMatchers = arg6;
|
|
1622
|
+
}
|
|
1623
|
+
else {
|
|
1624
|
+
this.target = arg2;
|
|
1625
|
+
this._name = this.name = arg3;
|
|
1626
|
+
this._source = this.source = arg4;
|
|
1627
|
+
this.execution = arg5;
|
|
1628
|
+
problemMatchers = arg6;
|
|
1629
|
+
}
|
|
1630
|
+
if (typeof problemMatchers === 'string') {
|
|
1631
|
+
this._problemMatchers = [problemMatchers];
|
|
1632
|
+
this._hasDefinedMatchers = true;
|
|
1633
|
+
}
|
|
1634
|
+
else if (Array.isArray(problemMatchers)) {
|
|
1635
|
+
this._problemMatchers = problemMatchers;
|
|
1636
|
+
this._hasDefinedMatchers = true;
|
|
1637
|
+
}
|
|
1638
|
+
else {
|
|
1639
|
+
this._problemMatchers = [];
|
|
1640
|
+
this._hasDefinedMatchers = false;
|
|
1641
|
+
}
|
|
1642
|
+
this._isBackground = false;
|
|
1643
|
+
this._presentationOptions = Object.create(null);
|
|
1644
|
+
this._runOptions = Object.create(null);
|
|
1645
|
+
}
|
|
1646
|
+
get _id() {
|
|
1647
|
+
return this.__id;
|
|
1648
|
+
}
|
|
1649
|
+
set _id(value) {
|
|
1650
|
+
this.__id = value;
|
|
1651
|
+
}
|
|
1652
|
+
get _deprecated() {
|
|
1653
|
+
return this.__deprecated;
|
|
1654
|
+
}
|
|
1655
|
+
clear() {
|
|
1656
|
+
if (this.__id === undefined) {
|
|
1657
|
+
return;
|
|
1658
|
+
}
|
|
1659
|
+
this.__id = undefined;
|
|
1660
|
+
this._scope = undefined;
|
|
1661
|
+
this.computeDefinitionBasedOnExecution();
|
|
1662
|
+
}
|
|
1663
|
+
computeDefinitionBasedOnExecution() {
|
|
1664
|
+
if (this._execution instanceof ProcessExecution) {
|
|
1665
|
+
this._definition = {
|
|
1666
|
+
type: Task_1.ProcessType,
|
|
1667
|
+
id: this._execution.computeId()
|
|
1668
|
+
};
|
|
1669
|
+
}
|
|
1670
|
+
else if (this._execution instanceof ShellExecution) {
|
|
1671
|
+
this._definition = {
|
|
1672
|
+
type: Task_1.ShellType,
|
|
1673
|
+
id: this._execution.computeId()
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
else if (this._execution instanceof CustomExecution) {
|
|
1677
|
+
this._definition = {
|
|
1678
|
+
type: Task_1.ExtensionCallbackType,
|
|
1679
|
+
id: this._execution.computeId()
|
|
1680
|
+
};
|
|
1681
|
+
}
|
|
1682
|
+
else {
|
|
1683
|
+
this._definition = {
|
|
1684
|
+
type: Task_1.EmptyType,
|
|
1685
|
+
id: generateUuid()
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
get definition() {
|
|
1690
|
+
return this._definition;
|
|
1691
|
+
}
|
|
1692
|
+
set definition(value) {
|
|
1693
|
+
if (value === undefined || value === null) {
|
|
1694
|
+
throw illegalArgument('Kind can\'t be undefined or null');
|
|
1695
|
+
}
|
|
1696
|
+
this.clear();
|
|
1697
|
+
this._definition = value;
|
|
1698
|
+
}
|
|
1699
|
+
get scope() {
|
|
1700
|
+
return this._scope;
|
|
1701
|
+
}
|
|
1702
|
+
set target(value) {
|
|
1703
|
+
this.clear();
|
|
1704
|
+
this._scope = value;
|
|
1705
|
+
}
|
|
1706
|
+
get name() {
|
|
1707
|
+
return this._name;
|
|
1708
|
+
}
|
|
1709
|
+
set name(value) {
|
|
1710
|
+
if (typeof value !== 'string') {
|
|
1711
|
+
throw illegalArgument('name');
|
|
1712
|
+
}
|
|
1713
|
+
this.clear();
|
|
1714
|
+
this._name = value;
|
|
1715
|
+
}
|
|
1716
|
+
get execution() {
|
|
1717
|
+
return this._execution;
|
|
1718
|
+
}
|
|
1719
|
+
set execution(value) {
|
|
1720
|
+
if (value === null) {
|
|
1721
|
+
value = undefined;
|
|
1722
|
+
}
|
|
1723
|
+
this.clear();
|
|
1724
|
+
this._execution = value;
|
|
1725
|
+
const type = this._definition.type;
|
|
1726
|
+
if (Task_1.EmptyType === type || Task_1.ProcessType === type || Task_1.ShellType === type || Task_1.ExtensionCallbackType === type) {
|
|
1727
|
+
this.computeDefinitionBasedOnExecution();
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
get problemMatchers() {
|
|
1731
|
+
return this._problemMatchers;
|
|
1732
|
+
}
|
|
1733
|
+
set problemMatchers(value) {
|
|
1734
|
+
if (!Array.isArray(value)) {
|
|
1735
|
+
this.clear();
|
|
1736
|
+
this._problemMatchers = [];
|
|
1737
|
+
this._hasDefinedMatchers = false;
|
|
1738
|
+
return;
|
|
1739
|
+
}
|
|
1740
|
+
else {
|
|
1741
|
+
this.clear();
|
|
1742
|
+
this._problemMatchers = value;
|
|
1743
|
+
this._hasDefinedMatchers = true;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
get hasDefinedMatchers() {
|
|
1747
|
+
return this._hasDefinedMatchers;
|
|
1748
|
+
}
|
|
1749
|
+
get isBackground() {
|
|
1750
|
+
return this._isBackground;
|
|
1751
|
+
}
|
|
1752
|
+
set isBackground(value) {
|
|
1753
|
+
if (value !== true && value !== false) {
|
|
1754
|
+
value = false;
|
|
1755
|
+
}
|
|
1756
|
+
this.clear();
|
|
1757
|
+
this._isBackground = value;
|
|
1758
|
+
}
|
|
1759
|
+
get source() {
|
|
1760
|
+
return this._source;
|
|
1761
|
+
}
|
|
1762
|
+
set source(value) {
|
|
1763
|
+
if (typeof value !== 'string' || value.length === 0) {
|
|
1764
|
+
throw illegalArgument('source must be a string of length > 0');
|
|
1765
|
+
}
|
|
1766
|
+
this.clear();
|
|
1767
|
+
this._source = value;
|
|
1768
|
+
}
|
|
1769
|
+
get group() {
|
|
1770
|
+
return this._group;
|
|
1771
|
+
}
|
|
1772
|
+
set group(value) {
|
|
1773
|
+
if (value === null) {
|
|
1774
|
+
value = undefined;
|
|
1775
|
+
}
|
|
1776
|
+
this.clear();
|
|
1777
|
+
this._group = value;
|
|
1778
|
+
}
|
|
1779
|
+
get detail() {
|
|
1780
|
+
return this._detail;
|
|
1781
|
+
}
|
|
1782
|
+
set detail(value) {
|
|
1783
|
+
if (value === null) {
|
|
1784
|
+
value = undefined;
|
|
1785
|
+
}
|
|
1786
|
+
this._detail = value;
|
|
1787
|
+
}
|
|
1788
|
+
get presentationOptions() {
|
|
1789
|
+
return this._presentationOptions;
|
|
1790
|
+
}
|
|
1791
|
+
set presentationOptions(value) {
|
|
1792
|
+
if (value === null || value === undefined) {
|
|
1793
|
+
value = Object.create(null);
|
|
1794
|
+
}
|
|
1795
|
+
this.clear();
|
|
1796
|
+
this._presentationOptions = value;
|
|
1797
|
+
}
|
|
1798
|
+
get runOptions() {
|
|
1799
|
+
return this._runOptions;
|
|
1800
|
+
}
|
|
1801
|
+
set runOptions(value) {
|
|
1802
|
+
if (value === null || value === undefined) {
|
|
1803
|
+
value = Object.create(null);
|
|
1804
|
+
}
|
|
1805
|
+
this.clear();
|
|
1806
|
+
this._runOptions = value;
|
|
1807
|
+
}
|
|
1808
|
+
};
|
|
1809
|
+
Task.ExtensionCallbackType = 'customExecution';
|
|
1810
|
+
Task.ProcessType = 'process';
|
|
1811
|
+
Task.ShellType = 'shell';
|
|
1812
|
+
Task.EmptyType = '$empty';
|
|
1813
|
+
Task = Task_1 = ( __decorate([
|
|
1814
|
+
es5ClassCompat
|
|
1815
|
+
], Task));
|
|
1816
|
+
var ProgressLocation;
|
|
1817
|
+
( (function(ProgressLocation) {
|
|
1818
|
+
ProgressLocation[ProgressLocation["SourceControl"] = 1] = "SourceControl";
|
|
1819
|
+
ProgressLocation[ProgressLocation["Window"] = 10] = "Window";
|
|
1820
|
+
ProgressLocation[ProgressLocation["Notification"] = 15] = "Notification";
|
|
1821
|
+
})(ProgressLocation || (ProgressLocation = {})));
|
|
1822
|
+
let TreeItem = TreeItem_1 = class TreeItem {
|
|
1823
|
+
static isTreeItem(thing, extension) {
|
|
1824
|
+
const treeItemThing = thing;
|
|
1825
|
+
if (treeItemThing.checkboxState !== undefined) {
|
|
1826
|
+
checkProposedApiEnabled(extension, 'treeItemCheckbox');
|
|
1827
|
+
const checkbox = isNumber(treeItemThing.checkboxState) ? treeItemThing.checkboxState :
|
|
1828
|
+
isObject(treeItemThing.checkboxState) && isNumber(treeItemThing.checkboxState.state) ? treeItemThing.checkboxState.state : undefined;
|
|
1829
|
+
const tooltip = !isNumber(treeItemThing.checkboxState) && isObject(treeItemThing.checkboxState) ? treeItemThing.checkboxState.tooltip : undefined;
|
|
1830
|
+
if (checkbox === undefined || (checkbox !== TreeItemCheckboxState.Checked && checkbox !== TreeItemCheckboxState.Unchecked) || (tooltip !== undefined && !isString(tooltip))) {
|
|
1831
|
+
console.log('INVALID tree item, invalid checkboxState', treeItemThing.checkboxState);
|
|
1832
|
+
return false;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
if (thing instanceof TreeItem_1) {
|
|
1836
|
+
return true;
|
|
1837
|
+
}
|
|
1838
|
+
if (treeItemThing.label !== undefined && !isString(treeItemThing.label) && !(treeItemThing.label?.label)) {
|
|
1839
|
+
console.log('INVALID tree item, invalid label', treeItemThing.label);
|
|
1840
|
+
return false;
|
|
1841
|
+
}
|
|
1842
|
+
if ((treeItemThing.id !== undefined) && !isString(treeItemThing.id)) {
|
|
1843
|
+
console.log('INVALID tree item, invalid id', treeItemThing.id);
|
|
1844
|
+
return false;
|
|
1845
|
+
}
|
|
1846
|
+
if ((treeItemThing.iconPath !== undefined) && !isString(treeItemThing.iconPath) && !URI.isUri(treeItemThing.iconPath) && (!treeItemThing.iconPath || !isString(treeItemThing.iconPath.id))) {
|
|
1847
|
+
const asLightAndDarkThing = treeItemThing.iconPath;
|
|
1848
|
+
if (!asLightAndDarkThing || (!isString(asLightAndDarkThing.light) && !URI.isUri(asLightAndDarkThing.light) && !isString(asLightAndDarkThing.dark) && !URI.isUri(asLightAndDarkThing.dark))) {
|
|
1849
|
+
console.log('INVALID tree item, invalid iconPath', treeItemThing.iconPath);
|
|
1850
|
+
return false;
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
if ((treeItemThing.description !== undefined) && !isString(treeItemThing.description) && (typeof treeItemThing.description !== 'boolean')) {
|
|
1854
|
+
console.log('INVALID tree item, invalid description', treeItemThing.description);
|
|
1855
|
+
return false;
|
|
1856
|
+
}
|
|
1857
|
+
if ((treeItemThing.resourceUri !== undefined) && !URI.isUri(treeItemThing.resourceUri)) {
|
|
1858
|
+
console.log('INVALID tree item, invalid resourceUri', treeItemThing.resourceUri);
|
|
1859
|
+
return false;
|
|
1860
|
+
}
|
|
1861
|
+
if ((treeItemThing.tooltip !== undefined) && !isString(treeItemThing.tooltip) && !(treeItemThing.tooltip instanceof MarkdownString)) {
|
|
1862
|
+
console.log('INVALID tree item, invalid tooltip', treeItemThing.tooltip);
|
|
1863
|
+
return false;
|
|
1864
|
+
}
|
|
1865
|
+
if ((treeItemThing.command !== undefined) && !treeItemThing.command.command) {
|
|
1866
|
+
console.log('INVALID tree item, invalid command', treeItemThing.command);
|
|
1867
|
+
return false;
|
|
1868
|
+
}
|
|
1869
|
+
if ((treeItemThing.collapsibleState !== undefined) && (treeItemThing.collapsibleState < TreeItemCollapsibleState.None) && (treeItemThing.collapsibleState > TreeItemCollapsibleState.Expanded)) {
|
|
1870
|
+
console.log('INVALID tree item, invalid collapsibleState', treeItemThing.collapsibleState);
|
|
1871
|
+
return false;
|
|
1872
|
+
}
|
|
1873
|
+
if ((treeItemThing.contextValue !== undefined) && !isString(treeItemThing.contextValue)) {
|
|
1874
|
+
console.log('INVALID tree item, invalid contextValue', treeItemThing.contextValue);
|
|
1875
|
+
return false;
|
|
1876
|
+
}
|
|
1877
|
+
if ((treeItemThing.accessibilityInformation !== undefined) && !treeItemThing.accessibilityInformation?.label) {
|
|
1878
|
+
console.log('INVALID tree item, invalid accessibilityInformation', treeItemThing.accessibilityInformation);
|
|
1879
|
+
return false;
|
|
1880
|
+
}
|
|
1881
|
+
return true;
|
|
1882
|
+
}
|
|
1883
|
+
constructor(arg1, collapsibleState = TreeItemCollapsibleState.None) {
|
|
1884
|
+
this.collapsibleState = collapsibleState;
|
|
1885
|
+
if (URI.isUri(arg1)) {
|
|
1886
|
+
this.resourceUri = arg1;
|
|
1887
|
+
}
|
|
1888
|
+
else {
|
|
1889
|
+
this.label = arg1;
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
};
|
|
1893
|
+
TreeItem = TreeItem_1 = ( __decorate([
|
|
1894
|
+
es5ClassCompat
|
|
1895
|
+
], TreeItem));
|
|
1896
|
+
var TreeItemCollapsibleState;
|
|
1897
|
+
( (function(TreeItemCollapsibleState) {
|
|
1898
|
+
TreeItemCollapsibleState[TreeItemCollapsibleState["None"] = 0] = "None";
|
|
1899
|
+
TreeItemCollapsibleState[TreeItemCollapsibleState["Collapsed"] = 1] = "Collapsed";
|
|
1900
|
+
TreeItemCollapsibleState[TreeItemCollapsibleState["Expanded"] = 2] = "Expanded";
|
|
1901
|
+
})(TreeItemCollapsibleState || (TreeItemCollapsibleState = {})));
|
|
1902
|
+
var TreeItemCheckboxState;
|
|
1903
|
+
( (function(TreeItemCheckboxState) {
|
|
1904
|
+
TreeItemCheckboxState[TreeItemCheckboxState["Unchecked"] = 0] = "Unchecked";
|
|
1905
|
+
TreeItemCheckboxState[TreeItemCheckboxState["Checked"] = 1] = "Checked";
|
|
1906
|
+
})(TreeItemCheckboxState || (TreeItemCheckboxState = {})));
|
|
1907
|
+
let DataTransferItem = class DataTransferItem {
|
|
1908
|
+
async asString() {
|
|
1909
|
+
return typeof this.value === 'string' ? this.value : JSON.stringify(this.value);
|
|
1910
|
+
}
|
|
1911
|
+
asFile() {
|
|
1912
|
+
return undefined;
|
|
1913
|
+
}
|
|
1914
|
+
constructor(value, id) {
|
|
1915
|
+
this.value = value;
|
|
1916
|
+
this.id = id ?? generateUuid();
|
|
1917
|
+
}
|
|
1918
|
+
};
|
|
1919
|
+
DataTransferItem = ( __decorate([
|
|
1920
|
+
es5ClassCompat
|
|
1921
|
+
], DataTransferItem));
|
|
1922
|
+
let DataTransfer = class DataTransfer {
|
|
1923
|
+
constructor(init) {
|
|
1924
|
+
_DataTransfer_instances.add(this);
|
|
1925
|
+
_DataTransfer_items.set(this, ( new Map()));
|
|
1926
|
+
for (const [mime, item] of init ?? []) {
|
|
1927
|
+
const existing = __classPrivateFieldGet(this, _DataTransfer_items, "f").get(__classPrivateFieldGet(this, _DataTransfer_instances, "m", _DataTransfer_normalizeMime).call(this, mime));
|
|
1928
|
+
if (existing) {
|
|
1929
|
+
existing.push(item);
|
|
1930
|
+
}
|
|
1931
|
+
else {
|
|
1932
|
+
__classPrivateFieldGet(this, _DataTransfer_items, "f").set(__classPrivateFieldGet(this, _DataTransfer_instances, "m", _DataTransfer_normalizeMime).call(this, mime), [item]);
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
get(mimeType) {
|
|
1937
|
+
return __classPrivateFieldGet(this, _DataTransfer_items, "f").get(__classPrivateFieldGet(this, _DataTransfer_instances, "m", _DataTransfer_normalizeMime).call(this, mimeType))?.[0];
|
|
1938
|
+
}
|
|
1939
|
+
set(mimeType, value) {
|
|
1940
|
+
__classPrivateFieldGet(this, _DataTransfer_items, "f").set(__classPrivateFieldGet(this, _DataTransfer_instances, "m", _DataTransfer_normalizeMime).call(this, mimeType), [value]);
|
|
1941
|
+
}
|
|
1942
|
+
forEach(callbackfn, thisArg) {
|
|
1943
|
+
for (const [mime, items] of __classPrivateFieldGet(this, _DataTransfer_items, "f")) {
|
|
1944
|
+
for (const item of items) {
|
|
1945
|
+
callbackfn.call(thisArg, item, mime, this);
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
*[(_DataTransfer_items = ( new WeakMap()), _DataTransfer_instances = ( new WeakSet()), Symbol.iterator)]() {
|
|
1950
|
+
for (const [mime, items] of __classPrivateFieldGet(this, _DataTransfer_items, "f")) {
|
|
1951
|
+
for (const item of items) {
|
|
1952
|
+
yield [mime, item];
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
};
|
|
1957
|
+
_DataTransfer_normalizeMime = function _DataTransfer_normalizeMime(mimeType) {
|
|
1958
|
+
return mimeType.toLowerCase();
|
|
1959
|
+
};
|
|
1960
|
+
DataTransfer = ( __decorate([
|
|
1961
|
+
es5ClassCompat
|
|
1962
|
+
], DataTransfer));
|
|
1963
|
+
let DocumentDropEdit = class DocumentDropEdit {
|
|
1964
|
+
constructor(insertText) {
|
|
1965
|
+
this.insertText = insertText;
|
|
1966
|
+
}
|
|
1967
|
+
};
|
|
1968
|
+
DocumentDropEdit = ( __decorate([
|
|
1969
|
+
es5ClassCompat
|
|
1970
|
+
], DocumentDropEdit));
|
|
1971
|
+
let ThemeIcon = class ThemeIcon {
|
|
1972
|
+
constructor(id, color) {
|
|
1973
|
+
this.id = id;
|
|
1974
|
+
this.color = color;
|
|
1975
|
+
}
|
|
1976
|
+
static isThemeIcon(thing) {
|
|
1977
|
+
if (typeof thing.id !== 'string') {
|
|
1978
|
+
console.log('INVALID ThemeIcon, invalid id', thing.id);
|
|
1979
|
+
return false;
|
|
1980
|
+
}
|
|
1981
|
+
return true;
|
|
1982
|
+
}
|
|
1983
|
+
};
|
|
1984
|
+
ThemeIcon = ( __decorate([
|
|
1985
|
+
es5ClassCompat
|
|
1986
|
+
], ThemeIcon));
|
|
1987
|
+
ThemeIcon.File = ( new ThemeIcon('file'));
|
|
1988
|
+
ThemeIcon.Folder = ( new ThemeIcon('folder'));
|
|
1989
|
+
let ThemeColor = class ThemeColor {
|
|
1990
|
+
constructor(id) {
|
|
1991
|
+
this.id = id;
|
|
1992
|
+
}
|
|
1993
|
+
};
|
|
1994
|
+
ThemeColor = ( __decorate([
|
|
1995
|
+
es5ClassCompat
|
|
1996
|
+
], ThemeColor));
|
|
1997
|
+
var ConfigurationTarget;
|
|
1998
|
+
( (function(ConfigurationTarget) {
|
|
1999
|
+
ConfigurationTarget[ConfigurationTarget["Global"] = 1] = "Global";
|
|
2000
|
+
ConfigurationTarget[ConfigurationTarget["Workspace"] = 2] = "Workspace";
|
|
2001
|
+
ConfigurationTarget[ConfigurationTarget["WorkspaceFolder"] = 3] = "WorkspaceFolder";
|
|
2002
|
+
})(ConfigurationTarget || (ConfigurationTarget = {})));
|
|
2003
|
+
let RelativePattern = class RelativePattern {
|
|
2004
|
+
get base() {
|
|
2005
|
+
return this._base;
|
|
2006
|
+
}
|
|
2007
|
+
set base(base) {
|
|
2008
|
+
this._base = base;
|
|
2009
|
+
this._baseUri = URI.file(base);
|
|
2010
|
+
}
|
|
2011
|
+
get baseUri() {
|
|
2012
|
+
return this._baseUri;
|
|
2013
|
+
}
|
|
2014
|
+
set baseUri(baseUri) {
|
|
2015
|
+
this._baseUri = baseUri;
|
|
2016
|
+
this._base = baseUri.fsPath;
|
|
2017
|
+
}
|
|
2018
|
+
constructor(base, pattern) {
|
|
2019
|
+
if (typeof base !== 'string') {
|
|
2020
|
+
if (!base || !URI.isUri(base) && !URI.isUri(base.uri)) {
|
|
2021
|
+
throw illegalArgument('base');
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
if (typeof pattern !== 'string') {
|
|
2025
|
+
throw illegalArgument('pattern');
|
|
2026
|
+
}
|
|
2027
|
+
if (typeof base === 'string') {
|
|
2028
|
+
this.baseUri = URI.file(base);
|
|
2029
|
+
}
|
|
2030
|
+
else if (URI.isUri(base)) {
|
|
2031
|
+
this.baseUri = base;
|
|
2032
|
+
}
|
|
2033
|
+
else {
|
|
2034
|
+
this.baseUri = base.uri;
|
|
2035
|
+
}
|
|
2036
|
+
this.pattern = pattern;
|
|
2037
|
+
}
|
|
2038
|
+
toJSON() {
|
|
2039
|
+
return {
|
|
2040
|
+
pattern: this.pattern,
|
|
2041
|
+
base: this.base,
|
|
2042
|
+
baseUri: this.baseUri.toJSON()
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
};
|
|
2046
|
+
RelativePattern = ( __decorate([
|
|
2047
|
+
es5ClassCompat
|
|
2048
|
+
], RelativePattern));
|
|
2049
|
+
const breakpointIds = ( new WeakMap());
|
|
2050
|
+
function setBreakpointId(bp, id) {
|
|
2051
|
+
breakpointIds.set(bp, id);
|
|
2052
|
+
}
|
|
2053
|
+
let Breakpoint = class Breakpoint {
|
|
2054
|
+
constructor(enabled, condition, hitCondition, logMessage) {
|
|
2055
|
+
this.enabled = typeof enabled === 'boolean' ? enabled : true;
|
|
2056
|
+
if (typeof condition === 'string') {
|
|
2057
|
+
this.condition = condition;
|
|
2058
|
+
}
|
|
2059
|
+
if (typeof hitCondition === 'string') {
|
|
2060
|
+
this.hitCondition = hitCondition;
|
|
2061
|
+
}
|
|
2062
|
+
if (typeof logMessage === 'string') {
|
|
2063
|
+
this.logMessage = logMessage;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
get id() {
|
|
2067
|
+
if (!this._id) {
|
|
2068
|
+
this._id = breakpointIds.get(this) ?? generateUuid();
|
|
2069
|
+
}
|
|
2070
|
+
return this._id;
|
|
2071
|
+
}
|
|
2072
|
+
};
|
|
2073
|
+
Breakpoint = ( __decorate([
|
|
2074
|
+
es5ClassCompat
|
|
2075
|
+
], Breakpoint));
|
|
2076
|
+
let SourceBreakpoint = class SourceBreakpoint extends Breakpoint {
|
|
2077
|
+
constructor(location, enabled, condition, hitCondition, logMessage) {
|
|
2078
|
+
super(enabled, condition, hitCondition, logMessage);
|
|
2079
|
+
if (location === null) {
|
|
2080
|
+
throw illegalArgument('location');
|
|
2081
|
+
}
|
|
2082
|
+
this.location = location;
|
|
2083
|
+
}
|
|
2084
|
+
};
|
|
2085
|
+
SourceBreakpoint = ( __decorate([
|
|
2086
|
+
es5ClassCompat
|
|
2087
|
+
], SourceBreakpoint));
|
|
2088
|
+
let FunctionBreakpoint = class FunctionBreakpoint extends Breakpoint {
|
|
2089
|
+
constructor(functionName, enabled, condition, hitCondition, logMessage) {
|
|
2090
|
+
super(enabled, condition, hitCondition, logMessage);
|
|
2091
|
+
this.functionName = functionName;
|
|
2092
|
+
}
|
|
2093
|
+
};
|
|
2094
|
+
FunctionBreakpoint = ( __decorate([
|
|
2095
|
+
es5ClassCompat
|
|
2096
|
+
], FunctionBreakpoint));
|
|
2097
|
+
let DataBreakpoint = class DataBreakpoint extends Breakpoint {
|
|
2098
|
+
constructor(label, dataId, canPersist, enabled, condition, hitCondition, logMessage) {
|
|
2099
|
+
super(enabled, condition, hitCondition, logMessage);
|
|
2100
|
+
if (!dataId) {
|
|
2101
|
+
throw illegalArgument('dataId');
|
|
2102
|
+
}
|
|
2103
|
+
this.label = label;
|
|
2104
|
+
this.dataId = dataId;
|
|
2105
|
+
this.canPersist = canPersist;
|
|
2106
|
+
}
|
|
2107
|
+
};
|
|
2108
|
+
DataBreakpoint = ( __decorate([
|
|
2109
|
+
es5ClassCompat
|
|
2110
|
+
], DataBreakpoint));
|
|
2111
|
+
let DebugAdapterExecutable = class DebugAdapterExecutable {
|
|
2112
|
+
constructor(command, args, options) {
|
|
2113
|
+
this.command = command;
|
|
2114
|
+
this.args = args || [];
|
|
2115
|
+
this.options = options;
|
|
2116
|
+
}
|
|
2117
|
+
};
|
|
2118
|
+
DebugAdapterExecutable = ( __decorate([
|
|
2119
|
+
es5ClassCompat
|
|
2120
|
+
], DebugAdapterExecutable));
|
|
2121
|
+
let DebugAdapterServer = class DebugAdapterServer {
|
|
2122
|
+
constructor(port, host) {
|
|
2123
|
+
this.port = port;
|
|
2124
|
+
this.host = host;
|
|
2125
|
+
}
|
|
2126
|
+
};
|
|
2127
|
+
DebugAdapterServer = ( __decorate([
|
|
2128
|
+
es5ClassCompat
|
|
2129
|
+
], DebugAdapterServer));
|
|
2130
|
+
let DebugAdapterNamedPipeServer = class DebugAdapterNamedPipeServer {
|
|
2131
|
+
constructor(path) {
|
|
2132
|
+
this.path = path;
|
|
2133
|
+
}
|
|
2134
|
+
};
|
|
2135
|
+
DebugAdapterNamedPipeServer = ( __decorate([
|
|
2136
|
+
es5ClassCompat
|
|
2137
|
+
], DebugAdapterNamedPipeServer));
|
|
2138
|
+
let DebugAdapterInlineImplementation = class DebugAdapterInlineImplementation {
|
|
2139
|
+
constructor(impl) {
|
|
2140
|
+
this.implementation = impl;
|
|
2141
|
+
}
|
|
2142
|
+
};
|
|
2143
|
+
DebugAdapterInlineImplementation = ( __decorate([
|
|
2144
|
+
es5ClassCompat
|
|
2145
|
+
], DebugAdapterInlineImplementation));
|
|
2146
|
+
let EvaluatableExpression = class EvaluatableExpression {
|
|
2147
|
+
constructor(range, expression) {
|
|
2148
|
+
this.range = range;
|
|
2149
|
+
this.expression = expression;
|
|
2150
|
+
}
|
|
2151
|
+
};
|
|
2152
|
+
EvaluatableExpression = ( __decorate([
|
|
2153
|
+
es5ClassCompat
|
|
2154
|
+
], EvaluatableExpression));
|
|
2155
|
+
var InlineCompletionTriggerKind;
|
|
2156
|
+
( (function(InlineCompletionTriggerKind) {
|
|
2157
|
+
InlineCompletionTriggerKind[InlineCompletionTriggerKind["Invoke"] = 0] = "Invoke";
|
|
2158
|
+
InlineCompletionTriggerKind[InlineCompletionTriggerKind["Automatic"] = 1] = "Automatic";
|
|
2159
|
+
})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {})));
|
|
2160
|
+
let InlineValueText = class InlineValueText {
|
|
2161
|
+
constructor(range, text) {
|
|
2162
|
+
this.range = range;
|
|
2163
|
+
this.text = text;
|
|
2164
|
+
}
|
|
2165
|
+
};
|
|
2166
|
+
InlineValueText = ( __decorate([
|
|
2167
|
+
es5ClassCompat
|
|
2168
|
+
], InlineValueText));
|
|
2169
|
+
let InlineValueVariableLookup = class InlineValueVariableLookup {
|
|
2170
|
+
constructor(range, variableName, caseSensitiveLookup = true) {
|
|
2171
|
+
this.range = range;
|
|
2172
|
+
this.variableName = variableName;
|
|
2173
|
+
this.caseSensitiveLookup = caseSensitiveLookup;
|
|
2174
|
+
}
|
|
2175
|
+
};
|
|
2176
|
+
InlineValueVariableLookup = ( __decorate([
|
|
2177
|
+
es5ClassCompat
|
|
2178
|
+
], InlineValueVariableLookup));
|
|
2179
|
+
let InlineValueEvaluatableExpression = class InlineValueEvaluatableExpression {
|
|
2180
|
+
constructor(range, expression) {
|
|
2181
|
+
this.range = range;
|
|
2182
|
+
this.expression = expression;
|
|
2183
|
+
}
|
|
2184
|
+
};
|
|
2185
|
+
InlineValueEvaluatableExpression = ( __decorate([
|
|
2186
|
+
es5ClassCompat
|
|
2187
|
+
], InlineValueEvaluatableExpression));
|
|
2188
|
+
let InlineValueContext = class InlineValueContext {
|
|
2189
|
+
constructor(frameId, range) {
|
|
2190
|
+
this.frameId = frameId;
|
|
2191
|
+
this.stoppedLocation = range;
|
|
2192
|
+
}
|
|
2193
|
+
};
|
|
2194
|
+
InlineValueContext = ( __decorate([
|
|
2195
|
+
es5ClassCompat
|
|
2196
|
+
], InlineValueContext));
|
|
2197
|
+
var FileChangeType;
|
|
2198
|
+
( (function(FileChangeType) {
|
|
2199
|
+
FileChangeType[FileChangeType["Changed"] = 1] = "Changed";
|
|
2200
|
+
FileChangeType[FileChangeType["Created"] = 2] = "Created";
|
|
2201
|
+
FileChangeType[FileChangeType["Deleted"] = 3] = "Deleted";
|
|
2202
|
+
})(FileChangeType || (FileChangeType = {})));
|
|
2203
|
+
let FileSystemError = FileSystemError_1 = class FileSystemError extends Error {
|
|
2204
|
+
static FileExists(messageOrUri) {
|
|
2205
|
+
return ( new FileSystemError_1(
|
|
2206
|
+
messageOrUri,
|
|
2207
|
+
FileSystemProviderErrorCode.FileExists,
|
|
2208
|
+
FileSystemError_1.FileExists
|
|
2209
|
+
));
|
|
2210
|
+
}
|
|
2211
|
+
static FileNotFound(messageOrUri) {
|
|
2212
|
+
return ( new FileSystemError_1(
|
|
2213
|
+
messageOrUri,
|
|
2214
|
+
FileSystemProviderErrorCode.FileNotFound,
|
|
2215
|
+
FileSystemError_1.FileNotFound
|
|
2216
|
+
));
|
|
2217
|
+
}
|
|
2218
|
+
static FileNotADirectory(messageOrUri) {
|
|
2219
|
+
return ( new FileSystemError_1(
|
|
2220
|
+
messageOrUri,
|
|
2221
|
+
FileSystemProviderErrorCode.FileNotADirectory,
|
|
2222
|
+
FileSystemError_1.FileNotADirectory
|
|
2223
|
+
));
|
|
2224
|
+
}
|
|
2225
|
+
static FileIsADirectory(messageOrUri) {
|
|
2226
|
+
return ( new FileSystemError_1(
|
|
2227
|
+
messageOrUri,
|
|
2228
|
+
FileSystemProviderErrorCode.FileIsADirectory,
|
|
2229
|
+
FileSystemError_1.FileIsADirectory
|
|
2230
|
+
));
|
|
2231
|
+
}
|
|
2232
|
+
static NoPermissions(messageOrUri) {
|
|
2233
|
+
return ( new FileSystemError_1(
|
|
2234
|
+
messageOrUri,
|
|
2235
|
+
FileSystemProviderErrorCode.NoPermissions,
|
|
2236
|
+
FileSystemError_1.NoPermissions
|
|
2237
|
+
));
|
|
2238
|
+
}
|
|
2239
|
+
static Unavailable(messageOrUri) {
|
|
2240
|
+
return ( new FileSystemError_1(
|
|
2241
|
+
messageOrUri,
|
|
2242
|
+
FileSystemProviderErrorCode.Unavailable,
|
|
2243
|
+
FileSystemError_1.Unavailable
|
|
2244
|
+
));
|
|
2245
|
+
}
|
|
2246
|
+
constructor(uriOrMessage, code = FileSystemProviderErrorCode.Unknown, terminator) {
|
|
2247
|
+
super(URI.isUri(uriOrMessage) ? ( uriOrMessage.toString(true)) : uriOrMessage);
|
|
2248
|
+
this.code = terminator?.name ?? 'Unknown';
|
|
2249
|
+
markAsFileSystemProviderError(this, code);
|
|
2250
|
+
Object.setPrototypeOf(this, FileSystemError_1.prototype);
|
|
2251
|
+
if (typeof Error.captureStackTrace === 'function' && typeof terminator === 'function') {
|
|
2252
|
+
Error.captureStackTrace(this, terminator);
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
};
|
|
2256
|
+
FileSystemError = FileSystemError_1 = ( __decorate([
|
|
2257
|
+
es5ClassCompat
|
|
2258
|
+
], FileSystemError));
|
|
2259
|
+
let FoldingRange = class FoldingRange {
|
|
2260
|
+
constructor(start, end, kind) {
|
|
2261
|
+
this.start = start;
|
|
2262
|
+
this.end = end;
|
|
2263
|
+
this.kind = kind;
|
|
2264
|
+
}
|
|
2265
|
+
};
|
|
2266
|
+
FoldingRange = ( __decorate([
|
|
2267
|
+
es5ClassCompat
|
|
2268
|
+
], FoldingRange));
|
|
2269
|
+
var FoldingRangeKind;
|
|
2270
|
+
( (function(FoldingRangeKind) {
|
|
2271
|
+
FoldingRangeKind[FoldingRangeKind["Comment"] = 1] = "Comment";
|
|
2272
|
+
FoldingRangeKind[FoldingRangeKind["Imports"] = 2] = "Imports";
|
|
2273
|
+
FoldingRangeKind[FoldingRangeKind["Region"] = 3] = "Region";
|
|
2274
|
+
})(FoldingRangeKind || (FoldingRangeKind = {})));
|
|
2275
|
+
var CommentThreadCollapsibleState;
|
|
2276
|
+
( (function(CommentThreadCollapsibleState) {
|
|
2277
|
+
CommentThreadCollapsibleState[CommentThreadCollapsibleState["Collapsed"] = 0] = "Collapsed";
|
|
2278
|
+
CommentThreadCollapsibleState[CommentThreadCollapsibleState["Expanded"] = 1] = "Expanded";
|
|
2279
|
+
})(CommentThreadCollapsibleState || (CommentThreadCollapsibleState = {})));
|
|
2280
|
+
var CommentMode;
|
|
2281
|
+
( (function(CommentMode) {
|
|
2282
|
+
CommentMode[CommentMode["Editing"] = 0] = "Editing";
|
|
2283
|
+
CommentMode[CommentMode["Preview"] = 1] = "Preview";
|
|
2284
|
+
})(CommentMode || (CommentMode = {})));
|
|
2285
|
+
class SemanticTokensLegend {
|
|
2286
|
+
constructor(tokenTypes, tokenModifiers = []) {
|
|
2287
|
+
this.tokenTypes = tokenTypes;
|
|
2288
|
+
this.tokenModifiers = tokenModifiers;
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
function isStrArrayOrUndefined(arg) {
|
|
2292
|
+
return ((typeof arg === 'undefined') || isStringArray(arg));
|
|
2293
|
+
}
|
|
2294
|
+
class SemanticTokensBuilder {
|
|
2295
|
+
constructor(legend) {
|
|
2296
|
+
this._prevLine = 0;
|
|
2297
|
+
this._prevChar = 0;
|
|
2298
|
+
this._dataIsSortedAndDeltaEncoded = true;
|
|
2299
|
+
this._data = [];
|
|
2300
|
+
this._dataLen = 0;
|
|
2301
|
+
this._tokenTypeStrToInt = ( new Map());
|
|
2302
|
+
this._tokenModifierStrToInt = ( new Map());
|
|
2303
|
+
this._hasLegend = false;
|
|
2304
|
+
if (legend) {
|
|
2305
|
+
this._hasLegend = true;
|
|
2306
|
+
for (let i = 0, len = legend.tokenTypes.length; i < len; i++) {
|
|
2307
|
+
this._tokenTypeStrToInt.set(legend.tokenTypes[i], i);
|
|
2308
|
+
}
|
|
2309
|
+
for (let i = 0, len = legend.tokenModifiers.length; i < len; i++) {
|
|
2310
|
+
this._tokenModifierStrToInt.set(legend.tokenModifiers[i], i);
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
push(arg0, arg1, arg2, arg3, arg4) {
|
|
2315
|
+
if (typeof arg0 === 'number' && typeof arg1 === 'number' && typeof arg2 === 'number' && typeof arg3 === 'number' && (typeof arg4 === 'number' || typeof arg4 === 'undefined')) {
|
|
2316
|
+
if (typeof arg4 === 'undefined') {
|
|
2317
|
+
arg4 = 0;
|
|
2318
|
+
}
|
|
2319
|
+
return this._pushEncoded(arg0, arg1, arg2, arg3, arg4);
|
|
2320
|
+
}
|
|
2321
|
+
if (Range.isRange(arg0) && typeof arg1 === 'string' && isStrArrayOrUndefined(arg2)) {
|
|
2322
|
+
return this._push(arg0, arg1, arg2);
|
|
2323
|
+
}
|
|
2324
|
+
throw illegalArgument();
|
|
2325
|
+
}
|
|
2326
|
+
_push(range, tokenType, tokenModifiers) {
|
|
2327
|
+
if (!this._hasLegend) {
|
|
2328
|
+
throw new Error('Legend must be provided in constructor');
|
|
2329
|
+
}
|
|
2330
|
+
if (range.start.line !== range.end.line) {
|
|
2331
|
+
throw new Error('`range` cannot span multiple lines');
|
|
2332
|
+
}
|
|
2333
|
+
if (!this._tokenTypeStrToInt.has(tokenType)) {
|
|
2334
|
+
throw new Error('`tokenType` is not in the provided legend');
|
|
2335
|
+
}
|
|
2336
|
+
const line = range.start.line;
|
|
2337
|
+
const char = range.start.character;
|
|
2338
|
+
const length = range.end.character - range.start.character;
|
|
2339
|
+
const nTokenType = this._tokenTypeStrToInt.get(tokenType);
|
|
2340
|
+
let nTokenModifiers = 0;
|
|
2341
|
+
if (tokenModifiers) {
|
|
2342
|
+
for (const tokenModifier of tokenModifiers) {
|
|
2343
|
+
if (!this._tokenModifierStrToInt.has(tokenModifier)) {
|
|
2344
|
+
throw new Error('`tokenModifier` is not in the provided legend');
|
|
2345
|
+
}
|
|
2346
|
+
const nTokenModifier = this._tokenModifierStrToInt.get(tokenModifier);
|
|
2347
|
+
nTokenModifiers |= (1 << nTokenModifier) >>> 0;
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
this._pushEncoded(line, char, length, nTokenType, nTokenModifiers);
|
|
2351
|
+
}
|
|
2352
|
+
_pushEncoded(line, char, length, tokenType, tokenModifiers) {
|
|
2353
|
+
if (this._dataIsSortedAndDeltaEncoded && (line < this._prevLine || (line === this._prevLine && char < this._prevChar))) {
|
|
2354
|
+
this._dataIsSortedAndDeltaEncoded = false;
|
|
2355
|
+
const tokenCount = (this._data.length / 5) | 0;
|
|
2356
|
+
let prevLine = 0;
|
|
2357
|
+
let prevChar = 0;
|
|
2358
|
+
for (let i = 0; i < tokenCount; i++) {
|
|
2359
|
+
let line = this._data[5 * i];
|
|
2360
|
+
let char = this._data[5 * i + 1];
|
|
2361
|
+
if (line === 0) {
|
|
2362
|
+
line = prevLine;
|
|
2363
|
+
char += prevChar;
|
|
2364
|
+
}
|
|
2365
|
+
else {
|
|
2366
|
+
line += prevLine;
|
|
2367
|
+
}
|
|
2368
|
+
this._data[5 * i] = line;
|
|
2369
|
+
this._data[5 * i + 1] = char;
|
|
2370
|
+
prevLine = line;
|
|
2371
|
+
prevChar = char;
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
let pushLine = line;
|
|
2375
|
+
let pushChar = char;
|
|
2376
|
+
if (this._dataIsSortedAndDeltaEncoded && this._dataLen > 0) {
|
|
2377
|
+
pushLine -= this._prevLine;
|
|
2378
|
+
if (pushLine === 0) {
|
|
2379
|
+
pushChar -= this._prevChar;
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
this._data[this._dataLen++] = pushLine;
|
|
2383
|
+
this._data[this._dataLen++] = pushChar;
|
|
2384
|
+
this._data[this._dataLen++] = length;
|
|
2385
|
+
this._data[this._dataLen++] = tokenType;
|
|
2386
|
+
this._data[this._dataLen++] = tokenModifiers;
|
|
2387
|
+
this._prevLine = line;
|
|
2388
|
+
this._prevChar = char;
|
|
2389
|
+
}
|
|
2390
|
+
static _sortAndDeltaEncode(data) {
|
|
2391
|
+
const pos = [];
|
|
2392
|
+
const tokenCount = (data.length / 5) | 0;
|
|
2393
|
+
for (let i = 0; i < tokenCount; i++) {
|
|
2394
|
+
pos[i] = i;
|
|
2395
|
+
}
|
|
2396
|
+
pos.sort((a, b) => {
|
|
2397
|
+
const aLine = data[5 * a];
|
|
2398
|
+
const bLine = data[5 * b];
|
|
2399
|
+
if (aLine === bLine) {
|
|
2400
|
+
const aChar = data[5 * a + 1];
|
|
2401
|
+
const bChar = data[5 * b + 1];
|
|
2402
|
+
return aChar - bChar;
|
|
2403
|
+
}
|
|
2404
|
+
return aLine - bLine;
|
|
2405
|
+
});
|
|
2406
|
+
const result = ( new Uint32Array(data.length));
|
|
2407
|
+
let prevLine = 0;
|
|
2408
|
+
let prevChar = 0;
|
|
2409
|
+
for (let i = 0; i < tokenCount; i++) {
|
|
2410
|
+
const srcOffset = 5 * pos[i];
|
|
2411
|
+
const line = data[srcOffset + 0];
|
|
2412
|
+
const char = data[srcOffset + 1];
|
|
2413
|
+
const length = data[srcOffset + 2];
|
|
2414
|
+
const tokenType = data[srcOffset + 3];
|
|
2415
|
+
const tokenModifiers = data[srcOffset + 4];
|
|
2416
|
+
const pushLine = line - prevLine;
|
|
2417
|
+
const pushChar = (pushLine === 0 ? char - prevChar : char);
|
|
2418
|
+
const dstOffset = 5 * i;
|
|
2419
|
+
result[dstOffset + 0] = pushLine;
|
|
2420
|
+
result[dstOffset + 1] = pushChar;
|
|
2421
|
+
result[dstOffset + 2] = length;
|
|
2422
|
+
result[dstOffset + 3] = tokenType;
|
|
2423
|
+
result[dstOffset + 4] = tokenModifiers;
|
|
2424
|
+
prevLine = line;
|
|
2425
|
+
prevChar = char;
|
|
2426
|
+
}
|
|
2427
|
+
return result;
|
|
2428
|
+
}
|
|
2429
|
+
build(resultId) {
|
|
2430
|
+
if (!this._dataIsSortedAndDeltaEncoded) {
|
|
2431
|
+
return ( new SemanticTokens(SemanticTokensBuilder._sortAndDeltaEncode(this._data), resultId));
|
|
2432
|
+
}
|
|
2433
|
+
return ( new SemanticTokens(( new Uint32Array(this._data)), resultId));
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2436
|
+
class SemanticTokens {
|
|
2437
|
+
constructor(data, resultId) {
|
|
2438
|
+
this.resultId = resultId;
|
|
2439
|
+
this.data = data;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
class SemanticTokensEdit {
|
|
2443
|
+
constructor(start, deleteCount, data) {
|
|
2444
|
+
this.start = start;
|
|
2445
|
+
this.deleteCount = deleteCount;
|
|
2446
|
+
this.data = data;
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
class SemanticTokensEdits {
|
|
2450
|
+
constructor(edits, resultId) {
|
|
2451
|
+
this.resultId = resultId;
|
|
2452
|
+
this.edits = edits;
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
var DebugConsoleMode;
|
|
2456
|
+
( (function(DebugConsoleMode) {
|
|
2457
|
+
DebugConsoleMode[DebugConsoleMode["Separate"] = 0] = "Separate";
|
|
2458
|
+
DebugConsoleMode[DebugConsoleMode["MergeWithParent"] = 1] = "MergeWithParent";
|
|
2459
|
+
})(DebugConsoleMode || (DebugConsoleMode = {})));
|
|
2460
|
+
let QuickInputButtons = class QuickInputButtons {
|
|
2461
|
+
constructor() { }
|
|
2462
|
+
};
|
|
2463
|
+
QuickInputButtons.Back = { iconPath: ( new ThemeIcon('arrow-left')) };
|
|
2464
|
+
QuickInputButtons = ( __decorate([
|
|
2465
|
+
es5ClassCompat
|
|
2466
|
+
], QuickInputButtons));
|
|
2467
|
+
var QuickPickItemKind;
|
|
2468
|
+
( (function(QuickPickItemKind) {
|
|
2469
|
+
QuickPickItemKind[QuickPickItemKind["Separator"] = -1] = "Separator";
|
|
2470
|
+
QuickPickItemKind[QuickPickItemKind["Default"] = 0] = "Default";
|
|
2471
|
+
})(QuickPickItemKind || (QuickPickItemKind = {})));
|
|
2472
|
+
var InputBoxValidationSeverity;
|
|
2473
|
+
( (function(InputBoxValidationSeverity) {
|
|
2474
|
+
InputBoxValidationSeverity[InputBoxValidationSeverity["Info"] = 1] = "Info";
|
|
2475
|
+
InputBoxValidationSeverity[InputBoxValidationSeverity["Warning"] = 2] = "Warning";
|
|
2476
|
+
InputBoxValidationSeverity[InputBoxValidationSeverity["Error"] = 3] = "Error";
|
|
2477
|
+
})(InputBoxValidationSeverity || (InputBoxValidationSeverity = {})));
|
|
2478
|
+
var ExtensionKind;
|
|
2479
|
+
( (function(ExtensionKind) {
|
|
2480
|
+
ExtensionKind[ExtensionKind["UI"] = 1] = "UI";
|
|
2481
|
+
ExtensionKind[ExtensionKind["Workspace"] = 2] = "Workspace";
|
|
2482
|
+
})(ExtensionKind || (ExtensionKind = {})));
|
|
2483
|
+
class FileDecoration {
|
|
2484
|
+
static validate(d) {
|
|
2485
|
+
if (typeof d.badge === 'string') {
|
|
2486
|
+
let len = nextCharLength(d.badge, 0);
|
|
2487
|
+
if (len < d.badge.length) {
|
|
2488
|
+
len += nextCharLength(d.badge, len);
|
|
2489
|
+
}
|
|
2490
|
+
if (d.badge.length > len) {
|
|
2491
|
+
throw new Error(`The 'badge'-property must be undefined or a short character`);
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
else if (d.badge) {
|
|
2495
|
+
if (!ThemeIcon.isThemeIcon(d.badge)) {
|
|
2496
|
+
throw new Error(`The 'badge'-property is not a valid ThemeIcon`);
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
if (!d.color && !d.badge && !d.tooltip) {
|
|
2500
|
+
throw new Error(`The decoration is empty`);
|
|
2501
|
+
}
|
|
2502
|
+
return true;
|
|
2503
|
+
}
|
|
2504
|
+
constructor(badge, tooltip, color) {
|
|
2505
|
+
this.badge = badge;
|
|
2506
|
+
this.tooltip = tooltip;
|
|
2507
|
+
this.color = color;
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
class NotebookRange {
|
|
2511
|
+
static isNotebookRange(thing) {
|
|
2512
|
+
if (thing instanceof NotebookRange) {
|
|
2513
|
+
return true;
|
|
2514
|
+
}
|
|
2515
|
+
if (!thing) {
|
|
2516
|
+
return false;
|
|
2517
|
+
}
|
|
2518
|
+
return typeof thing.start === 'number'
|
|
2519
|
+
&& typeof thing.end === 'number';
|
|
2520
|
+
}
|
|
2521
|
+
get start() {
|
|
2522
|
+
return this._start;
|
|
2523
|
+
}
|
|
2524
|
+
get end() {
|
|
2525
|
+
return this._end;
|
|
2526
|
+
}
|
|
2527
|
+
get isEmpty() {
|
|
2528
|
+
return this._start === this._end;
|
|
2529
|
+
}
|
|
2530
|
+
constructor(start, end) {
|
|
2531
|
+
if (start < 0) {
|
|
2532
|
+
throw illegalArgument('start must be positive');
|
|
2533
|
+
}
|
|
2534
|
+
if (end < 0) {
|
|
2535
|
+
throw illegalArgument('end must be positive');
|
|
2536
|
+
}
|
|
2537
|
+
if (start <= end) {
|
|
2538
|
+
this._start = start;
|
|
2539
|
+
this._end = end;
|
|
2540
|
+
}
|
|
2541
|
+
else {
|
|
2542
|
+
this._start = end;
|
|
2543
|
+
this._end = start;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
with(change) {
|
|
2547
|
+
let start = this._start;
|
|
2548
|
+
let end = this._end;
|
|
2549
|
+
if (change.start !== undefined) {
|
|
2550
|
+
start = change.start;
|
|
2551
|
+
}
|
|
2552
|
+
if (change.end !== undefined) {
|
|
2553
|
+
end = change.end;
|
|
2554
|
+
}
|
|
2555
|
+
if (start === this._start && end === this._end) {
|
|
2556
|
+
return this;
|
|
2557
|
+
}
|
|
2558
|
+
return ( new NotebookRange(start, end));
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
class NotebookCellData {
|
|
2562
|
+
static validate(data) {
|
|
2563
|
+
if (typeof data.kind !== 'number') {
|
|
2564
|
+
throw new Error('NotebookCellData MUST have \'kind\' property');
|
|
2565
|
+
}
|
|
2566
|
+
if (typeof data.value !== 'string') {
|
|
2567
|
+
throw new Error('NotebookCellData MUST have \'value\' property');
|
|
2568
|
+
}
|
|
2569
|
+
if (typeof data.languageId !== 'string') {
|
|
2570
|
+
throw new Error('NotebookCellData MUST have \'languageId\' property');
|
|
2571
|
+
}
|
|
2572
|
+
}
|
|
2573
|
+
static isNotebookCellDataArray(value) {
|
|
2574
|
+
return Array.isArray(value) && value.every(elem => NotebookCellData.isNotebookCellData(elem));
|
|
2575
|
+
}
|
|
2576
|
+
static isNotebookCellData(value) {
|
|
2577
|
+
return true;
|
|
2578
|
+
}
|
|
2579
|
+
constructor(kind, value, languageId, mime, outputs, metadata, executionSummary) {
|
|
2580
|
+
this.kind = kind;
|
|
2581
|
+
this.value = value;
|
|
2582
|
+
this.languageId = languageId;
|
|
2583
|
+
this.mime = mime;
|
|
2584
|
+
this.outputs = outputs ?? [];
|
|
2585
|
+
this.metadata = metadata;
|
|
2586
|
+
this.executionSummary = executionSummary;
|
|
2587
|
+
NotebookCellData.validate(this);
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
class NotebookCellOutputItem {
|
|
2591
|
+
static isNotebookCellOutputItem(obj) {
|
|
2592
|
+
if (obj instanceof NotebookCellOutputItem) {
|
|
2593
|
+
return true;
|
|
2594
|
+
}
|
|
2595
|
+
if (!obj) {
|
|
2596
|
+
return false;
|
|
2597
|
+
}
|
|
2598
|
+
return typeof obj.mime === 'string'
|
|
2599
|
+
&& obj.data instanceof Uint8Array;
|
|
2600
|
+
}
|
|
2601
|
+
static error(err) {
|
|
2602
|
+
const obj = {
|
|
2603
|
+
name: err.name,
|
|
2604
|
+
message: err.message,
|
|
2605
|
+
stack: err.stack
|
|
2606
|
+
};
|
|
2607
|
+
return NotebookCellOutputItem.json(obj, 'application/vnd.code.notebook.error');
|
|
2608
|
+
}
|
|
2609
|
+
static stdout(value) {
|
|
2610
|
+
return NotebookCellOutputItem.text(value, 'application/vnd.code.notebook.stdout');
|
|
2611
|
+
}
|
|
2612
|
+
static stderr(value) {
|
|
2613
|
+
return NotebookCellOutputItem.text(value, 'application/vnd.code.notebook.stderr');
|
|
2614
|
+
}
|
|
2615
|
+
static bytes(value, mime = 'application/octet-stream') {
|
|
2616
|
+
return ( new NotebookCellOutputItem(value, mime));
|
|
2617
|
+
}
|
|
2618
|
+
static text(value, mime = Mimes.text) {
|
|
2619
|
+
const bytes = __classPrivateFieldGet(NotebookCellOutputItem, _a, "f", _NotebookCellOutputItem_encoder).encode(String(value));
|
|
2620
|
+
return ( new NotebookCellOutputItem(bytes, mime));
|
|
2621
|
+
}
|
|
2622
|
+
static json(value, mime = 'text/x-json') {
|
|
2623
|
+
const rawStr = JSON.stringify(value, undefined, '\t');
|
|
2624
|
+
return NotebookCellOutputItem.text(rawStr, mime);
|
|
2625
|
+
}
|
|
2626
|
+
constructor(data, mime) {
|
|
2627
|
+
this.data = data;
|
|
2628
|
+
this.mime = mime;
|
|
2629
|
+
const mimeNormalized = normalizeMimeType(mime, true);
|
|
2630
|
+
if (!mimeNormalized) {
|
|
2631
|
+
throw new Error(`INVALID mime type: ${mime}. Must be in the format "type/subtype[;optionalparameter]"`);
|
|
2632
|
+
}
|
|
2633
|
+
this.mime = mimeNormalized;
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
_a = NotebookCellOutputItem;
|
|
2637
|
+
_NotebookCellOutputItem_encoder = { value: ( new TextEncoder()) };
|
|
2638
|
+
class NotebookCellOutput {
|
|
2639
|
+
static isNotebookCellOutput(candidate) {
|
|
2640
|
+
if (candidate instanceof NotebookCellOutput) {
|
|
2641
|
+
return true;
|
|
2642
|
+
}
|
|
2643
|
+
if (!candidate || typeof candidate !== 'object') {
|
|
2644
|
+
return false;
|
|
2645
|
+
}
|
|
2646
|
+
return typeof candidate.id === 'string' && Array.isArray(candidate.items);
|
|
2647
|
+
}
|
|
2648
|
+
static ensureUniqueMimeTypes(items, warn = false) {
|
|
2649
|
+
const seen = ( new Set());
|
|
2650
|
+
const removeIdx = ( new Set());
|
|
2651
|
+
for (let i = 0; i < items.length; i++) {
|
|
2652
|
+
const item = items[i];
|
|
2653
|
+
const normalMime = normalizeMimeType(item.mime);
|
|
2654
|
+
if (!seen.has(normalMime) || isTextStreamMime(normalMime)) {
|
|
2655
|
+
seen.add(normalMime);
|
|
2656
|
+
continue;
|
|
2657
|
+
}
|
|
2658
|
+
removeIdx.add(i);
|
|
2659
|
+
if (warn) {
|
|
2660
|
+
console.warn(`DUPLICATED mime type '${item.mime}' will be dropped`);
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
if (removeIdx.size === 0) {
|
|
2664
|
+
return items;
|
|
2665
|
+
}
|
|
2666
|
+
return items.filter((_item, index) => !removeIdx.has(index));
|
|
2667
|
+
}
|
|
2668
|
+
constructor(items, idOrMetadata, metadata) {
|
|
2669
|
+
this.items = NotebookCellOutput.ensureUniqueMimeTypes(items, true);
|
|
2670
|
+
if (typeof idOrMetadata === 'string') {
|
|
2671
|
+
this.id = idOrMetadata;
|
|
2672
|
+
this.metadata = metadata;
|
|
2673
|
+
}
|
|
2674
|
+
else {
|
|
2675
|
+
this.id = generateUuid();
|
|
2676
|
+
this.metadata = idOrMetadata ?? metadata;
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
var NotebookCellKind;
|
|
2681
|
+
( (function(NotebookCellKind) {
|
|
2682
|
+
NotebookCellKind[NotebookCellKind["Markup"] = 1] = "Markup";
|
|
2683
|
+
NotebookCellKind[NotebookCellKind["Code"] = 2] = "Code";
|
|
2684
|
+
})(NotebookCellKind || (NotebookCellKind = {})));
|
|
2685
|
+
var ExtensionMode;
|
|
2686
|
+
( (function(ExtensionMode) {
|
|
2687
|
+
ExtensionMode[ExtensionMode["Production"] = 1] = "Production";
|
|
2688
|
+
ExtensionMode[ExtensionMode["Development"] = 2] = "Development";
|
|
2689
|
+
ExtensionMode[ExtensionMode["Test"] = 3] = "Test";
|
|
2690
|
+
})(ExtensionMode || (ExtensionMode = {})));
|
|
2691
|
+
var ExtensionRuntime;
|
|
2692
|
+
( (function(ExtensionRuntime) {
|
|
2693
|
+
ExtensionRuntime[ExtensionRuntime["Node"] = 1] = "Node";
|
|
2694
|
+
ExtensionRuntime[ExtensionRuntime["Webworker"] = 2] = "Webworker";
|
|
2695
|
+
})(ExtensionRuntime || (ExtensionRuntime = {})));
|
|
2696
|
+
var StandardTokenType;
|
|
2697
|
+
( (function(StandardTokenType) {
|
|
2698
|
+
StandardTokenType[StandardTokenType["Other"] = 0] = "Other";
|
|
2699
|
+
StandardTokenType[StandardTokenType["Comment"] = 1] = "Comment";
|
|
2700
|
+
StandardTokenType[StandardTokenType["String"] = 2] = "String";
|
|
2701
|
+
StandardTokenType[StandardTokenType["RegEx"] = 3] = "RegEx";
|
|
2702
|
+
})(StandardTokenType || (StandardTokenType = {})));
|
|
2703
|
+
class LinkedEditingRanges {
|
|
2704
|
+
constructor(ranges, wordPattern) {
|
|
2705
|
+
this.ranges = ranges;
|
|
2706
|
+
this.wordPattern = wordPattern;
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
var TestRunProfileKind;
|
|
2710
|
+
( (function(TestRunProfileKind) {
|
|
2711
|
+
TestRunProfileKind[TestRunProfileKind["Run"] = 1] = "Run";
|
|
2712
|
+
TestRunProfileKind[TestRunProfileKind["Debug"] = 2] = "Debug";
|
|
2713
|
+
TestRunProfileKind[TestRunProfileKind["Coverage"] = 3] = "Coverage";
|
|
2714
|
+
})(TestRunProfileKind || (TestRunProfileKind = {})));
|
|
2715
|
+
let TestRunRequest = class TestRunRequest {
|
|
2716
|
+
constructor(include = undefined, exclude = undefined, profile = undefined, continuous = false) {
|
|
2717
|
+
this.include = include;
|
|
2718
|
+
this.exclude = exclude;
|
|
2719
|
+
this.profile = profile;
|
|
2720
|
+
this.continuous = continuous;
|
|
2721
|
+
}
|
|
2722
|
+
};
|
|
2723
|
+
TestRunRequest = ( __decorate([
|
|
2724
|
+
es5ClassCompat
|
|
2725
|
+
], TestRunRequest));
|
|
2726
|
+
let TestMessage = TestMessage_1 = class TestMessage {
|
|
2727
|
+
static diff(message, expected, actual) {
|
|
2728
|
+
const msg = ( new TestMessage_1(message));
|
|
2729
|
+
msg.expectedOutput = expected;
|
|
2730
|
+
msg.actualOutput = actual;
|
|
2731
|
+
return msg;
|
|
2732
|
+
}
|
|
2733
|
+
constructor(message) {
|
|
2734
|
+
this.message = message;
|
|
2735
|
+
}
|
|
2736
|
+
};
|
|
2737
|
+
TestMessage = TestMessage_1 = ( __decorate([
|
|
2738
|
+
es5ClassCompat
|
|
2739
|
+
], TestMessage));
|
|
2740
|
+
let TestTag = class TestTag {
|
|
2741
|
+
constructor(id) {
|
|
2742
|
+
this.id = id;
|
|
2743
|
+
}
|
|
2744
|
+
};
|
|
2745
|
+
TestTag = ( __decorate([
|
|
2746
|
+
es5ClassCompat
|
|
2747
|
+
], TestTag));
|
|
2748
|
+
class TypeHierarchyItem {
|
|
2749
|
+
constructor(kind, name, detail, uri, range, selectionRange) {
|
|
2750
|
+
this.kind = kind;
|
|
2751
|
+
this.name = name;
|
|
2752
|
+
this.detail = detail;
|
|
2753
|
+
this.uri = uri;
|
|
2754
|
+
this.range = range;
|
|
2755
|
+
this.selectionRange = selectionRange;
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
class TextTabInput {
|
|
2759
|
+
constructor(uri) {
|
|
2760
|
+
this.uri = uri;
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
class TextDiffTabInput {
|
|
2764
|
+
constructor(original, modified) {
|
|
2765
|
+
this.original = original;
|
|
2766
|
+
this.modified = modified;
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
class TextMergeTabInput {
|
|
2770
|
+
constructor(base, input1, input2, result) {
|
|
2771
|
+
this.base = base;
|
|
2772
|
+
this.input1 = input1;
|
|
2773
|
+
this.input2 = input2;
|
|
2774
|
+
this.result = result;
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
class CustomEditorTabInput {
|
|
2778
|
+
constructor(uri, viewType) {
|
|
2779
|
+
this.uri = uri;
|
|
2780
|
+
this.viewType = viewType;
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
class WebviewEditorTabInput {
|
|
2784
|
+
constructor(viewType) {
|
|
2785
|
+
this.viewType = viewType;
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
class NotebookEditorTabInput {
|
|
2789
|
+
constructor(uri, notebookType) {
|
|
2790
|
+
this.uri = uri;
|
|
2791
|
+
this.notebookType = notebookType;
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
class NotebookDiffEditorTabInput {
|
|
2795
|
+
constructor(original, modified, notebookType) {
|
|
2796
|
+
this.original = original;
|
|
2797
|
+
this.modified = modified;
|
|
2798
|
+
this.notebookType = notebookType;
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
class TerminalEditorTabInput {
|
|
2802
|
+
constructor() { }
|
|
2803
|
+
}
|
|
2804
|
+
class InteractiveWindowInput {
|
|
2805
|
+
constructor(uri, inputBoxUri) {
|
|
2806
|
+
this.uri = uri;
|
|
2807
|
+
this.inputBoxUri = inputBoxUri;
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
export { Breakpoint, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, CodeAction, CodeActionKind, CodeActionTriggerKind, CodeLens, Color, ColorInformation, ColorPresentation, CommentMode, CommentThreadCollapsibleState, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionList, CompletionTriggerKind, ConfigurationTarget, CustomEditorTabInput, CustomExecution, DataBreakpoint, DataTransfer, DataTransferItem, DebugAdapterExecutable, DebugAdapterInlineImplementation, DebugAdapterNamedPipeServer, DebugAdapterServer, DebugConsoleMode, DecorationRangeBehavior, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, Disposable, DocumentDropEdit, DocumentHighlight, DocumentHighlightKind, DocumentLink, DocumentSymbol, EndOfLine, EnvironmentVariableMutatorType, EvaluatableExpression, ExtensionKind, ExtensionMode, ExtensionRuntime, FileChangeType, FileDecoration, FileSystemError, FoldingRange, FoldingRangeKind, FunctionBreakpoint, Hover, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionTriggerKind, InlineSuggestion, InlineSuggestionList, InlineValueContext, InlineValueEvaluatableExpression, InlineValueText, InlineValueVariableLookup, InputBoxValidationSeverity, InteractiveWindowInput, LanguageStatusSeverity, LinkedEditingRanges, Location, MarkdownString, NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookDiffEditorTabInput, NotebookEdit, NotebookEditorTabInput, NotebookRange, ParameterInformation, Position, ProcessExecution, ProgressLocation, QuickInputButtons, QuickPickItemKind, Range, RelativePattern, RemoteAuthorityResolverError, Selection, SelectionRange, SemanticTokens, SemanticTokensBuilder, SemanticTokensEdit, SemanticTokensEdits, SemanticTokensLegend, ShellExecution, ShellQuoting, SignatureHelp, SignatureHelpTriggerKind, SignatureInformation, SnippetString, SnippetTextEdit, SourceBreakpoint, StandardTokenType, SymbolInformation, SymbolKind, SymbolTag, Task, TaskGroup, TaskScope, TerminalEditorTabInput, TestMessage, TestRunProfileKind, TestRunRequest, TestTag, TextDiffTabInput, TextDocumentChangeReason, TextDocumentSaveReason, TextEdit, TextEditorLineNumbersStyle, TextEditorRevealType, TextEditorSelectionChangeKind, TextMergeTabInput, TextTabInput, ThemeColor, ThemeIcon, TreeItem, TreeItemCheckboxState, TreeItemCollapsibleState, TypeHierarchyItem, ViewColumn, WebviewEditorTabInput, WorkspaceEdit, setBreakpointId };
|