@theia/debug 1.17.0-next.ff9e0507 → 1.18.0-next.05f289b3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/breakpoint/breakpoint-manager.js +159 -382
- package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -1
- package/lib/browser/breakpoint/breakpoint-marker.js +4 -15
- package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -1
- package/lib/browser/console/debug-console-contribution.d.ts.map +1 -1
- package/lib/browser/console/debug-console-contribution.js +132 -221
- package/lib/browser/console/debug-console-contribution.js.map +1 -1
- package/lib/browser/console/debug-console-items.js +231 -451
- package/lib/browser/console/debug-console-items.js.map +1 -1
- package/lib/browser/console/debug-console-session.js +86 -223
- package/lib/browser/console/debug-console-session.js.map +1 -1
- package/lib/browser/debug-configuration-manager.js +281 -623
- package/lib/browser/debug-configuration-manager.js.map +1 -1
- package/lib/browser/debug-configuration-model.js +31 -108
- package/lib/browser/debug-configuration-model.js.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.d.ts +1 -0
- package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
- package/lib/browser/debug-frontend-application-contribution.js +577 -780
- package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
- package/lib/browser/debug-frontend-module.js +46 -82
- package/lib/browser/debug-frontend-module.js.map +1 -1
- package/lib/browser/debug-keybinding-contexts.js +41 -59
- package/lib/browser/debug-keybinding-contexts.js.map +1 -1
- package/lib/browser/debug-monaco-contribution.js +17 -17
- package/lib/browser/debug-monaco-contribution.js.map +1 -1
- package/lib/browser/debug-package.spec.js +2 -2
- package/lib/browser/debug-package.spec.js.map +1 -1
- package/lib/browser/debug-preferences.js +7 -11
- package/lib/browser/debug-preferences.js.map +1 -1
- package/lib/browser/debug-prefix-configuration.js +101 -117
- package/lib/browser/debug-prefix-configuration.js.map +1 -1
- package/lib/browser/debug-resource.js +29 -79
- package/lib/browser/debug-resource.js.map +1 -1
- package/lib/browser/debug-schema-updater.js +54 -193
- package/lib/browser/debug-schema-updater.js.map +1 -1
- package/lib/browser/debug-session-connection.js +137 -235
- package/lib/browser/debug-session-connection.js.map +1 -1
- package/lib/browser/debug-session-contribution.js +91 -120
- package/lib/browser/debug-session-contribution.js.map +1 -1
- package/lib/browser/debug-session-manager.js +368 -652
- package/lib/browser/debug-session-manager.js.map +1 -1
- package/lib/browser/debug-session.js +556 -1279
- package/lib/browser/debug-session.js.map +1 -1
- package/lib/browser/debug-tab-bar-decorator.js +32 -38
- package/lib/browser/debug-tab-bar-decorator.js.map +1 -1
- package/lib/browser/debug-watch-manager.js +41 -138
- package/lib/browser/debug-watch-manager.js.map +1 -1
- package/lib/browser/editor/debug-breakpoint-widget.js +142 -255
- package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -1
- package/lib/browser/editor/debug-editor-model.js +299 -474
- package/lib/browser/editor/debug-editor-model.js.map +1 -1
- package/lib/browser/editor/debug-editor-service.js +128 -206
- package/lib/browser/editor/debug-editor-service.js.map +1 -1
- package/lib/browser/editor/debug-exception-widget.js +56 -119
- package/lib/browser/editor/debug-exception-widget.js.map +1 -1
- package/lib/browser/editor/debug-expression-provider.js +21 -24
- package/lib/browser/editor/debug-expression-provider.js.map +1 -1
- package/lib/browser/editor/debug-hover-source.js +83 -249
- package/lib/browser/editor/debug-hover-source.js.map +1 -1
- package/lib/browser/editor/debug-hover-widget.js +151 -224
- package/lib/browser/editor/debug-hover-widget.js.map +1 -1
- package/lib/browser/editor/debug-inline-value-decorator.js +96 -193
- package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -1
- package/lib/browser/model/debug-breakpoint.js +52 -102
- package/lib/browser/model/debug-breakpoint.js.map +1 -1
- package/lib/browser/model/debug-function-breakpoint.js +54 -124
- package/lib/browser/model/debug-function-breakpoint.js.map +1 -1
- package/lib/browser/model/debug-source-breakpoint.js +111 -265
- package/lib/browser/model/debug-source-breakpoint.js.map +1 -1
- package/lib/browser/model/debug-source.js +45 -126
- package/lib/browser/model/debug-source.js.map +1 -1
- package/lib/browser/model/debug-stack-frame.js +85 -199
- package/lib/browser/model/debug-stack-frame.js.map +1 -1
- package/lib/browser/model/debug-thread.js +132 -304
- package/lib/browser/model/debug-thread.js.map +1 -1
- package/lib/browser/preferences/launch-preferences.js +3 -3
- package/lib/browser/preferences/launch-preferences.js.map +1 -1
- package/lib/browser/view/debug-action.js +13 -29
- package/lib/browser/view/debug-action.js.map +1 -1
- package/lib/browser/view/debug-breakpoints-source.js +42 -169
- package/lib/browser/view/debug-breakpoints-source.js.map +1 -1
- package/lib/browser/view/debug-breakpoints-widget.js +43 -82
- package/lib/browser/view/debug-breakpoints-widget.js.map +1 -1
- package/lib/browser/view/debug-configuration-widget.js +89 -136
- package/lib/browser/view/debug-configuration-widget.js.map +1 -1
- package/lib/browser/view/debug-exception-breakpoint.js +7 -9
- package/lib/browser/view/debug-exception-breakpoint.js.map +1 -1
- package/lib/browser/view/debug-session-widget.js +80 -114
- package/lib/browser/view/debug-session-widget.js.map +1 -1
- package/lib/browser/view/debug-stack-frames-source.js +58 -169
- package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
- package/lib/browser/view/debug-stack-frames-widget.js +89 -155
- package/lib/browser/view/debug-stack-frames-widget.js.map +1 -1
- package/lib/browser/view/debug-threads-source.js +37 -124
- package/lib/browser/view/debug-threads-source.js.map +1 -1
- package/lib/browser/view/debug-threads-widget.js +61 -99
- package/lib/browser/view/debug-threads-widget.js.map +1 -1
- package/lib/browser/view/debug-toolbar-widget.js +58 -76
- package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
- package/lib/browser/view/debug-variables-source.js +32 -102
- package/lib/browser/view/debug-variables-source.js.map +1 -1
- package/lib/browser/view/debug-variables-widget.js +35 -74
- package/lib/browser/view/debug-variables-widget.js.map +1 -1
- package/lib/browser/view/debug-view-model.js +172 -381
- package/lib/browser/view/debug-view-model.js.map +1 -1
- package/lib/browser/view/debug-watch-expression.js +34 -112
- package/lib/browser/view/debug-watch-expression.js.map +1 -1
- package/lib/browser/view/debug-watch-source.js +30 -87
- package/lib/browser/view/debug-watch-source.js.map +1 -1
- package/lib/browser/view/debug-watch-widget.js +35 -74
- package/lib/browser/view/debug-watch-widget.js.map +1 -1
- package/lib/browser/view/debug-widget.js +63 -105
- package/lib/browser/view/debug-widget.js.map +1 -1
- package/lib/common/debug-service.js +5 -5
- package/lib/common/debug-service.js.map +1 -1
- package/lib/node/debug-adapter-contribution-registry.js +133 -489
- package/lib/node/debug-adapter-contribution-registry.js.map +1 -1
- package/lib/node/debug-adapter-factory.js +38 -57
- package/lib/node/debug-adapter-factory.js.map +1 -1
- package/lib/node/debug-adapter-session-manager.js +50 -98
- package/lib/node/debug-adapter-session-manager.js.map +1 -1
- package/lib/node/debug-adapter-session.js +44 -93
- package/lib/node/debug-adapter-session.js.map +1 -1
- package/lib/node/debug-backend-module.js +13 -17
- package/lib/node/debug-backend-module.js.map +1 -1
- package/lib/node/debug-service-impl.js +71 -213
- package/lib/node/debug-service-impl.js.map +1 -1
- package/lib/node/vscode/vscode-debug-adapter-contribution.js +153 -294
- package/lib/node/vscode/vscode-debug-adapter-contribution.js.map +1 -1
- package/package.json +16 -16
- package/src/browser/console/debug-console-contribution.tsx +3 -3
- package/src/browser/debug-frontend-application-contribution.ts +69 -18
- package/src/browser/debug-prefix-configuration.ts +1 -1
- package/src/browser/style/index.css +28 -10
- package/src/browser/view/debug-action.tsx +2 -2
- package/src/browser/view/debug-configuration-widget.tsx +3 -3
- package/src/browser/view/debug-session-widget.ts +2 -2
- package/src/browser/view/debug-toolbar-widget.tsx +8 -8
- package/src/browser/view/debug-widget.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-stack-frames-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-stack-frames-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-stack-frames-widget.js","sourceRoot":"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,CAAC,kDAAsB,CAAC;8BACJ,kDAAsB;sDAAC;AAGlD;IADC,kBAAM,CAAC,iCAAc,CAAC;8BACO,iCAAc;yDAAC;AAG7C;IADC,kBAAM,CAAC,0DAAyB,CAAC;;yEACsC;AAGxE;IADC,yBAAa,EAAE;;;;kDAWf;AAtCQ,sBAAsB;IADlC,sBAAU,EAAE;GACA,sBAAsB,CA0GlC;AA1GY,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,122 +23,48 @@ 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 __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (_) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
var __values = (this && this.__values) || function(o) {
|
|
67
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
68
|
-
if (m) return m.call(o);
|
|
69
|
-
if (o && typeof o.length === "number") return {
|
|
70
|
-
next: function () {
|
|
71
|
-
if (o && i >= o.length) o = void 0;
|
|
72
|
-
return { value: o && o[i++], done: !o };
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
76
|
-
};
|
|
77
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
27
|
exports.DebugThreadsSource = void 0;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return _super.call(this, {
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const source_tree_1 = require("@theia/core/lib/browser/source-tree");
|
|
30
|
+
const debug_view_model_1 = require("./debug-view-model");
|
|
31
|
+
let DebugThreadsSource = class DebugThreadsSource extends source_tree_1.TreeSource {
|
|
32
|
+
constructor() {
|
|
33
|
+
super({
|
|
86
34
|
placeholder: 'Not running'
|
|
87
|
-
})
|
|
35
|
+
});
|
|
88
36
|
}
|
|
89
|
-
|
|
90
|
-
var _this = this;
|
|
37
|
+
init() {
|
|
91
38
|
this.fireDidChange();
|
|
92
|
-
this.toDispose.push(this.model.onDidChange(
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
return __generator(this, function (_d) {
|
|
105
|
-
switch (_d.label) {
|
|
106
|
-
case 0:
|
|
107
|
-
if (!(this.model.sessionCount === 1 && this.model.session && this.model.session.threadCount)) return [3 /*break*/, 2];
|
|
108
|
-
return [5 /*yield**/, __values(this.model.session.threads)];
|
|
109
|
-
case 1: return [2 /*return*/, _d.sent()];
|
|
110
|
-
case 2:
|
|
111
|
-
_d.trys.push([2, 7, 8, 9]);
|
|
112
|
-
_a = __values(this.model.sessions), _b = _a.next();
|
|
113
|
-
_d.label = 3;
|
|
114
|
-
case 3:
|
|
115
|
-
if (!!_b.done) return [3 /*break*/, 6];
|
|
116
|
-
session = _b.value;
|
|
117
|
-
if (!!session.parentSession) return [3 /*break*/, 5];
|
|
118
|
-
return [4 /*yield*/, session];
|
|
119
|
-
case 4:
|
|
120
|
-
_d.sent();
|
|
121
|
-
_d.label = 5;
|
|
122
|
-
case 5:
|
|
123
|
-
_b = _a.next();
|
|
124
|
-
return [3 /*break*/, 3];
|
|
125
|
-
case 6: return [3 /*break*/, 9];
|
|
126
|
-
case 7:
|
|
127
|
-
e_1_1 = _d.sent();
|
|
128
|
-
e_1 = { error: e_1_1 };
|
|
129
|
-
return [3 /*break*/, 9];
|
|
130
|
-
case 8:
|
|
131
|
-
try {
|
|
132
|
-
if (_b && !_b.done && (_c = _a.return)) _c.call(_a);
|
|
133
|
-
}
|
|
134
|
-
finally { if (e_1) throw e_1.error; }
|
|
135
|
-
return [7 /*endfinally*/];
|
|
136
|
-
case 9: return [2 /*return*/];
|
|
39
|
+
this.toDispose.push(this.model.onDidChange(() => this.fireDidChange()));
|
|
40
|
+
}
|
|
41
|
+
get multiSession() {
|
|
42
|
+
return this.model.sessionCount > 1;
|
|
43
|
+
}
|
|
44
|
+
*getElements() {
|
|
45
|
+
if (this.model.sessionCount === 1 && this.model.session && this.model.session.threadCount) {
|
|
46
|
+
return yield* this.model.session.threads;
|
|
47
|
+
}
|
|
48
|
+
for (const session of this.model.sessions) {
|
|
49
|
+
if (!session.parentSession) {
|
|
50
|
+
yield session;
|
|
137
51
|
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}(source_tree_1.TreeSource));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
__decorate([
|
|
56
|
+
inversify_1.inject(debug_view_model_1.DebugViewModel),
|
|
57
|
+
__metadata("design:type", debug_view_model_1.DebugViewModel)
|
|
58
|
+
], DebugThreadsSource.prototype, "model", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
inversify_1.postConstruct(),
|
|
61
|
+
__metadata("design:type", Function),
|
|
62
|
+
__metadata("design:paramtypes", []),
|
|
63
|
+
__metadata("design:returntype", void 0)
|
|
64
|
+
], DebugThreadsSource.prototype, "init", null);
|
|
65
|
+
DebugThreadsSource = __decorate([
|
|
66
|
+
inversify_1.injectable(),
|
|
67
|
+
__metadata("design:paramtypes", [])
|
|
68
|
+
], DebugThreadsSource);
|
|
156
69
|
exports.DebugThreadsSource = DebugThreadsSource;
|
|
157
70
|
//# sourceMappingURL=debug-threads-source.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-threads-source.js","sourceRoot":"","sources":["../../../src/browser/view/debug-threads-source.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-threads-source.js","sourceRoot":"","sources":["../../../src/browser/view/debug-threads-source.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,4DAAiF;AACjF,qEAA8E;AAC9E,yDAAoD;AAGpD,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,wBAAU;IAK9C;QACI,KAAK,CAAC;YACF,WAAW,EAAE,aAAa;SAC7B,CAAC,CAAC;IACP,CAAC;IAGS,IAAI;QACV,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,CAAC,WAAW;QACR,IAAI,IAAI,CAAC,KAAK,CAAC,YAAY,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE;YACvF,OAAO,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;SAC5C;QACD,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;YACvC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;gBACxB,MAAM,OAAO,CAAC;aACjB;SACJ;IACL,CAAC;CAEJ,CAAA;AA7BG;IADC,kBAAM,CAAC,iCAAc,CAAC;8BACG,iCAAc;iDAAC;AASzC;IADC,yBAAa,EAAE;;;;8CAIf;AAfQ,kBAAkB;IAD9B,sBAAU,EAAE;;GACA,kBAAkB,CAgC9B;AAhCY,gDAAkB"}
|
|
@@ -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,46 +23,24 @@ 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
|
|
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
|
-
var __spread = (this && this.__spread) || function () {
|
|
56
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
57
|
-
return ar;
|
|
58
|
-
};
|
|
26
|
+
var DebugThreadsWidget_1;
|
|
59
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
60
28
|
exports.DebugThreadsWidget = void 0;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
_this.updatingSelection = false;
|
|
74
|
-
return _this;
|
|
29
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
31
|
+
const source_tree_1 = require("@theia/core/lib/browser/source-tree");
|
|
32
|
+
const debug_threads_source_1 = require("./debug-threads-source");
|
|
33
|
+
const debug_session_1 = require("../debug-session");
|
|
34
|
+
const debug_thread_1 = require("../model/debug-thread");
|
|
35
|
+
const debug_view_model_1 = require("../view/debug-view-model");
|
|
36
|
+
const debug_call_stack_item_type_key_1 = require("../debug-call-stack-item-type-key");
|
|
37
|
+
let DebugThreadsWidget = DebugThreadsWidget_1 = class DebugThreadsWidget extends source_tree_1.SourceTreeWidget {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this.updatingSelection = false;
|
|
75
41
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var child = source_tree_1.SourceTreeWidget.createContainer(parent, {
|
|
42
|
+
static createContainer(parent) {
|
|
43
|
+
const child = source_tree_1.SourceTreeWidget.createContainer(parent, {
|
|
79
44
|
contextMenuPath: DebugThreadsWidget_1.CONTEXT_MENU,
|
|
80
45
|
virtualized: false,
|
|
81
46
|
scrollIfActive: true
|
|
@@ -84,29 +49,28 @@ var DebugThreadsWidget = /** @class */ (function (_super) {
|
|
|
84
49
|
child.unbind(source_tree_1.SourceTreeWidget);
|
|
85
50
|
child.bind(DebugThreadsWidget_1).toSelf();
|
|
86
51
|
return child;
|
|
87
|
-
}
|
|
88
|
-
|
|
52
|
+
}
|
|
53
|
+
static createWidget(parent) {
|
|
89
54
|
return DebugThreadsWidget_1.createContainer(parent).get(DebugThreadsWidget_1);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
_super.prototype.init.call(this);
|
|
55
|
+
}
|
|
56
|
+
init() {
|
|
57
|
+
super.init();
|
|
94
58
|
this.id = 'debug:threads:' + this.viewModel.id;
|
|
95
59
|
this.title.label = 'Threads';
|
|
96
60
|
this.toDispose.push(this.threads);
|
|
97
61
|
this.source = this.threads;
|
|
98
|
-
this.toDispose.push(this.viewModel.onDidChange(
|
|
99
|
-
this.toDispose.push(this.model.onSelectionChanged(
|
|
100
|
-
}
|
|
101
|
-
|
|
62
|
+
this.toDispose.push(this.viewModel.onDidChange(() => this.updateWidgetSelection()));
|
|
63
|
+
this.toDispose.push(this.model.onSelectionChanged(() => this.updateModelSelection()));
|
|
64
|
+
}
|
|
65
|
+
updateWidgetSelection() {
|
|
102
66
|
if (this.updatingSelection) {
|
|
103
67
|
return;
|
|
104
68
|
}
|
|
105
69
|
this.updatingSelection = true;
|
|
106
70
|
try {
|
|
107
|
-
|
|
71
|
+
const { currentThread } = this.viewModel;
|
|
108
72
|
if (currentThread) {
|
|
109
|
-
|
|
73
|
+
const node = this.model.getNode(currentThread.id);
|
|
110
74
|
if (browser_1.SelectableTreeNode.is(node)) {
|
|
111
75
|
this.model.selectNode(node);
|
|
112
76
|
}
|
|
@@ -115,14 +79,14 @@ var DebugThreadsWidget = /** @class */ (function (_super) {
|
|
|
115
79
|
finally {
|
|
116
80
|
this.updatingSelection = false;
|
|
117
81
|
}
|
|
118
|
-
}
|
|
119
|
-
|
|
82
|
+
}
|
|
83
|
+
updateModelSelection() {
|
|
120
84
|
if (this.updatingSelection) {
|
|
121
85
|
return;
|
|
122
86
|
}
|
|
123
87
|
this.updatingSelection = true;
|
|
124
88
|
try {
|
|
125
|
-
|
|
89
|
+
const node = this.model.selectedNodes[0];
|
|
126
90
|
if (source_tree_1.TreeElementNode.is(node)) {
|
|
127
91
|
if (node.element instanceof debug_session_1.DebugSession) {
|
|
128
92
|
this.viewModel.currentSession = node.element;
|
|
@@ -137,46 +101,44 @@ var DebugThreadsWidget = /** @class */ (function (_super) {
|
|
|
137
101
|
finally {
|
|
138
102
|
this.updatingSelection = false;
|
|
139
103
|
}
|
|
140
|
-
}
|
|
141
|
-
|
|
104
|
+
}
|
|
105
|
+
toContextMenuArgs(node) {
|
|
142
106
|
if (source_tree_1.TreeElementNode.is(node) && node.element instanceof debug_thread_1.DebugThread) {
|
|
143
107
|
return [node.element.raw.id];
|
|
144
108
|
}
|
|
145
109
|
return undefined;
|
|
146
|
-
}
|
|
147
|
-
|
|
110
|
+
}
|
|
111
|
+
getDefaultNodeStyle(node, props) {
|
|
148
112
|
if (this.threads.multiSession) {
|
|
149
|
-
return
|
|
113
|
+
return super.getDefaultNodeStyle(node, props);
|
|
150
114
|
}
|
|
151
115
|
return undefined;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
return DebugThreadsWidget;
|
|
180
|
-
}(source_tree_1.SourceTreeWidget));
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
DebugThreadsWidget.CONTEXT_MENU = ['debug-threads-context-menu'];
|
|
119
|
+
DebugThreadsWidget.CONTROL_MENU = [...DebugThreadsWidget_1.CONTEXT_MENU, 'a_control'];
|
|
120
|
+
DebugThreadsWidget.TERMINATE_MENU = [...DebugThreadsWidget_1.CONTEXT_MENU, 'b_terminate'];
|
|
121
|
+
DebugThreadsWidget.OPEN_MENU = [...DebugThreadsWidget_1.CONTEXT_MENU, 'c_open'];
|
|
122
|
+
__decorate([
|
|
123
|
+
inversify_1.inject(debug_threads_source_1.DebugThreadsSource),
|
|
124
|
+
__metadata("design:type", debug_threads_source_1.DebugThreadsSource)
|
|
125
|
+
], DebugThreadsWidget.prototype, "threads", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
inversify_1.inject(debug_view_model_1.DebugViewModel),
|
|
128
|
+
__metadata("design:type", debug_view_model_1.DebugViewModel)
|
|
129
|
+
], DebugThreadsWidget.prototype, "viewModel", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
inversify_1.inject(debug_call_stack_item_type_key_1.DebugCallStackItemTypeKey),
|
|
132
|
+
__metadata("design:type", Object)
|
|
133
|
+
], DebugThreadsWidget.prototype, "debugCallStackItemTypeKey", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
inversify_1.postConstruct(),
|
|
136
|
+
__metadata("design:type", Function),
|
|
137
|
+
__metadata("design:paramtypes", []),
|
|
138
|
+
__metadata("design:returntype", void 0)
|
|
139
|
+
], DebugThreadsWidget.prototype, "init", null);
|
|
140
|
+
DebugThreadsWidget = DebugThreadsWidget_1 = __decorate([
|
|
141
|
+
inversify_1.injectable()
|
|
142
|
+
], DebugThreadsWidget);
|
|
181
143
|
exports.DebugThreadsWidget = DebugThreadsWidget;
|
|
182
144
|
//# sourceMappingURL=debug-threads-widget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-threads-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-threads-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-threads-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-threads-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;AAElF,4DAAwG;AAExG,qDAAkF;AAClF,qEAAwF;AACxF,iEAA4D;AAC5D,oDAAgD;AAChD,wDAAoD;AACpD,+DAA0D;AAC1D,sFAA8E;AAG9E,IAAa,kBAAkB,0BAA/B,MAAa,kBAAmB,SAAQ,8BAAgB;IAAxD;;QA0Cc,sBAAiB,GAAG,KAAK,CAAC;IAqDxC,CAAC;IAzFG,MAAM,CAAC,eAAe,CAAC,MAA4B;QAC/C,MAAM,KAAK,G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Y,0BAAW,EAAE;YACjE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;SAChC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,mBAAmB,CAAC,IAAc,EAAE,KAAgB;QAC1D,IAAI,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;YAC3B,OAAO,KAAK,CAAC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;SACjD;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CAEJ,CAAA;AA7FU,+BAAY,GAAa,CAAC,4BAA4B,CAAC,CAAC;AACxD,+BAAY,GAAG,CAAC,GAAG,oBAAkB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;AACjE,iCAAc,GAAG,CAAC,GAAG,oBAAkB,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AACrE,4BAAS,GAAG,CAAC,GAAG,oBAAkB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AAiBlE;IADC,kBAAM,CAAC,yCAAkB,CAAC;8BACC,yCAAkB;mDAAC;AAG/C;IADC,kBAAM,CAAC,iCAAc,CAAC;8BACO,iCAAc;qDAAC;AAG7C;IADC,kBAAM,CAAC,0DAAyB,CAAC;;qEACsC;AAGxE;IADC,yBAAa,EAAE;;;;8CAUf;AAxCQ,kBAAkB;IAD9B,sBAAU,EAAE;GACA,kBAAkB,CA+F9B;AA/FY,gDAAkB"}
|
|
@@ -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);
|
|
@@ -38,89 +25,84 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
38
25
|
};
|
|
39
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
27
|
exports.DebugToolBar = void 0;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_this.stepOut = function () { return _this.model.currentThread && _this.model.currentThread.stepOut(); };
|
|
61
|
-
return _this;
|
|
28
|
+
const React = require("@theia/core/shared/react");
|
|
29
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
+
const core_1 = require("@theia/core");
|
|
31
|
+
const widgets_1 = require("@theia/core/lib/browser/widgets");
|
|
32
|
+
const debug_view_model_1 = require("./debug-view-model");
|
|
33
|
+
const debug_session_1 = require("../debug-session");
|
|
34
|
+
const debug_action_1 = require("./debug-action");
|
|
35
|
+
let DebugToolBar = class DebugToolBar extends widgets_1.ReactWidget {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
this.setStepRef = (stepRef) => this.stepRef = stepRef || undefined;
|
|
39
|
+
this.start = () => this.model.start();
|
|
40
|
+
this.restart = () => this.model.restart();
|
|
41
|
+
this.stop = () => this.model.terminate();
|
|
42
|
+
this.continue = () => this.model.currentThread && this.model.currentThread.continue();
|
|
43
|
+
this.pause = () => this.model.currentThread && this.model.currentThread.pause();
|
|
44
|
+
this.stepOver = () => this.model.currentThread && this.model.currentThread.stepOver();
|
|
45
|
+
this.stepIn = () => this.model.currentThread && this.model.currentThread.stepIn();
|
|
46
|
+
this.stepOut = () => this.model.currentThread && this.model.currentThread.stepOut();
|
|
62
47
|
}
|
|
63
|
-
|
|
64
|
-
var _this = this;
|
|
48
|
+
init() {
|
|
65
49
|
this.id = 'debug:toolbar:' + this.model.id;
|
|
66
50
|
this.addClass('debug-toolbar');
|
|
67
51
|
this.toDispose.push(this.model);
|
|
68
|
-
this.toDispose.push(this.model.onDidChange(
|
|
52
|
+
this.toDispose.push(this.model.onDidChange(() => this.update()));
|
|
69
53
|
this.scrollOptions = undefined;
|
|
70
54
|
this.update();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var _this = this;
|
|
55
|
+
}
|
|
56
|
+
focus() {
|
|
74
57
|
if (!this.doFocus()) {
|
|
75
|
-
this.onRender.push(core_1.Disposable.create(
|
|
58
|
+
this.onRender.push(core_1.Disposable.create(() => this.doFocus()));
|
|
76
59
|
this.update();
|
|
77
60
|
}
|
|
78
|
-
}
|
|
79
|
-
|
|
61
|
+
}
|
|
62
|
+
doFocus() {
|
|
80
63
|
if (!this.stepRef) {
|
|
81
64
|
return false;
|
|
82
65
|
}
|
|
83
66
|
this.stepRef.focus();
|
|
84
67
|
return true;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
const { state } = this.model;
|
|
88
71
|
return React.createElement(React.Fragment, null,
|
|
89
72
|
this.renderContinue(),
|
|
90
|
-
React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Stopped, run: this.stepOver, label: 'Step Over', iconClass: 'step-over', ref: this.setStepRef }),
|
|
91
|
-
React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Stopped, run: this.stepIn, label: 'Step Into', iconClass: 'step-into' }),
|
|
92
|
-
React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Stopped, run: this.stepOut, label: 'Step Out', iconClass: 'step-out' }),
|
|
93
|
-
React.createElement(debug_action_1.DebugAction, { enabled: state !== debug_session_1.DebugState.Inactive, run: this.restart, label: 'Restart', iconClass: 'restart' }),
|
|
73
|
+
React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Stopped, run: this.stepOver, label: 'Step Over', iconClass: 'debug-step-over', ref: this.setStepRef }),
|
|
74
|
+
React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Stopped, run: this.stepIn, label: 'Step Into', iconClass: 'debug-step-into' }),
|
|
75
|
+
React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Stopped, run: this.stepOut, label: 'Step Out', iconClass: 'debug-step-out' }),
|
|
76
|
+
React.createElement(debug_action_1.DebugAction, { enabled: state !== debug_session_1.DebugState.Inactive, run: this.restart, label: 'Restart', iconClass: 'debug-restart' }),
|
|
94
77
|
this.renderStart());
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
78
|
+
}
|
|
79
|
+
renderStart() {
|
|
80
|
+
const { state } = this.model;
|
|
98
81
|
if (state === debug_session_1.DebugState.Inactive && this.model.sessionCount === 1) {
|
|
99
|
-
return React.createElement(debug_action_1.DebugAction, { run: this.start, label: 'Start', iconClass: 'start' });
|
|
82
|
+
return React.createElement(debug_action_1.DebugAction, { run: this.start, label: 'Start', iconClass: 'debug-start' });
|
|
100
83
|
}
|
|
101
|
-
return React.createElement(debug_action_1.DebugAction, { enabled: state !== debug_session_1.DebugState.Inactive, run: this.stop, label: 'Stop', iconClass: 'stop' });
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
84
|
+
return React.createElement(debug_action_1.DebugAction, { enabled: state !== debug_session_1.DebugState.Inactive, run: this.stop, label: 'Stop', iconClass: 'debug-stop' });
|
|
85
|
+
}
|
|
86
|
+
renderContinue() {
|
|
87
|
+
const { state } = this.model;
|
|
105
88
|
if (state === debug_session_1.DebugState.Stopped) {
|
|
106
|
-
return React.createElement(debug_action_1.DebugAction, { run: this.continue, label: 'Continue', iconClass: 'continue' });
|
|
89
|
+
return React.createElement(debug_action_1.DebugAction, { run: this.continue, label: 'Continue', iconClass: 'debug-continue' });
|
|
107
90
|
}
|
|
108
|
-
return React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Running, run: this.pause, label: 'Pause', iconClass: 'pause' });
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}(widgets_1.ReactWidget));
|
|
91
|
+
return React.createElement(debug_action_1.DebugAction, { enabled: state === debug_session_1.DebugState.Running, run: this.pause, label: 'Pause', iconClass: 'debug-pause' });
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
__decorate([
|
|
95
|
+
inversify_1.inject(debug_view_model_1.DebugViewModel),
|
|
96
|
+
__metadata("design:type", debug_view_model_1.DebugViewModel)
|
|
97
|
+
], DebugToolBar.prototype, "model", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
inversify_1.postConstruct(),
|
|
100
|
+
__metadata("design:type", Function),
|
|
101
|
+
__metadata("design:paramtypes", []),
|
|
102
|
+
__metadata("design:returntype", void 0)
|
|
103
|
+
], DebugToolBar.prototype, "init", null);
|
|
104
|
+
DebugToolBar = __decorate([
|
|
105
|
+
inversify_1.injectable()
|
|
106
|
+
], DebugToolBar);
|
|
125
107
|
exports.DebugToolBar = DebugToolBar;
|
|
126
108
|
//# sourceMappingURL=debug-toolbar-widget.js.map
|