@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,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugToolbarOverlayWidget = exports.DebugToolbarView = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const di_1 = require("@opensumi/di");
|
|
6
|
+
const ide_components_1 = require("@opensumi/ide-components");
|
|
7
|
+
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
|
|
8
|
+
const select_1 = require("@opensumi/ide-core-browser/lib/components/select");
|
|
9
|
+
const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
|
|
10
|
+
const mobx_1 = require("mobx");
|
|
11
|
+
const mobx_react_lite_1 = require("mobx-react-lite");
|
|
12
|
+
const react_1 = (0, tslib_1.__importDefault)(require("react"));
|
|
13
|
+
const components_1 = require("../../components");
|
|
14
|
+
const debugUtils_1 = require("../../debugUtils");
|
|
15
|
+
const debug_configuration_service_1 = require("./debug-configuration.service");
|
|
16
|
+
const debug_toolbar_service_1 = require("./debug-toolbar.service");
|
|
17
|
+
const debug_configuration_module_less_1 = (0, tslib_1.__importDefault)(require("./debug-configuration.module.less"));
|
|
18
|
+
const actions_1 = require("@opensumi/ide-core-browser/lib/components/actions");
|
|
19
|
+
const common_1 = require("../../../common");
|
|
20
|
+
let FloatController = class FloatController {
|
|
21
|
+
constructor() {
|
|
22
|
+
this.x = 0;
|
|
23
|
+
this.line = 0;
|
|
24
|
+
this.enable = false;
|
|
25
|
+
this._origin = 0;
|
|
26
|
+
this._last = 0;
|
|
27
|
+
this._y = 0;
|
|
28
|
+
}
|
|
29
|
+
onMouseDown(e) {
|
|
30
|
+
this.enable = true;
|
|
31
|
+
this._origin = e.clientX;
|
|
32
|
+
this._y = e.clientY;
|
|
33
|
+
}
|
|
34
|
+
onMouseMove(e) {
|
|
35
|
+
e.stopPropagation();
|
|
36
|
+
if (this.enable) {
|
|
37
|
+
this.x = e.clientX - this._origin + this._last;
|
|
38
|
+
this.line = e.clientY - this._y > 10 ? 1 : 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
onMouseUp() {
|
|
42
|
+
this.enable = false;
|
|
43
|
+
this._last = this.x;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
(0, tslib_1.__decorate)([
|
|
47
|
+
mobx_1.observable,
|
|
48
|
+
(0, tslib_1.__metadata)("design:type", Number)
|
|
49
|
+
], FloatController.prototype, "x", void 0);
|
|
50
|
+
(0, tslib_1.__decorate)([
|
|
51
|
+
mobx_1.observable,
|
|
52
|
+
(0, tslib_1.__metadata)("design:type", Number)
|
|
53
|
+
], FloatController.prototype, "line", void 0);
|
|
54
|
+
(0, tslib_1.__decorate)([
|
|
55
|
+
mobx_1.observable,
|
|
56
|
+
(0, tslib_1.__metadata)("design:type", Boolean)
|
|
57
|
+
], FloatController.prototype, "enable", void 0);
|
|
58
|
+
(0, tslib_1.__decorate)([
|
|
59
|
+
mobx_1.action.bound,
|
|
60
|
+
(0, tslib_1.__metadata)("design:type", Function),
|
|
61
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object]),
|
|
62
|
+
(0, tslib_1.__metadata)("design:returntype", void 0)
|
|
63
|
+
], FloatController.prototype, "onMouseDown", null);
|
|
64
|
+
(0, tslib_1.__decorate)([
|
|
65
|
+
mobx_1.action.bound,
|
|
66
|
+
(0, tslib_1.__metadata)("design:type", Function),
|
|
67
|
+
(0, tslib_1.__metadata)("design:paramtypes", [Object]),
|
|
68
|
+
(0, tslib_1.__metadata)("design:returntype", void 0)
|
|
69
|
+
], FloatController.prototype, "onMouseMove", null);
|
|
70
|
+
(0, tslib_1.__decorate)([
|
|
71
|
+
mobx_1.action.bound,
|
|
72
|
+
(0, tslib_1.__metadata)("design:type", Function),
|
|
73
|
+
(0, tslib_1.__metadata)("design:paramtypes", []),
|
|
74
|
+
(0, tslib_1.__metadata)("design:returntype", void 0)
|
|
75
|
+
], FloatController.prototype, "onMouseUp", null);
|
|
76
|
+
FloatController = (0, tslib_1.__decorate)([
|
|
77
|
+
(0, di_1.Injectable)(),
|
|
78
|
+
(0, tslib_1.__metadata)("design:paramtypes", [])
|
|
79
|
+
], FloatController);
|
|
80
|
+
exports.DebugToolbarView = (0, mobx_react_lite_1.observer)((props) => {
|
|
81
|
+
const { state, toolBarMenuMap, doStop, doStepIn, doStepOut, doStepOver, doContinue, doRestart, doPause, currentSession, sessions, updateCurrentSession, } = (0, ide_core_browser_1.useInjectable)(debug_toolbar_service_1.DebugToolbarService);
|
|
82
|
+
const isAttach = !!currentSession && currentSession.configuration.request === 'attach' && !(0, debugUtils_1.isExtensionHostDebugging)(currentSession.configuration);
|
|
83
|
+
const currentSessionId = currentSession && currentSession.id;
|
|
84
|
+
const renderToolBar = (session) => {
|
|
85
|
+
if (session && session.id && toolBarMenuMap.has(session.id)) {
|
|
86
|
+
return react_1.default.createElement(actions_1.InlineMenuBar, { menus: toolBarMenuMap.get(session.id) });
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
};
|
|
90
|
+
const renderStop = (state) => {
|
|
91
|
+
if (isAttach) {
|
|
92
|
+
return react_1.default.createElement(components_1.DebugAction, { run: doStop, enabled: typeof state === 'number' && state !== common_1.DebugState.Inactive, icon: 'disconnect', label: (0, ide_core_browser_1.localize)('debug.action.disattach') });
|
|
93
|
+
}
|
|
94
|
+
return react_1.default.createElement(components_1.DebugAction, { run: doStop, enabled: typeof state === 'number' && state !== common_1.DebugState.Inactive, icon: 'stop', label: (0, ide_core_browser_1.localize)('debug.action.stop') });
|
|
95
|
+
};
|
|
96
|
+
const renderContinue = (state) => {
|
|
97
|
+
if (state === common_1.DebugState.Stopped) {
|
|
98
|
+
return react_1.default.createElement(components_1.DebugAction, { run: doContinue, icon: 'continue', label: (0, ide_core_browser_1.localize)('debug.action.continue') });
|
|
99
|
+
}
|
|
100
|
+
return react_1.default.createElement(components_1.DebugAction, { run: doPause, enabled: typeof state === 'number' && state === common_1.DebugState.Running, icon: 'pause', label: (0, ide_core_browser_1.localize)('debug.action.pause') });
|
|
101
|
+
};
|
|
102
|
+
const renderSessionOptions = (sessions) => {
|
|
103
|
+
return sessions.map((session) => {
|
|
104
|
+
if ((0, ide_core_browser_1.isElectronRenderer)()) {
|
|
105
|
+
return react_1.default.createElement("option", { key: session.id, value: session.id }, session.label);
|
|
106
|
+
}
|
|
107
|
+
return react_1.default.createElement(ide_components_1.Option, { key: session.id, label: session.label, value: session.id }, session.label);
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
const renderSelections = (sessions) => {
|
|
111
|
+
if (sessions.length > 1) {
|
|
112
|
+
return react_1.default.createElement("div", { className: (0, classnames_1.default)(debug_configuration_module_less_1.default.debug_selection) }, (0, ide_core_browser_1.isElectronRenderer)() ?
|
|
113
|
+
react_1.default.createElement(select_1.Select, { value: currentSessionId, onChange: setCurrentSession }, renderSessionOptions(sessions)) :
|
|
114
|
+
react_1.default.createElement(ide_components_1.Select, { className: (0, classnames_1.default)(debug_configuration_module_less_1.default.debug_selection, debug_configuration_module_less_1.default.special_radius), size: props.float ? 'small' : 'default', value: currentSessionId, onChange: setCurrentSession }, renderSessionOptions(sessions)));
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const setCurrentSession = (event) => {
|
|
118
|
+
let value = event;
|
|
119
|
+
if ((0, ide_core_browser_1.isElectronRenderer)()) {
|
|
120
|
+
value = event.target.value;
|
|
121
|
+
}
|
|
122
|
+
if (!sessions) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
for (const session of sessions) {
|
|
126
|
+
if (session.id === value) {
|
|
127
|
+
updateCurrentSession(session);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
132
|
+
react_1.default.createElement("div", { className: debug_configuration_module_less_1.default.kt_debug_action_bar },
|
|
133
|
+
renderSelections(sessions.filter((s) => !s.parentSession)),
|
|
134
|
+
react_1.default.createElement("div", { className: debug_configuration_module_less_1.default.kt_debug_actions },
|
|
135
|
+
renderContinue(state),
|
|
136
|
+
react_1.default.createElement(components_1.DebugAction, { run: doStepOver, enabled: typeof state === 'number' && state === common_1.DebugState.Stopped, icon: 'step', label: (0, ide_core_browser_1.localize)('debug.action.step-over') }),
|
|
137
|
+
react_1.default.createElement(components_1.DebugAction, { run: doStepIn, enabled: typeof state === 'number' && state === common_1.DebugState.Stopped, icon: 'step-in', label: (0, ide_core_browser_1.localize)('debug.action.step-into') }),
|
|
138
|
+
react_1.default.createElement(components_1.DebugAction, { run: doStepOut, enabled: typeof state === 'number' && state === common_1.DebugState.Stopped, icon: 'step-out', label: (0, ide_core_browser_1.localize)('debug.action.step-out') }),
|
|
139
|
+
react_1.default.createElement(components_1.DebugAction, { run: doRestart, enabled: typeof state === 'number' && state !== common_1.DebugState.Inactive, icon: 'reload', label: (0, ide_core_browser_1.localize)('debug.action.restart') }),
|
|
140
|
+
renderStop(state),
|
|
141
|
+
renderToolBar(currentSession)))));
|
|
142
|
+
});
|
|
143
|
+
const DebugPreferenceTopKey = 'debug.toolbar.top';
|
|
144
|
+
const DebugPreferenceHeightKey = 'debug.toolbar.height';
|
|
145
|
+
const FloatDebugToolbarView = (0, mobx_react_lite_1.observer)(() => {
|
|
146
|
+
const controller = (0, ide_core_browser_1.useInjectable)(FloatController);
|
|
147
|
+
const preference = (0, ide_core_browser_1.useInjectable)(ide_core_browser_1.PreferenceService);
|
|
148
|
+
const { state } = (0, ide_core_browser_1.useInjectable)(debug_toolbar_service_1.DebugToolbarService);
|
|
149
|
+
const customTop = preference.get(DebugPreferenceTopKey) || 0;
|
|
150
|
+
const customHeight = preference.get(DebugPreferenceHeightKey) || 0;
|
|
151
|
+
if (state) {
|
|
152
|
+
return (react_1.default.createElement("div", { style: { pointerEvents: controller.enable ? 'all' : 'none' }, className: debug_configuration_module_less_1.default.debug_toolbar_container, onMouseMove: (e) => controller.onMouseMove(e), onMouseUp: (e) => controller.onMouseUp() },
|
|
153
|
+
react_1.default.createElement("div", { style: {
|
|
154
|
+
transform: `translateX(${controller.x}px) translateY(${customTop + controller.line * customHeight}px)`,
|
|
155
|
+
height: `${customHeight}px`,
|
|
156
|
+
}, className: debug_configuration_module_less_1.default.debug_toolbar_wrapper },
|
|
157
|
+
react_1.default.createElement("div", { className: (0, classnames_1.default)(debug_configuration_module_less_1.default.debug_toolbar_drag_wrapper) },
|
|
158
|
+
react_1.default.createElement("div", { className: (0, classnames_1.default)((0, ide_core_browser_1.getIcon)('drag'), debug_configuration_module_less_1.default.debug_toolbar_drag), onMouseDown: (e) => controller.onMouseDown(e), onMouseMove: (e) => controller.onMouseMove(e) })),
|
|
159
|
+
react_1.default.createElement(exports.DebugToolbarView, { float: true }))));
|
|
160
|
+
}
|
|
161
|
+
controller.enable = false;
|
|
162
|
+
return null;
|
|
163
|
+
});
|
|
164
|
+
exports.DebugToolbarOverlayWidget = (0, mobx_react_lite_1.observer)(() => {
|
|
165
|
+
const { float } = (0, ide_core_browser_1.useInjectable)(debug_configuration_service_1.DebugConfigurationService);
|
|
166
|
+
if (!float) {
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
return react_1.default.createElement(FloatDebugToolbarView, null);
|
|
170
|
+
});
|
|
171
|
+
//# sourceMappingURL=debug-toolbar.view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-toolbar.view.js","sourceRoot":"","sources":["../../../../src/browser/view/configuration/debug-toolbar.view.tsx"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAC1C,6DAA0D;AAC1D,iEAAqH;AACrH,6EAA0F;AAC1F,yEAA6B;AAC7B,+BAA0C;AAC1C,qDAA2C;AAC3C,+DAA0B;AAE1B,iDAA+C;AAE/C,iDAA4D;AAC5D,+EAA0E;AAC1E,mEAA8D;AAC9D,qHAAuD;AACvD,+EAAkF;AAClF,4CAA6C;AAG7C,IAAM,eAAe,GAArB,MAAM,eAAe;IAenB;QACE,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;IACd,CAAC;IAGD,WAAW,CAAC,CAA+C;QACzD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC;QACzB,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC;IACtB,CAAC;IAGD,WAAW,CAAC,CAA+C;QACzD,CAAC,CAAC,eAAe,EAAE,CAAC;QACpB,IAAI,IAAI,CAAC,MAAM,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S,EAAE,cAAc,UAAU,CAAC,CAAC,kBAAkB,SAAS,GAAG,UAAU,CAAC,IAAI,GAAG,YAAY,KAAK;oBACtG,MAAM,EAAE,GAAG,YAAY,IAAI;iBAC5B,EACD,SAAS,EAAE,yCAAM,CAAC,qBAAqB;gBAEvC,uCAAK,SAAS,EAAE,IAAA,oBAAG,EAAC,yCAAM,CAAC,0BAA0B,CAAC;oBACpD,uCACE,SAAS,EAAE,IAAA,oBAAG,EAAC,IAAA,0BAAO,EAAC,MAAM,CAAC,EAAE,yCAAM,CAAC,kBAAkB,CAAC,EAC1D,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,EAC7C,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,GACxC,CACH;gBACN,8BAAC,wBAAgB,IAAC,KAAK,SAAG,CACtB,CACF,CACP,CAAC;KACH;IAED,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC;IAC1B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC,CAAC;AAEU,QAAA,yBAAyB,GAAG,IAAA,0BAAQ,EAAC,GAAG,EAAE;IACrD,MAAM,EAAE,KAAK,EAAE,GAAG,IAAA,gCAAa,EAA4B,uDAAyB,CAAC,CAAC;IACtF,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,OAAO,8BAAC,qBAAqB,OAAG,CAAC;AACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { matchesFuzzy } from '@opensumi/ide-core-common/lib/filters';
|
|
2
|
+
export declare class DebugConsoleFilterModel {
|
|
3
|
+
static matchQuery: typeof matchesFuzzy;
|
|
4
|
+
private _parsedQueries;
|
|
5
|
+
set filterQuery(query: string);
|
|
6
|
+
filter(text: string): boolean;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=debug-console-filter.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-filter.model.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-filter.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AASrE,qBACa,uBAAuB;IAClC,MAAM,CAAC,UAAU,sBAAgB;IAEjC,OAAO,CAAC,cAAc,CAAqB;IAC3C,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAgB5B;IAED,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAoB9B"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var DebugConsoleFilterModel_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DebugConsoleFilterModel = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const filters_1 = require("@opensumi/ide-core-common/lib/filters");
|
|
7
|
+
const di_1 = require("@opensumi/di");
|
|
8
|
+
const glob_1 = require("@opensumi/ide-core-common/lib/utils/glob");
|
|
9
|
+
let DebugConsoleFilterModel = DebugConsoleFilterModel_1 = class DebugConsoleFilterModel {
|
|
10
|
+
constructor() {
|
|
11
|
+
this._parsedQueries = [];
|
|
12
|
+
}
|
|
13
|
+
set filterQuery(query) {
|
|
14
|
+
this._parsedQueries = [];
|
|
15
|
+
query = query.trim();
|
|
16
|
+
if (query && query !== '') {
|
|
17
|
+
const filters = (0, glob_1.splitGlobAware)(query, ',')
|
|
18
|
+
.map((s) => s.trim())
|
|
19
|
+
.filter((s) => !!s.length);
|
|
20
|
+
for (const f of filters) {
|
|
21
|
+
if (f.startsWith('!')) {
|
|
22
|
+
this._parsedQueries.push({ type: 'exclude', query: f.slice(1) });
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this._parsedQueries.push({ type: 'include', query: f });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
filter(text) {
|
|
31
|
+
let includeQueryPresent = false;
|
|
32
|
+
let includeQueryMatched = false;
|
|
33
|
+
for (const { type, query } of this._parsedQueries) {
|
|
34
|
+
if (type === 'exclude' &&
|
|
35
|
+
DebugConsoleFilterModel_1.matchQuery(query, text)) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
else if (type === 'include') {
|
|
39
|
+
includeQueryPresent = true;
|
|
40
|
+
if (DebugConsoleFilterModel_1.matchQuery(query, text)) {
|
|
41
|
+
includeQueryMatched = true;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return includeQueryPresent && includeQueryMatched;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
DebugConsoleFilterModel.matchQuery = filters_1.matchesFuzzy;
|
|
49
|
+
DebugConsoleFilterModel = DebugConsoleFilterModel_1 = (0, tslib_1.__decorate)([
|
|
50
|
+
(0, di_1.Injectable)({ multiple: true })
|
|
51
|
+
], DebugConsoleFilterModel);
|
|
52
|
+
exports.DebugConsoleFilterModel = DebugConsoleFilterModel;
|
|
53
|
+
//# sourceMappingURL=debug-console-filter.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-filter.model.js","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-filter.model.ts"],"names":[],"mappings":";;;;;AAAA,mEAAqE;AACrE,qCAA0C;AAC1C,mEAA0E;AAQ1E,IAAa,uBAAuB,+BAApC,MAAa,uBAAuB;IAApC;QAGU,mBAAc,GAAkB,EAAE,CAAC;IAuC7C,CAAC;IAtCC,IAAI,WAAW,CAAC,KAAa;QAC3B,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;QACzB,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;QAErB,IAAI,KAAK,IAAI,KAAK,KAAK,EAAE,EAAE;YACzB,MAAM,OAAO,GAAG,IAAA,qBAAc,EAAC,K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E,IAAI,EAAE,CAAC;GAClB,uBAAuB,CA0CnC;AA1CY,0DAAuB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Event } from '@opensumi/ide-core-browser';
|
|
2
|
+
export interface IDebugConsoleFilter {
|
|
3
|
+
filter: (t: string) => boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface IFilterMatches {
|
|
6
|
+
startIndex: number;
|
|
7
|
+
count: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class DebugConsoleFilterService implements IDebugConsoleFilter {
|
|
10
|
+
private readonly filterModel;
|
|
11
|
+
constructor();
|
|
12
|
+
private readonly _onDidValueChange;
|
|
13
|
+
get onDidValueChange(): Event<string>;
|
|
14
|
+
private readonly _onDidFocus;
|
|
15
|
+
get onDidFocus(): Event<void>;
|
|
16
|
+
private _filterText;
|
|
17
|
+
focusInput(): void;
|
|
18
|
+
get filterText(): string;
|
|
19
|
+
setFilterText(v: string): this;
|
|
20
|
+
filter(text: string): boolean;
|
|
21
|
+
findMatches(text: string): IFilterMatches[];
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=debug-console-filter.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-filter.service.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-filter.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAM5D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,yBAA0B,YAAW,mBAAmB;IACnE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA0B;;IAMtD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA0C;IAC5E,IAAI,gBAAgB,IAAI,KAAK,CAAC,MAAM,CAAC,CAEpC;IAED,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsC;IAClE,IAAI,UAAU,IAAI,KAAK,CAAC,IAAI,CAAC,CAE5B;IAED,OAAO,CAAC,WAAW,CAAc;IAE1B,UAAU,IAAI,IAAI;IAIzB,IAAW,UAAU,IAAI,MAAM,CAE9B;IAEM,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;IAS9B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAK7B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,EAAE;CAqBnD"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugConsoleFilterService = 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_console_filter_model_1 = require("./debug-console-filter.model");
|
|
8
|
+
const strings = (0, tslib_1.__importStar)(require("@opensumi/ide-core-common"));
|
|
9
|
+
const debugUtils_1 = require("../../debugUtils");
|
|
10
|
+
const Ansi = require('anser');
|
|
11
|
+
let DebugConsoleFilterService = class DebugConsoleFilterService {
|
|
12
|
+
constructor() {
|
|
13
|
+
this._onDidValueChange = new ide_core_browser_1.Emitter();
|
|
14
|
+
this._onDidFocus = new ide_core_browser_1.Emitter();
|
|
15
|
+
this._filterText = '';
|
|
16
|
+
this.filterModel = new debug_console_filter_model_1.DebugConsoleFilterModel();
|
|
17
|
+
}
|
|
18
|
+
get onDidValueChange() {
|
|
19
|
+
return this._onDidValueChange.event;
|
|
20
|
+
}
|
|
21
|
+
get onDidFocus() {
|
|
22
|
+
return this._onDidFocus.event;
|
|
23
|
+
}
|
|
24
|
+
focusInput() {
|
|
25
|
+
this._onDidFocus.fire();
|
|
26
|
+
}
|
|
27
|
+
get filterText() {
|
|
28
|
+
return this._filterText;
|
|
29
|
+
}
|
|
30
|
+
setFilterText(v) {
|
|
31
|
+
if (this._filterText !== v) {
|
|
32
|
+
this._filterText = v;
|
|
33
|
+
this.filterModel.filterQuery = this._filterText;
|
|
34
|
+
this._onDidValueChange.fire(this._filterText);
|
|
35
|
+
}
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
filter(text) {
|
|
39
|
+
const ansiToText = Ansi.ansiToText(text);
|
|
40
|
+
return this._filterText === '' || this.filterModel.filter(ansiToText);
|
|
41
|
+
}
|
|
42
|
+
findMatches(text) {
|
|
43
|
+
const regexp = new RegExp(strings.convertSimple2RegExpPattern(this._filterText.toLowerCase()), 'g');
|
|
44
|
+
if (this._filterText.trim() === '') {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
const matchs = (0, debugUtils_1.matchAll)(text.toLowerCase(), regexp);
|
|
48
|
+
const textLen = this._filterText.length;
|
|
49
|
+
if (textLen === 0) {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
const res = matchs.map((m) => {
|
|
53
|
+
return {
|
|
54
|
+
startIndex: m.index !== undefined ? m.index : -1,
|
|
55
|
+
count: textLen,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
return res.filter((r) => r.startIndex >= 0);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
DebugConsoleFilterService = (0, tslib_1.__decorate)([
|
|
62
|
+
(0, di_1.Injectable)(),
|
|
63
|
+
(0, tslib_1.__metadata)("design:paramtypes", [])
|
|
64
|
+
], DebugConsoleFilterService);
|
|
65
|
+
exports.DebugConsoleFilterService = DebugConsoleFilterService;
|
|
66
|
+
//# sourceMappingURL=debug-console-filter.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-filter.service.js","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-filter.service.ts"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAC1C,iEAA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C,2BAA2B,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;QACpG,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAClC,OAAO,EAAE,CAAC;SACX;QAED,MAAM,MAAM,GAAG,IAAA,qBAAQ,EAAC,IAAI,CAAC,WAAW,EAAE,EAAE,MAAM,CAAC,CAAC;QACpD,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;QACxC,IAAI,OAAO,KAAK,CAAC,EAAE;YACjB,OAAO,EAAE,CAAC;SACX;QAED,MAAM,GAAG,GAAqB,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YAC7C,OAAO;gBACL,UAAU,EAAE,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;gBAChD,KAAK,EAAE,OAAO;aACf,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AA9DY,yBAAyB;IADrC,IAAA,eAAU,GAAE;;GACA,yBAAyB,CA8DrC;AA9DY,8DAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-filter.view.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-filter.view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B;;GAEG;AACH,eAAO,MAAM,sBAAsB,iCAsDjC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugConsoleFilterView = 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_console_module_less_1 = (0, tslib_1.__importDefault)(require("./debug-console.module.less"));
|
|
9
|
+
const debounce = require("lodash.debounce");
|
|
10
|
+
const ide_core_browser_2 = require("@opensumi/ide-core-browser");
|
|
11
|
+
const debug_console_filter_service_1 = require("./debug-console-filter.service");
|
|
12
|
+
const HistoryInputBox_1 = require("@opensumi/ide-components/lib/input/HistoryInputBox");
|
|
13
|
+
const ide_core_browser_3 = require("@opensumi/ide-core-browser");
|
|
14
|
+
/**
|
|
15
|
+
* 调试控制台筛选器
|
|
16
|
+
*/
|
|
17
|
+
exports.DebugConsoleFilterView = (0, mobx_react_lite_1.observer)(() => {
|
|
18
|
+
const debugConsoleFilterService = (0, ide_core_browser_2.useInjectable)(debug_console_filter_service_1.DebugConsoleFilterService);
|
|
19
|
+
const [filterValue, setFilterValue] = react_1.default.useState('');
|
|
20
|
+
const [historyApi, setHistoryApi] = react_1.default.useState();
|
|
21
|
+
const onDebounceValueChange = debounce((value) => {
|
|
22
|
+
setFilterValue(value);
|
|
23
|
+
debugConsoleFilterService.setFilterText(value);
|
|
24
|
+
if (historyApi) {
|
|
25
|
+
historyApi.addToHistory(value);
|
|
26
|
+
}
|
|
27
|
+
}, 400);
|
|
28
|
+
react_1.default.useEffect(() => {
|
|
29
|
+
const filterDispose = debugConsoleFilterService.onDidValueChange((value) => {
|
|
30
|
+
setFilterValue(value);
|
|
31
|
+
});
|
|
32
|
+
return () => {
|
|
33
|
+
filterDispose.dispose();
|
|
34
|
+
};
|
|
35
|
+
}, []);
|
|
36
|
+
const onReady = (api) => {
|
|
37
|
+
setHistoryApi(api);
|
|
38
|
+
};
|
|
39
|
+
const onKeyDown = (e) => {
|
|
40
|
+
if (!historyApi) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (e.keyCode === ide_core_browser_3.Key.ARROW_UP.keyCode) {
|
|
44
|
+
historyApi.showPreviousValue();
|
|
45
|
+
}
|
|
46
|
+
else if (e.keyCode === ide_core_browser_3.Key.ARROW_DOWN.keyCode) {
|
|
47
|
+
historyApi.showNextValue();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
react_1.default.useEffect(() => {
|
|
51
|
+
const focusDispose = debugConsoleFilterService.onDidFocus(() => {
|
|
52
|
+
if (historyApi) {
|
|
53
|
+
historyApi.focus();
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return () => {
|
|
57
|
+
focusDispose.dispose();
|
|
58
|
+
};
|
|
59
|
+
}, [historyApi]);
|
|
60
|
+
return (react_1.default.createElement("div", { className: debug_console_module_less_1.default.debug_console_filter },
|
|
61
|
+
react_1.default.createElement(HistoryInputBox_1.HistoryInputBox, { hasClear: true, className: debug_console_module_less_1.default.filter_input, value: filterValue, placeholder: (0, ide_core_browser_1.localize)('debug.console.filter.placeholder'), onValueChange: onDebounceValueChange, onReady: onReady, onKeyDown: onKeyDown })));
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=debug-console-filter.view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-filter.view.js","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-filter.view.tsx"],"names":[],"mappings":";;;;AAAA,+DAA0B;AAC1B,qDAA2C;AAC3C,iEAAsD;AACtD,yGAAiD;AACjD,4CAA6C;AAC7C,iEAA2D;AAC3D,iFAA2E;AAC3E,wFAA8G;AAC9G,iEAAiD;AAEjD;;GAEG;AACU,QAAA,sBAAsB,GAAG,IAAA,0BAAQ,EAAC,GAAG,EAAE;IAClD,MAAM,yBAAyB,GAAG,IAAA,gCAAa,EAA4B,wDAAyB,CAAC,CAAC;IACtG,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,eAAK,CAAC,QAAQ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,UAAU,EAAE;gBACd,UAAU,CAAC,KAAK,EAAE,CAAC;aACpB;QACH,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,CACL,uCAAK,SAAS,EAAE,mCAAM,CAAC,oBAAoB;QACzC,8BAAC,iCAAe,IAAC,QAAQ,QAAC,SAAS,EAAE,mCAAM,CAAC,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,IAAA,2BAAQ,EAAC,kCAAkC,CAAC,EAAE,aAAa,EAAE,qBAAqB,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAoB,CACrO,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 DebugConsoleTreeModel extends TreeModel {
|
|
5
|
+
static DEFAULT_FLUSH_DELAY: number;
|
|
6
|
+
private flushDispatchChangeDelayer;
|
|
7
|
+
private onWillUpdateEmitter;
|
|
8
|
+
private _tempScrollOffset;
|
|
9
|
+
constructor(root: ExpressionContainer);
|
|
10
|
+
get onWillUpdate(): Event<void>;
|
|
11
|
+
/**
|
|
12
|
+
* 判断是否滚动到了底部
|
|
13
|
+
* TODO: //临时处理 by @倾一
|
|
14
|
+
*/
|
|
15
|
+
get isScrollBottom(): boolean;
|
|
16
|
+
init(root: CompositeTreeNode): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=debug-console-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-model.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-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,qBAAsB,SAAQ,SAAS;IAElD,MAAM,CAAC,mBAAmB,SAAO;IAEjC,OAAO,CAAC,0BAA0B,CAAyE;IAC3G,OAAO,CAAC,mBAAmB,CAAgC;IAC3D,OAAO,CAAC,iBAAiB,CAAa;gBAEd,IAAI,EAAE,mBAAmB;IAKjD,IAAI,YAAY,IAAI,KAAK,CAAC,IAAI,CAAC,CAE9B;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,OAAO,CAG5B;IAED,IAAI,CAAC,IAAI,EAAE,iBAAiB;CAe7B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var DebugConsoleTreeModel_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DebugConsoleTreeModel = 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 DebugConsoleTreeModel = DebugConsoleTreeModel_1 = class DebugConsoleTreeModel extends ide_components_1.TreeModel {
|
|
11
|
+
constructor(root) {
|
|
12
|
+
super();
|
|
13
|
+
this.flushDispatchChangeDelayer = new ide_core_browser_1.ThrottledDelayer(DebugConsoleTreeModel_1.DEFAULT_FLUSH_DELAY);
|
|
14
|
+
this.onWillUpdateEmitter = new ide_core_browser_1.Emitter();
|
|
15
|
+
this._tempScrollOffset = 0;
|
|
16
|
+
this.init(root);
|
|
17
|
+
}
|
|
18
|
+
get onWillUpdate() {
|
|
19
|
+
return this.onWillUpdateEmitter.event;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 判断是否滚动到了底部
|
|
23
|
+
* TODO: //临时处理 by @倾一
|
|
24
|
+
*/
|
|
25
|
+
get isScrollBottom() {
|
|
26
|
+
this._tempScrollOffset = Math.max(this.state.scrollOffset, this._tempScrollOffset);
|
|
27
|
+
return this._tempScrollOffset === this.state.scrollOffset;
|
|
28
|
+
}
|
|
29
|
+
init(root) {
|
|
30
|
+
this.root = root;
|
|
31
|
+
// 分支更新时通知树刷新, 不是立即更新,而是延迟更新,待树稳定后再更新
|
|
32
|
+
// 100ms的延迟并不能保证树稳定,特别是在node_modules展开的情况下
|
|
33
|
+
// 但在普通使用上已经足够可用,即不会有渲染闪烁问题
|
|
34
|
+
this.root.watcher.on(ide_components_1.TreeNodeEvent.BranchDidUpdate, () => {
|
|
35
|
+
if (!this.flushDispatchChangeDelayer.isTriggered()) {
|
|
36
|
+
this.flushDispatchChangeDelayer.cancel();
|
|
37
|
+
}
|
|
38
|
+
this.flushDispatchChangeDelayer.trigger(async () => {
|
|
39
|
+
await this.onWillUpdateEmitter.fireAndAwait();
|
|
40
|
+
this.dispatchChange();
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
DebugConsoleTreeModel.DEFAULT_FLUSH_DELAY = 100;
|
|
46
|
+
DebugConsoleTreeModel = DebugConsoleTreeModel_1 = (0, tslib_1.__decorate)([
|
|
47
|
+
(0, di_1.Injectable)({ multiple: true }),
|
|
48
|
+
(0, tslib_1.__param)(0, (0, di_1.Optional)()),
|
|
49
|
+
(0, tslib_1.__metadata)("design:paramtypes", [debug_tree_node_define_1.ExpressionContainer])
|
|
50
|
+
], DebugConsoleTreeModel);
|
|
51
|
+
exports.DebugConsoleTreeModel = DebugConsoleTreeModel;
|
|
52
|
+
//# sourceMappingURL=debug-console-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-model.js","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-model.ts"],"names":[],"mappings":";;;;;AAAA,6DAAuF;AACvF,qCAAoD;AACpD,iEAA8E;AAC9E,8EAAwE;AAGxE,IAAa,qBAAqB,6BAAlC,MAAa,qBAAsB,SAAQ,0BAAS;IAQlD,YAAwB,IAAyB;QAC/C,KAAK,EAAE,CAAC;QALF,+BAA0B,GAAG,IAAI,mCAAgB,CAAO,uBAAqB,CAAC,mBAAmB,CAAC,CAAC;QACnG,wBAAmB,GAAkB,IAAI,0BAAO,EAAE,CAAC;QACnD,sBAAiB,GAAW,CAAC,CAAC;QAIpC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED,IAAI,YAAY;QACd,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC;IACxC,CAAC;IAED;;;OAGG;IACH,IAAI,cAAc;QAChB,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACnF,OAAO,IAAI,CAAC,iBAAiB,KAAK,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;IAC5D,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;AAvCQ,yCAAmB,GAAG,GAAG,CAAC;AAFtB,qBAAqB;IADjC,IAAA,eAAU,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAShB,wBAAA,IAAA,aAAQ,GAAE,CAAA;kDAAO,4CAAmB;GARtC,qBAAqB,CAyCjC;AAzCY,sDAAqB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DebugProtocol } from '@opensumi/vscode-debugprotocol/lib/debugProtocol';
|
|
2
|
+
import { DisposableCollection, Event } from '@opensumi/ide-core-common';
|
|
3
|
+
import { AnsiConsoleNode, DebugConsoleNode, DebugVariableContainer } from '../../tree';
|
|
4
|
+
import { DebugSession } from '../../debug-session';
|
|
5
|
+
import { DebugConsoleTreeModel } from './debug-console-model';
|
|
6
|
+
declare type ConsoleNodes = DebugConsoleNode | AnsiConsoleNode | DebugVariableContainer;
|
|
7
|
+
export declare class DebugConsoleSession {
|
|
8
|
+
private session;
|
|
9
|
+
private treeModel;
|
|
10
|
+
private logger;
|
|
11
|
+
private linkDetector;
|
|
12
|
+
protected uncompletedItemContent: string | undefined;
|
|
13
|
+
protected readonly toDispose: DisposableCollection;
|
|
14
|
+
protected fireDidChange: any;
|
|
15
|
+
private onDidChangeEmitter;
|
|
16
|
+
constructor(session: DebugSession, treeModel: DebugConsoleTreeModel);
|
|
17
|
+
/**
|
|
18
|
+
* 这里需要将 tree 的 children 做扁平处理
|
|
19
|
+
* 因为当用户在控制台输入表达式求值时,得到的结果如果是对象,也需要把这个对象的 children 给扔到 DebugConsoleRoot.updatePresetChildren 方法里去
|
|
20
|
+
* 否则会出现,对象展开的状态下,有新的日志内容发送过来时,对象的所有子属性都消失的情况,
|
|
21
|
+
*/
|
|
22
|
+
resolveChildren(): ConsoleNodes[];
|
|
23
|
+
init(): Promise<void>;
|
|
24
|
+
get onDidChange(): Event<void>;
|
|
25
|
+
clear(): void;
|
|
26
|
+
protected logOutput(session: DebugSession, event: DebugProtocol.OutputEvent): Promise<void>;
|
|
27
|
+
execute(value: string): Promise<void>;
|
|
28
|
+
append(value: string): void;
|
|
29
|
+
appendLine(value: string): void;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=debug-console-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-console-session.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-session.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAW,KAAK,EAAwB,MAAM,2BAA2B,CAAC;AACvG,OAAO,EAAuB,eAAe,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAC5G,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAG9D,aAAK,YAAY,GAAG,gBAAgB,GAAG,eAAe,GAAG,sBAAsB,CAAC;AAEhF,qBACa,mBAAmB;IAiBN,OAAO,CAAC,OAAO;IAA4B,OAAO,CAAC,SAAS;IAdpF,OAAO,CAAC,MAAM,CAAU;IAGxB,OAAO,CAAC,YAAY,CAAe;IAGnC,SAAS,CAAC,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;IAErD,SAAS,CAAC,QAAQ,CAAC,SAAS,uBAA8B;IAE1D,SAAS,CAAC,aAAa,EAAE,GAAG,CAAsD;IAElF,OAAO,CAAC,kBAAkB,CAAgC;gBAE1B,OAAO,EAAE,YAAY,EAAsB,SAAS,EAAE,qBAAqB;IAI3G;;;;OAIG;IACH,eAAe;IAKT,IAAI;IAIV,IAAI,WAAW,IAAI,KAAK,CAAC,IAAI,CAA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