@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,195 @@
|
|
|
1
|
+
.debug_stack_item_label {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
padding: 0 5px;
|
|
5
|
+
height: 22px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
&:hover {
|
|
9
|
+
background: var(--list-hoverBackground);
|
|
10
|
+
color: var(--list-hoverForeground);
|
|
11
|
+
.debug_threads_operation {
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
14
|
+
.debug_threads_description {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
&.selected {
|
|
19
|
+
background: var(--list-activeSelectionBackground);
|
|
20
|
+
color: var(--list-activeSelectionForeground);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.debug_threads_operation {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
.debug_threads_description {
|
|
28
|
+
display: block;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.debug_stack_item_label_title {
|
|
32
|
+
flex: 1;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.debug_stack_item {
|
|
39
|
+
width: 100%;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
.debug_stack_item_loading {
|
|
44
|
+
text-align: center;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
color: #868C91;
|
|
47
|
+
margin-top: 8px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.debug_stack_space {
|
|
52
|
+
width: 16px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.debug_stack_item_next_panel {
|
|
56
|
+
width: 100%;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.debug_session_icon {
|
|
62
|
+
padding: 0px 2px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.debug_stack_frames {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: baseline;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
overflow: auto;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.debug_stack_frames_item {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
padding: 5px;
|
|
76
|
+
height: 22px;
|
|
77
|
+
width: 100%;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
&:hover {
|
|
80
|
+
background: var(--list-hoverBackground);
|
|
81
|
+
color: var(--list-hoverForeground);
|
|
82
|
+
.debug_restart_frame_icon {
|
|
83
|
+
display: inline-block;
|
|
84
|
+
pointer-events: all;
|
|
85
|
+
}
|
|
86
|
+
.debug_stack_frames_item_badge {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
&.selected {
|
|
91
|
+
background: var(--list-activeSelectionBackground);
|
|
92
|
+
color: var(--list-activeSelectionForeground);
|
|
93
|
+
}
|
|
94
|
+
.debug_restart_frame_icon {
|
|
95
|
+
color: var(--debugIcon-restartForeground);
|
|
96
|
+
display: none;
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
margin: 0 4px;
|
|
99
|
+
border-radius: 4px;
|
|
100
|
+
line-height: 1;
|
|
101
|
+
padding: 2px;
|
|
102
|
+
&:hover {
|
|
103
|
+
background-color: rgba(90, 93, 94, 1);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
.debug_stack_frames_load_more {
|
|
108
|
+
display: block;
|
|
109
|
+
text-align: center;
|
|
110
|
+
font-size: 12px;
|
|
111
|
+
color: #167CDB;
|
|
112
|
+
width: 100%;
|
|
113
|
+
}
|
|
114
|
+
.debug_stack_frames_error_message {
|
|
115
|
+
display: block;
|
|
116
|
+
text-align: center;
|
|
117
|
+
width: 100%;
|
|
118
|
+
cursor: default;
|
|
119
|
+
color: var(--list-errorForeground);
|
|
120
|
+
&.hover {
|
|
121
|
+
color: var(--list-errorForeground);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.debug_stack_frames_item_label {
|
|
126
|
+
flex: 1;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
margin-right: 12px;
|
|
131
|
+
&.label {
|
|
132
|
+
text-align: center;
|
|
133
|
+
min-width: fit-content;
|
|
134
|
+
opacity: .7;
|
|
135
|
+
}
|
|
136
|
+
&.subtle {
|
|
137
|
+
opacity: .7;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.debug_stack_frames_item_description {
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
opacity: .9;
|
|
143
|
+
}
|
|
144
|
+
.debug_stack_frames_item_badge {
|
|
145
|
+
display: inline-block;
|
|
146
|
+
border-radius: 2px;
|
|
147
|
+
padding: 0px 5px;
|
|
148
|
+
background: var(--badge-background);
|
|
149
|
+
color: var(--badge-foreground);
|
|
150
|
+
font-size: 12px;
|
|
151
|
+
margin-left: 5px;
|
|
152
|
+
display: inline-block;
|
|
153
|
+
}
|
|
154
|
+
.debug_stack_frames_item_hidden {
|
|
155
|
+
opacity: 0.4;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
.debug_threads_item {
|
|
160
|
+
flex: 1;
|
|
161
|
+
align-items: center;
|
|
162
|
+
padding: 0 5px;
|
|
163
|
+
// height: 22px;
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
text-overflow: ellipsis;
|
|
166
|
+
overflow: hidden;
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
}
|
|
169
|
+
.debug_threads_item_label {
|
|
170
|
+
width: 100%;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
text-overflow: ellipsis;
|
|
174
|
+
}
|
|
175
|
+
.debug_threads_item_description {
|
|
176
|
+
font-size: 12px !important;
|
|
177
|
+
opacity: 0.8;
|
|
178
|
+
text-transform: uppercase;
|
|
179
|
+
white-space: nowrap;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
.debug_stack_thread_operations {
|
|
184
|
+
display: flex;
|
|
185
|
+
div:not(:first-child) {
|
|
186
|
+
margin-left: 4px;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.debug_stack_session_operations {
|
|
191
|
+
display: flex;
|
|
192
|
+
div {
|
|
193
|
+
padding: 0px 10px;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DebugSession } from '../../debug-session';
|
|
3
|
+
import { DebugThread } from '../../model/debug-thread';
|
|
4
|
+
export interface DebugStackOperationViewProps {
|
|
5
|
+
session?: DebugSession;
|
|
6
|
+
thread?: DebugThread;
|
|
7
|
+
}
|
|
8
|
+
export declare const DebugStackOperationView: (props: DebugStackOperationViewProps) => JSX.Element | null;
|
|
9
|
+
//# sourceMappingURL=debug-call-stack.operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-call-stack.operation.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/frames/debug-call-stack.operation.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,MAAM,WAAW,4BAA4B;IAC3C,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,eAAO,MAAM,uBAAuB,UAAW,4BAA4B,uBAuD1E,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugStackOperationView = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
7
|
+
const components_1 = require("../../components");
|
|
8
|
+
const debug_toolbar_service_1 = require("../configuration/debug-toolbar.service");
|
|
9
|
+
const debug_call_stack_module_less_1 = (0, tslib_1.__importDefault)(require("./debug-call-stack.module.less"));
|
|
10
|
+
const DebugStackOperationView = (props) => {
|
|
11
|
+
const { session, thread, } = props;
|
|
12
|
+
const { doStop, doStepIn, doStepOut, doStepOver, doContinue, doRestart, doPause, updateCurrentSession, } = (0, ide_core_browser_1.useInjectable)(debug_toolbar_service_1.DebugToolbarService);
|
|
13
|
+
if (session && !thread) {
|
|
14
|
+
const selectSession = (callback) => {
|
|
15
|
+
updateCurrentSession(session);
|
|
16
|
+
callback();
|
|
17
|
+
};
|
|
18
|
+
return (react_1.default.createElement("div", { className: debug_call_stack_module_less_1.default.debug_stack_session_operations },
|
|
19
|
+
react_1.default.createElement(components_1.DebugAction, { run: () => selectSession(doRestart), icon: 'reload', label: (0, ide_core_browser_1.localize)('debug.action.restart') }),
|
|
20
|
+
react_1.default.createElement(components_1.DebugAction, { run: () => selectSession(doStop), icon: 'stop', label: (0, ide_core_browser_1.localize)('debug.action.stop') })));
|
|
21
|
+
}
|
|
22
|
+
if (!session && thread) {
|
|
23
|
+
const { stopped } = thread;
|
|
24
|
+
const selectThread = (callback) => {
|
|
25
|
+
thread.session.currentThread = thread;
|
|
26
|
+
callback();
|
|
27
|
+
};
|
|
28
|
+
const renderContinue = (isStop) => {
|
|
29
|
+
if (isStop) {
|
|
30
|
+
return react_1.default.createElement(components_1.DebugAction, { run: () => selectThread(doContinue), icon: 'continue', label: (0, ide_core_browser_1.localize)('debug.action.continue') });
|
|
31
|
+
}
|
|
32
|
+
return react_1.default.createElement(components_1.DebugAction, { run: () => selectThread(doPause), enabled: true, icon: 'pause', label: (0, ide_core_browser_1.localize)('debug.action.pause') });
|
|
33
|
+
};
|
|
34
|
+
return (react_1.default.createElement("div", { className: debug_call_stack_module_less_1.default.debug_stack_thread_operations },
|
|
35
|
+
renderContinue(stopped),
|
|
36
|
+
react_1.default.createElement(components_1.DebugAction, { run: () => selectThread(doStepOver), enabled: stopped, icon: 'step', label: (0, ide_core_browser_1.localize)('debug.action.step-over') }),
|
|
37
|
+
react_1.default.createElement(components_1.DebugAction, { run: () => selectThread(doStepIn), enabled: stopped, icon: 'step-in', label: (0, ide_core_browser_1.localize)('debug.action.step-into') }),
|
|
38
|
+
react_1.default.createElement(components_1.DebugAction, { run: () => selectThread(doStepOut), enabled: stopped, icon: 'step-out', label: (0, ide_core_browser_1.localize)('debug.action.step-out') })));
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
};
|
|
42
|
+
exports.DebugStackOperationView = DebugStackOperationView;
|
|
43
|
+
//# sourceMappingURL=debug-call-stack.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-call-stack.operation.js","sourceRoot":"","sources":["../../../../src/browser/view/frames/debug-call-stack.operation.tsx"],"names":[],"mappings":";;;;AAAA,+DAA0B;AAC1B,iEAAqE;AACrE,iDAA+C;AAC/C,kFAA6E;AAC7E,+GAAoD;AAS7C,MAAM,uBAAuB,GAAG,CAAC,KAAmC,EAAE,EAAE;IAC7E,MAAM,EACJ,OAAO,EACP,MAAM,GACP,GAAG,KAAK,CAAC;IACV,MAAM,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,OAAO,EACP,oBAAoB,GACrB,GAAwB,IAAA,gCAAa,EAAC,2CAAmB,CAAC,CAAC;IAE5D,IAAI,OAAO,IAAI,CAAC,MAAM,EAAE;QACtB,MAAM,aAAa,GAAG,CAAC,QAAmB,EAAE,EAAE;YAC5C,oBAAoB,CAAC,OAAO,CAAC,CAAC;YAC9B,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC;QAEF,OAAO,CACL,uCAAK,SAAS,EAAG,sCAAM,CAAC,8BAA8B;YACpD,8BAAC,wBAAW,IAAC,GAAG,EAAG,GAAG,EAAE,CAAC,aAAa,CAAC,SAAS,CAAC,EAAG,IAAI,EAAG,QAAQ,EAAG,KAAK,EAAG,IAAA,2BAAQ,EAAC,sBAAsB,CAAC,GAAK;YACnH,8BAAC,wBAAW,IAAC,GAAG,EAAG,GAAG,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,EAAG,IAAI,EAAG,MAAM,EAAG,KAAK,EAAG,IAAA,2BAAQ,EAAC,mBAAmB,CAAC,GAAK,CACvG,CACP,CAAC;KACH;IAED,IAAI,CAAC,OAAO,IAAI,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,OAAO,EAAG,OAAO,EAAG,IAAI,EAAG,UAAU,EAAG,KAAK,EAAG,IAAA,2BAAQ,EAAC,uBAAuB,CAAC,GAAK,CACrI,CACP,CAAC;KACH;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAvDW,QAAA,uBAAuB,2BAuDlC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DebugSession } from './../../debug-session';
|
|
2
|
+
import { DebugStackFrame, DebugThread } from '../../model';
|
|
3
|
+
export declare class DebugCallStackService {
|
|
4
|
+
private readonly contextMenuService;
|
|
5
|
+
private readonly ctxMenuRenderer;
|
|
6
|
+
private readonly debugContextKey;
|
|
7
|
+
private stackFrameSupportsRestart;
|
|
8
|
+
private callStackItemType;
|
|
9
|
+
constructor();
|
|
10
|
+
handleContextMenu: (event: React.MouseEvent<HTMLDivElement, MouseEvent>, data: DebugSession | DebugStackFrame | DebugThread) => void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=debug-call-stack.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-call-stack.service.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/frames/debug-call-stack.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMrD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE3D,qBACa,qBAAqB;IAGhC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA6B;IAGhE,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAmB;IAGnD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAElD,OAAO,CAAC,yBAAyB,CAAuB;IACxD,OAAO,CAAC,iBAAiB,CAAsB;;IAWxC,iBAAiB,UAAW,gBAAgB,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,YAAY,GAAG,eAAe,GAAG,WAAW,KAAG,IAAI,CA4DzI;CAEF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugCallStackService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const debug_session_1 = require("./../../debug-session");
|
|
6
|
+
const constants_1 = require("./../../../common/constants");
|
|
7
|
+
const debug_contextkey_service_1 = require("./../../contextkeys/debug-contextkey.service");
|
|
8
|
+
const di_1 = require("@opensumi/di");
|
|
9
|
+
const next_1 = require("@opensumi/ide-core-browser/lib/menu/next");
|
|
10
|
+
const model_1 = require("../../model");
|
|
11
|
+
let DebugCallStackService = class DebugCallStackService {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.handleContextMenu = (event, data) => {
|
|
14
|
+
this.stackFrameSupportsRestart.reset();
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
event.preventDefault();
|
|
17
|
+
if (data instanceof debug_session_1.DebugSession) {
|
|
18
|
+
this.callStackItemType.set('session');
|
|
19
|
+
}
|
|
20
|
+
else if (data instanceof model_1.DebugThread) {
|
|
21
|
+
this.callStackItemType.set('thread');
|
|
22
|
+
}
|
|
23
|
+
else if (data instanceof model_1.DebugStackFrame) {
|
|
24
|
+
this.callStackItemType.set('stackFrame');
|
|
25
|
+
this.stackFrameSupportsRestart.set(data.canRestart);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.callStackItemType.reset();
|
|
29
|
+
}
|
|
30
|
+
const { x, y } = event.nativeEvent;
|
|
31
|
+
const menus = this.contextMenuService.createMenu({ id: next_1.MenuId.DebugCallStackContext, contextKeyService: this.debugContextKey.contextKeyScoped });
|
|
32
|
+
const menuNodes = menus.getMergedMenuNodes();
|
|
33
|
+
menus.dispose();
|
|
34
|
+
const toArgs = () => {
|
|
35
|
+
var _a;
|
|
36
|
+
if (data instanceof model_1.DebugStackFrame) {
|
|
37
|
+
if ((_a = data.source) === null || _a === void 0 ? void 0 : _a.inMemory) {
|
|
38
|
+
return data.source.raw.path || data.source.reference || data.source.name;
|
|
39
|
+
}
|
|
40
|
+
return data.source ? data.source.uri.toString() : '';
|
|
41
|
+
}
|
|
42
|
+
if (data instanceof model_1.DebugThread) {
|
|
43
|
+
return data.id;
|
|
44
|
+
}
|
|
45
|
+
if (data instanceof debug_session_1.DebugSession) {
|
|
46
|
+
return data.id;
|
|
47
|
+
}
|
|
48
|
+
return '';
|
|
49
|
+
};
|
|
50
|
+
const toAgrsContext = () => {
|
|
51
|
+
return data instanceof model_1.DebugStackFrame ? {
|
|
52
|
+
sessionId: data.session.id,
|
|
53
|
+
threadId: data.thread.id,
|
|
54
|
+
frameId: data.id,
|
|
55
|
+
} : data instanceof model_1.DebugThread ? {
|
|
56
|
+
sessionId: data.session.id,
|
|
57
|
+
threadId: data.id,
|
|
58
|
+
} : data instanceof debug_session_1.DebugSession ? {
|
|
59
|
+
sessionId: data.id,
|
|
60
|
+
} : undefined;
|
|
61
|
+
};
|
|
62
|
+
this.ctxMenuRenderer.show({
|
|
63
|
+
anchor: { x, y },
|
|
64
|
+
menuNodes,
|
|
65
|
+
args: [toArgs(), toAgrsContext()],
|
|
66
|
+
contextKeyService: this.debugContextKey.contextKeyScoped,
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
if (!this.stackFrameSupportsRestart) {
|
|
70
|
+
this.stackFrameSupportsRestart = constants_1.CONTEXT_STACK_FRAME_SUPPORTS_RESTART.bind(this.debugContextKey.contextKeyScoped);
|
|
71
|
+
}
|
|
72
|
+
if (!this.callStackItemType) {
|
|
73
|
+
this.callStackItemType = constants_1.CONTEXT_CALLSTACK_ITEM_TYPE.bind(this.debugContextKey.contextKeyScoped);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
(0, tslib_1.__decorate)([
|
|
78
|
+
(0, di_1.Autowired)(next_1.AbstractContextMenuService),
|
|
79
|
+
(0, tslib_1.__metadata)("design:type", next_1.AbstractContextMenuService)
|
|
80
|
+
], DebugCallStackService.prototype, "contextMenuService", void 0);
|
|
81
|
+
(0, tslib_1.__decorate)([
|
|
82
|
+
(0, di_1.Autowired)(next_1.ICtxMenuRenderer),
|
|
83
|
+
(0, tslib_1.__metadata)("design:type", next_1.ICtxMenuRenderer)
|
|
84
|
+
], DebugCallStackService.prototype, "ctxMenuRenderer", void 0);
|
|
85
|
+
(0, tslib_1.__decorate)([
|
|
86
|
+
(0, di_1.Autowired)(debug_contextkey_service_1.DebugContextKey),
|
|
87
|
+
(0, tslib_1.__metadata)("design:type", debug_contextkey_service_1.DebugContextKey)
|
|
88
|
+
], DebugCallStackService.prototype, "debugContextKey", void 0);
|
|
89
|
+
DebugCallStackService = (0, tslib_1.__decorate)([
|
|
90
|
+
(0, di_1.Injectable)(),
|
|
91
|
+
(0, tslib_1.__metadata)("design:paramtypes", [])
|
|
92
|
+
], DebugCallStackService);
|
|
93
|
+
exports.DebugCallStackService = DebugCallStackService;
|
|
94
|
+
//# sourceMappingURL=debug-call-stack.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-call-stack.service.js","sourceRoot":"","sources":["../../../../src/browser/view/frames/debug-call-stack.service.ts"],"names":[],"mappings":";;;;AAAA,yDAAqD;AACrD,2DAAgH;AAChH,2FAA+E;AAE/E,qCAAqD;AACrD,mEAAgH;AAChH,uCAA2D;AAG3D,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAchC;QASO,sBAAiB,GAAG,CAAC,KAAmD,EAAE,IAAkD,EAAQ,EAAE;YAE3I,IAAI,CAAC,yBAAyB,CAAC,KAAK,EAAE,CAAC;YACvC,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,KAAK,CAAC,cAAc,EAAE,CAAC;YAEvB,IAAI,IAAI,YAAY,4BAAY,EAAE;gBAChC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACvC;iBAAM,IAAI,IAAI,YAAY,mBAAW,EAAE;gBACtC,IAAI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AA,cAAS,EAAC,uBAAgB,CAAC;2CACM,uBAAgB;8DAAC;AAGnD;IADC,IAAA,cAAS,EAAC,0CAAe,CAAC;2CACO,0CAAe;8DAAC;AATvC,qBAAqB;IADjC,IAAA,eAAU,GAAE;;GACA,qBAAqB,CAqFjC;AArFY,sDAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-call-stack.view.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/frames/debug-call-stack.view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAMtE,eAAO,MAAM,kBAAkB;eAES,SAAS;EAiC/C,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugCallStackView = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
6
|
+
const mobx_react_lite_1 = require("mobx-react-lite");
|
|
7
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
8
|
+
const debug_call_stack_session_view_1 = require("./debug-call-stack-session.view");
|
|
9
|
+
const common_1 = require("../../../common");
|
|
10
|
+
exports.DebugCallStackView = (0, mobx_react_lite_1.observer)(({ viewState, }) => {
|
|
11
|
+
const manager = (0, ide_core_browser_1.useInjectable)(common_1.IDebugSessionManager);
|
|
12
|
+
const [sessions, setSessions] = react_1.default.useState([]);
|
|
13
|
+
react_1.default.useEffect(() => {
|
|
14
|
+
const createDispose = manager.onDidCreateDebugSession((session) => {
|
|
15
|
+
sessions.push(session);
|
|
16
|
+
setSessions([...sessions]);
|
|
17
|
+
});
|
|
18
|
+
const destroyDispose = manager.onDidDestroyDebugSession((session) => {
|
|
19
|
+
const index = sessions.findIndex((s) => s.id === session.id);
|
|
20
|
+
sessions.splice(index, 1);
|
|
21
|
+
setSessions([...sessions]);
|
|
22
|
+
});
|
|
23
|
+
return () => {
|
|
24
|
+
createDispose.dispose();
|
|
25
|
+
destroyDispose.dispose();
|
|
26
|
+
};
|
|
27
|
+
}, []);
|
|
28
|
+
return (react_1.default.createElement("div", { style: { width: viewState.width } }, sessions.filter((s) => !s.parentSession).map((session) => {
|
|
29
|
+
return (react_1.default.createElement(debug_call_stack_session_view_1.DebugStackSessionView, { key: session.id, viewState: viewState, session: session, indent: 0 }));
|
|
30
|
+
})));
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=debug-call-stack.view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-call-stack.view.js","sourceRoot":"","sources":["../../../../src/browser/view/frames/debug-call-stack.view.tsx"],"names":[],"mappings":";;;;AAAA,+DAA0B;AAC1B,qDAA2C;AAC3C,iEAAsE;AACtE,mFAAwE;AAExE,4CAAsE;AAGzD,QAAA,kBAAkB,GAAG,IAAA,0BAAQ,EAAC,CAAC,EAC1C,SAAS,GACyC,EAAE,EAAE;IACtD,MAAM,OAAO,GAAG,IAAA,gCAAa,EAAsB,6BAAoB,CAAC,CAAC;IACzE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAiB,EAAE,CAAC,CAAC;IAEnE,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,EAAE,EAAE;YAChE,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,WAAW,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,MAAM,cAAc,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,OAAO,EAAE,EAAE;YAClE,MAAM,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE,CAAC,CAAC;YAC7D,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;YAC1B,WAAW,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACV,aAAa,CAAC,OAAO,EAAE,CAAC;YACxB,cAAc,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,uCAAK,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,IAElC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAgB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACtE,OAAO,CACL,8BAAC,qDAAqB,IAAC,GAAG,EAAE,OAAO,CAAC,EAAE,EAAE,SAAS,EAAG,SAAS,EAAG,OAAO,EAAG,OAAO,EAAG,MAAM,EAAE,CAAC,GAAI,CAClG,CAAC;IACJ,CAAC,CAAC,CAEA,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TreeModel, CompositeTreeNode } from '@opensumi/ide-components';
|
|
2
|
+
import { Event } from '@opensumi/ide-core-browser';
|
|
3
|
+
import { ExpressionContainer } from '../../tree/debug-tree-node.define';
|
|
4
|
+
export declare class DebugVariablesModel extends TreeModel {
|
|
5
|
+
static DEFAULT_FLUSH_DELAY: number;
|
|
6
|
+
private flushDispatchChangeDelayer;
|
|
7
|
+
private onWillUpdateEmitter;
|
|
8
|
+
constructor(root: ExpressionContainer);
|
|
9
|
+
get onWillUpdate(): Event<void>;
|
|
10
|
+
init(root: CompositeTreeNode): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=debug-variables-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-variables-model.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/variables/debug-variables-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAiB,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAA6B,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,qBACa,mBAAoB,SAAQ,SAAS;IAEhD,MAAM,CAAC,mBAAmB,SAAO;IAEjC,OAAO,CAAC,0BAA0B,CAAuE;IACzG,OAAO,CAAC,mBAAmB,CAAgC;gBAEnC,IAAI,EAAE,mBAAmB;IAKjD,IAAI,YAAY,IAAI,KAAK,CAAC,IAAI,CAAC,CAE9B;IAED,IAAI,CAAC,IAAI,EAAE,iBAAiB;CAe7B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var DebugVariablesModel_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DebugVariablesModel = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const ide_components_1 = require("@opensumi/ide-components");
|
|
7
|
+
const di_1 = require("@opensumi/di");
|
|
8
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
9
|
+
const debug_tree_node_define_1 = require("../../tree/debug-tree-node.define");
|
|
10
|
+
let DebugVariablesModel = DebugVariablesModel_1 = class DebugVariablesModel extends ide_components_1.TreeModel {
|
|
11
|
+
constructor(root) {
|
|
12
|
+
super();
|
|
13
|
+
this.flushDispatchChangeDelayer = new ide_core_browser_1.ThrottledDelayer(DebugVariablesModel_1.DEFAULT_FLUSH_DELAY);
|
|
14
|
+
this.onWillUpdateEmitter = new ide_core_browser_1.Emitter();
|
|
15
|
+
this.init(root);
|
|
16
|
+
}
|
|
17
|
+
get onWillUpdate() {
|
|
18
|
+
return this.onWillUpdateEmitter.event;
|
|
19
|
+
}
|
|
20
|
+
init(root) {
|
|
21
|
+
this.root = root;
|
|
22
|
+
// 分支更新时通知树刷新, 不是立即更新,而是延迟更新,待树稳定后再更新
|
|
23
|
+
// 100ms的延迟并不能保证树稳定,特别是在node_modules展开的情况下
|
|
24
|
+
// 但在普通使用上已经足够可用,即不会有渲染闪烁问题
|
|
25
|
+
this.root.watcher.on(ide_components_1.TreeNodeEvent.BranchDidUpdate, () => {
|
|
26
|
+
if (!this.flushDispatchChangeDelayer.isTriggered()) {
|
|
27
|
+
this.flushDispatchChangeDelayer.cancel();
|
|
28
|
+
}
|
|
29
|
+
this.flushDispatchChangeDelayer.trigger(async () => {
|
|
30
|
+
await this.onWillUpdateEmitter.fireAndAwait();
|
|
31
|
+
this.dispatchChange();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
DebugVariablesModel.DEFAULT_FLUSH_DELAY = 100;
|
|
37
|
+
DebugVariablesModel = DebugVariablesModel_1 = (0, tslib_1.__decorate)([
|
|
38
|
+
(0, di_1.Injectable)({ multiple: true }),
|
|
39
|
+
(0, tslib_1.__param)(0, (0, di_1.Optional)()),
|
|
40
|
+
(0, tslib_1.__metadata)("design:paramtypes", [debug_tree_node_define_1.ExpressionContainer])
|
|
41
|
+
], DebugVariablesModel);
|
|
42
|
+
exports.DebugVariablesModel = DebugVariablesModel;
|
|
43
|
+
//# sourceMappingURL=debug-variables-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-variables-model.js","sourceRoot":"","sources":["../../../../src/browser/view/variables/debug-variables-model.ts"],"names":[],"mappings":";;;;;AAAA,6DAAuF;AACvF,qCAAoD;AACpD,iEAA8E;AAC9E,8EAAwE;AAGxE,IAAa,mBAAmB,2BAAhC,MAAa,mBAAoB,SAAQ,0BAAS;IAOhD,YAAwB,IAAyB;QAC/C,KAAK,EAAE,CAAC;QAJF,+BAA0B,GAAG,IAAI,mCAAgB,CAAO,qBAAmB,CAAC,mBAAmB,CAAC,CAAC;QACjG,wBAAmB,GAAkB,IAAI,0BAAO,EAAE,CAAC;QAIzD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC;IACxC,CAAC;IAED,IAAI,CAAC,IAAuB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,qCAAqC;QACrC,0CAA0C;QAC1C,2BAA2B;QAC3B,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,8BAAa,CAAC,eAAe,EAAE,GAAG,EAAE;YACvD,IAAI,CAAC,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE,EAAE;gBAClD,IAAI,CAAC,0BAA0B,CAAC,MAAM,EAAE,CAAC;aAC1C;YACD,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE;gBACjD,MAAM,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,CAAC;gBAC9C,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA7BQ,uCAAmB,GAAG,GAAG,CAAC;AAFtB,mBAAmB;IAD/B,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAQhB,wBAAA,IAAA,aAAQ,GAAE,CAAA;kDAAO,4CAAmB;GAPtC,mBAAmB,CA+B/B;AA/BY,kDAAmB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { TreeModel, DecorationsManager, IRecycleTreeHandle, TreeNodeType } from '@opensumi/ide-components';
|
|
2
|
+
import { Deferred, Event } from '@opensumi/ide-core-browser';
|
|
3
|
+
import { DebugVariablesModel } from './debug-variables-model';
|
|
4
|
+
import { ExpressionContainer, ExpressionNode, DebugVariableContainer, DebugVariable, DebugScope } from '../../tree/debug-tree-node.define';
|
|
5
|
+
import { DebugViewModel } from '../debug-view-model';
|
|
6
|
+
import { DebugSession } from '../../debug-session';
|
|
7
|
+
export interface IDebugVariablesHandle extends IRecycleTreeHandle {
|
|
8
|
+
hasDirectFocus: () => boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare type DebugVariableWithRawScope = DebugScope | DebugVariableContainer;
|
|
11
|
+
export declare class DebugVariablesModelService {
|
|
12
|
+
private static DEFAULT_TRIGGER_DELAY;
|
|
13
|
+
private readonly injector;
|
|
14
|
+
private readonly ctxMenuRenderer;
|
|
15
|
+
private readonly contextMenuService;
|
|
16
|
+
protected readonly viewModel: DebugViewModel;
|
|
17
|
+
private readonly clipboardService;
|
|
18
|
+
private readonly debugContextKey;
|
|
19
|
+
private _activeTreeModel;
|
|
20
|
+
private _decorations;
|
|
21
|
+
private _debugVariablesTreeHandle;
|
|
22
|
+
private _currentVariableInternalContext;
|
|
23
|
+
flushEventQueueDeferred: Deferred<void> | null;
|
|
24
|
+
private selectedDecoration;
|
|
25
|
+
private focusedDecoration;
|
|
26
|
+
private contextMenuDecoration;
|
|
27
|
+
private loadingDecoration;
|
|
28
|
+
private _focusedNode;
|
|
29
|
+
private _selectedNodes;
|
|
30
|
+
private _contextMenuNode;
|
|
31
|
+
private onDidRefreshedEmitter;
|
|
32
|
+
private onDidUpdateTreeModelEmitter;
|
|
33
|
+
private flushDispatchChangeDelayer;
|
|
34
|
+
private disposableCollection;
|
|
35
|
+
private keepExpandedScopesModel;
|
|
36
|
+
constructor();
|
|
37
|
+
get flushEventQueuePromise(): Promise<void> | null;
|
|
38
|
+
get treeHandle(): IDebugVariablesHandle;
|
|
39
|
+
get decorations(): DecorationsManager;
|
|
40
|
+
get treeModel(): DebugVariablesModel | undefined;
|
|
41
|
+
get currentVariableInternalContext(): DebugVariableContainer | DebugVariable | undefined;
|
|
42
|
+
get focusedNode(): ExpressionContainer | ExpressionNode | undefined;
|
|
43
|
+
get selectedNodes(): (ExpressionContainer | ExpressionNode)[];
|
|
44
|
+
get contextMenuNode(): ExpressionContainer | ExpressionNode | undefined;
|
|
45
|
+
get onDidUpdateTreeModel(): Event<TreeModel | void>;
|
|
46
|
+
get onDidRefreshed(): Event<void>;
|
|
47
|
+
dispose(): void;
|
|
48
|
+
listenViewModelChange(): void;
|
|
49
|
+
listenTreeViewChange(): void;
|
|
50
|
+
initTreeModel(session?: DebugSession): Promise<DebugVariablesModel | undefined>;
|
|
51
|
+
initDecorations(root: any): void;
|
|
52
|
+
activeNodeDecoration: (target: ExpressionContainer | ExpressionNode, dispatchChange?: boolean) => void;
|
|
53
|
+
activeNodeActivedDecoration: (target: ExpressionContainer | ExpressionNode) => void;
|
|
54
|
+
enactiveNodeDecoration: () => void;
|
|
55
|
+
removeNodeDecoration(): void;
|
|
56
|
+
handleContextMenu: (ev: React.MouseEvent, expression?: DebugScope | DebugVariableContainer | DebugVariable | undefined) => void;
|
|
57
|
+
handleTreeHandler(handle: IDebugVariablesHandle): void;
|
|
58
|
+
handleTreeBlur: () => void;
|
|
59
|
+
handleItemClick: (item: ExpressionContainer | ExpressionNode) => void;
|
|
60
|
+
handleTwistierClick: (item: ExpressionContainer | ExpressionNode, type: TreeNodeType) => void;
|
|
61
|
+
toggleDirectory: (item: DebugVariableWithRawScope) => Promise<void>;
|
|
62
|
+
copyEvaluateName(node: DebugVariableContainer | DebugVariable | undefined): Promise<void>;
|
|
63
|
+
copyValue(node: DebugVariableContainer | DebugVariable | undefined): Promise<void>;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=debug-variables-tree.model.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-variables-tree.model.service.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/variables/debug-variables-tree.model.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAc,kBAAkB,E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