@theia/debug 1.67.0-next.13 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +15 -15
- package/src/browser/breakpoint/breakpoint-manager.ts +69 -16
- package/src/browser/breakpoint/breakpoint-marker.ts +38 -0
- package/src/browser/breakpoint/debug-data-breakpoint-actions.ts +170 -0
- package/src/browser/console/debug-console-items.tsx +5 -1
- package/src/browser/debug-frontend-application-contribution.ts +19 -0
- package/src/browser/debug-frontend-module.ts +2 -0
- package/src/browser/debug-session-manager.ts +18 -0
- package/src/browser/debug-session.tsx +31 -0
- package/src/browser/model/debug-data-breakpoint.tsx +79 -0
- package/src/browser/style/index.css +4 -0
- package/src/browser/view/debug-breakpoints-source.tsx +4 -10
- package/src/browser/view/debug-stack-frames-widget.ts +6 -2
- package/src/browser/view/debug-variables-widget.ts +99 -2
- package/src/browser/view/debug-view-model.ts +5 -0
- package/lib/browser/breakpoint/breakpoint-manager.d.ts +0 -71
- package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +0 -1
- package/lib/browser/breakpoint/breakpoint-manager.js +0 -321
- package/lib/browser/breakpoint/breakpoint-manager.js.map +0 -1
- package/lib/browser/breakpoint/breakpoint-marker.d.ts +0 -42
- package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +0 -1
- package/lib/browser/breakpoint/breakpoint-marker.js +0 -88
- package/lib/browser/breakpoint/breakpoint-marker.js.map +0 -1
- package/lib/browser/console/debug-console-contribution.d.ts +0 -45
- package/lib/browser/console/debug-console-contribution.d.ts.map +0 -1
- package/lib/browser/console/debug-console-contribution.js +0 -233
- package/lib/browser/console/debug-console-contribution.js.map +0 -1
- package/lib/browser/console/debug-console-items.d.ts +0 -97
- package/lib/browser/console/debug-console-items.d.ts.map +0 -1
- package/lib/browser/console/debug-console-items.js +0 -343
- package/lib/browser/console/debug-console-items.js.map +0 -1
- package/lib/browser/console/debug-console-session.d.ts +0 -32
- package/lib/browser/console/debug-console-session.d.ts.map +0 -1
- package/lib/browser/console/debug-console-session.js +0 -192
- package/lib/browser/console/debug-console-session.js.map +0 -1
- package/lib/browser/debug-call-stack-item-type-key.d.ts +0 -4
- package/lib/browser/debug-call-stack-item-type-key.d.ts.map +0 -1
- package/lib/browser/debug-call-stack-item-type-key.js +0 -20
- package/lib/browser/debug-call-stack-item-type-key.js.map +0 -1
- package/lib/browser/debug-configuration-manager.d.ts +0 -103
- package/lib/browser/debug-configuration-manager.d.ts.map +0 -1
- package/lib/browser/debug-configuration-manager.js +0 -545
- package/lib/browser/debug-configuration-manager.js.map +0 -1
- package/lib/browser/debug-configuration-model.d.ts +0 -30
- package/lib/browser/debug-configuration-model.d.ts.map +0 -1
- package/lib/browser/debug-configuration-model.js +0 -80
- package/lib/browser/debug-configuration-model.js.map +0 -1
- package/lib/browser/debug-contribution.d.ts +0 -23
- package/lib/browser/debug-contribution.d.ts.map +0 -1
- package/lib/browser/debug-contribution.js +0 -20
- package/lib/browser/debug-contribution.js.map +0 -1
- package/lib/browser/debug-frontend-application-contribution.d.ts +0 -249
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +0 -1
- package/lib/browser/debug-frontend-application-contribution.js +0 -1678
- package/lib/browser/debug-frontend-application-contribution.js.map +0 -1
- package/lib/browser/debug-frontend-module.d.ts +0 -5
- package/lib/browser/debug-frontend-module.d.ts.map +0 -1
- package/lib/browser/debug-frontend-module.js +0 -110
- package/lib/browser/debug-frontend-module.js.map +0 -1
- package/lib/browser/debug-package.spec.d.ts +0 -1
- package/lib/browser/debug-package.spec.d.ts.map +0 -1
- package/lib/browser/debug-package.spec.js +0 -19
- package/lib/browser/debug-package.spec.js.map +0 -1
- package/lib/browser/debug-prefix-configuration.d.ts +0 -52
- package/lib/browser/debug-prefix-configuration.d.ts.map +0 -1
- package/lib/browser/debug-prefix-configuration.js +0 -202
- package/lib/browser/debug-prefix-configuration.js.map +0 -1
- package/lib/browser/debug-resource.d.ts +0 -15
- package/lib/browser/debug-resource.d.ts.map +0 -1
- package/lib/browser/debug-resource.js +0 -58
- package/lib/browser/debug-resource.js.map +0 -1
- package/lib/browser/debug-schema-updater.d.ts +0 -14
- package/lib/browser/debug-schema-updater.d.ts.map +0 -1
- package/lib/browser/debug-schema-updater.js +0 -161
- package/lib/browser/debug-schema-updater.js.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.d.ts +0 -11
- package/lib/browser/debug-session-configuration-label-provider.d.ts.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.js +0 -48
- package/lib/browser/debug-session-configuration-label-provider.js.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +0 -2
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.spec.js +0 -84
- package/lib/browser/debug-session-configuration-label-provider.spec.js.map +0 -1
- package/lib/browser/debug-session-connection.d.ts +0 -111
- package/lib/browser/debug-session-connection.d.ts.map +0 -1
- package/lib/browser/debug-session-connection.js +0 -259
- package/lib/browser/debug-session-connection.js.map +0 -1
- package/lib/browser/debug-session-contribution.d.ts +0 -77
- package/lib/browser/debug-session-contribution.d.ts.map +0 -1
- package/lib/browser/debug-session-contribution.js +0 -143
- package/lib/browser/debug-session-contribution.js.map +0 -1
- package/lib/browser/debug-session-manager.d.ts +0 -138
- package/lib/browser/debug-session-manager.d.ts.map +0 -1
- package/lib/browser/debug-session-manager.js +0 -620
- package/lib/browser/debug-session-manager.js.map +0 -1
- package/lib/browser/debug-session-options.d.ts +0 -56
- package/lib/browser/debug-session-options.d.ts.map +0 -1
- package/lib/browser/debug-session-options.js +0 -92
- package/lib/browser/debug-session-options.js.map +0 -1
- package/lib/browser/debug-session.d.ts +0 -192
- package/lib/browser/debug-session.d.ts.map +0 -1
- package/lib/browser/debug-session.js +0 -913
- package/lib/browser/debug-session.js.map +0 -1
- package/lib/browser/debug-tab-bar-decorator.d.ts +0 -17
- package/lib/browser/debug-tab-bar-decorator.d.ts.map +0 -1
- package/lib/browser/debug-tab-bar-decorator.js +0 -63
- package/lib/browser/debug-tab-bar-decorator.js.map +0 -1
- package/lib/browser/debug-watch-manager.d.ts +0 -22
- package/lib/browser/debug-watch-manager.d.ts.map +0 -1
- package/lib/browser/debug-watch-manager.js +0 -86
- package/lib/browser/debug-watch-manager.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +0 -7
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +0 -39
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +0 -20
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +0 -111
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +0 -25
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-contribution.js +0 -124
- package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +0 -39
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +0 -213
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +0 -16
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +0 -39
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +0 -38
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-utilities.js +0 -18
- package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +0 -61
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.js +0 -446
- package/lib/browser/disassembly-view/disassembly-view-widget.js.map +0 -1
- package/lib/browser/editor/debug-breakpoint-widget.d.ts +0 -58
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-breakpoint-widget.js +0 -270
- package/lib/browser/editor/debug-breakpoint-widget.js.map +0 -1
- package/lib/browser/editor/debug-editor-model.d.ts +0 -87
- package/lib/browser/editor/debug-editor-model.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor-model.js +0 -499
- package/lib/browser/editor/debug-editor-model.js.map +0 -1
- package/lib/browser/editor/debug-editor-service.d.ts +0 -38
- package/lib/browser/editor/debug-editor-service.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor-service.js +0 -183
- package/lib/browser/editor/debug-editor-service.js.map +0 -1
- package/lib/browser/editor/debug-editor.d.ts +0 -4
- package/lib/browser/editor/debug-editor.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor.js +0 -20
- package/lib/browser/editor/debug-editor.js.map +0 -1
- package/lib/browser/editor/debug-exception-widget.d.ts +0 -30
- package/lib/browser/editor/debug-exception-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-exception-widget.js +0 -107
- package/lib/browser/editor/debug-exception-widget.js.map +0 -1
- package/lib/browser/editor/debug-expression-provider.d.ts +0 -17
- package/lib/browser/editor/debug-expression-provider.d.ts.map +0 -1
- package/lib/browser/editor/debug-expression-provider.js +0 -107
- package/lib/browser/editor/debug-expression-provider.js.map +0 -1
- package/lib/browser/editor/debug-hover-source.d.ts +0 -19
- package/lib/browser/editor/debug-hover-source.d.ts.map +0 -1
- package/lib/browser/editor/debug-hover-source.js +0 -110
- package/lib/browser/editor/debug-hover-source.js.map +0 -1
- package/lib/browser/editor/debug-hover-widget.d.ts +0 -61
- package/lib/browser/editor/debug-hover-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-hover-widget.js +0 -271
- package/lib/browser/editor/debug-hover-widget.js.map +0 -1
- package/lib/browser/editor/debug-inline-value-decorator.d.ts +0 -20
- package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +0 -1
- package/lib/browser/editor/debug-inline-value-decorator.js +0 -326
- package/lib/browser/editor/debug-inline-value-decorator.js.map +0 -1
- package/lib/browser/model/debug-breakpoint.d.ts +0 -48
- package/lib/browser/model/debug-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-breakpoint.js +0 -111
- package/lib/browser/model/debug-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-function-breakpoint.d.ts +0 -19
- package/lib/browser/model/debug-function-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-function-breakpoint.js +0 -93
- package/lib/browser/model/debug-function-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-instruction-breakpoint.d.ts +0 -15
- package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-instruction-breakpoint.js +0 -66
- package/lib/browser/model/debug-instruction-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-source-breakpoint.d.ts +0 -39
- package/lib/browser/model/debug-source-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-source-breakpoint.js +0 -219
- package/lib/browser/model/debug-source-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-source.d.ts +0 -25
- package/lib/browser/model/debug-source.d.ts.map +0 -1
- package/lib/browser/model/debug-source.js +0 -81
- package/lib/browser/model/debug-source.js.map +0 -1
- package/lib/browser/model/debug-stack-frame.d.ts +0 -45
- package/lib/browser/model/debug-stack-frame.d.ts.map +0 -1
- package/lib/browser/model/debug-stack-frame.js +0 -157
- package/lib/browser/model/debug-stack-frame.js.map +0 -1
- package/lib/browser/model/debug-thread.d.ts +0 -68
- package/lib/browser/model/debug-thread.d.ts.map +0 -1
- package/lib/browser/model/debug-thread.js +0 -262
- package/lib/browser/model/debug-thread.js.map +0 -1
- package/lib/browser/view/debug-action.d.ts +0 -18
- package/lib/browser/view/debug-action.d.ts.map +0 -1
- package/lib/browser/view/debug-action.js +0 -44
- package/lib/browser/view/debug-action.js.map +0 -1
- package/lib/browser/view/debug-breakpoints-source.d.ts +0 -10
- package/lib/browser/view/debug-breakpoints-source.d.ts.map +0 -1
- package/lib/browser/view/debug-breakpoints-source.js +0 -63
- package/lib/browser/view/debug-breakpoints-source.js.map +0 -1
- package/lib/browser/view/debug-breakpoints-widget.d.ts +0 -23
- package/lib/browser/view/debug-breakpoints-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-breakpoints-widget.js +0 -81
- package/lib/browser/view/debug-breakpoints-widget.js.map +0 -1
- package/lib/browser/view/debug-configuration-select.d.ts +0 -67
- package/lib/browser/view/debug-configuration-select.d.ts.map +0 -1
- package/lib/browser/view/debug-configuration-select.js +0 -212
- package/lib/browser/view/debug-configuration-select.js.map +0 -1
- package/lib/browser/view/debug-configuration-widget.d.ts +0 -33
- package/lib/browser/view/debug-configuration-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-configuration-widget.js +0 -137
- package/lib/browser/view/debug-configuration-widget.js.map +0 -1
- package/lib/browser/view/debug-exception-breakpoint.d.ts +0 -15
- package/lib/browser/view/debug-exception-breakpoint.d.ts.map +0 -1
- package/lib/browser/view/debug-exception-breakpoint.js +0 -62
- package/lib/browser/view/debug-exception-breakpoint.js.map +0 -1
- package/lib/browser/view/debug-session-widget.d.ts +0 -29
- package/lib/browser/view/debug-session-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-session-widget.js +0 -127
- package/lib/browser/view/debug-session-widget.js.map +0 -1
- package/lib/browser/view/debug-stack-frames-source.d.ts +0 -18
- package/lib/browser/view/debug-stack-frames-source.d.ts.map +0 -1
- package/lib/browser/view/debug-stack-frames-source.js +0 -83
- package/lib/browser/view/debug-stack-frames-source.js.map +0 -1
- package/lib/browser/view/debug-stack-frames-widget.d.ts +0 -25
- package/lib/browser/view/debug-stack-frames-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-stack-frames-widget.js +0 -147
- package/lib/browser/view/debug-stack-frames-widget.js.map +0 -1
- package/lib/browser/view/debug-threads-source.d.ts +0 -9
- package/lib/browser/view/debug-threads-source.d.ts.map +0 -1
- package/lib/browser/view/debug-threads-source.js +0 -56
- package/lib/browser/view/debug-threads-source.js.map +0 -1
- package/lib/browser/view/debug-threads-widget.d.ts +0 -27
- package/lib/browser/view/debug-threads-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-threads-widget.js +0 -139
- package/lib/browser/view/debug-threads-widget.js.map +0 -1
- package/lib/browser/view/debug-toolbar-widget.d.ts +0 -34
- package/lib/browser/view/debug-toolbar-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-toolbar-widget.js +0 -139
- package/lib/browser/view/debug-toolbar-widget.js.map +0 -1
- package/lib/browser/view/debug-variables-source.d.ts +0 -10
- package/lib/browser/view/debug-variables-source.d.ts.map +0 -1
- package/lib/browser/view/debug-variables-source.js +0 -53
- package/lib/browser/view/debug-variables-source.js.map +0 -1
- package/lib/browser/view/debug-variables-widget.d.ts +0 -17
- package/lib/browser/view/debug-variables-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-variables-widget.js +0 -71
- package/lib/browser/view/debug-variables-widget.js.map +0 -1
- package/lib/browser/view/debug-view-model.d.ts +0 -53
- package/lib/browser/view/debug-view-model.d.ts.map +0 -1
- package/lib/browser/view/debug-view-model.js +0 -212
- package/lib/browser/view/debug-view-model.js.map +0 -1
- package/lib/browser/view/debug-watch-expression.d.ts +0 -33
- package/lib/browser/view/debug-watch-expression.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-expression.js +0 -93
- package/lib/browser/view/debug-watch-expression.js.map +0 -1
- package/lib/browser/view/debug-watch-source.d.ts +0 -10
- package/lib/browser/view/debug-watch-source.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-source.js +0 -51
- package/lib/browser/view/debug-watch-source.js.map +0 -1
- package/lib/browser/view/debug-watch-widget.d.ts +0 -17
- package/lib/browser/view/debug-watch-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-widget.js +0 -71
- package/lib/browser/view/debug-watch-widget.js.map +0 -1
- package/lib/browser/view/debug-widget.d.ts +0 -24
- package/lib/browser/view/debug-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-widget.js +0 -101
- package/lib/browser/view/debug-widget.js.map +0 -1
- package/lib/common/debug-adapter-contribution-registry.d.ts +0 -60
- package/lib/common/debug-adapter-contribution-registry.d.ts.map +0 -1
- package/lib/common/debug-adapter-contribution-registry.js +0 -205
- package/lib/common/debug-adapter-contribution-registry.js.map +0 -1
- package/lib/common/debug-adapter-session.d.ts +0 -19
- package/lib/common/debug-adapter-session.d.ts.map +0 -1
- package/lib/common/debug-adapter-session.js +0 -79
- package/lib/common/debug-adapter-session.js.map +0 -1
- package/lib/common/debug-common.d.ts +0 -2
- package/lib/common/debug-common.d.ts.map +0 -1
- package/lib/common/debug-common.js +0 -21
- package/lib/common/debug-common.js.map +0 -1
- package/lib/common/debug-compound.d.ts +0 -15
- package/lib/common/debug-compound.d.ts.map +0 -1
- package/lib/common/debug-compound.js +0 -28
- package/lib/common/debug-compound.js.map +0 -1
- package/lib/common/debug-configuration.d.ts +0 -77
- package/lib/common/debug-configuration.d.ts.map +0 -1
- package/lib/common/debug-configuration.js +0 -32
- package/lib/common/debug-configuration.js.map +0 -1
- package/lib/common/debug-model.d.ts +0 -153
- package/lib/common/debug-model.d.ts.map +0 -1
- package/lib/common/debug-model.js +0 -36
- package/lib/common/debug-model.js.map +0 -1
- package/lib/common/debug-preferences.d.ts +0 -18
- package/lib/common/debug-preferences.d.ts.map +0 -1
- package/lib/common/debug-preferences.js +0 -89
- package/lib/common/debug-preferences.js.map +0 -1
- package/lib/common/debug-service.d.ts +0 -124
- package/lib/common/debug-service.d.ts.map +0 -1
- package/lib/common/debug-service.js +0 -67
- package/lib/common/debug-service.js.map +0 -1
- package/lib/common/debug-uri-utils.d.ts +0 -24
- package/lib/common/debug-uri-utils.d.ts.map +0 -1
- package/lib/common/debug-uri-utils.js +0 -27
- package/lib/common/debug-uri-utils.js.map +0 -1
- package/lib/common/inline-debug-adapter.d.ts +0 -19
- package/lib/common/inline-debug-adapter.d.ts.map +0 -1
- package/lib/common/inline-debug-adapter.js +0 -45
- package/lib/common/inline-debug-adapter.js.map +0 -1
- package/lib/common/launch-preferences.d.ts +0 -6
- package/lib/common/launch-preferences.d.ts.map +0 -1
- package/lib/common/launch-preferences.js +0 -37
- package/lib/common/launch-preferences.js.map +0 -1
- package/lib/node/debug-adapter-factory.d.ts +0 -20
- package/lib/node/debug-adapter-factory.d.ts.map +0 -1
- package/lib/node/debug-adapter-factory.js +0 -89
- package/lib/node/debug-adapter-factory.js.map +0 -1
- package/lib/node/debug-adapter-session-manager.d.ts +0 -38
- package/lib/node/debug-adapter-session-manager.d.ts.map +0 -1
- package/lib/node/debug-adapter-session-manager.js +0 -104
- package/lib/node/debug-adapter-session-manager.js.map +0 -1
- package/lib/node/debug-backend-module.d.ts +0 -4
- package/lib/node/debug-backend-module.d.ts.map +0 -1
- package/lib/node/debug-backend-module.js +0 -45
- package/lib/node/debug-backend-module.js.map +0 -1
- package/lib/node/debug-service-impl.d.ts +0 -31
- package/lib/node/debug-service-impl.d.ts.map +0 -1
- package/lib/node/debug-service-impl.js +0 -117
- package/lib/node/debug-service-impl.js.map +0 -1
- package/lib/node/stream-debug-adapter.d.ts +0 -41
- package/lib/node/stream-debug-adapter.d.ts.map +0 -1
- package/lib/node/stream-debug-adapter.js +0 -113
- package/lib/node/stream-debug-adapter.js.map +0 -1
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DebugSessionConnection = exports.DebugEventTypes = void 0;
|
|
19
|
-
const promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
20
|
-
const core_1 = require("@theia/core");
|
|
21
|
-
var DebugEventTypes;
|
|
22
|
-
(function (DebugEventTypes) {
|
|
23
|
-
function isStandardEvent(event) {
|
|
24
|
-
return standardDebugEvents.has(event);
|
|
25
|
-
}
|
|
26
|
-
DebugEventTypes.isStandardEvent = isStandardEvent;
|
|
27
|
-
;
|
|
28
|
-
})(DebugEventTypes || (exports.DebugEventTypes = DebugEventTypes = {}));
|
|
29
|
-
const standardDebugEvents = new Set([
|
|
30
|
-
'breakpoint',
|
|
31
|
-
'capabilities',
|
|
32
|
-
'continued',
|
|
33
|
-
'exited',
|
|
34
|
-
'initialized',
|
|
35
|
-
'invalidated',
|
|
36
|
-
'loadedSource',
|
|
37
|
-
'module',
|
|
38
|
-
'output',
|
|
39
|
-
'process',
|
|
40
|
-
'progressEnd',
|
|
41
|
-
'progressStart',
|
|
42
|
-
'progressUpdate',
|
|
43
|
-
'stopped',
|
|
44
|
-
'terminated',
|
|
45
|
-
'thread'
|
|
46
|
-
]);
|
|
47
|
-
class DebugSessionConnection {
|
|
48
|
-
constructor(sessionId, connectionFactory, traceOutputChannel) {
|
|
49
|
-
this.sessionId = sessionId;
|
|
50
|
-
this.traceOutputChannel = traceOutputChannel;
|
|
51
|
-
this.sequence = 1;
|
|
52
|
-
this.pendingRequests = new Map();
|
|
53
|
-
this.requestHandlers = new Map();
|
|
54
|
-
this.onDidCustomEventEmitter = new core_1.Emitter();
|
|
55
|
-
this.onDidCustomEvent = this.onDidCustomEventEmitter.event;
|
|
56
|
-
this.onDidCloseEmitter = new core_1.Emitter();
|
|
57
|
-
this.onDidClose = this.onDidCloseEmitter.event;
|
|
58
|
-
this.isClosed = false;
|
|
59
|
-
this.toDispose = new core_1.DisposableCollection(this.onDidCustomEventEmitter, core_1.Disposable.create(() => this.pendingRequests.clear()), core_1.Disposable.create(() => this.emitters.clear()));
|
|
60
|
-
this.allThreadsContinued = true;
|
|
61
|
-
this.emitters = new Map();
|
|
62
|
-
this.connectionPromise = this.createConnection(connectionFactory);
|
|
63
|
-
}
|
|
64
|
-
get disposed() {
|
|
65
|
-
return this.toDispose.disposed;
|
|
66
|
-
}
|
|
67
|
-
checkDisposed() {
|
|
68
|
-
if (this.disposed) {
|
|
69
|
-
throw new Error('the debug session connection is disposed, id: ' + this.sessionId);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
dispose() {
|
|
73
|
-
this.toDispose.dispose();
|
|
74
|
-
}
|
|
75
|
-
async createConnection(connectionFactory) {
|
|
76
|
-
const connection = await connectionFactory(this.sessionId);
|
|
77
|
-
connection.onClose(() => {
|
|
78
|
-
this.isClosed = true;
|
|
79
|
-
this.cancelPendingRequests();
|
|
80
|
-
this.onDidCloseEmitter.fire();
|
|
81
|
-
});
|
|
82
|
-
connection.onMessage(data => this.handleMessage(data));
|
|
83
|
-
return connection;
|
|
84
|
-
}
|
|
85
|
-
async sendRequest(command, args, timeout) {
|
|
86
|
-
const result = await this.doSendRequest(command, args, timeout);
|
|
87
|
-
if (command === 'next' || command === 'stepIn' ||
|
|
88
|
-
command === 'stepOut' || command === 'stepBack' ||
|
|
89
|
-
command === 'reverseContinue' || command === 'restartFrame') {
|
|
90
|
-
this.fireContinuedEvent(args.threadId);
|
|
91
|
-
}
|
|
92
|
-
if (command === 'continue') {
|
|
93
|
-
const response = result;
|
|
94
|
-
const allThreadsContinued = response && response.body && response.body.allThreadsContinued;
|
|
95
|
-
if (allThreadsContinued !== undefined) {
|
|
96
|
-
this.allThreadsContinued = result.body.allThreadsContinued;
|
|
97
|
-
}
|
|
98
|
-
this.fireContinuedEvent(args.threadId, this.allThreadsContinued);
|
|
99
|
-
return result;
|
|
100
|
-
}
|
|
101
|
-
return result;
|
|
102
|
-
}
|
|
103
|
-
sendCustomRequest(command, args) {
|
|
104
|
-
return this.doSendRequest(command, args);
|
|
105
|
-
}
|
|
106
|
-
cancelPendingRequests() {
|
|
107
|
-
this.pendingRequests.forEach((deferred, requestId) => {
|
|
108
|
-
deferred.reject(new Error(`Request ${requestId} cancelled on connection close`));
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
doSendRequest(command, args, timeout) {
|
|
112
|
-
const result = new promise_util_1.Deferred();
|
|
113
|
-
if (this.isClosed) {
|
|
114
|
-
result.reject(new Error('Connection is closed'));
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
const request = {
|
|
118
|
-
seq: this.sequence++,
|
|
119
|
-
type: 'request',
|
|
120
|
-
command: command,
|
|
121
|
-
arguments: args
|
|
122
|
-
};
|
|
123
|
-
this.pendingRequests.set(request.seq, result);
|
|
124
|
-
if (timeout) {
|
|
125
|
-
const handle = setTimeout(() => {
|
|
126
|
-
const pendingRequest = this.pendingRequests.get(request.seq);
|
|
127
|
-
if (pendingRequest) {
|
|
128
|
-
// request has not been handled
|
|
129
|
-
this.pendingRequests.delete(request.seq);
|
|
130
|
-
const error = {
|
|
131
|
-
type: 'response',
|
|
132
|
-
seq: 0,
|
|
133
|
-
request_seq: request.seq,
|
|
134
|
-
success: false,
|
|
135
|
-
command,
|
|
136
|
-
message: `Request #${request.seq}: ${request.command} timed out`
|
|
137
|
-
};
|
|
138
|
-
pendingRequest.reject(error);
|
|
139
|
-
}
|
|
140
|
-
}, timeout);
|
|
141
|
-
result.promise.finally(() => clearTimeout(handle));
|
|
142
|
-
}
|
|
143
|
-
this.send(request);
|
|
144
|
-
}
|
|
145
|
-
return result.promise;
|
|
146
|
-
}
|
|
147
|
-
async send(message) {
|
|
148
|
-
const connection = await this.connectionPromise;
|
|
149
|
-
const messageStr = JSON.stringify(message);
|
|
150
|
-
if (this.traceOutputChannel) {
|
|
151
|
-
const now = new Date();
|
|
152
|
-
const dateStr = `${now.toLocaleString(undefined, { hour12: false })}.${now.getMilliseconds()}`;
|
|
153
|
-
this.traceOutputChannel.appendLine(`${this.sessionId.substring(0, 8)} ${dateStr} theia -> adapter: ${JSON.stringify(message, undefined, 4)}`);
|
|
154
|
-
}
|
|
155
|
-
connection.send(messageStr);
|
|
156
|
-
}
|
|
157
|
-
handleMessage(data) {
|
|
158
|
-
const message = JSON.parse(data);
|
|
159
|
-
if (this.traceOutputChannel) {
|
|
160
|
-
const now = new Date();
|
|
161
|
-
const dateStr = `${now.toLocaleString(undefined, { hour12: false })}.${now.getMilliseconds()}`;
|
|
162
|
-
this.traceOutputChannel.appendLine(`${this.sessionId.substring(0, 8)} ${dateStr} theia <- adapter: ${JSON.stringify(message, undefined, 4)}`);
|
|
163
|
-
}
|
|
164
|
-
if (message.type === 'request') {
|
|
165
|
-
this.handleRequest(message);
|
|
166
|
-
}
|
|
167
|
-
else if (message.type === 'response') {
|
|
168
|
-
this.handleResponse(message);
|
|
169
|
-
}
|
|
170
|
-
else if (message.type === 'event') {
|
|
171
|
-
this.handleEvent(message);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
handleResponse(response) {
|
|
175
|
-
const pendingRequest = this.pendingRequests.get(response.request_seq);
|
|
176
|
-
if (pendingRequest) {
|
|
177
|
-
this.pendingRequests.delete(response.request_seq);
|
|
178
|
-
if (!response.success) {
|
|
179
|
-
pendingRequest.reject(response);
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
pendingRequest.resolve(response);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
onRequest(command, handler) {
|
|
187
|
-
this.requestHandlers.set(command, handler);
|
|
188
|
-
}
|
|
189
|
-
async handleRequest(request) {
|
|
190
|
-
const response = {
|
|
191
|
-
type: 'response',
|
|
192
|
-
seq: 0,
|
|
193
|
-
command: request.command,
|
|
194
|
-
request_seq: request.seq,
|
|
195
|
-
success: true,
|
|
196
|
-
};
|
|
197
|
-
const handler = this.requestHandlers.get(request.command);
|
|
198
|
-
if (handler) {
|
|
199
|
-
try {
|
|
200
|
-
response.body = await handler(request);
|
|
201
|
-
}
|
|
202
|
-
catch (error) {
|
|
203
|
-
response.success = false;
|
|
204
|
-
response.message = error.message;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
console.error('Unhandled request', request);
|
|
209
|
-
}
|
|
210
|
-
await this.send(response);
|
|
211
|
-
}
|
|
212
|
-
handleEvent(event) {
|
|
213
|
-
if (event.event === 'continued') {
|
|
214
|
-
this.allThreadsContinued = event.body.allThreadsContinued === false ? false : true;
|
|
215
|
-
}
|
|
216
|
-
if (DebugEventTypes.isStandardEvent(event.event)) {
|
|
217
|
-
this.doFire(event.event, event);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
this.onDidCustomEventEmitter.fire(event);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
on(kind, listener) {
|
|
224
|
-
return this.getEmitter(kind).event(listener);
|
|
225
|
-
}
|
|
226
|
-
onEvent(kind) {
|
|
227
|
-
return this.getEmitter(kind).event;
|
|
228
|
-
}
|
|
229
|
-
fire(kind, e) {
|
|
230
|
-
this.doFire(kind, e);
|
|
231
|
-
}
|
|
232
|
-
doFire(kind, e) {
|
|
233
|
-
this.getEmitter(kind).fire(e);
|
|
234
|
-
}
|
|
235
|
-
getEmitter(kind) {
|
|
236
|
-
const emitter = this.emitters.get(kind) || this.newEmitter();
|
|
237
|
-
this.emitters.set(kind, emitter);
|
|
238
|
-
return emitter;
|
|
239
|
-
}
|
|
240
|
-
newEmitter() {
|
|
241
|
-
const emitter = new core_1.Emitter();
|
|
242
|
-
this.checkDisposed();
|
|
243
|
-
this.toDispose.push(emitter);
|
|
244
|
-
return emitter;
|
|
245
|
-
}
|
|
246
|
-
fireContinuedEvent(threadId, allThreadsContinued = false) {
|
|
247
|
-
this.fire('continued', {
|
|
248
|
-
type: 'event',
|
|
249
|
-
event: 'continued',
|
|
250
|
-
body: {
|
|
251
|
-
threadId,
|
|
252
|
-
allThreadsContinued
|
|
253
|
-
},
|
|
254
|
-
seq: -1
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
exports.DebugSessionConnection = DebugSessionConnection;
|
|
259
|
-
//# sourceMappingURL=debug-session-connection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-session-connection.js","sourceRoot":"","sources":["../../src/browser/debug-session-connection.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAKhF,sEAA+D;AAC/D,sCAA6F;AAyE7F,IAAiB,eAAe,CAI/B;AAJD,WAAiB,eAAe;IAC5B,SAAgB,eAAe,CAAC,KAAa;QACzC,OAAO,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAFe,+BAAe,kBAE9B,CAAA;IAAA,CAAC;AACN,CAAC,EAJgB,eAAe,+BAAf,eAAe,QA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O,EAAE,CAAC;QAC9B,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACnB,CAAC;IAES,kBAAkB,CAAC,QAAgB,EAAE,mBAAmB,GAAG,KAAK;QACtE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE;gBACF,QAAQ;gBACR,mBAAmB;aACtB;YACD,GAAG,EAAE,CAAC,CAAC;SACV,CAAC,CAAC;IACP,CAAC;CAEJ;AA9OD,wDA8OC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { MessageClient } from '@theia/core/lib/common';
|
|
2
|
-
import { LabelProvider } from '@theia/core/lib/browser';
|
|
3
|
-
import { EditorManager } from '@theia/editor/lib/browser';
|
|
4
|
-
import { TerminalService } from '@theia/terminal/lib/browser/base/terminal-service';
|
|
5
|
-
import { DebugSession } from './debug-session';
|
|
6
|
-
import { BreakpointManager } from './breakpoint/breakpoint-manager';
|
|
7
|
-
import { DebugConfigurationSessionOptions, DebugSessionOptions } from './debug-session-options';
|
|
8
|
-
import { OutputChannelManager, OutputChannel } from '@theia/output/lib/browser/output-channel';
|
|
9
|
-
import { DebugPreferences } from '../common/debug-preferences';
|
|
10
|
-
import { ContributionProvider } from '@theia/core/lib/common/contribution-provider';
|
|
11
|
-
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
12
|
-
import { DebugContribution } from './debug-contribution';
|
|
13
|
-
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
14
|
-
import { ServiceConnectionProvider } from '@theia/core/lib/browser/messaging/service-connection-provider';
|
|
15
|
-
import { TestService } from '@theia/test/lib/browser/test-service';
|
|
16
|
-
import { DebugSessionManager } from './debug-session-manager';
|
|
17
|
-
/**
|
|
18
|
-
* DebugSessionContribution symbol for DI.
|
|
19
|
-
*/
|
|
20
|
-
export declare const DebugSessionContribution: unique symbol;
|
|
21
|
-
/**
|
|
22
|
-
* The [debug session](#DebugSession) contribution.
|
|
23
|
-
* Can be used to instantiate a specific debug sessions.
|
|
24
|
-
*/
|
|
25
|
-
export interface DebugSessionContribution {
|
|
26
|
-
/**
|
|
27
|
-
* The debug type.
|
|
28
|
-
*/
|
|
29
|
-
debugType: string;
|
|
30
|
-
/**
|
|
31
|
-
* The [debug session](#DebugSession) factory.
|
|
32
|
-
*/
|
|
33
|
-
debugSessionFactory(): DebugSessionFactory;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* DebugSessionContributionRegistry symbol for DI.
|
|
37
|
-
*/
|
|
38
|
-
export declare const DebugSessionContributionRegistry: unique symbol;
|
|
39
|
-
/**
|
|
40
|
-
* Debug session contribution registry.
|
|
41
|
-
*/
|
|
42
|
-
export interface DebugSessionContributionRegistry {
|
|
43
|
-
get(debugType: string): DebugSessionContribution | undefined;
|
|
44
|
-
}
|
|
45
|
-
export declare class DebugSessionContributionRegistryImpl implements DebugSessionContributionRegistry {
|
|
46
|
-
protected readonly contribs: Map<string, DebugSessionContribution>;
|
|
47
|
-
protected readonly contributions: ContributionProvider<DebugSessionContribution>;
|
|
48
|
-
protected init(): void;
|
|
49
|
-
get(debugType: string): DebugSessionContribution | undefined;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* DebugSessionFactory symbol for DI.
|
|
53
|
-
*/
|
|
54
|
-
export declare const DebugSessionFactory: unique symbol;
|
|
55
|
-
/**
|
|
56
|
-
* The [debug session](#DebugSession) factory.
|
|
57
|
-
*/
|
|
58
|
-
export interface DebugSessionFactory {
|
|
59
|
-
get(manager: DebugSessionManager, sessionId: string, options: DebugSessionOptions, parentSession?: DebugSession): DebugSession;
|
|
60
|
-
}
|
|
61
|
-
export declare class DefaultDebugSessionFactory implements DebugSessionFactory {
|
|
62
|
-
protected readonly connectionProvider: ServiceConnectionProvider;
|
|
63
|
-
protected readonly terminalService: TerminalService;
|
|
64
|
-
protected readonly editorManager: EditorManager;
|
|
65
|
-
protected readonly breakpoints: BreakpointManager;
|
|
66
|
-
protected readonly labelProvider: LabelProvider;
|
|
67
|
-
protected readonly messages: MessageClient;
|
|
68
|
-
protected readonly outputChannelManager: OutputChannelManager;
|
|
69
|
-
protected readonly debugPreferences: DebugPreferences;
|
|
70
|
-
protected readonly fileService: FileService;
|
|
71
|
-
protected readonly debugContributionProvider: ContributionProvider<DebugContribution>;
|
|
72
|
-
protected readonly testService: TestService;
|
|
73
|
-
protected readonly workspaceService: WorkspaceService;
|
|
74
|
-
get(manager: DebugSessionManager, sessionId: string, options: DebugConfigurationSessionOptions, parentSession?: DebugSession): DebugSession;
|
|
75
|
-
protected getTraceOutputChannel(): OutputChannel | undefined;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=debug-session-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-session-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/debug-session-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAChG,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,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,EAAE,yBAAyB,CAAC;IAEjE,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAEpD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IAElD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;IAE3C,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAE9D,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEtD,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAE5C,SAAS,CAAC,QAAQ,CAAC,yBAAyB,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAEtF,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAE5C,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEtD,GAAG,CAAC,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,gCAAgC,EAAE,aAAa,CAAC,EAAE,YAAY,GAAG,YAAY;IA2B3I,SAAS,CAAC,qBAAqB,IAAI,aAAa,GAAG,SAAS;CAK/D"}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.DefaultDebugSessionFactory = exports.DebugSessionFactory = exports.DebugSessionContributionRegistryImpl = exports.DebugSessionContributionRegistry = exports.DebugSessionContribution = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const common_1 = require("@theia/core/lib/common");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
const browser_2 = require("@theia/editor/lib/browser");
|
|
24
|
-
const terminal_service_1 = require("@theia/terminal/lib/browser/base/terminal-service");
|
|
25
|
-
const debug_session_1 = require("./debug-session");
|
|
26
|
-
const breakpoint_manager_1 = require("./breakpoint/breakpoint-manager");
|
|
27
|
-
const output_channel_1 = require("@theia/output/lib/browser/output-channel");
|
|
28
|
-
const debug_preferences_1 = require("../common/debug-preferences");
|
|
29
|
-
const debug_session_connection_1 = require("./debug-session-connection");
|
|
30
|
-
const debug_service_1 = require("../common/debug-service");
|
|
31
|
-
const contribution_provider_1 = require("@theia/core/lib/common/contribution-provider");
|
|
32
|
-
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
33
|
-
const debug_contribution_1 = require("./debug-contribution");
|
|
34
|
-
const browser_3 = require("@theia/workspace/lib/browser");
|
|
35
|
-
const service_connection_provider_1 = require("@theia/core/lib/browser/messaging/service-connection-provider");
|
|
36
|
-
const test_service_1 = require("@theia/test/lib/browser/test-service");
|
|
37
|
-
/**
|
|
38
|
-
* DebugSessionContribution symbol for DI.
|
|
39
|
-
*/
|
|
40
|
-
exports.DebugSessionContribution = Symbol('DebugSessionContribution');
|
|
41
|
-
/**
|
|
42
|
-
* DebugSessionContributionRegistry symbol for DI.
|
|
43
|
-
*/
|
|
44
|
-
exports.DebugSessionContributionRegistry = Symbol('DebugSessionContributionRegistry');
|
|
45
|
-
let DebugSessionContributionRegistryImpl = class DebugSessionContributionRegistryImpl {
|
|
46
|
-
constructor() {
|
|
47
|
-
this.contribs = new Map();
|
|
48
|
-
}
|
|
49
|
-
init() {
|
|
50
|
-
for (const contrib of this.contributions.getContributions()) {
|
|
51
|
-
this.contribs.set(contrib.debugType, contrib);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
get(debugType) {
|
|
55
|
-
return this.contribs.get(debugType);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
exports.DebugSessionContributionRegistryImpl = DebugSessionContributionRegistryImpl;
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
(0, inversify_1.inject)(contribution_provider_1.ContributionProvider),
|
|
61
|
-
(0, inversify_1.named)(exports.DebugSessionContribution),
|
|
62
|
-
tslib_1.__metadata("design:type", Object)
|
|
63
|
-
], DebugSessionContributionRegistryImpl.prototype, "contributions", void 0);
|
|
64
|
-
tslib_1.__decorate([
|
|
65
|
-
(0, inversify_1.postConstruct)(),
|
|
66
|
-
tslib_1.__metadata("design:type", Function),
|
|
67
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
68
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
69
|
-
], DebugSessionContributionRegistryImpl.prototype, "init", null);
|
|
70
|
-
exports.DebugSessionContributionRegistryImpl = DebugSessionContributionRegistryImpl = tslib_1.__decorate([
|
|
71
|
-
(0, inversify_1.injectable)()
|
|
72
|
-
], DebugSessionContributionRegistryImpl);
|
|
73
|
-
/**
|
|
74
|
-
* DebugSessionFactory symbol for DI.
|
|
75
|
-
*/
|
|
76
|
-
exports.DebugSessionFactory = Symbol('DebugSessionFactory');
|
|
77
|
-
let DefaultDebugSessionFactory = class DefaultDebugSessionFactory {
|
|
78
|
-
get(manager, sessionId, options, parentSession) {
|
|
79
|
-
const connection = new debug_session_connection_1.DebugSessionConnection(sessionId, () => new Promise(resolve => this.connectionProvider.listen(`${debug_service_1.DebugAdapterPath}/${sessionId}`, (_, wsChannel) => {
|
|
80
|
-
resolve(new debug_service_1.ForwardingDebugChannel(wsChannel));
|
|
81
|
-
}, false)), this.getTraceOutputChannel());
|
|
82
|
-
return new debug_session_1.DebugSession(sessionId, options, parentSession, this.testService, options.testRun, manager, connection, this.terminalService, this.editorManager, this.breakpoints, this.labelProvider, this.messages, this.fileService, this.debugContributionProvider, this.workspaceService);
|
|
83
|
-
}
|
|
84
|
-
getTraceOutputChannel() {
|
|
85
|
-
if (this.debugPreferences['debug.trace']) {
|
|
86
|
-
return this.outputChannelManager.getChannel('Debug adapters');
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
exports.DefaultDebugSessionFactory = DefaultDebugSessionFactory;
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
(0, inversify_1.inject)(service_connection_provider_1.RemoteConnectionProvider),
|
|
93
|
-
tslib_1.__metadata("design:type", service_connection_provider_1.ServiceConnectionProvider)
|
|
94
|
-
], DefaultDebugSessionFactory.prototype, "connectionProvider", void 0);
|
|
95
|
-
tslib_1.__decorate([
|
|
96
|
-
(0, inversify_1.inject)(terminal_service_1.TerminalService),
|
|
97
|
-
tslib_1.__metadata("design:type", Object)
|
|
98
|
-
], DefaultDebugSessionFactory.prototype, "terminalService", void 0);
|
|
99
|
-
tslib_1.__decorate([
|
|
100
|
-
(0, inversify_1.inject)(browser_2.EditorManager),
|
|
101
|
-
tslib_1.__metadata("design:type", browser_2.EditorManager)
|
|
102
|
-
], DefaultDebugSessionFactory.prototype, "editorManager", void 0);
|
|
103
|
-
tslib_1.__decorate([
|
|
104
|
-
(0, inversify_1.inject)(breakpoint_manager_1.BreakpointManager),
|
|
105
|
-
tslib_1.__metadata("design:type", breakpoint_manager_1.BreakpointManager)
|
|
106
|
-
], DefaultDebugSessionFactory.prototype, "breakpoints", void 0);
|
|
107
|
-
tslib_1.__decorate([
|
|
108
|
-
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
109
|
-
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
110
|
-
], DefaultDebugSessionFactory.prototype, "labelProvider", void 0);
|
|
111
|
-
tslib_1.__decorate([
|
|
112
|
-
(0, inversify_1.inject)(common_1.MessageClient),
|
|
113
|
-
tslib_1.__metadata("design:type", common_1.MessageClient)
|
|
114
|
-
], DefaultDebugSessionFactory.prototype, "messages", void 0);
|
|
115
|
-
tslib_1.__decorate([
|
|
116
|
-
(0, inversify_1.inject)(output_channel_1.OutputChannelManager),
|
|
117
|
-
tslib_1.__metadata("design:type", output_channel_1.OutputChannelManager)
|
|
118
|
-
], DefaultDebugSessionFactory.prototype, "outputChannelManager", void 0);
|
|
119
|
-
tslib_1.__decorate([
|
|
120
|
-
(0, inversify_1.inject)(debug_preferences_1.DebugPreferences),
|
|
121
|
-
tslib_1.__metadata("design:type", Object)
|
|
122
|
-
], DefaultDebugSessionFactory.prototype, "debugPreferences", void 0);
|
|
123
|
-
tslib_1.__decorate([
|
|
124
|
-
(0, inversify_1.inject)(file_service_1.FileService),
|
|
125
|
-
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
126
|
-
], DefaultDebugSessionFactory.prototype, "fileService", void 0);
|
|
127
|
-
tslib_1.__decorate([
|
|
128
|
-
(0, inversify_1.inject)(contribution_provider_1.ContributionProvider),
|
|
129
|
-
(0, inversify_1.named)(debug_contribution_1.DebugContribution),
|
|
130
|
-
tslib_1.__metadata("design:type", Object)
|
|
131
|
-
], DefaultDebugSessionFactory.prototype, "debugContributionProvider", void 0);
|
|
132
|
-
tslib_1.__decorate([
|
|
133
|
-
(0, inversify_1.inject)(test_service_1.TestService),
|
|
134
|
-
tslib_1.__metadata("design:type", Object)
|
|
135
|
-
], DefaultDebugSessionFactory.prototype, "testService", void 0);
|
|
136
|
-
tslib_1.__decorate([
|
|
137
|
-
(0, inversify_1.inject)(browser_3.WorkspaceService),
|
|
138
|
-
tslib_1.__metadata("design:type", browser_3.WorkspaceService)
|
|
139
|
-
], DefaultDebugSessionFactory.prototype, "workspaceService", void 0);
|
|
140
|
-
exports.DefaultDebugSessionFactory = DefaultDebugSessionFactory = tslib_1.__decorate([
|
|
141
|
-
(0, inversify_1.injectable)()
|
|
142
|
-
], DefaultDebugSessionFactory);
|
|
143
|
-
//# sourceMappingURL=debug-session-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-session-contribution.js","sourceRoot":"","sources":["../../src/browser/debug-session-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAwF;AACxF,mDAAuD;AACvD,qDAAwD;AACxD,uDAA0D;AAC1D,wFAAoF;AACpF,mDAA+C;AAC/C,wEAAoE;AAEpE,6EAA+F;AAC/F,mEAA+D;AAC/D,yEAAoE;AACpE,2DAAiG;AACjG,wFAAoF;AACpF,6EAAyE;AACzE,6DAAyD;AACzD,0DAAgE;AAChE,+GAAoI;AACpI,uEAAmE;AAGnE;;GAEG;AACU,QAAA,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAgB3E;;GAEG;AACU,QAAA,gCAAgC,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;AASpF,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAA1C;QACgB,aAAQ,GAAG,IAAI,GAAG,EAAoC,CAAC;IAe9E,CAAC;IATa,IAAI;QACV,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,gBAAg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
-
import { DisposableCollection, Emitter, Event, MessageService, ProgressService, WaitUntilEvent } from '@theia/core';
|
|
2
|
-
import { LabelProvider, ApplicationShell } from '@theia/core/lib/browser';
|
|
3
|
-
import { ContextKey, ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
4
|
-
import URI from '@theia/core/lib/common/uri';
|
|
5
|
-
import { EditorManager } from '@theia/editor/lib/browser';
|
|
6
|
-
import { QuickOpenTask } from '@theia/task/lib/browser/quick-open-task';
|
|
7
|
-
import { TaskService } from '@theia/task/lib/browser/task-service';
|
|
8
|
-
import { VariableResolverService } from '@theia/variable-resolver/lib/browser';
|
|
9
|
-
import { DebugConfiguration } from '../common/debug-common';
|
|
10
|
-
import { DebugService } from '../common/debug-service';
|
|
11
|
-
import { BreakpointManager } from './breakpoint/breakpoint-manager';
|
|
12
|
-
import { DebugConfigurationManager } from './debug-configuration-manager';
|
|
13
|
-
import { DebugSession, DebugState } from './debug-session';
|
|
14
|
-
import { DebugSessionContributionRegistry, DebugSessionFactory } from './debug-session-contribution';
|
|
15
|
-
import { DebugCompoundRoot, DebugCompoundSessionOptions, DebugConfigurationSessionOptions, DebugSessionOptions, InternalDebugSessionOptions } from './debug-session-options';
|
|
16
|
-
import { DebugStackFrame } from './model/debug-stack-frame';
|
|
17
|
-
import { DebugThread } from './model/debug-thread';
|
|
18
|
-
import { TaskIdentifier } from '@theia/task/lib/common';
|
|
19
|
-
import { DebugSourceBreakpoint } from './model/debug-source-breakpoint';
|
|
20
|
-
import { DebugFunctionBreakpoint } from './model/debug-function-breakpoint';
|
|
21
|
-
import * as monaco from '@theia/monaco-editor-core';
|
|
22
|
-
import { DebugInstructionBreakpoint } from './model/debug-instruction-breakpoint';
|
|
23
|
-
import { DebugSessionConfigurationLabelProvider } from './debug-session-configuration-label-provider';
|
|
24
|
-
export interface WillStartDebugSession extends WaitUntilEvent {
|
|
25
|
-
}
|
|
26
|
-
export interface WillResolveDebugConfiguration extends WaitUntilEvent {
|
|
27
|
-
debugType: string;
|
|
28
|
-
}
|
|
29
|
-
export interface DidChangeActiveDebugSession {
|
|
30
|
-
previous: DebugSession | undefined;
|
|
31
|
-
current: DebugSession | undefined;
|
|
32
|
-
}
|
|
33
|
-
export interface DidChangeBreakpointsEvent {
|
|
34
|
-
session?: DebugSession;
|
|
35
|
-
uri: URI;
|
|
36
|
-
}
|
|
37
|
-
export interface DebugSessionCustomEvent {
|
|
38
|
-
readonly body?: any;
|
|
39
|
-
readonly event: string;
|
|
40
|
-
readonly session: DebugSession;
|
|
41
|
-
}
|
|
42
|
-
export declare class DebugSessionManager {
|
|
43
|
-
protected readonly _sessions: Map<string, DebugSession>;
|
|
44
|
-
protected readonly onWillStartDebugSessionEmitter: Emitter<WillStartDebugSession>;
|
|
45
|
-
readonly onWillStartDebugSession: Event<WillStartDebugSession>;
|
|
46
|
-
protected readonly onWillResolveDebugConfigurationEmitter: Emitter<WillResolveDebugConfiguration>;
|
|
47
|
-
readonly onWillResolveDebugConfiguration: Event<WillResolveDebugConfiguration>;
|
|
48
|
-
protected readonly onDidCreateDebugSessionEmitter: Emitter<DebugSession>;
|
|
49
|
-
readonly onDidCreateDebugSession: Event<DebugSession>;
|
|
50
|
-
protected readonly onDidStartDebugSessionEmitter: Emitter<DebugSession>;
|
|
51
|
-
readonly onDidStartDebugSession: Event<DebugSession>;
|
|
52
|
-
protected readonly onDidStopDebugSessionEmitter: Emitter<DebugSession>;
|
|
53
|
-
readonly onDidStopDebugSession: Event<DebugSession>;
|
|
54
|
-
protected readonly onDidChangeActiveDebugSessionEmitter: Emitter<DidChangeActiveDebugSession>;
|
|
55
|
-
readonly onDidChangeActiveDebugSession: Event<DidChangeActiveDebugSession>;
|
|
56
|
-
protected readonly onDidDestroyDebugSessionEmitter: Emitter<DebugSession>;
|
|
57
|
-
readonly onDidDestroyDebugSession: Event<DebugSession>;
|
|
58
|
-
protected readonly onDidReceiveDebugSessionCustomEventEmitter: Emitter<DebugSessionCustomEvent>;
|
|
59
|
-
readonly onDidReceiveDebugSessionCustomEvent: Event<DebugSessionCustomEvent>;
|
|
60
|
-
protected readonly onDidFocusStackFrameEmitter: Emitter<DebugStackFrame | undefined>;
|
|
61
|
-
readonly onDidFocusStackFrame: Event<DebugStackFrame | undefined>;
|
|
62
|
-
protected readonly onDidFocusThreadEmitter: Emitter<DebugThread | undefined>;
|
|
63
|
-
readonly onDidFocusThread: Event<DebugThread | undefined>;
|
|
64
|
-
protected readonly onDidChangeBreakpointsEmitter: Emitter<DidChangeBreakpointsEvent>;
|
|
65
|
-
readonly onDidChangeBreakpoints: Event<DidChangeBreakpointsEvent>;
|
|
66
|
-
protected fireDidChangeBreakpoints(event: DidChangeBreakpointsEvent): void;
|
|
67
|
-
protected readonly onDidChangeEmitter: Emitter<DebugSession | undefined>;
|
|
68
|
-
readonly onDidChange: Event<DebugSession | undefined>;
|
|
69
|
-
protected fireDidChange(current: DebugSession | undefined): void;
|
|
70
|
-
protected readonly debugSessionFactory: DebugSessionFactory;
|
|
71
|
-
protected readonly debug: DebugService;
|
|
72
|
-
protected readonly labelProvider: LabelProvider;
|
|
73
|
-
protected readonly editorManager: EditorManager;
|
|
74
|
-
protected readonly breakpoints: BreakpointManager;
|
|
75
|
-
protected readonly variableResolver: VariableResolverService;
|
|
76
|
-
protected readonly sessionContributionRegistry: DebugSessionContributionRegistry;
|
|
77
|
-
protected readonly messageService: MessageService;
|
|
78
|
-
protected readonly progressService: ProgressService;
|
|
79
|
-
protected readonly contextKeyService: ContextKeyService;
|
|
80
|
-
protected readonly taskService: TaskService;
|
|
81
|
-
protected readonly debugConfigurationManager: DebugConfigurationManager;
|
|
82
|
-
protected readonly quickOpenTask: QuickOpenTask;
|
|
83
|
-
protected readonly shell: ApplicationShell;
|
|
84
|
-
protected readonly sessionConfigurationLabelProvider: DebugSessionConfigurationLabelProvider;
|
|
85
|
-
protected debugTypeKey: ContextKey<string>;
|
|
86
|
-
protected inDebugModeKey: ContextKey<boolean>;
|
|
87
|
-
protected debugStateKey: ContextKey<string>;
|
|
88
|
-
protected init(): void;
|
|
89
|
-
get inDebugMode(): boolean;
|
|
90
|
-
isCurrentEditorFrame(uri: URI | string | monaco.Uri): boolean;
|
|
91
|
-
protected saveAll(): Promise<boolean>;
|
|
92
|
-
start(options: DebugCompoundSessionOptions): Promise<boolean | undefined>;
|
|
93
|
-
start(options: DebugConfigurationSessionOptions): Promise<DebugSession | undefined>;
|
|
94
|
-
start(options: DebugSessionOptions): Promise<DebugSession | boolean | undefined>;
|
|
95
|
-
start(name: string): Promise<DebugSession | boolean | undefined>;
|
|
96
|
-
protected startConfiguration(options: DebugConfigurationSessionOptions): Promise<DebugSession | undefined>;
|
|
97
|
-
protected startCompound(options: DebugCompoundSessionOptions): Promise<boolean | undefined>;
|
|
98
|
-
protected getCompoundConfigurations(options: DebugCompoundSessionOptions, compoundRoot: DebugCompoundRoot | undefined): DebugConfigurationSessionOptions[];
|
|
99
|
-
protected fireWillStartDebugSession(): Promise<void>;
|
|
100
|
-
protected configurationIds: Map<string, number>;
|
|
101
|
-
protected resolveConfiguration(options: Readonly<DebugConfigurationSessionOptions>): Promise<InternalDebugSessionOptions | undefined | null>;
|
|
102
|
-
protected resolveDebugConfiguration(configuration: DebugConfiguration, workspaceFolderUri: string | undefined): Promise<DebugConfiguration | undefined | null>;
|
|
103
|
-
protected fireWillResolveDebugConfiguration(debugType: string): Promise<void>;
|
|
104
|
-
protected resolveDebugConfigurationWithSubstitutedVariables(configuration: DebugConfiguration, workspaceFolderUri: string | undefined): Promise<DebugConfiguration | undefined | null>;
|
|
105
|
-
protected doStart(sessionId: string, options: DebugConfigurationSessionOptions): Promise<DebugSession>;
|
|
106
|
-
protected cleanup(session: DebugSession): void;
|
|
107
|
-
protected doRestart(session: DebugSession, isRestart: boolean): Promise<DebugSession | undefined>;
|
|
108
|
-
terminateSession(session?: DebugSession): Promise<void>;
|
|
109
|
-
restartSession(session?: DebugSession): Promise<DebugSession | undefined>;
|
|
110
|
-
protected remove(sessionId: string): boolean;
|
|
111
|
-
getSession(sessionId: string): DebugSession | undefined;
|
|
112
|
-
get sessions(): DebugSession[];
|
|
113
|
-
protected _currentSession: DebugSession | undefined;
|
|
114
|
-
protected readonly disposeOnCurrentSessionChanged: DisposableCollection;
|
|
115
|
-
get currentSession(): DebugSession | undefined;
|
|
116
|
-
set currentSession(current: DebugSession | undefined);
|
|
117
|
-
open(revealOption?: 'auto' | 'center'): void;
|
|
118
|
-
protected updateBreakpoints(previous: DebugSession | undefined, current: DebugSession | undefined): void;
|
|
119
|
-
protected updateCurrentSession(session: DebugSession | undefined): void;
|
|
120
|
-
get currentThread(): DebugThread | undefined;
|
|
121
|
-
get state(): DebugState;
|
|
122
|
-
get currentFrame(): DebugStackFrame | undefined;
|
|
123
|
-
get topFrame(): DebugStackFrame | undefined;
|
|
124
|
-
getFunctionBreakpoints(session?: DebugSession | undefined): DebugFunctionBreakpoint[];
|
|
125
|
-
getInstructionBreakpoints(session?: DebugSession | undefined): DebugInstructionBreakpoint[];
|
|
126
|
-
getBreakpoints(session?: DebugSession): DebugSourceBreakpoint[];
|
|
127
|
-
getBreakpoints(uri: URI, session?: DebugSession): DebugSourceBreakpoint[];
|
|
128
|
-
getLineBreakpoints(uri: URI, line: number): DebugSourceBreakpoint[];
|
|
129
|
-
getInlineBreakpoint(uri: URI, line: number, column: number): DebugSourceBreakpoint | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* Runs the given tasks.
|
|
132
|
-
* @param taskName the task name to run, see [TaskNameResolver](#TaskNameResolver)
|
|
133
|
-
* @return true if it allowed to continue debugging otherwise it returns false
|
|
134
|
-
*/
|
|
135
|
-
protected runTask(workspaceFolderUri: string | undefined, taskName: string | TaskIdentifier | undefined, checkErrors?: boolean): Promise<boolean>;
|
|
136
|
-
protected doPostTaskAction(errorMessage: string): Promise<boolean>;
|
|
137
|
-
}
|
|
138
|
-
//# sourceMappingURL=debug-session-manager.d.ts.map
|