@theia/debug 1.17.0-next.ff9e0507 → 1.18.0-next.04e2816d

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.
Files changed (139) hide show
  1. package/lib/browser/breakpoint/breakpoint-manager.js +159 -382
  2. package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -1
  3. package/lib/browser/breakpoint/breakpoint-marker.js +4 -15
  4. package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -1
  5. package/lib/browser/console/debug-console-contribution.d.ts.map +1 -1
  6. package/lib/browser/console/debug-console-contribution.js +132 -221
  7. package/lib/browser/console/debug-console-contribution.js.map +1 -1
  8. package/lib/browser/console/debug-console-items.js +231 -451
  9. package/lib/browser/console/debug-console-items.js.map +1 -1
  10. package/lib/browser/console/debug-console-session.js +86 -223
  11. package/lib/browser/console/debug-console-session.js.map +1 -1
  12. package/lib/browser/debug-configuration-manager.js +281 -623
  13. package/lib/browser/debug-configuration-manager.js.map +1 -1
  14. package/lib/browser/debug-configuration-model.js +31 -108
  15. package/lib/browser/debug-configuration-model.js.map +1 -1
  16. package/lib/browser/debug-frontend-application-contribution.d.ts +1 -0
  17. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  18. package/lib/browser/debug-frontend-application-contribution.js +577 -780
  19. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  20. package/lib/browser/debug-frontend-module.js +46 -82
  21. package/lib/browser/debug-frontend-module.js.map +1 -1
  22. package/lib/browser/debug-keybinding-contexts.js +41 -59
  23. package/lib/browser/debug-keybinding-contexts.js.map +1 -1
  24. package/lib/browser/debug-monaco-contribution.js +17 -17
  25. package/lib/browser/debug-monaco-contribution.js.map +1 -1
  26. package/lib/browser/debug-package.spec.js +2 -2
  27. package/lib/browser/debug-package.spec.js.map +1 -1
  28. package/lib/browser/debug-preferences.js +7 -11
  29. package/lib/browser/debug-preferences.js.map +1 -1
  30. package/lib/browser/debug-prefix-configuration.js +101 -117
  31. package/lib/browser/debug-prefix-configuration.js.map +1 -1
  32. package/lib/browser/debug-resource.js +29 -79
  33. package/lib/browser/debug-resource.js.map +1 -1
  34. package/lib/browser/debug-schema-updater.js +54 -193
  35. package/lib/browser/debug-schema-updater.js.map +1 -1
  36. package/lib/browser/debug-session-connection.js +137 -235
  37. package/lib/browser/debug-session-connection.js.map +1 -1
  38. package/lib/browser/debug-session-contribution.js +91 -120
  39. package/lib/browser/debug-session-contribution.js.map +1 -1
  40. package/lib/browser/debug-session-manager.js +368 -652
  41. package/lib/browser/debug-session-manager.js.map +1 -1
  42. package/lib/browser/debug-session.js +556 -1279
  43. package/lib/browser/debug-session.js.map +1 -1
  44. package/lib/browser/debug-tab-bar-decorator.js +32 -38
  45. package/lib/browser/debug-tab-bar-decorator.js.map +1 -1
  46. package/lib/browser/debug-watch-manager.js +41 -138
  47. package/lib/browser/debug-watch-manager.js.map +1 -1
  48. package/lib/browser/editor/debug-breakpoint-widget.js +142 -255
  49. package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -1
  50. package/lib/browser/editor/debug-editor-model.js +299 -474
  51. package/lib/browser/editor/debug-editor-model.js.map +1 -1
  52. package/lib/browser/editor/debug-editor-service.js +128 -206
  53. package/lib/browser/editor/debug-editor-service.js.map +1 -1
  54. package/lib/browser/editor/debug-exception-widget.js +56 -119
  55. package/lib/browser/editor/debug-exception-widget.js.map +1 -1
  56. package/lib/browser/editor/debug-expression-provider.js +21 -24
  57. package/lib/browser/editor/debug-expression-provider.js.map +1 -1
  58. package/lib/browser/editor/debug-hover-source.js +83 -249
  59. package/lib/browser/editor/debug-hover-source.js.map +1 -1
  60. package/lib/browser/editor/debug-hover-widget.js +151 -224
  61. package/lib/browser/editor/debug-hover-widget.js.map +1 -1
  62. package/lib/browser/editor/debug-inline-value-decorator.js +96 -193
  63. package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -1
  64. package/lib/browser/model/debug-breakpoint.js +52 -102
  65. package/lib/browser/model/debug-breakpoint.js.map +1 -1
  66. package/lib/browser/model/debug-function-breakpoint.js +54 -124
  67. package/lib/browser/model/debug-function-breakpoint.js.map +1 -1
  68. package/lib/browser/model/debug-source-breakpoint.js +111 -265
  69. package/lib/browser/model/debug-source-breakpoint.js.map +1 -1
  70. package/lib/browser/model/debug-source.js +45 -126
  71. package/lib/browser/model/debug-source.js.map +1 -1
  72. package/lib/browser/model/debug-stack-frame.js +85 -199
  73. package/lib/browser/model/debug-stack-frame.js.map +1 -1
  74. package/lib/browser/model/debug-thread.js +132 -304
  75. package/lib/browser/model/debug-thread.js.map +1 -1
  76. package/lib/browser/preferences/launch-preferences.js +3 -3
  77. package/lib/browser/preferences/launch-preferences.js.map +1 -1
  78. package/lib/browser/view/debug-action.js +13 -29
  79. package/lib/browser/view/debug-action.js.map +1 -1
  80. package/lib/browser/view/debug-breakpoints-source.js +42 -169
  81. package/lib/browser/view/debug-breakpoints-source.js.map +1 -1
  82. package/lib/browser/view/debug-breakpoints-widget.js +43 -82
  83. package/lib/browser/view/debug-breakpoints-widget.js.map +1 -1
  84. package/lib/browser/view/debug-configuration-widget.js +89 -136
  85. package/lib/browser/view/debug-configuration-widget.js.map +1 -1
  86. package/lib/browser/view/debug-exception-breakpoint.js +7 -9
  87. package/lib/browser/view/debug-exception-breakpoint.js.map +1 -1
  88. package/lib/browser/view/debug-session-widget.js +80 -114
  89. package/lib/browser/view/debug-session-widget.js.map +1 -1
  90. package/lib/browser/view/debug-stack-frames-source.js +58 -169
  91. package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
  92. package/lib/browser/view/debug-stack-frames-widget.js +89 -155
  93. package/lib/browser/view/debug-stack-frames-widget.js.map +1 -1
  94. package/lib/browser/view/debug-threads-source.js +37 -124
  95. package/lib/browser/view/debug-threads-source.js.map +1 -1
  96. package/lib/browser/view/debug-threads-widget.js +61 -99
  97. package/lib/browser/view/debug-threads-widget.js.map +1 -1
  98. package/lib/browser/view/debug-toolbar-widget.js +58 -76
  99. package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
  100. package/lib/browser/view/debug-variables-source.js +32 -102
  101. package/lib/browser/view/debug-variables-source.js.map +1 -1
  102. package/lib/browser/view/debug-variables-widget.js +35 -74
  103. package/lib/browser/view/debug-variables-widget.js.map +1 -1
  104. package/lib/browser/view/debug-view-model.js +172 -381
  105. package/lib/browser/view/debug-view-model.js.map +1 -1
  106. package/lib/browser/view/debug-watch-expression.js +34 -112
  107. package/lib/browser/view/debug-watch-expression.js.map +1 -1
  108. package/lib/browser/view/debug-watch-source.js +30 -87
  109. package/lib/browser/view/debug-watch-source.js.map +1 -1
  110. package/lib/browser/view/debug-watch-widget.js +35 -74
  111. package/lib/browser/view/debug-watch-widget.js.map +1 -1
  112. package/lib/browser/view/debug-widget.js +63 -105
  113. package/lib/browser/view/debug-widget.js.map +1 -1
  114. package/lib/common/debug-service.js +5 -5
  115. package/lib/common/debug-service.js.map +1 -1
  116. package/lib/node/debug-adapter-contribution-registry.js +133 -489
  117. package/lib/node/debug-adapter-contribution-registry.js.map +1 -1
  118. package/lib/node/debug-adapter-factory.js +38 -57
  119. package/lib/node/debug-adapter-factory.js.map +1 -1
  120. package/lib/node/debug-adapter-session-manager.js +50 -98
  121. package/lib/node/debug-adapter-session-manager.js.map +1 -1
  122. package/lib/node/debug-adapter-session.js +44 -93
  123. package/lib/node/debug-adapter-session.js.map +1 -1
  124. package/lib/node/debug-backend-module.js +13 -17
  125. package/lib/node/debug-backend-module.js.map +1 -1
  126. package/lib/node/debug-service-impl.js +71 -213
  127. package/lib/node/debug-service-impl.js.map +1 -1
  128. package/lib/node/vscode/vscode-debug-adapter-contribution.js +153 -294
  129. package/lib/node/vscode/vscode-debug-adapter-contribution.js.map +1 -1
  130. package/package.json +16 -16
  131. package/src/browser/console/debug-console-contribution.tsx +3 -3
  132. package/src/browser/debug-frontend-application-contribution.ts +69 -18
  133. package/src/browser/debug-prefix-configuration.ts +1 -1
  134. package/src/browser/style/index.css +28 -10
  135. package/src/browser/view/debug-action.tsx +2 -2
  136. package/src/browser/view/debug-configuration-widget.tsx +3 -3
  137. package/src/browser/view/debug-session-widget.ts +2 -2
  138. package/src/browser/view/debug-toolbar-widget.tsx +8 -8
  139. package/src/browser/view/debug-widget.ts +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"debug-breakpoints-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-breakpoints-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElF,0DAAwG;AAGxG,mEAAuE;AACvE,uEAAoE;AACpE,uEAAqE;AACrE,uDAAoD;AAGpD;IAA4C,0CAAgB;IAA5D;;IA2CA,CAAC;+BA3CY,sBAAsB;IAMxB,sCAAe,GAAtB,UAAuB,MAA4B;QAC/C,IAAM,KAAK,GAAG,8BAAgB,CAAC,eAAe,CAAC,MAAM,EAAE;YACnD,eAAe,EAAE,wBAAsB,CAAC,YAAY;YACpD,WAAW,EAAE,KAAK;YAClB,cAAc,EAAE,IAAI;SACvB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,iDAAsB,CAAC,CAAC,MAAM,EAAE,CAAC;QAC5C,KAAK,CAAC,MAAM,CAAC,8BAAgB,CAAC,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,wBAAsB,CAAC,CAAC,MAAM,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACjB,CAAC;IACM,mCAAY,GAAnB,UAAoB,MAA4B;QAC5C,OAAO,wBAAsB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,wBAAsB,CAAC,CAAC;IACtF,CAAC;IAYS,qCAAI,GAAd;QACI,iBAAM,IAAI,WAAE,CAAC;QACb,IAAI,CAAC,EAAE,GAAG,oBAAoB,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QACnD,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,aAAa,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC;IACzC,CAAC;IAES,oDAAmB,GAA7B,UAA8B,IAAc,EAAE,KAAgB;QAC1D,OAAO,SAAS,CAAC;IACrB,CAAC;;IAvCM,mCAAY,GAAa,CAAC,gCAAgC,CAAC,CAAC;IAC5D,gCAAS,YAAO,wBAAsB,CAAC,YAAY,GAAE,QAAQ,GAAE;IAC/D,kCAAW,YAAO,wBAAsB,CAAC,YAAY,GAAE,UAAU,GAAE;IACnE,kCAAW,YAAO,wBAAsB,CAAC,YAAY,GAAE,UAAU,GAAE;IAiB1E;QADC,kBAAM,CAAC,iCAAc,CAAC;kCACO,iCAAc;6DAAC;IAG7C;QADC,kBAAM,CAAC,sCAAiB,CAAC;kCACM,sCAAiB;+DAAC;IAGlD;QADC,kBAAM,CAAC,iDAAsB,CAAC;kCACO,iDAAsB;qEAAC;IAG7D;QADC,yBAAa,EAAE;;;;sDAOf;IArCQ,sBAAsB;QADlC,sBAAU,EAAE;OACA,sBAAsB,CA2ClC;IAAD,6BAAC;CAAA,AA3CD,CAA4C,8BAAgB,GA2C3D;AA3CY,wDAAsB"}
1
+ {"version":3,"file":"debug-breakpoints-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-breakpoints-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;AAElF,4DAAwG;AAGxG,qEAAuE;AACvE,yEAAoE;AACpE,yEAAqE;AACrE,yDAAoD;AAGpD,IAAa,sBAAsB,8BAAnC,MAAa,sBAAuB,SAAQ,8BAAgB;IAMxD,MAAM,CAAC,eAAe,CAAC,MAA4B;QAC/C,MAAM,KAAK,GAAG,8BAAgB,CAAC,eAAe,CAAC,MAAM,EAAE;YACnD,eAAe,EAAE,wBAAsB,CAAC,YAAY;YACpD,WAAW,EAAE,KAAK;YAClB,cAA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AC,iDAAsB,CAAC;8BACO,iDAAsB;iEAAC;AAG7D;IADC,yBAAa,EAAE;;;;kDAOf;AArCQ,sBAAsB;IADlC,sBAAU,EAAE;GACA,sBAAsB,CA2ClC;AA3CY,wDAAsB"}
@@ -14,19 +14,6 @@
14
14
  *
15
15
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
- var __extends = (this && this.__extends) || (function () {
18
- var extendStatics = function (d, b) {
19
- extendStatics = Object.setPrototypeOf ||
20
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
21
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
22
- return extendStatics(d, b);
23
- };
24
- return function (d, b) {
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
17
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
31
18
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32
19
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -36,162 +23,128 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
36
23
  var __metadata = (this && this.__metadata) || function (k, v) {
37
24
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
38
25
  };
39
- var __read = (this && this.__read) || function (o, n) {
40
- var m = typeof Symbol === "function" && o[Symbol.iterator];
41
- if (!m) return o;
42
- var i = m.call(o), r, ar = [], e;
43
- try {
44
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
45
- }
46
- catch (error) { e = { error: error }; }
47
- finally {
48
- try {
49
- if (r && !r.done && (m = i["return"])) m.call(i);
50
- }
51
- finally { if (e) throw e.error; }
52
- }
53
- return ar;
54
- };
55
26
  Object.defineProperty(exports, "__esModule", { value: true });
56
27
  exports.DebugConfigurationWidget = void 0;
57
- var React = require("@theia/core/shared/react");
58
- var inversify_1 = require("@theia/core/shared/inversify");
59
- var common_1 = require("@theia/core/lib/common");
60
- var uri_1 = require("@theia/core/lib/common/uri");
61
- var browser_1 = require("@theia/core/lib/browser");
62
- var browser_2 = require("@theia/workspace/lib/browser");
63
- var debug_console_contribution_1 = require("../console/debug-console-contribution");
64
- var debug_configuration_manager_1 = require("../debug-configuration-manager");
65
- var debug_session_manager_1 = require("../debug-session-manager");
66
- var debug_action_1 = require("./debug-action");
67
- var debug_view_model_1 = require("./debug-view-model");
68
- var debug_frontend_application_contribution_1 = require("../debug-frontend-application-contribution");
69
- var common_2 = require("@theia/core/lib/common");
70
- var DebugConfigurationWidget = /** @class */ (function (_super) {
71
- __extends(DebugConfigurationWidget, _super);
72
- function DebugConfigurationWidget() {
73
- var _this = _super !== null && _super.apply(this, arguments) || this;
74
- _this.setStepRef = function (stepRef) { return _this.stepRef = stepRef || undefined; };
75
- _this.setCurrentConfiguration = function (event) {
76
- var value = event.currentTarget.value;
28
+ const React = require("@theia/core/shared/react");
29
+ const inversify_1 = require("@theia/core/shared/inversify");
30
+ const common_1 = require("@theia/core/lib/common");
31
+ const uri_1 = require("@theia/core/lib/common/uri");
32
+ const browser_1 = require("@theia/core/lib/browser");
33
+ const browser_2 = require("@theia/workspace/lib/browser");
34
+ const debug_console_contribution_1 = require("../console/debug-console-contribution");
35
+ const debug_configuration_manager_1 = require("../debug-configuration-manager");
36
+ const debug_session_manager_1 = require("../debug-session-manager");
37
+ const debug_action_1 = require("./debug-action");
38
+ const debug_view_model_1 = require("./debug-view-model");
39
+ const debug_frontend_application_contribution_1 = require("../debug-frontend-application-contribution");
40
+ const common_2 = require("@theia/core/lib/common");
41
+ let DebugConfigurationWidget = class DebugConfigurationWidget extends browser_1.ReactWidget {
42
+ constructor() {
43
+ super(...arguments);
44
+ this.setStepRef = (stepRef) => this.stepRef = stepRef || undefined;
45
+ this.setCurrentConfiguration = (event) => {
46
+ const value = event.currentTarget.value;
77
47
  if (value === '__ADD_CONF__') {
78
- _this.manager.addConfiguration();
48
+ this.manager.addConfiguration();
79
49
  }
80
50
  else {
81
- var _a = __read(value.split('__CONF__'), 2), name_1 = _a[0], workspaceFolderUri = _a[1];
82
- _this.manager.current = _this.manager.find(name_1, workspaceFolderUri);
51
+ const [name, workspaceFolderUri] = value.split('__CONF__');
52
+ this.manager.current = this.manager.find(name, workspaceFolderUri);
83
53
  }
84
54
  };
85
- _this.start = function () {
86
- var configuration = _this.manager.current;
87
- _this.commandRegistry.executeCommand(debug_frontend_application_contribution_1.DebugCommands.START.id, configuration);
55
+ this.start = () => {
56
+ const configuration = this.manager.current;
57
+ this.commandRegistry.executeCommand(debug_frontend_application_contribution_1.DebugCommands.START.id, configuration);
88
58
  };
89
- _this.openConfiguration = function () { return _this.manager.openConfiguration(); };
90
- _this.openConsole = function () { return _this.debugConsole.openView({
59
+ this.openConfiguration = () => this.manager.openConfiguration();
60
+ this.openConsole = () => this.debugConsole.openView({
91
61
  activate: true
92
- }); };
93
- return _this;
62
+ });
94
63
  }
95
- DebugConfigurationWidget.prototype.init = function () {
96
- var _this = this;
64
+ init() {
97
65
  this.addClass('debug-toolbar');
98
- this.toDispose.push(this.manager.onDidChange(function () { return _this.update(); }));
99
- this.toDispose.push(this.workspaceService.onWorkspaceChanged(function () { return _this.update(); }));
100
- this.toDispose.push(this.workspaceService.onWorkspaceLocationChanged(function () { return _this.update(); }));
66
+ this.toDispose.push(this.manager.onDidChange(() => this.update()));
67
+ this.toDispose.push(this.workspaceService.onWorkspaceChanged(() => this.update()));
68
+ this.toDispose.push(this.workspaceService.onWorkspaceLocationChanged(() => this.update()));
101
69
  this.scrollOptions = undefined;
102
70
  this.update();
103
- };
104
- DebugConfigurationWidget.prototype.focus = function () {
105
- var _this = this;
71
+ }
72
+ focus() {
106
73
  if (!this.doFocus()) {
107
- this.onRender.push(common_1.Disposable.create(function () { return _this.doFocus(); }));
74
+ this.onRender.push(common_1.Disposable.create(() => this.doFocus()));
108
75
  this.update();
109
76
  }
110
- };
111
- DebugConfigurationWidget.prototype.doFocus = function () {
77
+ }
78
+ doFocus() {
112
79
  if (!this.stepRef) {
113
80
  return false;
114
81
  }
115
82
  this.stepRef.focus();
116
83
  return true;
117
- };
118
- DebugConfigurationWidget.prototype.render = function () {
119
- var options = this.options;
84
+ }
85
+ render() {
86
+ const { options } = this;
120
87
  return React.createElement(React.Fragment, null,
121
- React.createElement(debug_action_1.DebugAction, { run: this.start, label: 'Start Debugging', iconClass: 'start', ref: this.setStepRef }),
88
+ React.createElement(debug_action_1.DebugAction, { run: this.start, label: 'Start Debugging', iconClass: 'debug-start', ref: this.setStepRef }),
122
89
  React.createElement("select", { className: 'theia-select debug-configuration', value: this.currentValue, onChange: this.setCurrentConfiguration },
123
90
  options.length ? options : React.createElement("option", { value: '__NO_CONF__' }, "No Configurations"),
124
91
  React.createElement("option", { disabled: true }, 'Add Configuration...'.replace(/./g, '-')),
125
92
  React.createElement("option", { value: '__ADD_CONF__' }, "Add Configuration...")),
126
- React.createElement(debug_action_1.DebugAction, { run: this.openConfiguration, label: 'Open launch.json', iconClass: 'configure' }),
127
- React.createElement(debug_action_1.DebugAction, { run: this.openConsole, label: 'Debug Console', iconClass: 'repl' }));
128
- };
129
- Object.defineProperty(DebugConfigurationWidget.prototype, "currentValue", {
130
- get: function () {
131
- var current = this.manager.current;
132
- return current ? this.toValue(current) : '__NO_CONF__';
133
- },
134
- enumerable: false,
135
- configurable: true
136
- });
137
- Object.defineProperty(DebugConfigurationWidget.prototype, "options", {
138
- get: function () {
139
- var _this = this;
140
- return Array.from(this.manager.all).map(function (options, index) {
141
- return React.createElement("option", { key: index, value: _this.toValue(options) }, _this.toName(options));
142
- });
143
- },
144
- enumerable: false,
145
- configurable: true
146
- });
147
- DebugConfigurationWidget.prototype.toValue = function (_a) {
148
- var configuration = _a.configuration, workspaceFolderUri = _a.workspaceFolderUri;
93
+ React.createElement(debug_action_1.DebugAction, { run: this.openConfiguration, label: 'Open launch.json', iconClass: 'settings-gear' }),
94
+ React.createElement(debug_action_1.DebugAction, { run: this.openConsole, label: 'Debug Console', iconClass: 'terminal' }));
95
+ }
96
+ get currentValue() {
97
+ const { current } = this.manager;
98
+ return current ? this.toValue(current) : '__NO_CONF__';
99
+ }
100
+ get options() {
101
+ return Array.from(this.manager.all).map((options, index) => React.createElement("option", { key: index, value: this.toValue(options) }, this.toName(options)));
102
+ }
103
+ toValue({ configuration, workspaceFolderUri }) {
149
104
  if (!workspaceFolderUri) {
150
105
  return configuration.name;
151
106
  }
152
107
  return configuration.name + '__CONF__' + workspaceFolderUri;
153
- };
154
- DebugConfigurationWidget.prototype.toName = function (_a) {
155
- var configuration = _a.configuration, workspaceFolderUri = _a.workspaceFolderUri;
108
+ }
109
+ toName({ configuration, workspaceFolderUri }) {
156
110
  if (!workspaceFolderUri || !this.workspaceService.isMultiRootWorkspaceOpened) {
157
111
  return configuration.name;
158
112
  }
159
113
  return configuration.name + ' (' + new uri_1.default(workspaceFolderUri).path.base + ')';
160
- };
161
- __decorate([
162
- inversify_1.inject(common_2.CommandRegistry),
163
- __metadata("design:type", common_2.CommandRegistry)
164
- ], DebugConfigurationWidget.prototype, "commandRegistry", void 0);
165
- __decorate([
166
- inversify_1.inject(debug_view_model_1.DebugViewModel),
167
- __metadata("design:type", debug_view_model_1.DebugViewModel)
168
- ], DebugConfigurationWidget.prototype, "viewModel", void 0);
169
- __decorate([
170
- inversify_1.inject(debug_configuration_manager_1.DebugConfigurationManager),
171
- __metadata("design:type", debug_configuration_manager_1.DebugConfigurationManager)
172
- ], DebugConfigurationWidget.prototype, "manager", void 0);
173
- __decorate([
174
- inversify_1.inject(debug_session_manager_1.DebugSessionManager),
175
- __metadata("design:type", debug_session_manager_1.DebugSessionManager)
176
- ], DebugConfigurationWidget.prototype, "sessionManager", void 0);
177
- __decorate([
178
- inversify_1.inject(debug_console_contribution_1.DebugConsoleContribution),
179
- __metadata("design:type", debug_console_contribution_1.DebugConsoleContribution)
180
- ], DebugConfigurationWidget.prototype, "debugConsole", void 0);
181
- __decorate([
182
- inversify_1.inject(browser_2.WorkspaceService),
183
- __metadata("design:type", browser_2.WorkspaceService)
184
- ], DebugConfigurationWidget.prototype, "workspaceService", void 0);
185
- __decorate([
186
- inversify_1.postConstruct(),
187
- __metadata("design:type", Function),
188
- __metadata("design:paramtypes", []),
189
- __metadata("design:returntype", void 0)
190
- ], DebugConfigurationWidget.prototype, "init", null);
191
- DebugConfigurationWidget = __decorate([
192
- inversify_1.injectable()
193
- ], DebugConfigurationWidget);
194
- return DebugConfigurationWidget;
195
- }(browser_1.ReactWidget));
114
+ }
115
+ };
116
+ __decorate([
117
+ inversify_1.inject(common_2.CommandRegistry),
118
+ __metadata("design:type", common_2.CommandRegistry)
119
+ ], DebugConfigurationWidget.prototype, "commandRegistry", void 0);
120
+ __decorate([
121
+ inversify_1.inject(debug_view_model_1.DebugViewModel),
122
+ __metadata("design:type", debug_view_model_1.DebugViewModel)
123
+ ], DebugConfigurationWidget.prototype, "viewModel", void 0);
124
+ __decorate([
125
+ inversify_1.inject(debug_configuration_manager_1.DebugConfigurationManager),
126
+ __metadata("design:type", debug_configuration_manager_1.DebugConfigurationManager)
127
+ ], DebugConfigurationWidget.prototype, "manager", void 0);
128
+ __decorate([
129
+ inversify_1.inject(debug_session_manager_1.DebugSessionManager),
130
+ __metadata("design:type", debug_session_manager_1.DebugSessionManager)
131
+ ], DebugConfigurationWidget.prototype, "sessionManager", void 0);
132
+ __decorate([
133
+ inversify_1.inject(debug_console_contribution_1.DebugConsoleContribution),
134
+ __metadata("design:type", debug_console_contribution_1.DebugConsoleContribution)
135
+ ], DebugConfigurationWidget.prototype, "debugConsole", void 0);
136
+ __decorate([
137
+ inversify_1.inject(browser_2.WorkspaceService),
138
+ __metadata("design:type", browser_2.WorkspaceService)
139
+ ], DebugConfigurationWidget.prototype, "workspaceService", void 0);
140
+ __decorate([
141
+ inversify_1.postConstruct(),
142
+ __metadata("design:type", Function),
143
+ __metadata("design:paramtypes", []),
144
+ __metadata("design:returntype", void 0)
145
+ ], DebugConfigurationWidget.prototype, "init", null);
146
+ DebugConfigurationWidget = __decorate([
147
+ inversify_1.injectable()
148
+ ], DebugConfigurationWidget);
196
149
  exports.DebugConfigurationWidget = DebugConfigurationWidget;
197
150
  //# sourceMappingURL=debug-configuration-widget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-configuration-widget.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElF,gDAAkD;AAClD,0DAAiF;AACjF,iDAAoD;AACpD,kDAA6C;AAC7C,mDAAsD;AACtD,wDAAgE;AAChE,oFAAiF;AACjF,8EAA2E;AAC3E,kEAA+D;AAC/D,+CAA6C;AAC7C,uDAAoD;AAEpD,sGAA2E;AAC3E,iDAAyD;AAGzD;IAA8C,4CAAW;IAAzD;QAAA,qEAqGC;QAzDa,gBAAU,GAAG,UAAC,OAA2B,IAAK,OAAA,KAAI,CAAC,OAAO,GAAG,OAAO,IAAI,SAAS,EAAnC,CAAmC,CAAC;QAqCzE,6BAAuB,GAAG,UAAC,KAA2C;YACrF,IAAM,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC;YACxC,IAAI,KAAK,KAAK,cAAc,EAAE;gBAC1B,KAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;aACnC;iBAAM;gBACG,IAAA,KAAA,OAA6B,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,IAAA,EAAnD,MAAI,QAAA,EAAE,kBAAkB,QAA2B,CAAC;gBAC3D,KAAI,CAAC,OAAO,CAAC,OAAO,GAAG,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAI,EAAE,kBAAkB,CAAC,CAAC;aACtE;QACL,CAAC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kBAAM,CAAC,qDAAwB,CAAC;kCACA,qDAAwB;kEAAC;IAG1D;QADC,kBAAM,CAAC,0BAAgB,CAAC;kCACY,0BAAgB;sEAAC;IAGtD;QADC,yBAAa,EAAE;;;;wDAQf;IA5BQ,wBAAwB;QADpC,sBAAU,EAAE;OACA,wBAAwB,CAqGpC;IAAD,+BAAC;CAAA,AArGD,CAA8C,qBAAW,GAqGxD;AArGY,4DAAwB"}
1
+ {"version":3,"file":"debug-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-configuration-widget.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,kDAAkD;AAClD,4DAAiF;AACjF,mDAAoD;AACpD,oDAA6C;AAC7C,qDAAsD;AACtD,0DAAgE;AAChE,sFAAiF;AACjF,gFAA2E;AAC3E,oEAA+D;AAC/D,iDAA6C;AAC7C,yDAAoD;AAEpD,wGAA2E;AAC3E,mDAAyD;AAGzD,IAAa,wBAAwB,GAArC,MAAa,wBAAyB,SAAQ,qBAAW;IAAzD;;QA4Cc,eAAU,GAAG,CAAC,OAA2B,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,SAAS,CAAC;QAqCzE,4BAAuB,GAAG,CAAC,KAA2C,EAAE,EAAE;YACzF,MAAM,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC;YACxC,IAAI,KAAK,KAAK,cAAc,EAAE;gBAC1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC;aACnC;iBAAM;gBACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;gBAC3D,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;aACtE;QACL,CAAC,CAAC;QAEiB,UAAK,GAAG,GAAG,EAAE;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ArGY,4DAAwB"}
@@ -16,22 +16,20 @@
16
16
  ********************************************************************************/
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.DebugExceptionBreakpoint = void 0;
19
- var React = require("@theia/core/shared/react");
20
- var DebugExceptionBreakpoint = /** @class */ (function () {
21
- function DebugExceptionBreakpoint(data, breakpoints) {
22
- var _this = this;
19
+ const React = require("@theia/core/shared/react");
20
+ class DebugExceptionBreakpoint {
21
+ constructor(data, breakpoints) {
23
22
  this.data = data;
24
23
  this.breakpoints = breakpoints;
25
- this.toggle = function () { return _this.breakpoints.toggleExceptionBreakpoint(_this.data.raw.filter); };
24
+ this.toggle = () => this.breakpoints.toggleExceptionBreakpoint(this.data.raw.filter);
26
25
  this.id = data.raw.filter + ':' + data.raw.label;
27
26
  }
28
- DebugExceptionBreakpoint.prototype.render = function () {
27
+ render() {
29
28
  return React.createElement("div", { title: this.data.raw.label, className: 'theia-source-breakpoint' },
30
29
  React.createElement("span", { className: 'theia-debug-breakpoint-icon' }),
31
30
  React.createElement("input", { type: 'checkbox', checked: this.data.enabled, onChange: this.toggle }),
32
31
  React.createElement("span", { className: 'line-info' }, this.data.raw.label));
33
- };
34
- return DebugExceptionBreakpoint;
35
- }());
32
+ }
33
+ }
36
34
  exports.DebugExceptionBreakpoint = DebugExceptionBreakpoint;
37
35
  //# sourceMappingURL=debug-exception-breakpoint.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"debug-exception-breakpoint.js","sourceRoot":"","sources":["../../../src/browser/view/debug-exception-breakpoint.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,gDAAkD;AAKlD;IAII,kCACa,IAAyB,EACzB,WAA8B;QAF3C,iBAKC;QAJY,SAAI,GAAJ,IAAI,CAAqB;QACzB,gBAAW,GAAX,WAAW,CAAmB;QAajC,WAAM,GAAG,cAAM,OAAA,KAAI,CAAC,WAAW,CAAC,yBAAyB,CAAC,KAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,EAAhE,CAAgE,CAAC;QAXtF,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IACrD,CAAC;IAED,yCAAM,GAAN;QACI,OAAO,6BAAK,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,EAAC,yBAAyB;YACvE,8BAAM,SAAS,EAAC,6BAA6B,GAAG;YAChD,+BAAO,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,GAAI;YAC5E,8BAAM,SAAS,EAAC,WAAW,IAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAQ,CACtD,CAAC;IACX,CAAC;IAIL,+BAAC;AAAD,CAAC,AArBD,IAqBC;AArBY,4DAAwB"}
1
+ {"version":3,"file":"debug-exception-breakpoint.js","sourceRoot":"","sources":["../../../src/browser/view/debug-exception-breakpoint.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,kDAAkD;AAKlD,MAAa,wBAAwB;IAIjC,YACa,IAAyB,EACzB,WAA8B;QAD9B,SAAI,GAAJ,IAAI,CAAqB;QACzB,gBAAW,GAAX,WAAW,CAAmB;QAajC,WAAM,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAXtF,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IACrD,CAAC;IAED,MAAM;QACF,OAAO,6BAAK,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,EAAC,yBAAyB;YACvE,8BAAM,SAAS,EAAC,6BAA6B,GAAG;YAChD,+BAAO,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,GAAI;YAC5E,8BAAM,SAAS,EAAC,WAAW,IAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAQ,CACtD,CAAC;IACX,CAAC;CAIJ;AArBD,4DAqBC"}
@@ -14,19 +14,6 @@
14
14
  *
15
15
  * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
16
16
  ********************************************************************************/
17
- var __extends = (this && this.__extends) || (function () {
18
- var extendStatics = function (d, b) {
19
- extendStatics = Object.setPrototypeOf ||
20
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
21
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
22
- return extendStatics(d, b);
23
- };
24
- return function (d, b) {
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
17
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
31
18
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
32
19
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -36,62 +23,43 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
36
23
  var __metadata = (this && this.__metadata) || function (k, v) {
37
24
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
38
25
  };
26
+ var DebugSessionWidget_1;
39
27
  Object.defineProperty(exports, "__esModule", { value: true });
40
28
  exports.DebugSessionWidget = exports.DebugSessionWidgetFactory = void 0;
41
- var inversify_1 = require("@theia/core/shared/inversify");
42
- var browser_1 = require("@theia/core/lib/browser");
43
- var debug_threads_widget_1 = require("./debug-threads-widget");
44
- var debug_stack_frames_widget_1 = require("./debug-stack-frames-widget");
45
- var debug_breakpoints_widget_1 = require("./debug-breakpoints-widget");
46
- var debug_variables_widget_1 = require("./debug-variables-widget");
47
- var debug_toolbar_widget_1 = require("./debug-toolbar-widget");
48
- var debug_view_model_1 = require("./debug-view-model");
49
- var debug_watch_widget_1 = require("./debug-watch-widget");
29
+ const inversify_1 = require("@theia/core/shared/inversify");
30
+ const browser_1 = require("@theia/core/lib/browser");
31
+ const debug_threads_widget_1 = require("./debug-threads-widget");
32
+ const debug_stack_frames_widget_1 = require("./debug-stack-frames-widget");
33
+ const debug_breakpoints_widget_1 = require("./debug-breakpoints-widget");
34
+ const debug_variables_widget_1 = require("./debug-variables-widget");
35
+ const debug_toolbar_widget_1 = require("./debug-toolbar-widget");
36
+ const debug_view_model_1 = require("./debug-view-model");
37
+ const debug_watch_widget_1 = require("./debug-watch-widget");
50
38
  exports.DebugSessionWidgetFactory = Symbol('DebugSessionWidgetFactory');
51
- var DebugSessionWidget = /** @class */ (function (_super) {
52
- __extends(DebugSessionWidget, _super);
53
- function DebugSessionWidget() {
54
- return _super !== null && _super.apply(this, arguments) || this;
55
- }
56
- DebugSessionWidget_1 = DebugSessionWidget;
57
- DebugSessionWidget.createContainer = function (parent, options) {
58
- var child = new inversify_1.Container({ defaultScope: 'Singleton' });
39
+ let DebugSessionWidget = DebugSessionWidget_1 = class DebugSessionWidget extends browser_1.BaseWidget {
40
+ static createContainer(parent, options) {
41
+ const child = new inversify_1.Container({ defaultScope: 'Singleton' });
59
42
  child.parent = parent;
60
43
  child.bind(debug_view_model_1.DebugViewOptions).toConstantValue(options);
61
44
  child.bind(debug_view_model_1.DebugViewModel).toSelf();
62
45
  child.bind(debug_toolbar_widget_1.DebugToolBar).toSelf();
63
- child.bind(debug_threads_widget_1.DebugThreadsWidget).toDynamicValue(function (_a) {
64
- var container = _a.container;
65
- return debug_threads_widget_1.DebugThreadsWidget.createWidget(container);
66
- });
67
- child.bind(debug_stack_frames_widget_1.DebugStackFramesWidget).toDynamicValue(function (_a) {
68
- var container = _a.container;
69
- return debug_stack_frames_widget_1.DebugStackFramesWidget.createWidget(container);
70
- });
71
- child.bind(debug_variables_widget_1.DebugVariablesWidget).toDynamicValue(function (_a) {
72
- var container = _a.container;
73
- return debug_variables_widget_1.DebugVariablesWidget.createWidget(container);
74
- });
75
- child.bind(debug_watch_widget_1.DebugWatchWidget).toDynamicValue(function (_a) {
76
- var container = _a.container;
77
- return debug_watch_widget_1.DebugWatchWidget.createWidget(container);
78
- });
79
- child.bind(debug_breakpoints_widget_1.DebugBreakpointsWidget).toDynamicValue(function (_a) {
80
- var container = _a.container;
81
- return debug_breakpoints_widget_1.DebugBreakpointsWidget.createWidget(container);
82
- });
46
+ child.bind(debug_threads_widget_1.DebugThreadsWidget).toDynamicValue(({ container }) => debug_threads_widget_1.DebugThreadsWidget.createWidget(container));
47
+ child.bind(debug_stack_frames_widget_1.DebugStackFramesWidget).toDynamicValue(({ container }) => debug_stack_frames_widget_1.DebugStackFramesWidget.createWidget(container));
48
+ child.bind(debug_variables_widget_1.DebugVariablesWidget).toDynamicValue(({ container }) => debug_variables_widget_1.DebugVariablesWidget.createWidget(container));
49
+ child.bind(debug_watch_widget_1.DebugWatchWidget).toDynamicValue(({ container }) => debug_watch_widget_1.DebugWatchWidget.createWidget(container));
50
+ child.bind(debug_breakpoints_widget_1.DebugBreakpointsWidget).toDynamicValue(({ container }) => debug_breakpoints_widget_1.DebugBreakpointsWidget.createWidget(container));
83
51
  child.bind(DebugSessionWidget_1).toSelf();
84
52
  return child;
85
- };
86
- DebugSessionWidget.createWidget = function (parent, options) {
53
+ }
54
+ static createWidget(parent, options) {
87
55
  return DebugSessionWidget_1.createContainer(parent, options).get(DebugSessionWidget_1);
88
- };
89
- DebugSessionWidget.prototype.init = function () {
56
+ }
57
+ init() {
90
58
  this.id = 'debug:session:' + this.model.id;
91
59
  this.title.label = this.model.label;
92
60
  this.title.caption = this.model.label;
93
61
  this.title.closable = true;
94
- this.title.iconClass = 'debug-tab-icon';
62
+ this.title.iconClass = browser_1.codicon('debug-alt');
95
63
  this.addClass('theia-session-container');
96
64
  this.viewContainer = this.viewContainerFactory({
97
65
  id: 'debug:view-container:' + this.model.id
@@ -105,70 +73,68 @@ var DebugSessionWidget = /** @class */ (function (_super) {
105
73
  this.toolbar,
106
74
  this.viewContainer
107
75
  ]);
108
- var layout = this.layout = new browser_1.PanelLayout();
76
+ const layout = this.layout = new browser_1.PanelLayout();
109
77
  layout.addWidget(this.toolbar);
110
78
  layout.addWidget(this.viewContainer);
111
- };
112
- DebugSessionWidget.prototype.onActivateRequest = function (msg) {
113
- _super.prototype.onActivateRequest.call(this, msg);
79
+ }
80
+ onActivateRequest(msg) {
81
+ super.onActivateRequest(msg);
114
82
  this.toolbar.focus();
115
- };
116
- DebugSessionWidget.prototype.onAfterShow = function (msg) {
117
- _super.prototype.onAfterShow.call(this, msg);
118
- this.getTrackableWidgets().forEach(function (w) { return w.update(); });
119
- };
120
- DebugSessionWidget.prototype.getTrackableWidgets = function () {
83
+ }
84
+ onAfterShow(msg) {
85
+ super.onAfterShow(msg);
86
+ this.getTrackableWidgets().forEach(w => w.update());
87
+ }
88
+ getTrackableWidgets() {
121
89
  return this.viewContainer.getTrackableWidgets();
122
- };
123
- DebugSessionWidget.prototype.storeState = function () {
90
+ }
91
+ storeState() {
124
92
  return this.viewContainer.storeState();
125
- };
126
- DebugSessionWidget.prototype.restoreState = function (oldState) {
93
+ }
94
+ restoreState(oldState) {
127
95
  this.viewContainer.restoreState(oldState);
128
- };
129
- var DebugSessionWidget_1;
130
- __decorate([
131
- inversify_1.inject(browser_1.ViewContainer.Factory),
132
- __metadata("design:type", Function)
133
- ], DebugSessionWidget.prototype, "viewContainerFactory", void 0);
134
- __decorate([
135
- inversify_1.inject(debug_view_model_1.DebugViewModel),
136
- __metadata("design:type", debug_view_model_1.DebugViewModel)
137
- ], DebugSessionWidget.prototype, "model", void 0);
138
- __decorate([
139
- inversify_1.inject(debug_toolbar_widget_1.DebugToolBar),
140
- __metadata("design:type", debug_toolbar_widget_1.DebugToolBar)
141
- ], DebugSessionWidget.prototype, "toolbar", void 0);
142
- __decorate([
143
- inversify_1.inject(debug_threads_widget_1.DebugThreadsWidget),
144
- __metadata("design:type", debug_threads_widget_1.DebugThreadsWidget)
145
- ], DebugSessionWidget.prototype, "threads", void 0);
146
- __decorate([
147
- inversify_1.inject(debug_stack_frames_widget_1.DebugStackFramesWidget),
148
- __metadata("design:type", debug_stack_frames_widget_1.DebugStackFramesWidget)
149
- ], DebugSessionWidget.prototype, "stackFrames", void 0);
150
- __decorate([
151
- inversify_1.inject(debug_variables_widget_1.DebugVariablesWidget),
152
- __metadata("design:type", debug_variables_widget_1.DebugVariablesWidget)
153
- ], DebugSessionWidget.prototype, "variables", void 0);
154
- __decorate([
155
- inversify_1.inject(debug_watch_widget_1.DebugWatchWidget),
156
- __metadata("design:type", debug_watch_widget_1.DebugWatchWidget)
157
- ], DebugSessionWidget.prototype, "watch", void 0);
158
- __decorate([
159
- inversify_1.inject(debug_breakpoints_widget_1.DebugBreakpointsWidget),
160
- __metadata("design:type", debug_breakpoints_widget_1.DebugBreakpointsWidget)
161
- ], DebugSessionWidget.prototype, "breakpoints", void 0);
162
- __decorate([
163
- inversify_1.postConstruct(),
164
- __metadata("design:type", Function),
165
- __metadata("design:paramtypes", []),
166
- __metadata("design:returntype", void 0)
167
- ], DebugSessionWidget.prototype, "init", null);
168
- DebugSessionWidget = DebugSessionWidget_1 = __decorate([
169
- inversify_1.injectable()
170
- ], DebugSessionWidget);
171
- return DebugSessionWidget;
172
- }(browser_1.BaseWidget));
96
+ }
97
+ };
98
+ __decorate([
99
+ inversify_1.inject(browser_1.ViewContainer.Factory),
100
+ __metadata("design:type", Function)
101
+ ], DebugSessionWidget.prototype, "viewContainerFactory", void 0);
102
+ __decorate([
103
+ inversify_1.inject(debug_view_model_1.DebugViewModel),
104
+ __metadata("design:type", debug_view_model_1.DebugViewModel)
105
+ ], DebugSessionWidget.prototype, "model", void 0);
106
+ __decorate([
107
+ inversify_1.inject(debug_toolbar_widget_1.DebugToolBar),
108
+ __metadata("design:type", debug_toolbar_widget_1.DebugToolBar)
109
+ ], DebugSessionWidget.prototype, "toolbar", void 0);
110
+ __decorate([
111
+ inversify_1.inject(debug_threads_widget_1.DebugThreadsWidget),
112
+ __metadata("design:type", debug_threads_widget_1.DebugThreadsWidget)
113
+ ], DebugSessionWidget.prototype, "threads", void 0);
114
+ __decorate([
115
+ inversify_1.inject(debug_stack_frames_widget_1.DebugStackFramesWidget),
116
+ __metadata("design:type", debug_stack_frames_widget_1.DebugStackFramesWidget)
117
+ ], DebugSessionWidget.prototype, "stackFrames", void 0);
118
+ __decorate([
119
+ inversify_1.inject(debug_variables_widget_1.DebugVariablesWidget),
120
+ __metadata("design:type", debug_variables_widget_1.DebugVariablesWidget)
121
+ ], DebugSessionWidget.prototype, "variables", void 0);
122
+ __decorate([
123
+ inversify_1.inject(debug_watch_widget_1.DebugWatchWidget),
124
+ __metadata("design:type", debug_watch_widget_1.DebugWatchWidget)
125
+ ], DebugSessionWidget.prototype, "watch", void 0);
126
+ __decorate([
127
+ inversify_1.inject(debug_breakpoints_widget_1.DebugBreakpointsWidget),
128
+ __metadata("design:type", debug_breakpoints_widget_1.DebugBreakpointsWidget)
129
+ ], DebugSessionWidget.prototype, "breakpoints", void 0);
130
+ __decorate([
131
+ inversify_1.postConstruct(),
132
+ __metadata("design:type", Function),
133
+ __metadata("design:paramtypes", []),
134
+ __metadata("design:returntype", void 0)
135
+ ], DebugSessionWidget.prototype, "init", null);
136
+ DebugSessionWidget = DebugSessionWidget_1 = __decorate([
137
+ inversify_1.injectable()
138
+ ], DebugSessionWidget);
173
139
  exports.DebugSessionWidget = DebugSessionWidget;
174
140
  //# sourceMappingURL=debug-session-widget.js.map