@theia/debug 1.67.0-next.13 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +15 -15
- package/src/browser/breakpoint/breakpoint-manager.ts +69 -16
- package/src/browser/breakpoint/breakpoint-marker.ts +38 -0
- package/src/browser/breakpoint/debug-data-breakpoint-actions.ts +170 -0
- package/src/browser/console/debug-console-items.tsx +5 -1
- package/src/browser/debug-frontend-application-contribution.ts +19 -0
- package/src/browser/debug-frontend-module.ts +2 -0
- package/src/browser/debug-session-manager.ts +18 -0
- package/src/browser/debug-session.tsx +31 -0
- package/src/browser/model/debug-data-breakpoint.tsx +79 -0
- package/src/browser/style/index.css +4 -0
- package/src/browser/view/debug-breakpoints-source.tsx +4 -10
- package/src/browser/view/debug-stack-frames-widget.ts +6 -2
- package/src/browser/view/debug-variables-widget.ts +99 -2
- package/src/browser/view/debug-view-model.ts +5 -0
- package/lib/browser/breakpoint/breakpoint-manager.d.ts +0 -71
- package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +0 -1
- package/lib/browser/breakpoint/breakpoint-manager.js +0 -321
- package/lib/browser/breakpoint/breakpoint-manager.js.map +0 -1
- package/lib/browser/breakpoint/breakpoint-marker.d.ts +0 -42
- package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +0 -1
- package/lib/browser/breakpoint/breakpoint-marker.js +0 -88
- package/lib/browser/breakpoint/breakpoint-marker.js.map +0 -1
- package/lib/browser/console/debug-console-contribution.d.ts +0 -45
- package/lib/browser/console/debug-console-contribution.d.ts.map +0 -1
- package/lib/browser/console/debug-console-contribution.js +0 -233
- package/lib/browser/console/debug-console-contribution.js.map +0 -1
- package/lib/browser/console/debug-console-items.d.ts +0 -97
- package/lib/browser/console/debug-console-items.d.ts.map +0 -1
- package/lib/browser/console/debug-console-items.js +0 -343
- package/lib/browser/console/debug-console-items.js.map +0 -1
- package/lib/browser/console/debug-console-session.d.ts +0 -32
- package/lib/browser/console/debug-console-session.d.ts.map +0 -1
- package/lib/browser/console/debug-console-session.js +0 -192
- package/lib/browser/console/debug-console-session.js.map +0 -1
- package/lib/browser/debug-call-stack-item-type-key.d.ts +0 -4
- package/lib/browser/debug-call-stack-item-type-key.d.ts.map +0 -1
- package/lib/browser/debug-call-stack-item-type-key.js +0 -20
- package/lib/browser/debug-call-stack-item-type-key.js.map +0 -1
- package/lib/browser/debug-configuration-manager.d.ts +0 -103
- package/lib/browser/debug-configuration-manager.d.ts.map +0 -1
- package/lib/browser/debug-configuration-manager.js +0 -545
- package/lib/browser/debug-configuration-manager.js.map +0 -1
- package/lib/browser/debug-configuration-model.d.ts +0 -30
- package/lib/browser/debug-configuration-model.d.ts.map +0 -1
- package/lib/browser/debug-configuration-model.js +0 -80
- package/lib/browser/debug-configuration-model.js.map +0 -1
- package/lib/browser/debug-contribution.d.ts +0 -23
- package/lib/browser/debug-contribution.d.ts.map +0 -1
- package/lib/browser/debug-contribution.js +0 -20
- package/lib/browser/debug-contribution.js.map +0 -1
- package/lib/browser/debug-frontend-application-contribution.d.ts +0 -249
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +0 -1
- package/lib/browser/debug-frontend-application-contribution.js +0 -1678
- package/lib/browser/debug-frontend-application-contribution.js.map +0 -1
- package/lib/browser/debug-frontend-module.d.ts +0 -5
- package/lib/browser/debug-frontend-module.d.ts.map +0 -1
- package/lib/browser/debug-frontend-module.js +0 -110
- package/lib/browser/debug-frontend-module.js.map +0 -1
- package/lib/browser/debug-package.spec.d.ts +0 -1
- package/lib/browser/debug-package.spec.d.ts.map +0 -1
- package/lib/browser/debug-package.spec.js +0 -19
- package/lib/browser/debug-package.spec.js.map +0 -1
- package/lib/browser/debug-prefix-configuration.d.ts +0 -52
- package/lib/browser/debug-prefix-configuration.d.ts.map +0 -1
- package/lib/browser/debug-prefix-configuration.js +0 -202
- package/lib/browser/debug-prefix-configuration.js.map +0 -1
- package/lib/browser/debug-resource.d.ts +0 -15
- package/lib/browser/debug-resource.d.ts.map +0 -1
- package/lib/browser/debug-resource.js +0 -58
- package/lib/browser/debug-resource.js.map +0 -1
- package/lib/browser/debug-schema-updater.d.ts +0 -14
- package/lib/browser/debug-schema-updater.d.ts.map +0 -1
- package/lib/browser/debug-schema-updater.js +0 -161
- package/lib/browser/debug-schema-updater.js.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.d.ts +0 -11
- package/lib/browser/debug-session-configuration-label-provider.d.ts.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.js +0 -48
- package/lib/browser/debug-session-configuration-label-provider.js.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +0 -2
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.spec.js +0 -84
- package/lib/browser/debug-session-configuration-label-provider.spec.js.map +0 -1
- package/lib/browser/debug-session-connection.d.ts +0 -111
- package/lib/browser/debug-session-connection.d.ts.map +0 -1
- package/lib/browser/debug-session-connection.js +0 -259
- package/lib/browser/debug-session-connection.js.map +0 -1
- package/lib/browser/debug-session-contribution.d.ts +0 -77
- package/lib/browser/debug-session-contribution.d.ts.map +0 -1
- package/lib/browser/debug-session-contribution.js +0 -143
- package/lib/browser/debug-session-contribution.js.map +0 -1
- package/lib/browser/debug-session-manager.d.ts +0 -138
- package/lib/browser/debug-session-manager.d.ts.map +0 -1
- package/lib/browser/debug-session-manager.js +0 -620
- package/lib/browser/debug-session-manager.js.map +0 -1
- package/lib/browser/debug-session-options.d.ts +0 -56
- package/lib/browser/debug-session-options.d.ts.map +0 -1
- package/lib/browser/debug-session-options.js +0 -92
- package/lib/browser/debug-session-options.js.map +0 -1
- package/lib/browser/debug-session.d.ts +0 -192
- package/lib/browser/debug-session.d.ts.map +0 -1
- package/lib/browser/debug-session.js +0 -913
- package/lib/browser/debug-session.js.map +0 -1
- package/lib/browser/debug-tab-bar-decorator.d.ts +0 -17
- package/lib/browser/debug-tab-bar-decorator.d.ts.map +0 -1
- package/lib/browser/debug-tab-bar-decorator.js +0 -63
- package/lib/browser/debug-tab-bar-decorator.js.map +0 -1
- package/lib/browser/debug-watch-manager.d.ts +0 -22
- package/lib/browser/debug-watch-manager.d.ts.map +0 -1
- package/lib/browser/debug-watch-manager.js +0 -86
- package/lib/browser/debug-watch-manager.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +0 -7
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +0 -39
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +0 -20
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +0 -111
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +0 -25
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-contribution.js +0 -124
- package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +0 -39
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +0 -213
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +0 -16
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +0 -39
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +0 -38
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-utilities.js +0 -18
- package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +0 -61
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.js +0 -446
- package/lib/browser/disassembly-view/disassembly-view-widget.js.map +0 -1
- package/lib/browser/editor/debug-breakpoint-widget.d.ts +0 -58
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-breakpoint-widget.js +0 -270
- package/lib/browser/editor/debug-breakpoint-widget.js.map +0 -1
- package/lib/browser/editor/debug-editor-model.d.ts +0 -87
- package/lib/browser/editor/debug-editor-model.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor-model.js +0 -499
- package/lib/browser/editor/debug-editor-model.js.map +0 -1
- package/lib/browser/editor/debug-editor-service.d.ts +0 -38
- package/lib/browser/editor/debug-editor-service.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor-service.js +0 -183
- package/lib/browser/editor/debug-editor-service.js.map +0 -1
- package/lib/browser/editor/debug-editor.d.ts +0 -4
- package/lib/browser/editor/debug-editor.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor.js +0 -20
- package/lib/browser/editor/debug-editor.js.map +0 -1
- package/lib/browser/editor/debug-exception-widget.d.ts +0 -30
- package/lib/browser/editor/debug-exception-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-exception-widget.js +0 -107
- package/lib/browser/editor/debug-exception-widget.js.map +0 -1
- package/lib/browser/editor/debug-expression-provider.d.ts +0 -17
- package/lib/browser/editor/debug-expression-provider.d.ts.map +0 -1
- package/lib/browser/editor/debug-expression-provider.js +0 -107
- package/lib/browser/editor/debug-expression-provider.js.map +0 -1
- package/lib/browser/editor/debug-hover-source.d.ts +0 -19
- package/lib/browser/editor/debug-hover-source.d.ts.map +0 -1
- package/lib/browser/editor/debug-hover-source.js +0 -110
- package/lib/browser/editor/debug-hover-source.js.map +0 -1
- package/lib/browser/editor/debug-hover-widget.d.ts +0 -61
- package/lib/browser/editor/debug-hover-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-hover-widget.js +0 -271
- package/lib/browser/editor/debug-hover-widget.js.map +0 -1
- package/lib/browser/editor/debug-inline-value-decorator.d.ts +0 -20
- package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +0 -1
- package/lib/browser/editor/debug-inline-value-decorator.js +0 -326
- package/lib/browser/editor/debug-inline-value-decorator.js.map +0 -1
- package/lib/browser/model/debug-breakpoint.d.ts +0 -48
- package/lib/browser/model/debug-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-breakpoint.js +0 -111
- package/lib/browser/model/debug-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-function-breakpoint.d.ts +0 -19
- package/lib/browser/model/debug-function-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-function-breakpoint.js +0 -93
- package/lib/browser/model/debug-function-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-instruction-breakpoint.d.ts +0 -15
- package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-instruction-breakpoint.js +0 -66
- package/lib/browser/model/debug-instruction-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-source-breakpoint.d.ts +0 -39
- package/lib/browser/model/debug-source-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-source-breakpoint.js +0 -219
- package/lib/browser/model/debug-source-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-source.d.ts +0 -25
- package/lib/browser/model/debug-source.d.ts.map +0 -1
- package/lib/browser/model/debug-source.js +0 -81
- package/lib/browser/model/debug-source.js.map +0 -1
- package/lib/browser/model/debug-stack-frame.d.ts +0 -45
- package/lib/browser/model/debug-stack-frame.d.ts.map +0 -1
- package/lib/browser/model/debug-stack-frame.js +0 -157
- package/lib/browser/model/debug-stack-frame.js.map +0 -1
- package/lib/browser/model/debug-thread.d.ts +0 -68
- package/lib/browser/model/debug-thread.d.ts.map +0 -1
- package/lib/browser/model/debug-thread.js +0 -262
- package/lib/browser/model/debug-thread.js.map +0 -1
- package/lib/browser/view/debug-action.d.ts +0 -18
- package/lib/browser/view/debug-action.d.ts.map +0 -1
- package/lib/browser/view/debug-action.js +0 -44
- package/lib/browser/view/debug-action.js.map +0 -1
- package/lib/browser/view/debug-breakpoints-source.d.ts +0 -10
- package/lib/browser/view/debug-breakpoints-source.d.ts.map +0 -1
- package/lib/browser/view/debug-breakpoints-source.js +0 -63
- package/lib/browser/view/debug-breakpoints-source.js.map +0 -1
- package/lib/browser/view/debug-breakpoints-widget.d.ts +0 -23
- package/lib/browser/view/debug-breakpoints-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-breakpoints-widget.js +0 -81
- package/lib/browser/view/debug-breakpoints-widget.js.map +0 -1
- package/lib/browser/view/debug-configuration-select.d.ts +0 -67
- package/lib/browser/view/debug-configuration-select.d.ts.map +0 -1
- package/lib/browser/view/debug-configuration-select.js +0 -212
- package/lib/browser/view/debug-configuration-select.js.map +0 -1
- package/lib/browser/view/debug-configuration-widget.d.ts +0 -33
- package/lib/browser/view/debug-configuration-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-configuration-widget.js +0 -137
- package/lib/browser/view/debug-configuration-widget.js.map +0 -1
- package/lib/browser/view/debug-exception-breakpoint.d.ts +0 -15
- package/lib/browser/view/debug-exception-breakpoint.d.ts.map +0 -1
- package/lib/browser/view/debug-exception-breakpoint.js +0 -62
- package/lib/browser/view/debug-exception-breakpoint.js.map +0 -1
- package/lib/browser/view/debug-session-widget.d.ts +0 -29
- package/lib/browser/view/debug-session-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-session-widget.js +0 -127
- package/lib/browser/view/debug-session-widget.js.map +0 -1
- package/lib/browser/view/debug-stack-frames-source.d.ts +0 -18
- package/lib/browser/view/debug-stack-frames-source.d.ts.map +0 -1
- package/lib/browser/view/debug-stack-frames-source.js +0 -83
- package/lib/browser/view/debug-stack-frames-source.js.map +0 -1
- package/lib/browser/view/debug-stack-frames-widget.d.ts +0 -25
- package/lib/browser/view/debug-stack-frames-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-stack-frames-widget.js +0 -147
- package/lib/browser/view/debug-stack-frames-widget.js.map +0 -1
- package/lib/browser/view/debug-threads-source.d.ts +0 -9
- package/lib/browser/view/debug-threads-source.d.ts.map +0 -1
- package/lib/browser/view/debug-threads-source.js +0 -56
- package/lib/browser/view/debug-threads-source.js.map +0 -1
- package/lib/browser/view/debug-threads-widget.d.ts +0 -27
- package/lib/browser/view/debug-threads-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-threads-widget.js +0 -139
- package/lib/browser/view/debug-threads-widget.js.map +0 -1
- package/lib/browser/view/debug-toolbar-widget.d.ts +0 -34
- package/lib/browser/view/debug-toolbar-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-toolbar-widget.js +0 -139
- package/lib/browser/view/debug-toolbar-widget.js.map +0 -1
- package/lib/browser/view/debug-variables-source.d.ts +0 -10
- package/lib/browser/view/debug-variables-source.d.ts.map +0 -1
- package/lib/browser/view/debug-variables-source.js +0 -53
- package/lib/browser/view/debug-variables-source.js.map +0 -1
- package/lib/browser/view/debug-variables-widget.d.ts +0 -17
- package/lib/browser/view/debug-variables-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-variables-widget.js +0 -71
- package/lib/browser/view/debug-variables-widget.js.map +0 -1
- package/lib/browser/view/debug-view-model.d.ts +0 -53
- package/lib/browser/view/debug-view-model.d.ts.map +0 -1
- package/lib/browser/view/debug-view-model.js +0 -212
- package/lib/browser/view/debug-view-model.js.map +0 -1
- package/lib/browser/view/debug-watch-expression.d.ts +0 -33
- package/lib/browser/view/debug-watch-expression.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-expression.js +0 -93
- package/lib/browser/view/debug-watch-expression.js.map +0 -1
- package/lib/browser/view/debug-watch-source.d.ts +0 -10
- package/lib/browser/view/debug-watch-source.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-source.js +0 -51
- package/lib/browser/view/debug-watch-source.js.map +0 -1
- package/lib/browser/view/debug-watch-widget.d.ts +0 -17
- package/lib/browser/view/debug-watch-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-widget.js +0 -71
- package/lib/browser/view/debug-watch-widget.js.map +0 -1
- package/lib/browser/view/debug-widget.d.ts +0 -24
- package/lib/browser/view/debug-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-widget.js +0 -101
- package/lib/browser/view/debug-widget.js.map +0 -1
- package/lib/common/debug-adapter-contribution-registry.d.ts +0 -60
- package/lib/common/debug-adapter-contribution-registry.d.ts.map +0 -1
- package/lib/common/debug-adapter-contribution-registry.js +0 -205
- package/lib/common/debug-adapter-contribution-registry.js.map +0 -1
- package/lib/common/debug-adapter-session.d.ts +0 -19
- package/lib/common/debug-adapter-session.d.ts.map +0 -1
- package/lib/common/debug-adapter-session.js +0 -79
- package/lib/common/debug-adapter-session.js.map +0 -1
- package/lib/common/debug-common.d.ts +0 -2
- package/lib/common/debug-common.d.ts.map +0 -1
- package/lib/common/debug-common.js +0 -21
- package/lib/common/debug-common.js.map +0 -1
- package/lib/common/debug-compound.d.ts +0 -15
- package/lib/common/debug-compound.d.ts.map +0 -1
- package/lib/common/debug-compound.js +0 -28
- package/lib/common/debug-compound.js.map +0 -1
- package/lib/common/debug-configuration.d.ts +0 -77
- package/lib/common/debug-configuration.d.ts.map +0 -1
- package/lib/common/debug-configuration.js +0 -32
- package/lib/common/debug-configuration.js.map +0 -1
- package/lib/common/debug-model.d.ts +0 -153
- package/lib/common/debug-model.d.ts.map +0 -1
- package/lib/common/debug-model.js +0 -36
- package/lib/common/debug-model.js.map +0 -1
- package/lib/common/debug-preferences.d.ts +0 -18
- package/lib/common/debug-preferences.d.ts.map +0 -1
- package/lib/common/debug-preferences.js +0 -89
- package/lib/common/debug-preferences.js.map +0 -1
- package/lib/common/debug-service.d.ts +0 -124
- package/lib/common/debug-service.d.ts.map +0 -1
- package/lib/common/debug-service.js +0 -67
- package/lib/common/debug-service.js.map +0 -1
- package/lib/common/debug-uri-utils.d.ts +0 -24
- package/lib/common/debug-uri-utils.d.ts.map +0 -1
- package/lib/common/debug-uri-utils.js +0 -27
- package/lib/common/debug-uri-utils.js.map +0 -1
- package/lib/common/inline-debug-adapter.d.ts +0 -19
- package/lib/common/inline-debug-adapter.d.ts.map +0 -1
- package/lib/common/inline-debug-adapter.js +0 -45
- package/lib/common/inline-debug-adapter.js.map +0 -1
- package/lib/common/launch-preferences.d.ts +0 -6
- package/lib/common/launch-preferences.d.ts.map +0 -1
- package/lib/common/launch-preferences.js +0 -37
- package/lib/common/launch-preferences.js.map +0 -1
- package/lib/node/debug-adapter-factory.d.ts +0 -20
- package/lib/node/debug-adapter-factory.d.ts.map +0 -1
- package/lib/node/debug-adapter-factory.js +0 -89
- package/lib/node/debug-adapter-factory.js.map +0 -1
- package/lib/node/debug-adapter-session-manager.d.ts +0 -38
- package/lib/node/debug-adapter-session-manager.d.ts.map +0 -1
- package/lib/node/debug-adapter-session-manager.js +0 -104
- package/lib/node/debug-adapter-session-manager.js.map +0 -1
- package/lib/node/debug-backend-module.d.ts +0 -4
- package/lib/node/debug-backend-module.d.ts.map +0 -1
- package/lib/node/debug-backend-module.js +0 -45
- package/lib/node/debug-backend-module.js.map +0 -1
- package/lib/node/debug-service-impl.d.ts +0 -31
- package/lib/node/debug-service-impl.d.ts.map +0 -1
- package/lib/node/debug-service-impl.js +0 -117
- package/lib/node/debug-service-impl.js.map +0 -1
- package/lib/node/stream-debug-adapter.d.ts +0 -41
- package/lib/node/stream-debug-adapter.d.ts.map +0 -1
- package/lib/node/stream-debug-adapter.js +0 -113
- package/lib/node/stream-debug-adapter.js.map +0 -1
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.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
|
|
@@ -1 +0,0 @@
|
|
|
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,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EAAE,CAAC;gBAChB,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;YAC1C,CAAC;QACL,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,SAAiB;QACpB,IAAI,CAAC,QAAQ,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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EA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,kBAAkB,CAAC;IAI7I,SAAS,CAAC,QAAQ,CAAC,QAAQ,cAAqB;IAC1C,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAM7F,qBAAqB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;cAmB9C,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ3D"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-service-impl.js","sourceRoot":"","sources":["../../src/node/debug-service-impl.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,4DAAkE;AAKlE,mFAA6E;AAC7E,uGAAiG;AACjG,sCAAoC;AAEpC;;GAEG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAAtB;QAuDgB,aAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;IAkCpD,CAAC;IAjFG,IAAI,sCAAsC;QACtC,OAAO,YAAK,CAAC,IAAI,CAAC;IACtB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,UAAU;QACZ,OAAO,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;IACtC,CAAC;IAED,uBAAuB,CAAC,QAAgB;QACpC,OAAO,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;IAED,mBAAmB,CAAC,SAAiB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;IAED,wBAAwB;QACpB,OAAO,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;IACpD,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,SAAiB;QAC5C,s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C,CAAC;YACpC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;YACtB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;gBAC7B,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,IAAI,EAAE;oBACtB,IAAI,CAAC;wBACD,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;oBAC/B,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACT,OAAO,CAAC,KAAK,CAAC,+BAA+B,EAAE,CAAC,CAAC,CAAC;oBACtD,CAAC;gBACL,CAAC,CAAC,EAAE,CAAC,CAAC;YACV,CAAC;YACD,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC;IACL,CAAC;IACS,KAAK,CAAC,MAAM,CAAC,SAAiB;QACpC,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzD,IAAI,YAAY,EAAE,CAAC;YACf,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YACtC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAChC,MAAM,YAAY,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;IACL,CAAC;CACJ,CAAA;AAzFY,4CAAgB;AAGN;IADlB,IAAA,kBAAM,EAAC,0DAA0B,CAAC;sCACA,0DAA0B;wDAAC;AAG3C;IADlB,IAAA,kBAAM,EAAC,sEAAgC,CAAC;sCACZ,sEAAgC;kDAAC;2BANrD,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAyF5B"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
/// <reference types="node" />
|
|
5
|
-
/// <reference types="node" />
|
|
6
|
-
import { DisposableCollection } from '@theia/core/lib/common/disposable';
|
|
7
|
-
import { Event } from '@theia/core/lib/common/event';
|
|
8
|
-
import { ChildProcess } from 'child_process';
|
|
9
|
-
import * as stream from 'stream';
|
|
10
|
-
import * as net from 'net';
|
|
11
|
-
import { DebugAdapter } from '../common/debug-model';
|
|
12
|
-
declare abstract class StreamDebugAdapter extends DisposableCollection {
|
|
13
|
-
private fromAdapter;
|
|
14
|
-
private toAdapter;
|
|
15
|
-
private messageReceivedEmitter;
|
|
16
|
-
onMessageReceived: Event<string>;
|
|
17
|
-
private errorEmitter;
|
|
18
|
-
onError: Event<Error>;
|
|
19
|
-
private closeEmitter;
|
|
20
|
-
onClose: Event<void>;
|
|
21
|
-
private static TWO_CRLF;
|
|
22
|
-
private static CONTENT_LENGTH;
|
|
23
|
-
private contentLength;
|
|
24
|
-
private buffer;
|
|
25
|
-
constructor(fromAdapter: stream.Readable, toAdapter: stream.Writable);
|
|
26
|
-
handleClosed(): void;
|
|
27
|
-
send(message: string): void;
|
|
28
|
-
protected handleData(data: Buffer): void;
|
|
29
|
-
}
|
|
30
|
-
export declare class ProcessDebugAdapter extends StreamDebugAdapter implements DebugAdapter {
|
|
31
|
-
protected readonly process: ChildProcess;
|
|
32
|
-
constructor(process: ChildProcess);
|
|
33
|
-
stop(): Promise<void>;
|
|
34
|
-
}
|
|
35
|
-
export declare class SocketDebugAdapter extends StreamDebugAdapter implements DebugAdapter {
|
|
36
|
-
private readonly socket;
|
|
37
|
-
constructor(socket: net.Socket);
|
|
38
|
-
stop(): Promise<void>;
|
|
39
|
-
}
|
|
40
|
-
export {};
|
|
41
|
-
//# sourceMappingURL=stream-debug-adapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-debug-adapter.d.ts","sourceRoot":"","sources":["../../src/node/stream-debug-adapter.ts"],"names":[],"mappings":";;;;;AAgBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAW,KAAK,EAAE,MAA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AI,IAAI,OAAO,CAAC,IAAI,CAAC;CAKxB"}
|
|
@@ -1,113 +0,0 @@
|
|
|
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.SocketDebugAdapter = exports.ProcessDebugAdapter = void 0;
|
|
19
|
-
const disposable_1 = require("@theia/core/lib/common/disposable");
|
|
20
|
-
const event_1 = require("@theia/core/lib/common/event");
|
|
21
|
-
class StreamDebugAdapter extends disposable_1.DisposableCollection {
|
|
22
|
-
constructor(fromAdapter, toAdapter) {
|
|
23
|
-
super();
|
|
24
|
-
this.fromAdapter = fromAdapter;
|
|
25
|
-
this.toAdapter = toAdapter;
|
|
26
|
-
this.messageReceivedEmitter = new event_1.Emitter();
|
|
27
|
-
this.onMessageReceived = this.messageReceivedEmitter.event;
|
|
28
|
-
this.errorEmitter = new event_1.Emitter();
|
|
29
|
-
this.onError = this.errorEmitter.event;
|
|
30
|
-
this.closeEmitter = new event_1.Emitter();
|
|
31
|
-
this.onClose = this.closeEmitter.event;
|
|
32
|
-
this.contentLength = -1;
|
|
33
|
-
this.buffer = Buffer.alloc(0);
|
|
34
|
-
this.fromAdapter.on('data', (data) => this.handleData(data));
|
|
35
|
-
this.fromAdapter.on('close', () => this.handleClosed()); // FIXME pass a proper exit code
|
|
36
|
-
this.fromAdapter.on('error', error => this.errorEmitter.fire(error));
|
|
37
|
-
this.toAdapter.on('error', error => this.errorEmitter.fire(error));
|
|
38
|
-
}
|
|
39
|
-
handleClosed() {
|
|
40
|
-
this.closeEmitter.fire();
|
|
41
|
-
}
|
|
42
|
-
send(message) {
|
|
43
|
-
const msg = `${StreamDebugAdapter.CONTENT_LENGTH}: ${Buffer.byteLength(message, 'utf8')}${StreamDebugAdapter.TWO_CRLF}${message}`;
|
|
44
|
-
this.toAdapter.write(msg, 'utf8');
|
|
45
|
-
}
|
|
46
|
-
handleData(data) {
|
|
47
|
-
this.buffer = Buffer.concat([this.buffer, data]);
|
|
48
|
-
while (true) {
|
|
49
|
-
if (this.contentLength >= 0) {
|
|
50
|
-
if (this.buffer.length >= this.contentLength) {
|
|
51
|
-
const message = this.buffer.toString('utf8', 0, this.contentLength);
|
|
52
|
-
this.buffer = this.buffer.slice(this.contentLength);
|
|
53
|
-
this.contentLength = -1;
|
|
54
|
-
if (message.length > 0) {
|
|
55
|
-
this.messageReceivedEmitter.fire(message);
|
|
56
|
-
}
|
|
57
|
-
continue; // there may be more complete messages to process
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
let idx = this.buffer.indexOf(StreamDebugAdapter.CONTENT_LENGTH);
|
|
62
|
-
if (idx > 0) {
|
|
63
|
-
// log unrecognized output
|
|
64
|
-
const output = this.buffer.slice(0, idx);
|
|
65
|
-
console.log(output.toString('utf-8'));
|
|
66
|
-
this.buffer = this.buffer.slice(idx);
|
|
67
|
-
}
|
|
68
|
-
idx = this.buffer.indexOf(StreamDebugAdapter.TWO_CRLF);
|
|
69
|
-
if (idx !== -1) {
|
|
70
|
-
const header = this.buffer.toString('utf8', 0, idx);
|
|
71
|
-
const lines = header.split('\r\n');
|
|
72
|
-
for (let i = 0; i < lines.length; i++) {
|
|
73
|
-
const pair = lines[i].split(/: +/);
|
|
74
|
-
if (pair[0] === StreamDebugAdapter.CONTENT_LENGTH) {
|
|
75
|
-
this.contentLength = +pair[1];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
this.buffer = this.buffer.slice(idx + StreamDebugAdapter.TWO_CRLF.length);
|
|
79
|
-
continue;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
// these constants are for the message header, see: https://microsoft.github.io/debug-adapter-protocol/overview#header-part
|
|
87
|
-
StreamDebugAdapter.TWO_CRLF = '\r\n\r\n';
|
|
88
|
-
StreamDebugAdapter.CONTENT_LENGTH = 'Content-Length';
|
|
89
|
-
class ProcessDebugAdapter extends StreamDebugAdapter {
|
|
90
|
-
constructor(process) {
|
|
91
|
-
super(process.stdout, process.stdin);
|
|
92
|
-
this.process = process;
|
|
93
|
-
}
|
|
94
|
-
async stop() {
|
|
95
|
-
var _a;
|
|
96
|
-
this.process.kill();
|
|
97
|
-
(_a = this.process.stdin) === null || _a === void 0 ? void 0 : _a.end();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.ProcessDebugAdapter = ProcessDebugAdapter;
|
|
101
|
-
class SocketDebugAdapter extends StreamDebugAdapter {
|
|
102
|
-
constructor(socket) {
|
|
103
|
-
super(socket, socket);
|
|
104
|
-
this.socket = socket;
|
|
105
|
-
}
|
|
106
|
-
stop() {
|
|
107
|
-
return new Promise(resolve => {
|
|
108
|
-
this.socket.end(() => resolve());
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
exports.SocketDebugAdapter = SocketDebugAdapter;
|
|
113
|
-
//# sourceMappingURL=stream-debug-adapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-debug-adapter.js","sourceRoot":"","sources":["../../src/node/stream-debug-adapter.ts"],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