@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-connection.js","sourceRoot":"","sources":["../../src/browser/debug-session-connection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-session-connection.js","sourceRoot":"","sources":["../../src/browser/debug-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AG,IAAI,cAAO,EAAE,CAAC;QAC9B,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7B,OAAO,OAAO,CAAC;IACnB,CAAC;IAES,kBAAkB,CAAC,QAAgB,EAAE,mBAAmB,GAAG,KAAK;QACtE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE;gBACF,QAAQ;gBACR,mBAAmB;aACtB;YACD,GAAG,EAAE,CAAC,CAAC;SACV,CAAC,CAAC;IACP,CAAC;CAEJ;AAzND,wDAyNC"}
|
|
@@ -23,34 +23,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
23
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
24
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
25
|
};
|
|
26
|
-
var __values = (this && this.__values) || function(o) {
|
|
27
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
28
|
-
if (m) return m.call(o);
|
|
29
|
-
if (o && typeof o.length === "number") return {
|
|
30
|
-
next: function () {
|
|
31
|
-
if (o && i >= o.length) o = void 0;
|
|
32
|
-
return { value: o && o[i++], done: !o };
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
36
|
-
};
|
|
37
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
27
|
exports.DefaultDebugSessionFactory = exports.DebugSessionFactory = exports.DebugSessionContributionRegistryImpl = exports.DebugSessionContributionRegistry = exports.DebugSessionContribution = void 0;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
28
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
29
|
+
const common_1 = require("@theia/core/lib/common");
|
|
30
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
31
|
+
const browser_2 = require("@theia/editor/lib/browser");
|
|
32
|
+
const terminal_service_1 = require("@theia/terminal/lib/browser/base/terminal-service");
|
|
33
|
+
const ws_connection_provider_1 = require("@theia/core/lib/browser/messaging/ws-connection-provider");
|
|
34
|
+
const debug_session_1 = require("./debug-session");
|
|
35
|
+
const breakpoint_manager_1 = require("./breakpoint/breakpoint-manager");
|
|
36
|
+
const output_channel_1 = require("@theia/output/lib/common/output-channel");
|
|
37
|
+
const debug_preferences_1 = require("./debug-preferences");
|
|
38
|
+
const debug_session_connection_1 = require("./debug-session-connection");
|
|
39
|
+
const debug_service_1 = require("../common/debug-service");
|
|
40
|
+
const contribution_provider_1 = require("@theia/core/lib/common/contribution-provider");
|
|
41
|
+
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
42
|
+
const debug_contribution_1 = require("./debug-contribution");
|
|
54
43
|
/**
|
|
55
44
|
* DebugSessionContribution symbol for DI.
|
|
56
45
|
*/
|
|
@@ -59,112 +48,94 @@ exports.DebugSessionContribution = Symbol('DebugSessionContribution');
|
|
|
59
48
|
* DebugSessionContributionRegistry symbol for DI.
|
|
60
49
|
*/
|
|
61
50
|
exports.DebugSessionContributionRegistry = Symbol('DebugSessionContributionRegistry');
|
|
62
|
-
|
|
63
|
-
|
|
51
|
+
let DebugSessionContributionRegistryImpl = class DebugSessionContributionRegistryImpl {
|
|
52
|
+
constructor() {
|
|
64
53
|
this.contribs = new Map();
|
|
65
54
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
for (var _b = __values(this.contributions.getContributions()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
70
|
-
var contrib = _c.value;
|
|
71
|
-
this.contribs.set(contrib.debugType, contrib);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
75
|
-
finally {
|
|
76
|
-
try {
|
|
77
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
78
|
-
}
|
|
79
|
-
finally { if (e_1) throw e_1.error; }
|
|
55
|
+
init() {
|
|
56
|
+
for (const contrib of this.contributions.getContributions()) {
|
|
57
|
+
this.contribs.set(contrib.debugType, contrib);
|
|
80
58
|
}
|
|
81
|
-
}
|
|
82
|
-
|
|
59
|
+
}
|
|
60
|
+
get(debugType) {
|
|
83
61
|
return this.contribs.get(debugType);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}());
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
__decorate([
|
|
65
|
+
inversify_1.inject(contribution_provider_1.ContributionProvider),
|
|
66
|
+
inversify_1.named(exports.DebugSessionContribution),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], DebugSessionContributionRegistryImpl.prototype, "contributions", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
inversify_1.postConstruct(),
|
|
71
|
+
__metadata("design:type", Function),
|
|
72
|
+
__metadata("design:paramtypes", []),
|
|
73
|
+
__metadata("design:returntype", void 0)
|
|
74
|
+
], DebugSessionContributionRegistryImpl.prototype, "init", null);
|
|
75
|
+
DebugSessionContributionRegistryImpl = __decorate([
|
|
76
|
+
inversify_1.injectable()
|
|
77
|
+
], DebugSessionContributionRegistryImpl);
|
|
101
78
|
exports.DebugSessionContributionRegistryImpl = DebugSessionContributionRegistryImpl;
|
|
102
79
|
/**
|
|
103
80
|
* DebugSessionFactory symbol for DI.
|
|
104
81
|
*/
|
|
105
82
|
exports.DebugSessionFactory = Symbol('DebugSessionFactory');
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
var connection = new debug_session_connection_1.DebugSessionConnection(sessionId, function () { return new Promise(function (resolve) {
|
|
112
|
-
return _this.connectionProvider.openChannel(debug_service_1.DebugAdapterPath + "/" + sessionId, function (channel) {
|
|
113
|
-
resolve(channel);
|
|
114
|
-
}, { reconnecting: false });
|
|
115
|
-
}); }, this.getTraceOutputChannel());
|
|
83
|
+
let DefaultDebugSessionFactory = class DefaultDebugSessionFactory {
|
|
84
|
+
get(sessionId, options, parentSession) {
|
|
85
|
+
const connection = new debug_session_connection_1.DebugSessionConnection(sessionId, () => new Promise(resolve => this.connectionProvider.openChannel(`${debug_service_1.DebugAdapterPath}/${sessionId}`, channel => {
|
|
86
|
+
resolve(channel);
|
|
87
|
+
}, { reconnecting: false })), this.getTraceOutputChannel());
|
|
116
88
|
return new debug_session_1.DebugSession(sessionId, options, parentSession, connection, this.terminalService, this.editorManager, this.breakpoints, this.labelProvider, this.messages, this.fileService, this.debugContributionProvider);
|
|
117
|
-
}
|
|
118
|
-
|
|
89
|
+
}
|
|
90
|
+
getTraceOutputChannel() {
|
|
119
91
|
if (this.debugPreferences['debug.trace']) {
|
|
120
92
|
return this.outputChannelManager.getChannel('Debug adapters');
|
|
121
93
|
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
}());
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
__decorate([
|
|
97
|
+
inversify_1.inject(ws_connection_provider_1.WebSocketConnectionProvider),
|
|
98
|
+
__metadata("design:type", ws_connection_provider_1.WebSocketConnectionProvider)
|
|
99
|
+
], DefaultDebugSessionFactory.prototype, "connectionProvider", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
inversify_1.inject(terminal_service_1.TerminalService),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], DefaultDebugSessionFactory.prototype, "terminalService", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
inversify_1.inject(browser_2.EditorManager),
|
|
106
|
+
__metadata("design:type", browser_2.EditorManager)
|
|
107
|
+
], DefaultDebugSessionFactory.prototype, "editorManager", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
inversify_1.inject(breakpoint_manager_1.BreakpointManager),
|
|
110
|
+
__metadata("design:type", breakpoint_manager_1.BreakpointManager)
|
|
111
|
+
], DefaultDebugSessionFactory.prototype, "breakpoints", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
inversify_1.inject(browser_1.LabelProvider),
|
|
114
|
+
__metadata("design:type", browser_1.LabelProvider)
|
|
115
|
+
], DefaultDebugSessionFactory.prototype, "labelProvider", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
inversify_1.inject(common_1.MessageClient),
|
|
118
|
+
__metadata("design:type", common_1.MessageClient)
|
|
119
|
+
], DefaultDebugSessionFactory.prototype, "messages", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
inversify_1.inject(output_channel_1.OutputChannelManager),
|
|
122
|
+
__metadata("design:type", output_channel_1.OutputChannelManager)
|
|
123
|
+
], DefaultDebugSessionFactory.prototype, "outputChannelManager", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
inversify_1.inject(debug_preferences_1.DebugPreferences),
|
|
126
|
+
__metadata("design:type", Object)
|
|
127
|
+
], DefaultDebugSessionFactory.prototype, "debugPreferences", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
inversify_1.inject(file_service_1.FileService),
|
|
130
|
+
__metadata("design:type", file_service_1.FileService)
|
|
131
|
+
], DefaultDebugSessionFactory.prototype, "fileService", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
inversify_1.inject(contribution_provider_1.ContributionProvider),
|
|
134
|
+
inversify_1.named(debug_contribution_1.DebugContribution),
|
|
135
|
+
__metadata("design:type", Object)
|
|
136
|
+
], DefaultDebugSessionFactory.prototype, "debugContributionProvider", void 0);
|
|
137
|
+
DefaultDebugSessionFactory = __decorate([
|
|
138
|
+
inversify_1.injectable()
|
|
139
|
+
], DefaultDebugSessionFactory);
|
|
169
140
|
exports.DefaultDebugSessionFactory = DefaultDebugSessionFactory;
|
|
170
141
|
//# sourceMappingURL=debug-session-contribution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-session-contribution.js","sourceRoot":"","sources":["../../src/browser/debug-session-contribution.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-session-contribution.js","sourceRoot":"","sources":["../../src/browser/debug-session-contribution.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,4DAAwF;AACxF,mDAAuD;AACvD,qDAAwD;AACxD,uDAA0D;AAC1D,wFAAoF;AACpF,qGAAuG;AACvG,mDAA+C;AAC/C,wEAAoE;AAEpE,4EAA8F;AAC9F,2DAAuD;AACvD,yEAAoE;AAEpE,2DAA2D;AAC3D,wFAAoF;AACpF,6EAAyE;AACzE,6DAAyD;AAEzD;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AC,qBAAqB,EAAE,CAAC,CAAC;QAClC,OAAO,IAAI,4BAAY,CACnB,SAAS,EACT,OAAO,EACP,aAAa,EACb,UAAU,EACV,IAAI,CAAC,eAAe,EACpB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,yBAAyB,CAAC,CAAC;IACxC,CAAC;IAES,qBAAqB;QAC3B,IAAI,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE;YACtC,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;SACjE;IACL,CAAC;CACJ,CAAA;AAhDG;IADC,kBAAM,CAAC,oDAA2B,CAAC;8BACG,oDAA2B;sEAAC;AAEnE;IADC,kBAAM,CAAC,kCAAe,CAAC;;mEAC4B;AAEpD;IADC,kBAAM,CAAC,uBAAa,CAAC;8BACY,uBAAa;iEAAC;AAEhD;IADC,kBAAM,CAAC,sCAAiB,CAAC;8BACM,sCAAiB;+DAAC;AAElD;IADC,kBAAM,CAAC,uBAAa,CAAC;8BACY,uBAAa;iEAAC;AAEhD;IADC,kBAAM,CAAC,sBAAa,CAAC;8BACO,sBAAa;4DAAC;AAE3C;IADC,kBAAM,CAAC,qCAAoB,CAAC;8BACY,qCAAoB;wEAAC;AAE9D;IADC,kBAAM,CAAC,oCAAgB,CAAC;;oEAC6B;AAEtD;IADC,kBAAM,CAAC,0BAAW,CAAC;8BACY,0BAAW;+DAAC;AAE5C;IADC,kBAAM,CAAC,4CAAoB,CAAC;IAAE,iBAAK,CAAC,sCAAiB,CAAC;;6EAC+B;AApB7E,0BAA0B;IADtC,sBAAU,EAAE;GACA,0BAA0B,CAkDtC;AAlDY,gEAA0B"}
|
|
@@ -23,95 +23,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
23
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
24
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
25
|
};
|
|
26
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
30
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
31
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
32
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
|
-
function step(op) {
|
|
40
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
-
while (_) try {
|
|
42
|
-
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;
|
|
43
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
|
-
switch (op[0]) {
|
|
45
|
-
case 0: case 1: t = op; break;
|
|
46
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
47
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
48
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
49
|
-
default:
|
|
50
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
51
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
52
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
53
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
54
|
-
if (t[2]) _.ops.pop();
|
|
55
|
-
_.trys.pop(); continue;
|
|
56
|
-
}
|
|
57
|
-
op = body.call(thisArg, _);
|
|
58
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
59
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var __values = (this && this.__values) || function(o) {
|
|
63
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
64
|
-
if (m) return m.call(o);
|
|
65
|
-
if (o && typeof o.length === "number") return {
|
|
66
|
-
next: function () {
|
|
67
|
-
if (o && i >= o.length) o = void 0;
|
|
68
|
-
return { value: o && o[i++], done: !o };
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
72
|
-
};
|
|
73
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
74
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
75
|
-
if (!m) return o;
|
|
76
|
-
var i = m.call(o), r, ar = [], e;
|
|
77
|
-
try {
|
|
78
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
79
|
-
}
|
|
80
|
-
catch (error) { e = { error: error }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
84
|
-
}
|
|
85
|
-
finally { if (e) throw e.error; }
|
|
86
|
-
}
|
|
87
|
-
return ar;
|
|
88
|
-
};
|
|
89
|
-
var __spread = (this && this.__spread) || function () {
|
|
90
|
-
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
91
|
-
return ar;
|
|
92
|
-
};
|
|
93
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94
27
|
exports.DebugSessionManager = void 0;
|
|
95
28
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
29
|
+
const core_1 = require("@theia/core");
|
|
30
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
31
|
+
const context_key_service_1 = require("@theia/core/lib/browser/context-key-service");
|
|
32
|
+
const uri_1 = require("@theia/core/lib/common/uri");
|
|
33
|
+
const browser_2 = require("@theia/editor/lib/browser");
|
|
34
|
+
const quick_open_task_1 = require("@theia/task/lib/browser/quick-open-task");
|
|
35
|
+
const task_service_1 = require("@theia/task/lib/browser/task-service");
|
|
36
|
+
const browser_3 = require("@theia/variable-resolver/lib/browser");
|
|
37
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
38
|
+
const debug_service_1 = require("../common/debug-service");
|
|
39
|
+
const breakpoint_manager_1 = require("./breakpoint/breakpoint-manager");
|
|
40
|
+
const debug_configuration_manager_1 = require("./debug-configuration-manager");
|
|
41
|
+
const debug_session_1 = require("./debug-session");
|
|
42
|
+
const debug_session_contribution_1 = require("./debug-session-contribution");
|
|
43
|
+
const debug_session_options_1 = require("./debug-session-options");
|
|
44
|
+
const debug_source_breakpoint_1 = require("./model/debug-source-breakpoint");
|
|
45
|
+
const debug_function_breakpoint_1 = require("./model/debug-function-breakpoint");
|
|
46
|
+
let DebugSessionManager = class DebugSessionManager {
|
|
47
|
+
constructor() {
|
|
115
48
|
this._sessions = new Map();
|
|
116
49
|
this.onWillStartDebugSessionEmitter = new core_1.Emitter();
|
|
117
50
|
this.onWillStartDebugSession = this.onWillStartDebugSessionEmitter.event;
|
|
@@ -136,635 +69,418 @@ var DebugSessionManager = /** @class */ (function () {
|
|
|
136
69
|
this.configurationIds = new Map();
|
|
137
70
|
this.toDisposeOnCurrentSession = new core_1.DisposableCollection();
|
|
138
71
|
}
|
|
139
|
-
|
|
72
|
+
fireDidChangeBreakpoints(event) {
|
|
140
73
|
this.onDidChangeBreakpointsEmitter.fire(event);
|
|
141
|
-
}
|
|
142
|
-
|
|
74
|
+
}
|
|
75
|
+
fireDidChange(current) {
|
|
143
76
|
this.inDebugModeKey.set(this.inDebugMode);
|
|
144
77
|
this.onDidChangeEmitter.fire(current);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
var _this = this;
|
|
78
|
+
}
|
|
79
|
+
init() {
|
|
148
80
|
this.debugTypeKey = this.contextKeyService.createKey('debugType', undefined);
|
|
149
81
|
this.inDebugModeKey = this.contextKeyService.createKey('inDebugMode', this.inDebugMode);
|
|
150
|
-
this.breakpoints.onDidChangeMarkers(
|
|
151
|
-
this.labelProvider.onDidChange(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
var uri = new uri_1.default(uriString);
|
|
157
|
-
if (event.affects(uri)) {
|
|
158
|
-
_this.fireDidChangeBreakpoints({ uri: uri });
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
163
|
-
finally {
|
|
164
|
-
try {
|
|
165
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
82
|
+
this.breakpoints.onDidChangeMarkers(uri => this.fireDidChangeBreakpoints({ uri }));
|
|
83
|
+
this.labelProvider.onDidChange(event => {
|
|
84
|
+
for (const uriString of this.breakpoints.getUris()) {
|
|
85
|
+
const uri = new uri_1.default(uriString);
|
|
86
|
+
if (event.affects(uri)) {
|
|
87
|
+
this.fireDidChangeBreakpoints({ uri });
|
|
166
88
|
}
|
|
167
|
-
finally { if (e_1) throw e_1.error; }
|
|
168
89
|
}
|
|
169
90
|
});
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
enumerable: false,
|
|
176
|
-
configurable: true
|
|
177
|
-
});
|
|
178
|
-
DebugSessionManager.prototype.isCurrentEditorFrame = function (uri) {
|
|
91
|
+
}
|
|
92
|
+
get inDebugMode() {
|
|
93
|
+
return this.state > debug_session_1.DebugState.Inactive;
|
|
94
|
+
}
|
|
95
|
+
isCurrentEditorFrame(uri) {
|
|
179
96
|
var _a, _b;
|
|
180
97
|
return ((_b = (_a = this.currentFrame) === null || _a === void 0 ? void 0 : _a.source) === null || _b === void 0 ? void 0 : _b.uri.toString()) === (uri instanceof uri_1.default ? uri : new uri_1.default(uri)).toString();
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
console.error('saveAll failed:', error_1);
|
|
201
|
-
return [2 /*return*/, false];
|
|
202
|
-
case 4: return [2 /*return*/];
|
|
98
|
+
}
|
|
99
|
+
async saveAll() {
|
|
100
|
+
if (!this.shell.canSaveAll()) {
|
|
101
|
+
return true; // Nothing to save.
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
await this.shell.saveAll();
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
console.error('saveAll failed:', error);
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async start(options) {
|
|
113
|
+
return this.progressService.withProgress('Start...', 'debug', async () => {
|
|
114
|
+
try {
|
|
115
|
+
if (!await this.saveAll()) {
|
|
116
|
+
return undefined;
|
|
203
117
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
var resolved, taskRun, sessionId, e_2;
|
|
213
|
-
return __generator(this, function (_a) {
|
|
214
|
-
switch (_a.label) {
|
|
215
|
-
case 0:
|
|
216
|
-
_a.trys.push([0, 7, , 8]);
|
|
217
|
-
return [4 /*yield*/, this.saveAll()];
|
|
218
|
-
case 1:
|
|
219
|
-
if (!(_a.sent())) {
|
|
220
|
-
return [2 /*return*/, undefined];
|
|
221
|
-
}
|
|
222
|
-
return [4 /*yield*/, this.fireWillStartDebugSession()];
|
|
223
|
-
case 2:
|
|
224
|
-
_a.sent();
|
|
225
|
-
return [4 /*yield*/, this.resolveConfiguration(options)];
|
|
226
|
-
case 3:
|
|
227
|
-
resolved = _a.sent();
|
|
228
|
-
if (!!options.configuration.__restart) return [3 /*break*/, 5];
|
|
229
|
-
return [4 /*yield*/, this.runTask(options.workspaceFolderUri, resolved.configuration.preLaunchTask, true)];
|
|
230
|
-
case 4:
|
|
231
|
-
taskRun = _a.sent();
|
|
232
|
-
if (!taskRun) {
|
|
233
|
-
return [2 /*return*/, undefined];
|
|
234
|
-
}
|
|
235
|
-
_a.label = 5;
|
|
236
|
-
case 5: return [4 /*yield*/, this.debug.createDebugSession(resolved.configuration)];
|
|
237
|
-
case 6:
|
|
238
|
-
sessionId = _a.sent();
|
|
239
|
-
return [2 /*return*/, this.doStart(sessionId, resolved)];
|
|
240
|
-
case 7:
|
|
241
|
-
e_2 = _a.sent();
|
|
242
|
-
if (debug_service_1.DebugError.NotFound.is(e_2)) {
|
|
243
|
-
this.messageService.error("The debug session type \"" + e_2.data.type + "\" is not supported.");
|
|
244
|
-
return [2 /*return*/, undefined];
|
|
245
|
-
}
|
|
246
|
-
this.messageService.error('There was an error starting the debug session, check the logs for more details.');
|
|
247
|
-
console.error('Error starting the debug session', e_2);
|
|
248
|
-
throw e_2;
|
|
249
|
-
case 8: return [2 /*return*/];
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
}); })];
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
};
|
|
256
|
-
DebugSessionManager.prototype.fireWillStartDebugSession = function () {
|
|
257
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
258
|
-
return __generator(this, function (_a) {
|
|
259
|
-
switch (_a.label) {
|
|
260
|
-
case 0: return [4 /*yield*/, core_1.WaitUntilEvent.fire(this.onWillStartDebugSessionEmitter, {})];
|
|
261
|
-
case 1:
|
|
262
|
-
_a.sent();
|
|
263
|
-
return [2 /*return*/];
|
|
118
|
+
await this.fireWillStartDebugSession();
|
|
119
|
+
const resolved = await this.resolveConfiguration(options);
|
|
120
|
+
// preLaunchTask isn't run in case of auto restart as well as postDebugTask
|
|
121
|
+
if (!options.configuration.__restart) {
|
|
122
|
+
const taskRun = await this.runTask(options.workspaceFolderUri, resolved.configuration.preLaunchTask, true);
|
|
123
|
+
if (!taskRun) {
|
|
124
|
+
return undefined;
|
|
125
|
+
}
|
|
264
126
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
switch (_a.label) {
|
|
273
|
-
case 0:
|
|
274
|
-
if (debug_session_options_1.InternalDebugSessionOptions.is(options)) {
|
|
275
|
-
return [2 /*return*/, options];
|
|
276
|
-
}
|
|
277
|
-
workspaceFolderUri = options.workspaceFolderUri;
|
|
278
|
-
return [4 /*yield*/, this.resolveDebugConfiguration(options.configuration, workspaceFolderUri)];
|
|
279
|
-
case 1:
|
|
280
|
-
configuration = _a.sent();
|
|
281
|
-
return [4 /*yield*/, this.variableResolver.resolve(configuration, {
|
|
282
|
-
context: options.workspaceFolderUri ? new uri_1.default(options.workspaceFolderUri) : undefined,
|
|
283
|
-
configurationSection: 'launch'
|
|
284
|
-
})];
|
|
285
|
-
case 2:
|
|
286
|
-
configuration = _a.sent();
|
|
287
|
-
return [4 /*yield*/, this.resolveDebugConfigurationWithSubstitutedVariables(configuration, workspaceFolderUri)];
|
|
288
|
-
case 3:
|
|
289
|
-
configuration = _a.sent();
|
|
290
|
-
key = configuration.name + workspaceFolderUri;
|
|
291
|
-
id = this.configurationIds.has(key) ? this.configurationIds.get(key) + 1 : 0;
|
|
292
|
-
this.configurationIds.set(key, id);
|
|
293
|
-
return [2 /*return*/, {
|
|
294
|
-
id: id,
|
|
295
|
-
configuration: configuration,
|
|
296
|
-
workspaceFolderUri: workspaceFolderUri
|
|
297
|
-
}];
|
|
127
|
+
const sessionId = await this.debug.createDebugSession(resolved.configuration);
|
|
128
|
+
return this.doStart(sessionId, resolved);
|
|
129
|
+
}
|
|
130
|
+
catch (e) {
|
|
131
|
+
if (debug_service_1.DebugError.NotFound.is(e)) {
|
|
132
|
+
this.messageService.error(`The debug session type "${e.data.type}" is not supported.`);
|
|
133
|
+
return undefined;
|
|
298
134
|
}
|
|
299
|
-
|
|
135
|
+
this.messageService.error('There was an error starting the debug session, check the logs for more details.');
|
|
136
|
+
console.error('Error starting the debug session', e);
|
|
137
|
+
throw e;
|
|
138
|
+
}
|
|
300
139
|
});
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
140
|
+
}
|
|
141
|
+
async fireWillStartDebugSession() {
|
|
142
|
+
await core_1.WaitUntilEvent.fire(this.onWillStartDebugSessionEmitter, {});
|
|
143
|
+
}
|
|
144
|
+
async resolveConfiguration(options) {
|
|
145
|
+
if (debug_session_options_1.InternalDebugSessionOptions.is(options)) {
|
|
146
|
+
return options;
|
|
147
|
+
}
|
|
148
|
+
const { workspaceFolderUri } = options;
|
|
149
|
+
let configuration = await this.resolveDebugConfiguration(options.configuration, workspaceFolderUri);
|
|
150
|
+
configuration = await this.variableResolver.resolve(configuration, {
|
|
151
|
+
context: options.workspaceFolderUri ? new uri_1.default(options.workspaceFolderUri) : undefined,
|
|
152
|
+
configurationSection: 'launch'
|
|
312
153
|
});
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
154
|
+
configuration = await this.resolveDebugConfigurationWithSubstitutedVariables(configuration, workspaceFolderUri);
|
|
155
|
+
const key = configuration.name + workspaceFolderUri;
|
|
156
|
+
const id = this.configurationIds.has(key) ? this.configurationIds.get(key) + 1 : 0;
|
|
157
|
+
this.configurationIds.set(key, id);
|
|
158
|
+
return {
|
|
159
|
+
id,
|
|
160
|
+
configuration,
|
|
161
|
+
workspaceFolderUri
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
async resolveDebugConfiguration(configuration, workspaceFolderUri) {
|
|
165
|
+
await this.fireWillResolveDebugConfiguration(configuration.type);
|
|
166
|
+
return this.debug.resolveDebugConfiguration(configuration, workspaceFolderUri);
|
|
167
|
+
}
|
|
168
|
+
async fireWillResolveDebugConfiguration(debugType) {
|
|
169
|
+
await core_1.WaitUntilEvent.fire(this.onWillResolveDebugConfigurationEmitter, { debugType });
|
|
170
|
+
}
|
|
171
|
+
async resolveDebugConfigurationWithSubstitutedVariables(configuration, workspaceFolderUri) {
|
|
172
|
+
return this.debug.resolveDebugConfigurationWithSubstitutedVariables(configuration, workspaceFolderUri);
|
|
173
|
+
}
|
|
174
|
+
async doStart(sessionId, options) {
|
|
175
|
+
const parentSession = options.configuration.parentSession && this._sessions.get(options.configuration.parentSession.id);
|
|
176
|
+
const contrib = this.sessionContributionRegistry.get(options.configuration.type);
|
|
177
|
+
const sessionFactory = contrib ? contrib.debugSessionFactory() : this.debugSessionFactory;
|
|
178
|
+
const session = sessionFactory.get(sessionId, options, parentSession);
|
|
179
|
+
this._sessions.set(sessionId, session);
|
|
180
|
+
this.debugTypeKey.set(session.configuration.type);
|
|
181
|
+
this.onDidCreateDebugSessionEmitter.fire(session);
|
|
182
|
+
let state = debug_session_1.DebugState.Inactive;
|
|
183
|
+
session.onDidChange(() => {
|
|
184
|
+
if (state !== session.state) {
|
|
185
|
+
state = session.state;
|
|
186
|
+
if (state === debug_session_1.DebugState.Stopped) {
|
|
187
|
+
this.onDidStopDebugSessionEmitter.fire(session);
|
|
322
188
|
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
};
|
|
326
|
-
DebugSessionManager.prototype.resolveDebugConfigurationWithSubstitutedVariables = function (configuration, workspaceFolderUri) {
|
|
327
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
328
|
-
return __generator(this, function (_a) {
|
|
329
|
-
return [2 /*return*/, this.debug.resolveDebugConfigurationWithSubstitutedVariables(configuration, workspaceFolderUri)];
|
|
330
|
-
});
|
|
331
|
-
});
|
|
332
|
-
};
|
|
333
|
-
DebugSessionManager.prototype.doStart = function (sessionId, options) {
|
|
334
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
335
|
-
var parentSession, contrib, sessionFactory, session, state;
|
|
336
|
-
var _this = this;
|
|
337
|
-
return __generator(this, function (_a) {
|
|
338
|
-
parentSession = options.configuration.parentSession && this._sessions.get(options.configuration.parentSession.id);
|
|
339
|
-
contrib = this.sessionContributionRegistry.get(options.configuration.type);
|
|
340
|
-
sessionFactory = contrib ? contrib.debugSessionFactory() : this.debugSessionFactory;
|
|
341
|
-
session = sessionFactory.get(sessionId, options, parentSession);
|
|
342
|
-
this._sessions.set(sessionId, session);
|
|
343
|
-
this.debugTypeKey.set(session.configuration.type);
|
|
344
|
-
this.onDidCreateDebugSessionEmitter.fire(session);
|
|
345
|
-
state = debug_session_1.DebugState.Inactive;
|
|
346
|
-
session.onDidChange(function () {
|
|
347
|
-
if (state !== session.state) {
|
|
348
|
-
state = session.state;
|
|
349
|
-
if (state === debug_session_1.DebugState.Stopped) {
|
|
350
|
-
_this.onDidStopDebugSessionEmitter.fire(session);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
_this.updateCurrentSession(session);
|
|
354
|
-
});
|
|
355
|
-
session.onDidChangeBreakpoints(function (uri) { return _this.fireDidChangeBreakpoints({ session: session, uri: uri }); });
|
|
356
|
-
session.on('terminated', function (event) { return __awaiter(_this, void 0, void 0, function () {
|
|
357
|
-
var restart;
|
|
358
|
-
return __generator(this, function (_a) {
|
|
359
|
-
switch (_a.label) {
|
|
360
|
-
case 0:
|
|
361
|
-
restart = event.body && event.body.restart;
|
|
362
|
-
if (!restart) return [3 /*break*/, 1];
|
|
363
|
-
// postDebugTask isn't run in case of auto restart as well as preLaunchTask
|
|
364
|
-
this.doRestart(session, restart);
|
|
365
|
-
return [3 /*break*/, 3];
|
|
366
|
-
case 1:
|
|
367
|
-
session.terminate();
|
|
368
|
-
return [4 /*yield*/, this.runTask(session.options.workspaceFolderUri, session.configuration.postDebugTask)];
|
|
369
|
-
case 2:
|
|
370
|
-
_a.sent();
|
|
371
|
-
_a.label = 3;
|
|
372
|
-
case 3: return [2 /*return*/];
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
}); });
|
|
376
|
-
session.on('exited', function () { return _this.destroy(session.id); });
|
|
377
|
-
session.start().then(function () { return _this.onDidStartDebugSessionEmitter.fire(session); });
|
|
378
|
-
session.onDidCustomEvent(function (_a) {
|
|
379
|
-
var event = _a.event, body = _a.body;
|
|
380
|
-
return _this.onDidReceiveDebugSessionCustomEventEmitter.fire({ event: event, body: body, session: session });
|
|
381
|
-
});
|
|
382
|
-
return [2 /*return*/, session];
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
DebugSessionManager.prototype.restart = function (session) {
|
|
387
|
-
if (session === void 0) { session = this.currentSession; }
|
|
388
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
389
|
-
return __generator(this, function (_a) {
|
|
390
|
-
return [2 /*return*/, session && this.doRestart(session)];
|
|
391
|
-
});
|
|
189
|
+
}
|
|
190
|
+
this.updateCurrentSession(session);
|
|
392
191
|
});
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
return [4 /*yield*/, session.terminate(true)];
|
|
405
|
-
case 2:
|
|
406
|
-
_a.sent();
|
|
407
|
-
options = session.options, configuration = session.configuration;
|
|
408
|
-
configuration.__restart = restart;
|
|
409
|
-
return [2 /*return*/, this.start(options)];
|
|
410
|
-
}
|
|
411
|
-
});
|
|
192
|
+
session.onDidChangeBreakpoints(uri => this.fireDidChangeBreakpoints({ session, uri }));
|
|
193
|
+
session.on('terminated', async (event) => {
|
|
194
|
+
const restart = event.body && event.body.restart;
|
|
195
|
+
if (restart) {
|
|
196
|
+
// postDebugTask isn't run in case of auto restart as well as preLaunchTask
|
|
197
|
+
this.doRestart(session, restart);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
session.terminate();
|
|
201
|
+
await this.runTask(session.options.workspaceFolderUri, session.configuration.postDebugTask);
|
|
202
|
+
}
|
|
412
203
|
});
|
|
413
|
-
|
|
414
|
-
|
|
204
|
+
session.on('exited', () => this.destroy(session.id));
|
|
205
|
+
session.start().then(() => this.onDidStartDebugSessionEmitter.fire(session));
|
|
206
|
+
session.onDidCustomEvent(({ event, body }) => this.onDidReceiveDebugSessionCustomEventEmitter.fire({ event, body, session }));
|
|
207
|
+
return session;
|
|
208
|
+
}
|
|
209
|
+
async restart(session = this.currentSession) {
|
|
210
|
+
return session && this.doRestart(session);
|
|
211
|
+
}
|
|
212
|
+
async doRestart(session, restart) {
|
|
213
|
+
if (await session.restart()) {
|
|
214
|
+
return session;
|
|
215
|
+
}
|
|
216
|
+
await session.terminate(true);
|
|
217
|
+
const { options, configuration } = session;
|
|
218
|
+
configuration.__restart = restart;
|
|
219
|
+
return this.start(options);
|
|
220
|
+
}
|
|
221
|
+
async terminateSessions() {
|
|
415
222
|
var _a;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
return [2 /*return*/];
|
|
421
|
-
});
|
|
422
|
-
});
|
|
423
|
-
};
|
|
424
|
-
DebugSessionManager.prototype.restartSessions = function () {
|
|
223
|
+
this.updateCurrentSession(undefined);
|
|
224
|
+
(_a = this.currentSession) === null || _a === void 0 ? void 0 : _a.terminate();
|
|
225
|
+
}
|
|
226
|
+
async restartSessions() {
|
|
425
227
|
var _a;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
return [2 /*return*/];
|
|
431
|
-
});
|
|
432
|
-
});
|
|
433
|
-
};
|
|
434
|
-
DebugSessionManager.prototype.remove = function (sessionId) {
|
|
228
|
+
this.updateCurrentSession(undefined);
|
|
229
|
+
(_a = this.currentSession) === null || _a === void 0 ? void 0 : _a.restart();
|
|
230
|
+
}
|
|
231
|
+
remove(sessionId) {
|
|
435
232
|
this._sessions.delete(sessionId);
|
|
436
|
-
|
|
233
|
+
const { currentSession } = this;
|
|
437
234
|
if (currentSession && currentSession.id === sessionId) {
|
|
438
235
|
this.updateCurrentSession(undefined);
|
|
439
236
|
}
|
|
440
|
-
}
|
|
441
|
-
|
|
237
|
+
}
|
|
238
|
+
getSession(sessionId) {
|
|
442
239
|
return this._sessions.get(sessionId);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
this.updateBreakpoints(previous, current);
|
|
473
|
-
this.open();
|
|
474
|
-
this.fireDidChange(current);
|
|
475
|
-
},
|
|
476
|
-
enumerable: false,
|
|
477
|
-
configurable: true
|
|
478
|
-
});
|
|
479
|
-
DebugSessionManager.prototype.open = function () {
|
|
480
|
-
var currentFrame = this.currentFrame;
|
|
240
|
+
}
|
|
241
|
+
get sessions() {
|
|
242
|
+
return Array.from(this._sessions.values()).filter(session => session.state > debug_session_1.DebugState.Inactive);
|
|
243
|
+
}
|
|
244
|
+
get currentSession() {
|
|
245
|
+
return this._currentSession;
|
|
246
|
+
}
|
|
247
|
+
set currentSession(current) {
|
|
248
|
+
if (this._currentSession === current) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
this.toDisposeOnCurrentSession.dispose();
|
|
252
|
+
const previous = this.currentSession;
|
|
253
|
+
this._currentSession = current;
|
|
254
|
+
this.onDidChangeActiveDebugSessionEmitter.fire({ previous, current });
|
|
255
|
+
if (current) {
|
|
256
|
+
this.toDisposeOnCurrentSession.push(current.onDidChange(() => {
|
|
257
|
+
if (this.currentFrame === this.topFrame) {
|
|
258
|
+
this.open();
|
|
259
|
+
}
|
|
260
|
+
this.fireDidChange(current);
|
|
261
|
+
}));
|
|
262
|
+
}
|
|
263
|
+
this.updateBreakpoints(previous, current);
|
|
264
|
+
this.open();
|
|
265
|
+
this.fireDidChange(current);
|
|
266
|
+
}
|
|
267
|
+
open() {
|
|
268
|
+
const { currentFrame } = this;
|
|
481
269
|
if (currentFrame) {
|
|
482
270
|
currentFrame.open();
|
|
483
271
|
}
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
affectedUri.add(uriString);
|
|
497
|
-
this.fireDidChangeBreakpoints({
|
|
498
|
-
session: current,
|
|
499
|
-
uri: new uri_1.default(uriString)
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
505
|
-
finally {
|
|
506
|
-
try {
|
|
507
|
-
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
|
508
|
-
}
|
|
509
|
-
finally { if (e_4) throw e_4.error; }
|
|
272
|
+
}
|
|
273
|
+
updateBreakpoints(previous, current) {
|
|
274
|
+
const affectedUri = new Set();
|
|
275
|
+
for (const session of [previous, current]) {
|
|
276
|
+
if (session) {
|
|
277
|
+
for (const uriString of session.breakpointUris) {
|
|
278
|
+
if (!affectedUri.has(uriString)) {
|
|
279
|
+
affectedUri.add(uriString);
|
|
280
|
+
this.fireDidChangeBreakpoints({
|
|
281
|
+
session: current,
|
|
282
|
+
uri: new uri_1.default(uriString)
|
|
283
|
+
});
|
|
510
284
|
}
|
|
511
285
|
}
|
|
512
286
|
}
|
|
513
287
|
}
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
try {
|
|
517
|
-
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
518
|
-
}
|
|
519
|
-
finally { if (e_3) throw e_3.error; }
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
DebugSessionManager.prototype.updateCurrentSession = function (session) {
|
|
288
|
+
}
|
|
289
|
+
updateCurrentSession(session) {
|
|
523
290
|
this.currentSession = session || this.sessions[0];
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}
|
|
541
|
-
Object.defineProperty(DebugSessionManager.prototype, "currentFrame", {
|
|
542
|
-
get: function () {
|
|
543
|
-
var currentThread = this.currentThread;
|
|
544
|
-
return currentThread && currentThread.currentFrame;
|
|
545
|
-
},
|
|
546
|
-
enumerable: false,
|
|
547
|
-
configurable: true
|
|
548
|
-
});
|
|
549
|
-
Object.defineProperty(DebugSessionManager.prototype, "topFrame", {
|
|
550
|
-
get: function () {
|
|
551
|
-
var currentThread = this.currentThread;
|
|
552
|
-
return currentThread && currentThread.topFrame;
|
|
553
|
-
},
|
|
554
|
-
enumerable: false,
|
|
555
|
-
configurable: true
|
|
556
|
-
});
|
|
291
|
+
}
|
|
292
|
+
get currentThread() {
|
|
293
|
+
const session = this.currentSession;
|
|
294
|
+
return session && session.currentThread;
|
|
295
|
+
}
|
|
296
|
+
get state() {
|
|
297
|
+
const session = this.currentSession;
|
|
298
|
+
return session ? session.state : debug_session_1.DebugState.Inactive;
|
|
299
|
+
}
|
|
300
|
+
get currentFrame() {
|
|
301
|
+
const { currentThread } = this;
|
|
302
|
+
return currentThread && currentThread.currentFrame;
|
|
303
|
+
}
|
|
304
|
+
get topFrame() {
|
|
305
|
+
const { currentThread } = this;
|
|
306
|
+
return currentThread && currentThread.topFrame;
|
|
307
|
+
}
|
|
557
308
|
/**
|
|
558
309
|
* Destroy the debug session. If session identifier isn't provided then
|
|
559
310
|
* all active debug session will be destroyed.
|
|
560
311
|
* @param sessionId The session identifier
|
|
561
312
|
*/
|
|
562
|
-
|
|
563
|
-
var _this = this;
|
|
313
|
+
destroy(sessionId) {
|
|
564
314
|
if (sessionId) {
|
|
565
|
-
|
|
315
|
+
const session = this._sessions.get(sessionId);
|
|
566
316
|
if (session) {
|
|
567
317
|
this.doDestroy(session);
|
|
568
318
|
}
|
|
569
319
|
}
|
|
570
320
|
else {
|
|
571
|
-
this._sessions.forEach(
|
|
321
|
+
this._sessions.forEach(session => this.doDestroy(session));
|
|
572
322
|
}
|
|
573
|
-
}
|
|
574
|
-
|
|
323
|
+
}
|
|
324
|
+
doDestroy(session) {
|
|
575
325
|
this.debug.terminateDebugSession(session.id);
|
|
576
326
|
session.dispose();
|
|
577
327
|
this.remove(session.id);
|
|
578
328
|
this.onDidDestroyDebugSessionEmitter.fire(session);
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (session === void 0) { session = this.currentSession; }
|
|
329
|
+
}
|
|
330
|
+
getFunctionBreakpoints(session = this.currentSession) {
|
|
582
331
|
if (session && session.state > debug_session_1.DebugState.Initializing) {
|
|
583
332
|
return session.getFunctionBreakpoints();
|
|
584
333
|
}
|
|
585
|
-
|
|
586
|
-
return this.breakpoints.getFunctionBreakpoints().map(
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
334
|
+
const { labelProvider, breakpoints, editorManager } = this;
|
|
335
|
+
return this.breakpoints.getFunctionBreakpoints().map(origin => new debug_function_breakpoint_1.DebugFunctionBreakpoint(origin, { labelProvider, breakpoints, editorManager }));
|
|
336
|
+
}
|
|
337
|
+
getBreakpoints(arg, arg2) {
|
|
338
|
+
const uri = arg instanceof uri_1.default ? arg : undefined;
|
|
339
|
+
const session = arg instanceof debug_session_1.DebugSession ? arg : arg2 instanceof debug_session_1.DebugSession ? arg2 : this.currentSession;
|
|
591
340
|
if (session && session.state > debug_session_1.DebugState.Initializing) {
|
|
592
341
|
return session.getSourceBreakpoints(uri);
|
|
593
342
|
}
|
|
594
|
-
|
|
595
|
-
return this.breakpoints.findMarkers({ uri
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
};
|
|
600
|
-
DebugSessionManager.prototype.getLineBreakpoints = function (uri, line) {
|
|
601
|
-
var session = this.currentSession;
|
|
343
|
+
const { labelProvider, breakpoints, editorManager } = this;
|
|
344
|
+
return this.breakpoints.findMarkers({ uri }).map(({ data }) => new debug_source_breakpoint_1.DebugSourceBreakpoint(data, { labelProvider, breakpoints, editorManager }));
|
|
345
|
+
}
|
|
346
|
+
getLineBreakpoints(uri, line) {
|
|
347
|
+
const session = this.currentSession;
|
|
602
348
|
if (session && session.state > debug_session_1.DebugState.Initializing) {
|
|
603
|
-
return session.getSourceBreakpoints(uri).filter(
|
|
349
|
+
return session.getSourceBreakpoints(uri).filter(breakpoint => breakpoint.line === line);
|
|
604
350
|
}
|
|
605
|
-
|
|
606
|
-
return this.breakpoints.getLineBreakpoints(uri, line).map(
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
DebugSessionManager.prototype.getInlineBreakpoint = function (uri, line, column) {
|
|
611
|
-
var session = this.currentSession;
|
|
351
|
+
const { labelProvider, breakpoints, editorManager } = this;
|
|
352
|
+
return this.breakpoints.getLineBreakpoints(uri, line).map(origin => new debug_source_breakpoint_1.DebugSourceBreakpoint(origin, { labelProvider, breakpoints, editorManager }));
|
|
353
|
+
}
|
|
354
|
+
getInlineBreakpoint(uri, line, column) {
|
|
355
|
+
const session = this.currentSession;
|
|
612
356
|
if (session && session.state > debug_session_1.DebugState.Initializing) {
|
|
613
|
-
return session.getSourceBreakpoints(uri).filter(
|
|
357
|
+
return session.getSourceBreakpoints(uri).filter(breakpoint => breakpoint.line === line && breakpoint.column === column)[0];
|
|
614
358
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
return origin && new debug_source_breakpoint_1.DebugSourceBreakpoint(origin, { labelProvider
|
|
618
|
-
}
|
|
359
|
+
const origin = this.breakpoints.getInlineBreakpoint(uri, line, column);
|
|
360
|
+
const { labelProvider, breakpoints, editorManager } = this;
|
|
361
|
+
return origin && new debug_source_breakpoint_1.DebugSourceBreakpoint(origin, { labelProvider, breakpoints, editorManager });
|
|
362
|
+
}
|
|
619
363
|
/**
|
|
620
364
|
* Runs the given tasks.
|
|
621
365
|
* @param taskName the task name to run, see [TaskNameResolver](#TaskNameResolver)
|
|
622
366
|
* @return true if it allowed to continue debugging otherwise it returns false
|
|
623
367
|
*/
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
], DebugSessionManager.prototype, "contextKeyService", void 0);
|
|
742
|
-
__decorate([
|
|
743
|
-
inversify_1.inject(task_service_1.TaskService),
|
|
744
|
-
__metadata("design:type", task_service_1.TaskService)
|
|
745
|
-
], DebugSessionManager.prototype, "taskService", void 0);
|
|
746
|
-
__decorate([
|
|
747
|
-
inversify_1.inject(debug_configuration_manager_1.DebugConfigurationManager),
|
|
748
|
-
__metadata("design:type", debug_configuration_manager_1.DebugConfigurationManager)
|
|
749
|
-
], DebugSessionManager.prototype, "debugConfigurationManager", void 0);
|
|
750
|
-
__decorate([
|
|
751
|
-
inversify_1.inject(quick_open_task_1.QuickOpenTask),
|
|
752
|
-
__metadata("design:type", quick_open_task_1.QuickOpenTask)
|
|
753
|
-
], DebugSessionManager.prototype, "quickOpenTask", void 0);
|
|
754
|
-
__decorate([
|
|
755
|
-
inversify_1.inject(browser_1.ApplicationShell),
|
|
756
|
-
__metadata("design:type", browser_1.ApplicationShell)
|
|
757
|
-
], DebugSessionManager.prototype, "shell", void 0);
|
|
758
|
-
__decorate([
|
|
759
|
-
inversify_1.postConstruct(),
|
|
760
|
-
__metadata("design:type", Function),
|
|
761
|
-
__metadata("design:paramtypes", []),
|
|
762
|
-
__metadata("design:returntype", void 0)
|
|
763
|
-
], DebugSessionManager.prototype, "init", null);
|
|
764
|
-
DebugSessionManager = __decorate([
|
|
765
|
-
inversify_1.injectable()
|
|
766
|
-
], DebugSessionManager);
|
|
767
|
-
return DebugSessionManager;
|
|
768
|
-
}());
|
|
368
|
+
async runTask(workspaceFolderUri, taskName, checkErrors) {
|
|
369
|
+
if (!taskName) {
|
|
370
|
+
return true;
|
|
371
|
+
}
|
|
372
|
+
const taskInfo = await this.taskService.runWorkspaceTask(this.taskService.startUserAction(), workspaceFolderUri, taskName);
|
|
373
|
+
if (!checkErrors) {
|
|
374
|
+
return true;
|
|
375
|
+
}
|
|
376
|
+
if (!taskInfo) {
|
|
377
|
+
return this.doPostTaskAction(`Could not run the task '${taskName}'.`);
|
|
378
|
+
}
|
|
379
|
+
const getExitCodePromise = this.taskService.getExitCode(taskInfo.taskId).then(result => ({ taskEndedType: task_service_1.TaskEndedTypes.TaskExited, value: result }));
|
|
380
|
+
const isBackgroundTaskEndedPromise = this.taskService.isBackgroundTaskEnded(taskInfo.taskId).then(result => ({ taskEndedType: task_service_1.TaskEndedTypes.BackgroundTaskEnded, value: result }));
|
|
381
|
+
// After start running the task, we wait for the task process to exit and if it is a background task, we also wait for a feedback
|
|
382
|
+
// that a background task is active, as soon as one of the promises fulfills, we can continue and analyze the results.
|
|
383
|
+
const taskEndedInfo = await Promise.race([getExitCodePromise, isBackgroundTaskEndedPromise]);
|
|
384
|
+
if (taskEndedInfo.taskEndedType === task_service_1.TaskEndedTypes.BackgroundTaskEnded && taskEndedInfo.value) {
|
|
385
|
+
return true;
|
|
386
|
+
}
|
|
387
|
+
if (taskEndedInfo.taskEndedType === task_service_1.TaskEndedTypes.TaskExited && taskEndedInfo.value === 0) {
|
|
388
|
+
return true;
|
|
389
|
+
}
|
|
390
|
+
else if (taskEndedInfo.taskEndedType === task_service_1.TaskEndedTypes.TaskExited && taskEndedInfo.value !== undefined) {
|
|
391
|
+
return this.doPostTaskAction(`Task '${taskName}' terminated with exit code ${taskEndedInfo.value}.`);
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
const signal = await this.taskService.getTerminateSignal(taskInfo.taskId);
|
|
395
|
+
if (signal !== undefined) {
|
|
396
|
+
return this.doPostTaskAction(`Task '${taskName}' terminated by signal ${signal}.`);
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
return this.doPostTaskAction(`Task '${taskName}' terminated for unknown reason.`);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
async doPostTaskAction(errorMessage) {
|
|
404
|
+
const actions = ['Open launch.json', 'Cancel', 'Configure Task', 'Debug Anyway'];
|
|
405
|
+
const result = await this.messageService.error(errorMessage, ...actions);
|
|
406
|
+
switch (result) {
|
|
407
|
+
case actions[0]: // open launch.json
|
|
408
|
+
this.debugConfigurationManager.openConfiguration();
|
|
409
|
+
return false;
|
|
410
|
+
case actions[1]: // cancel
|
|
411
|
+
return false;
|
|
412
|
+
case actions[2]: // configure tasks
|
|
413
|
+
this.quickOpenTask.configure();
|
|
414
|
+
return false;
|
|
415
|
+
default: // continue debugging
|
|
416
|
+
return true;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
__decorate([
|
|
421
|
+
inversify_1.inject(debug_session_contribution_1.DebugSessionFactory),
|
|
422
|
+
__metadata("design:type", Object)
|
|
423
|
+
], DebugSessionManager.prototype, "debugSessionFactory", void 0);
|
|
424
|
+
__decorate([
|
|
425
|
+
inversify_1.inject(debug_service_1.DebugService),
|
|
426
|
+
__metadata("design:type", Object)
|
|
427
|
+
], DebugSessionManager.prototype, "debug", void 0);
|
|
428
|
+
__decorate([
|
|
429
|
+
inversify_1.inject(browser_1.LabelProvider),
|
|
430
|
+
__metadata("design:type", browser_1.LabelProvider)
|
|
431
|
+
], DebugSessionManager.prototype, "labelProvider", void 0);
|
|
432
|
+
__decorate([
|
|
433
|
+
inversify_1.inject(browser_2.EditorManager),
|
|
434
|
+
__metadata("design:type", browser_2.EditorManager)
|
|
435
|
+
], DebugSessionManager.prototype, "editorManager", void 0);
|
|
436
|
+
__decorate([
|
|
437
|
+
inversify_1.inject(breakpoint_manager_1.BreakpointManager),
|
|
438
|
+
__metadata("design:type", breakpoint_manager_1.BreakpointManager)
|
|
439
|
+
], DebugSessionManager.prototype, "breakpoints", void 0);
|
|
440
|
+
__decorate([
|
|
441
|
+
inversify_1.inject(browser_3.VariableResolverService),
|
|
442
|
+
__metadata("design:type", browser_3.VariableResolverService)
|
|
443
|
+
], DebugSessionManager.prototype, "variableResolver", void 0);
|
|
444
|
+
__decorate([
|
|
445
|
+
inversify_1.inject(debug_session_contribution_1.DebugSessionContributionRegistry),
|
|
446
|
+
__metadata("design:type", Object)
|
|
447
|
+
], DebugSessionManager.prototype, "sessionContributionRegistry", void 0);
|
|
448
|
+
__decorate([
|
|
449
|
+
inversify_1.inject(core_1.MessageService),
|
|
450
|
+
__metadata("design:type", core_1.MessageService)
|
|
451
|
+
], DebugSessionManager.prototype, "messageService", void 0);
|
|
452
|
+
__decorate([
|
|
453
|
+
inversify_1.inject(core_1.ProgressService),
|
|
454
|
+
__metadata("design:type", core_1.ProgressService)
|
|
455
|
+
], DebugSessionManager.prototype, "progressService", void 0);
|
|
456
|
+
__decorate([
|
|
457
|
+
inversify_1.inject(context_key_service_1.ContextKeyService),
|
|
458
|
+
__metadata("design:type", context_key_service_1.ContextKeyService)
|
|
459
|
+
], DebugSessionManager.prototype, "contextKeyService", void 0);
|
|
460
|
+
__decorate([
|
|
461
|
+
inversify_1.inject(task_service_1.TaskService),
|
|
462
|
+
__metadata("design:type", task_service_1.TaskService)
|
|
463
|
+
], DebugSessionManager.prototype, "taskService", void 0);
|
|
464
|
+
__decorate([
|
|
465
|
+
inversify_1.inject(debug_configuration_manager_1.DebugConfigurationManager),
|
|
466
|
+
__metadata("design:type", debug_configuration_manager_1.DebugConfigurationManager)
|
|
467
|
+
], DebugSessionManager.prototype, "debugConfigurationManager", void 0);
|
|
468
|
+
__decorate([
|
|
469
|
+
inversify_1.inject(quick_open_task_1.QuickOpenTask),
|
|
470
|
+
__metadata("design:type", quick_open_task_1.QuickOpenTask)
|
|
471
|
+
], DebugSessionManager.prototype, "quickOpenTask", void 0);
|
|
472
|
+
__decorate([
|
|
473
|
+
inversify_1.inject(browser_1.ApplicationShell),
|
|
474
|
+
__metadata("design:type", browser_1.ApplicationShell)
|
|
475
|
+
], DebugSessionManager.prototype, "shell", void 0);
|
|
476
|
+
__decorate([
|
|
477
|
+
inversify_1.postConstruct(),
|
|
478
|
+
__metadata("design:type", Function),
|
|
479
|
+
__metadata("design:paramtypes", []),
|
|
480
|
+
__metadata("design:returntype", void 0)
|
|
481
|
+
], DebugSessionManager.prototype, "init", null);
|
|
482
|
+
DebugSessionManager = __decorate([
|
|
483
|
+
inversify_1.injectable()
|
|
484
|
+
], DebugSessionManager);
|
|
769
485
|
exports.DebugSessionManager = DebugSessionManager;
|
|
770
486
|
//# sourceMappingURL=debug-session-manager.js.map
|