@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,1134 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import * as aria from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
3
|
+
import { distinct } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
4
|
+
import { RunOnceScheduler, Queue } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
5
|
+
import { CancellationTokenSource } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
6
|
+
import { canceled } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
7
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
8
|
+
import { normalizeDriveLetter } from 'monaco-editor/esm/vs/base/common/labels.js';
|
|
9
|
+
import { MutableDisposable, dispose, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
10
|
+
import { mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
11
|
+
import * as platform from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
12
|
+
import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
13
|
+
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
14
|
+
import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
|
|
15
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
16
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
17
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
18
|
+
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
19
|
+
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
20
|
+
import { IProductService } from '../../../../platform/product/common/productService.js';
|
|
21
|
+
import { ITelemetryService, ICustomEndpointTelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
22
|
+
import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uriIdentity.js';
|
|
23
|
+
import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
24
|
+
import { RawDebugSession } from './rawDebugSession.js';
|
|
25
|
+
import { IDebugService, VIEWLET_ID } from '../common/debug.js';
|
|
26
|
+
import { MemoryRegion, ExpressionContainer, Thread } from '../common/debugModel.js';
|
|
27
|
+
import { Source } from '../common/debugSource.js';
|
|
28
|
+
import { filterExceptionsFromTelemetry } from '../common/debugUtils.js';
|
|
29
|
+
import { ReplModel } from '../common/replModel.js';
|
|
30
|
+
import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js';
|
|
31
|
+
import { IHostService } from '../../../services/host/browser/host.js';
|
|
32
|
+
import { ILifecycleService } from '../../../services/lifecycle/common/lifecycle.js';
|
|
33
|
+
import { IPaneCompositePartService } from '../../../services/panecomposite/browser/panecomposite.js';
|
|
34
|
+
let DebugSession = class DebugSession {
|
|
35
|
+
constructor(id, _configuration, root, model, options, debugService, telemetryService, hostService, configurationService, paneCompositeService, workspaceContextService, productService, notificationService, lifecycleService, uriIdentityService, instantiationService, customEndpointTelemetryService, workbenchEnvironmentService, logService) {
|
|
36
|
+
this.id = id;
|
|
37
|
+
this._configuration = _configuration;
|
|
38
|
+
this.root = root;
|
|
39
|
+
this.model = model;
|
|
40
|
+
this.debugService = debugService;
|
|
41
|
+
this.telemetryService = telemetryService;
|
|
42
|
+
this.hostService = hostService;
|
|
43
|
+
this.configurationService = configurationService;
|
|
44
|
+
this.paneCompositeService = paneCompositeService;
|
|
45
|
+
this.workspaceContextService = workspaceContextService;
|
|
46
|
+
this.productService = productService;
|
|
47
|
+
this.notificationService = notificationService;
|
|
48
|
+
this.uriIdentityService = uriIdentityService;
|
|
49
|
+
this.instantiationService = instantiationService;
|
|
50
|
+
this.customEndpointTelemetryService = customEndpointTelemetryService;
|
|
51
|
+
this.workbenchEnvironmentService = workbenchEnvironmentService;
|
|
52
|
+
this.logService = logService;
|
|
53
|
+
this.initialized = false;
|
|
54
|
+
this.sources = ( new Map());
|
|
55
|
+
this.threads = ( new Map());
|
|
56
|
+
this.threadIds = [];
|
|
57
|
+
this.cancellationMap = ( new Map());
|
|
58
|
+
this.rawListeners = [];
|
|
59
|
+
this.stoppedDetails = [];
|
|
60
|
+
this._onDidChangeState = ( new Emitter());
|
|
61
|
+
this._onDidEndAdapter = ( new Emitter());
|
|
62
|
+
this._onDidLoadedSource = ( new Emitter());
|
|
63
|
+
this._onDidCustomEvent = ( new Emitter());
|
|
64
|
+
this._onDidProgressStart = ( new Emitter());
|
|
65
|
+
this._onDidProgressUpdate = ( new Emitter());
|
|
66
|
+
this._onDidProgressEnd = ( new Emitter());
|
|
67
|
+
this._onDidInvalidMemory = ( new Emitter());
|
|
68
|
+
this._onDidChangeREPLElements = ( new Emitter());
|
|
69
|
+
this._onDidChangeName = ( new Emitter());
|
|
70
|
+
this._options = options || {};
|
|
71
|
+
this.parentSession = this._options.parentSession;
|
|
72
|
+
if (this.hasSeparateRepl()) {
|
|
73
|
+
this.repl = ( new ReplModel(this.configurationService));
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
this.repl = this.parentSession.repl;
|
|
77
|
+
}
|
|
78
|
+
const toDispose = ( new DisposableStore());
|
|
79
|
+
const replListener = toDispose.add(( new MutableDisposable()));
|
|
80
|
+
replListener.value = this.repl.onDidChangeElements(() => this._onDidChangeREPLElements.fire());
|
|
81
|
+
if (lifecycleService) {
|
|
82
|
+
toDispose.add(lifecycleService.onWillShutdown(() => {
|
|
83
|
+
this.shutdown();
|
|
84
|
+
dispose(toDispose);
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
const compoundRoot = this._options.compoundRoot;
|
|
88
|
+
if (compoundRoot) {
|
|
89
|
+
toDispose.add(compoundRoot.onDidSessionStop(() => this.terminate()));
|
|
90
|
+
}
|
|
91
|
+
this.passFocusScheduler = ( new RunOnceScheduler(() => {
|
|
92
|
+
if (( this.debugService.getModel().getSessions().some(s => s.state === 2 )) || ( this.getAllThreads().some(t => t.stopped))) {
|
|
93
|
+
if (typeof this.lastContinuedThreadId === 'number') {
|
|
94
|
+
const thread = this.debugService.getViewModel().focusedThread;
|
|
95
|
+
if (thread && thread.threadId === this.lastContinuedThreadId && !thread.stopped) {
|
|
96
|
+
const toFocusThreadId = this.getStoppedDetails()?.threadId;
|
|
97
|
+
const toFocusThread = typeof toFocusThreadId === 'number' ? this.getThread(toFocusThreadId) : undefined;
|
|
98
|
+
this.debugService.focusStackFrame(undefined, toFocusThread);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
const session = this.debugService.getViewModel().focusedSession;
|
|
103
|
+
if (session && session.getId() === this.getId() && session.state !== 2 ) {
|
|
104
|
+
this.debugService.focusStackFrame(undefined);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}, 800));
|
|
109
|
+
const parent = this._options.parentSession;
|
|
110
|
+
if (parent) {
|
|
111
|
+
toDispose.add(parent.onDidEndAdapter(() => {
|
|
112
|
+
if (!this.hasSeparateRepl() && this.raw?.isInShutdown === false) {
|
|
113
|
+
this.repl = this.repl.clone();
|
|
114
|
+
replListener.value = this.repl.onDidChangeElements(() => this._onDidChangeREPLElements.fire());
|
|
115
|
+
this.parentSession = undefined;
|
|
116
|
+
}
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
getId() {
|
|
121
|
+
return this.id;
|
|
122
|
+
}
|
|
123
|
+
setSubId(subId) {
|
|
124
|
+
this._subId = subId;
|
|
125
|
+
}
|
|
126
|
+
getMemory(memoryReference) {
|
|
127
|
+
return ( new MemoryRegion(memoryReference, this));
|
|
128
|
+
}
|
|
129
|
+
get subId() {
|
|
130
|
+
return this._subId;
|
|
131
|
+
}
|
|
132
|
+
get configuration() {
|
|
133
|
+
return this._configuration.resolved;
|
|
134
|
+
}
|
|
135
|
+
get unresolvedConfiguration() {
|
|
136
|
+
return this._configuration.unresolved;
|
|
137
|
+
}
|
|
138
|
+
get lifecycleManagedByParent() {
|
|
139
|
+
return !!this._options.lifecycleManagedByParent;
|
|
140
|
+
}
|
|
141
|
+
get compact() {
|
|
142
|
+
return !!this._options.compact;
|
|
143
|
+
}
|
|
144
|
+
get saveBeforeRestart() {
|
|
145
|
+
return this._options.saveBeforeRestart ?? !this._options?.parentSession;
|
|
146
|
+
}
|
|
147
|
+
get compoundRoot() {
|
|
148
|
+
return this._options.compoundRoot;
|
|
149
|
+
}
|
|
150
|
+
get suppressDebugStatusbar() {
|
|
151
|
+
return this._options.suppressDebugStatusbar ?? false;
|
|
152
|
+
}
|
|
153
|
+
get suppressDebugToolbar() {
|
|
154
|
+
return this._options.suppressDebugToolbar ?? false;
|
|
155
|
+
}
|
|
156
|
+
get suppressDebugView() {
|
|
157
|
+
return this._options.suppressDebugView ?? false;
|
|
158
|
+
}
|
|
159
|
+
get autoExpandLazyVariables() {
|
|
160
|
+
return this.configurationService.getValue('debug').autoExpandLazyVariables;
|
|
161
|
+
}
|
|
162
|
+
setConfiguration(configuration) {
|
|
163
|
+
this._configuration = configuration;
|
|
164
|
+
}
|
|
165
|
+
getLabel() {
|
|
166
|
+
const includeRoot = this.workspaceContextService.getWorkspace().folders.length > 1;
|
|
167
|
+
return includeRoot && this.root ? `${this.name} (${resources.basenameOrAuthority(this.root.uri)})` : this.name;
|
|
168
|
+
}
|
|
169
|
+
setName(name) {
|
|
170
|
+
this._name = name;
|
|
171
|
+
this._onDidChangeName.fire(name);
|
|
172
|
+
}
|
|
173
|
+
get name() {
|
|
174
|
+
return this._name || this.configuration.name;
|
|
175
|
+
}
|
|
176
|
+
get state() {
|
|
177
|
+
if (!this.initialized) {
|
|
178
|
+
return 1 ;
|
|
179
|
+
}
|
|
180
|
+
if (!this.raw) {
|
|
181
|
+
return 0 ;
|
|
182
|
+
}
|
|
183
|
+
const focusedThread = this.debugService.getViewModel().focusedThread;
|
|
184
|
+
if (focusedThread && focusedThread.session === this) {
|
|
185
|
+
return focusedThread.stopped ? 2 : 3 ;
|
|
186
|
+
}
|
|
187
|
+
if (( this.getAllThreads().some(t => t.stopped))) {
|
|
188
|
+
return 2 ;
|
|
189
|
+
}
|
|
190
|
+
return 3 ;
|
|
191
|
+
}
|
|
192
|
+
get capabilities() {
|
|
193
|
+
return this.raw ? this.raw.capabilities : Object.create(null);
|
|
194
|
+
}
|
|
195
|
+
get onDidChangeState() {
|
|
196
|
+
return this._onDidChangeState.event;
|
|
197
|
+
}
|
|
198
|
+
get onDidEndAdapter() {
|
|
199
|
+
return this._onDidEndAdapter.event;
|
|
200
|
+
}
|
|
201
|
+
get onDidChangeReplElements() {
|
|
202
|
+
return this._onDidChangeREPLElements.event;
|
|
203
|
+
}
|
|
204
|
+
get onDidChangeName() {
|
|
205
|
+
return this._onDidChangeName.event;
|
|
206
|
+
}
|
|
207
|
+
get onDidCustomEvent() {
|
|
208
|
+
return this._onDidCustomEvent.event;
|
|
209
|
+
}
|
|
210
|
+
get onDidLoadedSource() {
|
|
211
|
+
return this._onDidLoadedSource.event;
|
|
212
|
+
}
|
|
213
|
+
get onDidProgressStart() {
|
|
214
|
+
return this._onDidProgressStart.event;
|
|
215
|
+
}
|
|
216
|
+
get onDidProgressUpdate() {
|
|
217
|
+
return this._onDidProgressUpdate.event;
|
|
218
|
+
}
|
|
219
|
+
get onDidProgressEnd() {
|
|
220
|
+
return this._onDidProgressEnd.event;
|
|
221
|
+
}
|
|
222
|
+
get onDidInvalidateMemory() {
|
|
223
|
+
return this._onDidInvalidMemory.event;
|
|
224
|
+
}
|
|
225
|
+
async initialize(dbgr) {
|
|
226
|
+
if (this.raw) {
|
|
227
|
+
await this.shutdown();
|
|
228
|
+
}
|
|
229
|
+
try {
|
|
230
|
+
const debugAdapter = await dbgr.createDebugAdapter(this);
|
|
231
|
+
this.raw = this.instantiationService.createInstance(RawDebugSession, debugAdapter, dbgr, this.id, this.configuration.name);
|
|
232
|
+
await this.raw.start();
|
|
233
|
+
this.registerListeners();
|
|
234
|
+
await this.raw.initialize({
|
|
235
|
+
clientID: 'vscode',
|
|
236
|
+
clientName: this.productService.nameLong,
|
|
237
|
+
adapterID: this.configuration.type,
|
|
238
|
+
pathFormat: 'path',
|
|
239
|
+
linesStartAt1: true,
|
|
240
|
+
columnsStartAt1: true,
|
|
241
|
+
supportsVariableType: true,
|
|
242
|
+
supportsVariablePaging: true,
|
|
243
|
+
supportsRunInTerminalRequest: true,
|
|
244
|
+
locale: platform.language,
|
|
245
|
+
supportsProgressReporting: true,
|
|
246
|
+
supportsInvalidatedEvent: true,
|
|
247
|
+
supportsMemoryReferences: true,
|
|
248
|
+
supportsArgsCanBeInterpretedByShell: true,
|
|
249
|
+
supportsMemoryEvent: true,
|
|
250
|
+
supportsStartDebuggingRequest: true
|
|
251
|
+
});
|
|
252
|
+
this.initialized = true;
|
|
253
|
+
this._onDidChangeState.fire();
|
|
254
|
+
this.debugService.setExceptionBreakpointsForSession(this, (this.raw && this.raw.capabilities.exceptionBreakpointFilters) || []);
|
|
255
|
+
}
|
|
256
|
+
catch (err) {
|
|
257
|
+
this.initialized = true;
|
|
258
|
+
this._onDidChangeState.fire();
|
|
259
|
+
await this.shutdown();
|
|
260
|
+
throw err;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
async launchOrAttach(config) {
|
|
264
|
+
if (!this.raw) {
|
|
265
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'launch or attach'));
|
|
266
|
+
}
|
|
267
|
+
if (this.parentSession && this.parentSession.state === 0 ) {
|
|
268
|
+
throw canceled();
|
|
269
|
+
}
|
|
270
|
+
config.__sessionId = this.getId();
|
|
271
|
+
try {
|
|
272
|
+
await this.raw.launchOrAttach(config);
|
|
273
|
+
}
|
|
274
|
+
catch (err) {
|
|
275
|
+
this.shutdown();
|
|
276
|
+
throw err;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
async terminate(restart = false) {
|
|
280
|
+
if (!this.raw) {
|
|
281
|
+
this.onDidExitAdapter();
|
|
282
|
+
}
|
|
283
|
+
this.cancelAllRequests();
|
|
284
|
+
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
285
|
+
await this.parentSession.terminate(restart);
|
|
286
|
+
}
|
|
287
|
+
else if (this.raw) {
|
|
288
|
+
if (this.raw.capabilities.supportsTerminateRequest && this._configuration.resolved.request === 'launch') {
|
|
289
|
+
await this.raw.terminate(restart);
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
await this.raw.disconnect({ restart, terminateDebuggee: true });
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
if (!restart) {
|
|
296
|
+
this._options.compoundRoot?.sessionStopped();
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
async disconnect(restart = false, suspend = false) {
|
|
300
|
+
if (!this.raw) {
|
|
301
|
+
this.onDidExitAdapter();
|
|
302
|
+
}
|
|
303
|
+
this.cancelAllRequests();
|
|
304
|
+
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
305
|
+
await this.parentSession.disconnect(restart, suspend);
|
|
306
|
+
}
|
|
307
|
+
else if (this.raw) {
|
|
308
|
+
await this.raw.disconnect({ restart, terminateDebuggee: false, suspendDebuggee: suspend });
|
|
309
|
+
}
|
|
310
|
+
if (!restart) {
|
|
311
|
+
this._options.compoundRoot?.sessionStopped();
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
async restart() {
|
|
315
|
+
if (!this.raw) {
|
|
316
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'restart'));
|
|
317
|
+
}
|
|
318
|
+
this.cancelAllRequests();
|
|
319
|
+
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
320
|
+
await this.parentSession.restart();
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
await this.raw.restart({ arguments: this.configuration });
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
327
|
+
if (!this.raw) {
|
|
328
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'breakpoints'));
|
|
329
|
+
}
|
|
330
|
+
if (!this.raw.readyForBreakpoints) {
|
|
331
|
+
return Promise.resolve(undefined);
|
|
332
|
+
}
|
|
333
|
+
const rawSource = this.getRawSource(modelUri);
|
|
334
|
+
if (breakpointsToSend.length && !rawSource.adapterData) {
|
|
335
|
+
rawSource.adapterData = breakpointsToSend[0].adapterData;
|
|
336
|
+
}
|
|
337
|
+
if (rawSource.path) {
|
|
338
|
+
rawSource.path = normalizeDriveLetter(rawSource.path);
|
|
339
|
+
}
|
|
340
|
+
const response = await this.raw.setBreakpoints({
|
|
341
|
+
source: rawSource,
|
|
342
|
+
lines: ( breakpointsToSend.map(bp => bp.sessionAgnosticData.lineNumber)),
|
|
343
|
+
breakpoints: ( breakpointsToSend.map(
|
|
344
|
+
bp => ({ line: bp.sessionAgnosticData.lineNumber, column: bp.sessionAgnosticData.column, condition: bp.condition, hitCondition: bp.hitCondition, logMessage: bp.logMessage })
|
|
345
|
+
)),
|
|
346
|
+
sourceModified
|
|
347
|
+
});
|
|
348
|
+
if (response && response.body) {
|
|
349
|
+
const data = ( new Map());
|
|
350
|
+
for (let i = 0; i < breakpointsToSend.length; i++) {
|
|
351
|
+
data.set(breakpointsToSend[i].getId(), response.body.breakpoints[i]);
|
|
352
|
+
}
|
|
353
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
async sendFunctionBreakpoints(fbpts) {
|
|
357
|
+
if (!this.raw) {
|
|
358
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'function breakpoints'));
|
|
359
|
+
}
|
|
360
|
+
if (this.raw.readyForBreakpoints) {
|
|
361
|
+
const response = await this.raw.setFunctionBreakpoints({ breakpoints: fbpts });
|
|
362
|
+
if (response && response.body) {
|
|
363
|
+
const data = ( new Map());
|
|
364
|
+
for (let i = 0; i < fbpts.length; i++) {
|
|
365
|
+
data.set(fbpts[i].getId(), response.body.breakpoints[i]);
|
|
366
|
+
}
|
|
367
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
async sendExceptionBreakpoints(exbpts) {
|
|
372
|
+
if (!this.raw) {
|
|
373
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'exception breakpoints'));
|
|
374
|
+
}
|
|
375
|
+
if (this.raw.readyForBreakpoints) {
|
|
376
|
+
const args = this.capabilities.supportsExceptionFilterOptions ? {
|
|
377
|
+
filters: [],
|
|
378
|
+
filterOptions: ( exbpts.map(exb => {
|
|
379
|
+
if (exb.condition) {
|
|
380
|
+
return { filterId: exb.filter, condition: exb.condition };
|
|
381
|
+
}
|
|
382
|
+
return { filterId: exb.filter };
|
|
383
|
+
}))
|
|
384
|
+
} : { filters: ( exbpts.map(exb => exb.filter)) };
|
|
385
|
+
const response = await this.raw.setExceptionBreakpoints(args);
|
|
386
|
+
if (response && response.body && response.body.breakpoints) {
|
|
387
|
+
const data = ( new Map());
|
|
388
|
+
for (let i = 0; i < exbpts.length; i++) {
|
|
389
|
+
data.set(exbpts[i].getId(), response.body.breakpoints[i]);
|
|
390
|
+
}
|
|
391
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
async dataBreakpointInfo(name, variablesReference) {
|
|
396
|
+
if (!this.raw) {
|
|
397
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'data breakpoints info'));
|
|
398
|
+
}
|
|
399
|
+
if (!this.raw.readyForBreakpoints) {
|
|
400
|
+
throw new Error(localize('sessionNotReadyForBreakpoints', "Session is not ready for breakpoints"));
|
|
401
|
+
}
|
|
402
|
+
const response = await this.raw.dataBreakpointInfo({ name, variablesReference });
|
|
403
|
+
return response?.body;
|
|
404
|
+
}
|
|
405
|
+
async sendDataBreakpoints(dataBreakpoints) {
|
|
406
|
+
if (!this.raw) {
|
|
407
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'data breakpoints'));
|
|
408
|
+
}
|
|
409
|
+
if (this.raw.readyForBreakpoints) {
|
|
410
|
+
const response = await this.raw.setDataBreakpoints({ breakpoints: dataBreakpoints });
|
|
411
|
+
if (response && response.body) {
|
|
412
|
+
const data = ( new Map());
|
|
413
|
+
for (let i = 0; i < dataBreakpoints.length; i++) {
|
|
414
|
+
data.set(dataBreakpoints[i].getId(), response.body.breakpoints[i]);
|
|
415
|
+
}
|
|
416
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
421
|
+
if (!this.raw) {
|
|
422
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'instruction breakpoints'));
|
|
423
|
+
}
|
|
424
|
+
if (this.raw.readyForBreakpoints) {
|
|
425
|
+
const response = await this.raw.setInstructionBreakpoints({ breakpoints: instructionBreakpoints });
|
|
426
|
+
if (response && response.body) {
|
|
427
|
+
const data = ( new Map());
|
|
428
|
+
for (let i = 0; i < instructionBreakpoints.length; i++) {
|
|
429
|
+
data.set(instructionBreakpoints[i].getId(), response.body.breakpoints[i]);
|
|
430
|
+
}
|
|
431
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
async breakpointsLocations(uri, lineNumber) {
|
|
436
|
+
if (!this.raw) {
|
|
437
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'breakpoints locations'));
|
|
438
|
+
}
|
|
439
|
+
const source = this.getRawSource(uri);
|
|
440
|
+
const response = await this.raw.breakpointLocations({ source, line: lineNumber });
|
|
441
|
+
if (!response || !response.body || !response.body.breakpoints) {
|
|
442
|
+
return [];
|
|
443
|
+
}
|
|
444
|
+
const positions = ( response.body.breakpoints.map(bp => ({ lineNumber: bp.line, column: bp.column || 1 })));
|
|
445
|
+
return distinct(positions, p => `${p.lineNumber}:${p.column}`);
|
|
446
|
+
}
|
|
447
|
+
getDebugProtocolBreakpoint(breakpointId) {
|
|
448
|
+
return this.model.getDebugProtocolBreakpoint(breakpointId, this.getId());
|
|
449
|
+
}
|
|
450
|
+
customRequest(request, args) {
|
|
451
|
+
if (!this.raw) {
|
|
452
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", request));
|
|
453
|
+
}
|
|
454
|
+
return this.raw.custom(request, args);
|
|
455
|
+
}
|
|
456
|
+
stackTrace(threadId, startFrame, levels, token) {
|
|
457
|
+
if (!this.raw) {
|
|
458
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stackTrace'));
|
|
459
|
+
}
|
|
460
|
+
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
461
|
+
return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
|
|
462
|
+
}
|
|
463
|
+
async exceptionInfo(threadId) {
|
|
464
|
+
if (!this.raw) {
|
|
465
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'exceptionInfo'));
|
|
466
|
+
}
|
|
467
|
+
const response = await this.raw.exceptionInfo({ threadId });
|
|
468
|
+
if (response) {
|
|
469
|
+
return {
|
|
470
|
+
id: response.body.exceptionId,
|
|
471
|
+
description: response.body.description,
|
|
472
|
+
breakMode: response.body.breakMode,
|
|
473
|
+
details: response.body.details
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
return undefined;
|
|
477
|
+
}
|
|
478
|
+
scopes(frameId, threadId) {
|
|
479
|
+
if (!this.raw) {
|
|
480
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'scopes'));
|
|
481
|
+
}
|
|
482
|
+
const token = this.getNewCancellationToken(threadId);
|
|
483
|
+
return this.raw.scopes({ frameId }, token);
|
|
484
|
+
}
|
|
485
|
+
variables(variablesReference, threadId, filter, start, count) {
|
|
486
|
+
if (!this.raw) {
|
|
487
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'variables'));
|
|
488
|
+
}
|
|
489
|
+
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
490
|
+
return this.raw.variables({ variablesReference, filter, start, count }, token);
|
|
491
|
+
}
|
|
492
|
+
evaluate(expression, frameId, context) {
|
|
493
|
+
if (!this.raw) {
|
|
494
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'evaluate'));
|
|
495
|
+
}
|
|
496
|
+
return this.raw.evaluate({ expression, frameId, context });
|
|
497
|
+
}
|
|
498
|
+
async restartFrame(frameId, threadId) {
|
|
499
|
+
if (!this.raw) {
|
|
500
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'restartFrame'));
|
|
501
|
+
}
|
|
502
|
+
await this.raw.restartFrame({ frameId }, threadId);
|
|
503
|
+
}
|
|
504
|
+
setLastSteppingGranularity(threadId, granularity) {
|
|
505
|
+
const thread = this.getThread(threadId);
|
|
506
|
+
if (thread) {
|
|
507
|
+
thread.lastSteppingGranularity = granularity;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
async next(threadId, granularity) {
|
|
511
|
+
if (!this.raw) {
|
|
512
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'next'));
|
|
513
|
+
}
|
|
514
|
+
this.setLastSteppingGranularity(threadId, granularity);
|
|
515
|
+
await this.raw.next({ threadId, granularity });
|
|
516
|
+
}
|
|
517
|
+
async stepIn(threadId, targetId, granularity) {
|
|
518
|
+
if (!this.raw) {
|
|
519
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stepIn'));
|
|
520
|
+
}
|
|
521
|
+
this.setLastSteppingGranularity(threadId, granularity);
|
|
522
|
+
await this.raw.stepIn({ threadId, targetId, granularity });
|
|
523
|
+
}
|
|
524
|
+
async stepOut(threadId, granularity) {
|
|
525
|
+
if (!this.raw) {
|
|
526
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stepOut'));
|
|
527
|
+
}
|
|
528
|
+
this.setLastSteppingGranularity(threadId, granularity);
|
|
529
|
+
await this.raw.stepOut({ threadId, granularity });
|
|
530
|
+
}
|
|
531
|
+
async stepBack(threadId, granularity) {
|
|
532
|
+
if (!this.raw) {
|
|
533
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stepBack'));
|
|
534
|
+
}
|
|
535
|
+
this.setLastSteppingGranularity(threadId, granularity);
|
|
536
|
+
await this.raw.stepBack({ threadId, granularity });
|
|
537
|
+
}
|
|
538
|
+
async continue(threadId) {
|
|
539
|
+
if (!this.raw) {
|
|
540
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'continue'));
|
|
541
|
+
}
|
|
542
|
+
await this.raw.continue({ threadId });
|
|
543
|
+
}
|
|
544
|
+
async reverseContinue(threadId) {
|
|
545
|
+
if (!this.raw) {
|
|
546
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'reverse continue'));
|
|
547
|
+
}
|
|
548
|
+
await this.raw.reverseContinue({ threadId });
|
|
549
|
+
}
|
|
550
|
+
async pause(threadId) {
|
|
551
|
+
if (!this.raw) {
|
|
552
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'pause'));
|
|
553
|
+
}
|
|
554
|
+
await this.raw.pause({ threadId });
|
|
555
|
+
}
|
|
556
|
+
async terminateThreads(threadIds) {
|
|
557
|
+
if (!this.raw) {
|
|
558
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'terminateThreads'));
|
|
559
|
+
}
|
|
560
|
+
await this.raw.terminateThreads({ threadIds });
|
|
561
|
+
}
|
|
562
|
+
setVariable(variablesReference, name, value) {
|
|
563
|
+
if (!this.raw) {
|
|
564
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'setVariable'));
|
|
565
|
+
}
|
|
566
|
+
return this.raw.setVariable({ variablesReference, name, value });
|
|
567
|
+
}
|
|
568
|
+
setExpression(frameId, expression, value) {
|
|
569
|
+
if (!this.raw) {
|
|
570
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'setExpression'));
|
|
571
|
+
}
|
|
572
|
+
return this.raw.setExpression({ expression, value, frameId });
|
|
573
|
+
}
|
|
574
|
+
gotoTargets(source, line, column) {
|
|
575
|
+
if (!this.raw) {
|
|
576
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'gotoTargets'));
|
|
577
|
+
}
|
|
578
|
+
return this.raw.gotoTargets({ source, line, column });
|
|
579
|
+
}
|
|
580
|
+
goto(threadId, targetId) {
|
|
581
|
+
if (!this.raw) {
|
|
582
|
+
throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'goto'));
|
|
583
|
+
}
|
|
584
|
+
return this.raw.goto({ threadId, targetId });
|
|
585
|
+
}
|
|
586
|
+
loadSource(resource) {
|
|
587
|
+
if (!this.raw) {
|
|
588
|
+
return Promise.reject(( new Error(( localize(
|
|
589
|
+
'noDebugAdapter',
|
|
590
|
+
"No debugger available, can not send '{0}'",
|
|
591
|
+
'loadSource'
|
|
592
|
+
)))));
|
|
593
|
+
}
|
|
594
|
+
const source = this.getSourceForUri(resource);
|
|
595
|
+
let rawSource;
|
|
596
|
+
if (source) {
|
|
597
|
+
rawSource = source.raw;
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
const data = Source.getEncodedDebugData(resource);
|
|
601
|
+
rawSource = { path: data.path, sourceReference: data.sourceReference };
|
|
602
|
+
}
|
|
603
|
+
return this.raw.source({ sourceReference: rawSource.sourceReference || 0, source: rawSource });
|
|
604
|
+
}
|
|
605
|
+
async getLoadedSources() {
|
|
606
|
+
if (!this.raw) {
|
|
607
|
+
return Promise.reject(( new Error(( localize(
|
|
608
|
+
'noDebugAdapter',
|
|
609
|
+
"No debugger available, can not send '{0}'",
|
|
610
|
+
'getLoadedSources'
|
|
611
|
+
)))));
|
|
612
|
+
}
|
|
613
|
+
const response = await this.raw.loadedSources({});
|
|
614
|
+
if (response && response.body && response.body.sources) {
|
|
615
|
+
return ( response.body.sources.map(src => this.getSource(src)));
|
|
616
|
+
}
|
|
617
|
+
else {
|
|
618
|
+
return [];
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
async completions(frameId, threadId, text, position, overwriteBefore, token) {
|
|
622
|
+
if (!this.raw) {
|
|
623
|
+
return Promise.reject(( new Error(( localize(
|
|
624
|
+
'noDebugAdapter',
|
|
625
|
+
"No debugger available, can not send '{0}'",
|
|
626
|
+
'completions'
|
|
627
|
+
)))));
|
|
628
|
+
}
|
|
629
|
+
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
630
|
+
return this.raw.completions({
|
|
631
|
+
frameId,
|
|
632
|
+
text,
|
|
633
|
+
column: position.column,
|
|
634
|
+
line: position.lineNumber,
|
|
635
|
+
}, sessionCancelationToken);
|
|
636
|
+
}
|
|
637
|
+
async stepInTargets(frameId) {
|
|
638
|
+
if (!this.raw) {
|
|
639
|
+
return Promise.reject(( new Error(( localize(
|
|
640
|
+
'noDebugAdapter',
|
|
641
|
+
"No debugger available, can not send '{0}'",
|
|
642
|
+
'stepInTargets'
|
|
643
|
+
)))));
|
|
644
|
+
}
|
|
645
|
+
const response = await this.raw.stepInTargets({ frameId });
|
|
646
|
+
return response?.body.targets;
|
|
647
|
+
}
|
|
648
|
+
async cancel(progressId) {
|
|
649
|
+
if (!this.raw) {
|
|
650
|
+
return Promise.reject(( new Error(( localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'cancel')))));
|
|
651
|
+
}
|
|
652
|
+
return this.raw.cancel({ progressId });
|
|
653
|
+
}
|
|
654
|
+
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
655
|
+
if (!this.raw) {
|
|
656
|
+
return Promise.reject(( new Error(( localize(
|
|
657
|
+
'noDebugAdapter',
|
|
658
|
+
"No debugger available, can not send '{0}'",
|
|
659
|
+
'disassemble'
|
|
660
|
+
)))));
|
|
661
|
+
}
|
|
662
|
+
const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
|
|
663
|
+
return response?.body?.instructions;
|
|
664
|
+
}
|
|
665
|
+
readMemory(memoryReference, offset, count) {
|
|
666
|
+
if (!this.raw) {
|
|
667
|
+
return Promise.reject(( new Error(( localize(
|
|
668
|
+
'noDebugAdapter',
|
|
669
|
+
"No debugger available, can not send '{0}'",
|
|
670
|
+
'readMemory'
|
|
671
|
+
)))));
|
|
672
|
+
}
|
|
673
|
+
return this.raw.readMemory({ count, memoryReference, offset });
|
|
674
|
+
}
|
|
675
|
+
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
676
|
+
if (!this.raw) {
|
|
677
|
+
return Promise.reject(( new Error(( localize(
|
|
678
|
+
'noDebugAdapter',
|
|
679
|
+
"No debugger available, can not send '{0}'",
|
|
680
|
+
'disassemble'
|
|
681
|
+
)))));
|
|
682
|
+
}
|
|
683
|
+
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
684
|
+
}
|
|
685
|
+
getThread(threadId) {
|
|
686
|
+
return this.threads.get(threadId);
|
|
687
|
+
}
|
|
688
|
+
getAllThreads() {
|
|
689
|
+
const result = [];
|
|
690
|
+
this.threadIds.forEach((threadId) => {
|
|
691
|
+
const thread = this.threads.get(threadId);
|
|
692
|
+
if (thread) {
|
|
693
|
+
result.push(thread);
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
return result;
|
|
697
|
+
}
|
|
698
|
+
clearThreads(removeThreads, reference = undefined) {
|
|
699
|
+
if (reference !== undefined && reference !== null) {
|
|
700
|
+
const thread = this.threads.get(reference);
|
|
701
|
+
if (thread) {
|
|
702
|
+
thread.clearCallStack();
|
|
703
|
+
thread.stoppedDetails = undefined;
|
|
704
|
+
thread.stopped = false;
|
|
705
|
+
if (removeThreads) {
|
|
706
|
+
this.threads.delete(reference);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
else {
|
|
711
|
+
this.threads.forEach(thread => {
|
|
712
|
+
thread.clearCallStack();
|
|
713
|
+
thread.stoppedDetails = undefined;
|
|
714
|
+
thread.stopped = false;
|
|
715
|
+
});
|
|
716
|
+
if (removeThreads) {
|
|
717
|
+
this.threads.clear();
|
|
718
|
+
this.threadIds = [];
|
|
719
|
+
ExpressionContainer.allValues.clear();
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
getStoppedDetails() {
|
|
724
|
+
return this.stoppedDetails.length >= 1 ? this.stoppedDetails[0] : undefined;
|
|
725
|
+
}
|
|
726
|
+
rawUpdate(data) {
|
|
727
|
+
this.threadIds = [];
|
|
728
|
+
data.threads.forEach(thread => {
|
|
729
|
+
this.threadIds.push(thread.id);
|
|
730
|
+
if (!this.threads.has(thread.id)) {
|
|
731
|
+
this.threads.set(thread.id, ( new Thread(this, thread.name, thread.id)));
|
|
732
|
+
}
|
|
733
|
+
else if (thread.name) {
|
|
734
|
+
const oldThread = this.threads.get(thread.id);
|
|
735
|
+
if (oldThread) {
|
|
736
|
+
oldThread.name = thread.name;
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
this.threads.forEach(t => {
|
|
741
|
+
if (this.threadIds.indexOf(t.threadId) === -1) {
|
|
742
|
+
this.threads.delete(t.threadId);
|
|
743
|
+
}
|
|
744
|
+
});
|
|
745
|
+
const stoppedDetails = data.stoppedDetails;
|
|
746
|
+
if (stoppedDetails) {
|
|
747
|
+
if (stoppedDetails.allThreadsStopped) {
|
|
748
|
+
this.threads.forEach(thread => {
|
|
749
|
+
thread.stoppedDetails = thread.threadId === stoppedDetails.threadId ? stoppedDetails : { reason: thread.stoppedDetails?.reason };
|
|
750
|
+
thread.stopped = true;
|
|
751
|
+
thread.clearCallStack();
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
else {
|
|
755
|
+
const thread = typeof stoppedDetails.threadId === 'number' ? this.threads.get(stoppedDetails.threadId) : undefined;
|
|
756
|
+
if (thread) {
|
|
757
|
+
thread.stoppedDetails = stoppedDetails;
|
|
758
|
+
thread.clearCallStack();
|
|
759
|
+
thread.stopped = true;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
async fetchThreads(stoppedDetails) {
|
|
765
|
+
if (this.raw) {
|
|
766
|
+
const response = await this.raw.threads();
|
|
767
|
+
if (response && response.body && response.body.threads) {
|
|
768
|
+
this.model.rawUpdate({
|
|
769
|
+
sessionId: this.getId(),
|
|
770
|
+
threads: response.body.threads,
|
|
771
|
+
stoppedDetails
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
initializeForTest(raw) {
|
|
777
|
+
this.raw = raw;
|
|
778
|
+
this.registerListeners();
|
|
779
|
+
}
|
|
780
|
+
registerListeners() {
|
|
781
|
+
if (!this.raw) {
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
this.rawListeners.push(this.raw.onDidInitialize(async () => {
|
|
785
|
+
aria.status(( localize('debuggingStarted', "Debugging started.")));
|
|
786
|
+
const sendConfigurationDone = async () => {
|
|
787
|
+
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
788
|
+
try {
|
|
789
|
+
await this.raw.configurationDone();
|
|
790
|
+
}
|
|
791
|
+
catch (e) {
|
|
792
|
+
this.notificationService.error(e);
|
|
793
|
+
this.raw?.disconnect({});
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
return undefined;
|
|
797
|
+
};
|
|
798
|
+
try {
|
|
799
|
+
await this.debugService.sendAllBreakpoints(this);
|
|
800
|
+
}
|
|
801
|
+
finally {
|
|
802
|
+
await sendConfigurationDone();
|
|
803
|
+
await this.fetchThreads();
|
|
804
|
+
}
|
|
805
|
+
}));
|
|
806
|
+
this.rawListeners.push(this.raw.onDidStop(async (event) => {
|
|
807
|
+
this.passFocusScheduler.cancel();
|
|
808
|
+
this.stoppedDetails.push(event.body);
|
|
809
|
+
await this.fetchThreads(event.body);
|
|
810
|
+
const focusedThread = this.debugService.getViewModel().focusedThread;
|
|
811
|
+
const focusedThreadDoesNotExist = focusedThread !== undefined && focusedThread.session === this && !this.threads.has(focusedThread.threadId);
|
|
812
|
+
if (focusedThreadDoesNotExist) {
|
|
813
|
+
this.debugService.focusStackFrame(undefined, undefined);
|
|
814
|
+
}
|
|
815
|
+
const thread = typeof event.body.threadId === 'number' ? this.getThread(event.body.threadId) : undefined;
|
|
816
|
+
if (thread) {
|
|
817
|
+
const promises = this.model.refreshTopOfCallstack(thread);
|
|
818
|
+
const focus = async () => {
|
|
819
|
+
if (focusedThreadDoesNotExist || (!event.body.preserveFocusHint && thread.getCallStack().length)) {
|
|
820
|
+
const focusedStackFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
821
|
+
if (!focusedStackFrame || focusedStackFrame.thread.session === this) {
|
|
822
|
+
const preserveFocus = !this.configurationService.getValue('debug').focusEditorOnBreak;
|
|
823
|
+
await this.debugService.focusStackFrame(undefined, thread, undefined, { preserveFocus });
|
|
824
|
+
}
|
|
825
|
+
if (thread.stoppedDetails) {
|
|
826
|
+
if (thread.stoppedDetails.reason === 'breakpoint' && this.configurationService.getValue('debug').openDebug === 'openOnDebugBreak' && !this.suppressDebugView) {
|
|
827
|
+
await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 );
|
|
828
|
+
}
|
|
829
|
+
if (this.configurationService.getValue('debug').focusWindowOnBreak && !this.workbenchEnvironmentService.extensionTestsLocationURI) {
|
|
830
|
+
await this.hostService.focus({ force: true });
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
await promises.topCallStack;
|
|
836
|
+
focus();
|
|
837
|
+
await promises.wholeCallStack;
|
|
838
|
+
const focusedStackFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
839
|
+
if (!focusedStackFrame || !focusedStackFrame.source || focusedStackFrame.source.presentationHint === 'deemphasize' || focusedStackFrame.presentationHint === 'deemphasize') {
|
|
840
|
+
focus();
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
this._onDidChangeState.fire();
|
|
844
|
+
}));
|
|
845
|
+
this.rawListeners.push(this.raw.onDidThread(event => {
|
|
846
|
+
if (event.body.reason === 'started') {
|
|
847
|
+
if (!this.fetchThreadsScheduler) {
|
|
848
|
+
this.fetchThreadsScheduler = ( new RunOnceScheduler(() => {
|
|
849
|
+
this.fetchThreads();
|
|
850
|
+
}, 100));
|
|
851
|
+
this.rawListeners.push(this.fetchThreadsScheduler);
|
|
852
|
+
}
|
|
853
|
+
if (!this.fetchThreadsScheduler.isScheduled()) {
|
|
854
|
+
this.fetchThreadsScheduler.schedule();
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
else if (event.body.reason === 'exited') {
|
|
858
|
+
this.model.clearThreads(this.getId(), true, event.body.threadId);
|
|
859
|
+
const viewModel = this.debugService.getViewModel();
|
|
860
|
+
const focusedThread = viewModel.focusedThread;
|
|
861
|
+
this.passFocusScheduler.cancel();
|
|
862
|
+
if (focusedThread && event.body.threadId === focusedThread.threadId) {
|
|
863
|
+
this.debugService.focusStackFrame(undefined, undefined, viewModel.focusedSession, { explicit: false });
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}));
|
|
867
|
+
this.rawListeners.push(this.raw.onDidTerminateDebugee(async (event) => {
|
|
868
|
+
aria.status(( localize('debuggingStopped', "Debugging stopped.")));
|
|
869
|
+
if (event.body && event.body.restart) {
|
|
870
|
+
await this.debugService.restartSession(this, event.body.restart);
|
|
871
|
+
}
|
|
872
|
+
else if (this.raw) {
|
|
873
|
+
await this.raw.disconnect({ terminateDebuggee: false });
|
|
874
|
+
}
|
|
875
|
+
}));
|
|
876
|
+
this.rawListeners.push(this.raw.onDidContinued(event => {
|
|
877
|
+
const threadId = event.body.allThreadsContinued !== false ? undefined : event.body.threadId;
|
|
878
|
+
if (typeof threadId === 'number') {
|
|
879
|
+
this.stoppedDetails = this.stoppedDetails.filter(sd => sd.threadId !== threadId);
|
|
880
|
+
const tokens = this.cancellationMap.get(threadId);
|
|
881
|
+
this.cancellationMap.delete(threadId);
|
|
882
|
+
tokens?.forEach(t => t.cancel());
|
|
883
|
+
}
|
|
884
|
+
else {
|
|
885
|
+
this.stoppedDetails = [];
|
|
886
|
+
this.cancelAllRequests();
|
|
887
|
+
}
|
|
888
|
+
this.lastContinuedThreadId = threadId;
|
|
889
|
+
this.passFocusScheduler.schedule();
|
|
890
|
+
this.model.clearThreads(this.getId(), false, threadId);
|
|
891
|
+
this._onDidChangeState.fire();
|
|
892
|
+
}));
|
|
893
|
+
const outputQueue = ( new Queue());
|
|
894
|
+
this.rawListeners.push(this.raw.onDidOutput(async (event) => {
|
|
895
|
+
const outputSeverity = event.body.category === 'stderr' ? Severity.Error : event.body.category === 'console' ? Severity.Warning : Severity.Info;
|
|
896
|
+
if (event.body.variablesReference) {
|
|
897
|
+
const source = event.body.source && event.body.line ? {
|
|
898
|
+
lineNumber: event.body.line,
|
|
899
|
+
column: event.body.column ? event.body.column : 1,
|
|
900
|
+
source: this.getSource(event.body.source)
|
|
901
|
+
} : undefined;
|
|
902
|
+
const container = ( new ExpressionContainer(this, undefined, event.body.variablesReference, generateUuid()));
|
|
903
|
+
const children = container.getChildren();
|
|
904
|
+
outputQueue.queue(async () => {
|
|
905
|
+
const resolved = await children;
|
|
906
|
+
if (resolved.length === 1) {
|
|
907
|
+
this.appendToRepl({ output: event.body.output, expression: resolved[0], sev: outputSeverity, source }, event.body.category === 'important');
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
910
|
+
resolved.forEach((child) => {
|
|
911
|
+
child.name = null;
|
|
912
|
+
this.appendToRepl({ output: '', expression: child, sev: outputSeverity, source }, event.body.category === 'important');
|
|
913
|
+
});
|
|
914
|
+
});
|
|
915
|
+
return;
|
|
916
|
+
}
|
|
917
|
+
outputQueue.queue(async () => {
|
|
918
|
+
if (!event.body || !this.raw) {
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
if (event.body.category === 'telemetry') {
|
|
922
|
+
const telemetryEndpoint = this.raw.dbgr.getCustomTelemetryEndpoint();
|
|
923
|
+
if (telemetryEndpoint && this.telemetryService.telemetryLevel !== 0 ) {
|
|
924
|
+
let data = event.body.data;
|
|
925
|
+
if (!telemetryEndpoint.sendErrorTelemetry && event.body.data) {
|
|
926
|
+
data = filterExceptionsFromTelemetry(event.body.data);
|
|
927
|
+
}
|
|
928
|
+
this.customEndpointTelemetryService.publicLog(telemetryEndpoint, event.body.output, data);
|
|
929
|
+
}
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
const source = event.body.source && event.body.line ? {
|
|
933
|
+
lineNumber: event.body.line,
|
|
934
|
+
column: event.body.column ? event.body.column : 1,
|
|
935
|
+
source: this.getSource(event.body.source)
|
|
936
|
+
} : undefined;
|
|
937
|
+
if (event.body.group === 'start' || event.body.group === 'startCollapsed') {
|
|
938
|
+
const expanded = event.body.group === 'start';
|
|
939
|
+
this.repl.startGroup(event.body.output || '', expanded, source);
|
|
940
|
+
return;
|
|
941
|
+
}
|
|
942
|
+
if (event.body.group === 'end') {
|
|
943
|
+
this.repl.endGroup();
|
|
944
|
+
if (!event.body.output) {
|
|
945
|
+
return;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
if (typeof event.body.output === 'string') {
|
|
949
|
+
this.appendToRepl({ output: event.body.output, sev: outputSeverity, source }, event.body.category === 'important');
|
|
950
|
+
}
|
|
951
|
+
});
|
|
952
|
+
}));
|
|
953
|
+
this.rawListeners.push(this.raw.onDidBreakpoint(event => {
|
|
954
|
+
const id = event.body && event.body.breakpoint ? event.body.breakpoint.id : undefined;
|
|
955
|
+
const breakpoint = this.model.getBreakpoints().find(bp => bp.getIdFromAdapter(this.getId()) === id);
|
|
956
|
+
const functionBreakpoint = this.model.getFunctionBreakpoints().find(bp => bp.getIdFromAdapter(this.getId()) === id);
|
|
957
|
+
const dataBreakpoint = this.model.getDataBreakpoints().find(dbp => dbp.getIdFromAdapter(this.getId()) === id);
|
|
958
|
+
const exceptionBreakpoint = this.model.getExceptionBreakpoints().find(excbp => excbp.getIdFromAdapter(this.getId()) === id);
|
|
959
|
+
if (event.body.reason === 'new' && event.body.breakpoint.source && event.body.breakpoint.line) {
|
|
960
|
+
const source = this.getSource(event.body.breakpoint.source);
|
|
961
|
+
const bps = this.model.addBreakpoints(source.uri, [{
|
|
962
|
+
column: event.body.breakpoint.column,
|
|
963
|
+
enabled: true,
|
|
964
|
+
lineNumber: event.body.breakpoint.line,
|
|
965
|
+
}], false);
|
|
966
|
+
if (bps.length === 1) {
|
|
967
|
+
const data = ( new Map([[bps[0].getId(), event.body.breakpoint]]));
|
|
968
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
if (event.body.reason === 'removed') {
|
|
972
|
+
if (breakpoint) {
|
|
973
|
+
this.model.removeBreakpoints([breakpoint]);
|
|
974
|
+
}
|
|
975
|
+
if (functionBreakpoint) {
|
|
976
|
+
this.model.removeFunctionBreakpoints(functionBreakpoint.getId());
|
|
977
|
+
}
|
|
978
|
+
if (dataBreakpoint) {
|
|
979
|
+
this.model.removeDataBreakpoints(dataBreakpoint.getId());
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
if (event.body.reason === 'changed') {
|
|
983
|
+
if (breakpoint) {
|
|
984
|
+
if (!breakpoint.column) {
|
|
985
|
+
event.body.breakpoint.column = undefined;
|
|
986
|
+
}
|
|
987
|
+
const data = ( new Map([[breakpoint.getId(), event.body.breakpoint]]));
|
|
988
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
989
|
+
}
|
|
990
|
+
if (functionBreakpoint) {
|
|
991
|
+
const data = ( new Map([[functionBreakpoint.getId(), event.body.breakpoint]]));
|
|
992
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
993
|
+
}
|
|
994
|
+
if (dataBreakpoint) {
|
|
995
|
+
const data = ( new Map([[dataBreakpoint.getId(), event.body.breakpoint]]));
|
|
996
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
997
|
+
}
|
|
998
|
+
if (exceptionBreakpoint) {
|
|
999
|
+
const data = ( new Map([[exceptionBreakpoint.getId(), event.body.breakpoint]]));
|
|
1000
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}));
|
|
1004
|
+
this.rawListeners.push(this.raw.onDidLoadedSource(event => {
|
|
1005
|
+
this._onDidLoadedSource.fire({
|
|
1006
|
+
reason: event.body.reason,
|
|
1007
|
+
source: this.getSource(event.body.source)
|
|
1008
|
+
});
|
|
1009
|
+
}));
|
|
1010
|
+
this.rawListeners.push(this.raw.onDidCustomEvent(event => {
|
|
1011
|
+
this._onDidCustomEvent.fire(event);
|
|
1012
|
+
}));
|
|
1013
|
+
this.rawListeners.push(this.raw.onDidProgressStart(event => {
|
|
1014
|
+
this._onDidProgressStart.fire(event);
|
|
1015
|
+
}));
|
|
1016
|
+
this.rawListeners.push(this.raw.onDidProgressUpdate(event => {
|
|
1017
|
+
this._onDidProgressUpdate.fire(event);
|
|
1018
|
+
}));
|
|
1019
|
+
this.rawListeners.push(this.raw.onDidProgressEnd(event => {
|
|
1020
|
+
this._onDidProgressEnd.fire(event);
|
|
1021
|
+
}));
|
|
1022
|
+
this.rawListeners.push(this.raw.onDidInvalidateMemory(event => {
|
|
1023
|
+
this._onDidInvalidMemory.fire(event);
|
|
1024
|
+
}));
|
|
1025
|
+
this.rawListeners.push(this.raw.onDidInvalidated(async (event) => {
|
|
1026
|
+
if (!(event.body.areas && event.body.areas.length === 1 && (event.body.areas[0] === 'variables' || event.body.areas[0] === 'watch'))) {
|
|
1027
|
+
this.cancelAllRequests();
|
|
1028
|
+
this.model.clearThreads(this.getId(), true);
|
|
1029
|
+
await this.fetchThreads(this.getStoppedDetails());
|
|
1030
|
+
}
|
|
1031
|
+
const viewModel = this.debugService.getViewModel();
|
|
1032
|
+
if (viewModel.focusedSession === this) {
|
|
1033
|
+
viewModel.updateViews();
|
|
1034
|
+
}
|
|
1035
|
+
}));
|
|
1036
|
+
this.rawListeners.push(this.raw.onDidExitAdapter(event => this.onDidExitAdapter(event)));
|
|
1037
|
+
}
|
|
1038
|
+
onDidExitAdapter(event) {
|
|
1039
|
+
this.initialized = true;
|
|
1040
|
+
this.model.setBreakpointSessionData(this.getId(), this.capabilities, undefined);
|
|
1041
|
+
this.shutdown();
|
|
1042
|
+
this._onDidEndAdapter.fire(event);
|
|
1043
|
+
}
|
|
1044
|
+
shutdown() {
|
|
1045
|
+
dispose(this.rawListeners);
|
|
1046
|
+
if (this.raw) {
|
|
1047
|
+
this.raw.disconnect({});
|
|
1048
|
+
this.raw.dispose();
|
|
1049
|
+
this.raw = undefined;
|
|
1050
|
+
}
|
|
1051
|
+
this.fetchThreadsScheduler?.dispose();
|
|
1052
|
+
this.fetchThreadsScheduler = undefined;
|
|
1053
|
+
this.passFocusScheduler.cancel();
|
|
1054
|
+
this.passFocusScheduler.dispose();
|
|
1055
|
+
this.model.clearThreads(this.getId(), true);
|
|
1056
|
+
this._onDidChangeState.fire();
|
|
1057
|
+
}
|
|
1058
|
+
getSourceForUri(uri) {
|
|
1059
|
+
return this.sources.get(( this.uriIdentityService.asCanonicalUri(uri).toString()));
|
|
1060
|
+
}
|
|
1061
|
+
getSource(raw) {
|
|
1062
|
+
let source = ( new Source(raw, this.getId(), this.uriIdentityService, this.logService));
|
|
1063
|
+
const uriKey = ( source.uri.toString());
|
|
1064
|
+
const found = this.sources.get(uriKey);
|
|
1065
|
+
if (found) {
|
|
1066
|
+
source = found;
|
|
1067
|
+
source.raw = mixin(source.raw, raw);
|
|
1068
|
+
if (source.raw && raw) {
|
|
1069
|
+
source.raw.presentationHint = raw.presentationHint;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
else {
|
|
1073
|
+
this.sources.set(uriKey, source);
|
|
1074
|
+
}
|
|
1075
|
+
return source;
|
|
1076
|
+
}
|
|
1077
|
+
getRawSource(uri) {
|
|
1078
|
+
const source = this.getSourceForUri(uri);
|
|
1079
|
+
if (source) {
|
|
1080
|
+
return source.raw;
|
|
1081
|
+
}
|
|
1082
|
+
else {
|
|
1083
|
+
const data = Source.getEncodedDebugData(uri);
|
|
1084
|
+
return { name: data.name, path: data.path, sourceReference: data.sourceReference };
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
getNewCancellationToken(threadId, token) {
|
|
1088
|
+
const tokenSource = ( new CancellationTokenSource(token));
|
|
1089
|
+
const tokens = this.cancellationMap.get(threadId) || [];
|
|
1090
|
+
tokens.push(tokenSource);
|
|
1091
|
+
this.cancellationMap.set(threadId, tokens);
|
|
1092
|
+
return tokenSource.token;
|
|
1093
|
+
}
|
|
1094
|
+
cancelAllRequests() {
|
|
1095
|
+
this.cancellationMap.forEach(tokens => tokens.forEach(t => t.cancel()));
|
|
1096
|
+
this.cancellationMap.clear();
|
|
1097
|
+
}
|
|
1098
|
+
getReplElements() {
|
|
1099
|
+
return this.repl.getReplElements();
|
|
1100
|
+
}
|
|
1101
|
+
hasSeparateRepl() {
|
|
1102
|
+
return !this.parentSession || this._options.repl !== 'mergeWithParent';
|
|
1103
|
+
}
|
|
1104
|
+
removeReplExpressions() {
|
|
1105
|
+
this.repl.removeReplExpressions();
|
|
1106
|
+
}
|
|
1107
|
+
async addReplExpression(stackFrame, name) {
|
|
1108
|
+
await this.repl.addReplExpression(this, stackFrame, name);
|
|
1109
|
+
this.debugService.getViewModel().updateViews();
|
|
1110
|
+
}
|
|
1111
|
+
appendToRepl(data, isImportant) {
|
|
1112
|
+
this.repl.appendToRepl(this, data);
|
|
1113
|
+
if (isImportant) {
|
|
1114
|
+
this.notificationService.notify({ message: ( data.toString()), severity: data.sev, source: this.name });
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
DebugSession = ( __decorate([
|
|
1119
|
+
( __param(5, IDebugService)),
|
|
1120
|
+
( __param(6, ITelemetryService)),
|
|
1121
|
+
( __param(7, IHostService)),
|
|
1122
|
+
( __param(8, IConfigurationService)),
|
|
1123
|
+
( __param(9, IPaneCompositePartService)),
|
|
1124
|
+
( __param(10, IWorkspaceContextService)),
|
|
1125
|
+
( __param(11, IProductService)),
|
|
1126
|
+
( __param(12, INotificationService)),
|
|
1127
|
+
( __param(13, ILifecycleService)),
|
|
1128
|
+
( __param(14, IUriIdentityService)),
|
|
1129
|
+
( __param(15, IInstantiationService)),
|
|
1130
|
+
( __param(16, ICustomEndpointTelemetryService)),
|
|
1131
|
+
( __param(17, IWorkbenchEnvironmentService)),
|
|
1132
|
+
( __param(18, ILogService))
|
|
1133
|
+
], DebugSession));
|
|
1134
|
+
export { DebugSession };
|