@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,1678 +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.DebugFrontendApplicationContribution = exports.DebugBreakpointWidgetCommands = exports.DebugEditorContextCommands = exports.DebugSessionContextCommands = exports.DebugThreadContextCommands = exports.DebugCommands = exports.DebugMenus = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
-
const source_tree_1 = require("@theia/core/lib/browser/source-tree");
|
|
22
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
-
const monaco = require("@theia/monaco-editor-core");
|
|
24
|
-
const common_1 = require("@theia/core/lib/common");
|
|
25
|
-
const promise_util_1 = require("@theia/core/lib/common/promise-util");
|
|
26
|
-
const browser_2 = require("@theia/editor/lib/browser");
|
|
27
|
-
const debug_session_manager_1 = require("./debug-session-manager");
|
|
28
|
-
const debug_widget_1 = require("./view/debug-widget");
|
|
29
|
-
const breakpoint_marker_1 = require("./breakpoint/breakpoint-marker");
|
|
30
|
-
const breakpoint_manager_1 = require("./breakpoint/breakpoint-manager");
|
|
31
|
-
const debug_configuration_manager_1 = require("./debug-configuration-manager");
|
|
32
|
-
const debug_session_1 = require("./debug-session");
|
|
33
|
-
const debug_breakpoints_widget_1 = require("./view/debug-breakpoints-widget");
|
|
34
|
-
const debug_source_breakpoint_1 = require("./model/debug-source-breakpoint");
|
|
35
|
-
const debug_threads_widget_1 = require("./view/debug-threads-widget");
|
|
36
|
-
const debug_thread_1 = require("./model/debug-thread");
|
|
37
|
-
const debug_stack_frames_widget_1 = require("./view/debug-stack-frames-widget");
|
|
38
|
-
const debug_stack_frame_1 = require("./model/debug-stack-frame");
|
|
39
|
-
const debug_variables_widget_1 = require("./view/debug-variables-widget");
|
|
40
|
-
const debug_console_items_1 = require("./console/debug-console-items");
|
|
41
|
-
const debug_editor_model_1 = require("./editor/debug-editor-model");
|
|
42
|
-
const debug_editor_service_1 = require("./editor/debug-editor-service");
|
|
43
|
-
const debug_console_contribution_1 = require("./console/debug-console-contribution");
|
|
44
|
-
const debug_service_1 = require("../common/debug-service");
|
|
45
|
-
const debug_schema_updater_1 = require("./debug-schema-updater");
|
|
46
|
-
const debug_preferences_1 = require("../common/debug-preferences");
|
|
47
|
-
const debug_watch_widget_1 = require("./view/debug-watch-widget");
|
|
48
|
-
const debug_watch_expression_1 = require("./view/debug-watch-expression");
|
|
49
|
-
const debug_watch_manager_1 = require("./debug-watch-manager");
|
|
50
|
-
const debug_session_options_1 = require("./debug-session-options");
|
|
51
|
-
const debug_function_breakpoint_1 = require("./model/debug-function-breakpoint");
|
|
52
|
-
const debug_breakpoint_1 = require("./model/debug-breakpoint");
|
|
53
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
54
|
-
const debug_instruction_breakpoint_1 = require("./model/debug-instruction-breakpoint");
|
|
55
|
-
const debug_exception_breakpoint_1 = require("./view/debug-exception-breakpoint");
|
|
56
|
-
const debug_toolbar_widget_1 = require("./view/debug-toolbar-widget");
|
|
57
|
-
const console_widget_1 = require("@theia/console/lib/browser/console-widget");
|
|
58
|
-
const console_contribution_1 = require("@theia/console/lib/browser/console-contribution");
|
|
59
|
-
const debug_hover_widget_1 = require("./editor/debug-hover-widget");
|
|
60
|
-
const debug_expression_provider_1 = require("./editor/debug-expression-provider");
|
|
61
|
-
var DebugMenus;
|
|
62
|
-
(function (DebugMenus) {
|
|
63
|
-
DebugMenus.DEBUG = [...common_1.MAIN_MENU_BAR, '6_debug'];
|
|
64
|
-
DebugMenus.DEBUG_CONTROLS = [...DebugMenus.DEBUG, 'a_controls'];
|
|
65
|
-
DebugMenus.DEBUG_CONFIGURATION = [...DebugMenus.DEBUG, 'b_configuration'];
|
|
66
|
-
DebugMenus.DEBUG_THREADS = [...DebugMenus.DEBUG, 'c_threads'];
|
|
67
|
-
DebugMenus.DEBUG_SESSIONS = [...DebugMenus.DEBUG, 'd_sessions'];
|
|
68
|
-
DebugMenus.DEBUG_BREAKPOINT = [...DebugMenus.DEBUG, 'e_breakpoint'];
|
|
69
|
-
DebugMenus.DEBUG_NEW_BREAKPOINT = [...DebugMenus.DEBUG_BREAKPOINT, 'a_new_breakpoint'];
|
|
70
|
-
DebugMenus.DEBUG_BREAKPOINTS = [...DebugMenus.DEBUG, 'f_breakpoints'];
|
|
71
|
-
})(DebugMenus || (exports.DebugMenus = DebugMenus = {}));
|
|
72
|
-
function nlsEditBreakpoint(breakpoint) {
|
|
73
|
-
return nls_1.nls.localizeByDefault('Edit {0}...', nls_1.nls.localizeByDefault(breakpoint));
|
|
74
|
-
}
|
|
75
|
-
function nlsRemoveBreakpoint(breakpoint) {
|
|
76
|
-
return nls_1.nls.localizeByDefault('Remove {0}', nls_1.nls.localizeByDefault(breakpoint));
|
|
77
|
-
}
|
|
78
|
-
function nlsEnableBreakpoint(breakpoint) {
|
|
79
|
-
return nls_1.nls.localizeByDefault('Enable {0}', nls_1.nls.localizeByDefault(breakpoint));
|
|
80
|
-
}
|
|
81
|
-
function nlsDisableBreakpoint(breakpoint) {
|
|
82
|
-
return nls_1.nls.localizeByDefault('Disable {0}', nls_1.nls.localizeByDefault(breakpoint));
|
|
83
|
-
}
|
|
84
|
-
var DebugCommands;
|
|
85
|
-
(function (DebugCommands) {
|
|
86
|
-
DebugCommands.DEBUG_CATEGORY = 'Debug';
|
|
87
|
-
DebugCommands.DEBUG_CATEGORY_KEY = nls_1.nls.getDefaultKey(DebugCommands.DEBUG_CATEGORY);
|
|
88
|
-
DebugCommands.START = common_1.Command.toDefaultLocalizedCommand({
|
|
89
|
-
id: 'workbench.action.debug.start',
|
|
90
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
91
|
-
label: 'Start Debugging',
|
|
92
|
-
iconClass: (0, browser_1.codicon)('debug-alt')
|
|
93
|
-
});
|
|
94
|
-
DebugCommands.START_NO_DEBUG = common_1.Command.toDefaultLocalizedCommand({
|
|
95
|
-
id: 'workbench.action.debug.run',
|
|
96
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
97
|
-
label: 'Start Without Debugging'
|
|
98
|
-
});
|
|
99
|
-
DebugCommands.STOP = common_1.Command.toDefaultLocalizedCommand({
|
|
100
|
-
id: 'workbench.action.debug.stop',
|
|
101
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
102
|
-
label: 'Stop',
|
|
103
|
-
iconClass: (0, browser_1.codicon)('debug-stop')
|
|
104
|
-
});
|
|
105
|
-
DebugCommands.RESTART = common_1.Command.toDefaultLocalizedCommand({
|
|
106
|
-
id: 'workbench.action.debug.restart',
|
|
107
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
108
|
-
label: 'Restart',
|
|
109
|
-
});
|
|
110
|
-
DebugCommands.OPEN_CONFIGURATIONS = common_1.Command.toDefaultLocalizedCommand({
|
|
111
|
-
id: 'debug.configurations.open',
|
|
112
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
113
|
-
label: 'Open Configurations'
|
|
114
|
-
});
|
|
115
|
-
DebugCommands.ADD_CONFIGURATION = common_1.Command.toDefaultLocalizedCommand({
|
|
116
|
-
id: 'debug.configurations.add',
|
|
117
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
118
|
-
label: 'Add Configuration...'
|
|
119
|
-
});
|
|
120
|
-
DebugCommands.STEP_OVER = common_1.Command.toDefaultLocalizedCommand({
|
|
121
|
-
id: 'workbench.action.debug.stepOver',
|
|
122
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
123
|
-
label: 'Step Over',
|
|
124
|
-
iconClass: (0, browser_1.codicon)('debug-step-over')
|
|
125
|
-
});
|
|
126
|
-
DebugCommands.STEP_INTO = common_1.Command.toDefaultLocalizedCommand({
|
|
127
|
-
id: 'workbench.action.debug.stepInto',
|
|
128
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
129
|
-
label: 'Step Into',
|
|
130
|
-
iconClass: (0, browser_1.codicon)('debug-step-into')
|
|
131
|
-
});
|
|
132
|
-
DebugCommands.STEP_OUT = common_1.Command.toDefaultLocalizedCommand({
|
|
133
|
-
id: 'workbench.action.debug.stepOut',
|
|
134
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
135
|
-
label: 'Step Out',
|
|
136
|
-
iconClass: (0, browser_1.codicon)('debug-step-out')
|
|
137
|
-
});
|
|
138
|
-
DebugCommands.CONTINUE = common_1.Command.toDefaultLocalizedCommand({
|
|
139
|
-
id: 'workbench.action.debug.continue',
|
|
140
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
141
|
-
label: 'Continue',
|
|
142
|
-
iconClass: (0, browser_1.codicon)('debug-continue')
|
|
143
|
-
});
|
|
144
|
-
DebugCommands.PAUSE = common_1.Command.toDefaultLocalizedCommand({
|
|
145
|
-
id: 'workbench.action.debug.pause',
|
|
146
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
147
|
-
label: 'Pause',
|
|
148
|
-
iconClass: (0, browser_1.codicon)('debug-pause')
|
|
149
|
-
});
|
|
150
|
-
DebugCommands.CONTINUE_ALL = common_1.Command.toLocalizedCommand({
|
|
151
|
-
id: 'debug.thread.continue.all',
|
|
152
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
153
|
-
label: 'Continue All',
|
|
154
|
-
iconClass: (0, browser_1.codicon)('debug-continue')
|
|
155
|
-
}, 'theia/debug/continueAll', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
156
|
-
DebugCommands.PAUSE_ALL = common_1.Command.toLocalizedCommand({
|
|
157
|
-
id: 'debug.thread.pause.all',
|
|
158
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
159
|
-
label: 'Pause All',
|
|
160
|
-
iconClass: (0, browser_1.codicon)('debug-pause')
|
|
161
|
-
}, 'theia/debug/pauseAll', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
162
|
-
DebugCommands.TOGGLE_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
|
|
163
|
-
id: 'editor.debug.action.toggleBreakpoint',
|
|
164
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
165
|
-
label: 'Toggle Breakpoint',
|
|
166
|
-
});
|
|
167
|
-
DebugCommands.INLINE_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
|
|
168
|
-
id: 'editor.debug.action.inlineBreakpoint',
|
|
169
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
170
|
-
label: 'Inline Breakpoint',
|
|
171
|
-
});
|
|
172
|
-
DebugCommands.ADD_CONDITIONAL_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
|
|
173
|
-
id: 'debug.breakpoint.add.conditional',
|
|
174
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
175
|
-
label: 'Add Conditional Breakpoint...',
|
|
176
|
-
});
|
|
177
|
-
DebugCommands.ADD_LOGPOINT = common_1.Command.toDefaultLocalizedCommand({
|
|
178
|
-
id: 'debug.breakpoint.add.logpoint',
|
|
179
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
180
|
-
label: 'Add Logpoint...',
|
|
181
|
-
});
|
|
182
|
-
DebugCommands.ADD_FUNCTION_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
|
|
183
|
-
id: 'debug.breakpoint.add.function',
|
|
184
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
185
|
-
label: 'Add Function Breakpoint',
|
|
186
|
-
});
|
|
187
|
-
DebugCommands.ENABLE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
|
|
188
|
-
id: 'debug.breakpoint.enableSelected',
|
|
189
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
190
|
-
label: 'Enable Selected Breakpoints',
|
|
191
|
-
}, 'theia/debug/enableSelectedBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
192
|
-
DebugCommands.ENABLE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
|
|
193
|
-
id: 'debug.breakpoint.enableAll',
|
|
194
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
195
|
-
label: 'Enable All Breakpoints',
|
|
196
|
-
});
|
|
197
|
-
DebugCommands.DISABLE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
|
|
198
|
-
id: 'debug.breakpoint.disableSelected',
|
|
199
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
200
|
-
label: 'Disable Selected Breakpoints',
|
|
201
|
-
}, 'theia/debug/disableSelectedBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
202
|
-
DebugCommands.DISABLE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
|
|
203
|
-
id: 'debug.breakpoint.disableAll',
|
|
204
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
205
|
-
label: 'Disable All Breakpoints',
|
|
206
|
-
});
|
|
207
|
-
DebugCommands.EDIT_BREAKPOINT = common_1.Command.toLocalizedCommand({
|
|
208
|
-
id: 'debug.breakpoint.edit',
|
|
209
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
210
|
-
originalLabel: 'Edit Breakpoint...',
|
|
211
|
-
label: nlsEditBreakpoint('Breakpoint')
|
|
212
|
-
}, '', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
213
|
-
DebugCommands.EDIT_LOGPOINT = common_1.Command.toLocalizedCommand({
|
|
214
|
-
id: 'debug.logpoint.edit',
|
|
215
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
216
|
-
originalLabel: 'Edit Logpoint...',
|
|
217
|
-
label: nlsEditBreakpoint('Logpoint')
|
|
218
|
-
}, '', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
219
|
-
DebugCommands.EDIT_BREAKPOINT_CONDITION = common_1.Command.toLocalizedCommand({
|
|
220
|
-
id: 'debug.breakpoint.editCondition',
|
|
221
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
222
|
-
label: 'Edit Condition...'
|
|
223
|
-
}, '', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
224
|
-
DebugCommands.REMOVE_BREAKPOINT = common_1.Command.toLocalizedCommand({
|
|
225
|
-
id: 'debug.breakpoint.remove',
|
|
226
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
227
|
-
originalLabel: 'Remove Breakpoint',
|
|
228
|
-
label: nlsRemoveBreakpoint('Breakpoint')
|
|
229
|
-
}, '', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
230
|
-
DebugCommands.REMOVE_LOGPOINT = common_1.Command.toLocalizedCommand({
|
|
231
|
-
id: 'debug.logpoint.remove',
|
|
232
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
233
|
-
originalLabel: 'Remove Logpoint',
|
|
234
|
-
label: nlsRemoveBreakpoint('Logpoint')
|
|
235
|
-
}, '', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
236
|
-
DebugCommands.REMOVE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
|
|
237
|
-
id: 'debug.breakpoint.removeSelected',
|
|
238
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
239
|
-
label: 'Remove Selected Breakpoints',
|
|
240
|
-
}, '', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
241
|
-
DebugCommands.REMOVE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
|
|
242
|
-
id: 'debug.breakpoint.removeAll',
|
|
243
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
244
|
-
label: 'Remove All Breakpoints',
|
|
245
|
-
});
|
|
246
|
-
DebugCommands.TOGGLE_BREAKPOINTS_ENABLED = common_1.Command.toLocalizedCommand({
|
|
247
|
-
id: 'debug.breakpoint.toggleEnabled'
|
|
248
|
-
});
|
|
249
|
-
DebugCommands.SHOW_HOVER = common_1.Command.toDefaultLocalizedCommand({
|
|
250
|
-
id: 'editor.debug.action.showDebugHover',
|
|
251
|
-
label: 'Debug: Show Hover'
|
|
252
|
-
});
|
|
253
|
-
DebugCommands.EVALUATE_IN_DEBUG_CONSOLE = common_1.Command.toDefaultLocalizedCommand({
|
|
254
|
-
id: 'editor.debug.action.selectionToRepl',
|
|
255
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
256
|
-
label: 'Evaluate in Debug Console'
|
|
257
|
-
});
|
|
258
|
-
DebugCommands.ADD_TO_WATCH = common_1.Command.toDefaultLocalizedCommand({
|
|
259
|
-
id: 'editor.debug.action.selectionToWatch',
|
|
260
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
261
|
-
label: 'Add to Watch'
|
|
262
|
-
});
|
|
263
|
-
DebugCommands.JUMP_TO_CURSOR = common_1.Command.toDefaultLocalizedCommand({
|
|
264
|
-
id: 'editor.debug.action.jumpToCursor',
|
|
265
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
266
|
-
label: 'Jump to Cursor'
|
|
267
|
-
});
|
|
268
|
-
DebugCommands.RUN_TO_CURSOR = common_1.Command.toDefaultLocalizedCommand({
|
|
269
|
-
id: 'editor.debug.action.runToCursor',
|
|
270
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
271
|
-
label: 'Run to Cursor'
|
|
272
|
-
});
|
|
273
|
-
DebugCommands.RUN_TO_LINE = common_1.Command.toDefaultLocalizedCommand({
|
|
274
|
-
id: 'editor.debug.action.runToLine',
|
|
275
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
276
|
-
label: 'Run to Line'
|
|
277
|
-
});
|
|
278
|
-
DebugCommands.RESTART_FRAME = common_1.Command.toDefaultLocalizedCommand({
|
|
279
|
-
id: 'debug.frame.restart',
|
|
280
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
281
|
-
label: 'Restart Frame',
|
|
282
|
-
});
|
|
283
|
-
DebugCommands.COPY_CALL_STACK = common_1.Command.toDefaultLocalizedCommand({
|
|
284
|
-
id: 'debug.callStack.copy',
|
|
285
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
286
|
-
label: 'Copy Call Stack',
|
|
287
|
-
});
|
|
288
|
-
DebugCommands.SET_VARIABLE_VALUE = common_1.Command.toDefaultLocalizedCommand({
|
|
289
|
-
id: 'debug.variable.setValue',
|
|
290
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
291
|
-
label: 'Set Value',
|
|
292
|
-
});
|
|
293
|
-
DebugCommands.COPY_VARIABLE_VALUE = common_1.Command.toDefaultLocalizedCommand({
|
|
294
|
-
id: 'debug.variable.copyValue',
|
|
295
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
296
|
-
label: 'Copy Value',
|
|
297
|
-
});
|
|
298
|
-
DebugCommands.COPY_VARIABLE_AS_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
|
|
299
|
-
id: 'debug.variable.copyAsExpression',
|
|
300
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
301
|
-
label: 'Copy as Expression',
|
|
302
|
-
});
|
|
303
|
-
DebugCommands.WATCH_VARIABLE = common_1.Command.toDefaultLocalizedCommand({
|
|
304
|
-
id: 'debug.variable.watch',
|
|
305
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
306
|
-
label: 'Add to Watch',
|
|
307
|
-
});
|
|
308
|
-
DebugCommands.ADD_WATCH_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
|
|
309
|
-
id: 'debug.watch.addExpression',
|
|
310
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
311
|
-
label: 'Add Expression'
|
|
312
|
-
});
|
|
313
|
-
DebugCommands.EDIT_WATCH_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
|
|
314
|
-
id: 'debug.watch.editExpression',
|
|
315
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
316
|
-
label: 'Edit Expression'
|
|
317
|
-
});
|
|
318
|
-
DebugCommands.COPY_WATCH_EXPRESSION_VALUE = common_1.Command.toLocalizedCommand({
|
|
319
|
-
id: 'debug.watch.copyExpressionValue',
|
|
320
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
321
|
-
label: 'Copy Expression Value'
|
|
322
|
-
}, 'theia/debug/copyExpressionValue', DebugCommands.DEBUG_CATEGORY_KEY);
|
|
323
|
-
DebugCommands.REMOVE_WATCH_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
|
|
324
|
-
id: 'debug.watch.removeExpression',
|
|
325
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
326
|
-
label: 'Remove Expression'
|
|
327
|
-
});
|
|
328
|
-
DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS = common_1.Command.toDefaultLocalizedCommand({
|
|
329
|
-
id: 'debug.watch.collapseAllExpressions',
|
|
330
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
331
|
-
label: 'Collapse All'
|
|
332
|
-
});
|
|
333
|
-
DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS = common_1.Command.toDefaultLocalizedCommand({
|
|
334
|
-
id: 'debug.watch.removeAllExpressions',
|
|
335
|
-
category: DebugCommands.DEBUG_CATEGORY,
|
|
336
|
-
label: 'Remove All Expressions'
|
|
337
|
-
});
|
|
338
|
-
})(DebugCommands || (exports.DebugCommands = DebugCommands = {}));
|
|
339
|
-
var DebugThreadContextCommands;
|
|
340
|
-
(function (DebugThreadContextCommands) {
|
|
341
|
-
DebugThreadContextCommands.STEP_OVER = {
|
|
342
|
-
id: 'debug.thread.context.context.next'
|
|
343
|
-
};
|
|
344
|
-
DebugThreadContextCommands.STEP_INTO = {
|
|
345
|
-
id: 'debug.thread.context.stepin'
|
|
346
|
-
};
|
|
347
|
-
DebugThreadContextCommands.STEP_OUT = {
|
|
348
|
-
id: 'debug.thread.context.stepout'
|
|
349
|
-
};
|
|
350
|
-
DebugThreadContextCommands.CONTINUE = {
|
|
351
|
-
id: 'debug.thread.context.continue'
|
|
352
|
-
};
|
|
353
|
-
DebugThreadContextCommands.PAUSE = {
|
|
354
|
-
id: 'debug.thread.context.pause'
|
|
355
|
-
};
|
|
356
|
-
DebugThreadContextCommands.TERMINATE = {
|
|
357
|
-
id: 'debug.thread.context.terminate'
|
|
358
|
-
};
|
|
359
|
-
})(DebugThreadContextCommands || (exports.DebugThreadContextCommands = DebugThreadContextCommands = {}));
|
|
360
|
-
var DebugSessionContextCommands;
|
|
361
|
-
(function (DebugSessionContextCommands) {
|
|
362
|
-
DebugSessionContextCommands.STOP = {
|
|
363
|
-
id: 'debug.session.context.stop'
|
|
364
|
-
};
|
|
365
|
-
DebugSessionContextCommands.RESTART = {
|
|
366
|
-
id: 'debug.session.context.restart'
|
|
367
|
-
};
|
|
368
|
-
DebugSessionContextCommands.PAUSE_ALL = {
|
|
369
|
-
id: 'debug.session.context.pauseAll'
|
|
370
|
-
};
|
|
371
|
-
DebugSessionContextCommands.CONTINUE_ALL = {
|
|
372
|
-
id: 'debug.session.context.continueAll'
|
|
373
|
-
};
|
|
374
|
-
DebugSessionContextCommands.REVEAL = {
|
|
375
|
-
id: 'debug.session.context.reveal'
|
|
376
|
-
};
|
|
377
|
-
})(DebugSessionContextCommands || (exports.DebugSessionContextCommands = DebugSessionContextCommands = {}));
|
|
378
|
-
var DebugEditorContextCommands;
|
|
379
|
-
(function (DebugEditorContextCommands) {
|
|
380
|
-
DebugEditorContextCommands.ADD_BREAKPOINT = {
|
|
381
|
-
id: 'debug.editor.context.addBreakpoint'
|
|
382
|
-
};
|
|
383
|
-
DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT = {
|
|
384
|
-
id: 'debug.editor.context.addBreakpoint.conditional'
|
|
385
|
-
};
|
|
386
|
-
DebugEditorContextCommands.ADD_LOGPOINT = {
|
|
387
|
-
id: 'debug.editor.context.add.logpoint'
|
|
388
|
-
};
|
|
389
|
-
DebugEditorContextCommands.REMOVE_BREAKPOINT = {
|
|
390
|
-
id: 'debug.editor.context.removeBreakpoint'
|
|
391
|
-
};
|
|
392
|
-
DebugEditorContextCommands.EDIT_BREAKPOINT = {
|
|
393
|
-
id: 'debug.editor.context.edit.breakpoint'
|
|
394
|
-
};
|
|
395
|
-
DebugEditorContextCommands.ENABLE_BREAKPOINT = {
|
|
396
|
-
id: 'debug.editor.context.enableBreakpoint'
|
|
397
|
-
};
|
|
398
|
-
DebugEditorContextCommands.DISABLE_BREAKPOINT = {
|
|
399
|
-
id: 'debug.editor.context.disableBreakpoint'
|
|
400
|
-
};
|
|
401
|
-
DebugEditorContextCommands.REMOVE_LOGPOINT = {
|
|
402
|
-
id: 'debug.editor.context.logpoint.remove'
|
|
403
|
-
};
|
|
404
|
-
DebugEditorContextCommands.EDIT_LOGPOINT = {
|
|
405
|
-
id: 'debug.editor.context.logpoint.edit'
|
|
406
|
-
};
|
|
407
|
-
DebugEditorContextCommands.ENABLE_LOGPOINT = {
|
|
408
|
-
id: 'debug.editor.context.logpoint.enable'
|
|
409
|
-
};
|
|
410
|
-
DebugEditorContextCommands.DISABLE_LOGPOINT = {
|
|
411
|
-
id: 'debug.editor.context.logpoint.disable'
|
|
412
|
-
};
|
|
413
|
-
DebugEditorContextCommands.JUMP_TO_CURSOR = {
|
|
414
|
-
id: 'debug.editor.context.jumpToCursor'
|
|
415
|
-
};
|
|
416
|
-
DebugEditorContextCommands.RUN_TO_LINE = {
|
|
417
|
-
id: 'debug.editor.context.runToLine'
|
|
418
|
-
};
|
|
419
|
-
})(DebugEditorContextCommands || (exports.DebugEditorContextCommands = DebugEditorContextCommands = {}));
|
|
420
|
-
var DebugBreakpointWidgetCommands;
|
|
421
|
-
(function (DebugBreakpointWidgetCommands) {
|
|
422
|
-
DebugBreakpointWidgetCommands.ACCEPT = {
|
|
423
|
-
id: 'debug.breakpointWidget.accept'
|
|
424
|
-
};
|
|
425
|
-
DebugBreakpointWidgetCommands.CLOSE = {
|
|
426
|
-
id: 'debug.breakpointWidget.close'
|
|
427
|
-
};
|
|
428
|
-
})(DebugBreakpointWidgetCommands || (exports.DebugBreakpointWidgetCommands = DebugBreakpointWidgetCommands = {}));
|
|
429
|
-
let DebugFrontendApplicationContribution = class DebugFrontendApplicationContribution extends browser_1.AbstractViewContribution {
|
|
430
|
-
constructor() {
|
|
431
|
-
super({
|
|
432
|
-
widgetId: debug_widget_1.DebugWidget.ID,
|
|
433
|
-
widgetName: debug_widget_1.DebugWidget.LABEL,
|
|
434
|
-
defaultWidgetOptions: {
|
|
435
|
-
area: 'left',
|
|
436
|
-
rank: 400
|
|
437
|
-
},
|
|
438
|
-
toggleCommandId: 'debug:toggle',
|
|
439
|
-
toggleKeybinding: 'ctrlcmd+shift+d'
|
|
440
|
-
});
|
|
441
|
-
this.firstSessionStart = true;
|
|
442
|
-
}
|
|
443
|
-
async initializeLayout() {
|
|
444
|
-
await this.openView();
|
|
445
|
-
}
|
|
446
|
-
async onStart() {
|
|
447
|
-
this.manager.onDidCreateDebugSession(session => this.openSession(session, { reveal: false }));
|
|
448
|
-
this.manager.onDidStartDebugSession(session => {
|
|
449
|
-
const { noDebug } = session.configuration;
|
|
450
|
-
const openDebug = session.configuration.openDebug || this.preference['debug.openDebug'];
|
|
451
|
-
const internalConsoleOptions = session.configuration.internalConsoleOptions || this.preference['debug.internalConsoleOptions'];
|
|
452
|
-
if (internalConsoleOptions === 'openOnSessionStart' ||
|
|
453
|
-
(internalConsoleOptions === 'openOnFirstSessionStart' && this.firstSessionStart)) {
|
|
454
|
-
this.console.openView({
|
|
455
|
-
reveal: true,
|
|
456
|
-
activate: false,
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
const shouldOpenDebug = openDebug === 'openOnSessionStart' || (openDebug === 'openOnFirstSessionStart' && this.firstSessionStart);
|
|
460
|
-
// Do not open debug view when suppressed via configuration
|
|
461
|
-
if (!noDebug && !this.getOption(session, 'suppressDebugView') && shouldOpenDebug) {
|
|
462
|
-
this.openSession(session);
|
|
463
|
-
}
|
|
464
|
-
this.firstSessionStart = false;
|
|
465
|
-
});
|
|
466
|
-
this.manager.onDidStopDebugSession(session => {
|
|
467
|
-
const { openDebug } = session.configuration;
|
|
468
|
-
if (!this.getOption(session, 'suppressDebugView') && openDebug === 'openOnDebugBreak') {
|
|
469
|
-
this.openSession(session);
|
|
470
|
-
}
|
|
471
|
-
});
|
|
472
|
-
this.updateStatusBar();
|
|
473
|
-
this.manager.onDidChange(() => this.updateStatusBar());
|
|
474
|
-
this.schemaUpdater.update();
|
|
475
|
-
this.configurations.load();
|
|
476
|
-
this.breakpointManager.load();
|
|
477
|
-
this.watchManager.load();
|
|
478
|
-
}
|
|
479
|
-
onStop() {
|
|
480
|
-
this.configurations.save();
|
|
481
|
-
this.breakpointManager.save();
|
|
482
|
-
this.watchManager.save();
|
|
483
|
-
}
|
|
484
|
-
onWillStop() {
|
|
485
|
-
if (this.preference['debug.confirmOnExit'] === 'always' && this.manager.currentSession) {
|
|
486
|
-
return {
|
|
487
|
-
reason: 'active-debug-sessions',
|
|
488
|
-
action: async () => {
|
|
489
|
-
if (this.manager.currentSession) {
|
|
490
|
-
const msg = this.manager.sessions.length === 1
|
|
491
|
-
? nls_1.nls.localizeByDefault('There is an active debug session, are you sure you want to stop it?')
|
|
492
|
-
: nls_1.nls.localizeByDefault('There are active debug sessions, are you sure you want to stop them?');
|
|
493
|
-
const safeToExit = await new browser_1.ConfirmDialog({
|
|
494
|
-
title: '',
|
|
495
|
-
msg,
|
|
496
|
-
ok: nls_1.nls.localizeByDefault('Stop Debugging'),
|
|
497
|
-
cancel: browser_1.Dialog.CANCEL,
|
|
498
|
-
}).open();
|
|
499
|
-
return safeToExit === true;
|
|
500
|
-
}
|
|
501
|
-
return true;
|
|
502
|
-
},
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
registerMenus(menus) {
|
|
507
|
-
super.registerMenus(menus);
|
|
508
|
-
const registerMenuActions = (menuPath, ...commands) => {
|
|
509
|
-
for (const [index, command] of commands.entries()) {
|
|
510
|
-
const label = command.label;
|
|
511
|
-
const debug = `${DebugCommands.DEBUG_CATEGORY}:`;
|
|
512
|
-
menus.registerMenuAction(menuPath, {
|
|
513
|
-
commandId: command.id,
|
|
514
|
-
label: label && label.startsWith(debug) && label.slice(debug.length).trimStart() || label,
|
|
515
|
-
icon: command.iconClass,
|
|
516
|
-
order: command.order || String.fromCharCode('a'.charCodeAt(0) + index)
|
|
517
|
-
});
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
menus.registerSubmenu(DebugMenus.DEBUG, nls_1.nls.localizeByDefault('Run'));
|
|
521
|
-
registerMenuActions(DebugMenus.DEBUG_CONTROLS, DebugCommands.START, DebugCommands.START_NO_DEBUG, DebugCommands.STOP, DebugCommands.RESTART);
|
|
522
|
-
registerMenuActions(DebugMenus.DEBUG_CONFIGURATION, DebugCommands.OPEN_CONFIGURATIONS, DebugCommands.ADD_CONFIGURATION);
|
|
523
|
-
registerMenuActions(DebugMenus.DEBUG_THREADS, DebugCommands.CONTINUE, DebugCommands.STEP_OVER, DebugCommands.STEP_INTO, DebugCommands.STEP_OUT, DebugCommands.PAUSE);
|
|
524
|
-
registerMenuActions(DebugMenus.DEBUG_SESSIONS, DebugCommands.CONTINUE_ALL, DebugCommands.PAUSE_ALL);
|
|
525
|
-
registerMenuActions(DebugMenus.DEBUG_BREAKPOINT, DebugCommands.TOGGLE_BREAKPOINT);
|
|
526
|
-
menus.registerSubmenu(DebugMenus.DEBUG_NEW_BREAKPOINT, nls_1.nls.localizeByDefault('New Breakpoint'));
|
|
527
|
-
registerMenuActions(DebugMenus.DEBUG_NEW_BREAKPOINT, DebugCommands.ADD_CONDITIONAL_BREAKPOINT, DebugCommands.INLINE_BREAKPOINT, DebugCommands.ADD_FUNCTION_BREAKPOINT, DebugCommands.ADD_LOGPOINT);
|
|
528
|
-
registerMenuActions(DebugMenus.DEBUG_BREAKPOINTS, DebugCommands.ENABLE_ALL_BREAKPOINTS, DebugCommands.DISABLE_ALL_BREAKPOINTS, DebugCommands.REMOVE_ALL_BREAKPOINTS);
|
|
529
|
-
registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.CONTROL_MENU, { ...DebugCommands.PAUSE, ...DebugThreadContextCommands.PAUSE }, { ...DebugCommands.CONTINUE, ...DebugThreadContextCommands.CONTINUE }, { ...DebugCommands.STEP_OVER, ...DebugThreadContextCommands.STEP_OVER }, { ...DebugCommands.STEP_INTO, ...DebugThreadContextCommands.STEP_INTO }, { ...DebugCommands.STEP_OUT, ...DebugThreadContextCommands.STEP_OUT }, { ...DebugCommands.PAUSE_ALL, ...DebugSessionContextCommands.PAUSE_ALL }, { ...DebugCommands.CONTINUE_ALL, ...DebugSessionContextCommands.CONTINUE_ALL });
|
|
530
|
-
registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.TERMINATE_MENU, { ...DebugCommands.RESTART, ...DebugSessionContextCommands.RESTART }, { ...DebugCommands.STOP, ...DebugSessionContextCommands.STOP }, { ...DebugThreadContextCommands.TERMINATE, label: nls_1.nls.localizeByDefault('Terminate Thread') });
|
|
531
|
-
registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.OPEN_MENU, { ...DebugSessionContextCommands.REVEAL, label: nls_1.nls.localize('theia/debug/reveal', 'Reveal') });
|
|
532
|
-
registerMenuActions(debug_stack_frames_widget_1.DebugStackFramesWidget.CONTEXT_MENU, DebugCommands.RESTART_FRAME, DebugCommands.COPY_CALL_STACK);
|
|
533
|
-
registerMenuActions(console_contribution_1.ConsoleContextMenu.CLIPBOARD, { ...DebugCommands.COPY_VARIABLE_VALUE, order: 'a1a' }, { ...DebugCommands.COPY_VARIABLE_AS_EXPRESSION, order: 'a1b' });
|
|
534
|
-
registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.EDIT_MENU, DebugCommands.SET_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_AS_EXPRESSION);
|
|
535
|
-
registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.WATCH_MENU, DebugCommands.WATCH_VARIABLE);
|
|
536
|
-
registerMenuActions(debug_hover_widget_1.DebugHoverWidget.EDIT_MENU, DebugCommands.COPY_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_AS_EXPRESSION);
|
|
537
|
-
registerMenuActions(debug_hover_widget_1.DebugHoverWidget.WATCH_MENU, DebugCommands.WATCH_VARIABLE);
|
|
538
|
-
registerMenuActions(debug_watch_widget_1.DebugWatchWidget.EDIT_MENU, DebugCommands.EDIT_WATCH_EXPRESSION, DebugCommands.COPY_WATCH_EXPRESSION_VALUE);
|
|
539
|
-
registerMenuActions(debug_watch_widget_1.DebugWatchWidget.REMOVE_MENU, DebugCommands.REMOVE_WATCH_EXPRESSION, DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS);
|
|
540
|
-
registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.EDIT_MENU, DebugCommands.EDIT_BREAKPOINT, DebugCommands.EDIT_LOGPOINT, DebugCommands.EDIT_BREAKPOINT_CONDITION);
|
|
541
|
-
registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.REMOVE_MENU, DebugCommands.REMOVE_BREAKPOINT, DebugCommands.REMOVE_LOGPOINT, DebugCommands.REMOVE_SELECTED_BREAKPOINTS, DebugCommands.REMOVE_ALL_BREAKPOINTS);
|
|
542
|
-
registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.ENABLE_MENU, DebugCommands.ENABLE_SELECTED_BREAKPOINTS, DebugCommands.DISABLE_SELECTED_BREAKPOINTS, DebugCommands.ENABLE_ALL_BREAKPOINTS, DebugCommands.DISABLE_ALL_BREAKPOINTS);
|
|
543
|
-
const DEBUG_EDITOR_CONTEXT_MENU_GROUP = [...browser_2.EDITOR_CONTEXT_MENU, '2_debug'];
|
|
544
|
-
registerMenuActions(DEBUG_EDITOR_CONTEXT_MENU_GROUP, DebugCommands.EVALUATE_IN_DEBUG_CONSOLE, DebugCommands.ADD_TO_WATCH, DebugCommands.JUMP_TO_CURSOR, DebugCommands.RUN_TO_CURSOR, DebugCommands.RUN_TO_LINE);
|
|
545
|
-
registerMenuActions([...debug_editor_model_1.DebugEditorModel.CONTEXT_MENU, '1_breakpoint'], { ...DebugEditorContextCommands.ADD_BREAKPOINT, label: nls_1.nls.localizeByDefault('Add Breakpoint') }, { ...DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT, label: DebugCommands.ADD_CONDITIONAL_BREAKPOINT.label }, { ...DebugEditorContextCommands.ADD_LOGPOINT, label: DebugCommands.ADD_LOGPOINT.label }, { ...DebugEditorContextCommands.REMOVE_BREAKPOINT, label: DebugCommands.REMOVE_BREAKPOINT.label }, { ...DebugEditorContextCommands.EDIT_BREAKPOINT, label: DebugCommands.EDIT_BREAKPOINT.label }, { ...DebugEditorContextCommands.ENABLE_BREAKPOINT, label: nlsEnableBreakpoint('Breakpoint') }, { ...DebugEditorContextCommands.DISABLE_BREAKPOINT, label: nlsDisableBreakpoint('Breakpoint') }, { ...DebugEditorContextCommands.REMOVE_LOGPOINT, label: DebugCommands.REMOVE_LOGPOINT.label }, { ...DebugEditorContextCommands.EDIT_LOGPOINT, label: DebugCommands.EDIT_LOGPOINT.label }, { ...DebugEditorContextCommands.ENABLE_LOGPOINT, label: nlsEnableBreakpoint('Logpoint') }, { ...DebugEditorContextCommands.DISABLE_LOGPOINT, label: nlsDisableBreakpoint('Logpoint') });
|
|
546
|
-
registerMenuActions([...debug_editor_model_1.DebugEditorModel.CONTEXT_MENU, '2_control'], { ...DebugEditorContextCommands.JUMP_TO_CURSOR, label: nls_1.nls.localizeByDefault('Jump to Cursor') }, { ...DebugEditorContextCommands.RUN_TO_LINE, label: DebugCommands.RUN_TO_LINE.label });
|
|
547
|
-
menus.linkCompoundMenuNode({ newParentPath: browser_2.EDITOR_LINENUMBER_CONTEXT_MENU, submenuPath: debug_editor_model_1.DebugEditorModel.CONTEXT_MENU });
|
|
548
|
-
menus.registerSubmenu(debug_toolbar_widget_1.DebugToolBar.MENU, nls_1.nls.localize('theia/debug/debugToolbarMenu', 'Debug Toolbar Menu'));
|
|
549
|
-
}
|
|
550
|
-
registerCommands(registry) {
|
|
551
|
-
super.registerCommands(registry);
|
|
552
|
-
registry.registerCommand(DebugCommands.START, {
|
|
553
|
-
execute: (config) => {
|
|
554
|
-
const validConfig = debug_session_options_1.DebugSessionOptions.is(config) ? config : undefined;
|
|
555
|
-
return this.start(false, validConfig);
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
registry.registerCommand(DebugCommands.START_NO_DEBUG, {
|
|
559
|
-
execute: (config) => {
|
|
560
|
-
const validConfig = debug_session_options_1.DebugSessionOptions.is(config) ? config : undefined;
|
|
561
|
-
return this.start(true, validConfig);
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
|
-
registry.registerCommand(DebugCommands.STOP, {
|
|
565
|
-
execute: () => this.manager.terminateSession(),
|
|
566
|
-
isEnabled: () => this.manager.state !== debug_session_1.DebugState.Inactive
|
|
567
|
-
});
|
|
568
|
-
registry.registerCommand(DebugCommands.RESTART, {
|
|
569
|
-
execute: () => this.manager.restartSession(),
|
|
570
|
-
isEnabled: () => this.manager.state !== debug_session_1.DebugState.Inactive
|
|
571
|
-
});
|
|
572
|
-
registry.registerCommand(DebugCommands.OPEN_CONFIGURATIONS, {
|
|
573
|
-
execute: () => this.configurations.openConfiguration()
|
|
574
|
-
});
|
|
575
|
-
registry.registerCommand(DebugCommands.ADD_CONFIGURATION, {
|
|
576
|
-
execute: () => this.configurations.addConfiguration()
|
|
577
|
-
});
|
|
578
|
-
registry.registerCommand(DebugCommands.STEP_OVER, {
|
|
579
|
-
execute: () => this.manager.currentThread && this.manager.currentThread.stepOver(),
|
|
580
|
-
isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
|
|
581
|
-
});
|
|
582
|
-
registry.registerCommand(DebugCommands.STEP_INTO, {
|
|
583
|
-
execute: () => this.manager.currentThread && this.manager.currentThread.stepIn(),
|
|
584
|
-
isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
|
|
585
|
-
});
|
|
586
|
-
registry.registerCommand(DebugCommands.STEP_OUT, {
|
|
587
|
-
execute: () => this.manager.currentThread && this.manager.currentThread.stepOut(),
|
|
588
|
-
isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
|
|
589
|
-
});
|
|
590
|
-
registry.registerCommand(DebugCommands.CONTINUE, {
|
|
591
|
-
execute: () => {
|
|
592
|
-
if (this.manager.state === debug_session_1.DebugState.Stopped && this.manager.currentThread) {
|
|
593
|
-
this.manager.currentThread.continue();
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
// When there is a debug session, F5 should always be captured by this command
|
|
597
|
-
isEnabled: () => this.manager.state !== debug_session_1.DebugState.Inactive
|
|
598
|
-
});
|
|
599
|
-
registry.registerCommand(DebugCommands.PAUSE, {
|
|
600
|
-
execute: () => this.manager.currentThread && this.manager.currentThread.pause(),
|
|
601
|
-
isEnabled: () => this.manager.state === debug_session_1.DebugState.Running
|
|
602
|
-
});
|
|
603
|
-
registry.registerCommand(DebugCommands.PAUSE_ALL, {
|
|
604
|
-
execute: () => this.manager.currentSession && this.manager.currentSession.pauseAll(),
|
|
605
|
-
isEnabled: () => !!this.manager.currentSession && !!this.manager.currentSession.runningThreads.next().value
|
|
606
|
-
});
|
|
607
|
-
registry.registerCommand(DebugCommands.CONTINUE_ALL, {
|
|
608
|
-
execute: () => this.manager.currentSession && this.manager.currentSession.continueAll(),
|
|
609
|
-
isEnabled: () => !!this.manager.currentSession && !!this.manager.currentSession.stoppedThreads.next().value
|
|
610
|
-
});
|
|
611
|
-
registry.registerCommand(DebugThreadContextCommands.STEP_OVER, {
|
|
612
|
-
execute: () => this.selectedThread && this.selectedThread.stepOver(),
|
|
613
|
-
isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
|
|
614
|
-
isVisible: () => !!this.selectedThread
|
|
615
|
-
});
|
|
616
|
-
registry.registerCommand(DebugThreadContextCommands.STEP_INTO, {
|
|
617
|
-
execute: () => this.selectedThread && this.selectedThread.stepIn(),
|
|
618
|
-
isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
|
|
619
|
-
isVisible: () => !!this.selectedThread
|
|
620
|
-
});
|
|
621
|
-
registry.registerCommand(DebugThreadContextCommands.STEP_OUT, {
|
|
622
|
-
execute: () => this.selectedThread && this.selectedThread.stepOut(),
|
|
623
|
-
isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
|
|
624
|
-
isVisible: () => !!this.selectedThread
|
|
625
|
-
});
|
|
626
|
-
registry.registerCommand(DebugThreadContextCommands.CONTINUE, {
|
|
627
|
-
execute: () => this.selectedThread && this.selectedThread.continue(),
|
|
628
|
-
isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
|
|
629
|
-
isVisible: () => !!this.selectedThread && this.selectedThread.stopped,
|
|
630
|
-
});
|
|
631
|
-
registry.registerCommand(DebugThreadContextCommands.PAUSE, {
|
|
632
|
-
execute: () => this.selectedThread && this.selectedThread.pause(),
|
|
633
|
-
isEnabled: () => !!this.selectedThread && !this.selectedThread.stopped,
|
|
634
|
-
isVisible: () => !!this.selectedThread && !this.selectedThread.stopped,
|
|
635
|
-
});
|
|
636
|
-
registry.registerCommand(DebugThreadContextCommands.TERMINATE, {
|
|
637
|
-
execute: () => this.selectedThread && this.selectedThread.terminate(),
|
|
638
|
-
isEnabled: () => !!this.selectedThread && this.selectedThread.supportsTerminate,
|
|
639
|
-
isVisible: () => !!this.selectedThread && this.selectedThread.supportsTerminate
|
|
640
|
-
});
|
|
641
|
-
registry.registerCommand(DebugSessionContextCommands.STOP, {
|
|
642
|
-
execute: () => this.selectedSession && this.manager.terminateSession(this.selectedSession),
|
|
643
|
-
isEnabled: () => !!this.selectedSession && this.selectedSession.state !== debug_session_1.DebugState.Inactive,
|
|
644
|
-
isVisible: () => !this.selectedThread
|
|
645
|
-
});
|
|
646
|
-
registry.registerCommand(DebugSessionContextCommands.RESTART, {
|
|
647
|
-
execute: () => this.selectedSession && this.manager.restartSession(this.selectedSession),
|
|
648
|
-
isEnabled: () => !!this.selectedSession && this.selectedSession.state !== debug_session_1.DebugState.Inactive,
|
|
649
|
-
isVisible: () => !this.selectedThread
|
|
650
|
-
});
|
|
651
|
-
registry.registerCommand(DebugSessionContextCommands.CONTINUE_ALL, {
|
|
652
|
-
execute: () => this.selectedSession && this.selectedSession.continueAll(),
|
|
653
|
-
isEnabled: () => !!this.selectedSession && !!this.selectedSession.stoppedThreads.next().value,
|
|
654
|
-
isVisible: () => !this.selectedThread
|
|
655
|
-
});
|
|
656
|
-
registry.registerCommand(DebugSessionContextCommands.PAUSE_ALL, {
|
|
657
|
-
execute: () => this.selectedSession && this.selectedSession.pauseAll(),
|
|
658
|
-
isEnabled: () => !!this.selectedSession && !!this.selectedSession.runningThreads.next().value,
|
|
659
|
-
isVisible: () => !this.selectedThread
|
|
660
|
-
});
|
|
661
|
-
registry.registerCommand(DebugSessionContextCommands.REVEAL, {
|
|
662
|
-
execute: () => this.selectedSession && this.revealSession(this.selectedSession),
|
|
663
|
-
isEnabled: () => Boolean(this.selectedSession),
|
|
664
|
-
isVisible: () => !this.selectedThread && Boolean(this.selectedSession)
|
|
665
|
-
});
|
|
666
|
-
registry.registerCommand(DebugCommands.TOGGLE_BREAKPOINT, {
|
|
667
|
-
execute: () => this.editors.toggleBreakpoint(),
|
|
668
|
-
isEnabled: () => !!this.editors.model
|
|
669
|
-
});
|
|
670
|
-
registry.registerCommand(DebugCommands.INLINE_BREAKPOINT, {
|
|
671
|
-
execute: () => this.editors.addInlineBreakpoint(),
|
|
672
|
-
isEnabled: () => !!this.editors.model && !this.editors.getInlineBreakpoint()
|
|
673
|
-
});
|
|
674
|
-
registry.registerCommand(DebugCommands.ADD_CONDITIONAL_BREAKPOINT, {
|
|
675
|
-
execute: () => this.editors.addBreakpoint('condition'),
|
|
676
|
-
isEnabled: () => !!this.editors.model && !this.editors.anyBreakpoint()
|
|
677
|
-
});
|
|
678
|
-
registry.registerCommand(DebugCommands.ADD_LOGPOINT, {
|
|
679
|
-
execute: () => this.editors.addBreakpoint('logMessage'),
|
|
680
|
-
isEnabled: () => !!this.editors.model && !this.editors.anyBreakpoint()
|
|
681
|
-
});
|
|
682
|
-
registry.registerCommand(DebugCommands.ADD_FUNCTION_BREAKPOINT, {
|
|
683
|
-
execute: async () => {
|
|
684
|
-
const { labelProvider, breakpointManager, editorManager } = this;
|
|
685
|
-
const options = { labelProvider, breakpoints: breakpointManager, editorManager };
|
|
686
|
-
await new debug_function_breakpoint_1.DebugFunctionBreakpoint(breakpoint_marker_1.FunctionBreakpoint.create({ name: '' }), options).open();
|
|
687
|
-
},
|
|
688
|
-
isEnabled: widget => !(widget instanceof browser_1.Widget) || widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget,
|
|
689
|
-
isVisible: widget => !(widget instanceof browser_1.Widget) || widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget
|
|
690
|
-
});
|
|
691
|
-
registry.registerCommand(DebugCommands.ENABLE_ALL_BREAKPOINTS, {
|
|
692
|
-
execute: () => this.breakpointManager.enableAllBreakpoints(true),
|
|
693
|
-
isEnabled: () => this.breakpointManager.hasBreakpoints()
|
|
694
|
-
});
|
|
695
|
-
registry.registerCommand(DebugCommands.ENABLE_SELECTED_BREAKPOINTS, {
|
|
696
|
-
execute: () => this.selectedBreakpoints.forEach(breakpoint => breakpoint.setEnabled(true)),
|
|
697
|
-
isVisible: () => this.selectedBreakpoints.some(breakpoint => !breakpoint.enabled),
|
|
698
|
-
isEnabled: () => this.selectedBreakpoints.some(breakpoint => !breakpoint.enabled)
|
|
699
|
-
});
|
|
700
|
-
registry.registerCommand(DebugCommands.DISABLE_ALL_BREAKPOINTS, {
|
|
701
|
-
execute: () => this.breakpointManager.enableAllBreakpoints(false),
|
|
702
|
-
isEnabled: () => this.breakpointManager.hasBreakpoints()
|
|
703
|
-
});
|
|
704
|
-
registry.registerCommand(DebugCommands.DISABLE_SELECTED_BREAKPOINTS, {
|
|
705
|
-
execute: () => this.selectedBreakpoints.forEach(breakpoint => breakpoint.setEnabled(false)),
|
|
706
|
-
isVisible: () => this.selectedBreakpoints.some(breakpoint => breakpoint.enabled),
|
|
707
|
-
isEnabled: () => this.selectedBreakpoints.some(breakpoint => breakpoint.enabled)
|
|
708
|
-
});
|
|
709
|
-
registry.registerCommand(DebugCommands.EDIT_BREAKPOINT, {
|
|
710
|
-
execute: async () => {
|
|
711
|
-
const { selectedBreakpoint, selectedFunctionBreakpoint } = this;
|
|
712
|
-
if (selectedBreakpoint) {
|
|
713
|
-
await this.editors.editBreakpoint(selectedBreakpoint);
|
|
714
|
-
}
|
|
715
|
-
else if (selectedFunctionBreakpoint) {
|
|
716
|
-
await selectedFunctionBreakpoint.open();
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
isEnabled: () => this.selectedBreakpoints.length === 1 && (!!this.selectedBreakpoint || !!this.selectedFunctionBreakpoint),
|
|
720
|
-
isVisible: () => this.selectedBreakpoints.length === 1 && (!!this.selectedBreakpoint || !!this.selectedFunctionBreakpoint)
|
|
721
|
-
});
|
|
722
|
-
registry.registerCommand(DebugCommands.EDIT_LOGPOINT, {
|
|
723
|
-
execute: async () => {
|
|
724
|
-
const { selectedLogpoint } = this;
|
|
725
|
-
if (selectedLogpoint) {
|
|
726
|
-
await this.editors.editBreakpoint(selectedLogpoint);
|
|
727
|
-
}
|
|
728
|
-
},
|
|
729
|
-
isEnabled: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint,
|
|
730
|
-
isVisible: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint
|
|
731
|
-
});
|
|
732
|
-
registry.registerCommand(DebugCommands.EDIT_BREAKPOINT_CONDITION, {
|
|
733
|
-
execute: async () => {
|
|
734
|
-
const { selectedExceptionBreakpoint } = this;
|
|
735
|
-
if (selectedExceptionBreakpoint) {
|
|
736
|
-
await selectedExceptionBreakpoint.editCondition();
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
isEnabled: () => { var _a; return this.selectedBreakpoints.length === 1 && !!((_a = this.selectedExceptionBreakpoint) === null || _a === void 0 ? void 0 : _a.data.raw.supportsCondition); },
|
|
740
|
-
isVisible: () => { var _a; return this.selectedBreakpoints.length === 1 && !!((_a = this.selectedExceptionBreakpoint) === null || _a === void 0 ? void 0 : _a.data.raw.supportsCondition); }
|
|
741
|
-
});
|
|
742
|
-
registry.registerCommand(DebugCommands.REMOVE_BREAKPOINT, {
|
|
743
|
-
execute: () => {
|
|
744
|
-
const selectedBreakpoint = this.selectedSettableBreakpoint;
|
|
745
|
-
if (selectedBreakpoint) {
|
|
746
|
-
selectedBreakpoint.remove();
|
|
747
|
-
}
|
|
748
|
-
},
|
|
749
|
-
isEnabled: () => this.selectedBreakpoints.length === 1 && Boolean(this.selectedSettableBreakpoint),
|
|
750
|
-
isVisible: () => this.selectedBreakpoints.length === 1 && Boolean(this.selectedSettableBreakpoint),
|
|
751
|
-
});
|
|
752
|
-
registry.registerCommand(DebugCommands.REMOVE_LOGPOINT, {
|
|
753
|
-
execute: () => {
|
|
754
|
-
const { selectedLogpoint } = this;
|
|
755
|
-
if (selectedLogpoint) {
|
|
756
|
-
selectedLogpoint.remove();
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
isEnabled: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint,
|
|
760
|
-
isVisible: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint
|
|
761
|
-
});
|
|
762
|
-
registry.registerCommand(DebugCommands.REMOVE_ALL_BREAKPOINTS, {
|
|
763
|
-
execute: () => this.breakpointManager.removeBreakpoints(),
|
|
764
|
-
isEnabled: () => this.breakpointManager.hasBreakpoints(),
|
|
765
|
-
isVisible: widget => !(widget instanceof browser_1.Widget) || (widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget)
|
|
766
|
-
});
|
|
767
|
-
registry.registerCommand(DebugCommands.REMOVE_SELECTED_BREAKPOINTS, {
|
|
768
|
-
execute: () => this.selectedBreakpoints.forEach(breakpoint => breakpoint.remove()),
|
|
769
|
-
isEnabled: () => this.selectedBreakpoints.length > 1,
|
|
770
|
-
isVisible: widget => (!(widget instanceof browser_1.Widget) || (widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget)) && this.selectedBreakpoints.length > 1
|
|
771
|
-
});
|
|
772
|
-
registry.registerCommand(DebugCommands.TOGGLE_BREAKPOINTS_ENABLED, {
|
|
773
|
-
execute: () => this.breakpointManager.breakpointsEnabled = !this.breakpointManager.breakpointsEnabled,
|
|
774
|
-
isVisible: arg => arg instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget
|
|
775
|
-
});
|
|
776
|
-
registry.registerCommand(DebugCommands.SHOW_HOVER, {
|
|
777
|
-
execute: () => this.editors.showHover(),
|
|
778
|
-
isEnabled: () => this.editors.canShowHover()
|
|
779
|
-
});
|
|
780
|
-
registry.registerCommand(DebugCommands.EVALUATE_IN_DEBUG_CONSOLE, {
|
|
781
|
-
execute: async () => {
|
|
782
|
-
const { model } = this.editors;
|
|
783
|
-
if (model) {
|
|
784
|
-
const { editor } = model;
|
|
785
|
-
const { selection, document } = editor;
|
|
786
|
-
const value = document.getText(selection) || document.getLineContent(selection.start.line + 1).trim();
|
|
787
|
-
const consoleWidget = await this.console.openView({ reveal: true, activate: false });
|
|
788
|
-
await consoleWidget.execute(value);
|
|
789
|
-
}
|
|
790
|
-
},
|
|
791
|
-
isEnabled: () => !!this.editors.model && !!this.manager.currentFrame,
|
|
792
|
-
isVisible: () => !!this.editors.model && !!this.manager.currentFrame
|
|
793
|
-
});
|
|
794
|
-
registry.registerCommand(DebugCommands.ADD_TO_WATCH, {
|
|
795
|
-
execute: async () => {
|
|
796
|
-
var _a, _b;
|
|
797
|
-
const { model } = this.editors;
|
|
798
|
-
if (model) {
|
|
799
|
-
const { editor } = model;
|
|
800
|
-
const selection = editor.getControl().getSelection();
|
|
801
|
-
if (selection) {
|
|
802
|
-
const expression = ((_a = editor.getControl().getModel()) === null || _a === void 0 ? void 0 : _a.getValueInRange(selection)) ||
|
|
803
|
-
((_b = (await this.expressionProvider.getEvaluatableExpression(editor, selection))) === null || _b === void 0 ? void 0 : _b.matchingExpression);
|
|
804
|
-
if (expression) {
|
|
805
|
-
this.watchManager.addWatchExpression(expression);
|
|
806
|
-
const watchWidget = this.widgetManager.tryGetWidget(debug_watch_widget_1.DebugWatchWidget.FACTORY_ID);
|
|
807
|
-
if (watchWidget) {
|
|
808
|
-
await this.shell.activateWidget(watchWidget.id);
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
},
|
|
814
|
-
isEnabled: () => !!this.editors.model && this.manager.inDebugMode,
|
|
815
|
-
isVisible: () => !!this.editors.model && this.manager.inDebugMode
|
|
816
|
-
});
|
|
817
|
-
registry.registerCommand(DebugCommands.JUMP_TO_CURSOR, {
|
|
818
|
-
execute: () => {
|
|
819
|
-
const model = this.editors.model;
|
|
820
|
-
if (model && this.manager.currentThread) {
|
|
821
|
-
this.manager.currentThread.jumpToCursor(model.editor.getResourceUri(), model.position);
|
|
822
|
-
}
|
|
823
|
-
},
|
|
824
|
-
isEnabled: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto,
|
|
825
|
-
isVisible: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto
|
|
826
|
-
});
|
|
827
|
-
registry.registerCommand(DebugCommands.RUN_TO_CURSOR, {
|
|
828
|
-
execute: async () => {
|
|
829
|
-
const { model } = this.editors;
|
|
830
|
-
if (model) {
|
|
831
|
-
const { editor, position } = model;
|
|
832
|
-
await this.runTo(editor.getResourceUri(), position.lineNumber, position.column);
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
isEnabled: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
|
|
836
|
-
isVisible: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
|
|
837
|
-
});
|
|
838
|
-
registry.registerCommand(DebugCommands.RUN_TO_LINE, {
|
|
839
|
-
execute: async () => {
|
|
840
|
-
const { model } = this.editors;
|
|
841
|
-
if (model) {
|
|
842
|
-
const { editor, position } = model;
|
|
843
|
-
await this.runTo(editor.getResourceUri(), position.lineNumber);
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
isEnabled: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
|
|
847
|
-
isVisible: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
|
|
848
|
-
});
|
|
849
|
-
registry.registerCommand(DebugCommands.RESTART_FRAME, {
|
|
850
|
-
execute: () => this.selectedFrame && this.selectedFrame.restart(),
|
|
851
|
-
isEnabled: () => !!this.selectedFrame
|
|
852
|
-
});
|
|
853
|
-
registry.registerCommand(DebugCommands.COPY_CALL_STACK, {
|
|
854
|
-
execute: () => {
|
|
855
|
-
const { frames } = this;
|
|
856
|
-
const selection = document.getSelection();
|
|
857
|
-
if (frames && selection) {
|
|
858
|
-
selection.selectAllChildren(frames.node);
|
|
859
|
-
document.execCommand('copy');
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
isEnabled: () => document.queryCommandSupported('copy'),
|
|
863
|
-
isVisible: () => document.queryCommandSupported('copy')
|
|
864
|
-
});
|
|
865
|
-
registry.registerCommand(DebugCommands.SET_VARIABLE_VALUE, {
|
|
866
|
-
execute: () => this.selectedVariable && this.selectedVariable.open(),
|
|
867
|
-
isEnabled: () => !!this.selectedVariable && this.selectedVariable.supportSetVariable && !this.selectedVariable.readOnly,
|
|
868
|
-
isVisible: () => !!this.selectedVariable && this.selectedVariable.supportSetVariable
|
|
869
|
-
});
|
|
870
|
-
registry.registerCommand(DebugCommands.COPY_VARIABLE_VALUE, {
|
|
871
|
-
execute: () => this.selectedVariable && this.selectedVariable.copyValue(),
|
|
872
|
-
isEnabled: () => !!this.selectedVariable && this.selectedVariable.supportCopyValue,
|
|
873
|
-
isVisible: () => !!this.selectedVariable && this.selectedVariable.supportCopyValue
|
|
874
|
-
});
|
|
875
|
-
registry.registerCommand(DebugCommands.COPY_VARIABLE_AS_EXPRESSION, {
|
|
876
|
-
execute: () => this.selectedVariable && this.selectedVariable.copyAsExpression(),
|
|
877
|
-
isEnabled: () => !!this.selectedVariable && this.selectedVariable.supportCopyAsExpression,
|
|
878
|
-
isVisible: () => !!this.selectedVariable && this.selectedVariable.supportCopyAsExpression
|
|
879
|
-
});
|
|
880
|
-
registry.registerCommand(DebugCommands.WATCH_VARIABLE, {
|
|
881
|
-
execute: () => {
|
|
882
|
-
var _a;
|
|
883
|
-
const evaluateName = (_a = this.selectedVariable) === null || _a === void 0 ? void 0 : _a.evaluateName;
|
|
884
|
-
if (evaluateName) {
|
|
885
|
-
this.watchManager.addWatchExpression(evaluateName);
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
isEnabled: () => { var _a; return !!((_a = this.selectedVariable) === null || _a === void 0 ? void 0 : _a.evaluateName); },
|
|
889
|
-
isVisible: () => { var _a; return !!((_a = this.selectedVariable) === null || _a === void 0 ? void 0 : _a.evaluateName); },
|
|
890
|
-
});
|
|
891
|
-
// Debug context menu commands
|
|
892
|
-
registry.registerCommand(DebugEditorContextCommands.ADD_BREAKPOINT, {
|
|
893
|
-
execute: position => this.isPosition(position) && this.editors.toggleBreakpoint(this.asPosition(position)),
|
|
894
|
-
isEnabled: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position)),
|
|
895
|
-
isVisible: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position))
|
|
896
|
-
});
|
|
897
|
-
registry.registerCommand(DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT, {
|
|
898
|
-
execute: position => this.isPosition(position) && this.editors.addBreakpoint('condition', this.asPosition(position)),
|
|
899
|
-
isEnabled: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position)),
|
|
900
|
-
isVisible: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position))
|
|
901
|
-
});
|
|
902
|
-
registry.registerCommand(DebugEditorContextCommands.ADD_LOGPOINT, {
|
|
903
|
-
execute: position => this.isPosition(position) && this.editors.addBreakpoint('logMessage', this.asPosition(position)),
|
|
904
|
-
isEnabled: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position)),
|
|
905
|
-
isVisible: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position))
|
|
906
|
-
});
|
|
907
|
-
registry.registerCommand(DebugEditorContextCommands.REMOVE_BREAKPOINT, {
|
|
908
|
-
execute: position => this.isPosition(position) && this.editors.toggleBreakpoint(this.asPosition(position)),
|
|
909
|
-
isEnabled: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position)),
|
|
910
|
-
isVisible: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position))
|
|
911
|
-
});
|
|
912
|
-
registry.registerCommand(DebugEditorContextCommands.EDIT_BREAKPOINT, {
|
|
913
|
-
execute: position => this.isPosition(position) && this.editors.editBreakpoint(this.asPosition(position)),
|
|
914
|
-
isEnabled: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position)),
|
|
915
|
-
isVisible: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position))
|
|
916
|
-
});
|
|
917
|
-
registry.registerCommand(DebugEditorContextCommands.ENABLE_BREAKPOINT, {
|
|
918
|
-
execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), true),
|
|
919
|
-
isEnabled: position => this.isPosition(position) && this.editors.getBreakpointEnabled(this.asPosition(position)) === false,
|
|
920
|
-
isVisible: position => this.isPosition(position) && this.editors.getBreakpointEnabled(this.asPosition(position)) === false
|
|
921
|
-
});
|
|
922
|
-
registry.registerCommand(DebugEditorContextCommands.DISABLE_BREAKPOINT, {
|
|
923
|
-
execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), false),
|
|
924
|
-
isEnabled: position => this.isPosition(position) && !!this.editors.getBreakpointEnabled(this.asPosition(position)),
|
|
925
|
-
isVisible: position => this.isPosition(position) && !!this.editors.getBreakpointEnabled(this.asPosition(position))
|
|
926
|
-
});
|
|
927
|
-
registry.registerCommand(DebugEditorContextCommands.REMOVE_LOGPOINT, {
|
|
928
|
-
execute: position => this.isPosition(position) && this.editors.toggleBreakpoint(this.asPosition(position)),
|
|
929
|
-
isEnabled: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position)),
|
|
930
|
-
isVisible: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position))
|
|
931
|
-
});
|
|
932
|
-
registry.registerCommand(DebugEditorContextCommands.EDIT_LOGPOINT, {
|
|
933
|
-
execute: position => this.isPosition(position) && this.editors.editBreakpoint(this.asPosition(position)),
|
|
934
|
-
isEnabled: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position)),
|
|
935
|
-
isVisible: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position))
|
|
936
|
-
});
|
|
937
|
-
registry.registerCommand(DebugEditorContextCommands.ENABLE_LOGPOINT, {
|
|
938
|
-
execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), true),
|
|
939
|
-
isEnabled: position => this.isPosition(position) && this.editors.getLogpointEnabled(this.asPosition(position)) === false,
|
|
940
|
-
isVisible: position => this.isPosition(position) && this.editors.getLogpointEnabled(this.asPosition(position)) === false
|
|
941
|
-
});
|
|
942
|
-
registry.registerCommand(DebugEditorContextCommands.DISABLE_LOGPOINT, {
|
|
943
|
-
execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), false),
|
|
944
|
-
isEnabled: position => this.isPosition(position) && !!this.editors.getLogpointEnabled(this.asPosition(position)),
|
|
945
|
-
isVisible: position => this.isPosition(position) && !!this.editors.getLogpointEnabled(this.asPosition(position))
|
|
946
|
-
});
|
|
947
|
-
registry.registerCommand(DebugEditorContextCommands.JUMP_TO_CURSOR, {
|
|
948
|
-
execute: position => {
|
|
949
|
-
if (this.isPosition(position) && this.editors.currentUri && this.manager.currentThread) {
|
|
950
|
-
this.manager.currentThread.jumpToCursor(this.editors.currentUri, this.asPosition(position));
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
isEnabled: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto,
|
|
954
|
-
isVisible: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto
|
|
955
|
-
});
|
|
956
|
-
registry.registerCommand(DebugEditorContextCommands.RUN_TO_LINE, {
|
|
957
|
-
execute: async (position) => {
|
|
958
|
-
if (this.isPosition(position)) {
|
|
959
|
-
const { currentUri } = this.editors;
|
|
960
|
-
if (currentUri) {
|
|
961
|
-
await this.runTo(currentUri, position.lineNumber);
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
isEnabled: position => { var _a; return this.isPosition(position) && !!this.editors.currentUri && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
|
|
966
|
-
isVisible: position => { var _a; return this.isPosition(position) && !!this.editors.currentUri && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
|
|
967
|
-
});
|
|
968
|
-
registry.registerCommand(DebugBreakpointWidgetCommands.ACCEPT, {
|
|
969
|
-
execute: () => this.editors.acceptBreakpoint()
|
|
970
|
-
});
|
|
971
|
-
registry.registerCommand(DebugBreakpointWidgetCommands.CLOSE, {
|
|
972
|
-
execute: () => this.editors.closeBreakpoint()
|
|
973
|
-
});
|
|
974
|
-
registry.registerCommand(DebugCommands.ADD_WATCH_EXPRESSION, {
|
|
975
|
-
execute: widget => {
|
|
976
|
-
if (widget instanceof browser_1.Widget) {
|
|
977
|
-
if (widget instanceof debug_watch_widget_1.DebugWatchWidget) {
|
|
978
|
-
widget.viewModel.addWatchExpression();
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
else if (this.watch) {
|
|
982
|
-
this.watch.viewModel.addWatchExpression();
|
|
983
|
-
}
|
|
984
|
-
},
|
|
985
|
-
isEnabled: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch,
|
|
986
|
-
isVisible: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch
|
|
987
|
-
});
|
|
988
|
-
registry.registerCommand(DebugCommands.EDIT_WATCH_EXPRESSION, {
|
|
989
|
-
execute: () => {
|
|
990
|
-
const { watchExpression } = this;
|
|
991
|
-
if (watchExpression) {
|
|
992
|
-
watchExpression.open();
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
isEnabled: () => !!this.watchExpression,
|
|
996
|
-
isVisible: () => !!this.watchExpression
|
|
997
|
-
});
|
|
998
|
-
registry.registerCommand(DebugCommands.COPY_WATCH_EXPRESSION_VALUE, {
|
|
999
|
-
execute: () => this.watchExpression && this.watchExpression.copyValue(),
|
|
1000
|
-
isEnabled: () => !!this.watchExpression && this.watchExpression.supportCopyValue,
|
|
1001
|
-
isVisible: () => !!this.watchExpression && this.watchExpression.supportCopyValue
|
|
1002
|
-
});
|
|
1003
|
-
registry.registerCommand(DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS, {
|
|
1004
|
-
execute: widget => {
|
|
1005
|
-
if (widget instanceof debug_watch_widget_1.DebugWatchWidget) {
|
|
1006
|
-
const root = widget.model.root;
|
|
1007
|
-
widget.model.collapseAll(browser_1.CompositeTreeNode.is(root) ? root : undefined);
|
|
1008
|
-
}
|
|
1009
|
-
},
|
|
1010
|
-
isEnabled: widget => widget instanceof debug_watch_widget_1.DebugWatchWidget,
|
|
1011
|
-
isVisible: widget => widget instanceof debug_watch_widget_1.DebugWatchWidget
|
|
1012
|
-
});
|
|
1013
|
-
registry.registerCommand(DebugCommands.REMOVE_WATCH_EXPRESSION, {
|
|
1014
|
-
execute: () => {
|
|
1015
|
-
const { watch, watchExpression } = this;
|
|
1016
|
-
if (watch && watchExpression) {
|
|
1017
|
-
watch.viewModel.removeWatchExpression(watchExpression);
|
|
1018
|
-
}
|
|
1019
|
-
},
|
|
1020
|
-
isEnabled: () => !!this.watchExpression,
|
|
1021
|
-
isVisible: () => !!this.watchExpression
|
|
1022
|
-
});
|
|
1023
|
-
registry.registerCommand(DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS, {
|
|
1024
|
-
execute: widget => {
|
|
1025
|
-
if (widget instanceof browser_1.Widget) {
|
|
1026
|
-
if (widget instanceof debug_watch_widget_1.DebugWatchWidget) {
|
|
1027
|
-
widget.viewModel.removeWatchExpressions();
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
else if (this.watch) {
|
|
1031
|
-
this.watch.viewModel.removeWatchExpressions();
|
|
1032
|
-
}
|
|
1033
|
-
},
|
|
1034
|
-
isEnabled: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch,
|
|
1035
|
-
isVisible: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
registerKeybindings(keybindings) {
|
|
1039
|
-
super.registerKeybindings(keybindings);
|
|
1040
|
-
keybindings.registerKeybinding({
|
|
1041
|
-
command: DebugCommands.START.id,
|
|
1042
|
-
keybinding: 'f5',
|
|
1043
|
-
when: '!inDebugMode'
|
|
1044
|
-
});
|
|
1045
|
-
keybindings.registerKeybinding({
|
|
1046
|
-
command: DebugCommands.START_NO_DEBUG.id,
|
|
1047
|
-
keybinding: 'ctrl+f5',
|
|
1048
|
-
when: '!inDebugMode'
|
|
1049
|
-
});
|
|
1050
|
-
keybindings.registerKeybinding({
|
|
1051
|
-
command: DebugCommands.STOP.id,
|
|
1052
|
-
keybinding: 'shift+f5',
|
|
1053
|
-
when: 'inDebugMode'
|
|
1054
|
-
});
|
|
1055
|
-
keybindings.registerKeybinding({
|
|
1056
|
-
command: DebugCommands.RESTART.id,
|
|
1057
|
-
keybinding: 'shift+ctrlcmd+f5',
|
|
1058
|
-
when: 'inDebugMode'
|
|
1059
|
-
});
|
|
1060
|
-
keybindings.registerKeybinding({
|
|
1061
|
-
command: DebugCommands.STEP_OVER.id,
|
|
1062
|
-
keybinding: 'f10',
|
|
1063
|
-
when: 'inDebugMode'
|
|
1064
|
-
});
|
|
1065
|
-
keybindings.registerKeybinding({
|
|
1066
|
-
command: DebugCommands.STEP_INTO.id,
|
|
1067
|
-
keybinding: 'f11',
|
|
1068
|
-
when: 'inDebugMode'
|
|
1069
|
-
});
|
|
1070
|
-
keybindings.registerKeybinding({
|
|
1071
|
-
command: DebugCommands.STEP_OUT.id,
|
|
1072
|
-
keybinding: 'shift+f11',
|
|
1073
|
-
when: 'inDebugMode'
|
|
1074
|
-
});
|
|
1075
|
-
keybindings.registerKeybinding({
|
|
1076
|
-
command: DebugCommands.CONTINUE.id,
|
|
1077
|
-
keybinding: 'f5',
|
|
1078
|
-
when: 'inDebugMode'
|
|
1079
|
-
});
|
|
1080
|
-
keybindings.registerKeybinding({
|
|
1081
|
-
command: DebugCommands.PAUSE.id,
|
|
1082
|
-
keybinding: 'f6',
|
|
1083
|
-
when: 'inDebugMode'
|
|
1084
|
-
});
|
|
1085
|
-
keybindings.registerKeybinding({
|
|
1086
|
-
command: DebugCommands.TOGGLE_BREAKPOINT.id,
|
|
1087
|
-
keybinding: 'f9',
|
|
1088
|
-
when: 'editorTextFocus'
|
|
1089
|
-
});
|
|
1090
|
-
keybindings.registerKeybinding({
|
|
1091
|
-
command: DebugCommands.INLINE_BREAKPOINT.id,
|
|
1092
|
-
keybinding: 'shift+f9',
|
|
1093
|
-
when: 'editorTextFocus'
|
|
1094
|
-
});
|
|
1095
|
-
keybindings.registerKeybinding({
|
|
1096
|
-
command: DebugBreakpointWidgetCommands.ACCEPT.id,
|
|
1097
|
-
keybinding: 'enter',
|
|
1098
|
-
when: 'breakpointWidgetFocus && !suggestWidgetVisible'
|
|
1099
|
-
});
|
|
1100
|
-
keybindings.registerKeybinding({
|
|
1101
|
-
command: DebugBreakpointWidgetCommands.CLOSE.id,
|
|
1102
|
-
keybinding: 'esc',
|
|
1103
|
-
when: 'isBreakpointWidgetVisible || (breakpointWidgetFocus && !suggestWidgetVisible)'
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
registerToolbarItems(toolbar) {
|
|
1107
|
-
const onDidChangeToggleBreakpointsEnabled = new common_1.Emitter();
|
|
1108
|
-
const toggleBreakpointsEnabled = {
|
|
1109
|
-
id: DebugCommands.TOGGLE_BREAKPOINTS_ENABLED.id,
|
|
1110
|
-
command: DebugCommands.TOGGLE_BREAKPOINTS_ENABLED.id,
|
|
1111
|
-
icon: (0, browser_1.codicon)('activate-breakpoints'),
|
|
1112
|
-
onDidChange: onDidChangeToggleBreakpointsEnabled.event,
|
|
1113
|
-
priority: 1
|
|
1114
|
-
};
|
|
1115
|
-
const updateToggleBreakpointsEnabled = () => {
|
|
1116
|
-
const activateBreakpoints = nls_1.nls.localizeByDefault('Enable All Breakpoints');
|
|
1117
|
-
const deactivateBreakpoints = nls_1.nls.localizeByDefault('Disable All Breakpoints');
|
|
1118
|
-
const tooltip = this.breakpointManager.breakpointsEnabled ? deactivateBreakpoints : activateBreakpoints;
|
|
1119
|
-
if (toggleBreakpointsEnabled.tooltip !== tooltip) {
|
|
1120
|
-
toggleBreakpointsEnabled.tooltip = tooltip;
|
|
1121
|
-
onDidChangeToggleBreakpointsEnabled.fire(undefined);
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
toolbar.registerItem({
|
|
1125
|
-
id: DebugCommands.ADD_FUNCTION_BREAKPOINT.id,
|
|
1126
|
-
command: DebugCommands.ADD_FUNCTION_BREAKPOINT.id,
|
|
1127
|
-
icon: (0, browser_1.codicon)('add'),
|
|
1128
|
-
tooltip: DebugCommands.ADD_FUNCTION_BREAKPOINT.label
|
|
1129
|
-
});
|
|
1130
|
-
updateToggleBreakpointsEnabled();
|
|
1131
|
-
this.breakpointManager.onDidChangeBreakpoints(updateToggleBreakpointsEnabled);
|
|
1132
|
-
toolbar.registerItem(toggleBreakpointsEnabled);
|
|
1133
|
-
toolbar.registerItem({
|
|
1134
|
-
id: DebugCommands.REMOVE_ALL_BREAKPOINTS.id,
|
|
1135
|
-
command: DebugCommands.REMOVE_ALL_BREAKPOINTS.id,
|
|
1136
|
-
icon: (0, browser_1.codicon)('close-all'),
|
|
1137
|
-
priority: 2
|
|
1138
|
-
});
|
|
1139
|
-
toolbar.registerItem({
|
|
1140
|
-
id: DebugCommands.ADD_WATCH_EXPRESSION.id,
|
|
1141
|
-
command: DebugCommands.ADD_WATCH_EXPRESSION.id,
|
|
1142
|
-
icon: (0, browser_1.codicon)('add'),
|
|
1143
|
-
tooltip: DebugCommands.ADD_WATCH_EXPRESSION.label
|
|
1144
|
-
});
|
|
1145
|
-
toolbar.registerItem({
|
|
1146
|
-
id: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.id,
|
|
1147
|
-
command: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.id,
|
|
1148
|
-
icon: (0, browser_1.codicon)('collapse-all'),
|
|
1149
|
-
tooltip: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.label,
|
|
1150
|
-
priority: 1
|
|
1151
|
-
});
|
|
1152
|
-
toolbar.registerItem({
|
|
1153
|
-
id: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.id,
|
|
1154
|
-
command: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.id,
|
|
1155
|
-
icon: (0, browser_1.codicon)('close-all'),
|
|
1156
|
-
tooltip: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.label,
|
|
1157
|
-
priority: 2
|
|
1158
|
-
});
|
|
1159
|
-
}
|
|
1160
|
-
async openSession(session, options) {
|
|
1161
|
-
const { reveal } = {
|
|
1162
|
-
reveal: true,
|
|
1163
|
-
...options
|
|
1164
|
-
};
|
|
1165
|
-
const debugWidget = await this.openView({ reveal });
|
|
1166
|
-
debugWidget.sessionManager.currentSession = session;
|
|
1167
|
-
return debugWidget['sessionWidget'];
|
|
1168
|
-
}
|
|
1169
|
-
revealSession(session) {
|
|
1170
|
-
var _a;
|
|
1171
|
-
const widget = (_a = this.tryGetWidget()) === null || _a === void 0 ? void 0 : _a['sessionWidget'];
|
|
1172
|
-
if (widget) {
|
|
1173
|
-
this.shell.revealWidget(widget.id);
|
|
1174
|
-
}
|
|
1175
|
-
return widget;
|
|
1176
|
-
}
|
|
1177
|
-
async start(noDebug, debugSessionOptions) {
|
|
1178
|
-
let current = debugSessionOptions || this.configurations.current;
|
|
1179
|
-
// If no configurations are currently present, create the `launch.json` and prompt users to select the config.
|
|
1180
|
-
if (!current) {
|
|
1181
|
-
await this.configurations.addConfiguration();
|
|
1182
|
-
return;
|
|
1183
|
-
}
|
|
1184
|
-
if (noDebug !== undefined) {
|
|
1185
|
-
if (current.configuration) {
|
|
1186
|
-
current = {
|
|
1187
|
-
...current,
|
|
1188
|
-
configuration: {
|
|
1189
|
-
...current.configuration,
|
|
1190
|
-
noDebug
|
|
1191
|
-
}
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
else {
|
|
1195
|
-
current = {
|
|
1196
|
-
...current,
|
|
1197
|
-
noDebug
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
await this.manager.start(current);
|
|
1202
|
-
}
|
|
1203
|
-
async runTo(uri, line, column) {
|
|
1204
|
-
const thread = this.manager.currentThread;
|
|
1205
|
-
if (!thread) {
|
|
1206
|
-
return;
|
|
1207
|
-
}
|
|
1208
|
-
const checkThread = () => {
|
|
1209
|
-
if (thread.stopped && thread === this.manager.currentThread) {
|
|
1210
|
-
return true;
|
|
1211
|
-
}
|
|
1212
|
-
console.warn('Cannot run to the specified location. The current thread has changed or is not stopped.');
|
|
1213
|
-
return false;
|
|
1214
|
-
};
|
|
1215
|
-
if (!checkThread()) {
|
|
1216
|
-
return;
|
|
1217
|
-
}
|
|
1218
|
-
const breakpoint = breakpoint_marker_1.SourceBreakpoint.create(uri, { line, column });
|
|
1219
|
-
let shouldRemoveBreakpoint = this.breakpointManager.addBreakpoint(breakpoint);
|
|
1220
|
-
const removeBreakpoint = () => {
|
|
1221
|
-
const breakpoints = this.breakpointManager.getBreakpoints(uri);
|
|
1222
|
-
const newBreakpoints = breakpoints.filter(bp => bp.id !== breakpoint.id);
|
|
1223
|
-
if (breakpoints.length !== newBreakpoints.length) {
|
|
1224
|
-
this.breakpointManager.setBreakpoints(uri, newBreakpoints);
|
|
1225
|
-
}
|
|
1226
|
-
};
|
|
1227
|
-
try {
|
|
1228
|
-
const sessionBreakpoint = await this.verifyBreakpoint(breakpoint, thread.session);
|
|
1229
|
-
if (!checkThread()) {
|
|
1230
|
-
return;
|
|
1231
|
-
}
|
|
1232
|
-
if (!sessionBreakpoint || !sessionBreakpoint.installed || !sessionBreakpoint.verified) {
|
|
1233
|
-
this.messageService.warn(nls_1.nls.localize('theia/debug/cannotRunToThisLocation', 'Could not run the current thread to the specified location.'));
|
|
1234
|
-
return;
|
|
1235
|
-
}
|
|
1236
|
-
const rawBreakpoint = sessionBreakpoint.raw; // an installed breakpoint always has the underlying raw breakpoint
|
|
1237
|
-
if (rawBreakpoint.line !== line || (column && rawBreakpoint.column !== column)) {
|
|
1238
|
-
const shouldRun = await new browser_1.ConfirmDialog({
|
|
1239
|
-
title: nls_1.nls.localize('theia/debug/confirmRunToShiftedPosition_title', 'Cannot run the current thread to exactly the specified location'),
|
|
1240
|
-
msg: nls_1.nls.localize('theia/debug/confirmRunToShiftedPosition_msg', 'The target position will be shifted to Ln {0}, Col {1}. Run anyway?', rawBreakpoint.line, rawBreakpoint.column || 1),
|
|
1241
|
-
ok: browser_1.Dialog.YES,
|
|
1242
|
-
cancel: browser_1.Dialog.NO
|
|
1243
|
-
}).open();
|
|
1244
|
-
if (!shouldRun || !checkThread()) {
|
|
1245
|
-
return;
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
if (shouldRemoveBreakpoint) {
|
|
1249
|
-
common_1.Event.toPromise(common_1.Event.filter(common_1.Event.any(this.manager.onDidStopDebugSession, this.manager.onDidDestroyDebugSession), session => session === thread.session)).then(removeBreakpoint);
|
|
1250
|
-
}
|
|
1251
|
-
await thread.continue();
|
|
1252
|
-
shouldRemoveBreakpoint = false;
|
|
1253
|
-
}
|
|
1254
|
-
finally {
|
|
1255
|
-
if (shouldRemoveBreakpoint) {
|
|
1256
|
-
removeBreakpoint();
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
async verifyBreakpoint(breakpoint, session, timeout = 2000) {
|
|
1261
|
-
let sessionBreakpoint = session.getBreakpoint(breakpoint.id);
|
|
1262
|
-
if (!sessionBreakpoint || !sessionBreakpoint.installed || !sessionBreakpoint.verified) {
|
|
1263
|
-
try {
|
|
1264
|
-
await (0, promise_util_1.waitForEvent)(common_1.Event.filter(session.onDidChangeBreakpoints, () => {
|
|
1265
|
-
sessionBreakpoint = session.getBreakpoint(breakpoint.id);
|
|
1266
|
-
return !!sessionBreakpoint && sessionBreakpoint.installed && sessionBreakpoint.verified;
|
|
1267
|
-
}), timeout); // wait up to `timeout` ms for the breakpoint to become installed and verified
|
|
1268
|
-
}
|
|
1269
|
-
catch (e) {
|
|
1270
|
-
if (!(e instanceof common_1.CancellationError)) { // ignore the `CancellationError` on timeout
|
|
1271
|
-
throw e;
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
return sessionBreakpoint;
|
|
1276
|
-
}
|
|
1277
|
-
get threads() {
|
|
1278
|
-
const { currentWidget } = this.shell;
|
|
1279
|
-
return currentWidget instanceof debug_threads_widget_1.DebugThreadsWidget && currentWidget || undefined;
|
|
1280
|
-
}
|
|
1281
|
-
get selectedSession() {
|
|
1282
|
-
const { threads } = this;
|
|
1283
|
-
return threads && threads.selectedElement instanceof debug_session_1.DebugSession && threads.selectedElement || undefined;
|
|
1284
|
-
}
|
|
1285
|
-
get selectedThread() {
|
|
1286
|
-
const { threads } = this;
|
|
1287
|
-
return threads && threads.selectedElement instanceof debug_thread_1.DebugThread && threads.selectedElement || undefined;
|
|
1288
|
-
}
|
|
1289
|
-
get frames() {
|
|
1290
|
-
const { currentWidget } = this.shell;
|
|
1291
|
-
return currentWidget instanceof debug_stack_frames_widget_1.DebugStackFramesWidget && currentWidget || undefined;
|
|
1292
|
-
}
|
|
1293
|
-
get selectedFrame() {
|
|
1294
|
-
const { frames } = this;
|
|
1295
|
-
return frames && frames.selectedElement instanceof debug_stack_frame_1.DebugStackFrame && frames.selectedElement || undefined;
|
|
1296
|
-
}
|
|
1297
|
-
get breakpoints() {
|
|
1298
|
-
const { currentWidget } = this.shell;
|
|
1299
|
-
return currentWidget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget && currentWidget || undefined;
|
|
1300
|
-
}
|
|
1301
|
-
get selectedAnyBreakpoint() {
|
|
1302
|
-
const { breakpoints } = this;
|
|
1303
|
-
const selectedElement = breakpoints && breakpoints.selectedElement;
|
|
1304
|
-
return selectedElement instanceof debug_breakpoint_1.DebugBreakpoint ? selectedElement : undefined;
|
|
1305
|
-
}
|
|
1306
|
-
get selectedBreakpoint() {
|
|
1307
|
-
const breakpoint = this.selectedAnyBreakpoint;
|
|
1308
|
-
return breakpoint && breakpoint instanceof debug_source_breakpoint_1.DebugSourceBreakpoint && !breakpoint.logMessage ? breakpoint : undefined;
|
|
1309
|
-
}
|
|
1310
|
-
get selectedBreakpoints() {
|
|
1311
|
-
const { breakpoints } = this;
|
|
1312
|
-
return breakpoints && breakpoints.model.selectedNodes
|
|
1313
|
-
.filter(source_tree_1.TreeElementNode.is)
|
|
1314
|
-
.map(node => node.element)
|
|
1315
|
-
.filter(element => element instanceof debug_breakpoint_1.DebugBreakpoint) || [];
|
|
1316
|
-
}
|
|
1317
|
-
get selectedLogpoint() {
|
|
1318
|
-
const breakpoint = this.selectedAnyBreakpoint;
|
|
1319
|
-
return breakpoint && breakpoint instanceof debug_source_breakpoint_1.DebugSourceBreakpoint && !!breakpoint.logMessage ? breakpoint : undefined;
|
|
1320
|
-
}
|
|
1321
|
-
get selectedFunctionBreakpoint() {
|
|
1322
|
-
const breakpoint = this.selectedAnyBreakpoint;
|
|
1323
|
-
return breakpoint && breakpoint instanceof debug_function_breakpoint_1.DebugFunctionBreakpoint ? breakpoint : undefined;
|
|
1324
|
-
}
|
|
1325
|
-
get selectedInstructionBreakpoint() {
|
|
1326
|
-
if (this.selectedAnyBreakpoint instanceof debug_instruction_breakpoint_1.DebugInstructionBreakpoint) {
|
|
1327
|
-
return this.selectedAnyBreakpoint;
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
get selectedExceptionBreakpoint() {
|
|
1331
|
-
const { breakpoints } = this;
|
|
1332
|
-
const selectedElement = breakpoints && breakpoints.selectedElement;
|
|
1333
|
-
return selectedElement instanceof debug_exception_breakpoint_1.DebugExceptionBreakpoint ? selectedElement : undefined;
|
|
1334
|
-
}
|
|
1335
|
-
get selectedSettableBreakpoint() {
|
|
1336
|
-
const selected = this.selectedAnyBreakpoint;
|
|
1337
|
-
if (selected instanceof debug_function_breakpoint_1.DebugFunctionBreakpoint || selected instanceof debug_instruction_breakpoint_1.DebugInstructionBreakpoint || selected instanceof debug_source_breakpoint_1.DebugSourceBreakpoint) {
|
|
1338
|
-
return selected;
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
get consoleWidget() {
|
|
1342
|
-
const { currentWidget } = this.shell;
|
|
1343
|
-
return currentWidget instanceof console_widget_1.ConsoleWidget && currentWidget.id === debug_console_contribution_1.DebugConsoleContribution.options.id && currentWidget || undefined;
|
|
1344
|
-
}
|
|
1345
|
-
get variables() {
|
|
1346
|
-
const { currentWidget } = this.shell;
|
|
1347
|
-
return currentWidget instanceof debug_variables_widget_1.DebugVariablesWidget && currentWidget || undefined;
|
|
1348
|
-
}
|
|
1349
|
-
get variablesSource() {
|
|
1350
|
-
var _a, _b, _c;
|
|
1351
|
-
const hover = (_a = this.editors.model) === null || _a === void 0 ? void 0 : _a.hover;
|
|
1352
|
-
if (hover === null || hover === void 0 ? void 0 : hover.isVisible) {
|
|
1353
|
-
return hover;
|
|
1354
|
-
}
|
|
1355
|
-
return (_b = this.variables) !== null && _b !== void 0 ? _b : (_c = this.consoleWidget) === null || _c === void 0 ? void 0 : _c.content;
|
|
1356
|
-
}
|
|
1357
|
-
get selectedVariable() {
|
|
1358
|
-
const { variablesSource } = this;
|
|
1359
|
-
return variablesSource && variablesSource.selectedElement instanceof debug_console_items_1.DebugVariable && variablesSource.selectedElement || undefined;
|
|
1360
|
-
}
|
|
1361
|
-
get watch() {
|
|
1362
|
-
const { currentWidget } = this.shell;
|
|
1363
|
-
return currentWidget instanceof debug_watch_widget_1.DebugWatchWidget && currentWidget || undefined;
|
|
1364
|
-
}
|
|
1365
|
-
get watchExpression() {
|
|
1366
|
-
const { watch } = this;
|
|
1367
|
-
return watch && watch.selectedElement instanceof debug_watch_expression_1.DebugWatchExpression && watch.selectedElement || undefined;
|
|
1368
|
-
}
|
|
1369
|
-
isPosition(position) {
|
|
1370
|
-
return monaco.Position.isIPosition(position);
|
|
1371
|
-
}
|
|
1372
|
-
asPosition(position) {
|
|
1373
|
-
return monaco.Position.lift(position);
|
|
1374
|
-
}
|
|
1375
|
-
registerColors(colors) {
|
|
1376
|
-
colors.register(
|
|
1377
|
-
// Debug colors should be aligned with https://code.visualstudio.com/api/references/theme-color#debug-colors
|
|
1378
|
-
{
|
|
1379
|
-
id: 'editor.stackFrameHighlightBackground',
|
|
1380
|
-
defaults: {
|
|
1381
|
-
dark: '#ffff0033',
|
|
1382
|
-
light: '#ffff6673',
|
|
1383
|
-
hcDark: '#fff600',
|
|
1384
|
-
hcLight: '#ffff6673'
|
|
1385
|
-
}, description: nls_1.nls.localizeByDefault('Background color for the highlight of line at the top stack frame position.')
|
|
1386
|
-
}, {
|
|
1387
|
-
id: 'editor.focusedStackFrameHighlightBackground',
|
|
1388
|
-
defaults: {
|
|
1389
|
-
dark: '#7abd7a4d',
|
|
1390
|
-
light: '#cee7ce73',
|
|
1391
|
-
hcDark: '#cee7ce',
|
|
1392
|
-
hcLight: '#cee7ce73'
|
|
1393
|
-
}, description: nls_1.nls.localizeByDefault('Background color for the highlight of line at focused stack frame position.')
|
|
1394
|
-
},
|
|
1395
|
-
// Status bar colors should be aligned with debugging colors from https://code.visualstudio.com/api/references/theme-color#status-bar-colors
|
|
1396
|
-
{
|
|
1397
|
-
id: 'statusBar.debuggingBackground', defaults: {
|
|
1398
|
-
dark: '#CC6633',
|
|
1399
|
-
light: '#CC6633',
|
|
1400
|
-
hcDark: '#CC6633',
|
|
1401
|
-
hcLight: '#B5200D'
|
|
1402
|
-
}, description: nls_1.nls.localizeByDefault('Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window')
|
|
1403
|
-
}, {
|
|
1404
|
-
id: 'statusBar.debuggingForeground', defaults: {
|
|
1405
|
-
dark: 'statusBar.foreground',
|
|
1406
|
-
light: 'statusBar.foreground',
|
|
1407
|
-
hcDark: 'statusBar.foreground',
|
|
1408
|
-
hcLight: 'statusBar.foreground'
|
|
1409
|
-
}, description: nls_1.nls.localizeByDefault('Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window')
|
|
1410
|
-
}, {
|
|
1411
|
-
id: 'statusBar.debuggingBorder', defaults: {
|
|
1412
|
-
dark: 'statusBar.border',
|
|
1413
|
-
light: 'statusBar.border',
|
|
1414
|
-
hcDark: 'statusBar.border',
|
|
1415
|
-
hcLight: 'statusBar.border'
|
|
1416
|
-
}, description: nls_1.nls.localizeByDefault('Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window')
|
|
1417
|
-
},
|
|
1418
|
-
// Debug Exception Widget colors should be aligned with
|
|
1419
|
-
// https://github.com/microsoft/vscode/blob/ff5f581425da6230b6f9216ecf19abf6c9d285a6/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts#L23
|
|
1420
|
-
{
|
|
1421
|
-
id: 'debugExceptionWidget.border', defaults: {
|
|
1422
|
-
dark: '#a31515',
|
|
1423
|
-
light: '#a31515',
|
|
1424
|
-
hcDark: '#a31515',
|
|
1425
|
-
hcLight: '#a31515'
|
|
1426
|
-
}, description: nls_1.nls.localizeByDefault('Exception widget border color.'),
|
|
1427
|
-
}, {
|
|
1428
|
-
id: 'debugExceptionWidget.background', defaults: {
|
|
1429
|
-
dark: '#420b0d',
|
|
1430
|
-
light: '#f1dfde',
|
|
1431
|
-
hcDark: '#420b0d',
|
|
1432
|
-
hcLight: '#f1dfde'
|
|
1433
|
-
}, description: nls_1.nls.localizeByDefault('Exception widget background color.')
|
|
1434
|
-
},
|
|
1435
|
-
// Debug Icon colors should be aligned with
|
|
1436
|
-
// https://code.visualstudio.com/api/references/theme-color#debug-icons-colors
|
|
1437
|
-
{
|
|
1438
|
-
id: 'debugIcon.breakpointForeground', defaults: {
|
|
1439
|
-
dark: '#E51400',
|
|
1440
|
-
light: '#E51400',
|
|
1441
|
-
hcDark: '#E51400',
|
|
1442
|
-
hcLight: '#E51400'
|
|
1443
|
-
},
|
|
1444
|
-
description: nls_1.nls.localizeByDefault('Icon color for breakpoints.')
|
|
1445
|
-
}, {
|
|
1446
|
-
id: 'debugIcon.breakpointDisabledForeground', defaults: {
|
|
1447
|
-
dark: '#848484',
|
|
1448
|
-
light: '#848484',
|
|
1449
|
-
hcDark: '#848484',
|
|
1450
|
-
hcLight: '#848484'
|
|
1451
|
-
},
|
|
1452
|
-
description: nls_1.nls.localizeByDefault('Icon color for disabled breakpoints.')
|
|
1453
|
-
}, {
|
|
1454
|
-
id: 'debugIcon.breakpointUnverifiedForeground', defaults: {
|
|
1455
|
-
dark: '#848484',
|
|
1456
|
-
light: '#848484',
|
|
1457
|
-
hcDark: '#848484',
|
|
1458
|
-
hcLight: '#848484'
|
|
1459
|
-
},
|
|
1460
|
-
description: nls_1.nls.localizeByDefault('Icon color for unverified breakpoints.')
|
|
1461
|
-
}, {
|
|
1462
|
-
id: 'debugIcon.breakpointCurrentStackframeForeground', defaults: {
|
|
1463
|
-
dark: '#FFCC00',
|
|
1464
|
-
light: '#BE8700',
|
|
1465
|
-
hcDark: '#FFCC00',
|
|
1466
|
-
hcLight: '#BE8700'
|
|
1467
|
-
},
|
|
1468
|
-
description: nls_1.nls.localizeByDefault('Icon color for the current breakpoint stack frame.')
|
|
1469
|
-
}, {
|
|
1470
|
-
id: 'debugIcon.breakpointStackframeForeground', defaults: {
|
|
1471
|
-
dark: '#89D185',
|
|
1472
|
-
light: '#89D185',
|
|
1473
|
-
hcDark: '#89D185',
|
|
1474
|
-
hcLight: '#89D185'
|
|
1475
|
-
},
|
|
1476
|
-
description: nls_1.nls.localizeByDefault('Icon color for all breakpoint stack frames.')
|
|
1477
|
-
}, {
|
|
1478
|
-
id: 'debugIcon.startForeground', defaults: {
|
|
1479
|
-
dark: '#89D185',
|
|
1480
|
-
light: '#388A34',
|
|
1481
|
-
hcDark: '#89D185',
|
|
1482
|
-
hcLight: '#388A34'
|
|
1483
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for start debugging.')
|
|
1484
|
-
}, {
|
|
1485
|
-
id: 'debugIcon.pauseForeground', defaults: {
|
|
1486
|
-
dark: '#75BEFF',
|
|
1487
|
-
light: '#007ACC',
|
|
1488
|
-
hcDark: '#75BEFF',
|
|
1489
|
-
hcLight: '#007ACC'
|
|
1490
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for pause.')
|
|
1491
|
-
}, {
|
|
1492
|
-
id: 'debugIcon.stopForeground', defaults: {
|
|
1493
|
-
dark: '#F48771',
|
|
1494
|
-
light: '#A1260D',
|
|
1495
|
-
hcDark: '#F48771',
|
|
1496
|
-
hcLight: '#A1260D'
|
|
1497
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for stop.')
|
|
1498
|
-
}, {
|
|
1499
|
-
id: 'debugIcon.disconnectForeground', defaults: {
|
|
1500
|
-
dark: '#F48771',
|
|
1501
|
-
light: '#A1260D',
|
|
1502
|
-
hcDark: '#F48771',
|
|
1503
|
-
hcLight: '#A1260D'
|
|
1504
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for disconnect.')
|
|
1505
|
-
}, {
|
|
1506
|
-
id: 'debugIcon.restartForeground', defaults: {
|
|
1507
|
-
dark: '#89D185',
|
|
1508
|
-
light: '#388A34',
|
|
1509
|
-
hcDark: '#89D185',
|
|
1510
|
-
hcLight: '#388A34'
|
|
1511
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for restart.')
|
|
1512
|
-
}, {
|
|
1513
|
-
id: 'debugIcon.stepOverForeground', defaults: {
|
|
1514
|
-
dark: '#75BEFF',
|
|
1515
|
-
light: '#007ACC',
|
|
1516
|
-
hcDark: '#75BEFF',
|
|
1517
|
-
hcLight: '#007ACC',
|
|
1518
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step over.')
|
|
1519
|
-
}, {
|
|
1520
|
-
id: 'debugIcon.stepIntoForeground', defaults: {
|
|
1521
|
-
dark: '#75BEFF',
|
|
1522
|
-
light: '#007ACC',
|
|
1523
|
-
hcDark: '#75BEFF',
|
|
1524
|
-
hcLight: '#007ACC'
|
|
1525
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step into.')
|
|
1526
|
-
}, {
|
|
1527
|
-
id: 'debugIcon.stepOutForeground', defaults: {
|
|
1528
|
-
dark: '#75BEFF',
|
|
1529
|
-
light: '#007ACC',
|
|
1530
|
-
hcDark: '#75BEFF',
|
|
1531
|
-
hcLight: '#007ACC',
|
|
1532
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step over.')
|
|
1533
|
-
}, {
|
|
1534
|
-
id: 'debugIcon.continueForeground', defaults: {
|
|
1535
|
-
dark: '#75BEFF',
|
|
1536
|
-
light: '#007ACC',
|
|
1537
|
-
hcDark: '#75BEFF',
|
|
1538
|
-
hcLight: '#007ACC'
|
|
1539
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for continue.')
|
|
1540
|
-
}, {
|
|
1541
|
-
id: 'debugIcon.stepBackForeground', defaults: {
|
|
1542
|
-
dark: '#75BEFF',
|
|
1543
|
-
light: '#007ACC',
|
|
1544
|
-
hcDark: '#75BEFF',
|
|
1545
|
-
hcLight: '#007ACC'
|
|
1546
|
-
}, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step back.')
|
|
1547
|
-
}, {
|
|
1548
|
-
id: 'debugConsole.infoForeground', defaults: {
|
|
1549
|
-
dark: 'editorInfo.foreground',
|
|
1550
|
-
light: 'editorInfo.foreground',
|
|
1551
|
-
hcDark: 'foreground',
|
|
1552
|
-
hcLight: 'foreground'
|
|
1553
|
-
}, description: 'Foreground color for info messages in debug REPL console.' // this description is present in VS Code, but is not currently localized there
|
|
1554
|
-
}, {
|
|
1555
|
-
id: 'debugConsole.warningForeground', defaults: {
|
|
1556
|
-
dark: 'editorWarning.foreground',
|
|
1557
|
-
light: 'editorWarning.foreground',
|
|
1558
|
-
hcDark: '#008000',
|
|
1559
|
-
hcLight: 'editorWarning.foreground'
|
|
1560
|
-
},
|
|
1561
|
-
description: 'Foreground color for warning messages in debug REPL console.' // this description is present in VS Code, but is not currently localized there
|
|
1562
|
-
}, {
|
|
1563
|
-
id: 'debugConsole.errorForeground', defaults: {
|
|
1564
|
-
dark: 'errorForeground',
|
|
1565
|
-
light: 'errorForeground',
|
|
1566
|
-
hcDark: 'errorForeground',
|
|
1567
|
-
hcLight: 'errorForeground'
|
|
1568
|
-
},
|
|
1569
|
-
description: 'Foreground color for error messages in debug REPL console.', // this description is present in VS Code, but is not currently localized there
|
|
1570
|
-
}, {
|
|
1571
|
-
id: 'debugConsole.sourceForeground', defaults: {
|
|
1572
|
-
dark: 'foreground',
|
|
1573
|
-
light: 'foreground',
|
|
1574
|
-
hcDark: 'foreground',
|
|
1575
|
-
hcLight: 'foreground'
|
|
1576
|
-
},
|
|
1577
|
-
description: 'Foreground color for source filenames in debug REPL console.', // this description is present in VS Code, but is not currently localized there
|
|
1578
|
-
}, {
|
|
1579
|
-
id: 'debugConsoleInputIcon.foreground', defaults: {
|
|
1580
|
-
dark: 'foreground',
|
|
1581
|
-
light: 'foreground',
|
|
1582
|
-
hcDark: 'foreground',
|
|
1583
|
-
hcLight: 'foreground'
|
|
1584
|
-
},
|
|
1585
|
-
description: 'Foreground color for debug console input marker icon.' // this description is present in VS Code, but is not currently localized there
|
|
1586
|
-
});
|
|
1587
|
-
}
|
|
1588
|
-
updateStatusBar() {
|
|
1589
|
-
if (this.debuggingStatusBar === document.body.classList.contains('theia-mod-debugging')) {
|
|
1590
|
-
return;
|
|
1591
|
-
}
|
|
1592
|
-
document.body.classList.toggle('theia-mod-debugging');
|
|
1593
|
-
}
|
|
1594
|
-
get debuggingStatusBar() {
|
|
1595
|
-
if (this.manager.state < debug_session_1.DebugState.Running) {
|
|
1596
|
-
return false;
|
|
1597
|
-
}
|
|
1598
|
-
const session = this.manager.currentSession;
|
|
1599
|
-
if (session) {
|
|
1600
|
-
if (session.configuration.noDebug) {
|
|
1601
|
-
return false;
|
|
1602
|
-
}
|
|
1603
|
-
if (this.getOption(session, 'suppressDebugStatusbar')) {
|
|
1604
|
-
return false;
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
return true;
|
|
1608
|
-
}
|
|
1609
|
-
getOption(session, option) {
|
|
1610
|
-
// If session is undefined there will be no option
|
|
1611
|
-
if (!session) {
|
|
1612
|
-
return false;
|
|
1613
|
-
}
|
|
1614
|
-
// If undefined take the value of the parent
|
|
1615
|
-
if (option in session.configuration && session.configuration[option] !== undefined) {
|
|
1616
|
-
return session.configuration[option];
|
|
1617
|
-
}
|
|
1618
|
-
return this.getOption(session.parentSession, option);
|
|
1619
|
-
}
|
|
1620
|
-
};
|
|
1621
|
-
exports.DebugFrontendApplicationContribution = DebugFrontendApplicationContribution;
|
|
1622
|
-
tslib_1.__decorate([
|
|
1623
|
-
(0, inversify_1.inject)(debug_service_1.DebugService),
|
|
1624
|
-
tslib_1.__metadata("design:type", Object)
|
|
1625
|
-
], DebugFrontendApplicationContribution.prototype, "debug", void 0);
|
|
1626
|
-
tslib_1.__decorate([
|
|
1627
|
-
(0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
|
|
1628
|
-
tslib_1.__metadata("design:type", debug_session_manager_1.DebugSessionManager)
|
|
1629
|
-
], DebugFrontendApplicationContribution.prototype, "manager", void 0);
|
|
1630
|
-
tslib_1.__decorate([
|
|
1631
|
-
(0, inversify_1.inject)(debug_configuration_manager_1.DebugConfigurationManager),
|
|
1632
|
-
tslib_1.__metadata("design:type", debug_configuration_manager_1.DebugConfigurationManager)
|
|
1633
|
-
], DebugFrontendApplicationContribution.prototype, "configurations", void 0);
|
|
1634
|
-
tslib_1.__decorate([
|
|
1635
|
-
(0, inversify_1.inject)(breakpoint_manager_1.BreakpointManager),
|
|
1636
|
-
tslib_1.__metadata("design:type", breakpoint_manager_1.BreakpointManager)
|
|
1637
|
-
], DebugFrontendApplicationContribution.prototype, "breakpointManager", void 0);
|
|
1638
|
-
tslib_1.__decorate([
|
|
1639
|
-
(0, inversify_1.inject)(debug_editor_service_1.DebugEditorService),
|
|
1640
|
-
tslib_1.__metadata("design:type", debug_editor_service_1.DebugEditorService)
|
|
1641
|
-
], DebugFrontendApplicationContribution.prototype, "editors", void 0);
|
|
1642
|
-
tslib_1.__decorate([
|
|
1643
|
-
(0, inversify_1.inject)(debug_console_contribution_1.DebugConsoleContribution),
|
|
1644
|
-
tslib_1.__metadata("design:type", debug_console_contribution_1.DebugConsoleContribution)
|
|
1645
|
-
], DebugFrontendApplicationContribution.prototype, "console", void 0);
|
|
1646
|
-
tslib_1.__decorate([
|
|
1647
|
-
(0, inversify_1.inject)(debug_schema_updater_1.DebugSchemaUpdater),
|
|
1648
|
-
tslib_1.__metadata("design:type", debug_schema_updater_1.DebugSchemaUpdater)
|
|
1649
|
-
], DebugFrontendApplicationContribution.prototype, "schemaUpdater", void 0);
|
|
1650
|
-
tslib_1.__decorate([
|
|
1651
|
-
(0, inversify_1.inject)(debug_preferences_1.DebugPreferences),
|
|
1652
|
-
tslib_1.__metadata("design:type", Object)
|
|
1653
|
-
], DebugFrontendApplicationContribution.prototype, "preference", void 0);
|
|
1654
|
-
tslib_1.__decorate([
|
|
1655
|
-
(0, inversify_1.inject)(debug_watch_manager_1.DebugWatchManager),
|
|
1656
|
-
tslib_1.__metadata("design:type", debug_watch_manager_1.DebugWatchManager)
|
|
1657
|
-
], DebugFrontendApplicationContribution.prototype, "watchManager", void 0);
|
|
1658
|
-
tslib_1.__decorate([
|
|
1659
|
-
(0, inversify_1.inject)(debug_expression_provider_1.DebugExpressionProvider),
|
|
1660
|
-
tslib_1.__metadata("design:type", debug_expression_provider_1.DebugExpressionProvider)
|
|
1661
|
-
], DebugFrontendApplicationContribution.prototype, "expressionProvider", void 0);
|
|
1662
|
-
tslib_1.__decorate([
|
|
1663
|
-
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
1664
|
-
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
1665
|
-
], DebugFrontendApplicationContribution.prototype, "labelProvider", void 0);
|
|
1666
|
-
tslib_1.__decorate([
|
|
1667
|
-
(0, inversify_1.inject)(browser_2.EditorManager),
|
|
1668
|
-
tslib_1.__metadata("design:type", browser_2.EditorManager)
|
|
1669
|
-
], DebugFrontendApplicationContribution.prototype, "editorManager", void 0);
|
|
1670
|
-
tslib_1.__decorate([
|
|
1671
|
-
(0, inversify_1.inject)(common_1.MessageService),
|
|
1672
|
-
tslib_1.__metadata("design:type", common_1.MessageService)
|
|
1673
|
-
], DebugFrontendApplicationContribution.prototype, "messageService", void 0);
|
|
1674
|
-
exports.DebugFrontendApplicationContribution = DebugFrontendApplicationContribution = tslib_1.__decorate([
|
|
1675
|
-
(0, inversify_1.injectable)(),
|
|
1676
|
-
tslib_1.__metadata("design:paramtypes", [])
|
|
1677
|
-
], DebugFrontendApplicationContribution);
|
|
1678
|
-
//# sourceMappingURL=debug-frontend-application-contribution.js.map
|