@theia/debug 1.67.0-next.56 → 1.67.0-next.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/breakpoint/breakpoint-manager.d.ts +91 -0
- package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +1 -0
- package/lib/browser/breakpoint/breakpoint-manager.js +367 -0
- package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -0
- package/lib/browser/breakpoint/breakpoint-marker.d.ts +65 -0
- package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +1 -0
- package/lib/browser/breakpoint/breakpoint-marker.js +102 -0
- package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.d.ts +17 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.d.ts.map +1 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.js +166 -0
- package/lib/browser/breakpoint/debug-data-breakpoint-actions.js.map +1 -0
- package/lib/browser/console/debug-console-contribution.d.ts +45 -0
- package/lib/browser/console/debug-console-contribution.d.ts.map +1 -0
- package/lib/browser/console/debug-console-contribution.js +233 -0
- package/lib/browser/console/debug-console-contribution.js.map +1 -0
- package/lib/browser/console/debug-console-items.d.ts +98 -0
- package/lib/browser/console/debug-console-items.d.ts.map +1 -0
- package/lib/browser/console/debug-console-items.js +346 -0
- package/lib/browser/console/debug-console-items.js.map +1 -0
- package/lib/browser/console/debug-console-session.d.ts +32 -0
- package/lib/browser/console/debug-console-session.d.ts.map +1 -0
- package/lib/browser/console/debug-console-session.js +192 -0
- package/lib/browser/console/debug-console-session.js.map +1 -0
- package/lib/browser/debug-call-stack-item-type-key.d.ts +4 -0
- package/lib/browser/debug-call-stack-item-type-key.d.ts.map +1 -0
- package/lib/browser/debug-call-stack-item-type-key.js +20 -0
- package/lib/browser/debug-call-stack-item-type-key.js.map +1 -0
- package/lib/browser/debug-configuration-manager.d.ts +103 -0
- package/lib/browser/debug-configuration-manager.d.ts.map +1 -0
- package/lib/browser/debug-configuration-manager.js +545 -0
- package/lib/browser/debug-configuration-manager.js.map +1 -0
- package/lib/browser/debug-configuration-model.d.ts +30 -0
- package/lib/browser/debug-configuration-model.d.ts.map +1 -0
- package/lib/browser/debug-configuration-model.js +80 -0
- package/lib/browser/debug-configuration-model.js.map +1 -0
- package/lib/browser/debug-contribution.d.ts +23 -0
- package/lib/browser/debug-contribution.d.ts.map +1 -0
- package/lib/browser/debug-contribution.js +20 -0
- package/lib/browser/debug-contribution.js.map +1 -0
- package/lib/browser/debug-frontend-application-contribution.d.ts +252 -0
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -0
- package/lib/browser/debug-frontend-application-contribution.js +1696 -0
- package/lib/browser/debug-frontend-application-contribution.js.map +1 -0
- package/lib/browser/debug-frontend-module.d.ts +5 -0
- package/lib/browser/debug-frontend-module.d.ts.map +1 -0
- package/lib/browser/debug-frontend-module.js +112 -0
- package/lib/browser/debug-frontend-module.js.map +1 -0
- package/lib/browser/debug-package.spec.d.ts +1 -0
- package/lib/browser/debug-package.spec.d.ts.map +1 -0
- package/lib/browser/debug-package.spec.js +19 -0
- package/lib/browser/debug-package.spec.js.map +1 -0
- package/lib/browser/debug-prefix-configuration.d.ts +52 -0
- package/lib/browser/debug-prefix-configuration.d.ts.map +1 -0
- package/lib/browser/debug-prefix-configuration.js +202 -0
- package/lib/browser/debug-prefix-configuration.js.map +1 -0
- package/lib/browser/debug-resource.d.ts +15 -0
- package/lib/browser/debug-resource.d.ts.map +1 -0
- package/lib/browser/debug-resource.js +58 -0
- package/lib/browser/debug-resource.js.map +1 -0
- package/lib/browser/debug-schema-updater.d.ts +14 -0
- package/lib/browser/debug-schema-updater.d.ts.map +1 -0
- package/lib/browser/debug-schema-updater.js +161 -0
- package/lib/browser/debug-schema-updater.js.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.d.ts +11 -0
- package/lib/browser/debug-session-configuration-label-provider.d.ts.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.js +48 -0
- package/lib/browser/debug-session-configuration-label-provider.js.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +2 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +1 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.js +84 -0
- package/lib/browser/debug-session-configuration-label-provider.spec.js.map +1 -0
- package/lib/browser/debug-session-connection.d.ts +111 -0
- package/lib/browser/debug-session-connection.d.ts.map +1 -0
- package/lib/browser/debug-session-connection.js +259 -0
- package/lib/browser/debug-session-connection.js.map +1 -0
- package/lib/browser/debug-session-contribution.d.ts +77 -0
- package/lib/browser/debug-session-contribution.d.ts.map +1 -0
- package/lib/browser/debug-session-contribution.js +143 -0
- package/lib/browser/debug-session-contribution.js.map +1 -0
- package/lib/browser/debug-session-manager.d.ts +140 -0
- package/lib/browser/debug-session-manager.d.ts.map +1 -0
- package/lib/browser/debug-session-manager.js +637 -0
- package/lib/browser/debug-session-manager.js.map +1 -0
- package/lib/browser/debug-session-options.d.ts +56 -0
- package/lib/browser/debug-session-options.d.ts.map +1 -0
- package/lib/browser/debug-session-options.js +92 -0
- package/lib/browser/debug-session-options.js.map +1 -0
- package/lib/browser/debug-session.d.ts +195 -0
- package/lib/browser/debug-session.d.ts.map +1 -0
- package/lib/browser/debug-session.js +946 -0
- package/lib/browser/debug-session.js.map +1 -0
- package/lib/browser/debug-tab-bar-decorator.d.ts +17 -0
- package/lib/browser/debug-tab-bar-decorator.d.ts.map +1 -0
- package/lib/browser/debug-tab-bar-decorator.js +63 -0
- package/lib/browser/debug-tab-bar-decorator.js.map +1 -0
- package/lib/browser/debug-watch-manager.d.ts +22 -0
- package/lib/browser/debug-watch-manager.d.ts.map +1 -0
- package/lib/browser/debug-watch-manager.js +86 -0
- package/lib/browser/debug-watch-manager.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +7 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +39 -0
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +20 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +111 -0
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +25 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.js +124 -0
- package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +39 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +213 -0
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +16 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +39 -0
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +38 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.js +18 -0
- package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +61 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +1 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.js +446 -0
- package/lib/browser/disassembly-view/disassembly-view-widget.js.map +1 -0
- package/lib/browser/editor/debug-breakpoint-widget.d.ts +58 -0
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-breakpoint-widget.js +270 -0
- package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -0
- package/lib/browser/editor/debug-editor-model.d.ts +87 -0
- package/lib/browser/editor/debug-editor-model.d.ts.map +1 -0
- package/lib/browser/editor/debug-editor-model.js +499 -0
- package/lib/browser/editor/debug-editor-model.js.map +1 -0
- package/lib/browser/editor/debug-editor-service.d.ts +38 -0
- package/lib/browser/editor/debug-editor-service.d.ts.map +1 -0
- package/lib/browser/editor/debug-editor-service.js +183 -0
- package/lib/browser/editor/debug-editor-service.js.map +1 -0
- package/lib/browser/editor/debug-editor.d.ts +4 -0
- package/lib/browser/editor/debug-editor.d.ts.map +1 -0
- package/lib/browser/editor/debug-editor.js +20 -0
- package/lib/browser/editor/debug-editor.js.map +1 -0
- package/lib/browser/editor/debug-exception-widget.d.ts +30 -0
- package/lib/browser/editor/debug-exception-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-exception-widget.js +107 -0
- package/lib/browser/editor/debug-exception-widget.js.map +1 -0
- package/lib/browser/editor/debug-expression-provider.d.ts +17 -0
- package/lib/browser/editor/debug-expression-provider.d.ts.map +1 -0
- package/lib/browser/editor/debug-expression-provider.js +107 -0
- package/lib/browser/editor/debug-expression-provider.js.map +1 -0
- package/lib/browser/editor/debug-hover-source.d.ts +19 -0
- package/lib/browser/editor/debug-hover-source.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-source.js +110 -0
- package/lib/browser/editor/debug-hover-source.js.map +1 -0
- package/lib/browser/editor/debug-hover-widget.d.ts +61 -0
- package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -0
- package/lib/browser/editor/debug-hover-widget.js +271 -0
- package/lib/browser/editor/debug-hover-widget.js.map +1 -0
- package/lib/browser/editor/debug-inline-value-decorator.d.ts +20 -0
- package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +1 -0
- package/lib/browser/editor/debug-inline-value-decorator.js +326 -0
- package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -0
- package/lib/browser/model/debug-breakpoint.d.ts +48 -0
- package/lib/browser/model/debug-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-breakpoint.js +111 -0
- package/lib/browser/model/debug-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-data-breakpoint.d.ts +16 -0
- package/lib/browser/model/debug-data-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-data-breakpoint.js +75 -0
- package/lib/browser/model/debug-data-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-function-breakpoint.d.ts +19 -0
- package/lib/browser/model/debug-function-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-function-breakpoint.js +93 -0
- package/lib/browser/model/debug-function-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-instruction-breakpoint.d.ts +15 -0
- package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-instruction-breakpoint.js +66 -0
- package/lib/browser/model/debug-instruction-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-source-breakpoint.d.ts +39 -0
- package/lib/browser/model/debug-source-breakpoint.d.ts.map +1 -0
- package/lib/browser/model/debug-source-breakpoint.js +219 -0
- package/lib/browser/model/debug-source-breakpoint.js.map +1 -0
- package/lib/browser/model/debug-source.d.ts +25 -0
- package/lib/browser/model/debug-source.d.ts.map +1 -0
- package/lib/browser/model/debug-source.js +81 -0
- package/lib/browser/model/debug-source.js.map +1 -0
- package/lib/browser/model/debug-stack-frame.d.ts +45 -0
- package/lib/browser/model/debug-stack-frame.d.ts.map +1 -0
- package/lib/browser/model/debug-stack-frame.js +157 -0
- package/lib/browser/model/debug-stack-frame.js.map +1 -0
- package/lib/browser/model/debug-thread.d.ts +68 -0
- package/lib/browser/model/debug-thread.d.ts.map +1 -0
- package/lib/browser/model/debug-thread.js +262 -0
- package/lib/browser/model/debug-thread.js.map +1 -0
- package/lib/browser/view/debug-action.d.ts +18 -0
- package/lib/browser/view/debug-action.d.ts.map +1 -0
- package/lib/browser/view/debug-action.js +44 -0
- package/lib/browser/view/debug-action.js.map +1 -0
- package/lib/browser/view/debug-breakpoints-source.d.ts +10 -0
- package/lib/browser/view/debug-breakpoints-source.d.ts.map +1 -0
- package/lib/browser/view/debug-breakpoints-source.js +58 -0
- package/lib/browser/view/debug-breakpoints-source.js.map +1 -0
- package/lib/browser/view/debug-breakpoints-widget.d.ts +23 -0
- package/lib/browser/view/debug-breakpoints-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-breakpoints-widget.js +81 -0
- package/lib/browser/view/debug-breakpoints-widget.js.map +1 -0
- package/lib/browser/view/debug-configuration-select.d.ts +67 -0
- package/lib/browser/view/debug-configuration-select.d.ts.map +1 -0
- package/lib/browser/view/debug-configuration-select.js +212 -0
- package/lib/browser/view/debug-configuration-select.js.map +1 -0
- package/lib/browser/view/debug-configuration-widget.d.ts +33 -0
- package/lib/browser/view/debug-configuration-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-configuration-widget.js +137 -0
- package/lib/browser/view/debug-configuration-widget.js.map +1 -0
- package/lib/browser/view/debug-exception-breakpoint.d.ts +15 -0
- package/lib/browser/view/debug-exception-breakpoint.d.ts.map +1 -0
- package/lib/browser/view/debug-exception-breakpoint.js +62 -0
- package/lib/browser/view/debug-exception-breakpoint.js.map +1 -0
- package/lib/browser/view/debug-session-widget.d.ts +29 -0
- package/lib/browser/view/debug-session-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-session-widget.js +127 -0
- package/lib/browser/view/debug-session-widget.js.map +1 -0
- package/lib/browser/view/debug-stack-frames-source.d.ts +18 -0
- package/lib/browser/view/debug-stack-frames-source.d.ts.map +1 -0
- package/lib/browser/view/debug-stack-frames-source.js +83 -0
- package/lib/browser/view/debug-stack-frames-source.js.map +1 -0
- package/lib/browser/view/debug-stack-frames-widget.d.ts +25 -0
- package/lib/browser/view/debug-stack-frames-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-stack-frames-widget.js +152 -0
- package/lib/browser/view/debug-stack-frames-widget.js.map +1 -0
- package/lib/browser/view/debug-threads-source.d.ts +9 -0
- package/lib/browser/view/debug-threads-source.d.ts.map +1 -0
- package/lib/browser/view/debug-threads-source.js +56 -0
- package/lib/browser/view/debug-threads-source.js.map +1 -0
- package/lib/browser/view/debug-threads-widget.d.ts +27 -0
- package/lib/browser/view/debug-threads-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-threads-widget.js +139 -0
- package/lib/browser/view/debug-threads-widget.js.map +1 -0
- package/lib/browser/view/debug-toolbar-widget.d.ts +34 -0
- package/lib/browser/view/debug-toolbar-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-toolbar-widget.js +139 -0
- package/lib/browser/view/debug-toolbar-widget.js.map +1 -0
- package/lib/browser/view/debug-variables-source.d.ts +10 -0
- package/lib/browser/view/debug-variables-source.d.ts.map +1 -0
- package/lib/browser/view/debug-variables-source.js +53 -0
- package/lib/browser/view/debug-variables-source.js.map +1 -0
- package/lib/browser/view/debug-variables-widget.d.ts +28 -0
- package/lib/browser/view/debug-variables-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-variables-widget.js +152 -0
- package/lib/browser/view/debug-variables-widget.js.map +1 -0
- package/lib/browser/view/debug-view-model.d.ts +55 -0
- package/lib/browser/view/debug-view-model.d.ts.map +1 -0
- package/lib/browser/view/debug-view-model.js +215 -0
- package/lib/browser/view/debug-view-model.js.map +1 -0
- package/lib/browser/view/debug-watch-expression.d.ts +33 -0
- package/lib/browser/view/debug-watch-expression.d.ts.map +1 -0
- package/lib/browser/view/debug-watch-expression.js +93 -0
- package/lib/browser/view/debug-watch-expression.js.map +1 -0
- package/lib/browser/view/debug-watch-source.d.ts +10 -0
- package/lib/browser/view/debug-watch-source.d.ts.map +1 -0
- package/lib/browser/view/debug-watch-source.js +51 -0
- package/lib/browser/view/debug-watch-source.js.map +1 -0
- package/lib/browser/view/debug-watch-widget.d.ts +17 -0
- package/lib/browser/view/debug-watch-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-watch-widget.js +71 -0
- package/lib/browser/view/debug-watch-widget.js.map +1 -0
- package/lib/browser/view/debug-widget.d.ts +24 -0
- package/lib/browser/view/debug-widget.d.ts.map +1 -0
- package/lib/browser/view/debug-widget.js +101 -0
- package/lib/browser/view/debug-widget.js.map +1 -0
- package/lib/common/debug-adapter-contribution-registry.d.ts +60 -0
- package/lib/common/debug-adapter-contribution-registry.d.ts.map +1 -0
- package/lib/common/debug-adapter-contribution-registry.js +205 -0
- package/lib/common/debug-adapter-contribution-registry.js.map +1 -0
- package/lib/common/debug-adapter-session.d.ts +19 -0
- package/lib/common/debug-adapter-session.d.ts.map +1 -0
- package/lib/common/debug-adapter-session.js +79 -0
- package/lib/common/debug-adapter-session.js.map +1 -0
- package/lib/common/debug-common.d.ts +2 -0
- package/lib/common/debug-common.d.ts.map +1 -0
- package/lib/common/debug-common.js +21 -0
- package/lib/common/debug-common.js.map +1 -0
- package/lib/common/debug-compound.d.ts +15 -0
- package/lib/common/debug-compound.d.ts.map +1 -0
- package/lib/common/debug-compound.js +28 -0
- package/lib/common/debug-compound.js.map +1 -0
- package/lib/common/debug-configuration.d.ts +77 -0
- package/lib/common/debug-configuration.d.ts.map +1 -0
- package/lib/common/debug-configuration.js +32 -0
- package/lib/common/debug-configuration.js.map +1 -0
- package/lib/common/debug-model.d.ts +153 -0
- package/lib/common/debug-model.d.ts.map +1 -0
- package/lib/common/debug-model.js +36 -0
- package/lib/common/debug-model.js.map +1 -0
- package/lib/common/debug-preferences.d.ts +18 -0
- package/lib/common/debug-preferences.d.ts.map +1 -0
- package/lib/common/debug-preferences.js +89 -0
- package/lib/common/debug-preferences.js.map +1 -0
- package/lib/common/debug-service.d.ts +124 -0
- package/lib/common/debug-service.d.ts.map +1 -0
- package/lib/common/debug-service.js +67 -0
- package/lib/common/debug-service.js.map +1 -0
- package/lib/common/debug-uri-utils.d.ts +24 -0
- package/lib/common/debug-uri-utils.d.ts.map +1 -0
- package/lib/common/debug-uri-utils.js +27 -0
- package/lib/common/debug-uri-utils.js.map +1 -0
- package/lib/common/inline-debug-adapter.d.ts +19 -0
- package/lib/common/inline-debug-adapter.d.ts.map +1 -0
- package/lib/common/inline-debug-adapter.js +45 -0
- package/lib/common/inline-debug-adapter.js.map +1 -0
- package/lib/common/launch-preferences.d.ts +6 -0
- package/lib/common/launch-preferences.d.ts.map +1 -0
- package/lib/common/launch-preferences.js +37 -0
- package/lib/common/launch-preferences.js.map +1 -0
- package/lib/node/debug-adapter-factory.d.ts +20 -0
- package/lib/node/debug-adapter-factory.d.ts.map +1 -0
- package/lib/node/debug-adapter-factory.js +89 -0
- package/lib/node/debug-adapter-factory.js.map +1 -0
- package/lib/node/debug-adapter-session-manager.d.ts +38 -0
- package/lib/node/debug-adapter-session-manager.d.ts.map +1 -0
- package/lib/node/debug-adapter-session-manager.js +104 -0
- package/lib/node/debug-adapter-session-manager.js.map +1 -0
- package/lib/node/debug-backend-module.d.ts +4 -0
- package/lib/node/debug-backend-module.d.ts.map +1 -0
- package/lib/node/debug-backend-module.js +45 -0
- package/lib/node/debug-backend-module.js.map +1 -0
- package/lib/node/debug-service-impl.d.ts +31 -0
- package/lib/node/debug-service-impl.d.ts.map +1 -0
- package/lib/node/debug-service-impl.js +117 -0
- package/lib/node/debug-service-impl.js.map +1 -0
- package/lib/node/stream-debug-adapter.d.ts +41 -0
- package/lib/node/stream-debug-adapter.d.ts.map +1 -0
- package/lib/node/stream-debug-adapter.js +113 -0
- package/lib/node/stream-debug-adapter.js.map +1 -0
- package/package.json +15 -15
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DebugVariablesSource = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const source_tree_1 = require("@theia/core/lib/browser/source-tree");
|
|
22
|
+
const debug_view_model_1 = require("./debug-view-model");
|
|
23
|
+
const debounce = require("p-debounce");
|
|
24
|
+
let DebugVariablesSource = class DebugVariablesSource extends source_tree_1.TreeSource {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.refresh = debounce(() => this.fireDidChange(), 400);
|
|
28
|
+
}
|
|
29
|
+
init() {
|
|
30
|
+
this.refresh();
|
|
31
|
+
this.toDispose.push(this.model.onDidChange(() => this.refresh()));
|
|
32
|
+
}
|
|
33
|
+
async getElements() {
|
|
34
|
+
const { currentSession } = this.model;
|
|
35
|
+
const scopes = currentSession ? await currentSession.getScopes() : [];
|
|
36
|
+
return scopes[Symbol.iterator]();
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.DebugVariablesSource = DebugVariablesSource;
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, inversify_1.inject)(debug_view_model_1.DebugViewModel),
|
|
42
|
+
tslib_1.__metadata("design:type", debug_view_model_1.DebugViewModel)
|
|
43
|
+
], DebugVariablesSource.prototype, "model", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, inversify_1.postConstruct)(),
|
|
46
|
+
tslib_1.__metadata("design:type", Function),
|
|
47
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
48
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
49
|
+
], DebugVariablesSource.prototype, "init", null);
|
|
50
|
+
exports.DebugVariablesSource = DebugVariablesSource = tslib_1.__decorate([
|
|
51
|
+
(0, inversify_1.injectable)()
|
|
52
|
+
], DebugVariablesSource);
|
|
53
|
+
//# sourceMappingURL=debug-variables-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-variables-source.js","sourceRoot":"","sources":["../../../src/browser/view/debug-variables-source.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAiF;AACjF,qEAAiE;AAEjE,yDAAoD;AACpD,uCAAwC;AAGjC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,wBAAU;IAA7C;;QAWgB,YAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,GAAG,CAAC,CAAC;IAQ3E,CAAC;IAba,IAAI;QACV,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAID,KAAK,CAAC,WAAW;QACb,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtC,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IACrC,CAAC;CAEJ,CAAA;AAnBY,oDAAoB;AAGV;IADlB,IAAA,kBAAM,EAAC,iCAAc,CAAC;sCACG,iCAAc;mDAAC;AAG/B;IADT,IAAA,yBAAa,GAAE;;;;gDAIf;+BATQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAmBhC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { interfaces, Container } from '@theia/core/shared/inversify';
|
|
3
|
+
import { MenuPath, Disposable, CommandRegistry, MenuModelRegistry } from '@theia/core/lib/common';
|
|
4
|
+
import { SourceTreeWidget, TreeElementNode } from '@theia/core/lib/browser/source-tree';
|
|
5
|
+
import { DebugVariablesSource } from './debug-variables-source';
|
|
6
|
+
import { DebugViewModel } from './debug-view-model';
|
|
7
|
+
import { MouseEvent } from '@theia/core/shared/react';
|
|
8
|
+
import { TreeNode } from '@theia/core/lib/browser';
|
|
9
|
+
import { BreakpointManager } from '../breakpoint/breakpoint-manager';
|
|
10
|
+
export declare class DebugVariablesWidget extends SourceTreeWidget {
|
|
11
|
+
static CONTEXT_MENU: MenuPath;
|
|
12
|
+
static EDIT_MENU: MenuPath;
|
|
13
|
+
static WATCH_MENU: MenuPath;
|
|
14
|
+
static DATA_BREAKPOINT_MENU: MenuPath;
|
|
15
|
+
static FACTORY_ID: string;
|
|
16
|
+
static createContainer(parent: interfaces.Container): Container;
|
|
17
|
+
static createWidget(parent: interfaces.Container): DebugVariablesWidget;
|
|
18
|
+
protected readonly viewModel: DebugViewModel;
|
|
19
|
+
protected readonly variables: DebugVariablesSource;
|
|
20
|
+
protected readonly commandRegistry: CommandRegistry;
|
|
21
|
+
protected readonly menuRegistry: MenuModelRegistry;
|
|
22
|
+
protected readonly breakpointManager: BreakpointManager;
|
|
23
|
+
protected init(): void;
|
|
24
|
+
protected handleContextMenuEvent(node: TreeNode | undefined, event: MouseEvent<HTMLElement>): void;
|
|
25
|
+
protected doHandleContextMenuEvent(node: TreeNode | undefined, event: MouseEvent<HTMLElement>): Promise<void>;
|
|
26
|
+
protected getVariableCommands(node: TreeElementNode): Promise<Disposable>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=debug-variables-widget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-variables-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/view/debug-variables-widget.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAqC,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACxG,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,iBAAiB,EAAiC,MAAM,wBAAwB,CAAC;AACjI,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAsB,QAAQ,EAAiB,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAGrE,qBACa,oBAAqB,SAAQ,gBAAgB;IAEtD,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAoC;IACjE,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAoD;IAC9E,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAqD;IAChF,MAAM,CAAC,oBAAoB,EAAE,QAAQ,CAAgE;IACrG,MAAM,CAAC,UAAU,SAAqB;WACtB,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS;IAWxE,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,oBAAoB;IAKvE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IAG7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;IAGnD,SAAS,CAAC,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAGpD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IAGnD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;cAGrC,IAAI,IAAI,IAAI;cAQZ,sBAAsB,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI;cAI3F,wBAAwB,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;cA0BnG,mBAAmB,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC;CAoDlF"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var DebugVariablesWidget_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.DebugVariablesWidget = void 0;
|
|
20
|
+
const tslib_1 = require("tslib");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const common_1 = require("@theia/core/lib/common");
|
|
23
|
+
const source_tree_1 = require("@theia/core/lib/browser/source-tree");
|
|
24
|
+
const debug_variables_source_1 = require("./debug-variables-source");
|
|
25
|
+
const debug_view_model_1 = require("./debug-view-model");
|
|
26
|
+
const nls_1 = require("@theia/core/lib/common/nls");
|
|
27
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
28
|
+
const debug_console_items_1 = require("../console/debug-console-items");
|
|
29
|
+
const breakpoint_manager_1 = require("../breakpoint/breakpoint-manager");
|
|
30
|
+
const breakpoint_marker_1 = require("../breakpoint/breakpoint-marker");
|
|
31
|
+
let DebugVariablesWidget = DebugVariablesWidget_1 = class DebugVariablesWidget extends source_tree_1.SourceTreeWidget {
|
|
32
|
+
static createContainer(parent) {
|
|
33
|
+
const child = source_tree_1.SourceTreeWidget.createContainer(parent, {
|
|
34
|
+
contextMenuPath: DebugVariablesWidget_1.CONTEXT_MENU,
|
|
35
|
+
virtualized: false,
|
|
36
|
+
scrollIfActive: true
|
|
37
|
+
});
|
|
38
|
+
child.bind(debug_variables_source_1.DebugVariablesSource).toSelf();
|
|
39
|
+
child.unbind(source_tree_1.SourceTreeWidget);
|
|
40
|
+
child.bind(DebugVariablesWidget_1).toSelf();
|
|
41
|
+
return child;
|
|
42
|
+
}
|
|
43
|
+
static createWidget(parent) {
|
|
44
|
+
return DebugVariablesWidget_1.createContainer(parent).get(DebugVariablesWidget_1);
|
|
45
|
+
}
|
|
46
|
+
init() {
|
|
47
|
+
super.init();
|
|
48
|
+
this.id = DebugVariablesWidget_1.FACTORY_ID + ':' + this.viewModel.id;
|
|
49
|
+
this.title.label = nls_1.nls.localizeByDefault('Variables');
|
|
50
|
+
this.toDispose.push(this.variables);
|
|
51
|
+
this.source = this.variables;
|
|
52
|
+
}
|
|
53
|
+
handleContextMenuEvent(node, event) {
|
|
54
|
+
this.doHandleContextMenuEvent(node, event);
|
|
55
|
+
}
|
|
56
|
+
async doHandleContextMenuEvent(node, event) {
|
|
57
|
+
event.stopPropagation();
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
if (!browser_1.SelectableTreeNode.is(node) || !source_tree_1.TreeElementNode.is(node)) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
// Keep the selection for the context menu, if the widget support multi-selection and the right click happens on an already selected node.
|
|
63
|
+
if (!this.props.multiSelect || !node.selected) {
|
|
64
|
+
const type = !!this.props.multiSelect && this.hasCtrlCmdMask(event) ? browser_1.TreeSelection.SelectionType.TOGGLE : browser_1.TreeSelection.SelectionType.DEFAULT;
|
|
65
|
+
this.model.addSelection({ node, type });
|
|
66
|
+
}
|
|
67
|
+
this.focusService.setFocus(node);
|
|
68
|
+
const contextMenuPath = this.props.contextMenuPath;
|
|
69
|
+
if (contextMenuPath) {
|
|
70
|
+
const { x, y } = event.nativeEvent;
|
|
71
|
+
const args = this.toContextMenuArgs(node);
|
|
72
|
+
const target = event.currentTarget;
|
|
73
|
+
const toDisposeOnHide = await this.getVariableCommands(node);
|
|
74
|
+
setTimeout(() => this.contextMenuRenderer.render({
|
|
75
|
+
menuPath: contextMenuPath,
|
|
76
|
+
context: target,
|
|
77
|
+
anchor: { x, y },
|
|
78
|
+
args,
|
|
79
|
+
onHide: () => toDisposeOnHide.dispose()
|
|
80
|
+
}), 10);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async getVariableCommands(node) {
|
|
84
|
+
const selectedElement = node.element;
|
|
85
|
+
const { viewModel: { currentSession } } = this;
|
|
86
|
+
if (!(currentSession === null || currentSession === void 0 ? void 0 : currentSession.capabilities.supportsDataBreakpoints) || !(selectedElement instanceof debug_console_items_1.DebugVariable)) {
|
|
87
|
+
return common_1.Disposable.NULL;
|
|
88
|
+
}
|
|
89
|
+
const { name, parent: { reference } } = selectedElement;
|
|
90
|
+
const dataBreakpointInfo = (await currentSession.sendRequest('dataBreakpointInfo', { name, variablesReference: reference })).body;
|
|
91
|
+
// eslint-disable-next-line no-null/no-null
|
|
92
|
+
if (dataBreakpointInfo.dataId === null) {
|
|
93
|
+
return common_1.Disposable.NULL;
|
|
94
|
+
}
|
|
95
|
+
const source = { type: 0 /* DataBreakpointSourceType.Variable */, variable: name };
|
|
96
|
+
return new common_1.DisposableCollection(this.commandRegistry.registerCommand(common_1.Command.toDefaultLocalizedCommand({
|
|
97
|
+
id: `break-on-access:${currentSession.id}:${name}`,
|
|
98
|
+
label: 'Break on Value Access'
|
|
99
|
+
}), {
|
|
100
|
+
execute: () => this.breakpointManager.addDataBreakpoint(breakpoint_marker_1.DataBreakpoint.create({ accessType: 'readWrite', dataId: dataBreakpointInfo.dataId }, dataBreakpointInfo, source)),
|
|
101
|
+
isEnabled: () => { var _a; return !!((_a = dataBreakpointInfo.accessTypes) === null || _a === void 0 ? void 0 : _a.includes('readWrite')); },
|
|
102
|
+
}), this.menuRegistry.registerMenuAction(DebugVariablesWidget_1.DATA_BREAKPOINT_MENU, { commandId: `break-on-access:${currentSession.id}:${name}`, order: 'c' }), this.commandRegistry.registerCommand(common_1.Command.toDefaultLocalizedCommand({
|
|
103
|
+
id: `break-on-read:${currentSession.id}:${name}`,
|
|
104
|
+
label: 'Break on Value Read'
|
|
105
|
+
}), {
|
|
106
|
+
execute: () => this.breakpointManager.addDataBreakpoint(breakpoint_marker_1.DataBreakpoint.create({ accessType: 'read', dataId: dataBreakpointInfo.dataId }, dataBreakpointInfo, source)),
|
|
107
|
+
isEnabled: () => { var _a; return !!((_a = dataBreakpointInfo.accessTypes) === null || _a === void 0 ? void 0 : _a.includes('read')); },
|
|
108
|
+
}), this.menuRegistry.registerMenuAction(DebugVariablesWidget_1.DATA_BREAKPOINT_MENU, { commandId: `break-on-read:${currentSession.id}:${name}`, order: 'a' }), this.commandRegistry.registerCommand(common_1.Command.toDefaultLocalizedCommand({
|
|
109
|
+
id: `break-on-write:${currentSession.id}:${name}`,
|
|
110
|
+
label: 'Break on Value Change'
|
|
111
|
+
}), {
|
|
112
|
+
execute: () => this.breakpointManager.addDataBreakpoint(breakpoint_marker_1.DataBreakpoint.create({ accessType: 'write', dataId: dataBreakpointInfo.dataId }, dataBreakpointInfo, source)),
|
|
113
|
+
isEnabled: () => { var _a; return !!((_a = dataBreakpointInfo.accessTypes) === null || _a === void 0 ? void 0 : _a.includes('write')); },
|
|
114
|
+
}), this.menuRegistry.registerMenuAction(DebugVariablesWidget_1.DATA_BREAKPOINT_MENU, { commandId: `break-on-write:${currentSession.id}:${name}`, order: 'b' }));
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
exports.DebugVariablesWidget = DebugVariablesWidget;
|
|
118
|
+
DebugVariablesWidget.CONTEXT_MENU = ['debug-variables-context-menu'];
|
|
119
|
+
DebugVariablesWidget.EDIT_MENU = [...DebugVariablesWidget_1.CONTEXT_MENU, 'a_edit'];
|
|
120
|
+
DebugVariablesWidget.WATCH_MENU = [...DebugVariablesWidget_1.CONTEXT_MENU, 'b_watch'];
|
|
121
|
+
DebugVariablesWidget.DATA_BREAKPOINT_MENU = [...DebugVariablesWidget_1.CONTEXT_MENU, 'c_data_breakpoints'];
|
|
122
|
+
DebugVariablesWidget.FACTORY_ID = 'debug:variables';
|
|
123
|
+
tslib_1.__decorate([
|
|
124
|
+
(0, inversify_1.inject)(debug_view_model_1.DebugViewModel),
|
|
125
|
+
tslib_1.__metadata("design:type", debug_view_model_1.DebugViewModel)
|
|
126
|
+
], DebugVariablesWidget.prototype, "viewModel", void 0);
|
|
127
|
+
tslib_1.__decorate([
|
|
128
|
+
(0, inversify_1.inject)(debug_variables_source_1.DebugVariablesSource),
|
|
129
|
+
tslib_1.__metadata("design:type", debug_variables_source_1.DebugVariablesSource)
|
|
130
|
+
], DebugVariablesWidget.prototype, "variables", void 0);
|
|
131
|
+
tslib_1.__decorate([
|
|
132
|
+
(0, inversify_1.inject)(common_1.CommandRegistry),
|
|
133
|
+
tslib_1.__metadata("design:type", common_1.CommandRegistry)
|
|
134
|
+
], DebugVariablesWidget.prototype, "commandRegistry", void 0);
|
|
135
|
+
tslib_1.__decorate([
|
|
136
|
+
(0, inversify_1.inject)(common_1.MenuModelRegistry),
|
|
137
|
+
tslib_1.__metadata("design:type", common_1.MenuModelRegistry)
|
|
138
|
+
], DebugVariablesWidget.prototype, "menuRegistry", void 0);
|
|
139
|
+
tslib_1.__decorate([
|
|
140
|
+
(0, inversify_1.inject)(breakpoint_manager_1.BreakpointManager),
|
|
141
|
+
tslib_1.__metadata("design:type", breakpoint_manager_1.BreakpointManager)
|
|
142
|
+
], DebugVariablesWidget.prototype, "breakpointManager", void 0);
|
|
143
|
+
tslib_1.__decorate([
|
|
144
|
+
(0, inversify_1.postConstruct)(),
|
|
145
|
+
tslib_1.__metadata("design:type", Function),
|
|
146
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
147
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
148
|
+
], DebugVariablesWidget.prototype, "init", null);
|
|
149
|
+
exports.DebugVariablesWidget = DebugVariablesWidget = DebugVariablesWidget_1 = tslib_1.__decorate([
|
|
150
|
+
(0, inversify_1.injectable)()
|
|
151
|
+
], DebugVariablesWidget);
|
|
152
|
+
//# sourceMappingURL=debug-variables-widget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-variables-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-variables-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEh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hC;IADlB,IAAA,kBAAM,EAAC,wBAAe,CAAC;sCACY,wBAAe;6DAAC;AAGjC;IADlB,IAAA,kBAAM,EAAC,0BAAiB,CAAC;sCACO,0BAAiB;0DAAC;AAGhC;IADlB,IAAA,kBAAM,EAAC,sCAAiB,CAAC;sCACY,sCAAiB;+DAAC;AAGrC;IADlB,IAAA,yBAAa,GAAE;;;;gDAOf;+BA5CQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAgIhC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Disposable, DisposableCollection, Event, Emitter } from '@theia/core/lib/common';
|
|
2
|
+
import URI from '@theia/core/lib/common/uri';
|
|
3
|
+
import { DebugSession, DebugState } from '../debug-session';
|
|
4
|
+
import { DebugSessionManager } from '../debug-session-manager';
|
|
5
|
+
import { DebugThread } from '../model/debug-thread';
|
|
6
|
+
import { DebugStackFrame } from '../model/debug-stack-frame';
|
|
7
|
+
import { DebugSourceBreakpoint } from '../model/debug-source-breakpoint';
|
|
8
|
+
import { DebugWatchExpression } from './debug-watch-expression';
|
|
9
|
+
import { DebugWatchManager } from '../debug-watch-manager';
|
|
10
|
+
import { DebugFunctionBreakpoint } from '../model/debug-function-breakpoint';
|
|
11
|
+
import { DebugInstructionBreakpoint } from '../model/debug-instruction-breakpoint';
|
|
12
|
+
import { DebugSessionOptionsBase } from '../debug-session-options';
|
|
13
|
+
import { DebugDataBreakpoint } from '../model/debug-data-breakpoint';
|
|
14
|
+
export declare class DebugViewModel implements Disposable {
|
|
15
|
+
protected readonly onDidChangeEmitter: Emitter<void>;
|
|
16
|
+
readonly onDidChange: Event<void>;
|
|
17
|
+
protected fireDidChange(): void;
|
|
18
|
+
protected readonly onDidChangeBreakpointsEmitter: Emitter<URI>;
|
|
19
|
+
readonly onDidChangeBreakpoints: Event<URI>;
|
|
20
|
+
protected fireDidChangeBreakpoints(uri: URI): void;
|
|
21
|
+
protected readonly _watchExpressions: Map<number, DebugWatchExpression>;
|
|
22
|
+
protected readonly onDidChangeWatchExpressionsEmitter: Emitter<void>;
|
|
23
|
+
readonly onDidChangeWatchExpressions: Event<void>;
|
|
24
|
+
protected fireDidChangeWatchExpressions(): void;
|
|
25
|
+
protected readonly toDispose: DisposableCollection;
|
|
26
|
+
protected readonly manager: DebugSessionManager;
|
|
27
|
+
protected readonly watch: DebugWatchManager;
|
|
28
|
+
get sessions(): IterableIterator<DebugSession>;
|
|
29
|
+
get sessionCount(): number;
|
|
30
|
+
get session(): DebugSession | undefined;
|
|
31
|
+
get id(): string;
|
|
32
|
+
get label(): string;
|
|
33
|
+
protected init(): void;
|
|
34
|
+
dispose(): void;
|
|
35
|
+
get currentSession(): DebugSession | undefined;
|
|
36
|
+
set currentSession(currentSession: DebugSession | undefined);
|
|
37
|
+
get state(): DebugState;
|
|
38
|
+
get currentThread(): DebugThread | undefined;
|
|
39
|
+
get currentFrame(): DebugStackFrame | undefined;
|
|
40
|
+
get breakpoints(): DebugSourceBreakpoint[];
|
|
41
|
+
get functionBreakpoints(): DebugFunctionBreakpoint[];
|
|
42
|
+
get instructionBreakpoints(): DebugInstructionBreakpoint[];
|
|
43
|
+
get dataBreakpoints(): DebugDataBreakpoint[];
|
|
44
|
+
start(options?: Partial<Pick<DebugSessionOptionsBase, 'startedByUser'>>): Promise<void>;
|
|
45
|
+
restart(): Promise<void>;
|
|
46
|
+
terminate(): Promise<void>;
|
|
47
|
+
get watchExpressions(): IterableIterator<DebugWatchExpression>;
|
|
48
|
+
addWatchExpression(expression?: string): Promise<DebugWatchExpression | undefined>;
|
|
49
|
+
removeWatchExpressions(): void;
|
|
50
|
+
removeWatchExpression(expression: DebugWatchExpression): void;
|
|
51
|
+
protected updateWatchExpressions(): void;
|
|
52
|
+
protected refreshWatchExpressionsQueue: Promise<void>;
|
|
53
|
+
protected refreshWatchExpressions: () => Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=debug-view-model.d.ts.map
|
|
@@ -0,0 +1 @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AoB,CAAC,CAE7D;IAEK,kBAAkB,CAAC,UAAU,GAAE,MAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAgB5F,sBAAsB,IAAI,IAAI;IAI9B,qBAAqB,CAAC,UAAU,EAAE,oBAAoB,GAAG,IAAI;IAI7D,SAAS,CAAC,sBAAsB,IAAI,IAAI;IA0BxC,SAAS,CAAC,4BAA4B,gBAAqB;IAC3D,SAAS,CAAC,uBAAuB,sBAQ1B;CAEV"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DebugViewModel = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const p_debounce_1 = require("p-debounce");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const common_1 = require("@theia/core/lib/common");
|
|
23
|
+
const debug_session_1 = require("../debug-session");
|
|
24
|
+
const debug_session_manager_1 = require("../debug-session-manager");
|
|
25
|
+
const debug_watch_expression_1 = require("./debug-watch-expression");
|
|
26
|
+
const debug_watch_manager_1 = require("../debug-watch-manager");
|
|
27
|
+
let DebugViewModel = class DebugViewModel {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.onDidChangeEmitter = new common_1.Emitter();
|
|
30
|
+
this.onDidChange = this.onDidChangeEmitter.event;
|
|
31
|
+
this.onDidChangeBreakpointsEmitter = new common_1.Emitter();
|
|
32
|
+
this.onDidChangeBreakpoints = this.onDidChangeBreakpointsEmitter.event;
|
|
33
|
+
this._watchExpressions = new Map();
|
|
34
|
+
this.onDidChangeWatchExpressionsEmitter = new common_1.Emitter();
|
|
35
|
+
this.onDidChangeWatchExpressions = this.onDidChangeWatchExpressionsEmitter.event;
|
|
36
|
+
this.toDispose = new common_1.DisposableCollection(this.onDidChangeEmitter, this.onDidChangeBreakpointsEmitter, this.onDidChangeWatchExpressionsEmitter);
|
|
37
|
+
this.refreshWatchExpressionsQueue = Promise.resolve();
|
|
38
|
+
this.refreshWatchExpressions = (0, p_debounce_1.default)(() => {
|
|
39
|
+
this.refreshWatchExpressionsQueue = this.refreshWatchExpressionsQueue.then(async () => {
|
|
40
|
+
try {
|
|
41
|
+
await Promise.all(Array.from(this.watchExpressions).map(expr => expr.evaluate()));
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
console.error('Failed to refresh watch expressions: ', e);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}, 50);
|
|
48
|
+
}
|
|
49
|
+
fireDidChange() {
|
|
50
|
+
this.refreshWatchExpressions();
|
|
51
|
+
this.onDidChangeEmitter.fire(undefined);
|
|
52
|
+
}
|
|
53
|
+
fireDidChangeBreakpoints(uri) {
|
|
54
|
+
this.onDidChangeBreakpointsEmitter.fire(uri);
|
|
55
|
+
}
|
|
56
|
+
fireDidChangeWatchExpressions() {
|
|
57
|
+
this.onDidChangeWatchExpressionsEmitter.fire(undefined);
|
|
58
|
+
}
|
|
59
|
+
get sessions() {
|
|
60
|
+
return this.manager.sessions[Symbol.iterator]();
|
|
61
|
+
}
|
|
62
|
+
get sessionCount() {
|
|
63
|
+
return this.manager.sessions.length;
|
|
64
|
+
}
|
|
65
|
+
get session() {
|
|
66
|
+
return this.currentSession;
|
|
67
|
+
}
|
|
68
|
+
get id() {
|
|
69
|
+
return this.session && this.session.id || '-1';
|
|
70
|
+
}
|
|
71
|
+
get label() {
|
|
72
|
+
return this.session && this.session.label || common_1.nls.localize('theia/debug/unknownSession', 'Unknown Session');
|
|
73
|
+
}
|
|
74
|
+
init() {
|
|
75
|
+
this.toDispose.push(this.manager.onDidChangeActiveDebugSession(() => {
|
|
76
|
+
this.fireDidChange();
|
|
77
|
+
}));
|
|
78
|
+
this.toDispose.push(this.manager.onDidChange(current => {
|
|
79
|
+
if (current === this.currentSession) {
|
|
80
|
+
this.fireDidChange();
|
|
81
|
+
}
|
|
82
|
+
}));
|
|
83
|
+
this.toDispose.push(this.manager.onDidChangeBreakpoints(({ session, uri }) => {
|
|
84
|
+
if (!session || session === this.currentSession) {
|
|
85
|
+
this.fireDidChangeBreakpoints(uri);
|
|
86
|
+
}
|
|
87
|
+
}));
|
|
88
|
+
this.updateWatchExpressions();
|
|
89
|
+
this.toDispose.push(this.watch.onDidChange(() => this.updateWatchExpressions()));
|
|
90
|
+
}
|
|
91
|
+
dispose() {
|
|
92
|
+
this.toDispose.dispose();
|
|
93
|
+
}
|
|
94
|
+
get currentSession() {
|
|
95
|
+
const { currentSession } = this.manager;
|
|
96
|
+
return currentSession;
|
|
97
|
+
}
|
|
98
|
+
set currentSession(currentSession) {
|
|
99
|
+
this.manager.currentSession = currentSession;
|
|
100
|
+
}
|
|
101
|
+
get state() {
|
|
102
|
+
const { currentSession } = this;
|
|
103
|
+
return currentSession && currentSession.state || debug_session_1.DebugState.Inactive;
|
|
104
|
+
}
|
|
105
|
+
get currentThread() {
|
|
106
|
+
const { currentSession } = this;
|
|
107
|
+
return currentSession && currentSession.currentThread;
|
|
108
|
+
}
|
|
109
|
+
get currentFrame() {
|
|
110
|
+
const { currentThread } = this;
|
|
111
|
+
return currentThread && currentThread.currentFrame;
|
|
112
|
+
}
|
|
113
|
+
get breakpoints() {
|
|
114
|
+
return this.manager.getBreakpoints(this.currentSession);
|
|
115
|
+
}
|
|
116
|
+
get functionBreakpoints() {
|
|
117
|
+
return this.manager.getFunctionBreakpoints(this.currentSession);
|
|
118
|
+
}
|
|
119
|
+
get instructionBreakpoints() {
|
|
120
|
+
return this.manager.getInstructionBreakpoints(this.currentSession);
|
|
121
|
+
}
|
|
122
|
+
get dataBreakpoints() {
|
|
123
|
+
return this.manager.getDataBreakpoints(this.currentSession);
|
|
124
|
+
}
|
|
125
|
+
async start(options = {}) {
|
|
126
|
+
const { session } = this;
|
|
127
|
+
if (!session) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const optionsCopy = (0, common_1.deepClone)(session.options);
|
|
131
|
+
const newSession = await this.manager.start(Object.assign(optionsCopy, options));
|
|
132
|
+
if (newSession) {
|
|
133
|
+
this.fireDidChange();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
async restart() {
|
|
137
|
+
const { session } = this;
|
|
138
|
+
if (!session) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
await this.manager.restartSession(session);
|
|
142
|
+
this.fireDidChange();
|
|
143
|
+
}
|
|
144
|
+
async terminate() {
|
|
145
|
+
this.manager.terminateSession();
|
|
146
|
+
}
|
|
147
|
+
get watchExpressions() {
|
|
148
|
+
return this._watchExpressions.values();
|
|
149
|
+
}
|
|
150
|
+
async addWatchExpression(expression = '') {
|
|
151
|
+
const watchExpression = new debug_watch_expression_1.DebugWatchExpression({
|
|
152
|
+
id: Number.MAX_SAFE_INTEGER,
|
|
153
|
+
expression,
|
|
154
|
+
session: () => this.currentSession,
|
|
155
|
+
remove: () => this.removeWatchExpression(watchExpression),
|
|
156
|
+
onDidChange: () => { },
|
|
157
|
+
});
|
|
158
|
+
await watchExpression.open();
|
|
159
|
+
if (!watchExpression.expression) {
|
|
160
|
+
return undefined;
|
|
161
|
+
}
|
|
162
|
+
const id = this.watch.addWatchExpression(watchExpression.expression);
|
|
163
|
+
return this._watchExpressions.get(id);
|
|
164
|
+
}
|
|
165
|
+
removeWatchExpressions() {
|
|
166
|
+
this.watch.removeWatchExpressions();
|
|
167
|
+
}
|
|
168
|
+
removeWatchExpression(expression) {
|
|
169
|
+
this.watch.removeWatchExpression(expression.id);
|
|
170
|
+
}
|
|
171
|
+
updateWatchExpressions() {
|
|
172
|
+
let added = false;
|
|
173
|
+
const toRemove = new Set(this._watchExpressions.keys());
|
|
174
|
+
for (const [id, expression] of this.watch.watchExpressions) {
|
|
175
|
+
toRemove.delete(id);
|
|
176
|
+
if (!this._watchExpressions.has(id)) {
|
|
177
|
+
added = true;
|
|
178
|
+
const watchExpression = new debug_watch_expression_1.DebugWatchExpression({
|
|
179
|
+
id,
|
|
180
|
+
expression,
|
|
181
|
+
session: () => this.currentSession,
|
|
182
|
+
remove: () => this.removeWatchExpression(watchExpression),
|
|
183
|
+
onDidChange: () => this.fireDidChangeWatchExpressions()
|
|
184
|
+
});
|
|
185
|
+
this._watchExpressions.set(id, watchExpression);
|
|
186
|
+
watchExpression.evaluate();
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
for (const id of toRemove) {
|
|
190
|
+
this._watchExpressions.delete(id);
|
|
191
|
+
}
|
|
192
|
+
if (added || toRemove.size) {
|
|
193
|
+
this.fireDidChangeWatchExpressions();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
exports.DebugViewModel = DebugViewModel;
|
|
198
|
+
tslib_1.__decorate([
|
|
199
|
+
(0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
|
|
200
|
+
tslib_1.__metadata("design:type", debug_session_manager_1.DebugSessionManager)
|
|
201
|
+
], DebugViewModel.prototype, "manager", void 0);
|
|
202
|
+
tslib_1.__decorate([
|
|
203
|
+
(0, inversify_1.inject)(debug_watch_manager_1.DebugWatchManager),
|
|
204
|
+
tslib_1.__metadata("design:type", debug_watch_manager_1.DebugWatchManager)
|
|
205
|
+
], DebugViewModel.prototype, "watch", void 0);
|
|
206
|
+
tslib_1.__decorate([
|
|
207
|
+
(0, inversify_1.postConstruct)(),
|
|
208
|
+
tslib_1.__metadata("design:type", Function),
|
|
209
|
+
tslib_1.__metadata("design:paramtypes", []),
|
|
210
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
211
|
+
], DebugViewModel.prototype, "init", null);
|
|
212
|
+
exports.DebugViewModel = DebugViewModel = tslib_1.__decorate([
|
|
213
|
+
(0, inversify_1.injectable)()
|
|
214
|
+
], DebugViewModel);
|
|
215
|
+
//# sourceMappingURL=debug-view-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-view-model.js","sourceRoot":"","sources":["../../../src/browser/view/debug-view-model.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,2CAAkC;AAClC,4DAAiF;AACjF,mDAA0G;AAE1G,oDAA4D;AAC5D,oEAA+D;AAI/D,qEAAgE;AAChE,gEAA2D;AAOpD,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QAEgB,uBAAkB,GAAG,IAAI,gBAAO,EAAQ,CAAC;QACnD,gBAAW,GAAgB,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;QAM/C,kCAA6B,GAAG,IAAI,gBAAO,EAAO,CAAC;QAC7D,2BAAsB,GAAe,IAAI,CAAC,6BAA6B,CAAC,KAAK,CAAC;QAKpE,sBAAiB,GAAG,IAAI,GAAG,EAAgC,CAAC;QAE5D,uCAAkC,GAAG,IAAI,gBAAO,EAAQ,CAAC;QACnE,gCAA2B,GAAG,IAAI,CAAC,kCAAkC,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iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACtC,CAAC;QACD,IAAI,KAAK,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;YACzB,IAAI,CAAC,6BAA6B,EAAE,CAAC;QACzC,CAAC;IACL,CAAC;CAaJ,CAAA;AAzMY,wCAAc;AA8BJ;IADlB,IAAA,kBAAM,EAAC,2CAAmB,CAAC;sCACA,2CAAmB;+CAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,uCAAiB,CAAC;sCACA,uCAAiB;6CAAC;AAmBlC;IADT,IAAA,yBAAa,GAAE;;;;0CAiBf;yBApEQ,cAAc;IAD1B,IAAA,sBAAU,GAAE;GACA,cAAc,CAyM1B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as React from '@theia/core/shared/react';
|
|
3
|
+
import { ExpressionItem, DebugSessionProvider } from '../console/debug-console-items';
|
|
4
|
+
import { DebugProtocol } from '@vscode/debugprotocol';
|
|
5
|
+
export declare class DebugWatchExpression extends ExpressionItem {
|
|
6
|
+
protected readonly options: {
|
|
7
|
+
id: number;
|
|
8
|
+
expression: string;
|
|
9
|
+
session: DebugSessionProvider;
|
|
10
|
+
remove: () => void;
|
|
11
|
+
onDidChange: () => void;
|
|
12
|
+
};
|
|
13
|
+
readonly id: number;
|
|
14
|
+
protected isError: boolean;
|
|
15
|
+
protected isNotAvailable: boolean;
|
|
16
|
+
constructor(options: {
|
|
17
|
+
id: number;
|
|
18
|
+
expression: string;
|
|
19
|
+
session: DebugSessionProvider;
|
|
20
|
+
remove: () => void;
|
|
21
|
+
onDidChange: () => void;
|
|
22
|
+
});
|
|
23
|
+
evaluate(): Promise<void>;
|
|
24
|
+
protected setResult(body?: DebugProtocol.EvaluateResponse['body'], error?: string): void;
|
|
25
|
+
render(): React.ReactNode;
|
|
26
|
+
protected valueClass(): string;
|
|
27
|
+
open(): Promise<void>;
|
|
28
|
+
get supportCopyValue(): boolean;
|
|
29
|
+
copyValue(): void;
|
|
30
|
+
protected valueRef: HTMLSpanElement | undefined;
|
|
31
|
+
protected setValueRef: (valueRef: HTMLSpanElement | null) => HTMLSpanElement | undefined;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=debug-watch-expression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug-watch-expression.d.ts","sourceRoot":"","sources":["../../../src/browser/view/debug-watch-expression.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItD,qBAAa,oBAAqB,SAAQ,cAAc;IAMxC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE;QACpC,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,oBAAoB,CAAC;QAC9B,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,WAAW,EAAE,MAAM,IAAI,CAAA;KAC1B;IAVD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;gBAEH,OAAO,EAAE;QACpC,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,oBAAoB,CAAC;QAC9B,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,WAAW,EAAE,MAAM,IAAI,CAAA;KAC1B;IAKc,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;cAIrB,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAiBxF,MAAM,IAAI,KAAK,CAAC,S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