@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-breakpoints-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-breakpoints-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-breakpoints-widget.js","sourceRoot":"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,CAAC,gCAAgC,CAAC,CAAC;AAC5D,gCAAS,GAAG,CAAC,GAAG,wBAAsB,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AAC/D,kCAAW,GAAG,CAAC,GAAG,wBAAsB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AACnE,kCAAW,GAAG,CAAC,GAAG,wBAAsB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AAiB1E;IADC,kBAAM,CAAC,iCAAc,CAAC;8BACO,iCAAc;yDAAC;AAG7C;IADC,kBAAM,CAAC,sCAAiB,CAAC;8BACM,sCAAiB;2DAAC;AAGlD;IADC,kBAAM,CAAC,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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
48
|
+
this.manager.addConfiguration();
|
|
79
49
|
}
|
|
80
50
|
else {
|
|
81
|
-
|
|
82
|
-
|
|
51
|
+
const [name, workspaceFolderUri] = value.split('__CONF__');
|
|
52
|
+
this.manager.current = this.manager.find(name, workspaceFolderUri);
|
|
83
53
|
}
|
|
84
54
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
90
|
-
|
|
59
|
+
this.openConfiguration = () => this.manager.openConfiguration();
|
|
60
|
+
this.openConsole = () => this.debugConsole.openView({
|
|
91
61
|
activate: true
|
|
92
|
-
});
|
|
93
|
-
return _this;
|
|
62
|
+
});
|
|
94
63
|
}
|
|
95
|
-
|
|
96
|
-
var _this = this;
|
|
64
|
+
init() {
|
|
97
65
|
this.addClass('debug-toolbar');
|
|
98
|
-
this.toDispose.push(this.manager.onDidChange(
|
|
99
|
-
this.toDispose.push(this.workspaceService.onWorkspaceChanged(
|
|
100
|
-
this.toDispose.push(this.workspaceService.onWorkspaceLocationChanged(
|
|
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
|
-
|
|
105
|
-
var _this = this;
|
|
71
|
+
}
|
|
72
|
+
focus() {
|
|
106
73
|
if (!this.doFocus()) {
|
|
107
|
-
this.onRender.push(common_1.Disposable.create(
|
|
74
|
+
this.onRender.push(common_1.Disposable.create(() => this.doFocus()));
|
|
108
75
|
this.update();
|
|
109
76
|
}
|
|
110
|
-
}
|
|
111
|
-
|
|
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
|
-
|
|
119
|
-
|
|
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: '
|
|
127
|
-
React.createElement(debug_action_1.DebugAction, { run: this.openConsole, label: 'Debug Console', iconClass: '
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
|
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,mDAA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,aAAa,CAAC,IAAI,CAAC;SAC7B;QACD,OAAO,aAAa,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,aAAG,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IACnF,CAAC;CAsBJ,CAAA;AAlGG;IADC,kBAAM,CAAC,wBAAe,CAAC;8BACY,wBAAe;iEAAC;AAGpD;IADC,kBAAM,CAAC,iCAAc,CAAC;8BACO,iCAAc;2DAAC;AAG7C;IADC,kBAAM,CAAC,uDAAyB,CAAC;8BACN,uDAAyB;yDAAC;AAGtD;IADC,kBAAM,CAAC,2CAAmB,CAAC;8BACO,2CAAmB;gEAAC;AAGvD;IADC,kBAAM,CAAC,qDAAwB,CAAC;8BACA,qDAAwB;8DAAC;AAG1D;IADC,kBAAM,CAAC,0BAAgB,CAAC;8BACY,0BAAgB;kEAAC;AAGtD;IADC,yBAAa,EAAE;;;;oDAQf;AA5BQ,wBAAwB;IADpC,sBAAU,EAAE;GACA,wBAAwB,CAqGpC;AArGY,4DAAwB"}
|
|
@@ -16,22 +16,20 @@
|
|
|
16
16
|
********************************************************************************/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.DebugExceptionBreakpoint = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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 =
|
|
24
|
+
this.toggle = () => this.breakpoints.toggleExceptionBreakpoint(this.data.raw.filter);
|
|
26
25
|
this.id = data.raw.filter + ':' + data.raw.label;
|
|
27
26
|
}
|
|
28
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
67
|
-
child.bind(
|
|
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
|
-
|
|
53
|
+
}
|
|
54
|
+
static createWidget(parent, options) {
|
|
87
55
|
return DebugSessionWidget_1.createContainer(parent, options).get(DebugSessionWidget_1);
|
|
88
|
-
}
|
|
89
|
-
|
|
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-
|
|
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
|
-
|
|
76
|
+
const layout = this.layout = new browser_1.PanelLayout();
|
|
109
77
|
layout.addWidget(this.toolbar);
|
|
110
78
|
layout.addWidget(this.viewContainer);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
79
|
+
}
|
|
80
|
+
onActivateRequest(msg) {
|
|
81
|
+
super.onActivateRequest(msg);
|
|
114
82
|
this.toolbar.focus();
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
this.getTrackableWidgets().forEach(
|
|
119
|
-
}
|
|
120
|
-
|
|
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
|
-
|
|
90
|
+
}
|
|
91
|
+
storeState() {
|
|
124
92
|
return this.viewContainer.storeState();
|
|
125
|
-
}
|
|
126
|
-
|
|
93
|
+
}
|
|
94
|
+
restoreState(oldState) {
|
|
127
95
|
this.viewContainer.restoreState(oldState);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|