@codingame/monaco-vscode-api 1.78.4 → 1.78.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -9
- package/dist/api.js +192 -2
- package/dist/assets/breakpointWidget.css +31 -0
- package/dist/assets/callStackEditorContribution.css +12 -0
- package/dist/assets/debug.contribution.css +138 -0
- package/dist/assets/debugHover.css +80 -0
- package/dist/assets/debugToolBar.css +49 -0
- package/dist/assets/editorquickaccess.css +8 -0
- package/dist/assets/editorstatus.css +51 -0
- package/dist/assets/exceptionWidget.css +52 -0
- package/dist/assets/notificationsActions.css +14 -0
- package/dist/assets/notificationsCenter.css +69 -0
- package/dist/assets/notificationsList.css +152 -0
- package/dist/assets/notificationsToasts.css +63 -0
- package/dist/assets/panelpart.css +75 -0
- package/dist/assets/paneview.css +148 -0
- package/dist/assets/paneviewlet.css +79 -0
- package/dist/assets/sidebysideeditor.css +9 -0
- package/dist/assets.js +15 -0
- package/dist/default-extensions/bat.js +6 -6
- package/dist/default-extensions/clojure.js +5 -5
- package/dist/default-extensions/coffeescript.js +6 -6
- package/dist/default-extensions/cpp.js +11 -11
- package/dist/default-extensions/csharp.js +6 -6
- package/dist/default-extensions/css.js +5 -5
- package/dist/default-extensions/dart.js +5 -5
- package/dist/default-extensions/diff.js +5 -5
- package/dist/default-extensions/docker.js +5 -5
- package/dist/default-extensions/fsharp.js +6 -6
- package/dist/default-extensions/go.js +5 -5
- package/dist/default-extensions/groovy.js +6 -6
- package/dist/default-extensions/handlebars.js +5 -5
- package/dist/default-extensions/hlsl.js +5 -5
- package/dist/default-extensions/html.js +7 -7
- package/dist/default-extensions/ini.js +6 -6
- package/dist/default-extensions/java.js +6 -6
- package/dist/default-extensions/javascript.js +9 -9
- package/dist/default-extensions/json.js +6 -6
- package/dist/default-extensions/julia.js +5 -5
- package/dist/default-extensions/latex.js +11 -11
- package/dist/default-extensions/less.js +5 -5
- package/dist/default-extensions/log.js +4 -4
- package/dist/default-extensions/lua.js +5 -5
- package/dist/default-extensions/make.js +5 -5
- package/dist/default-extensions/markdown-basics.js +6 -6
- package/dist/default-extensions/objective-c.js +6 -6
- package/dist/default-extensions/perl.js +7 -7
- package/dist/default-extensions/php.js +7 -7
- package/dist/default-extensions/powershell.js +5 -5
- package/dist/default-extensions/pug.js +5 -5
- package/dist/default-extensions/python.js +6 -6
- package/dist/default-extensions/r.js +5 -5
- package/dist/default-extensions/razor.js +5 -5
- package/dist/default-extensions/ruby.js +5 -5
- package/dist/default-extensions/rust.js +5 -5
- package/dist/default-extensions/scss.js +6 -6
- package/dist/default-extensions/shaderlab.js +5 -5
- package/dist/default-extensions/shellscript.js +5 -5
- package/dist/default-extensions/sql.js +5 -5
- package/dist/default-extensions/swift.js +6 -6
- package/dist/default-extensions/theme-abyss.js +4 -4
- package/dist/default-extensions/theme-defaults.js +12 -12
- package/dist/default-extensions/theme-kimbie-dark.js +4 -4
- package/dist/default-extensions/theme-monokai-dimmed.js +4 -4
- package/dist/default-extensions/theme-monokai.js +4 -4
- package/dist/default-extensions/theme-quietlight.js +4 -4
- package/dist/default-extensions/theme-red.js +4 -4
- package/dist/default-extensions/theme-seti.js +4 -4
- package/dist/default-extensions/theme-solarized-dark.js +4 -4
- package/dist/default-extensions/theme-solarized-light.js +4 -4
- package/dist/default-extensions/theme-tomorrow-night-blue.js +4 -4
- package/dist/default-extensions/typescript-basics.js +9 -9
- package/dist/default-extensions/typescript-language-features.js +3 -3
- package/dist/default-extensions/vb.js +6 -6
- package/dist/default-extensions/xml.js +7 -7
- package/dist/default-extensions/yaml.js +5 -5
- package/dist/{extension-tools-b2d018a3.js → extension-tools-b68a64de.js} +2 -15
- package/dist/extensions.js +150 -4
- package/dist/json.js +92 -0
- package/dist/monaco-treemending.js +882 -0
- package/dist/monaco.js +24 -458
- package/dist/node_modules/tslib/tslib.es6.js +21 -0
- package/dist/override/vs/workbench/browser/parts/editor/textEditor.js +2 -0
- package/dist/rollup-extension-directory-plugin.js +1 -1
- package/dist/rollup-vsix-plugin.js +1 -1
- package/dist/service-override/_46__46__47__46__46__47_vscode_47_vs_47_platform_47_audioCues_47_browser_47_media_47__42__46_mp3.js +11 -0
- package/dist/service-override/audioCue.js +13 -0
- package/dist/service-override/configuration.js +100 -0
- package/dist/service-override/debug.js +23 -0
- package/dist/service-override/dialogs.js +13 -0
- package/dist/service-override/files.js +244 -0
- package/dist/service-override/keybindings.js +100 -0
- package/dist/service-override/languages.js +27 -0
- package/dist/service-override/layout.js +41 -0
- package/dist/service-override/modelEditor.js +128 -0
- package/dist/service-override/notifications.js +34 -0
- package/dist/service-override/preferences.js +10 -0
- package/dist/{snippets.js → service-override/snippets.js} +5 -3
- package/dist/service-override/textmate.js +36 -0
- package/dist/service-override/theme.js +26 -0
- package/dist/services.d.ts +118 -1
- package/dist/services.js +59 -3
- package/dist/tools.js +20 -0
- package/dist/vscode/vs/base/browser/ui/splitview/paneview.js +289 -0
- package/dist/vscode/vs/base/common/console.js +58 -0
- package/dist/vscode/vs/base/common/date.js +204 -0
- package/dist/vscode/vs/base/common/jsonEdit.js +164 -0
- package/dist/vscode/vs/base/common/jsonFormatter.js +187 -0
- package/dist/vscode/vs/base/common/keybindingParser.js +87 -0
- package/dist/vscode/vs/base/common/skipList.js +160 -0
- package/dist/vscode/vs/base/common/uriIpc.js +32 -0
- package/dist/vscode/vs/base/parts/ipc/common/ipc.net.js +45 -0
- package/dist/vscode/vs/base/parts/request/browser/request.js +60 -0
- package/dist/vscode/vs/base/parts/request/common/request.js +8 -0
- package/dist/vscode/vs/editor/browser/config/editorConfiguration.js +91 -0
- package/dist/vscode/vs/editor/common/services/languageFeaturesService.js +41 -0
- package/dist/vscode/vs/editor/common/services/modelUndoRedoParticipant.js +56 -0
- package/dist/vscode/vs/editor/common/services/textResourceConfigurationService.js +112 -0
- package/dist/vscode/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +112 -0
- package/dist/vscode/vs/platform/debug/common/extensionHostDebug.js +3 -0
- package/dist/{extensionManagement.js → vscode/vs/platform/extensionManagement/common/extensionManagement.js} +2 -1
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagementUtil.js +14 -0
- package/dist/vscode/vs/platform/extensionManagement/common/extensionNls.js +66 -0
- package/dist/vscode/vs/platform/extensionManagement/common/implicitActivationEvents.js +53 -0
- package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +69 -0
- package/dist/vscode/vs/platform/externalServices/common/serviceMachineId.js +27 -0
- package/dist/vscode/vs/platform/files/common/fileService.js +920 -0
- package/dist/vscode/vs/platform/files/common/inMemoryFilesystemProvider.js +175 -0
- package/dist/vscode/vs/platform/files/common/io.js +80 -0
- package/dist/vscode/vs/platform/files/common/watcher.js +69 -0
- package/dist/vscode/vs/platform/keyboardLayout/common/keyboardConfig.js +42 -0
- package/dist/vscode/vs/platform/keyboardLayout/common/keyboardLayout.js +12 -0
- package/dist/vscode/vs/platform/keyboardLayout/common/keyboardMapper.js +23 -0
- package/dist/vscode/vs/platform/remote/common/remoteAuthorityResolver.js +17 -0
- package/dist/vscode/vs/platform/request/browser/requestService.js +25 -0
- package/dist/vscode/vs/platform/request/common/request.js +50 -0
- package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +119 -0
- package/dist/{tokenClassificationRegistry.js → vscode/vs/platform/theme/common/tokenClassificationRegistry.js} +82 -136
- package/dist/vscode/vs/platform/tunnel/common/tunnel.js +3 -0
- package/dist/vscode/vs/platform/uriIdentity/common/uriIdentityService.js +80 -0
- package/dist/vscode/vs/platform/userDataSync/common/content.js +9 -0
- package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +299 -0
- package/dist/vscode/vs/platform/workspace/common/editSessions.js +3 -0
- package/dist/vscode/vs/platform/workspace/common/virtualWorkspace.js +17 -0
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +195 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadBulkEdits.js +49 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadClipboard.js +22 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadCommands.js +93 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadConfiguration.js +78 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadConsole.js +33 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +347 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +67 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +73 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +246 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +379 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadEditor.js +410 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadEditors.js +223 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadExtensionService.js +213 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystem.js +270 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystemEventService.js +223 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +909 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguages.js +76 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadMessageService.js +114 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadOutputService.js +73 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadProgress.js +62 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadQuickOpen.js +183 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadSaveParticipant.js +43 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadTelemetry.js +50 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadWindow.js +48 -0
- package/dist/vscode/vs/workbench/api/browser/mainThreadWorkspace.js +227 -0
- package/dist/vscode/vs/workbench/api/common/cache.js +28 -0
- package/dist/vscode/vs/workbench/api/common/configurationExtensionPoint.js +450 -0
- package/dist/vscode/vs/workbench/api/common/extHost.protocol.js +131 -0
- package/dist/vscode/vs/workbench/api/common/extHostApiCommands.js +656 -0
- package/dist/vscode/vs/workbench/api/common/extHostApiDeprecationService.js +35 -0
- package/dist/vscode/vs/workbench/api/common/extHostBulkEdits.js +21 -0
- package/dist/vscode/vs/workbench/api/common/extHostClipboard.js +15 -0
- package/dist/vscode/vs/workbench/api/common/extHostCommands.js +415 -0
- package/dist/vscode/vs/workbench/api/common/extHostConfiguration.js +264 -0
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +786 -0
- package/dist/vscode/vs/workbench/api/common/extHostDecorations.js +94 -0
- package/dist/vscode/vs/workbench/api/common/extHostDiagnostics.js +292 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentContentProviders.js +65 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentData.js +212 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentSaveParticipant.js +126 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocuments.js +144 -0
- package/dist/vscode/vs/workbench/api/common/extHostDocumentsAndEditors.js +147 -0
- package/dist/vscode/vs/workbench/api/common/extHostEditorTabs.js +328 -0
- package/dist/vscode/vs/workbench/api/common/extHostExtensionActivator.js +309 -0
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +814 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystem.js +272 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemConsumer.js +153 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemEventService.js +193 -0
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemInfo.js +35 -0
- package/dist/vscode/vs/workbench/api/common/extHostInitDataService.js +3 -0
- package/dist/vscode/vs/workbench/api/common/extHostLanguageFeatures.js +2038 -0
- package/dist/vscode/vs/workbench/api/common/extHostLanguages.js +164 -0
- package/dist/vscode/vs/workbench/api/common/extHostLocalizationService.js +85 -0
- package/dist/vscode/vs/workbench/api/common/extHostMemento.js +74 -0
- package/dist/vscode/vs/workbench/api/common/extHostMessageService.js +55 -0
- package/dist/vscode/vs/workbench/api/common/extHostOutput.js +257 -0
- package/dist/vscode/vs/workbench/api/common/extHostProgress.js +80 -0
- package/dist/vscode/vs/workbench/api/common/extHostQuickOpen.js +580 -0
- package/dist/vscode/vs/workbench/api/common/extHostRpcService.js +12 -0
- package/dist/vscode/vs/workbench/api/common/extHostSecretState.js +24 -0
- package/dist/vscode/vs/workbench/api/common/extHostSecrets.js +29 -0
- package/dist/vscode/vs/workbench/api/common/extHostStorage.js +42 -0
- package/dist/vscode/vs/workbench/api/common/extHostStoragePaths.js +64 -0
- package/dist/vscode/vs/workbench/api/common/extHostTelemetry.js +266 -0
- package/dist/vscode/vs/workbench/api/common/extHostTerminalService.js +3 -0
- package/dist/vscode/vs/workbench/api/common/extHostTestItem.js +122 -0
- package/dist/vscode/vs/workbench/api/common/extHostTestingPrivateApi.js +15 -0
- package/dist/vscode/vs/workbench/api/common/extHostTextEditor.js +511 -0
- package/dist/vscode/vs/workbench/api/common/extHostTextEditors.js +128 -0
- package/dist/vscode/vs/workbench/api/common/extHostTunnelService.js +36 -0
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +1766 -0
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +2810 -0
- package/dist/vscode/vs/workbench/api/common/extHostUriTransformerService.js +19 -0
- package/dist/vscode/vs/workbench/api/common/extHostVariableResolverService.js +138 -0
- package/dist/vscode/vs/workbench/api/common/extHostWindow.js +59 -0
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +534 -0
- package/dist/vscode/vs/workbench/api/common/jsonValidationExtensionPoint.js +97 -0
- package/dist/vscode/vs/workbench/api/common/shared/dataTransferCache.js +36 -0
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +1201 -0
- package/dist/vscode/vs/workbench/browser/actions.js +77 -0
- package/dist/vscode/vs/workbench/browser/codeeditor.js +185 -0
- package/dist/vscode/vs/workbench/browser/composite.js +102 -0
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +146 -0
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +68 -0
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +124 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +876 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +1946 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorAutoSave.js +157 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorCommands.js +1289 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +242 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +213 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +460 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +139 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/sideBySideEditor.js +387 -0
- package/dist/vscode/vs/workbench/browser/parts/editor/textDiffEditor.js +289 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsActions.js +124 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsAlerts.js +58 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsCenter.js +224 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsCommands.js +241 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsList.js +185 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsTelemetry.js +35 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsToasts.js +417 -0
- package/dist/vscode/vs/workbench/browser/parts/notifications/notificationsViewer.js +392 -0
- package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +422 -0
- package/dist/vscode/vs/workbench/browser/parts/views/viewPane.js +520 -0
- package/dist/vscode/vs/workbench/browser/quickaccess.js +17 -0
- package/dist/vscode/vs/workbench/common/component.js +23 -0
- package/dist/vscode/vs/workbench/common/configuration.js +8 -0
- package/dist/vscode/vs/workbench/common/contextkeys.js +170 -0
- package/dist/vscode/vs/workbench/common/contributions.js +111 -0
- package/dist/vscode/vs/workbench/common/dialogs.js +31 -0
- package/dist/vscode/vs/workbench/common/editor/binaryEditorModel.js +39 -0
- package/dist/vscode/vs/workbench/common/editor/diffEditorInput.js +164 -0
- package/dist/vscode/vs/workbench/common/editor/diffEditorModel.js +23 -0
- package/dist/vscode/vs/workbench/common/editor/editorInput.js +97 -0
- package/dist/vscode/vs/workbench/common/editor/editorModel.js +26 -0
- package/dist/vscode/vs/workbench/common/editor/editorOptions.js +48 -0
- package/dist/vscode/vs/workbench/common/editor/resourceEditorInput.js +133 -0
- package/dist/vscode/vs/workbench/common/editor/sideBySideEditorInput.js +228 -0
- package/dist/vscode/vs/workbench/common/editor/textDiffEditorModel.js +42 -0
- package/dist/vscode/vs/workbench/common/editor/textEditorModel.js +165 -0
- package/dist/vscode/vs/workbench/common/editor/textResourceEditorInput.js +146 -0
- package/dist/vscode/vs/workbench/common/editor/textResourceEditorModel.js +24 -0
- package/dist/vscode/vs/workbench/common/editor.js +307 -0
- package/dist/{memento.js → vscode/vs/workbench/common/memento.js} +1 -1
- package/dist/vscode/vs/workbench/common/notifications.js +448 -0
- package/dist/vscode/vs/workbench/common/resources.js +86 -0
- package/dist/{theme2.js → vscode/vs/workbench/common/theme.js} +1 -168
- package/dist/vscode/vs/workbench/common/views.js +20 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +45 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +170 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +160 -0
- package/dist/vscode/vs/workbench/contrib/audioCues/browser/commands.js +49 -0
- package/dist/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +25 -0
- package/dist/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy.js +126 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +100 -0
- package/dist/{languages.js → vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js} +154 -180
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/menuPreventer.js +35 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/selectionClipboard.js +2 -0
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.js +50 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/baseDebugView.js +192 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +776 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointWidget.js +378 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/breakpointsView.js +714 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +172 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debug.contribution.js +451 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugActionViewItems.js +294 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugAdapterManager.js +397 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugColors.js +309 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugCommands.js +749 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +619 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +58 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +675 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugHover.js +317 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugIcons.js +135 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugMemory.js +204 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugQuickAccess.js +142 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugService.js +1171 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +1134 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSessionPicker.js +104 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugTaskRunner.js +273 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugToolBar.js +312 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/exceptionWidget.js +103 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/linkDetector.js +229 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/rawDebugSession.js +666 -0
- package/dist/vscode/vs/workbench/contrib/debug/browser/variablesView.js +287 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +150 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/breakpoints.js +19 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debug.js +285 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugCompoundRoot.js +15 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugContentProvider.js +96 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +1451 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugSchemas.js +344 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugSource.js +121 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +148 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugTelemetry.js +34 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugUtils.js +292 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugViewModel.js +107 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/debugger.js +254 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput.js +25 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +81 -0
- package/dist/vscode/vs/workbench/contrib/debug/common/replModel.js +230 -0
- package/dist/vscode/vs/workbench/contrib/extensions/common/extensions.js +3 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +321 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +398 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/files.contribution.js +389 -0
- package/dist/vscode/vs/workbench/contrib/files/browser/files.js +3 -0
- package/dist/vscode/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +212 -0
- package/dist/vscode/vs/workbench/contrib/files/common/explorerModel.js +369 -0
- package/dist/{files2.js → vscode/vs/workbench/contrib/files/common/files.js} +1 -1
- package/dist/vscode/vs/workbench/contrib/markers/common/markers.js +20 -0
- package/dist/vscode/vs/workbench/contrib/notebook/common/notebookCommon.js +9 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/outputLinkProvider.js +74 -0
- package/dist/vscode/vs/workbench/contrib/output/browser/outputServices.js +166 -0
- package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModel.js +317 -0
- package/dist/vscode/vs/workbench/contrib/output/common/outputChannelModelService.js +31 -0
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +153 -0
- package/dist/vscode/vs/workbench/contrib/search/common/search.js +27 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +159 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippets.js +3 -0
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +229 -0
- package/dist/{snippetsService.js → vscode/vs/workbench/contrib/snippets/browser/snippetsService.js} +28 -412
- package/dist/vscode/vs/workbench/contrib/snippets/browser/tabCompletion.js +166 -0
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +161 -0
- package/dist/vscode/vs/workbench/contrib/tasks/common/taskService.js +3 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testId.js +109 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testItemCollection.js +75 -0
- package/dist/vscode/vs/workbench/contrib/testing/common/testTypes.js +7 -0
- package/dist/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy.js +133 -0
- package/dist/vscode/vs/workbench/services/actions/common/menusExtensionPoint.js +829 -0
- package/dist/vscode/vs/workbench/services/activity/common/activity.js +22 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configuration.js +847 -0
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1104 -0
- package/dist/{configuration2.js → vscode/vs/workbench/services/configuration/common/configuration.js} +1 -1
- package/dist/vscode/vs/workbench/services/configuration/common/configurationCache.js +80 -0
- package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +590 -0
- package/dist/vscode/vs/workbench/services/configuration/common/configurationModels.js +119 -0
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditing.js +9 -0
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +119 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +303 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +26 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/configurationResolver.js +36 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +174 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +10 -0
- package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +299 -0
- package/dist/vscode/vs/workbench/services/decorations/browser/decorationsService.js +312 -0
- package/dist/vscode/vs/workbench/services/decorations/common/decorations.js +3 -0
- package/dist/vscode/vs/workbench/services/dialogs/common/dialogService.js +65 -0
- package/dist/vscode/vs/workbench/services/editor/browser/codeEditorService.js +80 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorGroupColumn.js +23 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorGroupsService.js +14 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorResolverService.js +31 -0
- package/dist/vscode/vs/workbench/services/editor/common/editorService.js +10 -0
- package/dist/vscode/vs/workbench/services/environment/browser/environmentService.js +4 -0
- package/dist/vscode/vs/workbench/services/environment/common/environmentService.js +4 -0
- package/dist/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.js +6 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extHostCustomers.js +40 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +189 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDevOptions.js +23 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionHostProtocol.js +6 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensions.js +57 -0
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsApiProposals.js +74 -0
- package/dist/{extensionsRegistry.js → vscode/vs/workbench/services/extensions/common/extensionsRegistry.js} +87 -208
- package/dist/vscode/vs/workbench/services/extensions/common/lazyPromise.js +70 -0
- package/dist/vscode/vs/workbench/services/extensions/common/proxyIdentifier.js +23 -0
- package/dist/vscode/vs/workbench/services/extensions/common/remoteConsoleUtil.js +47 -0
- package/dist/vscode/vs/workbench/services/extensions/common/rpcProtocol.js +762 -0
- package/dist/vscode/vs/workbench/services/extensions/common/workspaceContains.js +92 -0
- package/dist/vscode/vs/workbench/services/files/browser/elevatedFileService.js +9 -0
- package/dist/vscode/vs/workbench/services/files/common/elevatedFileService.js +3 -0
- package/dist/vscode/vs/workbench/services/files/common/files.js +4 -0
- package/dist/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +124 -0
- package/dist/vscode/vs/workbench/services/history/common/history.js +3 -0
- package/dist/vscode/vs/workbench/services/host/browser/host.js +3 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +855 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +490 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/cz.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de-swiss.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/de.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/dk.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/dvorak.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-belgian.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-ext.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-in.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-intl.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en-uk.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en.darwin.js +133 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en.linux.js +182 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/en.win.js +167 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es-latin.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/es.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/fr.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/hu.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/it.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/it.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/jp-roman.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/jp.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ko.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.darwin.js +17 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.linux.js +6 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js +23 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/no.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pl.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pt-br.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/pt.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.linux.js +180 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/ru.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/sv.win.js +164 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/thai.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/tr.win.js +162 -0
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/zh-hans.darwin.js +125 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/fallbackKeyboardMapper.js +28 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/keybindingIO.js +72 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/keymapInfo.js +108 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/macLinuxKeyboardMapper.js +888 -0
- package/dist/vscode/vs/workbench/services/keybinding/common/windowsKeyboardMapper.js +350 -0
- package/dist/vscode/vs/workbench/services/label/common/labelService.js +302 -0
- package/dist/{languageService.js → vscode/vs/workbench/services/language/common/languageService.js} +8 -163
- package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +5 -0
- package/dist/vscode/vs/workbench/services/languageStatus/common/languageStatusService.js +3 -0
- package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +12 -0
- package/dist/vscode/vs/workbench/services/lifecycle/common/lifecycle.js +11 -0
- package/dist/vscode/vs/workbench/services/lifecycle/common/lifecycleService.js +85 -0
- package/dist/vscode/vs/workbench/services/notification/common/notificationService.js +186 -0
- package/dist/vscode/vs/workbench/services/output/common/output.js +51 -0
- package/dist/vscode/vs/workbench/services/panecomposite/browser/panecomposite.js +3 -0
- package/dist/vscode/vs/workbench/services/path/browser/pathService.js +34 -0
- package/dist/vscode/vs/workbench/services/path/common/pathService.js +107 -0
- package/dist/vscode/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +35 -0
- package/dist/vscode/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +555 -0
- package/dist/vscode/vs/workbench/services/preferences/browser/preferencesService.js +547 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferences.js +20 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesEditorInput.js +37 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1031 -0
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesValidation.js +357 -0
- package/dist/vscode/vs/workbench/services/progress/browser/progressIndicator.js +174 -0
- package/dist/vscode/vs/workbench/services/remote/common/remoteAgentService.js +3 -0
- package/dist/vscode/vs/workbench/services/search/common/queryBuilder.js +428 -0
- package/dist/vscode/vs/workbench/services/search/common/search.js +158 -0
- package/dist/vscode/vs/workbench/services/search/common/searchHelpers.js +72 -0
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +355 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/arrayOperation.js +62 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeature.js +3 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +422 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +60 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +36 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerHost.js +198 -0
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerTokenizerController.js +151 -0
- package/dist/vscode/vs/workbench/services/textMate/common/TMGrammarFactory.js +117 -0
- package/dist/vscode/vs/workbench/services/textMate/common/TMGrammars.js +93 -0
- package/dist/vscode/vs/workbench/services/textMate/common/TMScopeRegistry.js +24 -0
- package/dist/vscode/vs/workbench/services/textfile/browser/browserTextFileService.js +55 -0
- package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +578 -0
- package/dist/vscode/vs/workbench/services/textfile/common/encoding.js +493 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textEditorService.js +150 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +711 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +401 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textFileSaveParticipant.js +54 -0
- package/dist/vscode/vs/workbench/services/textfile/common/textfiles.js +45 -0
- package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +187 -0
- package/dist/vscode/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +37 -0
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +353 -0
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +291 -0
- package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +736 -0
- package/dist/vscode/vs/workbench/services/themes/common/colorExtensionPoint.js +171 -0
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +864 -0
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeSchema.js +265 -0
- package/dist/vscode/vs/workbench/services/themes/common/fileIconThemeSchema.js +303 -0
- package/dist/vscode/vs/workbench/services/themes/common/hostColorSchemeService.js +3 -0
- package/dist/vscode/vs/workbench/services/themes/common/plistParser.js +439 -0
- package/dist/vscode/vs/workbench/services/themes/common/productIconThemeSchema.js +94 -0
- package/dist/vscode/vs/workbench/services/themes/common/textMateScopeMatcher.js +120 -0
- package/dist/vscode/vs/workbench/services/themes/common/themeCompatibility.js +66 -0
- package/dist/vscode/vs/workbench/services/themes/common/themeConfiguration.js +374 -0
- package/dist/vscode/vs/workbench/services/themes/common/themeExtensionPoints.js +258 -0
- package/dist/vscode/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +268 -0
- package/dist/vscode/vs/workbench/services/themes/common/workbenchThemeService.js +46 -0
- package/dist/vscode/vs/workbench/services/timer/browser/timerService.js +3 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput.js +122 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorModel.js +240 -0
- package/dist/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.js +3 -0
- package/dist/vscode/vs/workbench/services/userData/browser/userDataInit.js +3 -0
- package/dist/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.js +7 -0
- package/dist/vscode/vs/workbench/services/userDataProfile/common/userDataProfileService.js +52 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +55 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopy.js +2 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.js +3 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +414 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant.js +39 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.js +181 -0
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +112 -0
- package/dist/vscode/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +325 -0
- package/dist/vscode/vs/workbench/services/workspaces/browser/workspaces.js +11 -0
- package/dist/vscode/vs/workbench/services/workspaces/browser/workspacesService.js +154 -0
- package/dist/vscode/vs/workbench/services/workspaces/common/workspaceEditing.js +3 -0
- package/dist/vscode-default-extensions/bat/package.json.js +2 -0
- package/dist/vscode-default-extensions/clojure/package.json.js +2 -0
- package/dist/vscode-default-extensions/coffeescript/package.json.js +2 -0
- package/dist/vscode-default-extensions/cpp/package.json.js +2 -0
- package/dist/vscode-default-extensions/csharp/package.json.js +2 -0
- package/dist/vscode-default-extensions/css/package.json.js +2 -0
- package/dist/vscode-default-extensions/dart/package.json.js +2 -0
- package/dist/vscode-default-extensions/diff/package.json.js +2 -0
- package/dist/vscode-default-extensions/docker/package.json.js +2 -0
- package/dist/vscode-default-extensions/fsharp/package.json.js +2 -0
- package/dist/vscode-default-extensions/go/package.json.js +2 -0
- package/dist/vscode-default-extensions/groovy/package.json.js +2 -0
- package/dist/vscode-default-extensions/handlebars/package.json.js +2 -0
- package/dist/vscode-default-extensions/hlsl/package.json.js +2 -0
- package/dist/vscode-default-extensions/html/package.json.js +2 -0
- package/dist/vscode-default-extensions/ini/package.json.js +2 -0
- package/dist/vscode-default-extensions/java/package.json.js +2 -0
- package/dist/vscode-default-extensions/javascript/package.json.js +2 -0
- package/dist/vscode-default-extensions/json/package.json.js +2 -0
- package/dist/vscode-default-extensions/julia/package.json.js +2 -0
- package/dist/vscode-default-extensions/latex/package.json.js +2 -0
- package/dist/vscode-default-extensions/less/package.json.js +2 -0
- package/dist/vscode-default-extensions/log/package.json.js +2 -0
- package/dist/vscode-default-extensions/lua/package.json.js +2 -0
- package/dist/vscode-default-extensions/make/package.json.js +2 -0
- package/dist/vscode-default-extensions/markdown-basics/package.json.js +2 -0
- package/dist/vscode-default-extensions/objective-c/package.json.js +2 -0
- package/dist/vscode-default-extensions/perl/package.json.js +2 -0
- package/dist/vscode-default-extensions/php/package.json.js +2 -0
- package/dist/vscode-default-extensions/powershell/package.json.js +2 -0
- package/dist/vscode-default-extensions/pug/package.json.js +2 -0
- package/dist/vscode-default-extensions/python/package.json.js +2 -0
- package/dist/vscode-default-extensions/r/package.json.js +2 -0
- package/dist/vscode-default-extensions/razor/package.json.js +2 -0
- package/dist/vscode-default-extensions/ruby/package.json.js +2 -0
- package/dist/vscode-default-extensions/rust/package.json.js +2 -0
- package/dist/vscode-default-extensions/scss/package.json.js +2 -0
- package/dist/vscode-default-extensions/shaderlab/package.json.js +2 -0
- package/dist/vscode-default-extensions/shellscript/package.json.js +2 -0
- package/dist/vscode-default-extensions/sql/package.json.js +2 -0
- package/dist/vscode-default-extensions/swift/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-abyss/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-defaults/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-kimbie-dark/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-monokai-dimmed/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-quietlight/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-red/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-seti/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-dark/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-solarized-light/package.json.js +2 -0
- package/dist/vscode-default-extensions/theme-tomorrow-night-blue/package.json.js +2 -0
- package/dist/vscode-default-extensions/typescript-basics/package.json.js +2 -0
- package/dist/vscode-default-extensions/typescript-language-features/package.json.js +2 -0
- package/dist/vscode-default-extensions/vb/package.json.js +2 -0
- package/dist/vscode-default-extensions/xml/package.json.js +2 -0
- package/dist/vscode-default-extensions/yaml/package.json.js +2 -0
- package/dist/vscode-services/commands.js +37 -0
- package/dist/vscode-services/debug.js +74 -0
- package/dist/vscode-services/env.js +69 -0
- package/dist/vscode-services/extHost.js +385 -0
- package/dist/vscode-services/extensions.js +46 -0
- package/dist/vscode-services/languages.js +203 -0
- package/dist/vscode-services/missing-services.js +959 -0
- package/dist/vscode-services/window.js +189 -0
- package/dist/vscode-services/workspace.js +164 -0
- package/monaco-editor-treemending.patch +23574 -0
- package/monaco-treemending.js +3 -0
- package/package.json +57 -60
- package/dist/api2.js +0 -1294
- package/dist/audioCue.js +0 -805
- package/dist/button.js +0 -352
- package/dist/configuration.js +0 -4438
- package/dist/debug.js +0 -15673
- package/dist/dialogs.js +0 -752
- package/dist/dom.js +0 -101
- package/dist/files.js +0 -3167
- package/dist/keybindings.js +0 -4310
- package/dist/layout.contribution.darwin.js +0 -1994
- package/dist/layout.contribution.linux.js +0 -899
- package/dist/layout.contribution.win.js +0 -3551
- package/dist/modelEditor.js +0 -8893
- package/dist/notifications.js +0 -2302
- package/dist/platform.js +0 -105
- package/dist/polyfill.js +0 -55651
- package/dist/preferences.js +0 -2532
- package/dist/textmate.js +0 -1428
- package/dist/theme.js +0 -4116
- package/dist/utils.js +0 -345
- package/dist/webpack-loader.cjs +0 -18
- package/dist/webpack-loader.d.ts +0 -4
- package/dist/{iconv.js → override/iconv.js} +0 -0
- package/dist/{jschardet.js → override/jschardet.js} +0 -0
- package/dist/{audioCue.d.ts → service-override/audioCue.d.ts} +0 -0
- package/dist/{configuration.d.ts → service-override/configuration.d.ts} +0 -0
- package/dist/{debug.d.ts → service-override/debug.d.ts} +0 -0
- package/dist/{dialogs.d.ts → service-override/dialogs.d.ts} +0 -0
- package/dist/{files.d.ts → service-override/files.d.ts} +0 -0
- package/dist/{keybindings.d.ts → service-override/keybindings.d.ts} +0 -0
- package/dist/{languages.d.ts → service-override/languages.d.ts} +0 -0
- package/dist/{modelEditor.d.ts → service-override/modelEditor.d.ts} +0 -0
- package/dist/{notifications.d.ts → service-override/notifications.d.ts} +0 -0
- package/dist/{preferences.d.ts → service-override/preferences.d.ts} +0 -0
- package/dist/{snippets.d.ts → service-override/snippets.d.ts} +0 -0
- package/dist/{textmate.d.ts → service-override/textmate.d.ts} +0 -0
- package/dist/{theme.d.ts → service-override/theme.d.ts} +0 -0
- package/dist/{injection.js → tools/injection.js} +0 -0
- package/dist/{jsonErrorMessages.js → vscode/vs/base/common/jsonErrorMessages.js} +0 -0
- package/dist/{_.contribution.js → vscode/vs/workbench/services/keybinding/browser/keyboardLayouts/_.contribution.js} +0 -0
- package/dist/{unboundCommands.js → vscode/vs/workbench/services/keybinding/browser/unboundCommands.js} +2 -2
- /package/dist/{language-configuration.js → vscode-default-extensions/bat/language-configuration.json.js} +0 -0
- /package/dist/{batchfile.js → vscode-default-extensions/bat/snippets/batchfile.code-snippets.js} +0 -0
- /package/dist/{batchfile.tmLanguage.js → vscode-default-extensions/bat/syntaxes/batchfile.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration2.js → vscode-default-extensions/clojure/language-configuration.json.js} +0 -0
- /package/dist/{clojure.tmLanguage.js → vscode-default-extensions/clojure/syntaxes/clojure.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration3.js → vscode-default-extensions/coffeescript/language-configuration.json.js} +0 -0
- /package/dist/{coffeescript.js → vscode-default-extensions/coffeescript/snippets/coffeescript.code-snippets.js} +0 -0
- /package/dist/{coffeescript.tmLanguage.js → vscode-default-extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration4.js → vscode-default-extensions/cpp/language-configuration.json.js} +0 -0
- /package/dist/{c.js → vscode-default-extensions/cpp/snippets/c.code-snippets.js} +0 -0
- /package/dist/{cpp.js → vscode-default-extensions/cpp/snippets/cpp.code-snippets.js} +0 -0
- /package/dist/{c.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/c.tmLanguage.json.js} +0 -0
- /package/dist/{cpp.embedded.macro.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json.js} +0 -0
- /package/dist/{cpp.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/cpp.tmLanguage.json.js} +0 -0
- /package/dist/{cuda-cpp.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/cuda-cpp.tmLanguage.json.js} +0 -0
- /package/dist/{platform.tmLanguage.js → vscode-default-extensions/cpp/syntaxes/platform.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration5.js → vscode-default-extensions/csharp/language-configuration.json.js} +0 -0
- /package/dist/{csharp.js → vscode-default-extensions/csharp/snippets/csharp.code-snippets.js} +0 -0
- /package/dist/{csharp.tmLanguage.js → vscode-default-extensions/csharp/syntaxes/csharp.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration6.js → vscode-default-extensions/css/language-configuration.json.js} +0 -0
- /package/dist/{css.tmLanguage.js → vscode-default-extensions/css/syntaxes/css.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration7.js → vscode-default-extensions/dart/language-configuration.json.js} +0 -0
- /package/dist/{dart.tmLanguage.js → vscode-default-extensions/dart/syntaxes/dart.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration8.js → vscode-default-extensions/diff/language-configuration.json.js} +0 -0
- /package/dist/{diff.tmLanguage.js → vscode-default-extensions/diff/syntaxes/diff.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration9.js → vscode-default-extensions/docker/language-configuration.json.js} +0 -0
- /package/dist/{docker.tmLanguage.js → vscode-default-extensions/docker/syntaxes/docker.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration10.js → vscode-default-extensions/fsharp/language-configuration.json.js} +0 -0
- /package/dist/{fsharp.js → vscode-default-extensions/fsharp/snippets/fsharp.code-snippets.js} +0 -0
- /package/dist/{fsharp.tmLanguage.js → vscode-default-extensions/fsharp/syntaxes/fsharp.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration11.js → vscode-default-extensions/go/language-configuration.json.js} +0 -0
- /package/dist/{go.tmLanguage.js → vscode-default-extensions/go/syntaxes/go.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration12.js → vscode-default-extensions/groovy/language-configuration.json.js} +0 -0
- /package/dist/{groovy.js → vscode-default-extensions/groovy/snippets/groovy.code-snippets.js} +0 -0
- /package/dist/{groovy.tmLanguage.js → vscode-default-extensions/groovy/syntaxes/groovy.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration13.js → vscode-default-extensions/handlebars/language-configuration.json.js} +0 -0
- /package/dist/{Handlebars.tmLanguage.js → vscode-default-extensions/handlebars/syntaxes/Handlebars.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration14.js → vscode-default-extensions/hlsl/language-configuration.json.js} +0 -0
- /package/dist/{hlsl.tmLanguage.js → vscode-default-extensions/hlsl/syntaxes/hlsl.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration15.js → vscode-default-extensions/html/language-configuration.json.js} +0 -0
- /package/dist/{html.js → vscode-default-extensions/html/snippets/html.code-snippets.js} +0 -0
- /package/dist/{html-derivative.tmLanguage.js → vscode-default-extensions/html/syntaxes/html-derivative.tmLanguage.json.js} +0 -0
- /package/dist/{html.tmLanguage.js → vscode-default-extensions/html/syntaxes/html.tmLanguage.json.js} +0 -0
- /package/dist/{ini.language-configuration.js → vscode-default-extensions/ini/ini.language-configuration.json.js} +0 -0
- /package/dist/{properties.language-configuration.js → vscode-default-extensions/ini/properties.language-configuration.json.js} +0 -0
- /package/dist/{ini.tmLanguage.js → vscode-default-extensions/ini/syntaxes/ini.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration16.js → vscode-default-extensions/java/language-configuration.json.js} +0 -0
- /package/dist/{java.js → vscode-default-extensions/java/snippets/java.code-snippets.js} +0 -0
- /package/dist/{java.tmLanguage.js → vscode-default-extensions/java/syntaxes/java.tmLanguage.json.js} +0 -0
- /package/dist/{javascript-language-configuration.js → vscode-default-extensions/javascript/javascript-language-configuration.json.js} +0 -0
- /package/dist/{javascript.js → vscode-default-extensions/javascript/snippets/javascript.code-snippets.js} +0 -0
- /package/dist/{JavaScript.tmLanguage.js → vscode-default-extensions/javascript/syntaxes/JavaScript.tmLanguage.json.js} +0 -0
- /package/dist/{JavaScriptReact.tmLanguage.js → vscode-default-extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json.js} +0 -0
- /package/dist/{Regular Expressions (JavaScript).js → vscode-default-extensions/javascript/syntaxes/Regular Expressions (JavaScript).tmLanguage.js} +0 -0
- /package/dist/{tags-language-configuration.js → vscode-default-extensions/javascript/tags-language-configuration.json.js} +0 -0
- /package/dist/{language-configuration17.js → vscode-default-extensions/json/language-configuration.json.js} +0 -0
- /package/dist/{JSON.tmLanguage.js → vscode-default-extensions/json/syntaxes/JSON.tmLanguage.json.js} +0 -0
- /package/dist/{JSONC.tmLanguage.js → vscode-default-extensions/json/syntaxes/JSONC.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration18.js → vscode-default-extensions/julia/language-configuration.json.js} +0 -0
- /package/dist/{julia.tmLanguage.js → vscode-default-extensions/julia/syntaxes/julia.tmLanguage.json.js} +0 -0
- /package/dist/{latex-cpp-embedded-language-configuration.js → vscode-default-extensions/latex/latex-cpp-embedded-language-configuration.json.js} +0 -0
- /package/dist/{latex-language-configuration.js → vscode-default-extensions/latex/latex-language-configuration.json.js} +0 -0
- /package/dist/{markdown-latex-combined-language-configuration.js → vscode-default-extensions/latex/markdown-latex-combined-language-configuration.json.js} +0 -0
- /package/dist/{Bibtex.tmLanguage.js → vscode-default-extensions/latex/syntaxes/Bibtex.tmLanguage.json.js} +0 -0
- /package/dist/{LaTeX.tmLanguage.js → vscode-default-extensions/latex/syntaxes/LaTeX.tmLanguage.json.js} +0 -0
- /package/dist/{TeX.tmLanguage.js → vscode-default-extensions/latex/syntaxes/TeX.tmLanguage.json.js} +0 -0
- /package/dist/{cpp-grammar-bailout.tmLanguage.js → vscode-default-extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.js} +0 -0
- /package/dist/{markdown-latex-combined.tmLanguage.js → vscode-default-extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration19.js → vscode-default-extensions/less/language-configuration.json.js} +0 -0
- /package/dist/{less.tmLanguage.js → vscode-default-extensions/less/syntaxes/less.tmLanguage.json.js} +0 -0
- /package/dist/{log.tmLanguage.js → vscode-default-extensions/log/syntaxes/log.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration20.js → vscode-default-extensions/lua/language-configuration.json.js} +0 -0
- /package/dist/{lua.tmLanguage.js → vscode-default-extensions/lua/syntaxes/lua.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration21.js → vscode-default-extensions/make/language-configuration.json.js} +0 -0
- /package/dist/{make.tmLanguage.js → vscode-default-extensions/make/syntaxes/make.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration22.js → vscode-default-extensions/markdown-basics/language-configuration.json.js} +0 -0
- /package/dist/{markdown.js → vscode-default-extensions/markdown-basics/snippets/markdown.code-snippets.js} +0 -0
- /package/dist/{markdown.tmLanguage.js → vscode-default-extensions/markdown-basics/syntaxes/markdown.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration23.js → vscode-default-extensions/objective-c/language-configuration.json.js} +0 -0
- /package/dist/{objective-c.tmLanguage.js → vscode-default-extensions/objective-c/syntaxes/objective-c.tmLanguage.json.js} +0 -0
- /package/dist/{objective-c__.tmLanguage.js → vscode-default-extensions/objective-c/syntaxes/objective-c__.tmLanguage.json.js} +0 -0
- /package/dist/{perl.language-configuration.js → vscode-default-extensions/perl/perl.language-configuration.json.js} +0 -0
- /package/dist/{perl6.language-configuration.js → vscode-default-extensions/perl/perl6.language-configuration.json.js} +0 -0
- /package/dist/{perl.tmLanguage.js → vscode-default-extensions/perl/syntaxes/perl.tmLanguage.json.js} +0 -0
- /package/dist/{perl6.tmLanguage.js → vscode-default-extensions/perl/syntaxes/perl6.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration24.js → vscode-default-extensions/php/language-configuration.json.js} +0 -0
- /package/dist/{php.js → vscode-default-extensions/php/snippets/php.code-snippets.js} +0 -0
- /package/dist/{html.tmLanguage2.js → vscode-default-extensions/php/syntaxes/html.tmLanguage.json.js} +0 -0
- /package/dist/{php.tmLanguage.js → vscode-default-extensions/php/syntaxes/php.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration25.js → vscode-default-extensions/powershell/language-configuration.json.js} +0 -0
- /package/dist/{powershell.tmLanguage.js → vscode-default-extensions/powershell/syntaxes/powershell.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration26.js → vscode-default-extensions/pug/language-configuration.json.js} +0 -0
- /package/dist/{pug.tmLanguage.js → vscode-default-extensions/pug/syntaxes/pug.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration27.js → vscode-default-extensions/python/language-configuration.json.js} +0 -0
- /package/dist/{MagicPython.tmLanguage.js → vscode-default-extensions/python/syntaxes/MagicPython.tmLanguage.json.js} +0 -0
- /package/dist/{MagicRegExp.tmLanguage.js → vscode-default-extensions/python/syntaxes/MagicRegExp.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration28.js → vscode-default-extensions/r/language-configuration.json.js} +0 -0
- /package/dist/{r.tmLanguage.js → vscode-default-extensions/r/syntaxes/r.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration29.js → vscode-default-extensions/razor/language-configuration.json.js} +0 -0
- /package/dist/{cshtml.tmLanguage.js → vscode-default-extensions/razor/syntaxes/cshtml.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration30.js → vscode-default-extensions/ruby/language-configuration.json.js} +0 -0
- /package/dist/{ruby.tmLanguage.js → vscode-default-extensions/ruby/syntaxes/ruby.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration31.js → vscode-default-extensions/rust/language-configuration.json.js} +0 -0
- /package/dist/{rust.tmLanguage.js → vscode-default-extensions/rust/syntaxes/rust.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration32.js → vscode-default-extensions/scss/language-configuration.json.js} +0 -0
- /package/dist/{sassdoc.tmLanguage.js → vscode-default-extensions/scss/syntaxes/sassdoc.tmLanguage.json.js} +0 -0
- /package/dist/{scss.tmLanguage.js → vscode-default-extensions/scss/syntaxes/scss.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration33.js → vscode-default-extensions/shaderlab/language-configuration.json.js} +0 -0
- /package/dist/{shaderlab.tmLanguage.js → vscode-default-extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration34.js → vscode-default-extensions/shellscript/language-configuration.json.js} +0 -0
- /package/dist/{shell-unix-bash.tmLanguage.js → vscode-default-extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration35.js → vscode-default-extensions/sql/language-configuration.json.js} +0 -0
- /package/dist/{sql.tmLanguage.js → vscode-default-extensions/sql/syntaxes/sql.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration36.js → vscode-default-extensions/swift/language-configuration.json.js} +0 -0
- /package/dist/{swift.js → vscode-default-extensions/swift/snippets/swift.code-snippets.js} +0 -0
- /package/dist/{swift.tmLanguage.js → vscode-default-extensions/swift/syntaxes/swift.tmLanguage.json.js} +0 -0
- /package/dist/{abyss-color-theme.js → vscode-default-extensions/theme-abyss/themes/abyss-color-theme.json.js} +0 -0
- /package/dist/{vs_minimal-icon-theme.js → vscode-default-extensions/theme-defaults/fileicons/vs_minimal-icon-theme.json.js} +0 -0
- /package/dist/{dark_plus.js → vscode-default-extensions/theme-defaults/themes/dark_plus.json.js} +0 -0
- /package/dist/{dark_plus_experimental.js → vscode-default-extensions/theme-defaults/themes/dark_plus_experimental.json.js} +0 -0
- /package/dist/{dark_vs.js → vscode-default-extensions/theme-defaults/themes/dark_vs.json.js} +0 -0
- /package/dist/{hc_black.js → vscode-default-extensions/theme-defaults/themes/hc_black.json.js} +0 -0
- /package/dist/{hc_light.js → vscode-default-extensions/theme-defaults/themes/hc_light.json.js} +0 -0
- /package/dist/{light_plus.js → vscode-default-extensions/theme-defaults/themes/light_plus.json.js} +0 -0
- /package/dist/{light_plus_experimental.js → vscode-default-extensions/theme-defaults/themes/light_plus_experimental.json.js} +0 -0
- /package/dist/{light_vs.js → vscode-default-extensions/theme-defaults/themes/light_vs.json.js} +0 -0
- /package/dist/{kimbie-dark-color-theme.js → vscode-default-extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json.js} +0 -0
- /package/dist/{monokai-color-theme.js → vscode-default-extensions/theme-monokai/themes/monokai-color-theme.json.js} +0 -0
- /package/dist/{dimmed-monokai-color-theme.js → vscode-default-extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json.js} +0 -0
- /package/dist/{quietlight-color-theme.js → vscode-default-extensions/theme-quietlight/themes/quietlight-color-theme.json.js} +0 -0
- /package/dist/{Red-color-theme.js → vscode-default-extensions/theme-red/themes/Red-color-theme.json.js} +0 -0
- /package/dist/{vs-seti-icon-theme.js → vscode-default-extensions/theme-seti/icons/vs-seti-icon-theme.json.js} +0 -0
- /package/dist/{solarized-dark-color-theme.js → vscode-default-extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json.js} +0 -0
- /package/dist/{solarized-light-color-theme.js → vscode-default-extensions/theme-solarized-light/themes/solarized-light-color-theme.json.js} +0 -0
- /package/dist/{tomorrow-night-blue-color-theme.js → vscode-default-extensions/theme-tomorrow-night-blue/themes/tomorrow-night-blue-color-theme.json.js} +0 -0
- /package/dist/{language-configuration37.js → vscode-default-extensions/typescript-basics/language-configuration.json.js} +0 -0
- /package/dist/{typescript.js → vscode-default-extensions/typescript-basics/snippets/typescript.code-snippets.js} +0 -0
- /package/dist/{TypeScript.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json.js} +0 -0
- /package/dist/{TypeScriptReact.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json.js} +0 -0
- /package/dist/{jsdoc.js.injection.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json.js} +0 -0
- /package/dist/{jsdoc.ts.injection.tmLanguage.js → vscode-default-extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json.js} +0 -0
- /package/dist/{language-configuration38.js → vscode-default-extensions/vb/language-configuration.json.js} +0 -0
- /package/dist/{vb.js → vscode-default-extensions/vb/snippets/vb.code-snippets.js} +0 -0
- /package/dist/{asp-vb-net.tmlanguage.js → vscode-default-extensions/vb/syntaxes/asp-vb-net.tmlanguage.json.js} +0 -0
- /package/dist/{xml.tmLanguage.js → vscode-default-extensions/xml/syntaxes/xml.tmLanguage.json.js} +0 -0
- /package/dist/{xsl.tmLanguage.js → vscode-default-extensions/xml/syntaxes/xsl.tmLanguage.json.js} +0 -0
- /package/dist/{xml.language-configuration.js → vscode-default-extensions/xml/xml.language-configuration.json.js} +0 -0
- /package/dist/{xsl.language-configuration.js → vscode-default-extensions/xml/xsl.language-configuration.json.js} +0 -0
- /package/dist/{language-configuration39.js → vscode-default-extensions/yaml/language-configuration.json.js} +0 -0
- /package/dist/{yaml.tmLanguage.js → vscode-default-extensions/yaml/syntaxes/yaml.tmLanguage.json.js} +0 -0
|
@@ -0,0 +1,1171 @@
|
|
|
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 { Action } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
4
|
+
import { distinct } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
5
|
+
import { raceTimeout, RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
6
|
+
import { CancellationTokenSource } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
7
|
+
import { isErrorWithActions } from 'monaco-editor/esm/vs/base/common/errorMessage.js';
|
|
8
|
+
import * as errors from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
9
|
+
import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
10
|
+
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
11
|
+
import { deepClone, equals } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
12
|
+
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
13
|
+
import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
|
|
14
|
+
import { isCodeEditor } from 'monaco-editor/esm/vs/editor/browser/editorBrowser.js';
|
|
15
|
+
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
16
|
+
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
17
|
+
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
18
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
19
|
+
import { IExtensionHostDebugService } from '../../../../platform/debug/common/extensionHostDebug.js';
|
|
20
|
+
import { IDialogService } from 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
|
|
21
|
+
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
22
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
23
|
+
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
24
|
+
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
25
|
+
import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
|
|
26
|
+
import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
27
|
+
import { IWorkspaceTrustRequestService } from 'monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js';
|
|
28
|
+
import { IViewsService, IViewDescriptorService } from '../../../common/views.js';
|
|
29
|
+
import { AdapterManager } from './debugAdapterManager.js';
|
|
30
|
+
import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from './debugCommands.js';
|
|
31
|
+
import { ConfigurationManager } from './debugConfigurationManager.js';
|
|
32
|
+
import { DebugMemoryFileSystemProvider } from './debugMemory.js';
|
|
33
|
+
import { DebugSession } from './debugSession.js';
|
|
34
|
+
import { DebugTaskRunner } from './debugTaskRunner.js';
|
|
35
|
+
import { CALLSTACK_VIEW_ID, DEBUG_MEMORY_SCHEME, CONTEXT_DEBUG_TYPE, CONTEXT_DEBUG_STATE, CONTEXT_HAS_DEBUGGED, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_UX, CONTEXT_BREAKPOINTS_EXIST, CONTEXT_DISASSEMBLY_VIEW_FOCUS, getStateLabel, debuggerDisabledMessage, VIEWLET_ID, REPL_VIEW_ID } from '../common/debug.js';
|
|
36
|
+
import { DebugCompoundRoot } from '../common/debugCompoundRoot.js';
|
|
37
|
+
import { DebugModel, Breakpoint, FunctionBreakpoint, DataBreakpoint, InstructionBreakpoint } from '../common/debugModel.js';
|
|
38
|
+
import { DebugStorage } from '../common/debugStorage.js';
|
|
39
|
+
import { DebugTelemetry } from '../common/debugTelemetry.js';
|
|
40
|
+
import { saveAllBeforeDebugStart, getExtensionHostDebugSession } from '../common/debugUtils.js';
|
|
41
|
+
import { ViewModel } from '../common/debugViewModel.js';
|
|
42
|
+
import { DisassemblyViewInput } from '../common/disassemblyViewInput.js';
|
|
43
|
+
import { VIEWLET_ID as VIEWLET_ID$1 } from '../../files/common/files.js';
|
|
44
|
+
import { NumberBadge, IActivityService } from '../../../services/activity/common/activity.js';
|
|
45
|
+
import { IEditorService } from '../../../services/editor/common/editorService.js';
|
|
46
|
+
import { IExtensionService } from '../../../services/extensions/common/extensions.js';
|
|
47
|
+
import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
|
|
48
|
+
import { ILifecycleService } from '../../../services/lifecycle/common/lifecycle.js';
|
|
49
|
+
import { IPaneCompositePartService } from '../../../services/panecomposite/browser/panecomposite.js';
|
|
50
|
+
let DebugService = class DebugService {
|
|
51
|
+
constructor(editorService, paneCompositeService, viewsService, viewDescriptorService, notificationService, dialogService, layoutService, contextService, contextKeyService, lifecycleService, instantiationService, extensionService, fileService, configurationService, extensionHostDebugService, activityService, commandService, quickInputService, workspaceTrustRequestService, uriIdentityService) {
|
|
52
|
+
this.editorService = editorService;
|
|
53
|
+
this.paneCompositeService = paneCompositeService;
|
|
54
|
+
this.viewsService = viewsService;
|
|
55
|
+
this.viewDescriptorService = viewDescriptorService;
|
|
56
|
+
this.notificationService = notificationService;
|
|
57
|
+
this.dialogService = dialogService;
|
|
58
|
+
this.layoutService = layoutService;
|
|
59
|
+
this.contextService = contextService;
|
|
60
|
+
this.contextKeyService = contextKeyService;
|
|
61
|
+
this.lifecycleService = lifecycleService;
|
|
62
|
+
this.instantiationService = instantiationService;
|
|
63
|
+
this.extensionService = extensionService;
|
|
64
|
+
this.fileService = fileService;
|
|
65
|
+
this.configurationService = configurationService;
|
|
66
|
+
this.extensionHostDebugService = extensionHostDebugService;
|
|
67
|
+
this.activityService = activityService;
|
|
68
|
+
this.commandService = commandService;
|
|
69
|
+
this.quickInputService = quickInputService;
|
|
70
|
+
this.workspaceTrustRequestService = workspaceTrustRequestService;
|
|
71
|
+
this.uriIdentityService = uriIdentityService;
|
|
72
|
+
this.disposables = ( new DisposableStore());
|
|
73
|
+
this.initializing = false;
|
|
74
|
+
this.sessionCancellationTokens = ( new Map());
|
|
75
|
+
this.haveDoneLazySetup = false;
|
|
76
|
+
this.breakpointsToSendOnResourceSaved = ( new Set());
|
|
77
|
+
this._onDidChangeState = ( new Emitter());
|
|
78
|
+
this._onDidNewSession = ( new Emitter());
|
|
79
|
+
this._onWillNewSession = ( new Emitter());
|
|
80
|
+
this._onDidEndSession = ( new Emitter());
|
|
81
|
+
this.adapterManager = this.instantiationService.createInstance(AdapterManager, { onDidNewSession: this.onDidNewSession });
|
|
82
|
+
this.disposables.add(this.adapterManager);
|
|
83
|
+
this.configurationManager = this.instantiationService.createInstance(ConfigurationManager, this.adapterManager);
|
|
84
|
+
this.disposables.add(this.configurationManager);
|
|
85
|
+
this.debugStorage = this.instantiationService.createInstance(DebugStorage);
|
|
86
|
+
this.chosenEnvironments = this.debugStorage.loadChosenEnvironments();
|
|
87
|
+
this.model = this.instantiationService.createInstance(DebugModel, this.debugStorage);
|
|
88
|
+
this.telemetry = this.instantiationService.createInstance(DebugTelemetry, this.model);
|
|
89
|
+
this.viewModel = ( new ViewModel(contextKeyService));
|
|
90
|
+
this.taskRunner = this.instantiationService.createInstance(DebugTaskRunner);
|
|
91
|
+
this.disposables.add(this.fileService.onDidFilesChange(e => this.onFileChanges(e)));
|
|
92
|
+
this.disposables.add(this.lifecycleService.onWillShutdown(this.dispose, this));
|
|
93
|
+
this.disposables.add(this.extensionHostDebugService.onAttachSession(event => {
|
|
94
|
+
const session = this.model.getSession(event.sessionId, true);
|
|
95
|
+
if (session) {
|
|
96
|
+
session.configuration.request = 'attach';
|
|
97
|
+
session.configuration.port = event.port;
|
|
98
|
+
session.setSubId(event.subId);
|
|
99
|
+
this.launchOrAttachToSession(session);
|
|
100
|
+
}
|
|
101
|
+
}));
|
|
102
|
+
this.disposables.add(this.extensionHostDebugService.onTerminateSession(event => {
|
|
103
|
+
const session = this.model.getSession(event.sessionId);
|
|
104
|
+
if (session && session.subId === event.subId) {
|
|
105
|
+
session.disconnect();
|
|
106
|
+
}
|
|
107
|
+
}));
|
|
108
|
+
this.disposables.add(this.viewModel.onDidFocusStackFrame(() => {
|
|
109
|
+
this.onStateChange();
|
|
110
|
+
}));
|
|
111
|
+
this.disposables.add(this.viewModel.onDidFocusSession((session) => {
|
|
112
|
+
this.onStateChange();
|
|
113
|
+
if (session) {
|
|
114
|
+
this.setExceptionBreakpointFallbackSession(session.getId());
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
this.disposables.add(Event.any(this.adapterManager.onDidRegisterDebugger, this.configurationManager.onDidSelectConfiguration)(() => {
|
|
118
|
+
const debugUxValue = (this.state !== 0 || (this.configurationManager.getAllConfigurations().length > 0 && this.adapterManager.hasEnabledDebuggers())) ? 'default' : 'simple';
|
|
119
|
+
this.debugUx.set(debugUxValue);
|
|
120
|
+
this.debugStorage.storeDebugUxState(debugUxValue);
|
|
121
|
+
}));
|
|
122
|
+
this.disposables.add(this.model.onDidChangeCallStack(() => {
|
|
123
|
+
const numberOfSessions = this.model.getSessions().filter(s => !s.parentSession).length;
|
|
124
|
+
this.activity?.dispose();
|
|
125
|
+
if (numberOfSessions > 0) {
|
|
126
|
+
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
127
|
+
if (viewContainer) {
|
|
128
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( nls.localize('1activeSession', "1 active session")) : ( nls.localize('nActiveSessions', "{0} active sessions", n)))) });
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}));
|
|
132
|
+
this.disposables.add(editorService.onDidActiveEditorChange(() => {
|
|
133
|
+
this.contextKeyService.bufferChangeEvents(() => {
|
|
134
|
+
if (editorService.activeEditor === DisassemblyViewInput.instance) {
|
|
135
|
+
this.disassemblyViewFocus.set(true);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.disassemblyViewFocus?.reset();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}));
|
|
142
|
+
this.disposables.add(this.lifecycleService.onBeforeShutdown(() => {
|
|
143
|
+
for (const editor of editorService.editors) {
|
|
144
|
+
if (editor.resource?.scheme === DEBUG_MEMORY_SCHEME) {
|
|
145
|
+
editor.dispose();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}));
|
|
149
|
+
this.initContextKeys(contextKeyService);
|
|
150
|
+
}
|
|
151
|
+
initContextKeys(contextKeyService) {
|
|
152
|
+
queueMicrotask(() => {
|
|
153
|
+
contextKeyService.bufferChangeEvents(() => {
|
|
154
|
+
this.debugType = CONTEXT_DEBUG_TYPE.bindTo(contextKeyService);
|
|
155
|
+
this.debugState = CONTEXT_DEBUG_STATE.bindTo(contextKeyService);
|
|
156
|
+
this.hasDebugged = CONTEXT_HAS_DEBUGGED.bindTo(contextKeyService);
|
|
157
|
+
this.inDebugMode = CONTEXT_IN_DEBUG_MODE.bindTo(contextKeyService);
|
|
158
|
+
this.debugUx = CONTEXT_DEBUG_UX.bindTo(contextKeyService);
|
|
159
|
+
this.debugUx.set(this.debugStorage.loadDebugUxState());
|
|
160
|
+
this.breakpointsExist = CONTEXT_BREAKPOINTS_EXIST.bindTo(contextKeyService);
|
|
161
|
+
this.disassemblyViewFocus = CONTEXT_DISASSEMBLY_VIEW_FOCUS.bindTo(contextKeyService);
|
|
162
|
+
});
|
|
163
|
+
const setBreakpointsExistContext = () => this.breakpointsExist.set(!!(this.model.getBreakpoints().length || this.model.getDataBreakpoints().length || this.model.getFunctionBreakpoints().length));
|
|
164
|
+
setBreakpointsExistContext();
|
|
165
|
+
this.disposables.add(this.model.onDidChangeBreakpoints(() => setBreakpointsExistContext()));
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
getModel() {
|
|
169
|
+
return this.model;
|
|
170
|
+
}
|
|
171
|
+
getViewModel() {
|
|
172
|
+
return this.viewModel;
|
|
173
|
+
}
|
|
174
|
+
getConfigurationManager() {
|
|
175
|
+
return this.configurationManager;
|
|
176
|
+
}
|
|
177
|
+
getAdapterManager() {
|
|
178
|
+
return this.adapterManager;
|
|
179
|
+
}
|
|
180
|
+
sourceIsNotAvailable(uri) {
|
|
181
|
+
this.model.sourceIsNotAvailable(uri);
|
|
182
|
+
}
|
|
183
|
+
dispose() {
|
|
184
|
+
this.disposables.dispose();
|
|
185
|
+
}
|
|
186
|
+
get state() {
|
|
187
|
+
const focusedSession = this.viewModel.focusedSession;
|
|
188
|
+
if (focusedSession) {
|
|
189
|
+
return focusedSession.state;
|
|
190
|
+
}
|
|
191
|
+
return this.initializing ? 1 : 0 ;
|
|
192
|
+
}
|
|
193
|
+
get initializingOptions() {
|
|
194
|
+
return this._initializingOptions;
|
|
195
|
+
}
|
|
196
|
+
startInitializingState(options) {
|
|
197
|
+
if (!this.initializing) {
|
|
198
|
+
this.initializing = true;
|
|
199
|
+
this._initializingOptions = options;
|
|
200
|
+
this.onStateChange();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
endInitializingState() {
|
|
204
|
+
if (this.initializing) {
|
|
205
|
+
this.initializing = false;
|
|
206
|
+
this._initializingOptions = undefined;
|
|
207
|
+
this.onStateChange();
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
cancelTokens(id) {
|
|
211
|
+
if (id) {
|
|
212
|
+
const token = this.sessionCancellationTokens.get(id);
|
|
213
|
+
if (token) {
|
|
214
|
+
token.cancel();
|
|
215
|
+
this.sessionCancellationTokens.delete(id);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
this.sessionCancellationTokens.forEach(t => t.cancel());
|
|
220
|
+
this.sessionCancellationTokens.clear();
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
onStateChange() {
|
|
224
|
+
const state = this.state;
|
|
225
|
+
if (this.previousState !== state) {
|
|
226
|
+
this.contextKeyService.bufferChangeEvents(() => {
|
|
227
|
+
this.debugState.set(getStateLabel(state));
|
|
228
|
+
this.inDebugMode.set(state !== 0 );
|
|
229
|
+
const debugUxValue = (((state !== 0 && state !== 1) ) || (this.adapterManager.hasEnabledDebuggers() && this.configurationManager.selectedConfiguration.name)) ? 'default' : 'simple';
|
|
230
|
+
this.debugUx.set(debugUxValue);
|
|
231
|
+
this.debugStorage.storeDebugUxState(debugUxValue);
|
|
232
|
+
});
|
|
233
|
+
this.previousState = state;
|
|
234
|
+
this._onDidChangeState.fire(state);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
get onDidChangeState() {
|
|
238
|
+
return this._onDidChangeState.event;
|
|
239
|
+
}
|
|
240
|
+
get onDidNewSession() {
|
|
241
|
+
return this._onDidNewSession.event;
|
|
242
|
+
}
|
|
243
|
+
get onWillNewSession() {
|
|
244
|
+
return this._onWillNewSession.event;
|
|
245
|
+
}
|
|
246
|
+
get onDidEndSession() {
|
|
247
|
+
return this._onDidEndSession.event;
|
|
248
|
+
}
|
|
249
|
+
lazySetup() {
|
|
250
|
+
if (!this.haveDoneLazySetup) {
|
|
251
|
+
this.disposables.add(this.fileService.registerProvider(DEBUG_MEMORY_SCHEME, ( new DebugMemoryFileSystemProvider(this))));
|
|
252
|
+
this.haveDoneLazySetup = true;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
256
|
+
const message = options && options.noDebug ? ( nls.localize(
|
|
257
|
+
'runTrust',
|
|
258
|
+
"Running executes build tasks and program code from your workspace."
|
|
259
|
+
)) : ( nls.localize(
|
|
260
|
+
'debugTrust',
|
|
261
|
+
"Debugging executes build tasks and program code from your workspace."
|
|
262
|
+
));
|
|
263
|
+
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
264
|
+
if (!trust) {
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
this.lazySetup();
|
|
268
|
+
this.startInitializingState(options);
|
|
269
|
+
this.hasDebugged.set(true);
|
|
270
|
+
try {
|
|
271
|
+
await this.extensionService.activateByEvent('onDebug');
|
|
272
|
+
if (saveBeforeStart) {
|
|
273
|
+
await saveAllBeforeDebugStart(this.configurationService, this.editorService);
|
|
274
|
+
}
|
|
275
|
+
await this.extensionService.whenInstalledExtensionsRegistered();
|
|
276
|
+
let config;
|
|
277
|
+
let compound;
|
|
278
|
+
if (!configOrName) {
|
|
279
|
+
configOrName = this.configurationManager.selectedConfiguration.name;
|
|
280
|
+
}
|
|
281
|
+
if (typeof configOrName === 'string' && launch) {
|
|
282
|
+
config = launch.getConfiguration(configOrName);
|
|
283
|
+
compound = launch.getCompound(configOrName);
|
|
284
|
+
}
|
|
285
|
+
else if (typeof configOrName !== 'string') {
|
|
286
|
+
config = configOrName;
|
|
287
|
+
}
|
|
288
|
+
if (compound) {
|
|
289
|
+
if (!compound.configurations) {
|
|
290
|
+
throw new Error(nls.localize({ key: 'compoundMustHaveConfigurations', comment: ['compound indicates a "compounds" configuration item', '"configurations" is an attribute and should not be localized'] }, "Compound must have \"configurations\" attribute set in order to start multiple configurations."));
|
|
291
|
+
}
|
|
292
|
+
if (compound.preLaunchTask) {
|
|
293
|
+
const taskResult = await this.taskRunner.runTaskAndCheckErrors(launch?.workspace || this.contextService.getWorkspace(), compound.preLaunchTask);
|
|
294
|
+
if (taskResult === 0 ) {
|
|
295
|
+
this.endInitializingState();
|
|
296
|
+
return false;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
if (compound.stopAll) {
|
|
300
|
+
options = { ...options, compoundRoot: ( new DebugCompoundRoot()) };
|
|
301
|
+
}
|
|
302
|
+
const values = await Promise.all(( compound.configurations.map(configData => {
|
|
303
|
+
const name = typeof configData === 'string' ? configData : configData.name;
|
|
304
|
+
if (name === compound.name) {
|
|
305
|
+
return Promise.resolve(false);
|
|
306
|
+
}
|
|
307
|
+
let launchForName;
|
|
308
|
+
if (typeof configData === 'string') {
|
|
309
|
+
const launchesContainingName = this.configurationManager.getLaunches().filter(l => !!l.getConfiguration(name));
|
|
310
|
+
if (launchesContainingName.length === 1) {
|
|
311
|
+
launchForName = launchesContainingName[0];
|
|
312
|
+
}
|
|
313
|
+
else if (launch && launchesContainingName.length > 1 && launchesContainingName.indexOf(launch) >= 0) {
|
|
314
|
+
launchForName = launch;
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
throw new Error(launchesContainingName.length === 0 ? nls.localize('noConfigurationNameInWorkspace', "Could not find launch configuration '{0}' in the workspace.", name)
|
|
318
|
+
: nls.localize('multipleConfigurationNamesInWorkspace', "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.", name));
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
else if (configData.folder) {
|
|
322
|
+
const launchesMatchingConfigData = this.configurationManager.getLaunches().filter(l => l.workspace && l.workspace.name === configData.folder && !!l.getConfiguration(configData.name));
|
|
323
|
+
if (launchesMatchingConfigData.length === 1) {
|
|
324
|
+
launchForName = launchesMatchingConfigData[0];
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
throw new Error(nls.localize('noFolderWithName', "Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.", configData.folder, configData.name, compound.name));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return this.createSession(launchForName, launchForName.getConfiguration(name), options);
|
|
331
|
+
})));
|
|
332
|
+
const result = values.every(success => !!success);
|
|
333
|
+
this.endInitializingState();
|
|
334
|
+
return result;
|
|
335
|
+
}
|
|
336
|
+
if (configOrName && !config) {
|
|
337
|
+
const message = !!launch ? ( nls.localize(
|
|
338
|
+
'configMissing',
|
|
339
|
+
"Configuration '{0}' is missing in 'launch.json'.",
|
|
340
|
+
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
341
|
+
)) :
|
|
342
|
+
( nls.localize(
|
|
343
|
+
'launchJsonDoesNotExist',
|
|
344
|
+
"'launch.json' does not exist for passed workspace folder."
|
|
345
|
+
));
|
|
346
|
+
throw new Error(message);
|
|
347
|
+
}
|
|
348
|
+
const result = await this.createSession(launch, config, options);
|
|
349
|
+
this.endInitializingState();
|
|
350
|
+
return result;
|
|
351
|
+
}
|
|
352
|
+
catch (err) {
|
|
353
|
+
this.notificationService.error(err);
|
|
354
|
+
this.endInitializingState();
|
|
355
|
+
return Promise.reject(err);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
async createSession(launch, config, options) {
|
|
359
|
+
let type;
|
|
360
|
+
if (config) {
|
|
361
|
+
type = config.type;
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
config = Object.create(null);
|
|
365
|
+
}
|
|
366
|
+
if (options && options.noDebug) {
|
|
367
|
+
config.noDebug = true;
|
|
368
|
+
}
|
|
369
|
+
else if (options && typeof options.noDebug === 'undefined' && options.parentSession && options.parentSession.configuration.noDebug) {
|
|
370
|
+
config.noDebug = true;
|
|
371
|
+
}
|
|
372
|
+
const unresolvedConfig = deepClone(config);
|
|
373
|
+
let guess;
|
|
374
|
+
let activeEditor;
|
|
375
|
+
if (!type) {
|
|
376
|
+
activeEditor = this.editorService.activeEditor;
|
|
377
|
+
if (activeEditor && activeEditor.resource) {
|
|
378
|
+
type = this.chosenEnvironments[( activeEditor.resource.toString())];
|
|
379
|
+
}
|
|
380
|
+
if (!type) {
|
|
381
|
+
guess = await this.adapterManager.guessDebugger(false);
|
|
382
|
+
if (guess) {
|
|
383
|
+
type = guess.type;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
const initCancellationToken = ( new CancellationTokenSource());
|
|
388
|
+
const sessionId = generateUuid();
|
|
389
|
+
this.sessionCancellationTokens.set(sessionId, initCancellationToken);
|
|
390
|
+
const configByProviders = await this.configurationManager.resolveConfigurationByProviders(launch && launch.workspace ? launch.workspace.uri : undefined, type, config, initCancellationToken.token);
|
|
391
|
+
if (configByProviders && configByProviders.type) {
|
|
392
|
+
try {
|
|
393
|
+
let resolvedConfig = await this.substituteVariables(launch, configByProviders);
|
|
394
|
+
if (!resolvedConfig) {
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
if (initCancellationToken.token.isCancellationRequested) {
|
|
398
|
+
return false;
|
|
399
|
+
}
|
|
400
|
+
const workspace = launch?.workspace || this.contextService.getWorkspace();
|
|
401
|
+
const taskResult = await this.taskRunner.runTaskAndCheckErrors(workspace, resolvedConfig.preLaunchTask);
|
|
402
|
+
if (taskResult === 0 ) {
|
|
403
|
+
return false;
|
|
404
|
+
}
|
|
405
|
+
const cfg = await this.configurationManager.resolveDebugConfigurationWithSubstitutedVariables(launch && launch.workspace ? launch.workspace.uri : undefined, type, resolvedConfig, initCancellationToken.token);
|
|
406
|
+
if (!cfg) {
|
|
407
|
+
if (launch && type && cfg === null && !initCancellationToken.token.isCancellationRequested) {
|
|
408
|
+
await launch.openConfigFile({ preserveFocus: true, type }, initCancellationToken.token);
|
|
409
|
+
}
|
|
410
|
+
return false;
|
|
411
|
+
}
|
|
412
|
+
resolvedConfig = cfg;
|
|
413
|
+
const dbg = this.adapterManager.getDebugger(resolvedConfig.type);
|
|
414
|
+
if (!dbg || (configByProviders.request !== 'attach' && configByProviders.request !== 'launch')) {
|
|
415
|
+
let message;
|
|
416
|
+
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
417
|
+
message = configByProviders.request ? ( nls.localize(
|
|
418
|
+
'debugRequestNotSupported',
|
|
419
|
+
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
420
|
+
'request',
|
|
421
|
+
configByProviders.request
|
|
422
|
+
))
|
|
423
|
+
: ( nls.localize(
|
|
424
|
+
'debugRequesMissing',
|
|
425
|
+
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
426
|
+
'request'
|
|
427
|
+
));
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
message = resolvedConfig.type ? ( nls.localize(
|
|
431
|
+
'debugTypeNotSupported',
|
|
432
|
+
"Configured debug type '{0}' is not supported.",
|
|
433
|
+
resolvedConfig.type
|
|
434
|
+
)) :
|
|
435
|
+
( nls.localize(
|
|
436
|
+
'debugTypeMissing',
|
|
437
|
+
"Missing property 'type' for the chosen launch configuration."
|
|
438
|
+
));
|
|
439
|
+
}
|
|
440
|
+
const actionList = [];
|
|
441
|
+
actionList.push(( new Action('installAdditionalDebuggers', ( nls.localize(
|
|
442
|
+
{ key: 'installAdditionalDebuggers', comment: ['Placeholder is the debug type, so for example "node", "python"'] },
|
|
443
|
+
"Install {0} Extension",
|
|
444
|
+
resolvedConfig.type
|
|
445
|
+
)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type))));
|
|
446
|
+
await this.showError(message, actionList);
|
|
447
|
+
return false;
|
|
448
|
+
}
|
|
449
|
+
if (!dbg.enabled) {
|
|
450
|
+
await this.showError(debuggerDisabledMessage(dbg.type), []);
|
|
451
|
+
return false;
|
|
452
|
+
}
|
|
453
|
+
const result = await this.doCreateSession(sessionId, launch?.workspace, { resolved: resolvedConfig, unresolved: unresolvedConfig }, options);
|
|
454
|
+
if (result && guess && activeEditor && activeEditor.resource) {
|
|
455
|
+
this.chosenEnvironments[( activeEditor.resource.toString())] = guess.type;
|
|
456
|
+
this.debugStorage.storeChosenEnvironments(this.chosenEnvironments);
|
|
457
|
+
}
|
|
458
|
+
return result;
|
|
459
|
+
}
|
|
460
|
+
catch (err) {
|
|
461
|
+
if (err && err.message) {
|
|
462
|
+
await this.showError(err.message);
|
|
463
|
+
}
|
|
464
|
+
else if (this.contextService.getWorkbenchState() === 1 ) {
|
|
465
|
+
await this.showError(( nls.localize(
|
|
466
|
+
'noFolderWorkspaceDebugError',
|
|
467
|
+
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
468
|
+
)));
|
|
469
|
+
}
|
|
470
|
+
if (launch && !initCancellationToken.token.isCancellationRequested) {
|
|
471
|
+
await launch.openConfigFile({ preserveFocus: true }, initCancellationToken.token);
|
|
472
|
+
}
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
if (launch && type && configByProviders === null && !initCancellationToken.token.isCancellationRequested) {
|
|
477
|
+
await launch.openConfigFile({ preserveFocus: true, type }, initCancellationToken.token);
|
|
478
|
+
}
|
|
479
|
+
return false;
|
|
480
|
+
}
|
|
481
|
+
async doCreateSession(sessionId, root, configuration, options) {
|
|
482
|
+
const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
|
|
483
|
+
if (options?.startedByUser && ( this.model.getSessions().some(s => s.getLabel() === session.getLabel())) && configuration.resolved.suppressMultipleSessionWarning !== true) {
|
|
484
|
+
const result = await this.dialogService.confirm({ message: ( nls.localize(
|
|
485
|
+
'multipleSession',
|
|
486
|
+
"'{0}' is already running. Do you want to start another instance?",
|
|
487
|
+
session.getLabel()
|
|
488
|
+
)) });
|
|
489
|
+
if (!result.confirmed) {
|
|
490
|
+
return false;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
this.model.addSession(session);
|
|
494
|
+
this.registerSessionListeners(session);
|
|
495
|
+
this._onWillNewSession.fire(session);
|
|
496
|
+
const openDebug = this.configurationService.getValue('debug').openDebug;
|
|
497
|
+
if (!configuration.resolved.noDebug && (openDebug === 'openOnSessionStart' || (openDebug !== 'neverOpen' && this.viewModel.firstSessionStart)) && !session.suppressDebugView) {
|
|
498
|
+
await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 );
|
|
499
|
+
}
|
|
500
|
+
try {
|
|
501
|
+
await this.launchOrAttachToSession(session);
|
|
502
|
+
const internalConsoleOptions = session.configuration.internalConsoleOptions || this.configurationService.getValue('debug').internalConsoleOptions;
|
|
503
|
+
if (internalConsoleOptions === 'openOnSessionStart' || (this.viewModel.firstSessionStart && internalConsoleOptions === 'openOnFirstSessionStart')) {
|
|
504
|
+
this.viewsService.openView(REPL_VIEW_ID, false);
|
|
505
|
+
}
|
|
506
|
+
this.viewModel.firstSessionStart = false;
|
|
507
|
+
const showSubSessions = this.configurationService.getValue('debug').showSubSessionsInToolBar;
|
|
508
|
+
const sessions = this.model.getSessions();
|
|
509
|
+
const shownSessions = showSubSessions ? sessions : sessions.filter(s => !s.parentSession);
|
|
510
|
+
if (shownSessions.length > 1) {
|
|
511
|
+
this.viewModel.setMultiSessionView(true);
|
|
512
|
+
}
|
|
513
|
+
this._onDidNewSession.fire(session);
|
|
514
|
+
return true;
|
|
515
|
+
}
|
|
516
|
+
catch (error) {
|
|
517
|
+
if (errors.isCancellationError(error)) {
|
|
518
|
+
return false;
|
|
519
|
+
}
|
|
520
|
+
if (session && session.getReplElements().length > 0) {
|
|
521
|
+
this.viewsService.openView(REPL_VIEW_ID, false);
|
|
522
|
+
}
|
|
523
|
+
if (session.configuration && session.configuration.request === 'attach' && session.configuration.__autoAttach) {
|
|
524
|
+
return false;
|
|
525
|
+
}
|
|
526
|
+
const errorMessage = error instanceof Error ? error.message : error;
|
|
527
|
+
if (error.showUser !== false) {
|
|
528
|
+
await this.showError(errorMessage, isErrorWithActions(error) ? error.actions : []);
|
|
529
|
+
}
|
|
530
|
+
return false;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
async launchOrAttachToSession(session, forceFocus = false) {
|
|
534
|
+
const dbgr = this.adapterManager.getDebugger(session.configuration.type);
|
|
535
|
+
try {
|
|
536
|
+
await session.initialize(dbgr);
|
|
537
|
+
await session.launchOrAttach(session.configuration);
|
|
538
|
+
const launchJsonExists = !!session.root && !!this.configurationService.getValue('launch', { resource: session.root.uri });
|
|
539
|
+
await this.telemetry.logDebugSessionStart(dbgr, launchJsonExists);
|
|
540
|
+
if (forceFocus || !this.viewModel.focusedSession || (session.parentSession === this.viewModel.focusedSession && session.compact)) {
|
|
541
|
+
await this.focusStackFrame(undefined, undefined, session);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
catch (err) {
|
|
545
|
+
if (this.viewModel.focusedSession === session) {
|
|
546
|
+
await this.focusStackFrame(undefined);
|
|
547
|
+
}
|
|
548
|
+
return Promise.reject(err);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
registerSessionListeners(session) {
|
|
552
|
+
const sessionRunningScheduler = ( new RunOnceScheduler(() => {
|
|
553
|
+
if (session.state === 3 && this.viewModel.focusedSession === session) {
|
|
554
|
+
this.viewModel.setFocus(undefined, this.viewModel.focusedThread, session, false);
|
|
555
|
+
}
|
|
556
|
+
}, 200));
|
|
557
|
+
this.disposables.add(session.onDidChangeState(() => {
|
|
558
|
+
if (session.state === 3 && this.viewModel.focusedSession === session) {
|
|
559
|
+
sessionRunningScheduler.schedule();
|
|
560
|
+
}
|
|
561
|
+
if (session === this.viewModel.focusedSession) {
|
|
562
|
+
this.onStateChange();
|
|
563
|
+
}
|
|
564
|
+
}));
|
|
565
|
+
this.disposables.add(session.onDidEndAdapter(async (adapterExitEvent) => {
|
|
566
|
+
if (adapterExitEvent) {
|
|
567
|
+
if (adapterExitEvent.error) {
|
|
568
|
+
this.notificationService.error(( nls.localize(
|
|
569
|
+
'debugAdapterCrash',
|
|
570
|
+
"Debug adapter process has terminated unexpectedly ({0})",
|
|
571
|
+
adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
|
|
572
|
+
)));
|
|
573
|
+
}
|
|
574
|
+
this.telemetry.logDebugSessionStop(session, adapterExitEvent);
|
|
575
|
+
}
|
|
576
|
+
const extensionDebugSession = getExtensionHostDebugSession(session);
|
|
577
|
+
if (extensionDebugSession && extensionDebugSession.state === 3 && extensionDebugSession.configuration.noDebug) {
|
|
578
|
+
this.extensionHostDebugService.close(extensionDebugSession.getId());
|
|
579
|
+
}
|
|
580
|
+
if (session.configuration.postDebugTask) {
|
|
581
|
+
const root = session.root ?? this.contextService.getWorkspace();
|
|
582
|
+
try {
|
|
583
|
+
await this.taskRunner.runTask(root, session.configuration.postDebugTask);
|
|
584
|
+
}
|
|
585
|
+
catch (err) {
|
|
586
|
+
this.notificationService.error(err);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
this.endInitializingState();
|
|
590
|
+
this.cancelTokens(session.getId());
|
|
591
|
+
this._onDidEndSession.fire(session);
|
|
592
|
+
const focusedSession = this.viewModel.focusedSession;
|
|
593
|
+
if (focusedSession && focusedSession.getId() === session.getId()) {
|
|
594
|
+
const { session, thread, stackFrame } = getStackFrameThreadAndSessionToFocus(this.model, undefined, undefined, undefined, focusedSession);
|
|
595
|
+
this.viewModel.setFocus(stackFrame, thread, session, false);
|
|
596
|
+
}
|
|
597
|
+
if (this.model.getSessions().length === 0) {
|
|
598
|
+
this.viewModel.setMultiSessionView(false);
|
|
599
|
+
if (this.layoutService.isVisible("workbench.parts.sidebar" ) && this.configurationService.getValue('debug').openExplorerOnEnd) {
|
|
600
|
+
this.paneCompositeService.openPaneComposite(VIEWLET_ID$1, 0 );
|
|
601
|
+
}
|
|
602
|
+
const dataBreakpoints = this.model.getDataBreakpoints().filter(dbp => !dbp.canPersist);
|
|
603
|
+
dataBreakpoints.forEach(dbp => this.model.removeDataBreakpoints(dbp.getId()));
|
|
604
|
+
if (this.configurationService.getValue('debug').console.closeOnEnd) {
|
|
605
|
+
const debugConsoleContainer = this.viewDescriptorService.getViewContainerByViewId(REPL_VIEW_ID);
|
|
606
|
+
if (debugConsoleContainer && this.viewsService.isViewContainerVisible(debugConsoleContainer.id)) {
|
|
607
|
+
this.viewsService.closeViewContainer(debugConsoleContainer.id);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
this.model.removeExceptionBreakpointsForSession(session.getId());
|
|
612
|
+
}));
|
|
613
|
+
}
|
|
614
|
+
async restartSession(session, restartData) {
|
|
615
|
+
if (session.saveBeforeRestart) {
|
|
616
|
+
await saveAllBeforeDebugStart(this.configurationService, this.editorService);
|
|
617
|
+
}
|
|
618
|
+
const isAutoRestart = !!restartData;
|
|
619
|
+
const runTasks = async () => {
|
|
620
|
+
if (isAutoRestart) {
|
|
621
|
+
return Promise.resolve(1 );
|
|
622
|
+
}
|
|
623
|
+
const root = session.root || this.contextService.getWorkspace();
|
|
624
|
+
await this.taskRunner.runTask(root, session.configuration.preRestartTask);
|
|
625
|
+
await this.taskRunner.runTask(root, session.configuration.postDebugTask);
|
|
626
|
+
const taskResult1 = await this.taskRunner.runTaskAndCheckErrors(root, session.configuration.preLaunchTask);
|
|
627
|
+
if (taskResult1 !== 1 ) {
|
|
628
|
+
return taskResult1;
|
|
629
|
+
}
|
|
630
|
+
return this.taskRunner.runTaskAndCheckErrors(root, session.configuration.postRestartTask);
|
|
631
|
+
};
|
|
632
|
+
const extensionDebugSession = getExtensionHostDebugSession(session);
|
|
633
|
+
if (extensionDebugSession) {
|
|
634
|
+
const taskResult = await runTasks();
|
|
635
|
+
if (taskResult === 1 ) {
|
|
636
|
+
this.extensionHostDebugService.reload(extensionDebugSession.getId());
|
|
637
|
+
}
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
let needsToSubstitute = false;
|
|
641
|
+
let unresolved;
|
|
642
|
+
const launch = session.root ? this.configurationManager.getLaunch(session.root.uri) : undefined;
|
|
643
|
+
if (launch) {
|
|
644
|
+
unresolved = launch.getConfiguration(session.configuration.name);
|
|
645
|
+
if (unresolved && !equals(unresolved, session.unresolvedConfiguration)) {
|
|
646
|
+
unresolved.type = session.configuration.type;
|
|
647
|
+
unresolved.noDebug = session.configuration.noDebug;
|
|
648
|
+
needsToSubstitute = true;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
let resolved = session.configuration;
|
|
652
|
+
if (launch && needsToSubstitute && unresolved) {
|
|
653
|
+
const initCancellationToken = ( new CancellationTokenSource());
|
|
654
|
+
this.sessionCancellationTokens.set(session.getId(), initCancellationToken);
|
|
655
|
+
const resolvedByProviders = await this.configurationManager.resolveConfigurationByProviders(launch.workspace ? launch.workspace.uri : undefined, unresolved.type, unresolved, initCancellationToken.token);
|
|
656
|
+
if (resolvedByProviders) {
|
|
657
|
+
resolved = await this.substituteVariables(launch, resolvedByProviders);
|
|
658
|
+
if (resolved && !initCancellationToken.token.isCancellationRequested) {
|
|
659
|
+
resolved = await this.configurationManager.resolveDebugConfigurationWithSubstitutedVariables(launch && launch.workspace ? launch.workspace.uri : undefined, unresolved.type, resolved, initCancellationToken.token);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
resolved = resolvedByProviders;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
if (resolved) {
|
|
667
|
+
session.setConfiguration({ resolved, unresolved });
|
|
668
|
+
}
|
|
669
|
+
session.configuration.__restart = restartData;
|
|
670
|
+
if (session.capabilities.supportsRestartRequest) {
|
|
671
|
+
const taskResult = await runTasks();
|
|
672
|
+
if (taskResult === 1 ) {
|
|
673
|
+
await session.restart();
|
|
674
|
+
}
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
const shouldFocus = !!this.viewModel.focusedSession && session.getId() === this.viewModel.focusedSession.getId();
|
|
678
|
+
if (isAutoRestart) {
|
|
679
|
+
await session.disconnect(true);
|
|
680
|
+
}
|
|
681
|
+
else {
|
|
682
|
+
await session.terminate(true);
|
|
683
|
+
}
|
|
684
|
+
return ( new Promise((c, e) => {
|
|
685
|
+
setTimeout(async () => {
|
|
686
|
+
const taskResult = await runTasks();
|
|
687
|
+
if (taskResult !== 1 ) {
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
if (!resolved) {
|
|
691
|
+
return c(undefined);
|
|
692
|
+
}
|
|
693
|
+
try {
|
|
694
|
+
await this.launchOrAttachToSession(session, shouldFocus);
|
|
695
|
+
this._onDidNewSession.fire(session);
|
|
696
|
+
c(undefined);
|
|
697
|
+
}
|
|
698
|
+
catch (error) {
|
|
699
|
+
e(error);
|
|
700
|
+
}
|
|
701
|
+
}, 300);
|
|
702
|
+
}));
|
|
703
|
+
}
|
|
704
|
+
async stopSession(session, disconnect = false, suspend = false) {
|
|
705
|
+
if (session) {
|
|
706
|
+
return disconnect ? session.disconnect(undefined, suspend) : session.terminate();
|
|
707
|
+
}
|
|
708
|
+
const sessions = this.model.getSessions();
|
|
709
|
+
if (sessions.length === 0) {
|
|
710
|
+
this.taskRunner.cancel();
|
|
711
|
+
await this.quickInputService.cancel();
|
|
712
|
+
this.endInitializingState();
|
|
713
|
+
this.cancelTokens(undefined);
|
|
714
|
+
}
|
|
715
|
+
return Promise.all(( sessions.map(s => disconnect ? s.disconnect(undefined, suspend) : s.terminate())));
|
|
716
|
+
}
|
|
717
|
+
async substituteVariables(launch, config) {
|
|
718
|
+
const dbg = this.adapterManager.getDebugger(config.type);
|
|
719
|
+
if (dbg) {
|
|
720
|
+
let folder = undefined;
|
|
721
|
+
if (launch && launch.workspace) {
|
|
722
|
+
folder = launch.workspace;
|
|
723
|
+
}
|
|
724
|
+
else {
|
|
725
|
+
const folders = this.contextService.getWorkspace().folders;
|
|
726
|
+
if (folders.length === 1) {
|
|
727
|
+
folder = folders[0];
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
try {
|
|
731
|
+
return await dbg.substituteVariables(folder, config);
|
|
732
|
+
}
|
|
733
|
+
catch (err) {
|
|
734
|
+
this.showError(err.message, undefined, !!launch?.getConfiguration(config.name));
|
|
735
|
+
return undefined;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
return Promise.resolve(config);
|
|
739
|
+
}
|
|
740
|
+
async showError(message, errorActions = [], promptLaunchJson = true) {
|
|
741
|
+
const configureAction = ( new Action(
|
|
742
|
+
DEBUG_CONFIGURE_COMMAND_ID,
|
|
743
|
+
DEBUG_CONFIGURE_LABEL,
|
|
744
|
+
undefined,
|
|
745
|
+
true,
|
|
746
|
+
() => this.commandService.executeCommand(DEBUG_CONFIGURE_COMMAND_ID)
|
|
747
|
+
));
|
|
748
|
+
const actions = errorActions.filter((action) => action.id.endsWith('.command')).length > 0 ?
|
|
749
|
+
errorActions :
|
|
750
|
+
[...errorActions, ...(promptLaunchJson ? [configureAction] : [])];
|
|
751
|
+
await this.dialogService.prompt({
|
|
752
|
+
type: Severity.Error,
|
|
753
|
+
message,
|
|
754
|
+
buttons: ( actions.map(action => ({
|
|
755
|
+
label: action.label,
|
|
756
|
+
run: () => action.run()
|
|
757
|
+
}))),
|
|
758
|
+
cancelButton: true
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
async focusStackFrame(_stackFrame, _thread, _session, options) {
|
|
762
|
+
const { stackFrame, thread, session } = getStackFrameThreadAndSessionToFocus(this.model, _stackFrame, _thread, _session);
|
|
763
|
+
if (stackFrame) {
|
|
764
|
+
const editor = await stackFrame.openInEditor(this.editorService, options?.preserveFocus ?? true, options?.sideBySide, options?.pinned);
|
|
765
|
+
if (editor) {
|
|
766
|
+
if (editor.input === DisassemblyViewInput.instance) ;
|
|
767
|
+
else {
|
|
768
|
+
const control = editor.getControl();
|
|
769
|
+
if (stackFrame && isCodeEditor(control) && control.hasModel()) {
|
|
770
|
+
const model = control.getModel();
|
|
771
|
+
const lineNumber = stackFrame.range.startLineNumber;
|
|
772
|
+
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
773
|
+
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
774
|
+
aria.alert(( nls.localize(
|
|
775
|
+
{ key: 'debuggingPaused', comment: ['First placeholder is the file line content, second placeholder is the reason why debugging is stopped, for example "breakpoint", third is the stack frame name, and last is the line number.'] },
|
|
776
|
+
"{0}, debugging paused {1}, {2}:{3}",
|
|
777
|
+
lineContent,
|
|
778
|
+
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
779
|
+
stackFrame.source ? stackFrame.source.name : '',
|
|
780
|
+
stackFrame.range.startLineNumber
|
|
781
|
+
)));
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
if (session) {
|
|
788
|
+
this.debugType.set(session.configuration.type);
|
|
789
|
+
}
|
|
790
|
+
else {
|
|
791
|
+
this.debugType.reset();
|
|
792
|
+
}
|
|
793
|
+
this.viewModel.setFocus(stackFrame, thread, session, !!options?.explicit);
|
|
794
|
+
}
|
|
795
|
+
addWatchExpression(name) {
|
|
796
|
+
const we = this.model.addWatchExpression(name);
|
|
797
|
+
if (!name) {
|
|
798
|
+
this.viewModel.setSelectedExpression(we, false);
|
|
799
|
+
}
|
|
800
|
+
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
801
|
+
}
|
|
802
|
+
renameWatchExpression(id, newName) {
|
|
803
|
+
this.model.renameWatchExpression(id, newName);
|
|
804
|
+
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
805
|
+
}
|
|
806
|
+
moveWatchExpression(id, position) {
|
|
807
|
+
this.model.moveWatchExpression(id, position);
|
|
808
|
+
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
809
|
+
}
|
|
810
|
+
removeWatchExpressions(id) {
|
|
811
|
+
this.model.removeWatchExpressions(id);
|
|
812
|
+
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
813
|
+
}
|
|
814
|
+
canSetBreakpointsIn(model) {
|
|
815
|
+
return this.adapterManager.canSetBreakpointsIn(model);
|
|
816
|
+
}
|
|
817
|
+
async enableOrDisableBreakpoints(enable, breakpoint) {
|
|
818
|
+
if (breakpoint) {
|
|
819
|
+
this.model.setEnablement(breakpoint, enable);
|
|
820
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
821
|
+
if (breakpoint instanceof Breakpoint) {
|
|
822
|
+
await this.sendBreakpoints(breakpoint.originalUri);
|
|
823
|
+
}
|
|
824
|
+
else if (breakpoint instanceof FunctionBreakpoint) {
|
|
825
|
+
await this.sendFunctionBreakpoints();
|
|
826
|
+
}
|
|
827
|
+
else if (breakpoint instanceof DataBreakpoint) {
|
|
828
|
+
await this.sendDataBreakpoints();
|
|
829
|
+
}
|
|
830
|
+
else if (breakpoint instanceof InstructionBreakpoint) {
|
|
831
|
+
await this.sendInstructionBreakpoints();
|
|
832
|
+
}
|
|
833
|
+
else {
|
|
834
|
+
await this.sendExceptionBreakpoints();
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
else {
|
|
838
|
+
this.model.enableOrDisableAllBreakpoints(enable);
|
|
839
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
840
|
+
await this.sendAllBreakpoints();
|
|
841
|
+
}
|
|
842
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
843
|
+
}
|
|
844
|
+
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
845
|
+
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
846
|
+
if (ariaAnnounce) {
|
|
847
|
+
breakpoints.forEach(bp => aria.status(( nls.localize(
|
|
848
|
+
'breakpointAdded',
|
|
849
|
+
"Added breakpoint, line {0}, file {1}",
|
|
850
|
+
bp.lineNumber,
|
|
851
|
+
uri.fsPath
|
|
852
|
+
))));
|
|
853
|
+
}
|
|
854
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
855
|
+
await this.sendBreakpoints(uri);
|
|
856
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
857
|
+
return breakpoints;
|
|
858
|
+
}
|
|
859
|
+
async updateBreakpoints(uri, data, sendOnResourceSaved) {
|
|
860
|
+
this.model.updateBreakpoints(data);
|
|
861
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
862
|
+
if (sendOnResourceSaved) {
|
|
863
|
+
this.breakpointsToSendOnResourceSaved.add(uri);
|
|
864
|
+
}
|
|
865
|
+
else {
|
|
866
|
+
await this.sendBreakpoints(uri);
|
|
867
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
async removeBreakpoints(id) {
|
|
871
|
+
const toRemove = this.model.getBreakpoints().filter(bp => !id || bp.getId() === id);
|
|
872
|
+
toRemove.forEach(bp => aria.status(( nls.localize(
|
|
873
|
+
'breakpointRemoved',
|
|
874
|
+
"Removed breakpoint, line {0}, file {1}",
|
|
875
|
+
bp.lineNumber,
|
|
876
|
+
bp.uri.fsPath
|
|
877
|
+
))));
|
|
878
|
+
const urisToClear = ( distinct(toRemove, bp => ( bp.originalUri.toString())).map(bp => bp.originalUri));
|
|
879
|
+
this.model.removeBreakpoints(toRemove);
|
|
880
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
881
|
+
await Promise.all(( urisToClear.map(uri => this.sendBreakpoints(uri))));
|
|
882
|
+
}
|
|
883
|
+
setBreakpointsActivated(activated) {
|
|
884
|
+
this.model.setBreakpointsActivated(activated);
|
|
885
|
+
return this.sendAllBreakpoints();
|
|
886
|
+
}
|
|
887
|
+
addFunctionBreakpoint(name, id) {
|
|
888
|
+
this.model.addFunctionBreakpoint(name || '', id);
|
|
889
|
+
}
|
|
890
|
+
async updateFunctionBreakpoint(id, update) {
|
|
891
|
+
this.model.updateFunctionBreakpoint(id, update);
|
|
892
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
893
|
+
await this.sendFunctionBreakpoints();
|
|
894
|
+
}
|
|
895
|
+
async removeFunctionBreakpoints(id) {
|
|
896
|
+
this.model.removeFunctionBreakpoints(id);
|
|
897
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
898
|
+
await this.sendFunctionBreakpoints();
|
|
899
|
+
}
|
|
900
|
+
async addDataBreakpoint(label, dataId, canPersist, accessTypes, accessType) {
|
|
901
|
+
this.model.addDataBreakpoint(label, dataId, canPersist, accessTypes, accessType);
|
|
902
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
903
|
+
await this.sendDataBreakpoints();
|
|
904
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
905
|
+
}
|
|
906
|
+
async removeDataBreakpoints(id) {
|
|
907
|
+
this.model.removeDataBreakpoints(id);
|
|
908
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
909
|
+
await this.sendDataBreakpoints();
|
|
910
|
+
}
|
|
911
|
+
async addInstructionBreakpoint(address, offset, condition, hitCondition) {
|
|
912
|
+
this.model.addInstructionBreakpoint(address, offset, condition, hitCondition);
|
|
913
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
914
|
+
await this.sendInstructionBreakpoints();
|
|
915
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
916
|
+
}
|
|
917
|
+
async removeInstructionBreakpoints(address) {
|
|
918
|
+
this.model.removeInstructionBreakpoints(address);
|
|
919
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
920
|
+
await this.sendInstructionBreakpoints();
|
|
921
|
+
}
|
|
922
|
+
setExceptionBreakpointFallbackSession(sessionId) {
|
|
923
|
+
this.model.setExceptionBreakpointFallbackSession(sessionId);
|
|
924
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
925
|
+
}
|
|
926
|
+
setExceptionBreakpointsForSession(session, data) {
|
|
927
|
+
this.model.setExceptionBreakpointsForSession(session.getId(), data);
|
|
928
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
929
|
+
}
|
|
930
|
+
async setExceptionBreakpointCondition(exceptionBreakpoint, condition) {
|
|
931
|
+
this.model.setExceptionBreakpointCondition(exceptionBreakpoint, condition);
|
|
932
|
+
this.debugStorage.storeBreakpoints(this.model);
|
|
933
|
+
await this.sendExceptionBreakpoints();
|
|
934
|
+
}
|
|
935
|
+
async sendAllBreakpoints(session) {
|
|
936
|
+
const setBreakpointsPromises = ( distinct(this.model.getBreakpoints(), bp => ( bp.originalUri.toString()))
|
|
937
|
+
.map(bp => this.sendBreakpoints(bp.originalUri, false, session)));
|
|
938
|
+
if (session?.capabilities.supportsConfigurationDoneRequest) {
|
|
939
|
+
await Promise.all([
|
|
940
|
+
...setBreakpointsPromises,
|
|
941
|
+
this.sendFunctionBreakpoints(session),
|
|
942
|
+
this.sendDataBreakpoints(session),
|
|
943
|
+
this.sendInstructionBreakpoints(session),
|
|
944
|
+
this.sendExceptionBreakpoints(session),
|
|
945
|
+
]);
|
|
946
|
+
}
|
|
947
|
+
else {
|
|
948
|
+
await Promise.all(setBreakpointsPromises);
|
|
949
|
+
await this.sendFunctionBreakpoints(session);
|
|
950
|
+
await this.sendDataBreakpoints(session);
|
|
951
|
+
await this.sendInstructionBreakpoints(session);
|
|
952
|
+
await this.sendExceptionBreakpoints(session);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
async sendBreakpoints(modelUri, sourceModified = false, session) {
|
|
956
|
+
const breakpointsToSend = this.model.getBreakpoints({ originalUri: modelUri, enabledOnly: true });
|
|
957
|
+
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
958
|
+
if (!s.configuration.noDebug) {
|
|
959
|
+
await s.sendBreakpoints(modelUri, breakpointsToSend, sourceModified);
|
|
960
|
+
}
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
async sendFunctionBreakpoints(session) {
|
|
964
|
+
const breakpointsToSend = this.model.getFunctionBreakpoints().filter(fbp => fbp.enabled && this.model.areBreakpointsActivated());
|
|
965
|
+
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
966
|
+
if (s.capabilities.supportsFunctionBreakpoints && !s.configuration.noDebug) {
|
|
967
|
+
await s.sendFunctionBreakpoints(breakpointsToSend);
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
async sendDataBreakpoints(session) {
|
|
972
|
+
const breakpointsToSend = this.model.getDataBreakpoints().filter(fbp => fbp.enabled && this.model.areBreakpointsActivated());
|
|
973
|
+
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
974
|
+
if (s.capabilities.supportsDataBreakpoints && !s.configuration.noDebug) {
|
|
975
|
+
await s.sendDataBreakpoints(breakpointsToSend);
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
async sendInstructionBreakpoints(session) {
|
|
980
|
+
const breakpointsToSend = this.model.getInstructionBreakpoints().filter(fbp => fbp.enabled && this.model.areBreakpointsActivated());
|
|
981
|
+
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
982
|
+
if (s.capabilities.supportsInstructionBreakpoints && !s.configuration.noDebug) {
|
|
983
|
+
await s.sendInstructionBreakpoints(breakpointsToSend);
|
|
984
|
+
}
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
sendExceptionBreakpoints(session) {
|
|
988
|
+
return sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
989
|
+
const enabledExceptionBps = this.model.getExceptionBreakpointsForSession(s.getId()).filter(exb => exb.enabled);
|
|
990
|
+
if (s.capabilities.supportsConfigurationDoneRequest && (!s.capabilities.exceptionBreakpointFilters || s.capabilities.exceptionBreakpointFilters.length === 0)) {
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
if (!s.configuration.noDebug) {
|
|
994
|
+
await s.sendExceptionBreakpoints(enabledExceptionBps);
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
onFileChanges(fileChangesEvent) {
|
|
999
|
+
const toRemove = this.model.getBreakpoints().filter(bp => fileChangesEvent.contains(bp.originalUri, 2 ));
|
|
1000
|
+
if (toRemove.length) {
|
|
1001
|
+
this.model.removeBreakpoints(toRemove);
|
|
1002
|
+
}
|
|
1003
|
+
const toSend = [];
|
|
1004
|
+
for (const uri of this.breakpointsToSendOnResourceSaved) {
|
|
1005
|
+
if (fileChangesEvent.contains(uri, 0 )) {
|
|
1006
|
+
toSend.push(uri);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
for (const uri of toSend) {
|
|
1010
|
+
this.breakpointsToSendOnResourceSaved.delete(uri);
|
|
1011
|
+
this.sendBreakpoints(uri, true);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
async runTo(uri, lineNumber, column) {
|
|
1015
|
+
let breakpointToRemove;
|
|
1016
|
+
let threadToContinue = this.getViewModel().focusedThread;
|
|
1017
|
+
const addTempBreakPoint = async () => {
|
|
1018
|
+
const bpExists = !!(this.getModel().getBreakpoints({ column, lineNumber, uri }).length);
|
|
1019
|
+
if (!bpExists) {
|
|
1020
|
+
const addResult = await this.addAndValidateBreakpoints(uri, lineNumber, column);
|
|
1021
|
+
if (addResult.thread) {
|
|
1022
|
+
threadToContinue = addResult.thread;
|
|
1023
|
+
}
|
|
1024
|
+
if (addResult.breakpoint) {
|
|
1025
|
+
breakpointToRemove = addResult.breakpoint;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
return { threadToContinue, breakpointToRemove };
|
|
1029
|
+
};
|
|
1030
|
+
const removeTempBreakPoint = (state) => {
|
|
1031
|
+
if (state === 2 || state === 0 ) {
|
|
1032
|
+
if (breakpointToRemove) {
|
|
1033
|
+
this.removeBreakpoints(breakpointToRemove.getId());
|
|
1034
|
+
}
|
|
1035
|
+
return true;
|
|
1036
|
+
}
|
|
1037
|
+
return false;
|
|
1038
|
+
};
|
|
1039
|
+
await addTempBreakPoint();
|
|
1040
|
+
if (this.state === 0 ) {
|
|
1041
|
+
const { launch, name, getConfig } = this.getConfigurationManager().selectedConfiguration;
|
|
1042
|
+
const config = await getConfig();
|
|
1043
|
+
const configOrName = config ? Object.assign(deepClone(config), {}) : name;
|
|
1044
|
+
const listener = this.onDidChangeState(state => {
|
|
1045
|
+
if (removeTempBreakPoint(state)) {
|
|
1046
|
+
listener.dispose();
|
|
1047
|
+
}
|
|
1048
|
+
});
|
|
1049
|
+
await this.startDebugging(launch, configOrName, undefined, true);
|
|
1050
|
+
}
|
|
1051
|
+
if (this.state === 2 ) {
|
|
1052
|
+
const focusedSession = this.getViewModel().focusedSession;
|
|
1053
|
+
if (!focusedSession || !threadToContinue) {
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
const listener = threadToContinue.session.onDidChangeState(() => {
|
|
1057
|
+
if (removeTempBreakPoint(focusedSession.state)) {
|
|
1058
|
+
listener.dispose();
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
await threadToContinue.continue();
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
async addAndValidateBreakpoints(uri, lineNumber, column) {
|
|
1065
|
+
const debugModel = this.getModel();
|
|
1066
|
+
const viewModel = this.getViewModel();
|
|
1067
|
+
const breakpoints = await this.addBreakpoints(uri, [{ lineNumber, column }], false);
|
|
1068
|
+
const breakpoint = breakpoints?.[0];
|
|
1069
|
+
if (!breakpoint) {
|
|
1070
|
+
return { breakpoint: undefined, thread: viewModel.focusedThread };
|
|
1071
|
+
}
|
|
1072
|
+
if (!breakpoint.verified) {
|
|
1073
|
+
let listener;
|
|
1074
|
+
await raceTimeout(( new Promise(resolve => {
|
|
1075
|
+
listener = debugModel.onDidChangeBreakpoints(() => {
|
|
1076
|
+
if (breakpoint.verified) {
|
|
1077
|
+
resolve();
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
})), 2000);
|
|
1081
|
+
listener.dispose();
|
|
1082
|
+
}
|
|
1083
|
+
let bestThread = viewModel.focusedThread;
|
|
1084
|
+
let bestScore = 0 ;
|
|
1085
|
+
for (const sessionId of breakpoint.sessionsThatVerified) {
|
|
1086
|
+
const session = debugModel.getSession(sessionId);
|
|
1087
|
+
if (!session) {
|
|
1088
|
+
continue;
|
|
1089
|
+
}
|
|
1090
|
+
const threads = session.getAllThreads().filter(t => t.stopped);
|
|
1091
|
+
if (bestScore < 3 ) {
|
|
1092
|
+
if (viewModel.focusedThread && threads.includes(viewModel.focusedThread)) {
|
|
1093
|
+
bestThread = viewModel.focusedThread;
|
|
1094
|
+
bestScore = 3 ;
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
if (bestScore < 2 ) {
|
|
1098
|
+
const pausedInThisFile = threads.find(t => {
|
|
1099
|
+
const top = t.getTopStackFrame();
|
|
1100
|
+
return top && this.uriIdentityService.extUri.isEqual(top.source.uri, uri);
|
|
1101
|
+
});
|
|
1102
|
+
if (pausedInThisFile) {
|
|
1103
|
+
bestThread = pausedInThisFile;
|
|
1104
|
+
bestScore = 2 ;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
if (bestScore < 1 ) {
|
|
1108
|
+
bestThread = threads[0];
|
|
1109
|
+
bestScore = 2 ;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
return { thread: bestThread, breakpoint };
|
|
1113
|
+
}
|
|
1114
|
+
};
|
|
1115
|
+
DebugService = ( __decorate([
|
|
1116
|
+
( __param(0, IEditorService)),
|
|
1117
|
+
( __param(1, IPaneCompositePartService)),
|
|
1118
|
+
( __param(2, IViewsService)),
|
|
1119
|
+
( __param(3, IViewDescriptorService)),
|
|
1120
|
+
( __param(4, INotificationService)),
|
|
1121
|
+
( __param(5, IDialogService)),
|
|
1122
|
+
( __param(6, IWorkbenchLayoutService)),
|
|
1123
|
+
( __param(7, IWorkspaceContextService)),
|
|
1124
|
+
( __param(8, IContextKeyService)),
|
|
1125
|
+
( __param(9, ILifecycleService)),
|
|
1126
|
+
( __param(10, IInstantiationService)),
|
|
1127
|
+
( __param(11, IExtensionService)),
|
|
1128
|
+
( __param(12, IFileService)),
|
|
1129
|
+
( __param(13, IConfigurationService)),
|
|
1130
|
+
( __param(14, IExtensionHostDebugService)),
|
|
1131
|
+
( __param(15, IActivityService)),
|
|
1132
|
+
( __param(16, ICommandService)),
|
|
1133
|
+
( __param(17, IQuickInputService)),
|
|
1134
|
+
( __param(18, IWorkspaceTrustRequestService)),
|
|
1135
|
+
( __param(19, IUriIdentityService))
|
|
1136
|
+
], DebugService));
|
|
1137
|
+
function getStackFrameThreadAndSessionToFocus(model, stackFrame, thread, session, avoidSession) {
|
|
1138
|
+
if (!session) {
|
|
1139
|
+
if (stackFrame || thread) {
|
|
1140
|
+
session = stackFrame ? stackFrame.thread.session : thread.session;
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
const sessions = model.getSessions();
|
|
1144
|
+
const stoppedSession = sessions.find(s => s.state === 2 );
|
|
1145
|
+
session = stoppedSession || sessions.find(s => s !== avoidSession && s !== avoidSession?.parentSession) || (sessions.length ? sessions[0] : undefined);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
if (!thread) {
|
|
1149
|
+
if (stackFrame) {
|
|
1150
|
+
thread = stackFrame.thread;
|
|
1151
|
+
}
|
|
1152
|
+
else {
|
|
1153
|
+
const threads = session ? session.getAllThreads() : undefined;
|
|
1154
|
+
const stoppedThread = threads && threads.find(t => t.stopped);
|
|
1155
|
+
thread = stoppedThread || (threads && threads.length ? threads[0] : undefined);
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
if (!stackFrame && thread) {
|
|
1159
|
+
stackFrame = thread.getTopStackFrame();
|
|
1160
|
+
}
|
|
1161
|
+
return { session, thread, stackFrame };
|
|
1162
|
+
}
|
|
1163
|
+
async function sendToOneOrAllSessions(model, session, send) {
|
|
1164
|
+
if (session) {
|
|
1165
|
+
await send(session);
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
await Promise.all(( model.getSessions().map(s => send(s))));
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
export { DebugService, getStackFrameThreadAndSessionToFocus };
|