@theia/debug 1.67.0-next.13 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +15 -15
- package/src/browser/breakpoint/breakpoint-manager.ts +69 -16
- package/src/browser/breakpoint/breakpoint-marker.ts +38 -0
- package/src/browser/breakpoint/debug-data-breakpoint-actions.ts +170 -0
- package/src/browser/console/debug-console-items.tsx +5 -1
- package/src/browser/debug-frontend-application-contribution.ts +19 -0
- package/src/browser/debug-frontend-module.ts +2 -0
- package/src/browser/debug-session-manager.ts +18 -0
- package/src/browser/debug-session.tsx +31 -0
- package/src/browser/model/debug-data-breakpoint.tsx +79 -0
- package/src/browser/style/index.css +4 -0
- package/src/browser/view/debug-breakpoints-source.tsx +4 -10
- package/src/browser/view/debug-stack-frames-widget.ts +6 -2
- package/src/browser/view/debug-variables-widget.ts +99 -2
- package/src/browser/view/debug-view-model.ts +5 -0
- package/lib/browser/breakpoint/breakpoint-manager.d.ts +0 -71
- package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +0 -1
- package/lib/browser/breakpoint/breakpoint-manager.js +0 -321
- package/lib/browser/breakpoint/breakpoint-manager.js.map +0 -1
- package/lib/browser/breakpoint/breakpoint-marker.d.ts +0 -42
- package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +0 -1
- package/lib/browser/breakpoint/breakpoint-marker.js +0 -88
- package/lib/browser/breakpoint/breakpoint-marker.js.map +0 -1
- package/lib/browser/console/debug-console-contribution.d.ts +0 -45
- package/lib/browser/console/debug-console-contribution.d.ts.map +0 -1
- package/lib/browser/console/debug-console-contribution.js +0 -233
- package/lib/browser/console/debug-console-contribution.js.map +0 -1
- package/lib/browser/console/debug-console-items.d.ts +0 -97
- package/lib/browser/console/debug-console-items.d.ts.map +0 -1
- package/lib/browser/console/debug-console-items.js +0 -343
- package/lib/browser/console/debug-console-items.js.map +0 -1
- package/lib/browser/console/debug-console-session.d.ts +0 -32
- package/lib/browser/console/debug-console-session.d.ts.map +0 -1
- package/lib/browser/console/debug-console-session.js +0 -192
- package/lib/browser/console/debug-console-session.js.map +0 -1
- package/lib/browser/debug-call-stack-item-type-key.d.ts +0 -4
- package/lib/browser/debug-call-stack-item-type-key.d.ts.map +0 -1
- package/lib/browser/debug-call-stack-item-type-key.js +0 -20
- package/lib/browser/debug-call-stack-item-type-key.js.map +0 -1
- package/lib/browser/debug-configuration-manager.d.ts +0 -103
- package/lib/browser/debug-configuration-manager.d.ts.map +0 -1
- package/lib/browser/debug-configuration-manager.js +0 -545
- package/lib/browser/debug-configuration-manager.js.map +0 -1
- package/lib/browser/debug-configuration-model.d.ts +0 -30
- package/lib/browser/debug-configuration-model.d.ts.map +0 -1
- package/lib/browser/debug-configuration-model.js +0 -80
- package/lib/browser/debug-configuration-model.js.map +0 -1
- package/lib/browser/debug-contribution.d.ts +0 -23
- package/lib/browser/debug-contribution.d.ts.map +0 -1
- package/lib/browser/debug-contribution.js +0 -20
- package/lib/browser/debug-contribution.js.map +0 -1
- package/lib/browser/debug-frontend-application-contribution.d.ts +0 -249
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +0 -1
- package/lib/browser/debug-frontend-application-contribution.js +0 -1678
- package/lib/browser/debug-frontend-application-contribution.js.map +0 -1
- package/lib/browser/debug-frontend-module.d.ts +0 -5
- package/lib/browser/debug-frontend-module.d.ts.map +0 -1
- package/lib/browser/debug-frontend-module.js +0 -110
- package/lib/browser/debug-frontend-module.js.map +0 -1
- package/lib/browser/debug-package.spec.d.ts +0 -1
- package/lib/browser/debug-package.spec.d.ts.map +0 -1
- package/lib/browser/debug-package.spec.js +0 -19
- package/lib/browser/debug-package.spec.js.map +0 -1
- package/lib/browser/debug-prefix-configuration.d.ts +0 -52
- package/lib/browser/debug-prefix-configuration.d.ts.map +0 -1
- package/lib/browser/debug-prefix-configuration.js +0 -202
- package/lib/browser/debug-prefix-configuration.js.map +0 -1
- package/lib/browser/debug-resource.d.ts +0 -15
- package/lib/browser/debug-resource.d.ts.map +0 -1
- package/lib/browser/debug-resource.js +0 -58
- package/lib/browser/debug-resource.js.map +0 -1
- package/lib/browser/debug-schema-updater.d.ts +0 -14
- package/lib/browser/debug-schema-updater.d.ts.map +0 -1
- package/lib/browser/debug-schema-updater.js +0 -161
- package/lib/browser/debug-schema-updater.js.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.d.ts +0 -11
- package/lib/browser/debug-session-configuration-label-provider.d.ts.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.js +0 -48
- package/lib/browser/debug-session-configuration-label-provider.js.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +0 -2
- package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +0 -1
- package/lib/browser/debug-session-configuration-label-provider.spec.js +0 -84
- package/lib/browser/debug-session-configuration-label-provider.spec.js.map +0 -1
- package/lib/browser/debug-session-connection.d.ts +0 -111
- package/lib/browser/debug-session-connection.d.ts.map +0 -1
- package/lib/browser/debug-session-connection.js +0 -259
- package/lib/browser/debug-session-connection.js.map +0 -1
- package/lib/browser/debug-session-contribution.d.ts +0 -77
- package/lib/browser/debug-session-contribution.d.ts.map +0 -1
- package/lib/browser/debug-session-contribution.js +0 -143
- package/lib/browser/debug-session-contribution.js.map +0 -1
- package/lib/browser/debug-session-manager.d.ts +0 -138
- package/lib/browser/debug-session-manager.d.ts.map +0 -1
- package/lib/browser/debug-session-manager.js +0 -620
- package/lib/browser/debug-session-manager.js.map +0 -1
- package/lib/browser/debug-session-options.d.ts +0 -56
- package/lib/browser/debug-session-options.d.ts.map +0 -1
- package/lib/browser/debug-session-options.js +0 -92
- package/lib/browser/debug-session-options.js.map +0 -1
- package/lib/browser/debug-session.d.ts +0 -192
- package/lib/browser/debug-session.d.ts.map +0 -1
- package/lib/browser/debug-session.js +0 -913
- package/lib/browser/debug-session.js.map +0 -1
- package/lib/browser/debug-tab-bar-decorator.d.ts +0 -17
- package/lib/browser/debug-tab-bar-decorator.d.ts.map +0 -1
- package/lib/browser/debug-tab-bar-decorator.js +0 -63
- package/lib/browser/debug-tab-bar-decorator.js.map +0 -1
- package/lib/browser/debug-watch-manager.d.ts +0 -22
- package/lib/browser/debug-watch-manager.d.ts.map +0 -1
- package/lib/browser/debug-watch-manager.js +0 -86
- package/lib/browser/debug-watch-manager.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +0 -7
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +0 -39
- package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +0 -20
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +0 -111
- package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +0 -25
- package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-contribution.js +0 -124
- package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +0 -39
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +0 -213
- package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +0 -16
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +0 -39
- package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +0 -38
- package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-utilities.js +0 -18
- package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +0 -61
- package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +0 -1
- package/lib/browser/disassembly-view/disassembly-view-widget.js +0 -446
- package/lib/browser/disassembly-view/disassembly-view-widget.js.map +0 -1
- package/lib/browser/editor/debug-breakpoint-widget.d.ts +0 -58
- package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-breakpoint-widget.js +0 -270
- package/lib/browser/editor/debug-breakpoint-widget.js.map +0 -1
- package/lib/browser/editor/debug-editor-model.d.ts +0 -87
- package/lib/browser/editor/debug-editor-model.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor-model.js +0 -499
- package/lib/browser/editor/debug-editor-model.js.map +0 -1
- package/lib/browser/editor/debug-editor-service.d.ts +0 -38
- package/lib/browser/editor/debug-editor-service.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor-service.js +0 -183
- package/lib/browser/editor/debug-editor-service.js.map +0 -1
- package/lib/browser/editor/debug-editor.d.ts +0 -4
- package/lib/browser/editor/debug-editor.d.ts.map +0 -1
- package/lib/browser/editor/debug-editor.js +0 -20
- package/lib/browser/editor/debug-editor.js.map +0 -1
- package/lib/browser/editor/debug-exception-widget.d.ts +0 -30
- package/lib/browser/editor/debug-exception-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-exception-widget.js +0 -107
- package/lib/browser/editor/debug-exception-widget.js.map +0 -1
- package/lib/browser/editor/debug-expression-provider.d.ts +0 -17
- package/lib/browser/editor/debug-expression-provider.d.ts.map +0 -1
- package/lib/browser/editor/debug-expression-provider.js +0 -107
- package/lib/browser/editor/debug-expression-provider.js.map +0 -1
- package/lib/browser/editor/debug-hover-source.d.ts +0 -19
- package/lib/browser/editor/debug-hover-source.d.ts.map +0 -1
- package/lib/browser/editor/debug-hover-source.js +0 -110
- package/lib/browser/editor/debug-hover-source.js.map +0 -1
- package/lib/browser/editor/debug-hover-widget.d.ts +0 -61
- package/lib/browser/editor/debug-hover-widget.d.ts.map +0 -1
- package/lib/browser/editor/debug-hover-widget.js +0 -271
- package/lib/browser/editor/debug-hover-widget.js.map +0 -1
- package/lib/browser/editor/debug-inline-value-decorator.d.ts +0 -20
- package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +0 -1
- package/lib/browser/editor/debug-inline-value-decorator.js +0 -326
- package/lib/browser/editor/debug-inline-value-decorator.js.map +0 -1
- package/lib/browser/model/debug-breakpoint.d.ts +0 -48
- package/lib/browser/model/debug-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-breakpoint.js +0 -111
- package/lib/browser/model/debug-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-function-breakpoint.d.ts +0 -19
- package/lib/browser/model/debug-function-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-function-breakpoint.js +0 -93
- package/lib/browser/model/debug-function-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-instruction-breakpoint.d.ts +0 -15
- package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-instruction-breakpoint.js +0 -66
- package/lib/browser/model/debug-instruction-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-source-breakpoint.d.ts +0 -39
- package/lib/browser/model/debug-source-breakpoint.d.ts.map +0 -1
- package/lib/browser/model/debug-source-breakpoint.js +0 -219
- package/lib/browser/model/debug-source-breakpoint.js.map +0 -1
- package/lib/browser/model/debug-source.d.ts +0 -25
- package/lib/browser/model/debug-source.d.ts.map +0 -1
- package/lib/browser/model/debug-source.js +0 -81
- package/lib/browser/model/debug-source.js.map +0 -1
- package/lib/browser/model/debug-stack-frame.d.ts +0 -45
- package/lib/browser/model/debug-stack-frame.d.ts.map +0 -1
- package/lib/browser/model/debug-stack-frame.js +0 -157
- package/lib/browser/model/debug-stack-frame.js.map +0 -1
- package/lib/browser/model/debug-thread.d.ts +0 -68
- package/lib/browser/model/debug-thread.d.ts.map +0 -1
- package/lib/browser/model/debug-thread.js +0 -262
- package/lib/browser/model/debug-thread.js.map +0 -1
- package/lib/browser/view/debug-action.d.ts +0 -18
- package/lib/browser/view/debug-action.d.ts.map +0 -1
- package/lib/browser/view/debug-action.js +0 -44
- package/lib/browser/view/debug-action.js.map +0 -1
- package/lib/browser/view/debug-breakpoints-source.d.ts +0 -10
- package/lib/browser/view/debug-breakpoints-source.d.ts.map +0 -1
- package/lib/browser/view/debug-breakpoints-source.js +0 -63
- package/lib/browser/view/debug-breakpoints-source.js.map +0 -1
- package/lib/browser/view/debug-breakpoints-widget.d.ts +0 -23
- package/lib/browser/view/debug-breakpoints-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-breakpoints-widget.js +0 -81
- package/lib/browser/view/debug-breakpoints-widget.js.map +0 -1
- package/lib/browser/view/debug-configuration-select.d.ts +0 -67
- package/lib/browser/view/debug-configuration-select.d.ts.map +0 -1
- package/lib/browser/view/debug-configuration-select.js +0 -212
- package/lib/browser/view/debug-configuration-select.js.map +0 -1
- package/lib/browser/view/debug-configuration-widget.d.ts +0 -33
- package/lib/browser/view/debug-configuration-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-configuration-widget.js +0 -137
- package/lib/browser/view/debug-configuration-widget.js.map +0 -1
- package/lib/browser/view/debug-exception-breakpoint.d.ts +0 -15
- package/lib/browser/view/debug-exception-breakpoint.d.ts.map +0 -1
- package/lib/browser/view/debug-exception-breakpoint.js +0 -62
- package/lib/browser/view/debug-exception-breakpoint.js.map +0 -1
- package/lib/browser/view/debug-session-widget.d.ts +0 -29
- package/lib/browser/view/debug-session-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-session-widget.js +0 -127
- package/lib/browser/view/debug-session-widget.js.map +0 -1
- package/lib/browser/view/debug-stack-frames-source.d.ts +0 -18
- package/lib/browser/view/debug-stack-frames-source.d.ts.map +0 -1
- package/lib/browser/view/debug-stack-frames-source.js +0 -83
- package/lib/browser/view/debug-stack-frames-source.js.map +0 -1
- package/lib/browser/view/debug-stack-frames-widget.d.ts +0 -25
- package/lib/browser/view/debug-stack-frames-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-stack-frames-widget.js +0 -147
- package/lib/browser/view/debug-stack-frames-widget.js.map +0 -1
- package/lib/browser/view/debug-threads-source.d.ts +0 -9
- package/lib/browser/view/debug-threads-source.d.ts.map +0 -1
- package/lib/browser/view/debug-threads-source.js +0 -56
- package/lib/browser/view/debug-threads-source.js.map +0 -1
- package/lib/browser/view/debug-threads-widget.d.ts +0 -27
- package/lib/browser/view/debug-threads-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-threads-widget.js +0 -139
- package/lib/browser/view/debug-threads-widget.js.map +0 -1
- package/lib/browser/view/debug-toolbar-widget.d.ts +0 -34
- package/lib/browser/view/debug-toolbar-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-toolbar-widget.js +0 -139
- package/lib/browser/view/debug-toolbar-widget.js.map +0 -1
- package/lib/browser/view/debug-variables-source.d.ts +0 -10
- package/lib/browser/view/debug-variables-source.d.ts.map +0 -1
- package/lib/browser/view/debug-variables-source.js +0 -53
- package/lib/browser/view/debug-variables-source.js.map +0 -1
- package/lib/browser/view/debug-variables-widget.d.ts +0 -17
- package/lib/browser/view/debug-variables-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-variables-widget.js +0 -71
- package/lib/browser/view/debug-variables-widget.js.map +0 -1
- package/lib/browser/view/debug-view-model.d.ts +0 -53
- package/lib/browser/view/debug-view-model.d.ts.map +0 -1
- package/lib/browser/view/debug-view-model.js +0 -212
- package/lib/browser/view/debug-view-model.js.map +0 -1
- package/lib/browser/view/debug-watch-expression.d.ts +0 -33
- package/lib/browser/view/debug-watch-expression.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-expression.js +0 -93
- package/lib/browser/view/debug-watch-expression.js.map +0 -1
- package/lib/browser/view/debug-watch-source.d.ts +0 -10
- package/lib/browser/view/debug-watch-source.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-source.js +0 -51
- package/lib/browser/view/debug-watch-source.js.map +0 -1
- package/lib/browser/view/debug-watch-widget.d.ts +0 -17
- package/lib/browser/view/debug-watch-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-watch-widget.js +0 -71
- package/lib/browser/view/debug-watch-widget.js.map +0 -1
- package/lib/browser/view/debug-widget.d.ts +0 -24
- package/lib/browser/view/debug-widget.d.ts.map +0 -1
- package/lib/browser/view/debug-widget.js +0 -101
- package/lib/browser/view/debug-widget.js.map +0 -1
- package/lib/common/debug-adapter-contribution-registry.d.ts +0 -60
- package/lib/common/debug-adapter-contribution-registry.d.ts.map +0 -1
- package/lib/common/debug-adapter-contribution-registry.js +0 -205
- package/lib/common/debug-adapter-contribution-registry.js.map +0 -1
- package/lib/common/debug-adapter-session.d.ts +0 -19
- package/lib/common/debug-adapter-session.d.ts.map +0 -1
- package/lib/common/debug-adapter-session.js +0 -79
- package/lib/common/debug-adapter-session.js.map +0 -1
- package/lib/common/debug-common.d.ts +0 -2
- package/lib/common/debug-common.d.ts.map +0 -1
- package/lib/common/debug-common.js +0 -21
- package/lib/common/debug-common.js.map +0 -1
- package/lib/common/debug-compound.d.ts +0 -15
- package/lib/common/debug-compound.d.ts.map +0 -1
- package/lib/common/debug-compound.js +0 -28
- package/lib/common/debug-compound.js.map +0 -1
- package/lib/common/debug-configuration.d.ts +0 -77
- package/lib/common/debug-configuration.d.ts.map +0 -1
- package/lib/common/debug-configuration.js +0 -32
- package/lib/common/debug-configuration.js.map +0 -1
- package/lib/common/debug-model.d.ts +0 -153
- package/lib/common/debug-model.d.ts.map +0 -1
- package/lib/common/debug-model.js +0 -36
- package/lib/common/debug-model.js.map +0 -1
- package/lib/common/debug-preferences.d.ts +0 -18
- package/lib/common/debug-preferences.d.ts.map +0 -1
- package/lib/common/debug-preferences.js +0 -89
- package/lib/common/debug-preferences.js.map +0 -1
- package/lib/common/debug-service.d.ts +0 -124
- package/lib/common/debug-service.d.ts.map +0 -1
- package/lib/common/debug-service.js +0 -67
- package/lib/common/debug-service.js.map +0 -1
- package/lib/common/debug-uri-utils.d.ts +0 -24
- package/lib/common/debug-uri-utils.d.ts.map +0 -1
- package/lib/common/debug-uri-utils.js +0 -27
- package/lib/common/debug-uri-utils.js.map +0 -1
- package/lib/common/inline-debug-adapter.d.ts +0 -19
- package/lib/common/inline-debug-adapter.d.ts.map +0 -1
- package/lib/common/inline-debug-adapter.js +0 -45
- package/lib/common/inline-debug-adapter.js.map +0 -1
- package/lib/common/launch-preferences.d.ts +0 -6
- package/lib/common/launch-preferences.d.ts.map +0 -1
- package/lib/common/launch-preferences.js +0 -37
- package/lib/common/launch-preferences.js.map +0 -1
- package/lib/node/debug-adapter-factory.d.ts +0 -20
- package/lib/node/debug-adapter-factory.d.ts.map +0 -1
- package/lib/node/debug-adapter-factory.js +0 -89
- package/lib/node/debug-adapter-factory.js.map +0 -1
- package/lib/node/debug-adapter-session-manager.d.ts +0 -38
- package/lib/node/debug-adapter-session-manager.d.ts.map +0 -1
- package/lib/node/debug-adapter-session-manager.js +0 -104
- package/lib/node/debug-adapter-session-manager.js.map +0 -1
- package/lib/node/debug-backend-module.d.ts +0 -4
- package/lib/node/debug-backend-module.d.ts.map +0 -1
- package/lib/node/debug-backend-module.js +0 -45
- package/lib/node/debug-backend-module.js.map +0 -1
- package/lib/node/debug-service-impl.d.ts +0 -31
- package/lib/node/debug-service-impl.d.ts.map +0 -1
- package/lib/node/debug-service-impl.js +0 -117
- package/lib/node/debug-service-impl.js.map +0 -1
- package/lib/node/stream-debug-adapter.d.ts +0 -41
- package/lib/node/stream-debug-adapter.d.ts.map +0 -1
- package/lib/node/stream-debug-adapter.js +0 -113
- package/lib/node/stream-debug-adapter.js.map +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as React from '@theia/core/shared/react';
|
|
3
|
-
import { InstructionBreakpoint } from '../breakpoint/breakpoint-marker';
|
|
4
|
-
import { DebugBreakpoint, DebugBreakpointDecoration, DebugBreakpointOptions } from './debug-breakpoint';
|
|
5
|
-
export declare class DebugInstructionBreakpoint extends DebugBreakpoint<InstructionBreakpoint> {
|
|
6
|
-
readonly origin: InstructionBreakpoint;
|
|
7
|
-
constructor(origin: InstructionBreakpoint, options: DebugBreakpointOptions);
|
|
8
|
-
setEnabled(enabled: boolean): void;
|
|
9
|
-
protected isEnabled(): boolean;
|
|
10
|
-
protected isSupported(): boolean;
|
|
11
|
-
remove(): void;
|
|
12
|
-
protected doRender(): React.ReactNode;
|
|
13
|
-
protected getBreakpointDecoration(message?: string[]): DebugBreakpointDecoration;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=debug-instruction-breakpoint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-instruction-breakpoint.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-instruction-breakpoint.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAExG,qBAAa,0BAA2B,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IACtE,QAAQ,CAAC,MAAM,EAAE,qBAAqB;gBAA7B,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,sBAAsB;IAInF,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;cAMf,SAAS,IAAI,OAAO;IAIvC,SAAS,CAAC,WAAW,IAAI,OAAO;IAIhC,MAAM,IAAI,IAAI;IAId,SAAS,CAAC,QAAQ,IAAI,KAAK,CAAC,SAAS;IAIrC,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,yBAAyB;CAkBnF"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2022 Ericsson 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.DebugInstructionBreakpoint = void 0;
|
|
19
|
-
const core_1 = require("@theia/core");
|
|
20
|
-
const React = require("@theia/core/shared/react");
|
|
21
|
-
const breakpoint_manager_1 = require("../breakpoint/breakpoint-manager");
|
|
22
|
-
const debug_breakpoint_1 = require("./debug-breakpoint");
|
|
23
|
-
class DebugInstructionBreakpoint extends debug_breakpoint_1.DebugBreakpoint {
|
|
24
|
-
constructor(origin, options) {
|
|
25
|
-
super(breakpoint_manager_1.BreakpointManager.INSTRUCTION_URI, options);
|
|
26
|
-
this.origin = origin;
|
|
27
|
-
}
|
|
28
|
-
setEnabled(enabled) {
|
|
29
|
-
if (enabled !== this.origin.enabled) {
|
|
30
|
-
this.breakpoints.updateInstructionBreakpoint(this.origin.id, { enabled });
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
isEnabled() {
|
|
34
|
-
return super.isEnabled() && this.isSupported();
|
|
35
|
-
}
|
|
36
|
-
isSupported() {
|
|
37
|
-
var _a;
|
|
38
|
-
return Boolean((_a = this.session) === null || _a === void 0 ? void 0 : _a.capabilities.supportsInstructionBreakpoints);
|
|
39
|
-
}
|
|
40
|
-
remove() {
|
|
41
|
-
this.breakpoints.removeInstructionBreakpoint(this.origin.instructionReference);
|
|
42
|
-
}
|
|
43
|
-
doRender() {
|
|
44
|
-
return React.createElement("span", { className: "line-info" }, this.origin.instructionReference);
|
|
45
|
-
}
|
|
46
|
-
getBreakpointDecoration(message) {
|
|
47
|
-
if (!this.isSupported()) {
|
|
48
|
-
return {
|
|
49
|
-
className: 'codicon-debug-breakpoint-unsupported',
|
|
50
|
-
message: message !== null && message !== void 0 ? message : [core_1.nls.localize('theia/debug/instruction-breakpoint', 'Instruction Breakpoint')],
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
if (this.origin.condition || this.origin.hitCondition) {
|
|
54
|
-
return {
|
|
55
|
-
className: 'codicon-debug-breakpoint-conditional',
|
|
56
|
-
message: message || [core_1.nls.localize('theia/debug/conditionalBreakpoint', 'Conditional Breakpoint')]
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
className: 'codicon-debug-breakpoint',
|
|
61
|
-
message: message || [core_1.nls.localize('theia/debug/instruction-breakpoint', 'Instruction Breakpoint')]
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.DebugInstructionBreakpoint = DebugInstructionBreakpoint;
|
|
66
|
-
//# sourceMappingURL=debug-instruction-breakpoint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-instruction-breakpoint.js","sourceRoot":"","sources":["../../../src/browser/model/debug-instruction-breakpoint.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAy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,CAAC,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YACpD,OAAO;gBACH,SAAS,EAAE,sCAAsC;gBACjD,OAAO,EAAE,OAAO,IAAI,CAAC,UAAG,CAAC,QAAQ,CAAC,mCAAmC,EAAE,wBAAwB,CAAC,CAAC;aACpG,CAAC;QACN,CAAC;QACD,OAAO;YACH,SAAS,EAAE,0BAA0B;YACrC,OAAO,EAAE,OAAO,IAAI,CAAC,UAAG,CAAC,QAAQ,CAAC,oCAAoC,EAAE,wBAAwB,CAAC,CAAC;SACrG,CAAC;IACN,CAAC;CACJ;AA7CD,gEA6CC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as React from '@theia/core/shared/react';
|
|
3
|
-
import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol';
|
|
4
|
-
import { EditorWidget } from '@theia/editor/lib/browser';
|
|
5
|
-
import { WidgetOpenerOptions } from '@theia/core/lib/browser';
|
|
6
|
-
import { TreeElement } from '@theia/core/lib/browser/source-tree';
|
|
7
|
-
import { SourceBreakpoint } from '../breakpoint/breakpoint-marker';
|
|
8
|
-
import { DebugSource } from './debug-source';
|
|
9
|
-
import { DebugBreakpoint, DebugBreakpointOptions, DebugBreakpointData, DebugBreakpointDecoration } from './debug-breakpoint';
|
|
10
|
-
export declare class DebugSourceBreakpointData extends DebugBreakpointData {
|
|
11
|
-
readonly origins: SourceBreakpoint[];
|
|
12
|
-
}
|
|
13
|
-
export declare class DebugSourceBreakpoint extends DebugBreakpoint<SourceBreakpoint> implements TreeElement {
|
|
14
|
-
readonly origins: SourceBreakpoint[];
|
|
15
|
-
constructor(origin: SourceBreakpoint, options: DebugBreakpointOptions);
|
|
16
|
-
update(data: Partial<DebugSourceBreakpointData>): void;
|
|
17
|
-
get origin(): SourceBreakpoint;
|
|
18
|
-
setEnabled(enabled: boolean): void;
|
|
19
|
-
updateOrigins(data: Partial<DebugProtocol.SourceBreakpoint>): void;
|
|
20
|
-
/** 1-based */
|
|
21
|
-
get line(): number;
|
|
22
|
-
get column(): number | undefined;
|
|
23
|
-
get endLine(): number | undefined;
|
|
24
|
-
get endColumn(): number | undefined;
|
|
25
|
-
get condition(): string | undefined;
|
|
26
|
-
get hitCondition(): string | undefined;
|
|
27
|
-
get logMessage(): string | undefined;
|
|
28
|
-
get source(): DebugSource | undefined;
|
|
29
|
-
open(options?: WidgetOpenerOptions): Promise<EditorWidget>;
|
|
30
|
-
protected setBreakpointEnabled: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
31
|
-
protected doRender(): React.ReactNode;
|
|
32
|
-
renderPosition(): string;
|
|
33
|
-
doGetDecoration(messages?: string[]): DebugBreakpointDecoration;
|
|
34
|
-
protected getUnsupportedBreakpointDecoration(message: string): DebugBreakpointDecoration;
|
|
35
|
-
protected getBreakpointDecoration(message?: string[]): DebugBreakpointDecoration;
|
|
36
|
-
remove(): void;
|
|
37
|
-
protected doRemove(origins: SourceBreakpoint[]): SourceBreakpoint[] | undefined;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=debug-source-breakpoint.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-source-breakpoint.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-source-breakpoint.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAGxE,OAAO,EAAE,YAAY,EAAS,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAwB,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eA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yBAAyB;IA4B5E,SAAS,CAAC,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,yBAAyB;IAOxF,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,yBAAyB;IAmBhF,MAAM,IAAI,IAAI;IAMd,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,GAAG,SAAS;CAmBlF"}
|
|
@@ -1,219 +0,0 @@
|
|
|
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.DebugSourceBreakpoint = exports.DebugSourceBreakpointData = void 0;
|
|
19
|
-
const React = require("@theia/core/shared/react");
|
|
20
|
-
const core_1 = require("@theia/core");
|
|
21
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
const debug_breakpoint_1 = require("./debug-breakpoint");
|
|
24
|
-
class DebugSourceBreakpointData extends debug_breakpoint_1.DebugBreakpointData {
|
|
25
|
-
}
|
|
26
|
-
exports.DebugSourceBreakpointData = DebugSourceBreakpointData;
|
|
27
|
-
class DebugSourceBreakpoint extends debug_breakpoint_1.DebugBreakpoint {
|
|
28
|
-
constructor(origin, options) {
|
|
29
|
-
super(new uri_1.default(origin.uri), options);
|
|
30
|
-
this.setBreakpointEnabled = (event) => {
|
|
31
|
-
this.setEnabled(event.target.checked);
|
|
32
|
-
};
|
|
33
|
-
this.origins = [origin];
|
|
34
|
-
}
|
|
35
|
-
update(data) {
|
|
36
|
-
super.update(data);
|
|
37
|
-
}
|
|
38
|
-
get origin() {
|
|
39
|
-
return this.origins[0];
|
|
40
|
-
}
|
|
41
|
-
setEnabled(enabled) {
|
|
42
|
-
const { uri, raw } = this;
|
|
43
|
-
let shouldUpdate = false;
|
|
44
|
-
let breakpoints = raw && this.doRemove(this.origins.filter(origin => !(origin.raw.line === raw.line && origin.raw.column === raw.column)));
|
|
45
|
-
// Check for breakpoints array with at least one entry
|
|
46
|
-
if (breakpoints && breakpoints.length) {
|
|
47
|
-
shouldUpdate = true;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
breakpoints = this.breakpoints.getBreakpoints(uri);
|
|
51
|
-
}
|
|
52
|
-
for (const breakpoint of breakpoints) {
|
|
53
|
-
if (breakpoint.raw.line === this.origin.raw.line && breakpoint.raw.column === this.origin.raw.column && breakpoint.enabled !== enabled) {
|
|
54
|
-
breakpoint.enabled = enabled;
|
|
55
|
-
shouldUpdate = true;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
if (shouldUpdate) {
|
|
59
|
-
this.breakpoints.setBreakpoints(this.uri, breakpoints);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
updateOrigins(data) {
|
|
63
|
-
const breakpoints = this.breakpoints.getBreakpoints(this.uri);
|
|
64
|
-
let shouldUpdate = false;
|
|
65
|
-
const originPositions = new Set();
|
|
66
|
-
this.origins.forEach(origin => originPositions.add(origin.raw.line + ':' + origin.raw.column));
|
|
67
|
-
for (const breakpoint of breakpoints) {
|
|
68
|
-
if (originPositions.has(breakpoint.raw.line + ':' + breakpoint.raw.column)) {
|
|
69
|
-
Object.assign(breakpoint.raw, data);
|
|
70
|
-
shouldUpdate = true;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
if (shouldUpdate) {
|
|
74
|
-
this.breakpoints.setBreakpoints(this.uri, breakpoints);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/** 1-based */
|
|
78
|
-
get line() {
|
|
79
|
-
return this.raw && this.raw.line || this.origins[0].raw.line;
|
|
80
|
-
}
|
|
81
|
-
get column() {
|
|
82
|
-
return this.raw && this.raw.column || this.origins[0].raw.column;
|
|
83
|
-
}
|
|
84
|
-
get endLine() {
|
|
85
|
-
return this.raw && this.raw.endLine;
|
|
86
|
-
}
|
|
87
|
-
get endColumn() {
|
|
88
|
-
return this.raw && this.raw.endColumn;
|
|
89
|
-
}
|
|
90
|
-
get condition() {
|
|
91
|
-
return this.origin.raw.condition;
|
|
92
|
-
}
|
|
93
|
-
get hitCondition() {
|
|
94
|
-
return this.origin.raw.hitCondition;
|
|
95
|
-
}
|
|
96
|
-
get logMessage() {
|
|
97
|
-
return this.origin.raw.logMessage;
|
|
98
|
-
}
|
|
99
|
-
get source() {
|
|
100
|
-
return this.raw && this.raw.source && this.session && this.session.getSource(this.raw.source);
|
|
101
|
-
}
|
|
102
|
-
async open(options = {
|
|
103
|
-
mode: 'reveal'
|
|
104
|
-
}) {
|
|
105
|
-
const { line, column, endLine, endColumn } = this;
|
|
106
|
-
const selection = {
|
|
107
|
-
start: {
|
|
108
|
-
line: line - 1,
|
|
109
|
-
character: typeof column === 'number' ? column - 1 : undefined
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
if (typeof endLine === 'number') {
|
|
113
|
-
selection.end = {
|
|
114
|
-
line: endLine - 1,
|
|
115
|
-
character: typeof endColumn === 'number' ? endColumn - 1 : undefined
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
if (this.source) {
|
|
119
|
-
return await this.source.open({
|
|
120
|
-
...options,
|
|
121
|
-
selection
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
return await this.editorManager.open(this.uri, {
|
|
126
|
-
...options,
|
|
127
|
-
selection
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
doRender() {
|
|
132
|
-
return React.createElement(React.Fragment, null,
|
|
133
|
-
React.createElement("span", { className: 'line-info', title: this.labelProvider.getLongName(this.uri) },
|
|
134
|
-
React.createElement("span", { className: 'name' },
|
|
135
|
-
this.labelProvider.getName(this.uri),
|
|
136
|
-
" "),
|
|
137
|
-
React.createElement("span", { className: 'path ' + browser_1.TREE_NODE_INFO_CLASS },
|
|
138
|
-
this.labelProvider.getLongName(this.uri.parent),
|
|
139
|
-
" ")),
|
|
140
|
-
React.createElement("span", { className: 'line' }, this.renderPosition()));
|
|
141
|
-
}
|
|
142
|
-
renderPosition() {
|
|
143
|
-
return this.line + (typeof this.column === 'number' ? ':' + this.column : '');
|
|
144
|
-
}
|
|
145
|
-
doGetDecoration(messages = []) {
|
|
146
|
-
if (this.logMessage || this.condition || this.hitCondition) {
|
|
147
|
-
const { session } = this;
|
|
148
|
-
if (this.logMessage) {
|
|
149
|
-
if (session && !session.capabilities.supportsLogPoints) {
|
|
150
|
-
return this.getUnsupportedBreakpointDecoration(core_1.nls.localize('theia/debug/logpointsNotSupported', 'Logpoints not supported by this debug type'));
|
|
151
|
-
}
|
|
152
|
-
messages.push(core_1.nls.localizeByDefault('Log Message: {0}', this.logMessage));
|
|
153
|
-
}
|
|
154
|
-
if (this.condition) {
|
|
155
|
-
if (session && !session.capabilities.supportsConditionalBreakpoints) {
|
|
156
|
-
return this.getUnsupportedBreakpointDecoration(core_1.nls.localize('theia/debug/conditionalBreakpointsNotSupported', 'Conditional breakpoints not supported by this debug type'));
|
|
157
|
-
}
|
|
158
|
-
messages.push(core_1.nls.localizeByDefault('Condition: {0}', this.condition));
|
|
159
|
-
}
|
|
160
|
-
if (this.hitCondition) {
|
|
161
|
-
if (session && !session.capabilities.supportsHitConditionalBreakpoints) {
|
|
162
|
-
return this.getUnsupportedBreakpointDecoration(core_1.nls.localize('theia/debug/htiConditionalBreakpointsNotSupported', 'Hit conditional breakpoints not supported by this debug type'));
|
|
163
|
-
}
|
|
164
|
-
messages.push(core_1.nls.localizeByDefault('Hit Count: {0}', this.hitCondition));
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return super.doGetDecoration(messages);
|
|
168
|
-
}
|
|
169
|
-
getUnsupportedBreakpointDecoration(message) {
|
|
170
|
-
return {
|
|
171
|
-
className: 'codicon-debug-breakpoint-unsupported',
|
|
172
|
-
message: [message]
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
getBreakpointDecoration(message) {
|
|
176
|
-
if (this.logMessage) {
|
|
177
|
-
return {
|
|
178
|
-
className: 'codicon-debug-breakpoint-log',
|
|
179
|
-
message: message || [core_1.nls.localizeByDefault('Logpoint')]
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
if (this.condition || this.hitCondition) {
|
|
183
|
-
return {
|
|
184
|
-
className: 'codicon-debug-breakpoint-conditional',
|
|
185
|
-
message: message || [core_1.nls.localize('theia/debug/conditionalBreakpoint', 'Conditional Breakpoint')]
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
return {
|
|
189
|
-
className: 'codicon-debug-breakpoint',
|
|
190
|
-
message: message || [core_1.nls.localizeByDefault('Breakpoint')]
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
remove() {
|
|
194
|
-
const breakpoints = this.doRemove(this.origins);
|
|
195
|
-
if (breakpoints) {
|
|
196
|
-
this.breakpoints.setBreakpoints(this.uri, breakpoints);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
doRemove(origins) {
|
|
200
|
-
if (!origins.length) {
|
|
201
|
-
return undefined;
|
|
202
|
-
}
|
|
203
|
-
const { uri } = this;
|
|
204
|
-
const toRemove = new Set();
|
|
205
|
-
origins.forEach(origin => toRemove.add(origin.raw.line + ':' + origin.raw.column));
|
|
206
|
-
let shouldUpdate = false;
|
|
207
|
-
const breakpoints = this.breakpoints.findMarkers({
|
|
208
|
-
uri,
|
|
209
|
-
dataFilter: data => {
|
|
210
|
-
const result = !toRemove.has(data.raw.line + ':' + data.raw.column);
|
|
211
|
-
shouldUpdate = shouldUpdate || !result;
|
|
212
|
-
return result;
|
|
213
|
-
}
|
|
214
|
-
}).map(({ data }) => data);
|
|
215
|
-
return shouldUpdate && breakpoints || undefined;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
exports.DebugSourceBreakpoint = DebugSourceBreakpoint;
|
|
219
|
-
//# sourceMappingURL=debug-source-breakpoint.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-source-breakpoint.js","sourceRoot":"","sources":["../../../src/browser/model/debug-source-breakpoint.tsx"],"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,kDAAkD;AAElD,sCAAoD;AACpD,oDAA6C;AAE7C,qDAAoF;AAIpF,yDAA6H;AAE7H,MAAa,yBAA0B,SAAQ,sCAAmB;CAEjE;AAFD,8DAEC;AAED,MAAa,qBAAsB,SAAQ,kCAAiC;IAIxE,YAAY,MAAwB,EAAE,OAA+B;QACjE,KAAK,CAAC,IAAI,aAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;QA0GrB,yBAAoB,GAAG,CAAC,KAA0C,EAAE,EAAE;YACrF,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC1C,CAAC,CAAC;QA3GE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M,CAAC,CAAC,CAAC;QACnF,IAAI,YAAY,GAAG,KAAK,CAAC;QACzB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC;YAC7C,GAAG;YACH,UAAU,EAAE,IAAI,CAAC,EAAE;gBACf,MAAM,MAAM,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpE,YAAY,GAAG,YAAY,IAAI,CAAC,MAAM,CAAC;gBACvC,OAAO,MAAM,CAAC;YAClB,CAAC;SACJ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,YAAY,IAAI,WAAW,IAAI,SAAS,CAAC;IACpD,CAAC;CAEJ;AAhND,sDAgNC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { LabelProvider } from '@theia/core/lib/browser';
|
|
2
|
-
import { EditorManager, EditorOpenerOptions, EditorWidget } from '@theia/editor/lib/browser';
|
|
3
|
-
import URI from '@theia/core/lib/common/uri';
|
|
4
|
-
import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol';
|
|
5
|
-
import { DebugSession } from '../debug-session';
|
|
6
|
-
export declare class DebugSourceData {
|
|
7
|
-
readonly raw: DebugProtocol.Source;
|
|
8
|
-
}
|
|
9
|
-
export declare class DebugSource extends DebugSourceData {
|
|
10
|
-
protected readonly session: DebugSession;
|
|
11
|
-
protected readonly editorManager: EditorManager;
|
|
12
|
-
protected readonly labelProvider: LabelProvider;
|
|
13
|
-
constructor(session: DebugSession, editorManager: EditorManager, labelProvider: LabelProvider);
|
|
14
|
-
get uri(): URI;
|
|
15
|
-
update(data: Partial<DebugSourceData>): void;
|
|
16
|
-
open(options?: EditorOpenerOptions): Promise<EditorWidget>;
|
|
17
|
-
load(): Promise<string>;
|
|
18
|
-
get inMemory(): boolean;
|
|
19
|
-
get name(): string;
|
|
20
|
-
get longName(): string;
|
|
21
|
-
static SCHEME: string;
|
|
22
|
-
static SCHEME_PATTERN: RegExp;
|
|
23
|
-
static toUri(raw: DebugProtocol.Source): URI;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=debug-source.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-source.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-source.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,qBAAa,eAAe;IACxB,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC,MAAM,CAAC;CACtC;AAED,qBAAa,WAAY,SAAQ,eAAe;IAGxC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,YAAY;IACxC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;IAC/C,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;gBAF5B,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa;IAKnD,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI;IAI5C,IAAI,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIpD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC;IAU7B,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,IAAI,IAAI,MAAM,CAKjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,MAAM,CAAC,MAAM,SAAgB;IAC7B,MAAM,CAAC,cAAc,SAAkB;IACvC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,MAAM,GAAG,GAAG;CAY/C"}
|
|
@@ -1,81 +0,0 @@
|
|
|
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.DebugSource = exports.DebugSourceData = void 0;
|
|
19
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
20
|
-
const vscode_uri_1 = require("@theia/core/shared/vscode-uri");
|
|
21
|
-
const debug_uri_utils_1 = require("../../common/debug-uri-utils");
|
|
22
|
-
class DebugSourceData {
|
|
23
|
-
}
|
|
24
|
-
exports.DebugSourceData = DebugSourceData;
|
|
25
|
-
class DebugSource extends DebugSourceData {
|
|
26
|
-
constructor(session, editorManager, labelProvider) {
|
|
27
|
-
super();
|
|
28
|
-
this.session = session;
|
|
29
|
-
this.editorManager = editorManager;
|
|
30
|
-
this.labelProvider = labelProvider;
|
|
31
|
-
}
|
|
32
|
-
get uri() {
|
|
33
|
-
return DebugSource.toUri(this.raw);
|
|
34
|
-
}
|
|
35
|
-
update(data) {
|
|
36
|
-
Object.assign(this, data);
|
|
37
|
-
}
|
|
38
|
-
open(options) {
|
|
39
|
-
return this.editorManager.open(this.uri, options);
|
|
40
|
-
}
|
|
41
|
-
async load() {
|
|
42
|
-
const source = this.raw;
|
|
43
|
-
const sourceReference = source.sourceReference;
|
|
44
|
-
const response = await this.session.sendRequest('source', {
|
|
45
|
-
sourceReference,
|
|
46
|
-
source
|
|
47
|
-
});
|
|
48
|
-
return response.body.content;
|
|
49
|
-
}
|
|
50
|
-
get inMemory() {
|
|
51
|
-
return this.uri.scheme === debug_uri_utils_1.DEBUG_SCHEME;
|
|
52
|
-
}
|
|
53
|
-
get name() {
|
|
54
|
-
if (this.inMemory) {
|
|
55
|
-
return this.raw.name || this.uri.path.base || this.uri.path.fsPath();
|
|
56
|
-
}
|
|
57
|
-
return this.labelProvider.getName(this.uri);
|
|
58
|
-
}
|
|
59
|
-
get longName() {
|
|
60
|
-
if (this.inMemory) {
|
|
61
|
-
return this.name;
|
|
62
|
-
}
|
|
63
|
-
return this.labelProvider.getLongName(this.uri);
|
|
64
|
-
}
|
|
65
|
-
static toUri(raw) {
|
|
66
|
-
if (raw.sourceReference && raw.sourceReference > 0) {
|
|
67
|
-
return new uri_1.default().withScheme(debug_uri_utils_1.DEBUG_SCHEME).withPath(raw.name).withQuery(String(raw.sourceReference));
|
|
68
|
-
}
|
|
69
|
-
if (!raw.path) {
|
|
70
|
-
throw new Error('Unrecognized source type: ' + JSON.stringify(raw));
|
|
71
|
-
}
|
|
72
|
-
if (raw.path.match(debug_uri_utils_1.SCHEME_PATTERN)) {
|
|
73
|
-
return new uri_1.default(raw.path);
|
|
74
|
-
}
|
|
75
|
-
return new uri_1.default(vscode_uri_1.URI.file(raw.path));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.DebugSource = DebugSource;
|
|
79
|
-
DebugSource.SCHEME = debug_uri_utils_1.DEBUG_SCHEME;
|
|
80
|
-
DebugSource.SCHEME_PATTERN = debug_uri_utils_1.SCHEME_PATTERN;
|
|
81
|
-
//# sourceMappingURL=debug-source.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-source.js","sourceRoot":"","sources":["../../../src/browser/model/debug-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;;;AAIhF,oDAA6C;AAG7C,8DAA2D;AAC3D,kEAA4E;AAE5E,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAY,SAAQ,eAAe;IAE5C,YACuB,OAAqB,EACrB,aAA4B,EAC5B,aAA4B;QAE/C,KAAK,EAAE,CAAC;QAJW,YAAO,GAAP,OAAO,CAAc;QACrB,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAe;IAGnD,CAAC;IAED,IAAI,GAAG;QACH,OAAO,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,IAA8B;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,CAAC,OAA6B;QAC9B,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC;QACxB,MAAM,eAAe,GAAG,MAAM,CAAC,eAAgB,CAAC;QAChD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,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C;YACjC,OAAO,IAAI,aAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,IAAI,aAAG,CAAC,gBAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,CAAC;;AA/DL,kCAgEC;AAdU,kBAAM,GAAG,8BAAY,CAAC;AACtB,0BAAc,GAAG,gCAAc,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as React from '@theia/core/shared/react';
|
|
3
|
-
import { EditorWidget, EditorOpenerOptions } from '@theia/editor/lib/browser';
|
|
4
|
-
import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol';
|
|
5
|
-
import { TreeElement } from '@theia/core/lib/browser/source-tree';
|
|
6
|
-
import { DebugScope } from '../console/debug-console-items';
|
|
7
|
-
import { DebugSource } from './debug-source';
|
|
8
|
-
import { DebugSession } from '../debug-session';
|
|
9
|
-
import { DebugThread } from './debug-thread';
|
|
10
|
-
import * as monaco from '@theia/monaco-editor-core';
|
|
11
|
-
export declare class DebugStackFrameData {
|
|
12
|
-
readonly raw: DebugProtocol.StackFrame;
|
|
13
|
-
}
|
|
14
|
-
export declare class DebugStackFrame extends DebugStackFrameData implements TreeElement {
|
|
15
|
-
readonly thread: DebugThread;
|
|
16
|
-
readonly session: DebugSession;
|
|
17
|
-
constructor(thread: DebugThread, session: DebugSession);
|
|
18
|
-
get id(): string;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the frame identifier from the debug protocol.
|
|
21
|
-
*/
|
|
22
|
-
get frameId(): number;
|
|
23
|
-
protected _source: DebugSource | undefined;
|
|
24
|
-
get source(): DebugSource | undefined;
|
|
25
|
-
update(data: Partial<DebugStackFrameData>): void;
|
|
26
|
-
restart(): Promise<void>;
|
|
27
|
-
open(options?: EditorOpenerOptions): Promise<EditorWidget | undefined>;
|
|
28
|
-
/**
|
|
29
|
-
* Debugger can send `column: 0` value despite of initializing the debug session with `columnsStartAt1: true`.
|
|
30
|
-
* This method can be used to ensure that neither `column` nor `column` are negative numbers.
|
|
31
|
-
* See https://github.com/microsoft/vscode-mock-debug/issues/85.
|
|
32
|
-
*/
|
|
33
|
-
protected clampPositive(value: number): number;
|
|
34
|
-
protected scopes: Promise<DebugScope[]> | undefined;
|
|
35
|
-
getScopes(): Promise<DebugScope[]>;
|
|
36
|
-
protected doGetScopes(): Promise<DebugScope[]>;
|
|
37
|
-
getMostSpecificScopes(range: monaco.IRange): Promise<DebugScope[]>;
|
|
38
|
-
protected toArgs<T extends object>(arg?: T): {
|
|
39
|
-
frameId: number;
|
|
40
|
-
} & T;
|
|
41
|
-
render(): React.ReactNode;
|
|
42
|
-
protected renderFile(): React.ReactNode;
|
|
43
|
-
get range(): monaco.IRange | undefined;
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=debug-stack-frame.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug-stack-frame.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-stack-frame.tsx"],"names":[],"mappings":";AAsBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,YAAY,EAAmB,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,qBAAa,mBAAmB;IAC5B,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC,UAAU,CAA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