@theia/debug 1.67.0-next.56 → 1.67.0-next.86
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 +108 -0
- package/lib/browser/console/debug-console-items.d.ts.map +1 -0
- package/lib/browser/console/debug-console-items.js +407 -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 +193 -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 +147 -0
- package/lib/browser/debug-session-manager.d.ts.map +1 -0
- package/lib/browser/debug-session-manager.js +640 -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 +200 -0
- package/lib/browser/debug-session.d.ts.map +1 -0
- package/lib/browser/debug-session.js +955 -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 +20 -0
- package/lib/browser/editor/debug-hover-source.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-source.js +119 -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 +165 -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 +266 -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 +54 -0
- package/lib/browser/view/debug-variables-source.js.map +1 -0
- package/lib/browser/view/debug-variables-widget.d.ts +43 -0
- package/lib/browser/view/debug-variables-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-variables-widget.js +207 -0
- package/lib/browser/view/debug-variables-widget.js.map +1 -0
- package/lib/browser/view/debug-view-model.d.ts +59 -0
- package/lib/browser/view/debug-view-model.d.ts.map +1 -0
- package/lib/browser/view/debug-view-model.js +225 -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 +92 -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 +52 -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 +19 -0
- package/lib/common/debug-preferences.d.ts.map +1 -0
- package/lib/common/debug-preferences.js +99 -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
- package/src/browser/console/debug-console-items.tsx +90 -21
- package/src/browser/console/debug-console-session.ts +1 -0
- package/src/browser/debug-session-contribution.ts +3 -1
- package/src/browser/debug-session-manager.ts +10 -0
- package/src/browser/debug-session.tsx +13 -1
- package/src/browser/editor/debug-hover-source.tsx +6 -2
- package/src/browser/editor/debug-inline-value-decorator.ts +1 -1
- package/src/browser/model/debug-stack-frame.tsx +13 -6
- package/src/browser/model/debug-thread.tsx +14 -10
- package/src/browser/style/index.css +17 -0
- package/src/browser/view/debug-variables-source.ts +1 -0
- package/src/browser/view/debug-variables-widget.ts +59 -0
- package/src/browser/view/debug-view-model.ts +13 -0
- package/src/browser/view/debug-watch-expression.tsx +5 -6
- package/src/browser/view/debug-watch-source.ts +1 -0
- package/src/common/debug-preferences.ts +12 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { DebugConfiguration } from './debug-configuration';
|
|
2
|
+
import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-schema';
|
|
3
|
+
import { MaybePromise } from '@theia/core/lib/common/types';
|
|
4
|
+
import { Event } from '@theia/core';
|
|
5
|
+
import { DebugChannel } from './debug-service';
|
|
6
|
+
/**
|
|
7
|
+
* DebugAdapterSession symbol for DI.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DebugAdapterSession: unique symbol;
|
|
10
|
+
/**
|
|
11
|
+
* The debug adapter session. The debug adapter session manages the lifecycle of a
|
|
12
|
+
* debug session: the debug session should be discarded if and only if the debug adapter
|
|
13
|
+
* session is stopped.
|
|
14
|
+
*/
|
|
15
|
+
export interface DebugAdapterSession {
|
|
16
|
+
id: string;
|
|
17
|
+
parentSession?: DebugAdapterSession;
|
|
18
|
+
start(channel: DebugChannel): Promise<void>;
|
|
19
|
+
stop(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* DebugAdapterSessionFactory symbol for DI.
|
|
23
|
+
*/
|
|
24
|
+
export declare const DebugAdapterSessionFactory: unique symbol;
|
|
25
|
+
/**
|
|
26
|
+
* The [debug session](#DebugSession) factory.
|
|
27
|
+
*/
|
|
28
|
+
export interface DebugAdapterSessionFactory {
|
|
29
|
+
get(sessionId: string, debugAdapter: DebugAdapter): DebugAdapterSession;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Debug adapter executable for spawning.
|
|
33
|
+
*/
|
|
34
|
+
export interface DebugAdapterSpawnExecutable {
|
|
35
|
+
command: string;
|
|
36
|
+
args?: string[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Debug adapter executable for forking.
|
|
40
|
+
*/
|
|
41
|
+
export interface DebugAdapterForkExecutable {
|
|
42
|
+
modulePath: string;
|
|
43
|
+
execArgv?: string[];
|
|
44
|
+
args?: string[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Debug adapter executable.
|
|
48
|
+
* Parameters to instantiate the debug adapter.
|
|
49
|
+
*
|
|
50
|
+
* In case of launching adapter the parameters contain a command and arguments. For instance:
|
|
51
|
+
* {'command' : 'COMMAND_TO_LAUNCH_DEBUG_ADAPTER', args : [ { 'arg1', 'arg2' } ] }
|
|
52
|
+
*
|
|
53
|
+
* In case of forking the node process, contain the modulePath to fork. For instance:
|
|
54
|
+
* {'modulePath' : 'NODE_COMMAND_TO_LAUNCH_DEBUG_ADAPTER', args : [ { 'arg1', 'arg2' } ] }
|
|
55
|
+
*/
|
|
56
|
+
export type DebugAdapterExecutable = DebugAdapterSpawnExecutable | DebugAdapterForkExecutable;
|
|
57
|
+
/**
|
|
58
|
+
* Implementers stand for the various types of debug adapters the system can talk to.
|
|
59
|
+
* Creation of debug adapters is not covered in this interface, but handling communication
|
|
60
|
+
* and the end of life is.
|
|
61
|
+
*/
|
|
62
|
+
export interface DebugAdapter {
|
|
63
|
+
/**
|
|
64
|
+
* A DAP protocol message has been received from the debug adapter
|
|
65
|
+
*/
|
|
66
|
+
onMessageReceived: Event<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Send a DAP message to the debug adapter
|
|
69
|
+
* @param message the JSON-encoded DAP message
|
|
70
|
+
*/
|
|
71
|
+
send(message: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* An error has occurred communicating with the debug adapter. This does not meant the debug adapter
|
|
74
|
+
* has terminated.
|
|
75
|
+
*/
|
|
76
|
+
onError: Event<Error>;
|
|
77
|
+
/**
|
|
78
|
+
* The connection to the debug adapter has been lost. This signals the end of life for this
|
|
79
|
+
* debug adapter instance.
|
|
80
|
+
*/
|
|
81
|
+
onClose: Event<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Terminate the connection to the debug adapter.
|
|
84
|
+
*/
|
|
85
|
+
stop(): Promise<void>;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* DebugAdapterFactory symbol for DI.
|
|
89
|
+
*/
|
|
90
|
+
export declare const DebugAdapterFactory: unique symbol;
|
|
91
|
+
/**
|
|
92
|
+
* Factory to start debug adapter.
|
|
93
|
+
*/
|
|
94
|
+
export interface DebugAdapterFactory {
|
|
95
|
+
start(executable: DebugAdapterExecutable): DebugAdapter;
|
|
96
|
+
connect(debugServerPort: number): DebugAdapter;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* DebugAdapterContribution symbol for DI.
|
|
100
|
+
*/
|
|
101
|
+
export declare const DebugAdapterContribution: unique symbol;
|
|
102
|
+
/**
|
|
103
|
+
* A contribution point for debug adapters.
|
|
104
|
+
*/
|
|
105
|
+
export interface DebugAdapterContribution {
|
|
106
|
+
/**
|
|
107
|
+
* The debug type. Should be a unique value among all debug adapters.
|
|
108
|
+
*/
|
|
109
|
+
readonly type: string;
|
|
110
|
+
readonly label?: MaybePromise<string | undefined>;
|
|
111
|
+
readonly languages?: MaybePromise<string[] | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* The [debug adapter session](#DebugAdapterSession) factory.
|
|
114
|
+
* If a default implementation of the debug adapter session does not
|
|
115
|
+
* fit all needs it is possible to provide its own implementation using
|
|
116
|
+
* this factory. But it is strongly recommended to extend the default
|
|
117
|
+
* implementation if so.
|
|
118
|
+
*/
|
|
119
|
+
debugAdapterSessionFactory?: DebugAdapterSessionFactory;
|
|
120
|
+
/**
|
|
121
|
+
* @returns The contributed configuration schema for this debug type.
|
|
122
|
+
*/
|
|
123
|
+
getSchemaAttributes?(): MaybePromise<IJSONSchema[]>;
|
|
124
|
+
getConfigurationSnippets?(): MaybePromise<IJSONSchemaSnippet[]>;
|
|
125
|
+
/**
|
|
126
|
+
* Provides a [debug adapter executable](#DebugAdapterExecutable)
|
|
127
|
+
* based on [debug configuration](#DebugConfiguration) to launch a new debug adapter
|
|
128
|
+
* or to connect to existed one.
|
|
129
|
+
* @param config The resolved [debug configuration](#DebugConfiguration).
|
|
130
|
+
* @returns The [debug adapter executable](#DebugAdapterExecutable).
|
|
131
|
+
*/
|
|
132
|
+
provideDebugAdapterExecutable?(config: DebugConfiguration): MaybePromise<DebugAdapterExecutable | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* Provides initial [debug configuration](#DebugConfiguration).
|
|
135
|
+
* @returns An array of [debug configurations](#DebugConfiguration).
|
|
136
|
+
*/
|
|
137
|
+
provideDebugConfigurations?(workspaceFolderUri?: string): MaybePromise<DebugConfiguration[]>;
|
|
138
|
+
/**
|
|
139
|
+
* Resolves a [debug configuration](#DebugConfiguration) by filling in missing values
|
|
140
|
+
* or by adding/changing/removing attributes before variable substitution.
|
|
141
|
+
* @param config The [debug configuration](#DebugConfiguration) to resolve.
|
|
142
|
+
* @returns The resolved debug configuration.
|
|
143
|
+
*/
|
|
144
|
+
resolveDebugConfiguration?(config: DebugConfiguration, workspaceFolderUri?: string): MaybePromise<DebugConfiguration | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* Resolves a [debug configuration](#DebugConfiguration) by filling in missing values
|
|
147
|
+
* or by adding/changing/removing attributes with substituted variables.
|
|
148
|
+
* @param config The [debug configuration](#DebugConfiguration) to resolve.
|
|
149
|
+
* @returns The resolved debug configuration.
|
|
150
|
+
*/
|
|
151
|
+
resolveDebugConfigurationWithSubstitutedVariables?(config: DebugConfiguration, workspaceFolderUri?: string): MaybePromise<DebugConfiguration | undefined>;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=debug-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-model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OAKG;IACH,yBAAyB,CAAC,CAAC,MAAM,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;IAElI;;;;;OAKG;IACH,iDAAiD,CAAC,CAAC,MAAM,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAAC;CAC7J"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.DebugAdapterContribution = exports.DebugAdapterFactory = exports.DebugAdapterSessionFactory = exports.DebugAdapterSession = void 0;
|
|
19
|
+
// FIXME: break down this file to debug adapter and debug adapter contribution (see Theia file naming conventions)
|
|
20
|
+
/**
|
|
21
|
+
* DebugAdapterSession symbol for DI.
|
|
22
|
+
*/
|
|
23
|
+
exports.DebugAdapterSession = Symbol('DebugAdapterSession');
|
|
24
|
+
/**
|
|
25
|
+
* DebugAdapterSessionFactory symbol for DI.
|
|
26
|
+
*/
|
|
27
|
+
exports.DebugAdapterSessionFactory = Symbol('DebugAdapterSessionFactory');
|
|
28
|
+
/**
|
|
29
|
+
* DebugAdapterFactory symbol for DI.
|
|
30
|
+
*/
|
|
31
|
+
exports.DebugAdapterFactory = Symbol('DebugAdapterFactory');
|
|
32
|
+
/**
|
|
33
|
+
* DebugAdapterContribution symbol for DI.
|
|
34
|
+
*/
|
|
35
|
+
exports.DebugAdapterContribution = Symbol('DebugAdapterContribution');
|
|
36
|
+
//# sourceMappingURL=debug-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-model.js","sourceRoot":"","sources":["../../src/common/debug-model.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;;;AAgBhF,kHAAkH;AAElH;;GAEG;AACU,QAAA,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAcjE;;GAEG;AACU,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAsE/E;;GAEG;AACU,QAAA,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAUjE;;GAEG;AACU,QAAA,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PreferenceProxy, PreferenceSchema, PreferenceService } from '@theia/core/lib/common/preferences';
|
|
2
|
+
import { interfaces } from '@theia/core/shared/inversify';
|
|
3
|
+
export declare const debugPreferencesSchema: PreferenceSchema;
|
|
4
|
+
export declare class DebugConfiguration {
|
|
5
|
+
'debug.trace': boolean;
|
|
6
|
+
'debug.openDebug': 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart' | 'openOnDebugBreak';
|
|
7
|
+
'debug.internalConsoleOptions': 'neverOpen' | 'openOnSessionStart' | 'openOnFirstSessionStart';
|
|
8
|
+
'debug.inlineValues': boolean;
|
|
9
|
+
'debug.showInStatusBar': 'never' | 'always' | 'onFirstSessionStart';
|
|
10
|
+
'debug.confirmOnExit': 'never' | 'always';
|
|
11
|
+
'debug.disassemblyView.showSourceCode': boolean;
|
|
12
|
+
'debug.autoExpandLazyVariables': 'on' | 'off';
|
|
13
|
+
}
|
|
14
|
+
export declare const DebugPreferenceContribution: unique symbol;
|
|
15
|
+
export declare const DebugPreferences: unique symbol;
|
|
16
|
+
export type DebugPreferences = PreferenceProxy<DebugConfiguration>;
|
|
17
|
+
export declare function createDebugPreferences(preferences: PreferenceService, schema?: PreferenceSchema): DebugPreferences;
|
|
18
|
+
export declare function bindDebugPreferences(bind: interfaces.Bind): void;
|
|
19
|
+
//# sourceMappingURL=debug-preferences.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-preferences.d.ts","sourceRoot":"","sources":["../../src/common/debug-preferences.ts"],"names":[],"mappings":"AAiBA,OAAO,EAA0B,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAyB,MAAM,oCAAoC,CAAC;AACzJ,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,eAAO,MAAM,sBAAsB,EAAE,gBA0DpC,CAAC;AAEF,qBAAa,kBAAkB;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,WAAW,GAAG,oBAAoB,GAAG,yBAAyB,GAAG,kBAAkB,CAAC;IACvG,8BAA8B,EAAE,WAAW,GAAG,oBAAoB,GAAG,yBAAyB,CAAC;IAC/F,oBAAoB,EAAE,OAAO,CAAC;IAC9B,uBAAuB,EAAE,OAAO,GAAG,QAAQ,GAAG,qBAAqB,CAAC;IACpE,qBAAqB,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC1C,sCAAsC,EAAE,OAAO,CAAC;IAChD,+BAA+B,EAAE,IAAI,GAAG,KAAK,CAAC;CACjD;AAED,eAAO,MAAM,2BAA2B,eAAwC,CAAC;AACjF,eAAO,MAAM,gBAAgB,eAA6B,CAAC;AAC3D,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAEnE,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAAyC,GAAG,gBAAgB,CAE1I;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQhE"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 Ericsson 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.bindDebugPreferences = exports.createDebugPreferences = exports.DebugPreferences = exports.DebugPreferenceContribution = exports.DebugConfiguration = exports.debugPreferencesSchema = void 0;
|
|
19
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
20
|
+
const preferences_1 = require("@theia/core/lib/common/preferences");
|
|
21
|
+
exports.debugPreferencesSchema = {
|
|
22
|
+
properties: {
|
|
23
|
+
'debug.trace': {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
default: false,
|
|
26
|
+
description: nls_1.nls.localize('theia/debug/toggleTracing', 'Enable/disable tracing communications with debug adapters')
|
|
27
|
+
},
|
|
28
|
+
'debug.openDebug': {
|
|
29
|
+
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
|
|
30
|
+
default: 'openOnSessionStart',
|
|
31
|
+
description: nls_1.nls.localizeByDefault('Controls when the debug view should open.')
|
|
32
|
+
},
|
|
33
|
+
'debug.internalConsoleOptions': {
|
|
34
|
+
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart'],
|
|
35
|
+
default: 'openOnFirstSessionStart',
|
|
36
|
+
description: nls_1.nls.localizeByDefault('Controls when the internal Debug Console should open.')
|
|
37
|
+
},
|
|
38
|
+
'debug.inlineValues': {
|
|
39
|
+
type: 'boolean',
|
|
40
|
+
default: false,
|
|
41
|
+
description: nls_1.nls.localizeByDefault('Show variable values inline in editor while debugging.')
|
|
42
|
+
},
|
|
43
|
+
'debug.showInStatusBar': {
|
|
44
|
+
enum: ['never', 'always', 'onFirstSessionStart'],
|
|
45
|
+
enumDescriptions: [
|
|
46
|
+
nls_1.nls.localizeByDefault('Never show debug in Status bar'),
|
|
47
|
+
nls_1.nls.localizeByDefault('Always show debug in Status bar'),
|
|
48
|
+
nls_1.nls.localizeByDefault('Show debug in Status bar only after debug was started for the first time')
|
|
49
|
+
],
|
|
50
|
+
description: nls_1.nls.localizeByDefault('Controls when the debug Status bar should be visible.'),
|
|
51
|
+
default: 'onFirstSessionStart'
|
|
52
|
+
},
|
|
53
|
+
'debug.confirmOnExit': {
|
|
54
|
+
description: nls_1.nls.localizeByDefault('Controls whether to confirm when the window closes if there are active debug sessions.'),
|
|
55
|
+
type: 'string',
|
|
56
|
+
enum: ['never', 'always'],
|
|
57
|
+
enumDescriptions: [
|
|
58
|
+
nls_1.nls.localizeByDefault('Never confirm.'),
|
|
59
|
+
nls_1.nls.localizeByDefault('Always confirm if there are debug sessions.'),
|
|
60
|
+
],
|
|
61
|
+
default: 'never'
|
|
62
|
+
},
|
|
63
|
+
'debug.disassemblyView.showSourceCode': {
|
|
64
|
+
description: nls_1.nls.localizeByDefault('Show Source Code in Disassembly View.'),
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
default: true,
|
|
67
|
+
},
|
|
68
|
+
'debug.autoExpandLazyVariables': {
|
|
69
|
+
type: 'string',
|
|
70
|
+
enum: ['on', 'off'],
|
|
71
|
+
default: 'off',
|
|
72
|
+
enumDescriptions: [
|
|
73
|
+
nls_1.nls.localizeByDefault('Always automatically expand lazy variables.'),
|
|
74
|
+
nls_1.nls.localizeByDefault('Never automatically expand lazy variables.')
|
|
75
|
+
],
|
|
76
|
+
description: nls_1.nls.localizeByDefault('Controls whether variables that are lazily resolved, such as getters, are automatically resolved and expanded by the debugger.')
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
class DebugConfiguration {
|
|
81
|
+
}
|
|
82
|
+
exports.DebugConfiguration = DebugConfiguration;
|
|
83
|
+
exports.DebugPreferenceContribution = Symbol('DebugPreferenceContribution');
|
|
84
|
+
exports.DebugPreferences = Symbol('DebugPreferences');
|
|
85
|
+
function createDebugPreferences(preferences, schema = exports.debugPreferencesSchema) {
|
|
86
|
+
return (0, preferences_1.createPreferenceProxy)(preferences, schema);
|
|
87
|
+
}
|
|
88
|
+
exports.createDebugPreferences = createDebugPreferences;
|
|
89
|
+
function bindDebugPreferences(bind) {
|
|
90
|
+
bind(exports.DebugPreferences).toDynamicValue(ctx => {
|
|
91
|
+
const preferences = ctx.container.get(preferences_1.PreferenceService);
|
|
92
|
+
const contribution = ctx.container.get(exports.DebugPreferenceContribution);
|
|
93
|
+
return createDebugPreferences(preferences, contribution.schema);
|
|
94
|
+
}).inSingletonScope();
|
|
95
|
+
bind(exports.DebugPreferenceContribution).toConstantValue({ schema: exports.debugPreferencesSchema });
|
|
96
|
+
bind(preferences_1.PreferenceContribution).toService(exports.DebugPreferenceContribution);
|
|
97
|
+
}
|
|
98
|
+
exports.bindDebugPreferences = bindDebugPreferences;
|
|
99
|
+
//# sourceMappingURL=debug-preferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-preferences.js","sourceRoot":"","sources":["../../src/common/debug-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,oDAAiD;AACjD,oEAAyJ;AAG5I,QAAA,sBAAsB,GAAqB;IACpD,UAAU,EAAE;QACR,aAAa,EAAE;YACX,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,SAAG,CAAC,QAAQ,CAAC,2BAA2B,EAAE,2DAA2D,CAAC;SACtH;QACD,iBAAiB,EAAE;YACf,IAAI,EAAE,CAAC,WAAW,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,kBAAkB,CAAC;YACxF,OAAO,EAAE,oBAAoB;YAC7B,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,2CAA2C,CAAC;SAClF;QACD,8BAA8B,EAAE;YAC5B,IAAI,EAAE,CAAC,WAAW,EAAE,oBAAoB,EAAE,yBAAyB,CAAC;YACpE,OAAO,EAAE,yBAAyB;YAClC,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,uDAAuD,CAAC;SAC9F;QACD,oBAAoB,EAAE;YAClB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;YACd,WAAW,EAAE,SAAG,CAAC,iBAAiB,CAAC,wDAAwD,CAAC;SAC/F;QACD,uBAAuB,EAAE;YACrB,IAAI,EAAE,CAAC,OA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CAAC,WAA8B,EAAE,SAA2B,8BAAsB;IACpH,OAAO,IAAA,mCAAqB,EAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC;AAFD,wDAEC;AAED,SAAgB,oBAAoB,CAAC,IAAqB;IACtD,IAAI,CAAC,wBAAgB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACxC,MAAM,WAAW,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAoB,+BAAiB,CAAC,CAAC;QAC5E,MAAM,YAAY,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAyB,mCAA2B,CAAC,CAAC;QAC5F,OAAO,sBAAsB,CAAC,WAAW,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACtB,IAAI,CAAC,mCAA2B,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,8BAAsB,EAAE,CAAC,CAAC;IACtF,IAAI,CAAC,oCAAsB,CAAC,CAAC,SAAS,CAAC,mCAA2B,CAAC,CAAC;AACxE,CAAC;AARD,oDAQC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { Channel, Disposable, Event } from '@theia/core';
|
|
2
|
+
import { ApplicationError } from '@theia/core/lib/common/application-error';
|
|
3
|
+
import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-schema';
|
|
4
|
+
import { CommandIdVariables } from '@theia/variable-resolver/lib/common/variable-types';
|
|
5
|
+
import { DebugConfiguration } from './debug-configuration';
|
|
6
|
+
export interface DebuggerDescription {
|
|
7
|
+
type: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The WS endpoint path to the Debug service.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DebugPath = "/services/debug";
|
|
14
|
+
/**
|
|
15
|
+
* DebugService symbol for DI.
|
|
16
|
+
*/
|
|
17
|
+
export declare const DebugService: unique symbol;
|
|
18
|
+
/**
|
|
19
|
+
* This service provides functionality to configure and to start a new debug adapter session.
|
|
20
|
+
* The workflow is the following. If user wants to debug an application and
|
|
21
|
+
* there is no debug configuration associated with the application then
|
|
22
|
+
* the list of available providers is requested to create suitable debug configuration.
|
|
23
|
+
* When configuration is chosen it is possible to alter the configuration
|
|
24
|
+
* by filling in missing values or by adding/changing/removing attributes. For this purpose the
|
|
25
|
+
* #resolveDebugConfiguration method is invoked. After that the debug adapter session will be started.
|
|
26
|
+
*/
|
|
27
|
+
export interface DebugService extends Disposable {
|
|
28
|
+
onDidChangeDebuggers?: Event<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Finds and returns an array of registered debug types.
|
|
31
|
+
* @returns An array of registered debug types
|
|
32
|
+
*/
|
|
33
|
+
debugTypes(): Promise<string[]>;
|
|
34
|
+
getDebuggersForLanguage(language: string): Promise<DebuggerDescription[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Provide debugger contributed variables
|
|
37
|
+
* see "variables" at https://code.visualstudio.com/api/references/contribution-points#contributes.debuggers
|
|
38
|
+
*/
|
|
39
|
+
provideDebuggerVariables(debugType: string): Promise<CommandIdVariables>;
|
|
40
|
+
/**
|
|
41
|
+
* Provides the schema attributes.
|
|
42
|
+
* @param debugType The registered debug type
|
|
43
|
+
* @returns An JSON Schema describing the configuration attributes for the given debug type
|
|
44
|
+
*/
|
|
45
|
+
getSchemaAttributes(debugType: string): Promise<IJSONSchema[]>;
|
|
46
|
+
getConfigurationSnippets(): Promise<IJSONSchemaSnippet[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Provides initial [debug configuration](#DebugConfiguration).
|
|
49
|
+
* @param debugType The registered debug type
|
|
50
|
+
* @returns An array of [debug configurations](#DebugConfiguration)
|
|
51
|
+
*/
|
|
52
|
+
provideDebugConfigurations(debugType: string, workspaceFolderUri: string | undefined): Promise<DebugConfiguration[]>;
|
|
53
|
+
/**
|
|
54
|
+
* @returns A Record of debug configuration provider types and a corresponding dynamic debug configurations array
|
|
55
|
+
*/
|
|
56
|
+
provideDynamicDebugConfigurations?(folder?: string): Promise<Record<string, DebugConfiguration[]>>;
|
|
57
|
+
/**
|
|
58
|
+
* Provides a dynamic debug configuration matching the name and the provider debug type
|
|
59
|
+
*/
|
|
60
|
+
fetchDynamicDebugConfiguration(name: string, type: string, folder?: string): Promise<DebugConfiguration | undefined>;
|
|
61
|
+
/**
|
|
62
|
+
* Resolves a [debug configuration](#DebugConfiguration) by filling in missing values
|
|
63
|
+
* or by adding/changing/removing attributes before variable substitution.
|
|
64
|
+
* @param debugConfiguration The [debug configuration](#DebugConfiguration) to resolve.
|
|
65
|
+
* @returns The resolved debug configuration, undefined or null.
|
|
66
|
+
*/
|
|
67
|
+
resolveDebugConfiguration(config: DebugConfiguration, workspaceFolderUri: string | undefined): Promise<DebugConfiguration | undefined | null>;
|
|
68
|
+
/**
|
|
69
|
+
* Resolves a [debug configuration](#DebugConfiguration) by filling in missing values
|
|
70
|
+
* or by adding/changing/removing attributes with substituted variables.
|
|
71
|
+
* @param debugConfiguration The [debug configuration](#DebugConfiguration) to resolve.
|
|
72
|
+
* @returns The resolved debug configuration, undefined or null.
|
|
73
|
+
*/
|
|
74
|
+
resolveDebugConfigurationWithSubstitutedVariables(config: DebugConfiguration, workspaceFolderUri: string | undefined): Promise<DebugConfiguration | undefined | null>;
|
|
75
|
+
/**
|
|
76
|
+
* Creates a new [debug adapter session](#DebugAdapterSession).
|
|
77
|
+
* @param config The resolved [debug configuration](#DebugConfiguration).
|
|
78
|
+
* @param workspaceFolderUri The workspace folder for this sessions or undefined when folderless
|
|
79
|
+
* @returns The identifier of the created [debug adapter session](#DebugAdapterSession).
|
|
80
|
+
*/
|
|
81
|
+
createDebugSession(config: DebugConfiguration, workspaceFolderUri: string | undefined): Promise<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Stop a running session for the given session id.
|
|
84
|
+
*/
|
|
85
|
+
terminateDebugSession(sessionId: string): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Event handle to indicate when one or more dynamic debug configuration providers
|
|
88
|
+
* have been registered or unregistered.
|
|
89
|
+
*/
|
|
90
|
+
onDidChangeDebugConfigurationProviders: Event<void>;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The endpoint path to the debug adapter session.
|
|
94
|
+
*/
|
|
95
|
+
export declare const DebugAdapterPath = "/services/debug-adapter";
|
|
96
|
+
export declare namespace DebugError {
|
|
97
|
+
const NotFound: ApplicationError.Constructor<-41000, {
|
|
98
|
+
type: string;
|
|
99
|
+
}>;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* A closeable channel to send debug protocol messages over with error/close handling
|
|
103
|
+
*/
|
|
104
|
+
export interface DebugChannel {
|
|
105
|
+
send(content: string): void;
|
|
106
|
+
onMessage(cb: (message: string) => void): void;
|
|
107
|
+
onError(cb: (reason: unknown) => void): void;
|
|
108
|
+
onClose(cb: (code: number, reason: string) => void): void;
|
|
109
|
+
close(): void;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A {@link DebugChannel} wrapper implementation that sends and receives messages to/from an underlying {@link Channel}.
|
|
113
|
+
*/
|
|
114
|
+
export declare class ForwardingDebugChannel implements DebugChannel {
|
|
115
|
+
private readonly underlyingChannel;
|
|
116
|
+
private onMessageEmitter;
|
|
117
|
+
constructor(underlyingChannel: Channel);
|
|
118
|
+
send(content: string): void;
|
|
119
|
+
onMessage(cb: (message: string) => void): void;
|
|
120
|
+
onError(cb: (reason: unknown) => void): void;
|
|
121
|
+
onClose(cb: (code: number, reason: string) => void): void;
|
|
122
|
+
close(): void;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=debug-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-service.d.ts","sourceRoot":"","sources":["../../src/common/debug-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAW,KAAK,EAAE,MAAM,aAAa,CAAC;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1D,KAAK,IAAI,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IAG3C,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAF9C,OAAO,CAAC,gBAAgB,CAAyB;gBAEpB,iBAAiB,EAAE,OAAO;IAIvD,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,SAAS,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAG9C,OAAO,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI;IAG5C,OAAO,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAIzD,KAAK,IAAI,IAAI;CAKhB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.ForwardingDebugChannel = exports.DebugError = exports.DebugAdapterPath = exports.DebugService = exports.DebugPath = void 0;
|
|
19
|
+
const core_1 = require("@theia/core");
|
|
20
|
+
const application_error_1 = require("@theia/core/lib/common/application-error");
|
|
21
|
+
/**
|
|
22
|
+
* The WS endpoint path to the Debug service.
|
|
23
|
+
*/
|
|
24
|
+
exports.DebugPath = '/services/debug';
|
|
25
|
+
/**
|
|
26
|
+
* DebugService symbol for DI.
|
|
27
|
+
*/
|
|
28
|
+
exports.DebugService = Symbol('DebugService');
|
|
29
|
+
/**
|
|
30
|
+
* The endpoint path to the debug adapter session.
|
|
31
|
+
*/
|
|
32
|
+
exports.DebugAdapterPath = '/services/debug-adapter';
|
|
33
|
+
var DebugError;
|
|
34
|
+
(function (DebugError) {
|
|
35
|
+
DebugError.NotFound = application_error_1.ApplicationError.declare(-41000, (type) => ({
|
|
36
|
+
message: `'${type}' debugger type is not supported.`,
|
|
37
|
+
data: { type }
|
|
38
|
+
}));
|
|
39
|
+
})(DebugError || (exports.DebugError = DebugError = {}));
|
|
40
|
+
/**
|
|
41
|
+
* A {@link DebugChannel} wrapper implementation that sends and receives messages to/from an underlying {@link Channel}.
|
|
42
|
+
*/
|
|
43
|
+
class ForwardingDebugChannel {
|
|
44
|
+
constructor(underlyingChannel) {
|
|
45
|
+
this.underlyingChannel = underlyingChannel;
|
|
46
|
+
this.onMessageEmitter = new core_1.Emitter();
|
|
47
|
+
this.underlyingChannel.onMessage(msg => this.onMessageEmitter.fire(msg().readString()));
|
|
48
|
+
}
|
|
49
|
+
send(content) {
|
|
50
|
+
this.underlyingChannel.getWriteBuffer().writeString(content).commit();
|
|
51
|
+
}
|
|
52
|
+
onMessage(cb) {
|
|
53
|
+
this.onMessageEmitter.event(cb);
|
|
54
|
+
}
|
|
55
|
+
onError(cb) {
|
|
56
|
+
this.underlyingChannel.onError(cb);
|
|
57
|
+
}
|
|
58
|
+
onClose(cb) {
|
|
59
|
+
this.underlyingChannel.onClose(event => { var _a; return cb((_a = event.code) !== null && _a !== void 0 ? _a : -1, event.reason); });
|
|
60
|
+
}
|
|
61
|
+
close() {
|
|
62
|
+
this.underlyingChannel.close();
|
|
63
|
+
this.onMessageEmitter.dispose();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.ForwardingDebugChannel = ForwardingDebugChannel;
|
|
67
|
+
//# sourceMappingURL=debug-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-service.js","sourceRoot":"","sources":["../../src/common/debug-service.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,sCAAkE;AAClE,gFAA4E;AAU5E;;GAEG;AACU,QAAA,SAAS,GAAG,iBAAiB,CAAC;AAE3C;;GAEG;AACU,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAgGnD;;GAEG;AACU,QAAA,gBAAgB,GAAG,yBAAyB,CAAC;AAE1D,IAAiB,UAAU,CAK1B;AALD,WAAiB,UAAU;IACV,mBAAQ,GAAG,oCAAgB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC;QACxE,OAAO,EAAE,IAAI,IAAI,mCAAmC;QACpD,IAAI,EAAE,EAAE,IAAI,EAAE;KACjB,CAAC,CAAC,CAAC;AACR,CAAC,EALgB,UAAU,0BAAV,UAAU,QAK1B;AAaD;;GAEG;AACH,MAAa,sBAAsB;IAG/B,YAA6B,iBAA0B;QAA1B,sBAAiB,GAAjB,iBAAiB,CAAS;QAF/C,qBAAgB,GAAG,IAAI,cAAO,EAAU,CAAC;QAG7C,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED,IAAI,CAAC,OAAe;QAChB,IAAI,CAAC,iBAAiB,CAAC,cAAc,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1E,CAAC;IAED,SAAS,CAAC,EAA6B;QACnC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,CAAC,EAA6B;QACjC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,CAAC,EAA0C;QAC9C,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,WAAC,OAAA,EAAE,CAAC,MAAA,KAAK,CAAC,IAAI,mCAAI,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA,EAAA,CAAC,CAAC;IAChF,CAAC;IAED,KAAK;QACD,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;QAC/B,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC;IACpC,CAAC;CAEJ;AA1BD,wDA0BC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (C) 2022 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
/**
|
|
17
|
+
* The URI scheme for debug URIs.
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEBUG_SCHEME = "debug";
|
|
20
|
+
/**
|
|
21
|
+
* The pattern for URI schemes.
|
|
22
|
+
*/
|
|
23
|
+
export declare const SCHEME_PATTERN: RegExp;
|
|
24
|
+
//# sourceMappingURL=debug-uri-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-uri-utils.d.ts","sourceRoot":"","sources":["../../src/common/debug-uri-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;GAEG;AACH,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC;;GAEG;AACH,eAAO,MAAM,cAAc,QAAiC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (C) 2022 STMicroelectronics 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.SCHEME_PATTERN = exports.DEBUG_SCHEME = void 0;
|
|
19
|
+
/**
|
|
20
|
+
* The URI scheme for debug URIs.
|
|
21
|
+
*/
|
|
22
|
+
exports.DEBUG_SCHEME = 'debug';
|
|
23
|
+
/**
|
|
24
|
+
* The pattern for URI schemes.
|
|
25
|
+
*/
|
|
26
|
+
exports.SCHEME_PATTERN = /^[a-zA-Z][a-zA-Z0-9\+\-\.]+:/;
|
|
27
|
+
//# sourceMappingURL=debug-uri-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-uri-utils.js","sourceRoot":"","sources":["../../src/common/debug-uri-utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF;;GAEG;AACU,QAAA,YAAY,GAAG,OAAO,CAAC;AACpC;;GAEG;AACU,QAAA,cAAc,GAAG,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Event } from '@theia/core/lib/common/event';
|
|
2
|
+
import { DebugAdapter } from './debug-model';
|
|
3
|
+
import * as theia from '@theia/plugin';
|
|
4
|
+
/**
|
|
5
|
+
* A debug adapter for using the inline implementation from a plugin.
|
|
6
|
+
*/
|
|
7
|
+
export declare class InlineDebugAdapter implements DebugAdapter {
|
|
8
|
+
private debugAdapter;
|
|
9
|
+
private messageReceivedEmitter;
|
|
10
|
+
onMessageReceived: Event<string>;
|
|
11
|
+
onError: Event<Error>;
|
|
12
|
+
private closeEmitter;
|
|
13
|
+
onClose: Event<void>;
|
|
14
|
+
constructor(debugAdapter: theia.DebugAdapter);
|
|
15
|
+
start(): Promise<void>;
|
|
16
|
+
send(message: string): void;
|
|
17
|
+
stop(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=inline-debug-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/common/inline-debug-adapter.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAW,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAEvC;;GAEG;AACH,qBAAa,kBAAmB,YAAW,YAAY;IAOvC,OAAO,CAAC,YAAY;IANhC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAqC;IACrE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAc;IACnC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAA2B;gBAE3B,YAAY,EAAE,KAAK,CAAC,YAAY;IAM9C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAG5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG9B"}
|