@opensumi/ide-debug 2.12.1-next-079c1930
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/assets/breakpoint-conditional-disabled.svg +4 -0
- package/lib/browser/assets/breakpoint-conditional-unverified.svg +4 -0
- package/lib/browser/assets/breakpoint-conditional.svg +4 -0
- package/lib/browser/assets/breakpoint-disabled.svg +4 -0
- package/lib/browser/assets/breakpoint-hint.svg +4 -0
- package/lib/browser/assets/breakpoint-log-disabled.svg +4 -0
- package/lib/browser/assets/breakpoint-log-unverified.svg +4 -0
- package/lib/browser/assets/breakpoint-log.svg +4 -0
- package/lib/browser/assets/breakpoint-unsupported.svg +4 -0
- package/lib/browser/assets/breakpoint-unverified.svg +4 -0
- package/lib/browser/assets/breakpoint.svg +4 -0
- package/lib/browser/assets/breakpoints-activate-inverse.svg +4 -0
- package/lib/browser/assets/breakpoints-activate.svg +4 -0
- package/lib/browser/assets/configure-inverse.svg +4 -0
- package/lib/browser/assets/configure.svg +4 -0
- package/lib/browser/assets/continue-inverse.svg +4 -0
- package/lib/browser/assets/current-and-breakpoint.svg +4 -0
- package/lib/browser/assets/current-arrow.svg +4 -0
- package/lib/browser/assets/remove-all-inverse.svg +4 -0
- package/lib/browser/assets/remove-all.svg +4 -0
- package/lib/browser/assets/repl-inverse.svg +4 -0
- package/lib/browser/assets/repl.svg +4 -0
- package/lib/browser/assets/restart-inverse.svg +4 -0
- package/lib/browser/assets/stackframe-and-breakpoint.svg +4 -0
- package/lib/browser/assets/stackframe-arrow.svg +4 -0
- package/lib/browser/assets/start-inverse.svg +4 -0
- package/lib/browser/breakpoint/breakpoint-decoration.d.ts +12 -0
- package/lib/browser/breakpoint/breakpoint-decoration.d.ts.map +1 -0
- package/lib/browser/breakpoint/breakpoint-decoration.js +53 -0
- package/lib/browser/breakpoint/breakpoint-decoration.js.map +1 -0
- package/lib/browser/breakpoint/breakpoint-manager.d.ts +87 -0
- package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +1 -0
- package/lib/browser/breakpoint/breakpoint-manager.js +287 -0
- package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -0
- package/lib/browser/breakpoint/breakpoint-marker.d.ts +37 -0
- package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +1 -0
- package/lib/browser/breakpoint/breakpoint-marker.js +46 -0
- package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -0
- package/lib/browser/breakpoint/index.d.ts +4 -0
- package/lib/browser/breakpoint/index.d.ts.map +1 -0
- package/lib/browser/breakpoint/index.js +7 -0
- package/lib/browser/breakpoint/index.js.map +1 -0
- package/lib/browser/components/debug-action/index.d.ts +11 -0
- package/lib/browser/components/debug-action/index.d.ts.map +1 -0
- package/lib/browser/components/debug-action/index.js +15 -0
- package/lib/browser/components/debug-action/index.js.map +1 -0
- package/lib/browser/components/debug-action/index.module.less +73 -0
- package/lib/browser/components/floating-click-widget/index.d.ts +3 -0
- package/lib/browser/components/floating-click-widget/index.d.ts.map +1 -0
- package/lib/browser/components/floating-click-widget/index.js +17 -0
- package/lib/browser/components/floating-click-widget/index.js.map +1 -0
- package/lib/browser/components/floating-click-widget/index.module.less +5 -0
- package/lib/browser/components/index.d.ts +2 -0
- package/lib/browser/components/index.d.ts.map +1 -0
- package/lib/browser/components/index.js +5 -0
- package/lib/browser/components/index.js.map +1 -0
- package/lib/browser/contextkeys/debug-call-stack-item-type-key.d.ts +4 -0
- package/lib/browser/contextkeys/debug-call-stack-item-type-key.d.ts.map +1 -0
- package/lib/browser/contextkeys/debug-call-stack-item-type-key.js +5 -0
- package/lib/browser/contextkeys/debug-call-stack-item-type-key.js.map +1 -0
- package/lib/browser/contextkeys/debug-contextkey.service.d.ts +16 -0
- package/lib/browser/contextkeys/debug-contextkey.service.d.ts.map +1 -0
- package/lib/browser/contextkeys/debug-contextkey.service.js +33 -0
- package/lib/browser/contextkeys/debug-contextkey.service.js.map +1 -0
- package/lib/browser/contextkeys/index.d.ts +2 -0
- package/lib/browser/contextkeys/index.d.ts.map +1 -0
- package/lib/browser/contextkeys/index.js +5 -0
- package/lib/browser/contextkeys/index.js.map +1 -0
- package/lib/browser/debug-configuration-manager.d.ts +86 -0
- package/lib/browser/debug-configuration-manager.d.ts.map +1 -0
- package/lib/browser/debug-configuration-manager.js +456 -0
- package/lib/browser/debug-configuration-manager.js.map +1 -0
- package/lib/browser/debug-configuration-model.d.ts +24 -0
- package/lib/browser/debug-configuration-model.d.ts.map +1 -0
- package/lib/browser/debug-configuration-model.js +55 -0
- package/lib/browser/debug-configuration-model.js.map +1 -0
- package/lib/browser/debug-contribution.d.ts +207 -0
- package/lib/browser/debug-contribution.d.ts.map +1 -0
- package/lib/browser/debug-contribution.js +764 -0
- package/lib/browser/debug-contribution.js.map +1 -0
- package/lib/browser/debug-link-detector.d.ts +13 -0
- package/lib/browser/debug-link-detector.d.ts.map +1 -0
- package/lib/browser/debug-link-detector.js +196 -0
- package/lib/browser/debug-link-detector.js.map +1 -0
- package/lib/browser/debug-preferences.d.ts +15 -0
- package/lib/browser/debug-preferences.d.ts.map +1 -0
- package/lib/browser/debug-preferences.js +57 -0
- package/lib/browser/debug-preferences.js.map +1 -0
- package/lib/browser/debug-progress.service.d.ts +13 -0
- package/lib/browser/debug-progress.service.d.ts.map +1 -0
- package/lib/browser/debug-progress.service.js +97 -0
- package/lib/browser/debug-progress.service.js.map +1 -0
- package/lib/browser/debug-schema-updater.d.ts +10 -0
- package/lib/browser/debug-schema-updater.d.ts.map +1 -0
- package/lib/browser/debug-schema-updater.js +74 -0
- package/lib/browser/debug-schema-updater.js.map +1 -0
- package/lib/browser/debug-service.d.ts +11 -0
- package/lib/browser/debug-service.d.ts.map +1 -0
- package/lib/browser/debug-service.js +43 -0
- package/lib/browser/debug-service.js.map +1 -0
- package/lib/browser/debug-session-connection.d.ts +107 -0
- package/lib/browser/debug-session-connection.d.ts.map +1 -0
- package/lib/browser/debug-session-connection.js +267 -0
- package/lib/browser/debug-session-connection.js.map +1 -0
- package/lib/browser/debug-session-contribution.d.ts +61 -0
- package/lib/browser/debug-session-contribution.d.ts.map +1 -0
- package/lib/browser/debug-session-contribution.js +116 -0
- package/lib/browser/debug-session-contribution.js.map +1 -0
- package/lib/browser/debug-session-manager.d.ts +130 -0
- package/lib/browser/debug-session-manager.d.ts.map +1 -0
- package/lib/browser/debug-session-manager.js +488 -0
- package/lib/browser/debug-session-manager.js.map +1 -0
- package/lib/browser/debug-session.d.ts +181 -0
- package/lib/browser/debug-session.d.ts.map +1 -0
- package/lib/browser/debug-session.js +898 -0
- package/lib/browser/debug-session.js.map +1 -0
- package/lib/browser/debug-style.less +125 -0
- package/lib/browser/debugUtils.d.ts +18 -0
- package/lib/browser/debugUtils.d.ts.map +1 -0
- package/lib/browser/debugUtils.js +91 -0
- package/lib/browser/debugUtils.js.map +1 -0
- package/lib/browser/editor/debug-breakpoint-widget.d.ts +29 -0
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-breakpoint-widget.js +82 -0
- package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -0
- package/lib/browser/editor/debug-breakpoint-zone-widget.d.ts +60 -0
- package/lib/browser/editor/debug-breakpoint-zone-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-breakpoint-zone-widget.js +198 -0
- package/lib/browser/editor/debug-breakpoint-zone-widget.js.map +1 -0
- package/lib/browser/editor/debug-breakpoint.module.less +29 -0
- package/lib/browser/editor/debug-editor-contribution.d.ts +27 -0
- package/lib/browser/editor/debug-editor-contribution.d.ts.map +1 -0
- package/lib/browser/editor/debug-editor-contribution.js +354 -0
- package/lib/browser/editor/debug-editor-contribution.js.map +1 -0
- package/lib/browser/editor/debug-expression-provider.d.ts +12 -0
- package/lib/browser/editor/debug-expression-provider.d.ts.map +1 -0
- package/lib/browser/editor/debug-expression-provider.js +88 -0
- package/lib/browser/editor/debug-expression-provider.js.map +1 -0
- package/lib/browser/editor/debug-hover-model.d.ts +12 -0
- package/lib/browser/editor/debug-hover-model.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-model.js +43 -0
- package/lib/browser/editor/debug-hover-model.js.map +1 -0
- package/lib/browser/editor/debug-hover-source.d.ts +18 -0
- package/lib/browser/editor/debug-hover-source.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-source.js +94 -0
- package/lib/browser/editor/debug-hover-source.js.map +1 -0
- package/lib/browser/editor/debug-hover-tree.model.service.d.ts +62 -0
- package/lib/browser/editor/debug-hover-tree.model.service.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-tree.model.service.js +284 -0
- package/lib/browser/editor/debug-hover-tree.model.service.js.map +1 -0
- package/lib/browser/editor/debug-hover-widget.d.ts +58 -0
- package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-widget.js +152 -0
- package/lib/browser/editor/debug-hover-widget.js.map +1 -0
- package/lib/browser/editor/debug-hover.module.less +30 -0
- package/lib/browser/editor/debug-hover.view.d.ts +3 -0
- package/lib/browser/editor/debug-hover.view.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover.view.js +86 -0
- package/lib/browser/editor/debug-hover.view.js.map +1 -0
- package/lib/browser/editor/debug-model-manager.d.ts +41 -0
- package/lib/browser/editor/debug-model-manager.d.ts.map +1 -0
- package/lib/browser/editor/debug-model-manager.js +191 -0
- package/lib/browser/editor/debug-model-manager.js.map +1 -0
- package/lib/browser/editor/debug-model.d.ts +181 -0
- package/lib/browser/editor/debug-model.d.ts.map +1 -0
- package/lib/browser/editor/debug-model.js +673 -0
- package/lib/browser/editor/debug-model.js.map +1 -0
- package/lib/browser/editor/debug-run-to-cursor.service.d.ts +19 -0
- package/lib/browser/editor/debug-run-to-cursor.service.d.ts.map +1 -0
- package/lib/browser/editor/debug-run-to-cursor.service.js +145 -0
- package/lib/browser/editor/debug-run-to-cursor.service.js.map +1 -0
- package/lib/browser/editor/debug-styles.d.ts +13 -0
- package/lib/browser/editor/debug-styles.d.ts.map +1 -0
- package/lib/browser/editor/debug-styles.js +60 -0
- package/lib/browser/editor/debug-styles.js.map +1 -0
- package/lib/browser/editor/evaluatable-expression.d.ts +22 -0
- package/lib/browser/editor/evaluatable-expression.d.ts.map +1 -0
- package/lib/browser/editor/evaluatable-expression.js +24 -0
- package/lib/browser/editor/evaluatable-expression.js.map +1 -0
- package/lib/browser/editor/index.d.ts +7 -0
- package/lib/browser/editor/index.d.ts.map +1 -0
- package/lib/browser/editor/index.js +10 -0
- package/lib/browser/editor/index.js.map +1 -0
- package/lib/browser/editor/inline-values.d.ts +4 -0
- package/lib/browser/editor/inline-values.d.ts.map +1 -0
- package/lib/browser/editor/inline-values.js +6 -0
- package/lib/browser/editor/inline-values.js.map +1 -0
- package/lib/browser/index.d.ts +27 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +135 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/markers/index.d.ts +3 -0
- package/lib/browser/markers/index.d.ts.map +1 -0
- package/lib/browser/markers/index.js +6 -0
- package/lib/browser/markers/index.js.map +1 -0
- package/lib/browser/markers/marker-manager.d.ts +62 -0
- package/lib/browser/markers/marker-manager.d.ts.map +1 -0
- package/lib/browser/markers/marker-manager.js +175 -0
- package/lib/browser/markers/marker-manager.js.map +1 -0
- package/lib/browser/markers/marker.d.ts +13 -0
- package/lib/browser/markers/marker.d.ts.map +1 -0
- package/lib/browser/markers/marker.js +3 -0
- package/lib/browser/markers/marker.js.map +1 -0
- package/lib/browser/model/debug-source.d.ts +46 -0
- package/lib/browser/model/debug-source.d.ts.map +1 -0
- package/lib/browser/model/debug-source.js +113 -0
- package/lib/browser/model/debug-source.js.map +1 -0
- package/lib/browser/model/debug-stack-frame.d.ts +30 -0
- package/lib/browser/model/debug-stack-frame.d.ts.map +1 -0
- package/lib/browser/model/debug-stack-frame.js +85 -0
- package/lib/browser/model/debug-stack-frame.js.map +1 -0
- package/lib/browser/model/debug-thread.d.ts +46 -0
- package/lib/browser/model/debug-thread.d.ts.map +1 -0
- package/lib/browser/model/debug-thread.js +140 -0
- package/lib/browser/model/debug-thread.js.map +1 -0
- package/lib/browser/model/debug-watch.d.ts +39 -0
- package/lib/browser/model/debug-watch.d.ts.map +1 -0
- package/lib/browser/model/debug-watch.js +97 -0
- package/lib/browser/model/debug-watch.js.map +1 -0
- package/lib/browser/model/index.d.ts +5 -0
- package/lib/browser/model/index.d.ts.map +1 -0
- package/lib/browser/model/index.js +8 -0
- package/lib/browser/model/index.js.map +1 -0
- package/lib/browser/preferences/launch-folder-preference-provider.d.ts +6 -0
- package/lib/browser/preferences/launch-folder-preference-provider.d.ts.map +1 -0
- package/lib/browser/preferences/launch-folder-preference-provider.js +29 -0
- package/lib/browser/preferences/launch-folder-preference-provider.js.map +1 -0
- package/lib/browser/preferences/launch-preferences-contribution.d.ts +6 -0
- package/lib/browser/preferences/launch-preferences-contribution.d.ts.map +1 -0
- package/lib/browser/preferences/launch-preferences-contribution.js +17 -0
- package/lib/browser/preferences/launch-preferences-contribution.js.map +1 -0
- package/lib/browser/preferences/launch-preferences.d.ts +3 -0
- package/lib/browser/preferences/launch-preferences.d.ts.map +1 -0
- package/lib/browser/preferences/launch-preferences.js +16 -0
- package/lib/browser/preferences/launch-preferences.js.map +1 -0
- package/lib/browser/tree/debug-console-tree-node.define.d.ts +29 -0
- package/lib/browser/tree/debug-console-tree-node.define.d.ts.map +1 -0
- package/lib/browser/tree/debug-console-tree-node.define.js +68 -0
- package/lib/browser/tree/debug-console-tree-node.define.js.map +1 -0
- package/lib/browser/tree/debug-tree-node.define.d.ts +199 -0
- package/lib/browser/tree/debug-tree-node.define.d.ts.map +1 -0
- package/lib/browser/tree/debug-tree-node.define.js +583 -0
- package/lib/browser/tree/debug-tree-node.define.js.map +1 -0
- package/lib/browser/tree/index.d.ts +3 -0
- package/lib/browser/tree/index.d.ts.map +1 -0
- package/lib/browser/tree/index.js +6 -0
- package/lib/browser/tree/index.js.map +1 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.module.less +71 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.service.d.ts +42 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.service.d.ts.map +1 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.service.js +228 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.service.js.map +1 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.view.d.ts +19 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.view.d.ts.map +1 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.view.js +108 -0
- package/lib/browser/view/breakpoints/debug-breakpoints.view.js.map +1 -0
- package/lib/browser/view/configuration/debug-configuration.module.less +101 -0
- package/lib/browser/view/configuration/debug-configuration.service.d.ts +36 -0
- package/lib/browser/view/configuration/debug-configuration.service.d.ts.map +1 -0
- package/lib/browser/view/configuration/debug-configuration.service.js +186 -0
- package/lib/browser/view/configuration/debug-configuration.service.js.map +1 -0
- package/lib/browser/view/configuration/debug-configuration.view.d.ts +3 -0
- package/lib/browser/view/configuration/debug-configuration.view.d.ts.map +1 -0
- package/lib/browser/view/configuration/debug-configuration.view.js +106 -0
- package/lib/browser/view/configuration/debug-configuration.view.js.map +1 -0
- package/lib/browser/view/configuration/debug-toolbar.service.d.ts +30 -0
- package/lib/browser/view/configuration/debug-toolbar.service.d.ts.map +1 -0
- package/lib/browser/view/configuration/debug-toolbar.service.js +173 -0
- package/lib/browser/view/configuration/debug-toolbar.service.js.map +1 -0
- package/lib/browser/view/configuration/debug-toolbar.view.d.ts +7 -0
- package/lib/browser/view/configuration/debug-toolbar.view.d.ts.map +1 -0
- package/lib/browser/view/configuration/debug-toolbar.view.js +171 -0
- package/lib/browser/view/configuration/debug-toolbar.view.js.map +1 -0
- package/lib/browser/view/console/debug-console-filter.model.d.ts +8 -0
- package/lib/browser/view/console/debug-console-filter.model.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console-filter.model.js +53 -0
- package/lib/browser/view/console/debug-console-filter.model.js.map +1 -0
- package/lib/browser/view/console/debug-console-filter.service.d.ts +23 -0
- package/lib/browser/view/console/debug-console-filter.service.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console-filter.service.js +66 -0
- package/lib/browser/view/console/debug-console-filter.service.js.map +1 -0
- package/lib/browser/view/console/debug-console-filter.view.d.ts +6 -0
- package/lib/browser/view/console/debug-console-filter.view.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console-filter.view.js +63 -0
- package/lib/browser/view/console/debug-console-filter.view.js.map +1 -0
- package/lib/browser/view/console/debug-console-model.d.ts +18 -0
- package/lib/browser/view/console/debug-console-model.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console-model.js +52 -0
- package/lib/browser/view/console/debug-console-model.js.map +1 -0
- package/lib/browser/view/console/debug-console-session.d.ts +32 -0
- package/lib/browser/view/console/debug-console-session.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console-session.js +113 -0
- package/lib/browser/view/console/debug-console-session.js.map +1 -0
- package/lib/browser/view/console/debug-console-toolbar.view.d.ts +3 -0
- package/lib/browser/view/console/debug-console-toolbar.view.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console-toolbar.view.js +20 -0
- package/lib/browser/view/console/debug-console-toolbar.view.js.map +1 -0
- package/lib/browser/view/console/debug-console-tree.model.service.d.ts +90 -0
- package/lib/browser/view/console/debug-console-tree.model.service.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console-tree.model.service.js +460 -0
- package/lib/browser/view/console/debug-console-tree.model.service.js.map +1 -0
- package/lib/browser/view/console/debug-console.contribution.d.ts +20 -0
- package/lib/browser/view/console/debug-console.contribution.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console.contribution.js +164 -0
- package/lib/browser/view/console/debug-console.contribution.js.map +1 -0
- package/lib/browser/view/console/debug-console.module.less +321 -0
- package/lib/browser/view/console/debug-console.service.d.ts +67 -0
- package/lib/browser/view/console/debug-console.service.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console.service.js +397 -0
- package/lib/browser/view/console/debug-console.service.js.map +1 -0
- package/lib/browser/view/console/debug-console.view.d.ts +25 -0
- package/lib/browser/view/console/debug-console.view.d.ts.map +1 -0
- package/lib/browser/view/console/debug-console.view.js +299 -0
- package/lib/browser/view/console/debug-console.view.js.map +1 -0
- package/lib/browser/view/debug-view-model.d.ts +54 -0
- package/lib/browser/view/debug-view-model.d.ts.map +1 -0
- package/lib/browser/view/debug-view-model.js +161 -0
- package/lib/browser/view/debug-view-model.js.map +1 -0
- package/lib/browser/view/frames/debug-call-stack-frame.view.d.ts +14 -0
- package/lib/browser/view/frames/debug-call-stack-frame.view.d.ts.map +1 -0
- package/lib/browser/view/frames/debug-call-stack-frame.view.js +143 -0
- package/lib/browser/view/frames/debug-call-stack-frame.view.js.map +1 -0
- package/lib/browser/view/frames/debug-call-stack-session.view.d.ts +10 -0
- package/lib/browser/view/frames/debug-call-stack-session.view.d.ts.map +1 -0
- package/lib/browser/view/frames/debug-call-stack-session.view.js +148 -0
- package/lib/browser/view/frames/debug-call-stack-session.view.js.map +1 -0
- package/lib/browser/view/frames/debug-call-stack-thread.view.d.ts +12 -0
- package/lib/browser/view/frames/debug-call-stack-thread.view.d.ts.map +1 -0
- package/lib/browser/view/frames/debug-call-stack-thread.view.js +52 -0
- package/lib/browser/view/frames/debug-call-stack-thread.view.js.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.contribution.d.ts +10 -0
- package/lib/browser/view/frames/debug-call-stack.contribution.d.ts.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.contribution.js +81 -0
- package/lib/browser/view/frames/debug-call-stack.contribution.js.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.module.less +195 -0
- package/lib/browser/view/frames/debug-call-stack.operation.d.ts +9 -0
- package/lib/browser/view/frames/debug-call-stack.operation.d.ts.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.operation.js +43 -0
- package/lib/browser/view/frames/debug-call-stack.operation.js.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.service.d.ts +12 -0
- package/lib/browser/view/frames/debug-call-stack.service.d.ts.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.service.js +94 -0
- package/lib/browser/view/frames/debug-call-stack.service.js.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.view.d.ts +6 -0
- package/lib/browser/view/frames/debug-call-stack.view.d.ts.map +1 -0
- package/lib/browser/view/frames/debug-call-stack.view.js +32 -0
- package/lib/browser/view/frames/debug-call-stack.view.js.map +1 -0
- package/lib/browser/view/variables/debug-variables-model.d.ts +12 -0
- package/lib/browser/view/variables/debug-variables-model.d.ts.map +1 -0
- package/lib/browser/view/variables/debug-variables-model.js +43 -0
- package/lib/browser/view/variables/debug-variables-model.js.map +1 -0
- package/lib/browser/view/variables/debug-variables-tree.model.service.d.ts +65 -0
- package/lib/browser/view/variables/debug-variables-tree.model.service.d.ts.map +1 -0
- package/lib/browser/view/variables/debug-variables-tree.model.service.js +376 -0
- package/lib/browser/view/variables/debug-variables-tree.model.service.js.map +1 -0
- package/lib/browser/view/variables/debug-variables.contribution.d.ts +14 -0
- package/lib/browser/view/variables/debug-variables.contribution.d.ts.map +1 -0
- package/lib/browser/view/variables/debug-variables.contribution.js +155 -0
- package/lib/browser/view/variables/debug-variables.contribution.js.map +1 -0
- package/lib/browser/view/variables/debug-variables.module.less +176 -0
- package/lib/browser/view/variables/debug-variables.view.d.ts +21 -0
- package/lib/browser/view/variables/debug-variables.view.d.ts.map +1 -0
- package/lib/browser/view/variables/debug-variables.view.js +151 -0
- package/lib/browser/view/variables/debug-variables.view.js.map +1 -0
- package/lib/browser/view/watch/debug-watch-model.d.ts +12 -0
- package/lib/browser/view/watch/debug-watch-model.d.ts.map +1 -0
- package/lib/browser/view/watch/debug-watch-model.js +43 -0
- package/lib/browser/view/watch/debug-watch-model.js.map +1 -0
- package/lib/browser/view/watch/debug-watch-tree.model.service.d.ts +91 -0
- package/lib/browser/view/watch/debug-watch-tree.model.service.d.ts.map +1 -0
- package/lib/browser/view/watch/debug-watch-tree.model.service.js +480 -0
- package/lib/browser/view/watch/debug-watch-tree.model.service.js.map +1 -0
- package/lib/browser/view/watch/debug-watch.contribution.d.ts +12 -0
- package/lib/browser/view/watch/debug-watch.contribution.d.ts.map +1 -0
- package/lib/browser/view/watch/debug-watch.contribution.js +143 -0
- package/lib/browser/view/watch/debug-watch.contribution.js.map +1 -0
- package/lib/browser/view/watch/debug-watch.module.less +214 -0
- package/lib/browser/view/watch/debug-watch.view.d.ts +21 -0
- package/lib/browser/view/watch/debug-watch.view.d.ts.map +1 -0
- package/lib/browser/view/watch/debug-watch.view.js +194 -0
- package/lib/browser/view/watch/debug-watch.view.js.map +1 -0
- package/lib/common/constants.d.ts +57 -0
- package/lib/common/constants.d.ts.map +1 -0
- package/lib/common/constants.js +61 -0
- package/lib/common/constants.js.map +1 -0
- package/lib/common/debug-configuration.d.ts +56 -0
- package/lib/common/debug-configuration.d.ts.map +1 -0
- package/lib/common/debug-configuration.js +15 -0
- package/lib/common/debug-configuration.js.map +1 -0
- package/lib/common/debug-editor.d.ts +4 -0
- package/lib/common/debug-editor.d.ts.map +1 -0
- package/lib/common/debug-editor.js +5 -0
- package/lib/common/debug-editor.js.map +1 -0
- package/lib/common/debug-model.d.ts +104 -0
- package/lib/common/debug-model.d.ts.map +1 -0
- package/lib/common/debug-model.js +10 -0
- package/lib/common/debug-model.js.map +1 -0
- package/lib/common/debug-progress.d.ts +7 -0
- package/lib/common/debug-progress.d.ts.map +1 -0
- package/lib/common/debug-progress.js +5 -0
- package/lib/common/debug-progress.js.map +1 -0
- package/lib/common/debug-schema-updater.d.ts +2 -0
- package/lib/common/debug-schema-updater.d.ts.map +1 -0
- package/lib/common/debug-schema-updater.js +5 -0
- package/lib/common/debug-schema-updater.js.map +1 -0
- package/lib/common/debug-service.d.ts +76 -0
- package/lib/common/debug-service.d.ts.map +1 -0
- package/lib/common/debug-service.js +16 -0
- package/lib/common/debug-service.js.map +1 -0
- package/lib/common/debug-session-options.d.ts +14 -0
- package/lib/common/debug-session-options.d.ts.map +1 -0
- package/lib/common/debug-session-options.js +11 -0
- package/lib/common/debug-session-options.js.map +1 -0
- package/lib/common/debug-session.d.ts +81 -0
- package/lib/common/debug-session.d.ts.map +1 -0
- package/lib/common/debug-session.js +19 -0
- package/lib/common/debug-session.js.map +1 -0
- package/lib/common/evaluatable-expression.d.ts +38 -0
- package/lib/common/evaluatable-expression.d.ts.map +1 -0
- package/lib/common/evaluatable-expression.js +3 -0
- package/lib/common/evaluatable-expression.js.map +1 -0
- package/lib/common/index.d.ts +12 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +15 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/inline-values.d.ts +65 -0
- package/lib/common/inline-values.d.ts.map +1 -0
- package/lib/common/inline-values.js +4 -0
- package/lib/common/inline-values.js.map +1 -0
- package/lib/common/types.d.ts +80 -0
- package/lib/common/types.d.ts.map +1 -0
- package/lib/common/types.js +51 -0
- package/lib/common/types.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
let DebugService = class DebugService {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.onDidDebugContributionPointChangeEmitter = new ide_core_browser_1.Emitter();
|
|
10
|
+
this.debugContributionPointsMap = new Map();
|
|
11
|
+
}
|
|
12
|
+
registerDebugContributionPoints(path, contributions) {
|
|
13
|
+
if (!this.debugContributionPointsMap.has(path)) {
|
|
14
|
+
this.debugContributionPointsMap.set(path, contributions);
|
|
15
|
+
this.onDidDebugContributionPointChangeEmitter.fire({
|
|
16
|
+
path,
|
|
17
|
+
contributions,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
unregisterDebugContributionPoints(path) {
|
|
22
|
+
const contributions = this.debugContributionPointsMap.get(path);
|
|
23
|
+
if (contributions) {
|
|
24
|
+
this.debugContributionPointsMap.delete(path);
|
|
25
|
+
this.onDidDebugContributionPointChangeEmitter.fire({
|
|
26
|
+
path,
|
|
27
|
+
contributions,
|
|
28
|
+
removed: true,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
get debugContributionPoints() {
|
|
33
|
+
return this.debugContributionPointsMap;
|
|
34
|
+
}
|
|
35
|
+
get onDidDebugContributionPointChange() {
|
|
36
|
+
return this.onDidDebugContributionPointChangeEmitter.event;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
DebugService = (0, tslib_1.__decorate)([
|
|
40
|
+
(0, di_1.Injectable)()
|
|
41
|
+
], DebugService);
|
|
42
|
+
exports.DebugService = DebugService;
|
|
43
|
+
//# sourceMappingURL=debug-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-service.js","sourceRoot":"","sources":["../../src/browser/debug-service.ts"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAE1C,iEAAyE;AAGzE,IAAa,YAAY,GAAzB,MAAa,YAAY;IAAzB;QACU,6CAAwC,GAA4C,IAAI,0BAAO,EAAkC,CAAC;QAElI,+BAA0B,GAA+B,IAAI,GAAG,EAAE,CAAC;IA+B7E,CAAC;IA7BC,+BAA+B,CAAC,IAAY,EAAE,aAA4B;QACxE,IAAI,CAAC,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC9C,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;YACzD,IAAI,CAAC,wCAAwC,CAAC,IAAI,CAAC;gBACjD,IAAI;gBACJ,aAAa;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAED,iCAAiC,CAAC,IAAY;QAC5C,MAAM,aAAa,GAAG,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAChE,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,0BAA0B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAC7C,IAAI,CAAC,wCAAwC,CAAC,IAAI,CAAC;gBACjD,IAAI;gBACJ,aAAa;gBACb,OAAO,EAAE,IAAI;aACd,CAAC,CAAC;SACJ;IACH,CAAC;IAED,IAAI,uBAAuB;QACzB,OAAO,IAAI,CAAC,0BAA0B,CAAC;IACzC,CAAC;IAED,IAAI,iCAAiC;QACnC,OAAO,IAAI,CAAC,wCAAwC,CAAC,KAAK,CAAC;IAC7D,CAAC;CACF,CAAA;AAlCY,YAAY;IADxB,IAAA,eAAU,GAAE;GACA,YAAY,CAkCxB;AAlCY,oCAAY"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { CancellationToken } from '@opensumi/ide-core-common';
|
|
2
|
+
import { DebugProtocol } from '@opensumi/vscode-debugprotocol';
|
|
3
|
+
import { Event, Emitter, DisposableCollection, IDisposable } from '@opensumi/ide-core-browser';
|
|
4
|
+
import { IWebSocket } from '@opensumi/ide-connection';
|
|
5
|
+
import { OutputChannel } from '@opensumi/ide-output/lib/browser/output.channel';
|
|
6
|
+
import { DebugConfiguration } from 'vscode';
|
|
7
|
+
import { DebugSessionManager } from './debug-session-manager';
|
|
8
|
+
export interface DebugExitEvent {
|
|
9
|
+
code?: number;
|
|
10
|
+
reason?: string | Error;
|
|
11
|
+
}
|
|
12
|
+
export declare type DebugRequestHandler = (request: DebugProtocol.Request) => any;
|
|
13
|
+
export interface DebugRequestTypes {
|
|
14
|
+
'attach': [DebugProtocol.AttachRequestArguments, DebugProtocol.AttachResponse];
|
|
15
|
+
'breakpointLocations': [DebugProtocol.BreakpointLocationsArguments, DebugProtocol.BreakpointLocationsResponse];
|
|
16
|
+
'completions': [DebugProtocol.CompletionsArguments, DebugProtocol.CompletionsResponse];
|
|
17
|
+
'configurationDone': [DebugProtocol.ConfigurationDoneArguments, DebugProtocol.ConfigurationDoneResponse];
|
|
18
|
+
'continue': [DebugProtocol.ContinueArguments, DebugProtocol.ContinueResponse];
|
|
19
|
+
'disconnect': [DebugProtocol.DisconnectArguments, DebugProtocol.DisconnectResponse];
|
|
20
|
+
'evaluate': [DebugProtocol.EvaluateArguments, DebugProtocol.EvaluateResponse];
|
|
21
|
+
'exceptionInfo': [DebugProtocol.ExceptionInfoArguments, DebugProtocol.ExceptionInfoResponse];
|
|
22
|
+
'goto': [DebugProtocol.GotoArguments, DebugProtocol.GotoResponse];
|
|
23
|
+
'gotoTargets': [DebugProtocol.GotoTargetsArguments, DebugProtocol.GotoTargetsResponse];
|
|
24
|
+
'initialize': [DebugProtocol.InitializeRequestArguments, DebugProtocol.InitializeResponse];
|
|
25
|
+
'launch': [DebugProtocol.LaunchRequestArguments, DebugProtocol.LaunchResponse];
|
|
26
|
+
'loadedSources': [DebugProtocol.LoadedSourcesArguments, DebugProtocol.LoadedSourcesResponse];
|
|
27
|
+
'modules': [DebugProtocol.ModulesArguments, DebugProtocol.ModulesResponse];
|
|
28
|
+
'next': [DebugProtocol.NextArguments, DebugProtocol.NextResponse];
|
|
29
|
+
'pause': [DebugProtocol.PauseArguments, DebugProtocol.PauseResponse];
|
|
30
|
+
'restart': [DebugProtocol.RestartArguments, DebugProtocol.RestartResponse];
|
|
31
|
+
'restartFrame': [DebugProtocol.RestartFrameArguments, DebugProtocol.RestartFrameResponse];
|
|
32
|
+
'reverseContinue': [DebugProtocol.ReverseContinueArguments, DebugProtocol.ReverseContinueResponse];
|
|
33
|
+
'scopes': [DebugProtocol.ScopesArguments, DebugProtocol.ScopesResponse];
|
|
34
|
+
'setBreakpoints': [DebugProtocol.SetBreakpointsArguments, DebugProtocol.SetBreakpointsResponse];
|
|
35
|
+
'setExceptionBreakpoints': [DebugProtocol.SetExceptionBreakpointsArguments, DebugProtocol.SetExceptionBreakpointsResponse];
|
|
36
|
+
'setExpression': [DebugProtocol.SetExpressionArguments, DebugProtocol.SetExpressionResponse];
|
|
37
|
+
'setFunctionBreakpoints': [DebugProtocol.SetFunctionBreakpointsArguments, DebugProtocol.SetFunctionBreakpointsResponse];
|
|
38
|
+
'setVariable': [DebugProtocol.SetVariableArguments, DebugProtocol.SetVariableResponse];
|
|
39
|
+
'source': [DebugProtocol.SourceArguments, DebugProtocol.SourceResponse];
|
|
40
|
+
'stackTrace': [DebugProtocol.StackTraceArguments, DebugProtocol.StackTraceResponse];
|
|
41
|
+
'stepBack': [DebugProtocol.StepBackArguments, DebugProtocol.StepBackResponse];
|
|
42
|
+
'stepIn': [DebugProtocol.StepInArguments, DebugProtocol.StepInResponse];
|
|
43
|
+
'stepInTargets': [DebugProtocol.StepInTargetsArguments, DebugProtocol.StepInTargetsResponse];
|
|
44
|
+
'stepOut': [DebugProtocol.StepOutArguments, DebugProtocol.StepOutResponse];
|
|
45
|
+
'terminate': [DebugProtocol.TerminateArguments, DebugProtocol.TerminateResponse];
|
|
46
|
+
'terminateThreads': [DebugProtocol.TerminateThreadsArguments, DebugProtocol.TerminateThreadsResponse];
|
|
47
|
+
'threads': [DebugProtocol.ThreadsArguments | null, DebugProtocol.ThreadsResponse];
|
|
48
|
+
'variables': [DebugProtocol.VariablesArguments, DebugProtocol.VariablesResponse];
|
|
49
|
+
'cancel': [DebugProtocol.CancelArguments, DebugProtocol.CancelResponse];
|
|
50
|
+
}
|
|
51
|
+
export interface DebugEventTypes {
|
|
52
|
+
'breakpoint': DebugProtocol.BreakpointEvent;
|
|
53
|
+
'capabilities': DebugProtocol.CapabilitiesEvent;
|
|
54
|
+
'continued': DebugProtocol.ContinuedEvent;
|
|
55
|
+
'exited': DebugExitEvent;
|
|
56
|
+
'initialized': DebugProtocol.InitializedEvent;
|
|
57
|
+
'loadedSource': DebugProtocol.LoadedSourceEvent;
|
|
58
|
+
'module': DebugProtocol.ModuleEvent;
|
|
59
|
+
'output': DebugProtocol.OutputEvent;
|
|
60
|
+
'process': DebugProtocol.ProcessEvent;
|
|
61
|
+
'stopped': DebugProtocol.StoppedEvent;
|
|
62
|
+
'terminated': DebugProtocol.TerminatedEvent;
|
|
63
|
+
'thread': DebugProtocol.ThreadEvent;
|
|
64
|
+
'progressStart': DebugProtocol.ProgressStartEvent;
|
|
65
|
+
'progressUpdate': DebugProtocol.ProgressUpdateEvent;
|
|
66
|
+
'progressEnd': DebugProtocol.ProgressEndEvent;
|
|
67
|
+
'invalidated': DebugProtocol.InvalidatedEvent;
|
|
68
|
+
}
|
|
69
|
+
export declare class DebugSessionConnection implements IDisposable {
|
|
70
|
+
readonly sessionId: string;
|
|
71
|
+
protected readonly connectionFactory: (sessionId: string) => Promise<IWebSocket>;
|
|
72
|
+
protected readonly traceOutputChannel: OutputChannel | undefined;
|
|
73
|
+
protected readonly manager: DebugSessionManager;
|
|
74
|
+
protected readonly pendingRequests: Map<number, (response: DebugProtocol.Response) => void>;
|
|
75
|
+
protected readonly connection: Promise<IWebSocket>;
|
|
76
|
+
protected readonly requestHandlers: Map<string, DebugRequestHandler>;
|
|
77
|
+
protected readonly onDidCustomEventEmitter: Emitter<DebugProtocol.Event>;
|
|
78
|
+
readonly onDidCustomEvent: Event<DebugProtocol.Event>;
|
|
79
|
+
protected readonly toDispose: DisposableCollection;
|
|
80
|
+
constructor(sessionId: string, connectionFactory: (sessionId: string) => Promise<IWebSocket>, traceOutputChannel: OutputChannel | undefined);
|
|
81
|
+
get disposed(): boolean;
|
|
82
|
+
dispose(): void;
|
|
83
|
+
/**
|
|
84
|
+
* 通过 Connection 模块创建可与 Node 进程通信的链接
|
|
85
|
+
* @returns IWebSocket
|
|
86
|
+
*/
|
|
87
|
+
protected createConnection(): Promise<IWebSocket>;
|
|
88
|
+
protected allThreadsContinued: boolean;
|
|
89
|
+
protected sessionAdapterID: DebugProtocol.InitializeRequestArguments['adapterID'];
|
|
90
|
+
sendRequest<K extends keyof DebugRequestTypes>(command: K, args: DebugRequestTypes[K][0], configuration: DebugConfiguration, token?: CancellationToken): Promise<DebugRequestTypes[K][1]>;
|
|
91
|
+
sendCustomRequest<T extends DebugProtocol.Response>(command: string, args?: any): Promise<T>;
|
|
92
|
+
protected doSendRequest<K extends DebugProtocol.Response>(command: string, args?: any, token?: CancellationToken): Promise<K>;
|
|
93
|
+
protected send(message: DebugProtocol.ProtocolMessage): Promise<void>;
|
|
94
|
+
protected handleMessage(data: string): void;
|
|
95
|
+
protected handleResponse(response: DebugProtocol.Response): void;
|
|
96
|
+
onRequest(command: string, handler: DebugRequestHandler): void;
|
|
97
|
+
protected handleRequest(request: DebugProtocol.Request): Promise<void>;
|
|
98
|
+
protected handleEvent(event: DebugProtocol.Event): void;
|
|
99
|
+
protected readonly emitters: Map<string, Emitter<DebugProtocol.Event | DebugExitEvent>>;
|
|
100
|
+
on<K extends keyof DebugEventTypes>(kind: K, listener: (e: DebugEventTypes[K]) => any): IDisposable;
|
|
101
|
+
fire<K extends keyof DebugEventTypes>(kind: K, e: DebugEventTypes[K]): void;
|
|
102
|
+
protected doFire(kind: string, e: DebugProtocol.Event | DebugExitEvent): void;
|
|
103
|
+
protected getEmitter(kind: string): Emitter<DebugProtocol.Event | DebugExitEvent>;
|
|
104
|
+
protected newEmitter(): Emitter<DebugProtocol.Event | DebugExitEvent>;
|
|
105
|
+
protected fireContinuedEvent(threadId: number, allThreadsContinued?: boolean): void;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=debug-session-connection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-session-connection.d.ts","sourceRoot":"","sources":["../../src/browser/debug-session-connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EACL,KAAK,EAC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CAAC,IAAI,CAAC;IAsB5E,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,IAAI;IAevD,SAAS,CAAC,QAAQ,CAAC,QAAQ,6DAAoE;IAC/F,EAAE,CAAC,CAAC,SAAS,MAAM,eAAe,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,WAAW;IAO5F,IAAI,CAAC,CAAC,SAAS,MAAM,eAAe,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI;IAIlF,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,aAAa,CAAC,KAAK,GAAG,cAAc,GAAG,IAAI;IAO7E,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,GAAG,cAAc,CAAC;IAMjF,SAAS,CAAC,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC,KAAK,GAAG,cAAc,CAAC;IAMrE,SAAS,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,mBAAmB,UAAQ,GAAG,IAAI;CAYlF"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugSessionConnection = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const debug_session_manager_1 = require("./debug-session-manager");
|
|
9
|
+
const standardDebugEvents = new Set([
|
|
10
|
+
'breakpoint',
|
|
11
|
+
'capabilities',
|
|
12
|
+
'continued',
|
|
13
|
+
'exited',
|
|
14
|
+
'initialized',
|
|
15
|
+
'loadedSource',
|
|
16
|
+
'module',
|
|
17
|
+
'output',
|
|
18
|
+
'process',
|
|
19
|
+
'stopped',
|
|
20
|
+
'terminated',
|
|
21
|
+
'thread',
|
|
22
|
+
'progressStart',
|
|
23
|
+
'progressUpdate',
|
|
24
|
+
'progressEnd',
|
|
25
|
+
'invalidated',
|
|
26
|
+
]);
|
|
27
|
+
let DebugSessionConnection = class DebugSessionConnection {
|
|
28
|
+
constructor(sessionId, connectionFactory, traceOutputChannel) {
|
|
29
|
+
this.sessionId = sessionId;
|
|
30
|
+
this.connectionFactory = connectionFactory;
|
|
31
|
+
this.traceOutputChannel = traceOutputChannel;
|
|
32
|
+
this.pendingRequests = new Map();
|
|
33
|
+
this.requestHandlers = new Map();
|
|
34
|
+
this.onDidCustomEventEmitter = new ide_core_browser_1.Emitter();
|
|
35
|
+
this.onDidCustomEvent = this.onDidCustomEventEmitter.event;
|
|
36
|
+
this.toDispose = new ide_core_browser_1.DisposableCollection(this.onDidCustomEventEmitter, ide_core_browser_1.Disposable.create(() => this.pendingRequests.clear()), ide_core_browser_1.Disposable.create(() => this.emitters.clear()));
|
|
37
|
+
this.allThreadsContinued = true;
|
|
38
|
+
this.emitters = new Map();
|
|
39
|
+
this.connection = this.createConnection();
|
|
40
|
+
}
|
|
41
|
+
get disposed() {
|
|
42
|
+
return this.toDispose.disposed;
|
|
43
|
+
}
|
|
44
|
+
dispose() {
|
|
45
|
+
this.toDispose.dispose();
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 通过 Connection 模块创建可与 Node 进程通信的链接
|
|
49
|
+
* @returns IWebSocket
|
|
50
|
+
*/
|
|
51
|
+
async createConnection() {
|
|
52
|
+
if (this.disposed) {
|
|
53
|
+
throw new Error('Connection has been already disposed.');
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const connection = await this.connectionFactory(this.sessionId);
|
|
57
|
+
connection.onClose((code, reason) => {
|
|
58
|
+
this.fire('exited', { code, reason });
|
|
59
|
+
});
|
|
60
|
+
connection.onMessage((data) => this.handleMessage(data));
|
|
61
|
+
this.toDispose.push(ide_core_browser_1.Disposable.create(() => {
|
|
62
|
+
connection.close();
|
|
63
|
+
}));
|
|
64
|
+
return connection;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
async sendRequest(command, args, configuration, token) {
|
|
68
|
+
var _a;
|
|
69
|
+
/**
|
|
70
|
+
* 在接收到 initialize 请求的时候记录当前的 session 适配器类型
|
|
71
|
+
*/
|
|
72
|
+
if (command === 'initialize') {
|
|
73
|
+
this.sessionAdapterID = args.adapterID;
|
|
74
|
+
}
|
|
75
|
+
const reportDAP = this.manager.reportTime(common_1.DEBUG_REPORT_NAME.DEBUG_ADAPTER_PROTOCOL_TIME, {
|
|
76
|
+
sessionId: this.sessionId,
|
|
77
|
+
threadId: args && args.threadId || ((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.raw.id),
|
|
78
|
+
});
|
|
79
|
+
const result = await this.doSendRequest(command, args, token);
|
|
80
|
+
/*
|
|
81
|
+
* 对 threads 请求增加 数量 统计
|
|
82
|
+
*/
|
|
83
|
+
const reportExtra = {
|
|
84
|
+
adapterID: this.sessionAdapterID,
|
|
85
|
+
request: configuration.request,
|
|
86
|
+
};
|
|
87
|
+
if (command === 'threads') {
|
|
88
|
+
reportExtra.amount = result.body.threads.length;
|
|
89
|
+
}
|
|
90
|
+
reportDAP(command, reportExtra);
|
|
91
|
+
if (command === 'next' || command === 'stepIn' ||
|
|
92
|
+
command === 'stepOut' || command === 'stepBack' ||
|
|
93
|
+
command === 'reverseContinue' || command === 'restartFrame') {
|
|
94
|
+
this.fireContinuedEvent(args.threadId);
|
|
95
|
+
}
|
|
96
|
+
if (command === 'continue') {
|
|
97
|
+
const response = result;
|
|
98
|
+
const allThreadsContinued = response && response.body && response.body.allThreadsContinued;
|
|
99
|
+
if (allThreadsContinued !== undefined) {
|
|
100
|
+
this.allThreadsContinued = result.body.allThreadsContinued;
|
|
101
|
+
}
|
|
102
|
+
this.fireContinuedEvent(args.threadId, this.allThreadsContinued);
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
sendCustomRequest(command, args) {
|
|
108
|
+
return this.doSendRequest(command, args);
|
|
109
|
+
}
|
|
110
|
+
async doSendRequest(command, args = null, token) {
|
|
111
|
+
const result = new ide_core_browser_1.Deferred();
|
|
112
|
+
const request = {
|
|
113
|
+
seq: (0, common_1.getSequenceId)(),
|
|
114
|
+
type: 'request',
|
|
115
|
+
command,
|
|
116
|
+
};
|
|
117
|
+
let cancelationListener;
|
|
118
|
+
if (args && Object.keys(args).length > 0) {
|
|
119
|
+
request.arguments = args;
|
|
120
|
+
}
|
|
121
|
+
this.pendingRequests.set(request.seq, (response) => {
|
|
122
|
+
if (cancelationListener) {
|
|
123
|
+
cancelationListener.dispose();
|
|
124
|
+
}
|
|
125
|
+
if (!response.success) {
|
|
126
|
+
result.reject(response);
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
result.resolve(response);
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
if (token) {
|
|
133
|
+
cancelationListener = token.onCancellationRequested(async () => {
|
|
134
|
+
cancelationListener.dispose();
|
|
135
|
+
const session = this.manager.getSession(this.sessionId);
|
|
136
|
+
if (session && session.capabilities.supportsCancelRequest) {
|
|
137
|
+
session.sendRequest('cancel', {
|
|
138
|
+
requestId: request.seq,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
await this.send(request);
|
|
144
|
+
return result.promise;
|
|
145
|
+
}
|
|
146
|
+
async send(message) {
|
|
147
|
+
const connection = await this.connection;
|
|
148
|
+
const messageStr = JSON.stringify(message);
|
|
149
|
+
if (this.traceOutputChannel) {
|
|
150
|
+
this.traceOutputChannel.appendLine(`${this.sessionId.substring(0, 8)} [UI -> adapter]: ${messageStr}`);
|
|
151
|
+
}
|
|
152
|
+
connection.send(messageStr);
|
|
153
|
+
}
|
|
154
|
+
handleMessage(data) {
|
|
155
|
+
if (this.traceOutputChannel) {
|
|
156
|
+
this.traceOutputChannel.appendLine(`${this.sessionId.substring(0, 8)} [adapter -> UI ]: ${data}`);
|
|
157
|
+
}
|
|
158
|
+
const message = JSON.parse(data);
|
|
159
|
+
if (message.type === 'request') {
|
|
160
|
+
this.handleRequest(message);
|
|
161
|
+
}
|
|
162
|
+
else if (message.type === 'response') {
|
|
163
|
+
this.handleResponse(message);
|
|
164
|
+
}
|
|
165
|
+
else if (message.type === 'event') {
|
|
166
|
+
this.handleEvent(message);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
handleResponse(response) {
|
|
170
|
+
const callback = this.pendingRequests.get(response.request_seq);
|
|
171
|
+
if (callback) {
|
|
172
|
+
this.pendingRequests.delete(response.request_seq);
|
|
173
|
+
callback(response);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
onRequest(command, handler) {
|
|
177
|
+
this.requestHandlers.set(command, handler);
|
|
178
|
+
}
|
|
179
|
+
async handleRequest(request) {
|
|
180
|
+
const response = {
|
|
181
|
+
type: 'response',
|
|
182
|
+
seq: (0, common_1.getSequenceId)(),
|
|
183
|
+
command: request.command,
|
|
184
|
+
request_seq: request.seq,
|
|
185
|
+
success: true,
|
|
186
|
+
};
|
|
187
|
+
const handler = this.requestHandlers.get(request.command);
|
|
188
|
+
if (handler) {
|
|
189
|
+
try {
|
|
190
|
+
response.body = handler(request);
|
|
191
|
+
}
|
|
192
|
+
catch (error) {
|
|
193
|
+
response.success = false;
|
|
194
|
+
response.message = error.message;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
(0, ide_core_browser_1.getDebugLogger)().error('Unhandled request', request);
|
|
199
|
+
}
|
|
200
|
+
await this.send(response);
|
|
201
|
+
}
|
|
202
|
+
handleEvent(event) {
|
|
203
|
+
if ('event' in event) {
|
|
204
|
+
if (event.event === 'continued') {
|
|
205
|
+
this.allThreadsContinued = event.body.allThreadsContinued === false ? false : true;
|
|
206
|
+
}
|
|
207
|
+
if (standardDebugEvents.has(event.event)) {
|
|
208
|
+
this.doFire(event.event, event);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
this.onDidCustomEventEmitter.fire(event);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
this.fire('exited', event);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
on(kind, listener) {
|
|
219
|
+
if (this.disposed) {
|
|
220
|
+
return ide_core_browser_1.Disposable.create(() => { });
|
|
221
|
+
}
|
|
222
|
+
return this.getEmitter(kind).event(listener);
|
|
223
|
+
}
|
|
224
|
+
fire(kind, e) {
|
|
225
|
+
this.doFire(kind, e);
|
|
226
|
+
}
|
|
227
|
+
doFire(kind, e) {
|
|
228
|
+
if (this.disposed) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
this.getEmitter(kind).fire(e);
|
|
232
|
+
}
|
|
233
|
+
getEmitter(kind) {
|
|
234
|
+
const emitter = this.emitters.get(kind) || this.newEmitter();
|
|
235
|
+
this.emitters.set(kind, emitter);
|
|
236
|
+
return emitter;
|
|
237
|
+
}
|
|
238
|
+
newEmitter() {
|
|
239
|
+
const emitter = new ide_core_browser_1.Emitter();
|
|
240
|
+
this.toDispose.push(emitter);
|
|
241
|
+
return emitter;
|
|
242
|
+
}
|
|
243
|
+
fireContinuedEvent(threadId, allThreadsContinued = false) {
|
|
244
|
+
this.fire('continued', {
|
|
245
|
+
type: 'event',
|
|
246
|
+
event: 'continued',
|
|
247
|
+
body: {
|
|
248
|
+
threadId,
|
|
249
|
+
allThreadsContinued,
|
|
250
|
+
},
|
|
251
|
+
seq: (0, common_1.getSequenceId)(),
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
(0, tslib_1.__decorate)([
|
|
256
|
+
(0, di_1.Autowired)(common_1.IDebugSessionManager),
|
|
257
|
+
(0, tslib_1.__metadata)("design:type", debug_session_manager_1.DebugSessionManager)
|
|
258
|
+
], DebugSessionConnection.prototype, "manager", void 0);
|
|
259
|
+
DebugSessionConnection = (0, tslib_1.__decorate)([
|
|
260
|
+
(0, di_1.Injectable)({ multiple: true }),
|
|
261
|
+
(0, tslib_1.__param)(0, (0, di_1.Optional)()),
|
|
262
|
+
(0, tslib_1.__param)(1, (0, di_1.Optional)()),
|
|
263
|
+
(0, tslib_1.__param)(2, (0, di_1.Optional)()),
|
|
264
|
+
(0, tslib_1.__metadata)("design:paramtypes", [String, Function, Object])
|
|
265
|
+
], DebugSessionConnection);
|
|
266
|
+
exports.DebugSessionConnection = DebugSessionConnection;
|
|
267
|
+
//# sourceMappingURL=debug-session-connection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-session-connection.js","sourceRoot":"","sources":["../../src/browser/debug-session-connection.ts"],"names":[],"mappings":";;;;AACA,qCAA+D;AAE/D,iEAQoC;AAGpC,sCAAmF;AAEnF,mEAA8D;AAmE9D,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAkC;IACnE,YAAY;IACZ,cAAc;IACd,WAAW;IACX,QAAQ;IACR,aAAa;IACb,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,aAAa;CACd,CAAC,CAAC;AAGH,IAAa,sBAAsB,GAAnC,MAAa,sBAAsB;IAmBjC,YACuB,SAAiB,EACP,iBAA6D,EAC7D,kBAA6C;QAFvD,cAAS,GAAT,SAAS,CAAQ;QACP,sBAAiB,GAAjB,iBAAiB,CAA4C;QAC7D,uBAAkB,GAAlB,kBAAkB,CAA2B;QAjB3D,oBAAe,GAAG,IAAI,GAAG,EAAsD,CAAC;QAGhF,oBAAe,GAAG,IAAI,GAAG,EAA+B,CAAC;QAEzD,4BAAuB,GAAG,IAAI,0B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Q;SACT;QACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;IAES,UAAU,CAAC,IAAY;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QAC7D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACjC,OAAO,OAAO,CAAC;IACjB,CAAC;IAES,UAAU;QAClB,MAAM,OAAO,GAAG,IAAI,0BAAO,EAAwC,CAAC;QACpE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACjB,CAAC;IAES,kBAAkB,CAAC,QAAgB,EAAE,mBAAmB,GAAG,KAAK;QACxE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE;gBACJ,QAAQ;gBACR,mBAAmB;aACpB;YACD,GAAG,EAAE,IAAA,sBAAa,GAAE;SACrB,CAAC,CAAC;IACL,CAAC;CAEF,CAAA;AAvQC;IADC,IAAA,cAAS,EAAC,6BAAoB,CAAC;2CACJ,2CAAmB;uDAAC;AAHrC,sBAAsB;IADlC,IAAA,eAAU,EAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IAqBxB,wBAAA,IAAA,aAAQ,GAAE,CAAA;IACV,wBAAA,IAAA,aAAQ,GAAE,CAAA;IACV,wBAAA,IAAA,aAAQ,GAAE,CAAA;;GAtBF,sBAAsB,CA0QlC;AA1QY,wDAAsB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ContributionProvider } from '@opensumi/ide-core-browser';
|
|
2
|
+
import { DebugSession } from './debug-session';
|
|
3
|
+
import { IFileServiceClient } from '@opensumi/ide-file-service';
|
|
4
|
+
import { LabelService } from '@opensumi/ide-core-browser/lib/services';
|
|
5
|
+
import { WSChannelHandler } from '@opensumi/ide-connection';
|
|
6
|
+
import { DebugPreferences } from './debug-preferences';
|
|
7
|
+
import { DebugSessionManager } from './debug-session-manager';
|
|
8
|
+
import { DebugModelManager } from './editor/debug-model-manager';
|
|
9
|
+
import { DebugSessionOptions } from '../common';
|
|
10
|
+
import { BreakpointManager } from './breakpoint';
|
|
11
|
+
import { IMessageService } from '@opensumi/ide-overlay';
|
|
12
|
+
import { WorkbenchEditorService } from '@opensumi/ide-editor';
|
|
13
|
+
import { ITerminalApiService } from '@opensumi/ide-terminal-next/lib/common';
|
|
14
|
+
import { OutputService } from '@opensumi/ide-output/lib/browser/output.service';
|
|
15
|
+
import { OutputChannel } from '@opensumi/ide-output/lib/browser/output.channel';
|
|
16
|
+
export declare const DebugSessionContribution: unique symbol;
|
|
17
|
+
export interface DebugSessionContribution {
|
|
18
|
+
/**
|
|
19
|
+
* 调试类型,如node2
|
|
20
|
+
*/
|
|
21
|
+
debugType: string;
|
|
22
|
+
/**
|
|
23
|
+
* 生成DebugSession的工厂函数.
|
|
24
|
+
*/
|
|
25
|
+
debugSessionFactory(): DebugSessionFactory;
|
|
26
|
+
}
|
|
27
|
+
export declare const DebugSessionContributionRegistry: unique symbol;
|
|
28
|
+
export interface DebugSessionContributionRegistry {
|
|
29
|
+
get(debugType: string): DebugSessionContribution | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare class DebugSessionContributionRegistryImpl implements DebugSessionContributionRegistry {
|
|
32
|
+
protected readonly contribs: Map<string, DebugSessionContribution>;
|
|
33
|
+
protected readonly contributions: ContributionProvider<DebugSessionContribution>;
|
|
34
|
+
constructor();
|
|
35
|
+
protected init(): void;
|
|
36
|
+
get(debugType: string): DebugSessionContribution | undefined;
|
|
37
|
+
}
|
|
38
|
+
export declare const DebugSessionFactory: unique symbol;
|
|
39
|
+
/**
|
|
40
|
+
* 生成DebugSession的工厂函数.
|
|
41
|
+
*/
|
|
42
|
+
export interface DebugSessionFactory {
|
|
43
|
+
get(sessionId: string, options: DebugSessionOptions): DebugSession;
|
|
44
|
+
}
|
|
45
|
+
export declare class DefaultDebugSessionFactory implements DebugSessionFactory {
|
|
46
|
+
protected readonly connectionProvider: WSChannelHandler;
|
|
47
|
+
protected readonly workbenchEditorService: WorkbenchEditorService;
|
|
48
|
+
protected readonly breakpoints: BreakpointManager;
|
|
49
|
+
protected readonly modelManager: DebugModelManager;
|
|
50
|
+
protected readonly labelService: LabelService;
|
|
51
|
+
protected readonly messages: IMessageService;
|
|
52
|
+
protected readonly debugPreferences: DebugPreferences;
|
|
53
|
+
protected readonly fileSystem: IFileServiceClient;
|
|
54
|
+
protected readonly terminalService: ITerminalApiService;
|
|
55
|
+
protected readonly outputService: OutputService;
|
|
56
|
+
private readonly injector;
|
|
57
|
+
protected readonly manager: DebugSessionManager;
|
|
58
|
+
get(sessionId: string, options: DebugSessionOptions): DebugSession;
|
|
59
|
+
protected getTraceOutputChannel(): OutputChannel | undefined;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=debug-session-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-session-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/debug-session-contribution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B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,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAElE,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IAElD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IAEnD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAE9C,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IAE7C,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAEtD,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IAElD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,mBAAmB,CAAC;IAExD,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IAEpC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IAEhD,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,YAAY;IAuBlE,SAAS,CAAC,qBAAqB,IAAI,aAAa,GAAG,SAAS;CAK7D"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DefaultDebugSessionFactory = exports.DebugSessionFactory = exports.DebugSessionContributionRegistryImpl = exports.DebugSessionContributionRegistry = exports.DebugSessionContribution = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
const debug_session_1 = require("./debug-session");
|
|
8
|
+
const ide_file_service_1 = require("@opensumi/ide-file-service");
|
|
9
|
+
const services_1 = require("@opensumi/ide-core-browser/lib/services");
|
|
10
|
+
const ide_connection_1 = require("@opensumi/ide-connection");
|
|
11
|
+
const debug_preferences_1 = require("./debug-preferences");
|
|
12
|
+
const debug_session_connection_1 = require("./debug-session-connection");
|
|
13
|
+
const debug_session_manager_1 = require("./debug-session-manager");
|
|
14
|
+
const debug_model_manager_1 = require("./editor/debug-model-manager");
|
|
15
|
+
const common_1 = require("../common");
|
|
16
|
+
const breakpoint_1 = require("./breakpoint");
|
|
17
|
+
const ide_overlay_1 = require("@opensumi/ide-overlay");
|
|
18
|
+
const ide_editor_1 = require("@opensumi/ide-editor");
|
|
19
|
+
const common_2 = require("@opensumi/ide-terminal-next/lib/common");
|
|
20
|
+
const output_service_1 = require("@opensumi/ide-output/lib/browser/output.service");
|
|
21
|
+
exports.DebugSessionContribution = Symbol('DebugSessionContribution');
|
|
22
|
+
exports.DebugSessionContributionRegistry = Symbol('DebugSessionContributionRegistry');
|
|
23
|
+
let DebugSessionContributionRegistryImpl = class DebugSessionContributionRegistryImpl {
|
|
24
|
+
constructor() {
|
|
25
|
+
this.contribs = new Map();
|
|
26
|
+
this.init();
|
|
27
|
+
}
|
|
28
|
+
init() {
|
|
29
|
+
for (const contrib of this.contributions.getContributions()) {
|
|
30
|
+
this.contribs.set(contrib.debugType, contrib);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
get(debugType) {
|
|
34
|
+
return this.contribs.get(debugType);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
(0, tslib_1.__decorate)([
|
|
38
|
+
(0, di_1.Autowired)(exports.DebugSessionContribution),
|
|
39
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
40
|
+
], DebugSessionContributionRegistryImpl.prototype, "contributions", void 0);
|
|
41
|
+
DebugSessionContributionRegistryImpl = (0, tslib_1.__decorate)([
|
|
42
|
+
(0, di_1.Injectable)(),
|
|
43
|
+
(0, tslib_1.__metadata)("design:paramtypes", [])
|
|
44
|
+
], DebugSessionContributionRegistryImpl);
|
|
45
|
+
exports.DebugSessionContributionRegistryImpl = DebugSessionContributionRegistryImpl;
|
|
46
|
+
exports.DebugSessionFactory = Symbol('DebugSessionFactory');
|
|
47
|
+
let DefaultDebugSessionFactory = class DefaultDebugSessionFactory {
|
|
48
|
+
get(sessionId, options) {
|
|
49
|
+
const connection = this.injector.get(debug_session_connection_1.DebugSessionConnection, [
|
|
50
|
+
sessionId,
|
|
51
|
+
(sessionId) => {
|
|
52
|
+
return this.connectionProvider.openChannel(`${common_1.DebugAdapterPath}/${sessionId}`);
|
|
53
|
+
},
|
|
54
|
+
this.getTraceOutputChannel(),
|
|
55
|
+
]);
|
|
56
|
+
return new debug_session_1.DebugSession(sessionId, options, connection, this.terminalService, this.workbenchEditorService, this.breakpoints, this.modelManager, this.labelService, this.messages, this.fileSystem, this.manager);
|
|
57
|
+
}
|
|
58
|
+
getTraceOutputChannel() {
|
|
59
|
+
if (this.debugPreferences['debug.trace']) {
|
|
60
|
+
return this.outputService.getChannel('Debug adapters');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
(0, tslib_1.__decorate)([
|
|
65
|
+
(0, di_1.Autowired)(ide_connection_1.WSChannelHandler),
|
|
66
|
+
(0, tslib_1.__metadata)("design:type", ide_connection_1.WSChannelHandler)
|
|
67
|
+
], DefaultDebugSessionFactory.prototype, "connectionProvider", void 0);
|
|
68
|
+
(0, tslib_1.__decorate)([
|
|
69
|
+
(0, di_1.Autowired)(ide_editor_1.WorkbenchEditorService),
|
|
70
|
+
(0, tslib_1.__metadata)("design:type", ide_editor_1.WorkbenchEditorService)
|
|
71
|
+
], DefaultDebugSessionFactory.prototype, "workbenchEditorService", void 0);
|
|
72
|
+
(0, tslib_1.__decorate)([
|
|
73
|
+
(0, di_1.Autowired)(breakpoint_1.BreakpointManager),
|
|
74
|
+
(0, tslib_1.__metadata)("design:type", breakpoint_1.BreakpointManager)
|
|
75
|
+
], DefaultDebugSessionFactory.prototype, "breakpoints", void 0);
|
|
76
|
+
(0, tslib_1.__decorate)([
|
|
77
|
+
(0, di_1.Autowired)(debug_model_manager_1.DebugModelManager),
|
|
78
|
+
(0, tslib_1.__metadata)("design:type", debug_model_manager_1.DebugModelManager)
|
|
79
|
+
], DefaultDebugSessionFactory.prototype, "modelManager", void 0);
|
|
80
|
+
(0, tslib_1.__decorate)([
|
|
81
|
+
(0, di_1.Autowired)(services_1.LabelService),
|
|
82
|
+
(0, tslib_1.__metadata)("design:type", services_1.LabelService)
|
|
83
|
+
], DefaultDebugSessionFactory.prototype, "labelService", void 0);
|
|
84
|
+
(0, tslib_1.__decorate)([
|
|
85
|
+
(0, di_1.Autowired)(ide_overlay_1.IMessageService),
|
|
86
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
87
|
+
], DefaultDebugSessionFactory.prototype, "messages", void 0);
|
|
88
|
+
(0, tslib_1.__decorate)([
|
|
89
|
+
(0, di_1.Autowired)(debug_preferences_1.DebugPreferences),
|
|
90
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
91
|
+
], DefaultDebugSessionFactory.prototype, "debugPreferences", void 0);
|
|
92
|
+
(0, tslib_1.__decorate)([
|
|
93
|
+
(0, di_1.Autowired)(ide_file_service_1.IFileServiceClient),
|
|
94
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
95
|
+
], DefaultDebugSessionFactory.prototype, "fileSystem", void 0);
|
|
96
|
+
(0, tslib_1.__decorate)([
|
|
97
|
+
(0, di_1.Autowired)(common_2.ITerminalApiService),
|
|
98
|
+
(0, tslib_1.__metadata)("design:type", Object)
|
|
99
|
+
], DefaultDebugSessionFactory.prototype, "terminalService", void 0);
|
|
100
|
+
(0, tslib_1.__decorate)([
|
|
101
|
+
(0, di_1.Autowired)(output_service_1.OutputService),
|
|
102
|
+
(0, tslib_1.__metadata)("design:type", output_service_1.OutputService)
|
|
103
|
+
], DefaultDebugSessionFactory.prototype, "outputService", void 0);
|
|
104
|
+
(0, tslib_1.__decorate)([
|
|
105
|
+
(0, di_1.Autowired)(di_1.INJECTOR_TOKEN),
|
|
106
|
+
(0, tslib_1.__metadata)("design:type", di_1.Injector)
|
|
107
|
+
], DefaultDebugSessionFactory.prototype, "injector", void 0);
|
|
108
|
+
(0, tslib_1.__decorate)([
|
|
109
|
+
(0, di_1.Autowired)(common_1.IDebugSessionManager),
|
|
110
|
+
(0, tslib_1.__metadata)("design:type", debug_session_manager_1.DebugSessionManager)
|
|
111
|
+
], DefaultDebugSessionFactory.prototype, "manager", void 0);
|
|
112
|
+
DefaultDebugSessionFactory = (0, tslib_1.__decorate)([
|
|
113
|
+
(0, di_1.Injectable)()
|
|
114
|
+
], DefaultDebugSessionFactory);
|
|
115
|
+
exports.DefaultDebugSessionFactory = DefaultDebugSessionFactory;
|
|
116
|
+
//# sourceMappingURL=debug-session-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-session-contribution.js","sourceRoot":"","sources":["../../src/browser/debug-session-contribution.ts"],"names":[],"mappings":";;;;AAAA,qCAA+E;AAC/E,iEAAkE;AAClE,mDAA+C;AAC/C,iEAAgE;AAChE,sEAAuE;AACvE,6DAA4D;AAC5D,2DAAuD;AACvD,yEAAoE;AACpE,mEAA8D;AAC9D,sEAAiE;AACjE,sCAAwF;AACxF,6CAAiD;AACjD,uDAAwD;AACxD,qDAA8D;AAC9D,mEAA6E;AAC7E,oFAAgF;AAGnE,QAAA,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAc9D,QAAA,gCAAgC,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;AAO3F,IAAa,oCAAoC,GAAjD,MAAa,oCAAoC;IAM/C;QALmB,aAAQ,GAAG,IAAI,GAAG,EAAoC,CAAC;QAMxE,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;IAES,IAAI;QACZ,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAE;YAC3D,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC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