@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-session-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-session-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-session-widget.js","sourceRoot":"","sources":["../../../src/browser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YAAY,CAAC,QAA6B;QACtC,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;CAEJ,CAAA;AAzEG;IADC,kBAAM,CAAC,uBAAa,CAAC,OAAO,CAAC;;gEACiC;AAG/D;IADC,kBAAM,CAAC,iCAAc,CAAC;8BACP,iCAAc;iDAAC;AAG/B;IADC,kBAAM,CAAC,mCAAY,CAAC;8BACO,mCAAY;mDAAC;AAGzC;IADC,kBAAM,CAAC,yCAAkB,CAAC;8BACC,yCAAkB;mDAAC;AAG/C;IADC,kBAAM,CAAC,kDAAsB,CAAC;8BACC,kDAAsB;uDAAC;AAGvD;IADC,kBAAM,CAAC,6CAAoB,CAAC;8BACC,6CAAoB;qDAAC;AAGnD;IADC,kBAAM,CAAC,qCAAgB,CAAC;8BACC,qCAAgB;iDAAC;AAG3C;IADC,kBAAM,CAAC,iDAAsB,CAAC;8BACC,iDAAsB;uDAAC;AAGvD;IADC,yBAAa,EAAE;;;;8CA0Bf;AAxEQ,kBAAkB;IAD9B,sBAAU,EAAE;GACA,kBAAkB,CAgG9B;AAhGY,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,171 +23,73 @@ 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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
40
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
44
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
45
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
49
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
50
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
51
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
52
|
-
function step(op) {
|
|
53
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
54
|
-
while (_) try {
|
|
55
|
-
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;
|
|
56
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
57
|
-
switch (op[0]) {
|
|
58
|
-
case 0: case 1: t = op; break;
|
|
59
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
60
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
61
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
62
|
-
default:
|
|
63
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
64
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
65
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67
|
-
if (t[2]) _.ops.pop();
|
|
68
|
-
_.trys.pop(); continue;
|
|
69
|
-
}
|
|
70
|
-
op = body.call(thisArg, _);
|
|
71
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
72
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
var __values = (this && this.__values) || function(o) {
|
|
76
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
77
|
-
if (m) return m.call(o);
|
|
78
|
-
if (o && typeof o.length === "number") return {
|
|
79
|
-
next: function () {
|
|
80
|
-
if (o && i >= o.length) o = void 0;
|
|
81
|
-
return { value: o && o[i++], done: !o };
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
85
|
-
};
|
|
86
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
27
|
exports.LoadMoreStackFrames = exports.DebugStackFramesSource = void 0;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
var _this = _super.call(this, {
|
|
28
|
+
const React = require("@theia/core/shared/react");
|
|
29
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
30
|
+
const source_tree_1 = require("@theia/core/lib/browser/source-tree");
|
|
31
|
+
const debug_view_model_1 = require("./debug-view-model");
|
|
32
|
+
const debounce = require("p-debounce");
|
|
33
|
+
let DebugStackFramesSource = class DebugStackFramesSource extends source_tree_1.TreeSource {
|
|
34
|
+
constructor() {
|
|
35
|
+
super({
|
|
97
36
|
placeholder: 'Not paused'
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
return _this;
|
|
37
|
+
});
|
|
38
|
+
this.refresh = debounce(() => this.fireDidChange(), 100);
|
|
101
39
|
}
|
|
102
|
-
|
|
103
|
-
var _this = this;
|
|
40
|
+
init() {
|
|
104
41
|
this.refresh();
|
|
105
|
-
this.toDispose.push(this.model.onDidChange(
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
_e.label = 2;
|
|
122
|
-
case 2:
|
|
123
|
-
if (!!_b.done) return [3 /*break*/, 5];
|
|
124
|
-
frame = _b.value;
|
|
125
|
-
return [4 /*yield*/, frame];
|
|
126
|
-
case 3:
|
|
127
|
-
_e.sent();
|
|
128
|
-
_e.label = 4;
|
|
129
|
-
case 4:
|
|
130
|
-
_b = _a.next();
|
|
131
|
-
return [3 /*break*/, 2];
|
|
132
|
-
case 5: return [3 /*break*/, 8];
|
|
133
|
-
case 6:
|
|
134
|
-
e_1_1 = _e.sent();
|
|
135
|
-
e_1 = { error: e_1_1 };
|
|
136
|
-
return [3 /*break*/, 8];
|
|
137
|
-
case 7:
|
|
138
|
-
try {
|
|
139
|
-
if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
|
|
140
|
-
}
|
|
141
|
-
finally { if (e_1) throw e_1.error; }
|
|
142
|
-
return [7 /*endfinally*/];
|
|
143
|
-
case 8:
|
|
144
|
-
if (!thread.stoppedDetails) return [3 /*break*/, 12];
|
|
145
|
-
_c = thread.stoppedDetails, framesErrorMessage_1 = _c.framesErrorMessage, totalFrames = _c.totalFrames;
|
|
146
|
-
if (!framesErrorMessage_1) return [3 /*break*/, 10];
|
|
147
|
-
return [4 /*yield*/, {
|
|
148
|
-
render: function () { return React.createElement("span", { title: framesErrorMessage_1 }, framesErrorMessage_1); }
|
|
149
|
-
}];
|
|
150
|
-
case 9:
|
|
151
|
-
_e.sent();
|
|
152
|
-
_e.label = 10;
|
|
153
|
-
case 10:
|
|
154
|
-
if (!(totalFrames && totalFrames > thread.frameCount)) return [3 /*break*/, 12];
|
|
155
|
-
return [4 /*yield*/, new LoadMoreStackFrames(thread)];
|
|
156
|
-
case 11:
|
|
157
|
-
_e.sent();
|
|
158
|
-
_e.label = 12;
|
|
159
|
-
case 12: return [2 /*return*/];
|
|
42
|
+
this.toDispose.push(this.model.onDidChange(() => this.refresh()));
|
|
43
|
+
}
|
|
44
|
+
*getElements() {
|
|
45
|
+
const thread = this.model.currentThread;
|
|
46
|
+
if (!thread) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
for (const frame of thread.frames) {
|
|
50
|
+
yield frame;
|
|
51
|
+
}
|
|
52
|
+
if (thread.stoppedDetails) {
|
|
53
|
+
const { framesErrorMessage, totalFrames } = thread.stoppedDetails;
|
|
54
|
+
if (framesErrorMessage) {
|
|
55
|
+
yield {
|
|
56
|
+
render: () => React.createElement("span", { title: framesErrorMessage }, framesErrorMessage)
|
|
57
|
+
};
|
|
160
58
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
59
|
+
if (totalFrames && totalFrames > thread.frameCount) {
|
|
60
|
+
yield new LoadMoreStackFrames(thread);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
__decorate([
|
|
66
|
+
inversify_1.inject(debug_view_model_1.DebugViewModel),
|
|
67
|
+
__metadata("design:type", debug_view_model_1.DebugViewModel)
|
|
68
|
+
], DebugStackFramesSource.prototype, "model", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
inversify_1.postConstruct(),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", []),
|
|
73
|
+
__metadata("design:returntype", void 0)
|
|
74
|
+
], DebugStackFramesSource.prototype, "init", null);
|
|
75
|
+
DebugStackFramesSource = __decorate([
|
|
76
|
+
inversify_1.injectable(),
|
|
77
|
+
__metadata("design:paramtypes", [])
|
|
78
|
+
], DebugStackFramesSource);
|
|
179
79
|
exports.DebugStackFramesSource = DebugStackFramesSource;
|
|
180
|
-
|
|
181
|
-
|
|
80
|
+
class LoadMoreStackFrames {
|
|
81
|
+
constructor(thread) {
|
|
182
82
|
this.thread = thread;
|
|
183
83
|
}
|
|
184
|
-
|
|
84
|
+
render() {
|
|
185
85
|
return React.createElement("span", { className: 'theia-load-more-frames' }, "Load More Stack Frames");
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
frames = _a.sent();
|
|
195
|
-
if (frames[0]) {
|
|
196
|
-
this.thread.currentFrame = frames[0];
|
|
197
|
-
}
|
|
198
|
-
return [2 /*return*/];
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
};
|
|
203
|
-
return LoadMoreStackFrames;
|
|
204
|
-
}());
|
|
86
|
+
}
|
|
87
|
+
async open() {
|
|
88
|
+
const frames = await this.thread.fetchFrames();
|
|
89
|
+
if (frames[0]) {
|
|
90
|
+
this.thread.currentFrame = frames[0];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
205
94
|
exports.LoadMoreStackFrames = LoadMoreStackFrames;
|
|
206
95
|
//# sourceMappingURL=debug-stack-frames-source.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-stack-frames-source.js","sourceRoot":"","sources":["../../../src/browser/view/debug-stack-frames-source.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-stack-frames-source.js","sourceRoot":"","sources":["../../../src/browser/view/debug-stack-frames-source.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,kDAAkD;AAClD,4DAAiF;AACjF,qEAA8E;AAE9E,yDAAoD;AACpD,uCAAwC;AAGxC,IAAa,sBAAsB,GAAnC,MAAa,sBAAuB,SAAQ,wBAAU;IAKlD;QACI,KAAK,CAAC;YACF,WAAW,EAAE,YAAY;SAC5B,CAAC,CAAC;QASY,YAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,GAAG,CAAC,CAAC;IARvE,CAAC;IAGS,IAAI;QACV,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAID,CAAC,WAAW;QACR,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC;QACxC,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE;YAC/B,MAAM,KAAK,CAAC;SAEf;QACD,IAAI,MAAM,CAAC,cAAc,EAAE;YACvB,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC;YAClE,IAAI,kBAAkB,EAAE;gBACpB,MAAM;oBACF,MAAM,EAAE,GAAG,EAAE,CAAC,8BAAM,KAAK,EAAE,kBAAkB,IAAG,kBAAkB,CAAQ;iBAC7E,CAAC;aACL;YACD,IAAI,WAAW,IAAI,WAAW,GAAG,MAAM,CAAC,UAAU,EAAE;gBAChD,MAAM,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;aACzC;SACJ;IACL,CAAC;CACJ,CAAA;AArCG;IADC,kBAAM,CAAC,iCAAc,CAAC;8BACG,iCAAc;qDAAC;AASzC;IADC,yBAAa,EAAE;;;;kDAIf;AAfQ,sBAAsB;IADlC,sBAAU,EAAE;;GACA,sBAAsB,CAwClC;AAxCY,wDAAsB;AA0CnC,MAAa,mBAAmB;IAE5B,YACa,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAC5B,CAAC;IAEL,MAAM;QACF,OAAO,8BAAM,SAAS,EAAC,wBAAwB,6BAA8B,CAAC;IAClF,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;QAC/C,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE;YACX,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;SACxC;IACL,CAAC;CAEJ;AAjBD,kDAiBC"}
|
|
@@ -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,61 +23,23 @@ 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
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
44
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
45
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
49
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
50
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
51
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
52
|
-
function step(op) {
|
|
53
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
54
|
-
while (_) try {
|
|
55
|
-
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;
|
|
56
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
57
|
-
switch (op[0]) {
|
|
58
|
-
case 0: case 1: t = op; break;
|
|
59
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
60
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
61
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
62
|
-
default:
|
|
63
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
64
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
65
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67
|
-
if (t[2]) _.ops.pop();
|
|
68
|
-
_.trys.pop(); continue;
|
|
69
|
-
}
|
|
70
|
-
op = body.call(thisArg, _);
|
|
71
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
72
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
73
|
-
}
|
|
74
|
-
};
|
|
26
|
+
var DebugStackFramesWidget_1;
|
|
75
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
28
|
exports.DebugStackFramesWidget = void 0;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
_this.updatingSelection = false;
|
|
89
|
-
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_stack_frames_source_1 = require("./debug-stack-frames-source");
|
|
33
|
+
const debug_stack_frame_1 = require("../model/debug-stack-frame");
|
|
34
|
+
const debug_view_model_1 = require("./debug-view-model");
|
|
35
|
+
const debug_call_stack_item_type_key_1 = require("../debug-call-stack-item-type-key");
|
|
36
|
+
let DebugStackFramesWidget = DebugStackFramesWidget_1 = class DebugStackFramesWidget extends source_tree_1.SourceTreeWidget {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
this.updatingSelection = false;
|
|
90
40
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var child = source_tree_1.SourceTreeWidget.createContainer(parent, {
|
|
41
|
+
static createContainer(parent) {
|
|
42
|
+
const child = source_tree_1.SourceTreeWidget.createContainer(parent, {
|
|
94
43
|
contextMenuPath: DebugStackFramesWidget_1.CONTEXT_MENU,
|
|
95
44
|
virtualized: false,
|
|
96
45
|
scrollIfActive: true
|
|
@@ -99,76 +48,63 @@ var DebugStackFramesWidget = /** @class */ (function (_super) {
|
|
|
99
48
|
child.unbind(source_tree_1.SourceTreeWidget);
|
|
100
49
|
child.bind(DebugStackFramesWidget_1).toSelf();
|
|
101
50
|
return child;
|
|
102
|
-
}
|
|
103
|
-
|
|
51
|
+
}
|
|
52
|
+
static createWidget(parent) {
|
|
104
53
|
return DebugStackFramesWidget_1.createContainer(parent).get(DebugStackFramesWidget_1);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
_super.prototype.init.call(this);
|
|
54
|
+
}
|
|
55
|
+
init() {
|
|
56
|
+
super.init();
|
|
109
57
|
this.id = 'debug:frames:' + this.viewModel.id;
|
|
110
58
|
this.title.label = 'Call Stack';
|
|
111
59
|
this.toDispose.push(this.frames);
|
|
112
60
|
this.source = this.frames;
|
|
113
|
-
this.toDispose.push(this.viewModel.onDidChange(
|
|
114
|
-
this.toDispose.push(this.model.onNodeRefreshed(
|
|
115
|
-
this.toDispose.push(this.model.onSelectionChanged(
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
node = this.model.getNode(currentFrame.id);
|
|
129
|
-
if (browser_1.SelectableTreeNode.is(node)) {
|
|
130
|
-
this.model.selectNode(node);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
finally {
|
|
135
|
-
this.updatingSelection = false;
|
|
136
|
-
}
|
|
137
|
-
return [2 /*return*/];
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
DebugStackFramesWidget.prototype.updateModelSelection = function () {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
143
|
-
var node;
|
|
144
|
-
return __generator(this, function (_a) {
|
|
145
|
-
if (this.updatingSelection) {
|
|
146
|
-
return [2 /*return*/];
|
|
147
|
-
}
|
|
148
|
-
this.updatingSelection = true;
|
|
149
|
-
try {
|
|
150
|
-
node = this.model.selectedNodes[0];
|
|
151
|
-
if (source_tree_1.TreeElementNode.is(node)) {
|
|
152
|
-
if (node.element instanceof debug_stack_frame_1.DebugStackFrame) {
|
|
153
|
-
node.element.thread.currentFrame = node.element;
|
|
154
|
-
this.debugCallStackItemTypeKey.set('stackFrame');
|
|
155
|
-
}
|
|
156
|
-
}
|
|
61
|
+
this.toDispose.push(this.viewModel.onDidChange(() => this.updateWidgetSelection()));
|
|
62
|
+
this.toDispose.push(this.model.onNodeRefreshed(() => this.updateWidgetSelection()));
|
|
63
|
+
this.toDispose.push(this.model.onSelectionChanged(() => this.updateModelSelection()));
|
|
64
|
+
}
|
|
65
|
+
async updateWidgetSelection() {
|
|
66
|
+
if (this.updatingSelection) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.updatingSelection = true;
|
|
70
|
+
try {
|
|
71
|
+
const { currentFrame } = this.viewModel;
|
|
72
|
+
if (currentFrame) {
|
|
73
|
+
const node = this.model.getNode(currentFrame.id);
|
|
74
|
+
if (browser_1.SelectableTreeNode.is(node)) {
|
|
75
|
+
this.model.selectNode(node);
|
|
157
76
|
}
|
|
158
|
-
|
|
159
|
-
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
this.updatingSelection = false;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
async updateModelSelection() {
|
|
84
|
+
if (this.updatingSelection) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this.updatingSelection = true;
|
|
88
|
+
try {
|
|
89
|
+
const node = this.model.selectedNodes[0];
|
|
90
|
+
if (source_tree_1.TreeElementNode.is(node)) {
|
|
91
|
+
if (node.element instanceof debug_stack_frame_1.DebugStackFrame) {
|
|
92
|
+
node.element.thread.currentFrame = node.element;
|
|
93
|
+
this.debugCallStackItemTypeKey.set('stackFrame');
|
|
160
94
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
finally {
|
|
98
|
+
this.updatingSelection = false;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
toContextMenuArgs(node) {
|
|
166
102
|
if (source_tree_1.TreeElementNode.is(node)) {
|
|
167
103
|
if (node.element instanceof debug_stack_frame_1.DebugStackFrame) {
|
|
168
|
-
|
|
104
|
+
const source = node.element.source;
|
|
169
105
|
if (source) {
|
|
170
106
|
if (source.inMemory) {
|
|
171
|
-
|
|
107
|
+
const path = source.raw.path || source.raw.sourceReference;
|
|
172
108
|
if (path !== undefined) {
|
|
173
109
|
return [path];
|
|
174
110
|
}
|
|
@@ -180,40 +116,38 @@ var DebugStackFramesWidget = /** @class */ (function (_super) {
|
|
|
180
116
|
}
|
|
181
117
|
}
|
|
182
118
|
return undefined;
|
|
183
|
-
}
|
|
184
|
-
|
|
119
|
+
}
|
|
120
|
+
handleClickEvent(node, event) {
|
|
185
121
|
if (source_tree_1.TreeElementNode.is(node) && node.element instanceof debug_stack_frames_source_1.LoadMoreStackFrames) {
|
|
186
122
|
node.element.open();
|
|
187
123
|
}
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
124
|
+
super.handleClickEvent(node, event);
|
|
125
|
+
}
|
|
126
|
+
getDefaultNodeStyle(node, props) {
|
|
191
127
|
return undefined;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
return DebugStackFramesWidget;
|
|
217
|
-
}(source_tree_1.SourceTreeWidget));
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
DebugStackFramesWidget.CONTEXT_MENU = ['debug-frames-context-menu'];
|
|
131
|
+
__decorate([
|
|
132
|
+
inversify_1.inject(debug_stack_frames_source_1.DebugStackFramesSource),
|
|
133
|
+
__metadata("design:type", debug_stack_frames_source_1.DebugStackFramesSource)
|
|
134
|
+
], DebugStackFramesWidget.prototype, "frames", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
inversify_1.inject(debug_view_model_1.DebugViewModel),
|
|
137
|
+
__metadata("design:type", debug_view_model_1.DebugViewModel)
|
|
138
|
+
], DebugStackFramesWidget.prototype, "viewModel", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
inversify_1.inject(debug_call_stack_item_type_key_1.DebugCallStackItemTypeKey),
|
|
141
|
+
__metadata("design:type", Object)
|
|
142
|
+
], DebugStackFramesWidget.prototype, "debugCallStackItemTypeKey", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
inversify_1.postConstruct(),
|
|
145
|
+
__metadata("design:type", Function),
|
|
146
|
+
__metadata("design:paramtypes", []),
|
|
147
|
+
__metadata("design:returntype", void 0)
|
|
148
|
+
], DebugStackFramesWidget.prototype, "init", null);
|
|
149
|
+
DebugStackFramesWidget = DebugStackFramesWidget_1 = __decorate([
|
|
150
|
+
inversify_1.injectable()
|
|
151
|
+
], DebugStackFramesWidget);
|
|
218
152
|
exports.DebugStackFramesWidget = DebugStackFramesWidget;
|
|
219
153
|
//# sourceMappingURL=debug-stack-frames-widget.js.map
|