@theia/debug 1.67.0-next.56 → 1.67.0-next.59
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/lib/browser/breakpoint/breakpoint-manager.d.ts +91 -0
- package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +1 -0
- package/lib/browser/breakpoint/breakpoint-manager.js +367 -0
- package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -0
- package/lib/browser/breakpoint/breakpoint-marker.d.ts +65 -0
- package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +1 -0
- package/lib/browser/breakpoint/breakpoint-marker.js +102 -0
- package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.d.ts +17 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.d.ts.map +1 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.js +166 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.js.map +1 -0
- package/lib/browser/console/debug-console-contribution.d.ts +45 -0
- package/lib/browser/console/debug-console-contribution.d.ts.map +1 -0
- package/lib/browser/console/debug-console-contribution.js +233 -0
- package/lib/browser/console/debug-console-contribution.js.map +1 -0
- package/lib/browser/console/debug-console-items.d.ts +98 -0
- package/lib/browser/console/debug-console-items.d.ts.map +1 -0
- package/lib/browser/console/debug-console-items.js +346 -0
- package/lib/browser/console/debug-console-items.js.map +1 -0
- package/lib/browser/console/debug-console-session.d.ts +32 -0
- package/lib/browser/console/debug-console-session.d.ts.map +1 -0
- package/lib/browser/console/debug-console-session.js +192 -0
- package/lib/browser/console/debug-console-session.js.map +1 -0
- package/lib/browser/debug-call-stack-item-type-key.d.ts +4 -0
- package/lib/browser/debug-call-stack-item-type-key.d.ts.map +1 -0
- package/lib/browser/debug-call-stack-item-type-key.js +20 -0
- package/lib/browser/debug-call-stack-item-type-key.js.map +1 -0
- package/lib/browser/debug-configuration-manager.d.ts +103 -0
- package/lib/browser/debug-configuration-manager.d.ts.map +1 -0
- package/lib/browser/debug-configuration-manager.js +545 -0
- package/lib/browser/debug-configuration-manager.js.map +1 -0
- package/lib/browser/debug-configuration-model.d.ts +30 -0
- package/lib/browser/debug-configuration-model.d.ts.map +1 -0
- package/lib/browser/debug-configuration-model.js +80 -0
- package/lib/browser/debug-configuration-model.js.map +1 -0
- package/lib/browser/debug-contribution.d.ts +23 -0
- package/lib/browser/debug-contribution.d.ts.map +1 -0
- package/lib/browser/debug-contribution.js +20 -0
- package/lib/browser/debug-contribution.js.map +1 -0
- package/lib/browser/debug-frontend-application-contribution.d.ts +252 -0
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -0
- package/lib/browser/debug-frontend-application-contribution.js +1696 -0
- package/lib/browser/debug-frontend-application-contribution.js.map +1 -0
- package/lib/browser/debug-frontend-module.d.ts +5 -0
- package/lib/browser/debug-frontend-module.d.ts.map +1 -0
- package/lib/browser/debug-frontend-module.js +112 -0
- package/lib/browser/debug-frontend-module.js.map +1 -0
- package/lib/browser/debug-package.spec.d.ts +1 -0
- package/lib/browser/debug-package.spec.d.ts.map +1 -0
- package/lib/browser/debug-package.spec.js +19 -0
- package/lib/browser/debug-package.spec.js.map +1 -0
- package/lib/browser/debug-prefix-configuration.d.ts +52 -0
- package/lib/browser/debug-prefix-configuration.d.ts.map +1 -0
- package/lib/browser/debug-prefix-configuration.js +202 -0
- package/lib/browser/debug-prefix-configuration.js.map +1 -0
- package/lib/browser/debug-resource.d.ts +15 -0
- package/lib/browser/debug-resource.d.ts.map +1 -0
- package/lib/browser/debug-resource.js +58 -0
- package/lib/browser/debug-resource.js.map +1 -0
- package/lib/browser/debug-schema-updater.d.ts +14 -0
- package/lib/browser/debug-schema-updater.d.ts.map +1 -0
- package/lib/browser/debug-schema-updater.js +161 -0
- package/lib/browser/debug-schema-updater.js.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.d.ts +11 -0
- package/lib/browser/debug-session-configuration-label-provider.d.ts.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.js +48 -0
- package/lib/browser/debug-session-configuration-label-provider.js.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +2 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.js +84 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.js.map +1 -0
- package/lib/browser/debug-session-connection.d.ts +111 -0
- package/lib/browser/debug-session-connection.d.ts.map +1 -0
- package/lib/browser/debug-session-connection.js +259 -0
- package/lib/browser/debug-session-connection.js.map +1 -0
- package/lib/browser/debug-session-contribution.d.ts +77 -0
- package/lib/browser/debug-session-contribution.d.ts.map +1 -0
- package/lib/browser/debug-session-contribution.js +143 -0
- package/lib/browser/debug-session-contribution.js.map +1 -0
- package/lib/browser/debug-session-manager.d.ts +140 -0
- package/lib/browser/debug-session-manager.d.ts.map +1 -0
- package/lib/browser/debug-session-manager.js +637 -0
- package/lib/browser/debug-session-manager.js.map +1 -0
- package/lib/browser/debug-session-options.d.ts +56 -0
- package/lib/browser/debug-session-options.d.ts.map +1 -0
- package/lib/browser/debug-session-options.js +92 -0
- package/lib/browser/debug-session-options.js.map +1 -0
- package/lib/browser/debug-session.d.ts +195 -0
- package/lib/browser/debug-session.d.ts.map +1 -0
- package/lib/browser/debug-session.js +946 -0
- package/lib/browser/debug-session.js.map +1 -0
- package/lib/browser/debug-tab-bar-decorator.d.ts +17 -0
- package/lib/browser/debug-tab-bar-decorator.d.ts.map +1 -0
- package/lib/browser/debug-tab-bar-decorator.js +63 -0
- package/lib/browser/debug-tab-bar-decorator.js.map +1 -0
- package/lib/browser/debug-watch-manager.d.ts +22 -0
- package/lib/browser/debug-watch-manager.d.ts.map +1 -0
- package/lib/browser/debug-watch-manager.js +86 -0
- package/lib/browser/debug-watch-manager.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +7 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +39 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +20 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +111 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +25 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.js +124 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +39 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +213 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +16 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +39 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +38 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.js +18 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +61 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.js +446 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.js.map +1 -0
- package/lib/browser/editor/debug-breakpoint-widget.d.ts +58 -0
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-breakpoint-widget.js +270 -0
- package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -0
- package/lib/browser/editor/debug-editor-model.d.ts +87 -0
- package/lib/browser/editor/debug-editor-model.d.ts.map +1 -0
- package/lib/browser/editor/debug-editor-model.js +499 -0
- package/lib/browser/editor/debug-editor-model.js.map +1 -0
- package/lib/browser/editor/debug-editor-service.d.ts +38 -0
- package/lib/browser/editor/debug-editor-service.d.ts.map +1 -0
- package/lib/browser/editor/debug-editor-service.js +183 -0
- package/lib/browser/editor/debug-editor-service.js.map +1 -0
- package/lib/browser/editor/debug-editor.d.ts +4 -0
- package/lib/browser/editor/debug-editor.d.ts.map +1 -0
- package/lib/browser/editor/debug-editor.js +20 -0
- package/lib/browser/editor/debug-editor.js.map +1 -0
- package/lib/browser/editor/debug-exception-widget.d.ts +30 -0
- package/lib/browser/editor/debug-exception-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-exception-widget.js +107 -0
- package/lib/browser/editor/debug-exception-widget.js.map +1 -0
- package/lib/browser/editor/debug-expression-provider.d.ts +17 -0
- package/lib/browser/editor/debug-expression-provider.d.ts.map +1 -0
- package/lib/browser/editor/debug-expression-provider.js +107 -0
- package/lib/browser/editor/debug-expression-provider.js.map +1 -0
- package/lib/browser/editor/debug-hover-source.d.ts +19 -0
- package/lib/browser/editor/debug-hover-source.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-source.js +110 -0
- package/lib/browser/editor/debug-hover-source.js.map +1 -0
- package/lib/browser/editor/debug-hover-widget.d.ts +61 -0
- package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-widget.js +271 -0
- package/lib/browser/editor/debug-hover-widget.js.map +1 -0
- package/lib/browser/editor/debug-inline-value-decorator.d.ts +20 -0
- package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +1 -0
- package/lib/browser/editor/debug-inline-value-decorator.js +326 -0
- package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -0
- package/lib/browser/model/debug-breakpoint.d.ts +48 -0
- package/lib/browser/model/debug-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-breakpoint.js +111 -0
- package/lib/browser/model/debug-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-data-breakpoint.d.ts +16 -0
- package/lib/browser/model/debug-data-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-data-breakpoint.js +75 -0
- package/lib/browser/model/debug-data-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-function-breakpoint.d.ts +19 -0
- package/lib/browser/model/debug-function-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-function-breakpoint.js +93 -0
- package/lib/browser/model/debug-function-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-instruction-breakpoint.d.ts +15 -0
- package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-instruction-breakpoint.js +66 -0
- package/lib/browser/model/debug-instruction-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-source-breakpoint.d.ts +39 -0
- package/lib/browser/model/debug-source-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-source-breakpoint.js +219 -0
- package/lib/browser/model/debug-source-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-source.d.ts +25 -0
- package/lib/browser/model/debug-source.d.ts.map +1 -0
- package/lib/browser/model/debug-source.js +81 -0
- package/lib/browser/model/debug-source.js.map +1 -0
- package/lib/browser/model/debug-stack-frame.d.ts +45 -0
- package/lib/browser/model/debug-stack-frame.d.ts.map +1 -0
- package/lib/browser/model/debug-stack-frame.js +157 -0
- package/lib/browser/model/debug-stack-frame.js.map +1 -0
- package/lib/browser/model/debug-thread.d.ts +68 -0
- package/lib/browser/model/debug-thread.d.ts.map +1 -0
- package/lib/browser/model/debug-thread.js +262 -0
- package/lib/browser/model/debug-thread.js.map +1 -0
- package/lib/browser/view/debug-action.d.ts +18 -0
- package/lib/browser/view/debug-action.d.ts.map +1 -0
- package/lib/browser/view/debug-action.js +44 -0
- package/lib/browser/view/debug-action.js.map +1 -0
- package/lib/browser/view/debug-breakpoints-source.d.ts +10 -0
- package/lib/browser/view/debug-breakpoints-source.d.ts.map +1 -0
- package/lib/browser/view/debug-breakpoints-source.js +58 -0
- package/lib/browser/view/debug-breakpoints-source.js.map +1 -0
- package/lib/browser/view/debug-breakpoints-widget.d.ts +23 -0
- package/lib/browser/view/debug-breakpoints-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-breakpoints-widget.js +81 -0
- package/lib/browser/view/debug-breakpoints-widget.js.map +1 -0
- package/lib/browser/view/debug-configuration-select.d.ts +67 -0
- package/lib/browser/view/debug-configuration-select.d.ts.map +1 -0
- package/lib/browser/view/debug-configuration-select.js +212 -0
- package/lib/browser/view/debug-configuration-select.js.map +1 -0
- package/lib/browser/view/debug-configuration-widget.d.ts +33 -0
- package/lib/browser/view/debug-configuration-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-configuration-widget.js +137 -0
- package/lib/browser/view/debug-configuration-widget.js.map +1 -0
- package/lib/browser/view/debug-exception-breakpoint.d.ts +15 -0
- package/lib/browser/view/debug-exception-breakpoint.d.ts.map +1 -0
- package/lib/browser/view/debug-exception-breakpoint.js +62 -0
- package/lib/browser/view/debug-exception-breakpoint.js.map +1 -0
- package/lib/browser/view/debug-session-widget.d.ts +29 -0
- package/lib/browser/view/debug-session-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-session-widget.js +127 -0
- package/lib/browser/view/debug-session-widget.js.map +1 -0
- package/lib/browser/view/debug-stack-frames-source.d.ts +18 -0
- package/lib/browser/view/debug-stack-frames-source.d.ts.map +1 -0
- package/lib/browser/view/debug-stack-frames-source.js +83 -0
- package/lib/browser/view/debug-stack-frames-source.js.map +1 -0
- package/lib/browser/view/debug-stack-frames-widget.d.ts +25 -0
- package/lib/browser/view/debug-stack-frames-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-stack-frames-widget.js +152 -0
- package/lib/browser/view/debug-stack-frames-widget.js.map +1 -0
- package/lib/browser/view/debug-threads-source.d.ts +9 -0
- package/lib/browser/view/debug-threads-source.d.ts.map +1 -0
- package/lib/browser/view/debug-threads-source.js +56 -0
- package/lib/browser/view/debug-threads-source.js.map +1 -0
- package/lib/browser/view/debug-threads-widget.d.ts +27 -0
- package/lib/browser/view/debug-threads-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-threads-widget.js +139 -0
- package/lib/browser/view/debug-threads-widget.js.map +1 -0
- package/lib/browser/view/debug-toolbar-widget.d.ts +34 -0
- package/lib/browser/view/debug-toolbar-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-toolbar-widget.js +139 -0
- package/lib/browser/view/debug-toolbar-widget.js.map +1 -0
- package/lib/browser/view/debug-variables-source.d.ts +10 -0
- package/lib/browser/view/debug-variables-source.d.ts.map +1 -0
- package/lib/browser/view/debug-variables-source.js +53 -0
- package/lib/browser/view/debug-variables-source.js.map +1 -0
- package/lib/browser/view/debug-variables-widget.d.ts +28 -0
- package/lib/browser/view/debug-variables-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-variables-widget.js +152 -0
- package/lib/browser/view/debug-variables-widget.js.map +1 -0
- package/lib/browser/view/debug-view-model.d.ts +55 -0
- package/lib/browser/view/debug-view-model.d.ts.map +1 -0
- package/lib/browser/view/debug-view-model.js +215 -0
- package/lib/browser/view/debug-view-model.js.map +1 -0
- package/lib/browser/view/debug-watch-expression.d.ts +33 -0
- package/lib/browser/view/debug-watch-expression.d.ts.map +1 -0
- package/lib/browser/view/debug-watch-expression.js +93 -0
- package/lib/browser/view/debug-watch-expression.js.map +1 -0
- package/lib/browser/view/debug-watch-source.d.ts +10 -0
- package/lib/browser/view/debug-watch-source.d.ts.map +1 -0
- package/lib/browser/view/debug-watch-source.js +51 -0
- package/lib/browser/view/debug-watch-source.js.map +1 -0
- package/lib/browser/view/debug-watch-widget.d.ts +17 -0
- package/lib/browser/view/debug-watch-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-watch-widget.js +71 -0
- package/lib/browser/view/debug-watch-widget.js.map +1 -0
- package/lib/browser/view/debug-widget.d.ts +24 -0
- package/lib/browser/view/debug-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-widget.js +101 -0
- package/lib/browser/view/debug-widget.js.map +1 -0
- package/lib/common/debug-adapter-contribution-registry.d.ts +60 -0
- package/lib/common/debug-adapter-contribution-registry.d.ts.map +1 -0
- package/lib/common/debug-adapter-contribution-registry.js +205 -0
- package/lib/common/debug-adapter-contribution-registry.js.map +1 -0
- package/lib/common/debug-adapter-session.d.ts +19 -0
- package/lib/common/debug-adapter-session.d.ts.map +1 -0
- package/lib/common/debug-adapter-session.js +79 -0
- package/lib/common/debug-adapter-session.js.map +1 -0
- package/lib/common/debug-common.d.ts +2 -0
- package/lib/common/debug-common.d.ts.map +1 -0
- package/lib/common/debug-common.js +21 -0
- package/lib/common/debug-common.js.map +1 -0
- package/lib/common/debug-compound.d.ts +15 -0
- package/lib/common/debug-compound.d.ts.map +1 -0
- package/lib/common/debug-compound.js +28 -0
- package/lib/common/debug-compound.js.map +1 -0
- package/lib/common/debug-configuration.d.ts +77 -0
- package/lib/common/debug-configuration.d.ts.map +1 -0
- package/lib/common/debug-configuration.js +32 -0
- package/lib/common/debug-configuration.js.map +1 -0
- package/lib/common/debug-model.d.ts +153 -0
- package/lib/common/debug-model.d.ts.map +1 -0
- package/lib/common/debug-model.js +36 -0
- package/lib/common/debug-model.js.map +1 -0
- package/lib/common/debug-preferences.d.ts +18 -0
- package/lib/common/debug-preferences.d.ts.map +1 -0
- package/lib/common/debug-preferences.js +89 -0
- package/lib/common/debug-preferences.js.map +1 -0
- package/lib/common/debug-service.d.ts +124 -0
- package/lib/common/debug-service.d.ts.map +1 -0
- package/lib/common/debug-service.js +67 -0
- package/lib/common/debug-service.js.map +1 -0
- package/lib/common/debug-uri-utils.d.ts +24 -0
- package/lib/common/debug-uri-utils.d.ts.map +1 -0
- package/lib/common/debug-uri-utils.js +27 -0
- package/lib/common/debug-uri-utils.js.map +1 -0
- package/lib/common/inline-debug-adapter.d.ts +19 -0
- package/lib/common/inline-debug-adapter.d.ts.map +1 -0
- package/lib/common/inline-debug-adapter.js +45 -0
- package/lib/common/inline-debug-adapter.js.map +1 -0
- package/lib/common/launch-preferences.d.ts +6 -0
- package/lib/common/launch-preferences.d.ts.map +1 -0
- package/lib/common/launch-preferences.js +37 -0
- package/lib/common/launch-preferences.js.map +1 -0
- package/lib/node/debug-adapter-factory.d.ts +20 -0
- package/lib/node/debug-adapter-factory.d.ts.map +1 -0
- package/lib/node/debug-adapter-factory.js +89 -0
- package/lib/node/debug-adapter-factory.js.map +1 -0
- package/lib/node/debug-adapter-session-manager.d.ts +38 -0
- package/lib/node/debug-adapter-session-manager.d.ts.map +1 -0
- package/lib/node/debug-adapter-session-manager.js +104 -0
- package/lib/node/debug-adapter-session-manager.js.map +1 -0
- package/lib/node/debug-backend-module.d.ts +4 -0
- package/lib/node/debug-backend-module.d.ts.map +1 -0
- package/lib/node/debug-backend-module.js +45 -0
- package/lib/node/debug-backend-module.js.map +1 -0
- package/lib/node/debug-service-impl.d.ts +31 -0
- package/lib/node/debug-service-impl.d.ts.map +1 -0
- package/lib/node/debug-service-impl.js +117 -0
- package/lib/node/debug-service-impl.js.map +1 -0
- package/lib/node/stream-debug-adapter.d.ts +41 -0
- package/lib/node/stream-debug-adapter.d.ts.map +1 -0
- package/lib/node/stream-debug-adapter.js +113 -0
- package/lib/node/stream-debug-adapter.js.map +1 -0
- package/package.json +15 -15
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2021 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.InlineDebugAdapter = void 0;
|
|
19
|
+
const event_1 = require("@theia/core/lib/common/event");
|
|
20
|
+
/**
|
|
21
|
+
* A debug adapter for using the inline implementation from a plugin.
|
|
22
|
+
*/
|
|
23
|
+
class InlineDebugAdapter {
|
|
24
|
+
constructor(debugAdapter) {
|
|
25
|
+
this.debugAdapter = debugAdapter;
|
|
26
|
+
this.messageReceivedEmitter = new event_1.Emitter();
|
|
27
|
+
this.onMessageReceived = this.messageReceivedEmitter.event;
|
|
28
|
+
this.onError = event_1.Event.None;
|
|
29
|
+
this.closeEmitter = new event_1.Emitter();
|
|
30
|
+
this.onClose = this.closeEmitter.event;
|
|
31
|
+
this.debugAdapter.onDidSendMessage(msg => {
|
|
32
|
+
this.messageReceivedEmitter.fire(JSON.stringify(msg));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
async start() {
|
|
36
|
+
}
|
|
37
|
+
send(message) {
|
|
38
|
+
this.debugAdapter.handleMessage(JSON.parse(message));
|
|
39
|
+
}
|
|
40
|
+
async stop() {
|
|
41
|
+
this.debugAdapter.dispose();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.InlineDebugAdapter = InlineDebugAdapter;
|
|
45
|
+
//# sourceMappingURL=inline-debug-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-debug-adapter.js","sourceRoot":"","sources":["../../src/common/inline-debug-adapter.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,wDAA8D;AAI9D;;GAEG;AACH,MAAa,kBAAkB;IAO3B,YAAoB,YAAgC;QAAhC,iBAAY,GAAZ,YAAY,CAAoB;QAN5C,2BAAsB,GAAG,IAAI,eAAO,EAAU,CAAC;QACvD,sBAAiB,GAAkB,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC;QACrE,YAAO,GAAiB,aAAK,CAAC,IAAI,CAAC;QAC3B,iBAAY,GAAG,IAAI,eAAO,EAAQ,CAAC;QAC3C,YAAO,GAAgB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;QAG3C,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE;YACrC,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,KAAK;IACX,CAAC;IAED,IAAI,CAAC,OAAe;QAChB,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;IAChC,CAAC;CACJ;AAvBD,gDAuBC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { interfaces } from '@theia/core/shared/inversify';
|
|
2
|
+
import { PreferenceSchema } from '@theia/core/lib/common';
|
|
3
|
+
export declare const launchSchemaId = "vscode://schemas/launch";
|
|
4
|
+
export declare const launchPreferencesSchema: PreferenceSchema;
|
|
5
|
+
export declare function bindLaunchPreferences(bind: interfaces.Bind): void;
|
|
6
|
+
//# sourceMappingURL=launch-preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-preferences.d.ts","sourceRoot":"","sources":["../../src/common/launch-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,OAAO,EAAmD,gBAAgB,EAAmB,MAAM,wBAAwB,CAAC;AAE5H,eAAO,MAAM,cAAc,4BAA4B,CAAC;AAExD,eAAO,MAAM,uBAAuB,EAAE,gBASrC,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAGjE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2019 TypeFox 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.bindLaunchPreferences = exports.launchPreferencesSchema = exports.launchSchemaId = void 0;
|
|
19
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
20
|
+
const common_1 = require("@theia/core/lib/common");
|
|
21
|
+
exports.launchSchemaId = 'vscode://schemas/launch';
|
|
22
|
+
exports.launchPreferencesSchema = {
|
|
23
|
+
scope: common_1.PreferenceScope.Folder,
|
|
24
|
+
properties: {
|
|
25
|
+
'launch': {
|
|
26
|
+
$ref: exports.launchSchemaId,
|
|
27
|
+
description: nls_1.nls.localizeByDefault("Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."),
|
|
28
|
+
default: { configurations: [], compounds: [] }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function bindLaunchPreferences(bind) {
|
|
33
|
+
bind(common_1.PreferenceContribution).toConstantValue({ schema: exports.launchPreferencesSchema });
|
|
34
|
+
bind(common_1.PreferenceConfiguration).toConstantValue({ name: 'launch' });
|
|
35
|
+
}
|
|
36
|
+
exports.bindLaunchPreferences = bindLaunchPreferences;
|
|
37
|
+
//# sourceMappingURL=launch-preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-preferences.js","sourceRoot":"","sources":["../../src/common/launch-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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;;;AAGhF,oDAAiD;AACjD,mDAA4H;AAE/G,QAAA,cAAc,GAAG,yBAAyB,CAAC;AAE3C,QAAA,uBAAuB,GAAqB;IACrD,KAAK,EAAE,wBAAe,CAAC,MAAM;IAC7B,UAAU,EAAE;QACR,QAAQ,EAAE;YACN,IAAI,EAAE,sBAAc;YACpB,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,wHAAwH,CAAC;YAC5J,OAAO,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;SACjD;KACJ;CACJ,CAAC;AAEF,SAAgB,qBAAqB,CAAC,IAAqB;IACvD,IAAI,CAAC,+BAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,+BAAuB,EAAE,CAAC,CAAC;IAClF,IAAI,CAAC,gCAAuB,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;AACtE,CAAC;AAHD,sDAGC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RawProcessFactory, ProcessManager } from '@theia/process/lib/node';
|
|
2
|
+
import { DebugAdapterExecutable, DebugAdapterSession, DebugAdapterSessionFactory, DebugAdapterFactory, DebugAdapter } from '../common/debug-model';
|
|
3
|
+
/**
|
|
4
|
+
* [DebugAdapterFactory](#DebugAdapterFactory) implementation based on
|
|
5
|
+
* launching the debug adapter as separate process.
|
|
6
|
+
*/
|
|
7
|
+
export declare class LaunchBasedDebugAdapterFactory implements DebugAdapterFactory {
|
|
8
|
+
protected readonly processFactory: RawProcessFactory;
|
|
9
|
+
protected readonly processManager: ProcessManager;
|
|
10
|
+
start(executable: DebugAdapterExecutable): DebugAdapter;
|
|
11
|
+
private childProcess;
|
|
12
|
+
connect(debugServerPort: number): DebugAdapter;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* [DebugAdapterSessionFactory](#DebugAdapterSessionFactory) implementation.
|
|
16
|
+
*/
|
|
17
|
+
export declare class DebugAdapterSessionFactoryImpl implements DebugAdapterSessionFactory {
|
|
18
|
+
get(sessionId: string, debugAdapter: DebugAdapter): DebugAdapterSession;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=debug-adapter-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-adapter-factory.d.ts","sourceRoot":"","sources":["../../src/node/debug-adapter-factory.ts"],"names":[],"mappings":"AAyBA,OAAO,EACH,iBAAiB,EACjB,cAAc,EAIjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,sBAAsB,EACtB,mBAAmB,EACnB,0BAA0B,EAC1B,mBAAmB,EAEnB,YAAY,EACf,MAAM,uBAAuB,CAAC;AAM/B;;;GAGG;AACH,qBACa,8BAA+B,YAAW,mBAAmB;IAEtE,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,iBAAiB,CAAC;IAErD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAElD,KAAK,CAAC,UAAU,EAAE,sBAAsB,GAAG,YAAY;IAYvD,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,YAAY;CAOjD;AAED;;GAEG;AACH,qBACa,8BAA+B,YAAW,0BAA0B;IAE7E,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,mBAAmB;CAM1E"}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.DebugAdapterSessionFactoryImpl = exports.LaunchBasedDebugAdapterFactory = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
/*---------------------------------------------------------------------------------------------
|
|
21
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
22
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
23
|
+
*--------------------------------------------------------------------------------------------*/
|
|
24
|
+
// Some entities copied and modified from https://github.com/Microsoft/vscode-debugadapter-node/blob/master/adapter/src/protocol.ts
|
|
25
|
+
const net = require("net");
|
|
26
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
27
|
+
const node_1 = require("@theia/process/lib/node");
|
|
28
|
+
const debug_adapter_session_1 = require("../common/debug-adapter-session");
|
|
29
|
+
const application_package_1 = require("@theia/core/shared/@theia/application-package");
|
|
30
|
+
const stream_debug_adapter_1 = require("./stream-debug-adapter");
|
|
31
|
+
const common_1 = require("@theia/core/lib/common");
|
|
32
|
+
/**
|
|
33
|
+
* [DebugAdapterFactory](#DebugAdapterFactory) implementation based on
|
|
34
|
+
* launching the debug adapter as separate process.
|
|
35
|
+
*/
|
|
36
|
+
let LaunchBasedDebugAdapterFactory = class LaunchBasedDebugAdapterFactory {
|
|
37
|
+
start(executable) {
|
|
38
|
+
const process = this.childProcess(executable);
|
|
39
|
+
if (!process.process) {
|
|
40
|
+
throw new Error(`Could not start debug adapter process: ${JSON.stringify(executable)}`);
|
|
41
|
+
}
|
|
42
|
+
// FIXME: propagate onError + onExit
|
|
43
|
+
const provider = new stream_debug_adapter_1.ProcessDebugAdapter(process.process);
|
|
44
|
+
return provider;
|
|
45
|
+
}
|
|
46
|
+
childProcess(executable) {
|
|
47
|
+
const isForkOptions = (forkOptions) => (0, common_1.isObject)(forkOptions) && 'modulePath' in forkOptions;
|
|
48
|
+
const processOptions = { ...executable };
|
|
49
|
+
const options = { stdio: ['pipe', 'pipe', 2] };
|
|
50
|
+
if (isForkOptions(processOptions)) {
|
|
51
|
+
options.stdio.push('ipc');
|
|
52
|
+
options.env = application_package_1.environment.electron.runAsNodeEnv();
|
|
53
|
+
options.execArgv = executable.execArgv;
|
|
54
|
+
}
|
|
55
|
+
processOptions.options = options;
|
|
56
|
+
return this.processFactory(processOptions);
|
|
57
|
+
}
|
|
58
|
+
connect(debugServerPort) {
|
|
59
|
+
const socket = net.createConnection(debugServerPort);
|
|
60
|
+
// FIXME: propagate socket.on('error', ...) + socket.on('close', ...)
|
|
61
|
+
const provider = new stream_debug_adapter_1.SocketDebugAdapter(socket);
|
|
62
|
+
return provider;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
exports.LaunchBasedDebugAdapterFactory = LaunchBasedDebugAdapterFactory;
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, inversify_1.inject)(node_1.RawProcessFactory),
|
|
68
|
+
tslib_1.__metadata("design:type", Function)
|
|
69
|
+
], LaunchBasedDebugAdapterFactory.prototype, "processFactory", void 0);
|
|
70
|
+
tslib_1.__decorate([
|
|
71
|
+
(0, inversify_1.inject)(node_1.ProcessManager),
|
|
72
|
+
tslib_1.__metadata("design:type", node_1.ProcessManager)
|
|
73
|
+
], LaunchBasedDebugAdapterFactory.prototype, "processManager", void 0);
|
|
74
|
+
exports.LaunchBasedDebugAdapterFactory = LaunchBasedDebugAdapterFactory = tslib_1.__decorate([
|
|
75
|
+
(0, inversify_1.injectable)()
|
|
76
|
+
], LaunchBasedDebugAdapterFactory);
|
|
77
|
+
/**
|
|
78
|
+
* [DebugAdapterSessionFactory](#DebugAdapterSessionFactory) implementation.
|
|
79
|
+
*/
|
|
80
|
+
let DebugAdapterSessionFactoryImpl = class DebugAdapterSessionFactoryImpl {
|
|
81
|
+
get(sessionId, debugAdapter) {
|
|
82
|
+
return new debug_adapter_session_1.DebugAdapterSessionImpl(sessionId, debugAdapter);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
exports.DebugAdapterSessionFactoryImpl = DebugAdapterSessionFactoryImpl;
|
|
86
|
+
exports.DebugAdapterSessionFactoryImpl = DebugAdapterSessionFactoryImpl = tslib_1.__decorate([
|
|
87
|
+
(0, inversify_1.injectable)()
|
|
88
|
+
], DebugAdapterSessionFactoryImpl);
|
|
89
|
+
//# sourceMappingURL=debug-adapter-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-adapter-factory.js","sourceRoot":"","sources":["../../src/node/debug-adapter-factory.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;;;gGAGgG;AAEhG,mIAAmI;AAEnI,2BAA2B;AAC3B,4DAAkE;AAClE,kDAMiC;AASjC,2EAA0E;AAC1E,uFAA4E;AAC5E,iEAAiF;AACjF,mDAAkD;AAElD;;;GAGG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAMvC,KAAK,CAAC,UAAkC;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAE9C,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,0CAA0C,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAC5F,CAAC;QAED,oCAAoC;QACpC,MAAM,QAAQ,GAAG,IAAI,0CAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC1D,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEO,YAAY,CAAC,UAAkC;QACnD,MAAM,aAAa,GAAG,CAAC,WAAoB,EAAiC,EAAE,CAC1E,IAAA,iBAAQ,EAAC,WAAW,CAAC,IAAI,YAAY,IAAI,WAAW,CAAC;QAEzD,MAAM,cAAc,GAAuC,EAAE,GAAG,UAAU,EAAE,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2
|
+
import { DebugConfiguration } from '../common/debug-configuration';
|
|
3
|
+
import { DebugAdapterSession, DebugAdapterSessionFactory, DebugAdapterFactory } from '../common/debug-model';
|
|
4
|
+
import { DebugAdapterContributionRegistry } from '../common/debug-adapter-contribution-registry';
|
|
5
|
+
/**
|
|
6
|
+
* Debug adapter session manager.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DebugAdapterSessionManager implements MessagingService.Contribution {
|
|
9
|
+
protected readonly sessions: Map<string, DebugAdapterSession>;
|
|
10
|
+
protected readonly debugAdapterSessionFactory: DebugAdapterSessionFactory;
|
|
11
|
+
protected readonly debugAdapterFactory: DebugAdapterFactory;
|
|
12
|
+
configure(service: MessagingService): void;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new [debug adapter session](#DebugAdapterSession).
|
|
15
|
+
* @param config The [DebugConfiguration](#DebugConfiguration)
|
|
16
|
+
* @returns The debug adapter session
|
|
17
|
+
*/
|
|
18
|
+
create(config: DebugConfiguration, registry: DebugAdapterContributionRegistry): Promise<DebugAdapterSession>;
|
|
19
|
+
/**
|
|
20
|
+
* Removes [debug adapter session](#DebugAdapterSession) from the list of the instantiated sessions.
|
|
21
|
+
* Is invoked when session is terminated and isn't needed anymore.
|
|
22
|
+
* @param sessionId The session identifier
|
|
23
|
+
*/
|
|
24
|
+
remove(sessionId: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* Finds the debug adapter session by its id.
|
|
27
|
+
* Returning the value 'undefined' means the session isn't found.
|
|
28
|
+
* @param sessionId The session identifier
|
|
29
|
+
* @returns The debug adapter session
|
|
30
|
+
*/
|
|
31
|
+
find(sessionId: string): DebugAdapterSession | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Returns all instantiated debug adapter sessions.
|
|
34
|
+
* @returns An array of debug adapter sessions
|
|
35
|
+
*/
|
|
36
|
+
getAll(): IterableIterator<DebugAdapterSession>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=debug-adapter-session-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-adapter-session-manager.d.ts","sourceRoot":"","sources":["../../src/node/debug-adapter-session-manager.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AAGpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC7G,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AAEjG;;GAEG;AACH,qBACa,0BAA2B,YAAW,gBAAgB,CAAC,YAAY;IAC5E,SAAS,CAAC,QAAQ,CAAC,QAAQ,mCAA0C;IAGrE,SAAS,CAAC,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;IAG1E,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAE5D,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAW1C;;;;OAIG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAAQ,EAAE,gCAAgC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAyBlH;;;;OAIG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAI/B;;;;;OAKG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;IAIxD;;;OAGG;IACH,MAAM,IAAI,gBAAgB,CAAC,mBAAmB,CAAC;CAGlD"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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.DebugAdapterSessionManager = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const coreutils_1 = require("@theia/core/shared/@lumino/coreutils");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const debug_service_1 = require("../common/debug-service");
|
|
23
|
+
const debug_model_1 = require("../common/debug-model");
|
|
24
|
+
/**
|
|
25
|
+
* Debug adapter session manager.
|
|
26
|
+
*/
|
|
27
|
+
let DebugAdapterSessionManager = class DebugAdapterSessionManager {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.sessions = new Map();
|
|
30
|
+
}
|
|
31
|
+
configure(service) {
|
|
32
|
+
service.registerChannelHandler(`${debug_service_1.DebugAdapterPath}/:id`, ({ id }, wsChannel) => {
|
|
33
|
+
const session = this.find(id);
|
|
34
|
+
if (!session) {
|
|
35
|
+
wsChannel.close();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
session.start(new debug_service_1.ForwardingDebugChannel(wsChannel));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Creates a new [debug adapter session](#DebugAdapterSession).
|
|
43
|
+
* @param config The [DebugConfiguration](#DebugConfiguration)
|
|
44
|
+
* @returns The debug adapter session
|
|
45
|
+
*/
|
|
46
|
+
async create(config, registry) {
|
|
47
|
+
const sessionId = coreutils_1.UUID.uuid4();
|
|
48
|
+
let communicationProvider;
|
|
49
|
+
if ('debugServer' in config) {
|
|
50
|
+
communicationProvider = this.debugAdapterFactory.connect(config.debugServer);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
const executable = await registry.provideDebugAdapterExecutable(config);
|
|
54
|
+
communicationProvider = this.debugAdapterFactory.start(executable);
|
|
55
|
+
}
|
|
56
|
+
const sessionFactory = registry.debugAdapterSessionFactory(config.type) || this.debugAdapterSessionFactory;
|
|
57
|
+
const session = sessionFactory.get(sessionId, communicationProvider);
|
|
58
|
+
this.sessions.set(sessionId, session);
|
|
59
|
+
if (config.parentSession) {
|
|
60
|
+
const parentSession = this.sessions.get(config.parentSession.id);
|
|
61
|
+
if (parentSession) {
|
|
62
|
+
session.parentSession = parentSession;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return session;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Removes [debug adapter session](#DebugAdapterSession) from the list of the instantiated sessions.
|
|
69
|
+
* Is invoked when session is terminated and isn't needed anymore.
|
|
70
|
+
* @param sessionId The session identifier
|
|
71
|
+
*/
|
|
72
|
+
remove(sessionId) {
|
|
73
|
+
this.sessions.delete(sessionId);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Finds the debug adapter session by its id.
|
|
77
|
+
* Returning the value 'undefined' means the session isn't found.
|
|
78
|
+
* @param sessionId The session identifier
|
|
79
|
+
* @returns The debug adapter session
|
|
80
|
+
*/
|
|
81
|
+
find(sessionId) {
|
|
82
|
+
return this.sessions.get(sessionId);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns all instantiated debug adapter sessions.
|
|
86
|
+
* @returns An array of debug adapter sessions
|
|
87
|
+
*/
|
|
88
|
+
getAll() {
|
|
89
|
+
return this.sessions.values();
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
exports.DebugAdapterSessionManager = DebugAdapterSessionManager;
|
|
93
|
+
tslib_1.__decorate([
|
|
94
|
+
(0, inversify_1.inject)(debug_model_1.DebugAdapterSessionFactory),
|
|
95
|
+
tslib_1.__metadata("design:type", Object)
|
|
96
|
+
], DebugAdapterSessionManager.prototype, "debugAdapterSessionFactory", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, inversify_1.inject)(debug_model_1.DebugAdapterFactory),
|
|
99
|
+
tslib_1.__metadata("design:type", Object)
|
|
100
|
+
], DebugAdapterSessionManager.prototype, "debugAdapterFactory", void 0);
|
|
101
|
+
exports.DebugAdapterSessionManager = DebugAdapterSessionManager = tslib_1.__decorate([
|
|
102
|
+
(0, inversify_1.injectable)()
|
|
103
|
+
], DebugAdapterSessionManager);
|
|
104
|
+
//# sourceMappingURL=debug-adapter-session-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-adapter-session-manager.js","sourceRoot":"","sources":["../../src/node/debug-adapter-session-manager.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,oEAA4D;AAC5D,4DAAkE;AAGlE,2DAAmF;AAEnF,uDAA6G;AAG7G;;GAEG;AAEI,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAAhC;QACgB,aAAQ,GAAG,IAAI,GAAG,EAA+B,CAAC;IA2EzE,CAAC;IAnEG,SAAS,CAAC,OAAyB;QAC/B,OAAO,CAAC,sBAAsB,CAAC,GAAG,gCAAgB,MAAM,EAAE,CAAC,EAAE,EAAE,EAAkB,EAAE,SAAS,EAAE,EAAE;YAC5F,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;gBACX,SAA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,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,SAAiB;QAClB,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACxC,CAAC;IAED;;;OAGG;IACH,MAAM;QACF,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAClC,CAAC;CACJ,CAAA;AA5EY,gEAA0B;AAIhB;IADlB,IAAA,kBAAM,EAAC,wCAA0B,CAAC;;8EACuC;AAGvD;IADlB,IAAA,kBAAM,EAAC,iCAAmB,CAAC;;uEACgC;qCAPnD,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CA4EtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-backend-module.d.ts","sourceRoot":"","sources":["../../src/node/debug-backend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AA8B/D,wBASG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
const common_1 = require("@theia/core/lib/common");
|
|
19
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
20
|
+
const debug_service_1 = require("../common/debug-service");
|
|
21
|
+
const debug_adapter_factory_1 = require("./debug-adapter-factory");
|
|
22
|
+
const messaging_service_1 = require("@theia/core/lib/node/messaging/messaging-service");
|
|
23
|
+
const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
|
|
24
|
+
const debug_model_1 = require("../common/debug-model");
|
|
25
|
+
const debug_service_impl_1 = require("./debug-service-impl");
|
|
26
|
+
const debug_adapter_contribution_registry_1 = require("../common/debug-adapter-contribution-registry");
|
|
27
|
+
const debug_adapter_session_manager_1 = require("./debug-adapter-session-manager");
|
|
28
|
+
const debug_preferences_1 = require("../common/debug-preferences");
|
|
29
|
+
const launch_preferences_1 = require("../common/launch-preferences");
|
|
30
|
+
const debugConnectionModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService }) => {
|
|
31
|
+
(0, common_1.bindContributionProvider)(bind, debug_model_1.DebugAdapterContribution);
|
|
32
|
+
bind(debug_adapter_contribution_registry_1.DebugAdapterContributionRegistry).toSelf().inSingletonScope();
|
|
33
|
+
bind(debug_service_1.DebugService).to(debug_service_impl_1.DebugServiceImpl).inSingletonScope();
|
|
34
|
+
bindBackendService(debug_service_1.DebugPath, debug_service_1.DebugService);
|
|
35
|
+
});
|
|
36
|
+
exports.default = new inversify_1.ContainerModule(bind => {
|
|
37
|
+
bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(debugConnectionModule);
|
|
38
|
+
bind(debug_model_1.DebugAdapterSessionFactory).to(debug_adapter_factory_1.DebugAdapterSessionFactoryImpl).inSingletonScope();
|
|
39
|
+
bind(debug_model_1.DebugAdapterFactory).to(debug_adapter_factory_1.LaunchBasedDebugAdapterFactory).inSingletonScope();
|
|
40
|
+
bind(debug_adapter_session_manager_1.DebugAdapterSessionManager).toSelf().inSingletonScope();
|
|
41
|
+
bind(messaging_service_1.MessagingService.Contribution).toService(debug_adapter_session_manager_1.DebugAdapterSessionManager);
|
|
42
|
+
(0, debug_preferences_1.bindDebugPreferences)(bind);
|
|
43
|
+
(0, launch_preferences_1.bindLaunchPreferences)(bind);
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=debug-backend-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-backend-module.js","sourceRoot":"","sources":["../../src/node/debug-backend-module.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,mDAAkE;AAClE,4DAA+D;AAC/D,2DAGiC;AACjC,mEAGiC;AACjC,wFAAoF;AACpF,4GAAuG;AACvG,uDAI+B;AAC/B,6DAAwD;AACxD,uGAAiG;AACjG,mFAA6E;AAC7E,mEAAmE;AACnE,qEAAqE;AAErE,MAAM,qBAAqB,GAAG,uDAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC5F,IAAA,iCAAwB,EAAC,IAAI,EAAE,sCAAwB,CAAC,CAAC;IACzD,IAAI,CAAC,sEAAgC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAEnE,IAAI,CAAC,4BAAY,CAAC,CAAC,EAAE,CAAC,qCAAgB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAC3D,kBAAkB,CAAC,yBAAS,EAAE,4BAAY,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,uDAAyB,CAAC,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;IAEvE,IAAI,CAAC,wCAA0B,CAAC,CAAC,EAAE,CAAC,sDAA8B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvF,IAAI,CAAC,iCAAmB,CAAC,CAAC,EAAE,CAAC,sDAA8B,CAAC,CAAC,gBAAgB,EAAE,CAAC;IAChF,IAAI,CAAC,0DAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,oCAAgB,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,0DAA0B,CAAC,CAAC;IAC1E,IAAA,wCAAoB,EAAC,IAAI,CAAC,CAAC;IAC3B,IAAA,0CAAqB,EAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DebugConfiguration } from '../common/debug-configuration';
|
|
2
|
+
import { DebugService, DebuggerDescription } from '../common/debug-service';
|
|
3
|
+
import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-schema';
|
|
4
|
+
import { CommandIdVariables } from '@theia/variable-resolver/lib/common/variable-types';
|
|
5
|
+
import { DebugAdapterSessionManager } from './debug-adapter-session-manager';
|
|
6
|
+
import { DebugAdapterContributionRegistry } from '../common/debug-adapter-contribution-registry';
|
|
7
|
+
import { Event } from '@theia/core';
|
|
8
|
+
/**
|
|
9
|
+
* DebugService implementation.
|
|
10
|
+
*/
|
|
11
|
+
export declare class DebugServiceImpl implements DebugService {
|
|
12
|
+
protected readonly sessionManager: DebugAdapterSessionManager;
|
|
13
|
+
protected readonly registry: DebugAdapterContributionRegistry;
|
|
14
|
+
get onDidChangeDebugConfigurationProviders(): Event<void>;
|
|
15
|
+
dispose(): void;
|
|
16
|
+
debugTypes(): Promise<string[]>;
|
|
17
|
+
getDebuggersForLanguage(language: string): Promise<DebuggerDescription[]>;
|
|
18
|
+
getSchemaAttributes(debugType: string): Promise<IJSONSchema[]>;
|
|
19
|
+
getConfigurationSnippets(): Promise<IJSONSchemaSnippet[]>;
|
|
20
|
+
provideDebuggerVariables(debugType: string): Promise<CommandIdVariables>;
|
|
21
|
+
provideDebugConfigurations(debugType: string, workspaceFolderUri?: string): Promise<DebugConfiguration[]>;
|
|
22
|
+
provideDynamicDebugConfigurations(): Promise<Record<string, DebugConfiguration[]>>;
|
|
23
|
+
fetchDynamicDebugConfiguration(name: string, type: string, folder?: string): Promise<DebugConfiguration | undefined>;
|
|
24
|
+
resolveDebugConfiguration(config: DebugConfiguration, workspaceFolderUri?: string): Promise<DebugConfiguration>;
|
|
25
|
+
resolveDebugConfigurationWithSubstitutedVariables(config: DebugConfiguration, workspaceFolderUri?: string): Promise<DebugConfiguration>;
|
|
26
|
+
protected readonly sessions: Set<string>;
|
|
27
|
+
createDebugSession(config: DebugConfiguration, _workspaceFolderUri?: string): Promise<string>;
|
|
28
|
+
terminateDebugSession(sessionId?: string): Promise<void>;
|
|
29
|
+
protected doStop(sessionId: string): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=debug-service-impl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-service-impl.d.ts","sourceRoot":"","sources":["../../src/node/debug-service-impl.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,gCAAgC,EAAE,MAAM,+CAA+C,CAAC;AACjG,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC;;GAEG;AACH,qBACa,gBAAiB,YAAW,YAAY;IAG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BAAqB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;cAmB9C,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ3D"}
|
|
@@ -0,0 +1,117 @@
|
|
|
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.DebugServiceImpl = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const debug_adapter_session_manager_1 = require("./debug-adapter-session-manager");
|
|
22
|
+
const debug_adapter_contribution_registry_1 = require("../common/debug-adapter-contribution-registry");
|
|
23
|
+
const core_1 = require("@theia/core");
|
|
24
|
+
/**
|
|
25
|
+
* DebugService implementation.
|
|
26
|
+
*/
|
|
27
|
+
let DebugServiceImpl = class DebugServiceImpl {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.sessions = new Set();
|
|
30
|
+
}
|
|
31
|
+
get onDidChangeDebugConfigurationProviders() {
|
|
32
|
+
return core_1.Event.None;
|
|
33
|
+
}
|
|
34
|
+
dispose() {
|
|
35
|
+
this.terminateDebugSession();
|
|
36
|
+
}
|
|
37
|
+
async debugTypes() {
|
|
38
|
+
return this.registry.debugTypes();
|
|
39
|
+
}
|
|
40
|
+
getDebuggersForLanguage(language) {
|
|
41
|
+
return this.registry.getDebuggersForLanguage(language);
|
|
42
|
+
}
|
|
43
|
+
getSchemaAttributes(debugType) {
|
|
44
|
+
return this.registry.getSchemaAttributes(debugType);
|
|
45
|
+
}
|
|
46
|
+
getConfigurationSnippets() {
|
|
47
|
+
return this.registry.getConfigurationSnippets();
|
|
48
|
+
}
|
|
49
|
+
async provideDebuggerVariables(debugType) {
|
|
50
|
+
// TODO: Support resolution of variables map through Theia extensions?
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
async provideDebugConfigurations(debugType, workspaceFolderUri) {
|
|
54
|
+
return this.registry.provideDebugConfigurations(debugType, workspaceFolderUri);
|
|
55
|
+
}
|
|
56
|
+
async provideDynamicDebugConfigurations() {
|
|
57
|
+
// TODO: Support dynamic debug configurations through Theia extensions?
|
|
58
|
+
return {};
|
|
59
|
+
}
|
|
60
|
+
fetchDynamicDebugConfiguration(name, type, folder) {
|
|
61
|
+
// TODO: Support dynamic debug configurations through Theia extensions?
|
|
62
|
+
return Promise.resolve(undefined);
|
|
63
|
+
}
|
|
64
|
+
async resolveDebugConfiguration(config, workspaceFolderUri) {
|
|
65
|
+
return this.registry.resolveDebugConfiguration(config, workspaceFolderUri);
|
|
66
|
+
}
|
|
67
|
+
async resolveDebugConfigurationWithSubstitutedVariables(config, workspaceFolderUri) {
|
|
68
|
+
return this.registry.resolveDebugConfigurationWithSubstitutedVariables(config, workspaceFolderUri);
|
|
69
|
+
}
|
|
70
|
+
async createDebugSession(config, _workspaceFolderUri) {
|
|
71
|
+
const session = await this.sessionManager.create(config, this.registry);
|
|
72
|
+
this.sessions.add(session.id);
|
|
73
|
+
return session.id;
|
|
74
|
+
}
|
|
75
|
+
async terminateDebugSession(sessionId) {
|
|
76
|
+
if (sessionId) {
|
|
77
|
+
await this.doStop(sessionId);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const promises = [];
|
|
81
|
+
const sessions = [...this.sessions];
|
|
82
|
+
this.sessions.clear();
|
|
83
|
+
for (const session of sessions) {
|
|
84
|
+
promises.push((async () => {
|
|
85
|
+
try {
|
|
86
|
+
await this.doStop(session);
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
console.error('terminateDebugSession failed:', e);
|
|
90
|
+
}
|
|
91
|
+
})());
|
|
92
|
+
}
|
|
93
|
+
await Promise.all(promises);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async doStop(sessionId) {
|
|
97
|
+
const debugSession = this.sessionManager.find(sessionId);
|
|
98
|
+
if (debugSession) {
|
|
99
|
+
this.sessionManager.remove(sessionId);
|
|
100
|
+
this.sessions.delete(sessionId);
|
|
101
|
+
await debugSession.stop();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
exports.DebugServiceImpl = DebugServiceImpl;
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
(0, inversify_1.inject)(debug_adapter_session_manager_1.DebugAdapterSessionManager),
|
|
108
|
+
tslib_1.__metadata("design:type", debug_adapter_session_manager_1.DebugAdapterSessionManager)
|
|
109
|
+
], DebugServiceImpl.prototype, "sessionManager", void 0);
|
|
110
|
+
tslib_1.__decorate([
|
|
111
|
+
(0, inversify_1.inject)(debug_adapter_contribution_registry_1.DebugAdapterContributionRegistry),
|
|
112
|
+
tslib_1.__metadata("design:type", debug_adapter_contribution_registry_1.DebugAdapterContributionRegistry)
|
|
113
|
+
], DebugServiceImpl.prototype, "registry", void 0);
|
|
114
|
+
exports.DebugServiceImpl = DebugServiceImpl = tslib_1.__decorate([
|
|
115
|
+
(0, inversify_1.injectable)()
|
|
116
|
+
], DebugServiceImpl);
|
|
117
|
+
//# sourceMappingURL=debug-service-impl.js.map
|
|
@@ -0,0 +1 @@
|
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