@codingame/monaco-vscode-api 1.82.4 → 1.82.5-next.1
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/extensions.d.ts +3 -3
- package/external/xterm/typings/xterm.d.ts +1729 -0
- package/external/xterm-addon-canvas/typings/xterm-addon-canvas.d.ts +38 -0
- package/external/xterm-addon-image/typings/xterm-addon-image.d.ts +115 -0
- package/external/xterm-addon-search/typings/xterm-addon-search.d.ts +141 -0
- package/external/xterm-addon-serialize/typings/xterm-addon-serialize.d.ts +83 -0
- package/external/xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts +9 -0
- package/external/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts +43 -0
- package/external/xterm-headless/typings/xterm-headless.d.ts +49 -0
- package/missing-services.js +0 -1
- package/monaco-editor-treemending.patch +1026 -1026
- package/package.json +21 -1
- package/service-override/bulkEdit.js +0 -1
- package/service-override/environment.js +0 -1
- package/service-override/extensions.js +1 -1
- package/service-override/files.js +0 -1
- package/service-override/keybindings.js +1 -6
- package/service-override/layout.js +0 -1
- package/service-override/output.js +0 -1
- package/service-override/quickaccess.js +0 -1
- package/services.js +10 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
- package/README.md +0 -392
- package/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -2
- package/service-override/accessibility.d.ts +0 -5
- package/service-override/accessibility.js +0 -11
- package/service-override/audioCue.d.ts +0 -5
- package/service-override/audioCue.js +0 -13
- package/service-override/bulkEdit.d.ts +0 -5
- package/service-override/configuration.d.ts +0 -17
- package/service-override/configuration.js +0 -117
- package/service-override/debug.d.ts +0 -5
- package/service-override/debug.js +0 -23
- package/service-override/dialogs.d.ts +0 -5
- package/service-override/dialogs.js +0 -57
- package/service-override/editor.d.ts +0 -10
- package/service-override/editor.js +0 -37
- package/service-override/environment.d.ts +0 -6
- package/service-override/extensions.d.ts +0 -50
- package/service-override/files.d.ts +0 -103
- package/service-override/keybindings.d.ts +0 -10
- package/service-override/languageDetectionWorker.d.ts +0 -5
- package/service-override/languageDetectionWorker.js +0 -15
- package/service-override/languages.d.ts +0 -11
- package/service-override/languages.js +0 -27
- package/service-override/layout.d.ts +0 -71
- package/service-override/lifecycle.d.ts +0 -5
- package/service-override/lifecycle.js +0 -10
- package/service-override/markers.d.ts +0 -5
- package/service-override/markers.js +0 -6
- package/service-override/model.d.ts +0 -5
- package/service-override/model.js +0 -10
- package/service-override/notifications.d.ts +0 -5
- package/service-override/notifications.js +0 -34
- package/service-override/output.d.ts +0 -6
- package/service-override/preferences.d.ts +0 -5
- package/service-override/preferences.js +0 -16
- package/service-override/quickaccess.d.ts +0 -10
- package/service-override/remoteAgent.d.ts +0 -6
- package/service-override/remoteAgent.js +0 -42
- package/service-override/search.d.ts +0 -5
- package/service-override/search.js +0 -19
- package/service-override/snippets.d.ts +0 -9
- package/service-override/snippets.js +0 -21
- package/service-override/storage.d.ts +0 -40
- package/service-override/storage.js +0 -116
- package/service-override/terminal.d.ts +0 -69
- package/service-override/terminal.js +0 -117
- package/service-override/textmate.d.ts +0 -6
- package/service-override/textmate.js +0 -41
- package/service-override/theme.d.ts +0 -7
- package/service-override/theme.js +0 -26
- package/service-override/viewBanner.d.ts +0 -6
- package/service-override/viewBanner.js +0 -10
- package/service-override/viewStatusBar.d.ts +0 -6
- package/service-override/viewStatusBar.js +0 -10
- package/service-override/viewTitleBar.d.ts +0 -6
- package/service-override/viewTitleBar.js +0 -10
- package/service-override/views.d.ts +0 -74
- package/service-override/views.js +0 -511
- package/service-override/workspaceTrust.d.ts +0 -5
- package/service-override/workspaceTrust.js +0 -13
- package/vscode/src/vs/base/browser/broadcast.js +0 -52
- package/vscode/src/vs/base/browser/indexedDB.d.ts +0 -17
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
- package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -465
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -977
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +0 -60
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +0 -14
- package/vscode/src/vs/base/common/codicons.d.ts +0 -556
- package/vscode/src/vs/base/common/processes.js +0 -24
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -42
- package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +0 -56
- package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +0 -116
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +0 -67
- package/vscode/src/vs/platform/audioCues/browser/media/all.mp3.js +0 -20
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +0 -10
- package/vscode/src/vs/platform/download/common/downloadIpc.js +0 -16
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +0 -43
- package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +0 -136
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +0 -50
- package/vscode/src/vs/platform/log/common/logIpc.js +0 -24
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +0 -94
- package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +0 -193
- package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +0 -107
- package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -566
- package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
- package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
- package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -46
- package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
- package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
- package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
- package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -37
- package/vscode/src/vs/platform/terminal/common/terminalLogService.js +0 -42
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +0 -467
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
- package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -66
- package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
- package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +0 -40
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -699
- package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +0 -450
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +0 -14
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +0 -236
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +0 -43
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +0 -33
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +0 -138
- package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.d.ts +0 -21
- package/vscode/src/vs/workbench/api/common/extHostInitDataService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostLocalizationService.d.ts +0 -29
- package/vscode/src/vs/workbench/api/common/extHostManagedSockets.d.ts +0 -11
- package/vscode/src/vs/workbench/api/common/extHostRpcService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostStoragePaths.d.ts +0 -14
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +0 -53
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +0 -12
- package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.d.ts +0 -9
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -91
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +0 -21
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -605
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +0 -597
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +0 -116
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -783
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -88
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +0 -228
- package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -691
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +0 -7
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +0 -84
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -318
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +0 -69
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +0 -127
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -692
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -141
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -414
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -507
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1233
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -133
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -306
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -850
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/media/titlecontrol.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +0 -247
- package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +0 -1569
- package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +0 -292
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -124
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -58
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -227
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -212
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -419
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -398
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -78
- package/vscode/src/vs/workbench/browser/parts/panel/media/basepanelpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +0 -134
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -756
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +0 -59
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -217
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +0 -109
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +0 -234
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +0 -249
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +0 -439
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +0 -134
- package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +0 -115
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +0 -77
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +0 -365
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +0 -216
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +0 -104
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +0 -4
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +0 -1589
- package/vscode/src/vs/workbench/common/activity.js +0 -3
- package/vscode/src/vs/workbench/common/dialogs.js +0 -31
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +0 -13
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +0 -312
- package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +0 -63
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +0 -45
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +0 -170
- package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +0 -181
- package/vscode/src/vs/workbench/contrib/audioCues/browser/commands.js +0 -49
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -262
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -339
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -119
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +0 -35
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +0 -345
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -362
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -255
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +0 -249
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -14
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -137
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -72
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -106
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -198
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -783
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -397
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1296
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -176
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -958
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -496
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -345
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -297
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -398
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -825
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -619
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -58
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -525
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -679
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -354
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -204
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -141
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1172
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1142
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -66
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -273
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -312
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -166
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -661
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -103
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -229
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -629
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -693
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -951
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -46
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -334
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -96
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -573
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -413
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -100
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -19
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -98
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1480
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -344
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -121
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -173
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -115
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -258
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -25
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -281
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +0 -2414
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +0 -16
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -5
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -73
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -36
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +0 -325
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -230
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -97
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -352
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -426
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -508
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -615
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +0 -94
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -144
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -53
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -134
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -353
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +0 -586
- package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +0 -75
- package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +0 -200
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +0 -455
- package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +0 -670
- package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +0 -873
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +0 -132
- package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +0 -170
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +0 -70
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +0 -158
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +0 -3
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -261
- package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +0 -10
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -290
- package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -66
- package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +0 -129
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +0 -272
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +0 -1102
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +0 -1213
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +0 -94
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +0 -47
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +0 -37
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +0 -747
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +0 -349
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +0 -468
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +0 -1477
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +0 -504
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +0 -296
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +0 -79
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +0 -2041
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +0 -771
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -1004
- package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +0 -196
- package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +0 -151
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +0 -67
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -207
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +0 -27
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +0 -1666
- package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +0 -481
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -759
- package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearchContributions.js +0 -7
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -220
- package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -232
- package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -7
- package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -224
- package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -513
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +0 -46
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -204
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -354
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -459
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -365
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -35
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -23
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -308
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -41
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -39
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -58
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -383
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -1916
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -636
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -220
- package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -85
- package/vscode/src/vs/workbench/contrib/search/common/constants.js +0 -66
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +0 -11
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -477
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -700
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -187
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -298
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -135
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -268
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +0 -20
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +0 -264
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +0 -87
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +0 -126
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +0 -56
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +0 -136
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +0 -83
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +0 -113
- package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +0 -101
- package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -54
- package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +0 -175
- package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +0 -311
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +0 -240
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1964
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +0 -22
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +0 -215
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -16
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +0 -186
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +0 -239
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +0 -482
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +0 -367
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -37
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2101
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +0 -82
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +0 -82
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -762
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -617
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +0 -278
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +0 -316
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +0 -218
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -146
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -269
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +0 -1134
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -108
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +0 -420
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -676
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -72
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +0 -598
- package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -469
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -97
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -56
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -416
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -793
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +0 -96
- package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -356
- package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +0 -253
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +0 -1016
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -272
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -93
- package/vscode/src/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +0 -42
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +0 -110
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +0 -232
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +0 -138
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +0 -226
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +0 -142
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +0 -98
- package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +0 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +0 -155
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -247
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -334
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -117
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -288
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -86
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -640
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -120
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -61
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -232
- package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +0 -842
- package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +0 -1047
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +0 -14
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -94
- package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +0 -878
- package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +0 -1170
- package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +0 -80
- package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +0 -589
- package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +0 -119
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -303
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -26
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +0 -174
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +0 -10
- package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +0 -320
- package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +0 -989
- package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +0 -66
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -622
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +0 -4
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +0 -2
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1454
- package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -162
- package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -523
- package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -4
- package/vscode/src/vs/workbench/services/label/common/labelService.js +0 -412
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js +0 -173
- package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +0 -259
- package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +0 -121
- package/vscode/src/vs/workbench/services/localization/common/locale.js +0 -3
- package/vscode/src/vs/workbench/services/notification/common/notificationService.js +0 -188
- package/vscode/src/vs/workbench/services/outline/browser/outlineService.js +0 -35
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +0 -37
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +0 -556
- package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +0 -547
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +0 -39
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +0 -1039
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +0 -393
- package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +0 -71
- package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +0 -177
- package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +0 -51
- package/vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js +0 -38
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +0 -35
- package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -370
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +0 -40
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +0 -280
- package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
- package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -399
- package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
- package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +0 -62
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +0 -157
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +0 -200
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.worker.js +0 -87
- package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateWorkerTokenizer.js +0 -140
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.d.ts +0 -11
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +0 -459
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +0 -72
- package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +0 -36
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +0 -118
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +0 -93
- package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +0 -24
- package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +0 -187
- package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +0 -353
- package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +0 -290
- package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +0 -742
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +0 -864
- package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +0 -265
- package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +0 -303
- package/vscode/src/vs/workbench/services/themes/common/plistParser.js +0 -439
- package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -94
- package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +0 -120
- package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +0 -66
- package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +0 -372
- package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +0 -254
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -689
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -612
- package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +0 -322
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +0 -27
- package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +0 -151
- package/workers/languageDetection.worker.js +0 -8
- package/workers/outputLinkComputer.worker.js +0 -3
- package/workers/textmate.worker.js +0 -3
|
@@ -1,1172 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../external/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 '../../../../../../../override/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
|
-
import { IDialogService } from '../../../../platform/dialogs/common/dialogs.js';
|
|
51
|
-
let DebugService = class DebugService {
|
|
52
|
-
constructor(editorService, paneCompositeService, viewsService, viewDescriptorService, notificationService, dialogService, layoutService, contextService, contextKeyService, lifecycleService, instantiationService, extensionService, fileService, configurationService, extensionHostDebugService, activityService, commandService, quickInputService, workspaceTrustRequestService, uriIdentityService) {
|
|
53
|
-
this.editorService = editorService;
|
|
54
|
-
this.paneCompositeService = paneCompositeService;
|
|
55
|
-
this.viewsService = viewsService;
|
|
56
|
-
this.viewDescriptorService = viewDescriptorService;
|
|
57
|
-
this.notificationService = notificationService;
|
|
58
|
-
this.dialogService = dialogService;
|
|
59
|
-
this.layoutService = layoutService;
|
|
60
|
-
this.contextService = contextService;
|
|
61
|
-
this.contextKeyService = contextKeyService;
|
|
62
|
-
this.lifecycleService = lifecycleService;
|
|
63
|
-
this.instantiationService = instantiationService;
|
|
64
|
-
this.extensionService = extensionService;
|
|
65
|
-
this.fileService = fileService;
|
|
66
|
-
this.configurationService = configurationService;
|
|
67
|
-
this.extensionHostDebugService = extensionHostDebugService;
|
|
68
|
-
this.activityService = activityService;
|
|
69
|
-
this.commandService = commandService;
|
|
70
|
-
this.quickInputService = quickInputService;
|
|
71
|
-
this.workspaceTrustRequestService = workspaceTrustRequestService;
|
|
72
|
-
this.uriIdentityService = uriIdentityService;
|
|
73
|
-
this.disposables = ( new DisposableStore());
|
|
74
|
-
this.initializing = false;
|
|
75
|
-
this.sessionCancellationTokens = ( new Map());
|
|
76
|
-
this.haveDoneLazySetup = false;
|
|
77
|
-
this.breakpointsToSendOnResourceSaved = ( new Set());
|
|
78
|
-
this._onDidChangeState = ( new Emitter());
|
|
79
|
-
this._onDidNewSession = ( new Emitter());
|
|
80
|
-
this._onWillNewSession = ( new Emitter());
|
|
81
|
-
this._onDidEndSession = ( new Emitter());
|
|
82
|
-
this.adapterManager = this.instantiationService.createInstance(AdapterManager, { onDidNewSession: this.onDidNewSession });
|
|
83
|
-
this.disposables.add(this.adapterManager);
|
|
84
|
-
this.configurationManager = this.instantiationService.createInstance(ConfigurationManager, this.adapterManager);
|
|
85
|
-
this.disposables.add(this.configurationManager);
|
|
86
|
-
this.debugStorage = this.disposables.add(this.instantiationService.createInstance(DebugStorage));
|
|
87
|
-
this.chosenEnvironments = this.debugStorage.loadChosenEnvironments();
|
|
88
|
-
this.model = this.instantiationService.createInstance(DebugModel, this.debugStorage);
|
|
89
|
-
this.telemetry = this.instantiationService.createInstance(DebugTelemetry, this.model);
|
|
90
|
-
this.viewModel = ( new ViewModel(contextKeyService));
|
|
91
|
-
this.taskRunner = this.instantiationService.createInstance(DebugTaskRunner);
|
|
92
|
-
this.disposables.add(this.fileService.onDidFilesChange(e => this.onFileChanges(e)));
|
|
93
|
-
this.disposables.add(this.lifecycleService.onWillShutdown(this.dispose, this));
|
|
94
|
-
this.disposables.add(this.extensionHostDebugService.onAttachSession(event => {
|
|
95
|
-
const session = this.model.getSession(event.sessionId, true);
|
|
96
|
-
if (session) {
|
|
97
|
-
session.configuration.request = 'attach';
|
|
98
|
-
session.configuration.port = event.port;
|
|
99
|
-
session.setSubId(event.subId);
|
|
100
|
-
this.launchOrAttachToSession(session);
|
|
101
|
-
}
|
|
102
|
-
}));
|
|
103
|
-
this.disposables.add(this.extensionHostDebugService.onTerminateSession(event => {
|
|
104
|
-
const session = this.model.getSession(event.sessionId);
|
|
105
|
-
if (session && session.subId === event.subId) {
|
|
106
|
-
session.disconnect();
|
|
107
|
-
}
|
|
108
|
-
}));
|
|
109
|
-
this.disposables.add(this.viewModel.onDidFocusStackFrame(() => {
|
|
110
|
-
this.onStateChange();
|
|
111
|
-
}));
|
|
112
|
-
this.disposables.add(this.viewModel.onDidFocusSession((session) => {
|
|
113
|
-
this.onStateChange();
|
|
114
|
-
if (session) {
|
|
115
|
-
this.setExceptionBreakpointFallbackSession(session.getId());
|
|
116
|
-
}
|
|
117
|
-
}));
|
|
118
|
-
this.disposables.add(Event.any(this.adapterManager.onDidRegisterDebugger, this.configurationManager.onDidSelectConfiguration)(() => {
|
|
119
|
-
const debugUxValue = (this.state !== 0 || (this.configurationManager.getAllConfigurations().length > 0 && this.adapterManager.hasEnabledDebuggers())) ? 'default' : 'simple';
|
|
120
|
-
this.debugUx.set(debugUxValue);
|
|
121
|
-
this.debugStorage.storeDebugUxState(debugUxValue);
|
|
122
|
-
}));
|
|
123
|
-
this.disposables.add(this.model.onDidChangeCallStack(() => {
|
|
124
|
-
const numberOfSessions = this.model.getSessions().filter(s => !s.parentSession).length;
|
|
125
|
-
this.activity?.dispose();
|
|
126
|
-
if (numberOfSessions > 0) {
|
|
127
|
-
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
128
|
-
if (viewContainer) {
|
|
129
|
-
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)))) });
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}));
|
|
133
|
-
this.disposables.add(editorService.onDidActiveEditorChange(() => {
|
|
134
|
-
this.contextKeyService.bufferChangeEvents(() => {
|
|
135
|
-
if (editorService.activeEditor === DisassemblyViewInput.instance) {
|
|
136
|
-
this.disassemblyViewFocus.set(true);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
this.disassemblyViewFocus?.reset();
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}));
|
|
143
|
-
this.disposables.add(this.lifecycleService.onBeforeShutdown(() => {
|
|
144
|
-
for (const editor of editorService.editors) {
|
|
145
|
-
if (editor.resource?.scheme === DEBUG_MEMORY_SCHEME) {
|
|
146
|
-
editor.dispose();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}));
|
|
150
|
-
this.initContextKeys(contextKeyService);
|
|
151
|
-
}
|
|
152
|
-
initContextKeys(contextKeyService) {
|
|
153
|
-
queueMicrotask(() => {
|
|
154
|
-
contextKeyService.bufferChangeEvents(() => {
|
|
155
|
-
this.debugType = CONTEXT_DEBUG_TYPE.bindTo(contextKeyService);
|
|
156
|
-
this.debugState = CONTEXT_DEBUG_STATE.bindTo(contextKeyService);
|
|
157
|
-
this.hasDebugged = CONTEXT_HAS_DEBUGGED.bindTo(contextKeyService);
|
|
158
|
-
this.inDebugMode = CONTEXT_IN_DEBUG_MODE.bindTo(contextKeyService);
|
|
159
|
-
this.debugUx = CONTEXT_DEBUG_UX.bindTo(contextKeyService);
|
|
160
|
-
this.debugUx.set(this.debugStorage.loadDebugUxState());
|
|
161
|
-
this.breakpointsExist = CONTEXT_BREAKPOINTS_EXIST.bindTo(contextKeyService);
|
|
162
|
-
this.disassemblyViewFocus = CONTEXT_DISASSEMBLY_VIEW_FOCUS.bindTo(contextKeyService);
|
|
163
|
-
});
|
|
164
|
-
const setBreakpointsExistContext = () => this.breakpointsExist.set(!!(this.model.getBreakpoints().length || this.model.getDataBreakpoints().length || this.model.getFunctionBreakpoints().length));
|
|
165
|
-
setBreakpointsExistContext();
|
|
166
|
-
this.disposables.add(this.model.onDidChangeBreakpoints(() => setBreakpointsExistContext()));
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
getModel() {
|
|
170
|
-
return this.model;
|
|
171
|
-
}
|
|
172
|
-
getViewModel() {
|
|
173
|
-
return this.viewModel;
|
|
174
|
-
}
|
|
175
|
-
getConfigurationManager() {
|
|
176
|
-
return this.configurationManager;
|
|
177
|
-
}
|
|
178
|
-
getAdapterManager() {
|
|
179
|
-
return this.adapterManager;
|
|
180
|
-
}
|
|
181
|
-
sourceIsNotAvailable(uri) {
|
|
182
|
-
this.model.sourceIsNotAvailable(uri);
|
|
183
|
-
}
|
|
184
|
-
dispose() {
|
|
185
|
-
this.disposables.dispose();
|
|
186
|
-
}
|
|
187
|
-
get state() {
|
|
188
|
-
const focusedSession = this.viewModel.focusedSession;
|
|
189
|
-
if (focusedSession) {
|
|
190
|
-
return focusedSession.state;
|
|
191
|
-
}
|
|
192
|
-
return this.initializing ? 1 : 0 ;
|
|
193
|
-
}
|
|
194
|
-
get initializingOptions() {
|
|
195
|
-
return this._initializingOptions;
|
|
196
|
-
}
|
|
197
|
-
startInitializingState(options) {
|
|
198
|
-
if (!this.initializing) {
|
|
199
|
-
this.initializing = true;
|
|
200
|
-
this._initializingOptions = options;
|
|
201
|
-
this.onStateChange();
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
endInitializingState() {
|
|
205
|
-
if (this.initializing) {
|
|
206
|
-
this.initializing = false;
|
|
207
|
-
this._initializingOptions = undefined;
|
|
208
|
-
this.onStateChange();
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
cancelTokens(id) {
|
|
212
|
-
if (id) {
|
|
213
|
-
const token = this.sessionCancellationTokens.get(id);
|
|
214
|
-
if (token) {
|
|
215
|
-
token.cancel();
|
|
216
|
-
this.sessionCancellationTokens.delete(id);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
this.sessionCancellationTokens.forEach(t => t.cancel());
|
|
221
|
-
this.sessionCancellationTokens.clear();
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
onStateChange() {
|
|
225
|
-
const state = this.state;
|
|
226
|
-
if (this.previousState !== state) {
|
|
227
|
-
this.contextKeyService.bufferChangeEvents(() => {
|
|
228
|
-
this.debugState.set(getStateLabel(state));
|
|
229
|
-
this.inDebugMode.set(state !== 0 );
|
|
230
|
-
const debugUxValue = (((state !== 0 && state !== 1) ) || (this.adapterManager.hasEnabledDebuggers() && this.configurationManager.selectedConfiguration.name)) ? 'default' : 'simple';
|
|
231
|
-
this.debugUx.set(debugUxValue);
|
|
232
|
-
this.debugStorage.storeDebugUxState(debugUxValue);
|
|
233
|
-
});
|
|
234
|
-
this.previousState = state;
|
|
235
|
-
this._onDidChangeState.fire(state);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
get onDidChangeState() {
|
|
239
|
-
return this._onDidChangeState.event;
|
|
240
|
-
}
|
|
241
|
-
get onDidNewSession() {
|
|
242
|
-
return this._onDidNewSession.event;
|
|
243
|
-
}
|
|
244
|
-
get onWillNewSession() {
|
|
245
|
-
return this._onWillNewSession.event;
|
|
246
|
-
}
|
|
247
|
-
get onDidEndSession() {
|
|
248
|
-
return this._onDidEndSession.event;
|
|
249
|
-
}
|
|
250
|
-
lazySetup() {
|
|
251
|
-
if (!this.haveDoneLazySetup) {
|
|
252
|
-
this.disposables.add(this.fileService.registerProvider(DEBUG_MEMORY_SCHEME, ( new DebugMemoryFileSystemProvider(this))));
|
|
253
|
-
this.haveDoneLazySetup = true;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
257
|
-
const message = options && options.noDebug ? ( nls.localize(
|
|
258
|
-
'runTrust',
|
|
259
|
-
"Running executes build tasks and program code from your workspace."
|
|
260
|
-
)) : ( nls.localize(
|
|
261
|
-
'debugTrust',
|
|
262
|
-
"Debugging executes build tasks and program code from your workspace."
|
|
263
|
-
));
|
|
264
|
-
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
265
|
-
if (!trust) {
|
|
266
|
-
return false;
|
|
267
|
-
}
|
|
268
|
-
this.lazySetup();
|
|
269
|
-
this.startInitializingState(options);
|
|
270
|
-
this.hasDebugged.set(true);
|
|
271
|
-
try {
|
|
272
|
-
await this.extensionService.activateByEvent('onDebug');
|
|
273
|
-
if (saveBeforeStart) {
|
|
274
|
-
await saveAllBeforeDebugStart(this.configurationService, this.editorService);
|
|
275
|
-
}
|
|
276
|
-
await this.extensionService.whenInstalledExtensionsRegistered();
|
|
277
|
-
let config;
|
|
278
|
-
let compound;
|
|
279
|
-
if (!configOrName) {
|
|
280
|
-
configOrName = this.configurationManager.selectedConfiguration.name;
|
|
281
|
-
}
|
|
282
|
-
if (typeof configOrName === 'string' && launch) {
|
|
283
|
-
config = launch.getConfiguration(configOrName);
|
|
284
|
-
compound = launch.getCompound(configOrName);
|
|
285
|
-
}
|
|
286
|
-
else if (typeof configOrName !== 'string') {
|
|
287
|
-
config = configOrName;
|
|
288
|
-
}
|
|
289
|
-
if (compound) {
|
|
290
|
-
if (!compound.configurations) {
|
|
291
|
-
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."));
|
|
292
|
-
}
|
|
293
|
-
if (compound.preLaunchTask) {
|
|
294
|
-
const taskResult = await this.taskRunner.runTaskAndCheckErrors(launch?.workspace || this.contextService.getWorkspace(), compound.preLaunchTask);
|
|
295
|
-
if (taskResult === 0 ) {
|
|
296
|
-
this.endInitializingState();
|
|
297
|
-
return false;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
if (compound.stopAll) {
|
|
301
|
-
options = { ...options, compoundRoot: ( new DebugCompoundRoot()) };
|
|
302
|
-
}
|
|
303
|
-
const values = await Promise.all(( compound.configurations.map(configData => {
|
|
304
|
-
const name = typeof configData === 'string' ? configData : configData.name;
|
|
305
|
-
if (name === compound.name) {
|
|
306
|
-
return Promise.resolve(false);
|
|
307
|
-
}
|
|
308
|
-
let launchForName;
|
|
309
|
-
if (typeof configData === 'string') {
|
|
310
|
-
const launchesContainingName = this.configurationManager.getLaunches().filter(l => !!l.getConfiguration(name));
|
|
311
|
-
if (launchesContainingName.length === 1) {
|
|
312
|
-
launchForName = launchesContainingName[0];
|
|
313
|
-
}
|
|
314
|
-
else if (launch && launchesContainingName.length > 1 && launchesContainingName.indexOf(launch) >= 0) {
|
|
315
|
-
launchForName = launch;
|
|
316
|
-
}
|
|
317
|
-
else {
|
|
318
|
-
throw new Error(launchesContainingName.length === 0 ? nls.localize('noConfigurationNameInWorkspace', "Could not find launch configuration '{0}' in the workspace.", name)
|
|
319
|
-
: nls.localize('multipleConfigurationNamesInWorkspace', "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.", name));
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
else if (configData.folder) {
|
|
323
|
-
const launchesMatchingConfigData = this.configurationManager.getLaunches().filter(l => l.workspace && l.workspace.name === configData.folder && !!l.getConfiguration(configData.name));
|
|
324
|
-
if (launchesMatchingConfigData.length === 1) {
|
|
325
|
-
launchForName = launchesMatchingConfigData[0];
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
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));
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
return this.createSession(launchForName, launchForName.getConfiguration(name), options);
|
|
332
|
-
})));
|
|
333
|
-
const result = values.every(success => !!success);
|
|
334
|
-
this.endInitializingState();
|
|
335
|
-
return result;
|
|
336
|
-
}
|
|
337
|
-
if (configOrName && !config) {
|
|
338
|
-
const message = !!launch ? ( nls.localize(
|
|
339
|
-
'configMissing',
|
|
340
|
-
"Configuration '{0}' is missing in 'launch.json'.",
|
|
341
|
-
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
342
|
-
)) :
|
|
343
|
-
( nls.localize(
|
|
344
|
-
'launchJsonDoesNotExist',
|
|
345
|
-
"'launch.json' does not exist for passed workspace folder."
|
|
346
|
-
));
|
|
347
|
-
throw new Error(message);
|
|
348
|
-
}
|
|
349
|
-
const result = await this.createSession(launch, config, options);
|
|
350
|
-
this.endInitializingState();
|
|
351
|
-
return result;
|
|
352
|
-
}
|
|
353
|
-
catch (err) {
|
|
354
|
-
this.notificationService.error(err);
|
|
355
|
-
this.endInitializingState();
|
|
356
|
-
return Promise.reject(err);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
async createSession(launch, config, options) {
|
|
360
|
-
let type;
|
|
361
|
-
if (config) {
|
|
362
|
-
type = config.type;
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
config = Object.create(null);
|
|
366
|
-
}
|
|
367
|
-
if (options && options.noDebug) {
|
|
368
|
-
config.noDebug = true;
|
|
369
|
-
}
|
|
370
|
-
else if (options && typeof options.noDebug === 'undefined' && options.parentSession && options.parentSession.configuration.noDebug) {
|
|
371
|
-
config.noDebug = true;
|
|
372
|
-
}
|
|
373
|
-
const unresolvedConfig = deepClone(config);
|
|
374
|
-
let guess;
|
|
375
|
-
let activeEditor;
|
|
376
|
-
if (!type) {
|
|
377
|
-
activeEditor = this.editorService.activeEditor;
|
|
378
|
-
if (activeEditor && activeEditor.resource) {
|
|
379
|
-
type = this.chosenEnvironments[( activeEditor.resource.toString())];
|
|
380
|
-
}
|
|
381
|
-
if (!type) {
|
|
382
|
-
guess = await this.adapterManager.guessDebugger(false);
|
|
383
|
-
if (guess) {
|
|
384
|
-
type = guess.type;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
const initCancellationToken = ( new CancellationTokenSource());
|
|
389
|
-
const sessionId = generateUuid();
|
|
390
|
-
this.sessionCancellationTokens.set(sessionId, initCancellationToken);
|
|
391
|
-
const configByProviders = await this.configurationManager.resolveConfigurationByProviders(launch && launch.workspace ? launch.workspace.uri : undefined, type, config, initCancellationToken.token);
|
|
392
|
-
if (configByProviders && configByProviders.type) {
|
|
393
|
-
try {
|
|
394
|
-
let resolvedConfig = await this.substituteVariables(launch, configByProviders);
|
|
395
|
-
if (!resolvedConfig) {
|
|
396
|
-
return false;
|
|
397
|
-
}
|
|
398
|
-
if (initCancellationToken.token.isCancellationRequested) {
|
|
399
|
-
return false;
|
|
400
|
-
}
|
|
401
|
-
const workspace = launch?.workspace || this.contextService.getWorkspace();
|
|
402
|
-
const taskResult = await this.taskRunner.runTaskAndCheckErrors(workspace, resolvedConfig.preLaunchTask);
|
|
403
|
-
if (taskResult === 0 ) {
|
|
404
|
-
return false;
|
|
405
|
-
}
|
|
406
|
-
const cfg = await this.configurationManager.resolveDebugConfigurationWithSubstitutedVariables(launch && launch.workspace ? launch.workspace.uri : undefined, type, resolvedConfig, initCancellationToken.token);
|
|
407
|
-
if (!cfg) {
|
|
408
|
-
if (launch && type && cfg === null && !initCancellationToken.token.isCancellationRequested) {
|
|
409
|
-
await launch.openConfigFile({ preserveFocus: true, type }, initCancellationToken.token);
|
|
410
|
-
}
|
|
411
|
-
return false;
|
|
412
|
-
}
|
|
413
|
-
resolvedConfig = cfg;
|
|
414
|
-
const dbg = this.adapterManager.getDebugger(resolvedConfig.type);
|
|
415
|
-
if (!dbg || (configByProviders.request !== 'attach' && configByProviders.request !== 'launch')) {
|
|
416
|
-
let message;
|
|
417
|
-
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
418
|
-
message = configByProviders.request ? ( nls.localize(
|
|
419
|
-
'debugRequestNotSupported',
|
|
420
|
-
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
421
|
-
'request',
|
|
422
|
-
configByProviders.request
|
|
423
|
-
))
|
|
424
|
-
: ( nls.localize(
|
|
425
|
-
'debugRequesMissing',
|
|
426
|
-
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
427
|
-
'request'
|
|
428
|
-
));
|
|
429
|
-
}
|
|
430
|
-
else {
|
|
431
|
-
message = resolvedConfig.type ? ( nls.localize(
|
|
432
|
-
'debugTypeNotSupported',
|
|
433
|
-
"Configured debug type '{0}' is not supported.",
|
|
434
|
-
resolvedConfig.type
|
|
435
|
-
)) :
|
|
436
|
-
( nls.localize(
|
|
437
|
-
'debugTypeMissing',
|
|
438
|
-
"Missing property 'type' for the chosen launch configuration."
|
|
439
|
-
));
|
|
440
|
-
}
|
|
441
|
-
const actionList = [];
|
|
442
|
-
actionList.push(( new Action('installAdditionalDebuggers', ( nls.localize(
|
|
443
|
-
{ key: 'installAdditionalDebuggers', comment: ['Placeholder is the debug type, so for example "node", "python"'] },
|
|
444
|
-
"Install {0} Extension",
|
|
445
|
-
resolvedConfig.type
|
|
446
|
-
)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type))));
|
|
447
|
-
await this.showError(message, actionList);
|
|
448
|
-
return false;
|
|
449
|
-
}
|
|
450
|
-
if (!dbg.enabled) {
|
|
451
|
-
await this.showError(debuggerDisabledMessage(dbg.type), []);
|
|
452
|
-
return false;
|
|
453
|
-
}
|
|
454
|
-
const result = await this.doCreateSession(sessionId, launch?.workspace, { resolved: resolvedConfig, unresolved: unresolvedConfig }, options);
|
|
455
|
-
if (result && guess && activeEditor && activeEditor.resource) {
|
|
456
|
-
this.chosenEnvironments[( activeEditor.resource.toString())] = guess.type;
|
|
457
|
-
this.debugStorage.storeChosenEnvironments(this.chosenEnvironments);
|
|
458
|
-
}
|
|
459
|
-
return result;
|
|
460
|
-
}
|
|
461
|
-
catch (err) {
|
|
462
|
-
if (err && err.message) {
|
|
463
|
-
await this.showError(err.message);
|
|
464
|
-
}
|
|
465
|
-
else if (this.contextService.getWorkbenchState() === 1 ) {
|
|
466
|
-
await this.showError(( nls.localize(
|
|
467
|
-
'noFolderWorkspaceDebugError',
|
|
468
|
-
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
469
|
-
)));
|
|
470
|
-
}
|
|
471
|
-
if (launch && !initCancellationToken.token.isCancellationRequested) {
|
|
472
|
-
await launch.openConfigFile({ preserveFocus: true }, initCancellationToken.token);
|
|
473
|
-
}
|
|
474
|
-
return false;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
if (launch && type && configByProviders === null && !initCancellationToken.token.isCancellationRequested) {
|
|
478
|
-
await launch.openConfigFile({ preserveFocus: true, type }, initCancellationToken.token);
|
|
479
|
-
}
|
|
480
|
-
return false;
|
|
481
|
-
}
|
|
482
|
-
async doCreateSession(sessionId, root, configuration, options) {
|
|
483
|
-
const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
|
|
484
|
-
if (options?.startedByUser && ( this.model.getSessions().some(s => s.getLabel() === session.getLabel())) && configuration.resolved.suppressMultipleSessionWarning !== true) {
|
|
485
|
-
const result = await this.dialogService.confirm({ message: ( nls.localize(
|
|
486
|
-
'multipleSession',
|
|
487
|
-
"'{0}' is already running. Do you want to start another instance?",
|
|
488
|
-
session.getLabel()
|
|
489
|
-
)) });
|
|
490
|
-
if (!result.confirmed) {
|
|
491
|
-
return false;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
this.model.addSession(session);
|
|
495
|
-
this.registerSessionListeners(session);
|
|
496
|
-
this._onWillNewSession.fire(session);
|
|
497
|
-
const openDebug = this.configurationService.getValue('debug').openDebug;
|
|
498
|
-
if (!configuration.resolved.noDebug && (openDebug === 'openOnSessionStart' || (openDebug !== 'neverOpen' && this.viewModel.firstSessionStart)) && !session.suppressDebugView) {
|
|
499
|
-
await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 );
|
|
500
|
-
}
|
|
501
|
-
try {
|
|
502
|
-
await this.launchOrAttachToSession(session);
|
|
503
|
-
const internalConsoleOptions = session.configuration.internalConsoleOptions || this.configurationService.getValue('debug').internalConsoleOptions;
|
|
504
|
-
if (internalConsoleOptions === 'openOnSessionStart' || (this.viewModel.firstSessionStart && internalConsoleOptions === 'openOnFirstSessionStart')) {
|
|
505
|
-
this.viewsService.openView(REPL_VIEW_ID, false);
|
|
506
|
-
}
|
|
507
|
-
this.viewModel.firstSessionStart = false;
|
|
508
|
-
const showSubSessions = this.configurationService.getValue('debug').showSubSessionsInToolBar;
|
|
509
|
-
const sessions = this.model.getSessions();
|
|
510
|
-
const shownSessions = showSubSessions ? sessions : sessions.filter(s => !s.parentSession);
|
|
511
|
-
if (shownSessions.length > 1) {
|
|
512
|
-
this.viewModel.setMultiSessionView(true);
|
|
513
|
-
}
|
|
514
|
-
this._onDidNewSession.fire(session);
|
|
515
|
-
return true;
|
|
516
|
-
}
|
|
517
|
-
catch (error) {
|
|
518
|
-
if (errors.isCancellationError(error)) {
|
|
519
|
-
return false;
|
|
520
|
-
}
|
|
521
|
-
if (session && session.getReplElements().length > 0) {
|
|
522
|
-
this.viewsService.openView(REPL_VIEW_ID, false);
|
|
523
|
-
}
|
|
524
|
-
if (session.configuration && session.configuration.request === 'attach' && session.configuration.__autoAttach) {
|
|
525
|
-
return false;
|
|
526
|
-
}
|
|
527
|
-
const errorMessage = error instanceof Error ? error.message : error;
|
|
528
|
-
if (error.showUser !== false) {
|
|
529
|
-
await this.showError(errorMessage, isErrorWithActions(error) ? error.actions : []);
|
|
530
|
-
}
|
|
531
|
-
return false;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
async launchOrAttachToSession(session, forceFocus = false) {
|
|
535
|
-
const dbgr = this.adapterManager.getDebugger(session.configuration.type);
|
|
536
|
-
try {
|
|
537
|
-
await session.initialize(dbgr);
|
|
538
|
-
await session.launchOrAttach(session.configuration);
|
|
539
|
-
const launchJsonExists = !!session.root && !!this.configurationService.getValue('launch', { resource: session.root.uri });
|
|
540
|
-
await this.telemetry.logDebugSessionStart(dbgr, launchJsonExists);
|
|
541
|
-
if (forceFocus || !this.viewModel.focusedSession || (session.parentSession === this.viewModel.focusedSession && session.compact)) {
|
|
542
|
-
await this.focusStackFrame(undefined, undefined, session);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
catch (err) {
|
|
546
|
-
if (this.viewModel.focusedSession === session) {
|
|
547
|
-
await this.focusStackFrame(undefined);
|
|
548
|
-
}
|
|
549
|
-
return Promise.reject(err);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
registerSessionListeners(session) {
|
|
553
|
-
const sessionRunningScheduler = ( new RunOnceScheduler(() => {
|
|
554
|
-
if (session.state === 3 && this.viewModel.focusedSession === session) {
|
|
555
|
-
this.viewModel.setFocus(undefined, this.viewModel.focusedThread, session, false);
|
|
556
|
-
}
|
|
557
|
-
}, 200));
|
|
558
|
-
this.disposables.add(session.onDidChangeState(() => {
|
|
559
|
-
if (session.state === 3 && this.viewModel.focusedSession === session) {
|
|
560
|
-
sessionRunningScheduler.schedule();
|
|
561
|
-
}
|
|
562
|
-
if (session === this.viewModel.focusedSession) {
|
|
563
|
-
this.onStateChange();
|
|
564
|
-
}
|
|
565
|
-
}));
|
|
566
|
-
this.disposables.add(session.onDidEndAdapter(async (adapterExitEvent) => {
|
|
567
|
-
if (adapterExitEvent) {
|
|
568
|
-
if (adapterExitEvent.error) {
|
|
569
|
-
this.notificationService.error(( nls.localize(
|
|
570
|
-
'debugAdapterCrash',
|
|
571
|
-
"Debug adapter process has terminated unexpectedly ({0})",
|
|
572
|
-
adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
|
|
573
|
-
)));
|
|
574
|
-
}
|
|
575
|
-
this.telemetry.logDebugSessionStop(session, adapterExitEvent);
|
|
576
|
-
}
|
|
577
|
-
const extensionDebugSession = getExtensionHostDebugSession(session);
|
|
578
|
-
if (extensionDebugSession && extensionDebugSession.state === 3 && extensionDebugSession.configuration.noDebug) {
|
|
579
|
-
this.extensionHostDebugService.close(extensionDebugSession.getId());
|
|
580
|
-
}
|
|
581
|
-
if (session.configuration.postDebugTask) {
|
|
582
|
-
const root = session.root ?? this.contextService.getWorkspace();
|
|
583
|
-
try {
|
|
584
|
-
await this.taskRunner.runTask(root, session.configuration.postDebugTask);
|
|
585
|
-
}
|
|
586
|
-
catch (err) {
|
|
587
|
-
this.notificationService.error(err);
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
this.endInitializingState();
|
|
591
|
-
this.cancelTokens(session.getId());
|
|
592
|
-
this._onDidEndSession.fire(session);
|
|
593
|
-
const focusedSession = this.viewModel.focusedSession;
|
|
594
|
-
if (focusedSession && focusedSession.getId() === session.getId()) {
|
|
595
|
-
const { session, thread, stackFrame } = getStackFrameThreadAndSessionToFocus(this.model, undefined, undefined, undefined, focusedSession);
|
|
596
|
-
this.viewModel.setFocus(stackFrame, thread, session, false);
|
|
597
|
-
}
|
|
598
|
-
if (this.model.getSessions().length === 0) {
|
|
599
|
-
this.viewModel.setMultiSessionView(false);
|
|
600
|
-
if (this.layoutService.isVisible("workbench.parts.sidebar" ) && this.configurationService.getValue('debug').openExplorerOnEnd) {
|
|
601
|
-
this.paneCompositeService.openPaneComposite(VIEWLET_ID$1, 0 );
|
|
602
|
-
}
|
|
603
|
-
const dataBreakpoints = this.model.getDataBreakpoints().filter(dbp => !dbp.canPersist);
|
|
604
|
-
dataBreakpoints.forEach(dbp => this.model.removeDataBreakpoints(dbp.getId()));
|
|
605
|
-
if (this.configurationService.getValue('debug').console.closeOnEnd) {
|
|
606
|
-
const debugConsoleContainer = this.viewDescriptorService.getViewContainerByViewId(REPL_VIEW_ID);
|
|
607
|
-
if (debugConsoleContainer && this.viewsService.isViewContainerVisible(debugConsoleContainer.id)) {
|
|
608
|
-
this.viewsService.closeViewContainer(debugConsoleContainer.id);
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
this.model.removeExceptionBreakpointsForSession(session.getId());
|
|
613
|
-
}));
|
|
614
|
-
}
|
|
615
|
-
async restartSession(session, restartData) {
|
|
616
|
-
if (session.saveBeforeRestart) {
|
|
617
|
-
await saveAllBeforeDebugStart(this.configurationService, this.editorService);
|
|
618
|
-
}
|
|
619
|
-
const isAutoRestart = !!restartData;
|
|
620
|
-
const runTasks = async () => {
|
|
621
|
-
if (isAutoRestart) {
|
|
622
|
-
return Promise.resolve(1 );
|
|
623
|
-
}
|
|
624
|
-
const root = session.root || this.contextService.getWorkspace();
|
|
625
|
-
await this.taskRunner.runTask(root, session.configuration.preRestartTask);
|
|
626
|
-
await this.taskRunner.runTask(root, session.configuration.postDebugTask);
|
|
627
|
-
const taskResult1 = await this.taskRunner.runTaskAndCheckErrors(root, session.configuration.preLaunchTask);
|
|
628
|
-
if (taskResult1 !== 1 ) {
|
|
629
|
-
return taskResult1;
|
|
630
|
-
}
|
|
631
|
-
return this.taskRunner.runTaskAndCheckErrors(root, session.configuration.postRestartTask);
|
|
632
|
-
};
|
|
633
|
-
const extensionDebugSession = getExtensionHostDebugSession(session);
|
|
634
|
-
if (extensionDebugSession) {
|
|
635
|
-
const taskResult = await runTasks();
|
|
636
|
-
if (taskResult === 1 ) {
|
|
637
|
-
this.extensionHostDebugService.reload(extensionDebugSession.getId());
|
|
638
|
-
}
|
|
639
|
-
return;
|
|
640
|
-
}
|
|
641
|
-
let needsToSubstitute = false;
|
|
642
|
-
let unresolved;
|
|
643
|
-
const launch = session.root ? this.configurationManager.getLaunch(session.root.uri) : undefined;
|
|
644
|
-
if (launch) {
|
|
645
|
-
unresolved = launch.getConfiguration(session.configuration.name);
|
|
646
|
-
if (unresolved && !equals(unresolved, session.unresolvedConfiguration)) {
|
|
647
|
-
unresolved.type = session.configuration.type;
|
|
648
|
-
unresolved.noDebug = session.configuration.noDebug;
|
|
649
|
-
needsToSubstitute = true;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
let resolved = session.configuration;
|
|
653
|
-
if (launch && needsToSubstitute && unresolved) {
|
|
654
|
-
const initCancellationToken = ( new CancellationTokenSource());
|
|
655
|
-
this.sessionCancellationTokens.set(session.getId(), initCancellationToken);
|
|
656
|
-
const resolvedByProviders = await this.configurationManager.resolveConfigurationByProviders(launch.workspace ? launch.workspace.uri : undefined, unresolved.type, unresolved, initCancellationToken.token);
|
|
657
|
-
if (resolvedByProviders) {
|
|
658
|
-
resolved = await this.substituteVariables(launch, resolvedByProviders);
|
|
659
|
-
if (resolved && !initCancellationToken.token.isCancellationRequested) {
|
|
660
|
-
resolved = await this.configurationManager.resolveDebugConfigurationWithSubstitutedVariables(launch && launch.workspace ? launch.workspace.uri : undefined, unresolved.type, resolved, initCancellationToken.token);
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
else {
|
|
664
|
-
resolved = resolvedByProviders;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
if (resolved) {
|
|
668
|
-
session.setConfiguration({ resolved, unresolved });
|
|
669
|
-
}
|
|
670
|
-
session.configuration.__restart = restartData;
|
|
671
|
-
if (session.capabilities.supportsRestartRequest) {
|
|
672
|
-
const taskResult = await runTasks();
|
|
673
|
-
if (taskResult === 1 ) {
|
|
674
|
-
await session.restart();
|
|
675
|
-
}
|
|
676
|
-
return;
|
|
677
|
-
}
|
|
678
|
-
const shouldFocus = !!this.viewModel.focusedSession && session.getId() === this.viewModel.focusedSession.getId();
|
|
679
|
-
if (isAutoRestart) {
|
|
680
|
-
await session.disconnect(true);
|
|
681
|
-
}
|
|
682
|
-
else {
|
|
683
|
-
await session.terminate(true);
|
|
684
|
-
}
|
|
685
|
-
return ( new Promise((c, e) => {
|
|
686
|
-
setTimeout(async () => {
|
|
687
|
-
const taskResult = await runTasks();
|
|
688
|
-
if (taskResult !== 1 ) {
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
if (!resolved) {
|
|
692
|
-
return c(undefined);
|
|
693
|
-
}
|
|
694
|
-
try {
|
|
695
|
-
await this.launchOrAttachToSession(session, shouldFocus);
|
|
696
|
-
this._onDidNewSession.fire(session);
|
|
697
|
-
c(undefined);
|
|
698
|
-
}
|
|
699
|
-
catch (error) {
|
|
700
|
-
e(error);
|
|
701
|
-
}
|
|
702
|
-
}, 300);
|
|
703
|
-
}));
|
|
704
|
-
}
|
|
705
|
-
async stopSession(session, disconnect = false, suspend = false) {
|
|
706
|
-
if (session) {
|
|
707
|
-
return disconnect ? session.disconnect(undefined, suspend) : session.terminate();
|
|
708
|
-
}
|
|
709
|
-
const sessions = this.model.getSessions();
|
|
710
|
-
if (sessions.length === 0) {
|
|
711
|
-
this.taskRunner.cancel();
|
|
712
|
-
await this.quickInputService.cancel();
|
|
713
|
-
this.endInitializingState();
|
|
714
|
-
this.cancelTokens(undefined);
|
|
715
|
-
}
|
|
716
|
-
return Promise.all(( sessions.map(s => disconnect ? s.disconnect(undefined, suspend) : s.terminate())));
|
|
717
|
-
}
|
|
718
|
-
async substituteVariables(launch, config) {
|
|
719
|
-
const dbg = this.adapterManager.getDebugger(config.type);
|
|
720
|
-
if (dbg) {
|
|
721
|
-
let folder = undefined;
|
|
722
|
-
if (launch && launch.workspace) {
|
|
723
|
-
folder = launch.workspace;
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
const folders = this.contextService.getWorkspace().folders;
|
|
727
|
-
if (folders.length === 1) {
|
|
728
|
-
folder = folders[0];
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
try {
|
|
732
|
-
return await dbg.substituteVariables(folder, config);
|
|
733
|
-
}
|
|
734
|
-
catch (err) {
|
|
735
|
-
this.showError(err.message, undefined, !!launch?.getConfiguration(config.name));
|
|
736
|
-
return undefined;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
return Promise.resolve(config);
|
|
740
|
-
}
|
|
741
|
-
async showError(message, errorActions = [], promptLaunchJson = true) {
|
|
742
|
-
const configureAction = ( new Action(
|
|
743
|
-
DEBUG_CONFIGURE_COMMAND_ID,
|
|
744
|
-
DEBUG_CONFIGURE_LABEL,
|
|
745
|
-
undefined,
|
|
746
|
-
true,
|
|
747
|
-
() => this.commandService.executeCommand(DEBUG_CONFIGURE_COMMAND_ID)
|
|
748
|
-
));
|
|
749
|
-
const actions = errorActions.filter((action) => action.id.endsWith('.command')).length > 0 ?
|
|
750
|
-
errorActions :
|
|
751
|
-
[...errorActions, ...(promptLaunchJson ? [configureAction] : [])];
|
|
752
|
-
await this.dialogService.prompt({
|
|
753
|
-
type: Severity.Error,
|
|
754
|
-
message,
|
|
755
|
-
buttons: ( actions.map(action => ({
|
|
756
|
-
label: action.label,
|
|
757
|
-
run: () => action.run()
|
|
758
|
-
}))),
|
|
759
|
-
cancelButton: true
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
async focusStackFrame(_stackFrame, _thread, _session, options) {
|
|
763
|
-
const { stackFrame, thread, session } = getStackFrameThreadAndSessionToFocus(this.model, _stackFrame, _thread, _session);
|
|
764
|
-
if (stackFrame) {
|
|
765
|
-
const editor = await stackFrame.openInEditor(this.editorService, options?.preserveFocus ?? true, options?.sideBySide, options?.pinned);
|
|
766
|
-
if (editor) {
|
|
767
|
-
if (editor.input === DisassemblyViewInput.instance) ;
|
|
768
|
-
else {
|
|
769
|
-
const control = editor.getControl();
|
|
770
|
-
if (stackFrame && isCodeEditor(control) && control.hasModel()) {
|
|
771
|
-
const model = control.getModel();
|
|
772
|
-
const lineNumber = stackFrame.range.startLineNumber;
|
|
773
|
-
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
774
|
-
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
775
|
-
aria.alert(( nls.localize(
|
|
776
|
-
{ 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.'] },
|
|
777
|
-
"{0}, debugging paused {1}, {2}:{3}",
|
|
778
|
-
lineContent,
|
|
779
|
-
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
780
|
-
stackFrame.source ? stackFrame.source.name : '',
|
|
781
|
-
stackFrame.range.startLineNumber
|
|
782
|
-
)));
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
if (session) {
|
|
789
|
-
this.debugType.set(session.configuration.type);
|
|
790
|
-
}
|
|
791
|
-
else {
|
|
792
|
-
this.debugType.reset();
|
|
793
|
-
}
|
|
794
|
-
this.viewModel.setFocus(stackFrame, thread, session, !!options?.explicit);
|
|
795
|
-
}
|
|
796
|
-
addWatchExpression(name) {
|
|
797
|
-
const we = this.model.addWatchExpression(name);
|
|
798
|
-
if (!name) {
|
|
799
|
-
this.viewModel.setSelectedExpression(we, false);
|
|
800
|
-
}
|
|
801
|
-
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
802
|
-
}
|
|
803
|
-
renameWatchExpression(id, newName) {
|
|
804
|
-
this.model.renameWatchExpression(id, newName);
|
|
805
|
-
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
806
|
-
}
|
|
807
|
-
moveWatchExpression(id, position) {
|
|
808
|
-
this.model.moveWatchExpression(id, position);
|
|
809
|
-
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
810
|
-
}
|
|
811
|
-
removeWatchExpressions(id) {
|
|
812
|
-
this.model.removeWatchExpressions(id);
|
|
813
|
-
this.debugStorage.storeWatchExpressions(this.model.getWatchExpressions());
|
|
814
|
-
}
|
|
815
|
-
canSetBreakpointsIn(model) {
|
|
816
|
-
return this.adapterManager.canSetBreakpointsIn(model);
|
|
817
|
-
}
|
|
818
|
-
async enableOrDisableBreakpoints(enable, breakpoint) {
|
|
819
|
-
if (breakpoint) {
|
|
820
|
-
this.model.setEnablement(breakpoint, enable);
|
|
821
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
822
|
-
if (breakpoint instanceof Breakpoint) {
|
|
823
|
-
await this.sendBreakpoints(breakpoint.originalUri);
|
|
824
|
-
}
|
|
825
|
-
else if (breakpoint instanceof FunctionBreakpoint) {
|
|
826
|
-
await this.sendFunctionBreakpoints();
|
|
827
|
-
}
|
|
828
|
-
else if (breakpoint instanceof DataBreakpoint) {
|
|
829
|
-
await this.sendDataBreakpoints();
|
|
830
|
-
}
|
|
831
|
-
else if (breakpoint instanceof InstructionBreakpoint) {
|
|
832
|
-
await this.sendInstructionBreakpoints();
|
|
833
|
-
}
|
|
834
|
-
else {
|
|
835
|
-
await this.sendExceptionBreakpoints();
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
else {
|
|
839
|
-
this.model.enableOrDisableAllBreakpoints(enable);
|
|
840
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
841
|
-
await this.sendAllBreakpoints();
|
|
842
|
-
}
|
|
843
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
844
|
-
}
|
|
845
|
-
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
846
|
-
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
847
|
-
if (ariaAnnounce) {
|
|
848
|
-
breakpoints.forEach(bp => aria.status(( nls.localize(
|
|
849
|
-
'breakpointAdded',
|
|
850
|
-
"Added breakpoint, line {0}, file {1}",
|
|
851
|
-
bp.lineNumber,
|
|
852
|
-
uri.fsPath
|
|
853
|
-
))));
|
|
854
|
-
}
|
|
855
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
856
|
-
await this.sendBreakpoints(uri);
|
|
857
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
858
|
-
return breakpoints;
|
|
859
|
-
}
|
|
860
|
-
async updateBreakpoints(uri, data, sendOnResourceSaved) {
|
|
861
|
-
this.model.updateBreakpoints(data);
|
|
862
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
863
|
-
if (sendOnResourceSaved) {
|
|
864
|
-
this.breakpointsToSendOnResourceSaved.add(uri);
|
|
865
|
-
}
|
|
866
|
-
else {
|
|
867
|
-
await this.sendBreakpoints(uri);
|
|
868
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
async removeBreakpoints(id) {
|
|
872
|
-
const toRemove = this.model.getBreakpoints().filter(bp => !id || bp.getId() === id);
|
|
873
|
-
toRemove.forEach(bp => aria.status(( nls.localize(
|
|
874
|
-
'breakpointRemoved',
|
|
875
|
-
"Removed breakpoint, line {0}, file {1}",
|
|
876
|
-
bp.lineNumber,
|
|
877
|
-
bp.uri.fsPath
|
|
878
|
-
))));
|
|
879
|
-
const urisToClear = ( distinct(toRemove, bp => ( bp.originalUri.toString())).map(bp => bp.originalUri));
|
|
880
|
-
this.model.removeBreakpoints(toRemove);
|
|
881
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
882
|
-
await Promise.all(( urisToClear.map(uri => this.sendBreakpoints(uri))));
|
|
883
|
-
}
|
|
884
|
-
setBreakpointsActivated(activated) {
|
|
885
|
-
this.model.setBreakpointsActivated(activated);
|
|
886
|
-
return this.sendAllBreakpoints();
|
|
887
|
-
}
|
|
888
|
-
addFunctionBreakpoint(name, id) {
|
|
889
|
-
this.model.addFunctionBreakpoint(name || '', id);
|
|
890
|
-
}
|
|
891
|
-
async updateFunctionBreakpoint(id, update) {
|
|
892
|
-
this.model.updateFunctionBreakpoint(id, update);
|
|
893
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
894
|
-
await this.sendFunctionBreakpoints();
|
|
895
|
-
}
|
|
896
|
-
async removeFunctionBreakpoints(id) {
|
|
897
|
-
this.model.removeFunctionBreakpoints(id);
|
|
898
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
899
|
-
await this.sendFunctionBreakpoints();
|
|
900
|
-
}
|
|
901
|
-
async addDataBreakpoint(label, dataId, canPersist, accessTypes, accessType) {
|
|
902
|
-
this.model.addDataBreakpoint(label, dataId, canPersist, accessTypes, accessType);
|
|
903
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
904
|
-
await this.sendDataBreakpoints();
|
|
905
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
906
|
-
}
|
|
907
|
-
async removeDataBreakpoints(id) {
|
|
908
|
-
this.model.removeDataBreakpoints(id);
|
|
909
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
910
|
-
await this.sendDataBreakpoints();
|
|
911
|
-
}
|
|
912
|
-
async addInstructionBreakpoint(address, offset, condition, hitCondition) {
|
|
913
|
-
this.model.addInstructionBreakpoint(address, offset, condition, hitCondition);
|
|
914
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
915
|
-
await this.sendInstructionBreakpoints();
|
|
916
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
917
|
-
}
|
|
918
|
-
async removeInstructionBreakpoints(address) {
|
|
919
|
-
this.model.removeInstructionBreakpoints(address);
|
|
920
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
921
|
-
await this.sendInstructionBreakpoints();
|
|
922
|
-
}
|
|
923
|
-
setExceptionBreakpointFallbackSession(sessionId) {
|
|
924
|
-
this.model.setExceptionBreakpointFallbackSession(sessionId);
|
|
925
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
926
|
-
}
|
|
927
|
-
setExceptionBreakpointsForSession(session, data) {
|
|
928
|
-
this.model.setExceptionBreakpointsForSession(session.getId(), data);
|
|
929
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
930
|
-
}
|
|
931
|
-
async setExceptionBreakpointCondition(exceptionBreakpoint, condition) {
|
|
932
|
-
this.model.setExceptionBreakpointCondition(exceptionBreakpoint, condition);
|
|
933
|
-
this.debugStorage.storeBreakpoints(this.model);
|
|
934
|
-
await this.sendExceptionBreakpoints();
|
|
935
|
-
}
|
|
936
|
-
async sendAllBreakpoints(session) {
|
|
937
|
-
const setBreakpointsPromises = ( distinct(this.model.getBreakpoints(), bp => ( bp.originalUri.toString()))
|
|
938
|
-
.map(bp => this.sendBreakpoints(bp.originalUri, false, session)));
|
|
939
|
-
if (session?.capabilities.supportsConfigurationDoneRequest) {
|
|
940
|
-
await Promise.all([
|
|
941
|
-
...setBreakpointsPromises,
|
|
942
|
-
this.sendFunctionBreakpoints(session),
|
|
943
|
-
this.sendDataBreakpoints(session),
|
|
944
|
-
this.sendInstructionBreakpoints(session),
|
|
945
|
-
this.sendExceptionBreakpoints(session),
|
|
946
|
-
]);
|
|
947
|
-
}
|
|
948
|
-
else {
|
|
949
|
-
await Promise.all(setBreakpointsPromises);
|
|
950
|
-
await this.sendFunctionBreakpoints(session);
|
|
951
|
-
await this.sendDataBreakpoints(session);
|
|
952
|
-
await this.sendInstructionBreakpoints(session);
|
|
953
|
-
await this.sendExceptionBreakpoints(session);
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
async sendBreakpoints(modelUri, sourceModified = false, session) {
|
|
957
|
-
const breakpointsToSend = this.model.getBreakpoints({ originalUri: modelUri, enabledOnly: true });
|
|
958
|
-
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
959
|
-
if (!s.configuration.noDebug) {
|
|
960
|
-
await s.sendBreakpoints(modelUri, breakpointsToSend, sourceModified);
|
|
961
|
-
}
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
async sendFunctionBreakpoints(session) {
|
|
965
|
-
const breakpointsToSend = this.model.getFunctionBreakpoints().filter(fbp => fbp.enabled && this.model.areBreakpointsActivated());
|
|
966
|
-
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
967
|
-
if (s.capabilities.supportsFunctionBreakpoints && !s.configuration.noDebug) {
|
|
968
|
-
await s.sendFunctionBreakpoints(breakpointsToSend);
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
|
-
}
|
|
972
|
-
async sendDataBreakpoints(session) {
|
|
973
|
-
const breakpointsToSend = this.model.getDataBreakpoints().filter(fbp => fbp.enabled && this.model.areBreakpointsActivated());
|
|
974
|
-
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
975
|
-
if (s.capabilities.supportsDataBreakpoints && !s.configuration.noDebug) {
|
|
976
|
-
await s.sendDataBreakpoints(breakpointsToSend);
|
|
977
|
-
}
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
async sendInstructionBreakpoints(session) {
|
|
981
|
-
const breakpointsToSend = this.model.getInstructionBreakpoints().filter(fbp => fbp.enabled && this.model.areBreakpointsActivated());
|
|
982
|
-
await sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
983
|
-
if (s.capabilities.supportsInstructionBreakpoints && !s.configuration.noDebug) {
|
|
984
|
-
await s.sendInstructionBreakpoints(breakpointsToSend);
|
|
985
|
-
}
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
sendExceptionBreakpoints(session) {
|
|
989
|
-
return sendToOneOrAllSessions(this.model, session, async (s) => {
|
|
990
|
-
const enabledExceptionBps = this.model.getExceptionBreakpointsForSession(s.getId()).filter(exb => exb.enabled);
|
|
991
|
-
if (s.capabilities.supportsConfigurationDoneRequest && (!s.capabilities.exceptionBreakpointFilters || s.capabilities.exceptionBreakpointFilters.length === 0)) {
|
|
992
|
-
return;
|
|
993
|
-
}
|
|
994
|
-
if (!s.configuration.noDebug) {
|
|
995
|
-
await s.sendExceptionBreakpoints(enabledExceptionBps);
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
onFileChanges(fileChangesEvent) {
|
|
1000
|
-
const toRemove = this.model.getBreakpoints().filter(bp => fileChangesEvent.contains(bp.originalUri, 2 ));
|
|
1001
|
-
if (toRemove.length) {
|
|
1002
|
-
this.model.removeBreakpoints(toRemove);
|
|
1003
|
-
}
|
|
1004
|
-
const toSend = [];
|
|
1005
|
-
for (const uri of this.breakpointsToSendOnResourceSaved) {
|
|
1006
|
-
if (fileChangesEvent.contains(uri, 0 )) {
|
|
1007
|
-
toSend.push(uri);
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
for (const uri of toSend) {
|
|
1011
|
-
this.breakpointsToSendOnResourceSaved.delete(uri);
|
|
1012
|
-
this.sendBreakpoints(uri, true);
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
async runTo(uri, lineNumber, column) {
|
|
1016
|
-
let breakpointToRemove;
|
|
1017
|
-
let threadToContinue = this.getViewModel().focusedThread;
|
|
1018
|
-
const addTempBreakPoint = async () => {
|
|
1019
|
-
const bpExists = !!(this.getModel().getBreakpoints({ column, lineNumber, uri }).length);
|
|
1020
|
-
if (!bpExists) {
|
|
1021
|
-
const addResult = await this.addAndValidateBreakpoints(uri, lineNumber, column);
|
|
1022
|
-
if (addResult.thread) {
|
|
1023
|
-
threadToContinue = addResult.thread;
|
|
1024
|
-
}
|
|
1025
|
-
if (addResult.breakpoint) {
|
|
1026
|
-
breakpointToRemove = addResult.breakpoint;
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
return { threadToContinue, breakpointToRemove };
|
|
1030
|
-
};
|
|
1031
|
-
const removeTempBreakPoint = (state) => {
|
|
1032
|
-
if (state === 2 || state === 0 ) {
|
|
1033
|
-
if (breakpointToRemove) {
|
|
1034
|
-
this.removeBreakpoints(breakpointToRemove.getId());
|
|
1035
|
-
}
|
|
1036
|
-
return true;
|
|
1037
|
-
}
|
|
1038
|
-
return false;
|
|
1039
|
-
};
|
|
1040
|
-
await addTempBreakPoint();
|
|
1041
|
-
if (this.state === 0 ) {
|
|
1042
|
-
const { launch, name, getConfig } = this.getConfigurationManager().selectedConfiguration;
|
|
1043
|
-
const config = await getConfig();
|
|
1044
|
-
const configOrName = config ? Object.assign(deepClone(config), {}) : name;
|
|
1045
|
-
const listener = this.onDidChangeState(state => {
|
|
1046
|
-
if (removeTempBreakPoint(state)) {
|
|
1047
|
-
listener.dispose();
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
1050
|
-
await this.startDebugging(launch, configOrName, undefined, true);
|
|
1051
|
-
}
|
|
1052
|
-
if (this.state === 2 ) {
|
|
1053
|
-
const focusedSession = this.getViewModel().focusedSession;
|
|
1054
|
-
if (!focusedSession || !threadToContinue) {
|
|
1055
|
-
return;
|
|
1056
|
-
}
|
|
1057
|
-
const listener = threadToContinue.session.onDidChangeState(() => {
|
|
1058
|
-
if (removeTempBreakPoint(focusedSession.state)) {
|
|
1059
|
-
listener.dispose();
|
|
1060
|
-
}
|
|
1061
|
-
});
|
|
1062
|
-
await threadToContinue.continue();
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
async addAndValidateBreakpoints(uri, lineNumber, column) {
|
|
1066
|
-
const debugModel = this.getModel();
|
|
1067
|
-
const viewModel = this.getViewModel();
|
|
1068
|
-
const breakpoints = await this.addBreakpoints(uri, [{ lineNumber, column }], false);
|
|
1069
|
-
const breakpoint = breakpoints?.[0];
|
|
1070
|
-
if (!breakpoint) {
|
|
1071
|
-
return { breakpoint: undefined, thread: viewModel.focusedThread };
|
|
1072
|
-
}
|
|
1073
|
-
if (!breakpoint.verified) {
|
|
1074
|
-
let listener;
|
|
1075
|
-
await raceTimeout(( new Promise(resolve => {
|
|
1076
|
-
listener = debugModel.onDidChangeBreakpoints(() => {
|
|
1077
|
-
if (breakpoint.verified) {
|
|
1078
|
-
resolve();
|
|
1079
|
-
}
|
|
1080
|
-
});
|
|
1081
|
-
})), 2000);
|
|
1082
|
-
listener.dispose();
|
|
1083
|
-
}
|
|
1084
|
-
let bestThread = viewModel.focusedThread;
|
|
1085
|
-
let bestScore = 0 ;
|
|
1086
|
-
for (const sessionId of breakpoint.sessionsThatVerified) {
|
|
1087
|
-
const session = debugModel.getSession(sessionId);
|
|
1088
|
-
if (!session) {
|
|
1089
|
-
continue;
|
|
1090
|
-
}
|
|
1091
|
-
const threads = session.getAllThreads().filter(t => t.stopped);
|
|
1092
|
-
if (bestScore < 3 ) {
|
|
1093
|
-
if (viewModel.focusedThread && threads.includes(viewModel.focusedThread)) {
|
|
1094
|
-
bestThread = viewModel.focusedThread;
|
|
1095
|
-
bestScore = 3 ;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
if (bestScore < 2 ) {
|
|
1099
|
-
const pausedInThisFile = threads.find(t => {
|
|
1100
|
-
const top = t.getTopStackFrame();
|
|
1101
|
-
return top && this.uriIdentityService.extUri.isEqual(top.source.uri, uri);
|
|
1102
|
-
});
|
|
1103
|
-
if (pausedInThisFile) {
|
|
1104
|
-
bestThread = pausedInThisFile;
|
|
1105
|
-
bestScore = 2 ;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
if (bestScore < 1 ) {
|
|
1109
|
-
bestThread = threads[0];
|
|
1110
|
-
bestScore = 2 ;
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
return { thread: bestThread, breakpoint };
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
DebugService = ( __decorate([
|
|
1117
|
-
( __param(0, IEditorService)),
|
|
1118
|
-
( __param(1, IPaneCompositePartService)),
|
|
1119
|
-
( __param(2, IViewsService)),
|
|
1120
|
-
( __param(3, IViewDescriptorService)),
|
|
1121
|
-
( __param(4, INotificationService)),
|
|
1122
|
-
( __param(5, IDialogService)),
|
|
1123
|
-
( __param(6, IWorkbenchLayoutService)),
|
|
1124
|
-
( __param(7, IWorkspaceContextService)),
|
|
1125
|
-
( __param(8, IContextKeyService)),
|
|
1126
|
-
( __param(9, ILifecycleService)),
|
|
1127
|
-
( __param(10, IInstantiationService)),
|
|
1128
|
-
( __param(11, IExtensionService)),
|
|
1129
|
-
( __param(12, IFileService)),
|
|
1130
|
-
( __param(13, IConfigurationService)),
|
|
1131
|
-
( __param(14, IExtensionHostDebugService)),
|
|
1132
|
-
( __param(15, IActivityService)),
|
|
1133
|
-
( __param(16, ICommandService)),
|
|
1134
|
-
( __param(17, IQuickInputService)),
|
|
1135
|
-
( __param(18, IWorkspaceTrustRequestService)),
|
|
1136
|
-
( __param(19, IUriIdentityService))
|
|
1137
|
-
], DebugService));
|
|
1138
|
-
function getStackFrameThreadAndSessionToFocus(model, stackFrame, thread, session, avoidSession) {
|
|
1139
|
-
if (!session) {
|
|
1140
|
-
if (stackFrame || thread) {
|
|
1141
|
-
session = stackFrame ? stackFrame.thread.session : thread.session;
|
|
1142
|
-
}
|
|
1143
|
-
else {
|
|
1144
|
-
const sessions = model.getSessions();
|
|
1145
|
-
const stoppedSession = sessions.find(s => s.state === 2 );
|
|
1146
|
-
session = stoppedSession || sessions.find(s => s !== avoidSession && s !== avoidSession?.parentSession) || (sessions.length ? sessions[0] : undefined);
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
if (!thread) {
|
|
1150
|
-
if (stackFrame) {
|
|
1151
|
-
thread = stackFrame.thread;
|
|
1152
|
-
}
|
|
1153
|
-
else {
|
|
1154
|
-
const threads = session ? session.getAllThreads() : undefined;
|
|
1155
|
-
const stoppedThread = threads && threads.find(t => t.stopped);
|
|
1156
|
-
thread = stoppedThread || (threads && threads.length ? threads[0] : undefined);
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
if (!stackFrame && thread) {
|
|
1160
|
-
stackFrame = thread.getTopStackFrame();
|
|
1161
|
-
}
|
|
1162
|
-
return { session, thread, stackFrame };
|
|
1163
|
-
}
|
|
1164
|
-
async function sendToOneOrAllSessions(model, session, send) {
|
|
1165
|
-
if (session) {
|
|
1166
|
-
await send(session);
|
|
1167
|
-
}
|
|
1168
|
-
else {
|
|
1169
|
-
await Promise.all(( model.getSessions().map(s => send(s))));
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
export { DebugService, getStackFrameThreadAndSessionToFocus };
|