@theia/debug 1.17.0-next.ff9e0507 → 1.18.0-next.04e2816d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-hover-widget.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-hover-widget.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-hover-widget.js","sourceRoot":"","sources":["../../../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ChC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACzB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,aAAG,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;CAEJ,CAAA;AAzKU,mBAAE,GAAG,oBAAoB,CAAC;AAbjC;IADC,kBAAM,CAAC,0BAAW,CAAC;;gDACmB;AAGvC;IADC,kBAAM,CAAC,2CAAmB,CAAC;8BACC,2CAAmB;kDAAC;AAGjD;IADC,kBAAM,CAAC,qCAAgB,CAAC;8BACO,qCAAgB;qDAAC;AAGjD;IADC,kBAAM,CAAC,mDAAuB,CAAC;8BACO,mDAAuB;4DAAC;AAiB/D;IADC,yBAAa,EAAE;;;;4CAqBf;AAnDQ,gBAAgB;IAD5B,sBAAU,EAAE;GACA,gBAAgB,CA2L5B;AA3LY,4CAAgB"}
|
|
@@ -23,53 +23,6 @@ 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
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
27
|
exports.DebugInlineValueDecorator = exports.INLINE_VALUE_DECORATION_KEY = void 0;
|
|
75
28
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -77,16 +30,16 @@ exports.DebugInlineValueDecorator = exports.INLINE_VALUE_DECORATION_KEY = void 0
|
|
|
77
30
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
78
31
|
*--------------------------------------------------------------------------------------------*/
|
|
79
32
|
// Based on https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
33
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
34
|
+
const monaco_editor_service_1 = require("@theia/monaco/lib/browser/monaco-editor-service");
|
|
35
|
+
const debug_console_items_1 = require("../console/debug-console-items");
|
|
36
|
+
const debug_preferences_1 = require("../debug-preferences");
|
|
84
37
|
// https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts#L40-L43
|
|
85
38
|
exports.INLINE_VALUE_DECORATION_KEY = 'inlinevaluedecoration';
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
39
|
+
const MAX_NUM_INLINE_VALUES = 100; // JS Global scope can have 700+ entries. We want to limit ourselves for perf reasons
|
|
40
|
+
const MAX_INLINE_DECORATOR_LENGTH = 150; // Max string length of each inline decorator when debugging. If exceeded ... is added
|
|
41
|
+
const MAX_TOKENIZATION_LINE_LEN = 500; // If line is too long, then inline values for the line are skipped
|
|
42
|
+
const { DEFAULT_WORD_REGEXP } = monaco.wordHelper;
|
|
90
43
|
/**
|
|
91
44
|
* MAX SMI (SMall Integer) as defined in v8.
|
|
92
45
|
* one bit is lost for boxing/unboxing flag.
|
|
@@ -94,142 +47,93 @@ var DEFAULT_WORD_REGEXP = monaco.wordHelper.DEFAULT_WORD_REGEXP;
|
|
|
94
47
|
* See https://thibaultlaurens.github.io/javascript/2013/04/29/how-the-v8-engine-works/#tagged-values
|
|
95
48
|
*/
|
|
96
49
|
// https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/base/common/uint.ts#L7-L13
|
|
97
|
-
|
|
50
|
+
const MAX_SAFE_SMALL_INTEGER = 1 << 30;
|
|
98
51
|
;
|
|
99
|
-
|
|
100
|
-
|
|
52
|
+
let DebugInlineValueDecorator = class DebugInlineValueDecorator {
|
|
53
|
+
constructor() {
|
|
101
54
|
this.enabled = false;
|
|
102
55
|
this.wordToLineNumbersMap = new Map(); // TODO: can we get rid of this field?
|
|
103
56
|
}
|
|
104
|
-
|
|
105
|
-
var _this = this;
|
|
57
|
+
onStart() {
|
|
106
58
|
this.editorService.registerDecorationType(exports.INLINE_VALUE_DECORATION_KEY, {});
|
|
107
59
|
this.enabled = !!this.preferences['debug.inlineValues'];
|
|
108
|
-
this.preferences.onPreferenceChanged(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
_this.enabled = !!newValue;
|
|
60
|
+
this.preferences.onPreferenceChanged(({ preferenceName, newValue }) => {
|
|
61
|
+
if (preferenceName === 'debug.inlineValues' && !!newValue !== this.enabled) {
|
|
62
|
+
this.enabled = !!newValue;
|
|
112
63
|
}
|
|
113
64
|
});
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
model = debugEditorModel.editor.getControl().getModel() || undefined;
|
|
121
|
-
return [2 /*return*/, this.updateInlineValueDecorations(model, stackFrame)];
|
|
122
|
-
});
|
|
123
|
-
});
|
|
124
|
-
};
|
|
65
|
+
}
|
|
66
|
+
async calculateDecorations(debugEditorModel, stackFrame) {
|
|
67
|
+
this.wordToLineNumbersMap = undefined;
|
|
68
|
+
const model = debugEditorModel.editor.getControl().getModel() || undefined;
|
|
69
|
+
return this.updateInlineValueDecorations(model, stackFrame);
|
|
70
|
+
}
|
|
125
71
|
// https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts#L382-L408
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
_b = (_a = Array).from;
|
|
149
|
-
return [4 /*yield*/, scope.getElements()];
|
|
150
|
-
case 1:
|
|
151
|
-
children = _b.apply(_a, [_c.sent()]);
|
|
152
|
-
range = new monaco.Range(0, 0, stackFrameRange.startLineNumber, stackFrameRange.startColumn);
|
|
153
|
-
if (scope.range) {
|
|
154
|
-
range = range.setStartPosition(scope.range.startLineNumber, scope.range.startColumn);
|
|
155
|
-
}
|
|
156
|
-
return [2 /*return*/, this.createInlineValueDecorationsInsideRange(children, range, model)];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}); }))];
|
|
160
|
-
case 2:
|
|
161
|
-
decorationsPerScope = _a.sent();
|
|
162
|
-
return [2 /*return*/, decorationsPerScope.reduce(function (previous, current) { return previous.concat(current); }, [])];
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
};
|
|
72
|
+
async updateInlineValueDecorations(model, stackFrame) {
|
|
73
|
+
if (!this.enabled || !model || !stackFrame || !stackFrame.source || model.uri.toString() !== stackFrame.source.uri.toString()) {
|
|
74
|
+
return [];
|
|
75
|
+
}
|
|
76
|
+
// XXX: Here is a difference between the VS Code's `IStackFrame` and the `DebugProtocol.StackFrame`.
|
|
77
|
+
// In DAP, `source` is optional, hence `range` is optional too.
|
|
78
|
+
const { range: stackFrameRange } = stackFrame;
|
|
79
|
+
if (!stackFrameRange) {
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
const scopes = await stackFrame.getMostSpecificScopes(stackFrameRange);
|
|
83
|
+
// Get all top level children in the scope chain
|
|
84
|
+
const decorationsPerScope = await Promise.all(scopes.map(async (scope) => {
|
|
85
|
+
const children = Array.from(await scope.getElements());
|
|
86
|
+
let range = new monaco.Range(0, 0, stackFrameRange.startLineNumber, stackFrameRange.startColumn);
|
|
87
|
+
if (scope.range) {
|
|
88
|
+
range = range.setStartPosition(scope.range.startLineNumber, scope.range.startColumn);
|
|
89
|
+
}
|
|
90
|
+
return this.createInlineValueDecorationsInsideRange(children, range, model);
|
|
91
|
+
}));
|
|
92
|
+
return decorationsPerScope.reduce((previous, current) => previous.concat(current), []);
|
|
93
|
+
}
|
|
167
94
|
// https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts#L410-L452
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
for (var expressions_1 = __values(expressions), expressions_1_1 = expressions_1.next(); !expressions_1_1.done; expressions_1_1 = expressions_1.next()) {
|
|
174
|
-
var expr = expressions_1_1.value;
|
|
175
|
-
if (expr instanceof debug_console_items_1.DebugVariable) { // XXX: VS Code uses `IExpression` that has `name` and `value`.
|
|
176
|
-
nameValueMap.set(expr.name, expr.value);
|
|
177
|
-
}
|
|
178
|
-
// Limit the size of map. Too large can have a perf impact
|
|
179
|
-
if (nameValueMap.size >= MAX_NUM_INLINE_VALUES) {
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
95
|
+
createInlineValueDecorationsInsideRange(expressions, range, model) {
|
|
96
|
+
const nameValueMap = new Map();
|
|
97
|
+
for (const expr of expressions) {
|
|
98
|
+
if (expr instanceof debug_console_items_1.DebugVariable) { // XXX: VS Code uses `IExpression` that has `name` and `value`.
|
|
99
|
+
nameValueMap.set(expr.name, expr.value);
|
|
182
100
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
try {
|
|
187
|
-
if (expressions_1_1 && !expressions_1_1.done && (_a = expressions_1.return)) _a.call(expressions_1);
|
|
101
|
+
// Limit the size of map. Too large can have a perf impact
|
|
102
|
+
if (nameValueMap.size >= MAX_NUM_INLINE_VALUES) {
|
|
103
|
+
break;
|
|
188
104
|
}
|
|
189
|
-
finally { if (e_1) throw e_1.error; }
|
|
190
105
|
}
|
|
191
|
-
|
|
192
|
-
|
|
106
|
+
const lineToNamesMap = new Map();
|
|
107
|
+
const wordToPositionsMap = this.getWordToPositionsMap(model);
|
|
193
108
|
// Compute unique set of names on each line
|
|
194
|
-
nameValueMap.forEach(
|
|
195
|
-
|
|
196
|
-
var positions = wordToPositionsMap.get(name);
|
|
109
|
+
nameValueMap.forEach((_, name) => {
|
|
110
|
+
const positions = wordToPositionsMap.get(name);
|
|
197
111
|
if (positions) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (lineToNamesMap.get(position.lineNumber).indexOf(name) === -1) {
|
|
206
|
-
lineToNamesMap.get(position.lineNumber).push(name);
|
|
207
|
-
}
|
|
112
|
+
for (const position of positions) {
|
|
113
|
+
if (range.containsPosition(position)) {
|
|
114
|
+
if (!lineToNamesMap.has(position.lineNumber)) {
|
|
115
|
+
lineToNamesMap.set(position.lineNumber, []);
|
|
116
|
+
}
|
|
117
|
+
if (lineToNamesMap.get(position.lineNumber).indexOf(name) === -1) {
|
|
118
|
+
lineToNamesMap.get(position.lineNumber).push(name);
|
|
208
119
|
}
|
|
209
120
|
}
|
|
210
121
|
}
|
|
211
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
212
|
-
finally {
|
|
213
|
-
try {
|
|
214
|
-
if (positions_1_1 && !positions_1_1.done && (_a = positions_1.return)) _a.call(positions_1);
|
|
215
|
-
}
|
|
216
|
-
finally { if (e_2) throw e_2.error; }
|
|
217
|
-
}
|
|
218
122
|
}
|
|
219
123
|
});
|
|
220
|
-
|
|
124
|
+
const decorations = [];
|
|
221
125
|
// Compute decorators for each line
|
|
222
|
-
lineToNamesMap.forEach(
|
|
223
|
-
|
|
224
|
-
|
|
126
|
+
lineToNamesMap.forEach((names, line) => {
|
|
127
|
+
const contentText = names.sort((first, second) => {
|
|
128
|
+
const content = model.getLineContent(line);
|
|
225
129
|
return content.indexOf(first) - content.indexOf(second);
|
|
226
|
-
}).map(
|
|
227
|
-
decorations.push(
|
|
130
|
+
}).map(name => `${name} = ${nameValueMap.get(name)}`).join(', ');
|
|
131
|
+
decorations.push(this.createInlineValueDecoration(line, contentText));
|
|
228
132
|
});
|
|
229
133
|
return decorations;
|
|
230
|
-
}
|
|
134
|
+
}
|
|
231
135
|
// https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts#L454-L485
|
|
232
|
-
|
|
136
|
+
createInlineValueDecoration(lineNumber, contentText) {
|
|
233
137
|
// If decoratorText is too long, trim and add ellipses. This could happen for minified files with everything on a single line
|
|
234
138
|
if (contentText.length > MAX_INLINE_DECORATOR_LENGTH) {
|
|
235
139
|
contentText = contentText.substr(0, MAX_INLINE_DECORATOR_LENGTH) + '...';
|
|
@@ -244,7 +148,7 @@ var DebugInlineValueDecorator = /** @class */ (function () {
|
|
|
244
148
|
},
|
|
245
149
|
renderOptions: {
|
|
246
150
|
after: {
|
|
247
|
-
contentText
|
|
151
|
+
contentText,
|
|
248
152
|
backgroundColor: 'rgba(255, 200, 0, 0.2)',
|
|
249
153
|
margin: '10px'
|
|
250
154
|
},
|
|
@@ -260,34 +164,34 @@ var DebugInlineValueDecorator = /** @class */ (function () {
|
|
|
260
164
|
}
|
|
261
165
|
}
|
|
262
166
|
};
|
|
263
|
-
}
|
|
167
|
+
}
|
|
264
168
|
// https://github.com/theia-ide/vscode/blob/standalone/0.19.x/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts#L487-L531
|
|
265
|
-
|
|
169
|
+
getWordToPositionsMap(model) {
|
|
266
170
|
if (!this.wordToLineNumbersMap) {
|
|
267
171
|
this.wordToLineNumbersMap = new Map();
|
|
268
172
|
if (!model) {
|
|
269
173
|
return this.wordToLineNumbersMap;
|
|
270
174
|
}
|
|
271
175
|
// For every word in every line, map its ranges for fast lookup
|
|
272
|
-
for (
|
|
273
|
-
|
|
176
|
+
for (let lineNumber = 1, len = model.getLineCount(); lineNumber <= len; ++lineNumber) {
|
|
177
|
+
const lineContent = model.getLineContent(lineNumber);
|
|
274
178
|
// If line is too long then skip the line
|
|
275
179
|
if (lineContent.length > MAX_TOKENIZATION_LINE_LEN) {
|
|
276
180
|
continue;
|
|
277
181
|
}
|
|
278
182
|
model.forceTokenization(lineNumber);
|
|
279
|
-
|
|
280
|
-
for (
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
183
|
+
const lineTokens = model.getLineTokens(lineNumber);
|
|
184
|
+
for (let tokenIndex = 0, tokenCount = lineTokens.getCount(); tokenIndex < tokenCount; tokenIndex++) {
|
|
185
|
+
const tokenStartOffset = lineTokens.getStartOffset(tokenIndex);
|
|
186
|
+
const tokenEndOffset = lineTokens.getEndOffset(tokenIndex);
|
|
187
|
+
const tokenType = lineTokens.getStandardTokenType(tokenIndex);
|
|
188
|
+
const tokenStr = lineContent.substring(tokenStartOffset, tokenEndOffset);
|
|
285
189
|
// Token is a word and not a comment
|
|
286
190
|
if (tokenType === 0 /* Other */) {
|
|
287
191
|
DEFAULT_WORD_REGEXP.lastIndex = 0; // We assume tokens will usually map 1:1 to words if they match
|
|
288
|
-
|
|
192
|
+
const wordMatch = DEFAULT_WORD_REGEXP.exec(tokenStr);
|
|
289
193
|
if (wordMatch) {
|
|
290
|
-
|
|
194
|
+
const word = wordMatch[0];
|
|
291
195
|
if (!this.wordToLineNumbersMap.has(word)) {
|
|
292
196
|
this.wordToLineNumbersMap.set(word, []);
|
|
293
197
|
}
|
|
@@ -298,19 +202,18 @@ var DebugInlineValueDecorator = /** @class */ (function () {
|
|
|
298
202
|
}
|
|
299
203
|
}
|
|
300
204
|
return this.wordToLineNumbersMap;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}());
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
__decorate([
|
|
208
|
+
inversify_1.inject(monaco_editor_service_1.MonacoEditorService),
|
|
209
|
+
__metadata("design:type", monaco_editor_service_1.MonacoEditorService)
|
|
210
|
+
], DebugInlineValueDecorator.prototype, "editorService", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
inversify_1.inject(debug_preferences_1.DebugPreferences),
|
|
213
|
+
__metadata("design:type", Object)
|
|
214
|
+
], DebugInlineValueDecorator.prototype, "preferences", void 0);
|
|
215
|
+
DebugInlineValueDecorator = __decorate([
|
|
216
|
+
inversify_1.injectable()
|
|
217
|
+
], DebugInlineValueDecorator);
|
|
315
218
|
exports.DebugInlineValueDecorator = DebugInlineValueDecorator;
|
|
316
219
|
//# sourceMappingURL=debug-inline-value-decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-inline-value-decorator.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-inline-value-decorator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF
|
|
1
|
+
{"version":3,"file":"debug-inline-value-decorator.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-inline-value-decorator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF;;;gGAGgG;AAChG,wIAAwI;AAExI,4DAAkE;AAElE,2FAAsF;AACtF,wEAAoF;AACpF,4DAAwD;AAIxD,uIAAuI;AAC1H,QAAA,2BAA2B,GAAG,uBAAuB,CAAC;AACnE,MAAM,qBAAqB,GAAG,GAAG,CAAC,CAAC,qFAAqF;AACxH,MAAM,2BAA2B,GAAG,GAAG,CAAC,CAAC,sFAAsF;AAC/H,MAAM,yBAAyB,GAAG,GAAG,CAAC,CAAC,mEAAmE;AAC1G,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC;AAElD;;;;;GAKG;AACH,+FAA+F;AAC/F,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,CAAC;AAQtC,CAAC;AAGF,IAAa,yBAAyB,GAAtC,MAAa,yBAAyB;IAAtC;QAQc,YAAO,GAAG,KAAK,CAAC;QAChB,yBAAoB,GAA+C,IAAI,GAAG,EAAE,CAAC,CAAC,sCAAsC;IAqLlI,CAAC;IAnLG,OAAO;QACH,IAAI,CAAC,aAAa,CAAC,sBAAsB,CAAC,mCAA2B,EAAE,EAAE,CAAC,CAAC;QAC3E,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACxD,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,EAAE;YAClE,IAAI,cAAc,KAAK,oBAAoB,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,OAAO,EAAE;gBACxE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC;aAC7B;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,oBA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
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
18
|
exports.DebugBreakpoint = exports.DebugBreakpointDecoration = exports.DebugBreakpointOptions = exports.DebugBreakpointData = void 0;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
return DebugBreakpointData;
|
|
38
|
-
}());
|
|
19
|
+
const React = require("@theia/core/shared/react");
|
|
20
|
+
const browser_1 = require("@theia/core/lib/browser");
|
|
21
|
+
class DebugBreakpointData {
|
|
22
|
+
}
|
|
39
23
|
exports.DebugBreakpointData = DebugBreakpointData;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
return DebugBreakpointOptions;
|
|
44
|
-
}());
|
|
24
|
+
class DebugBreakpointOptions {
|
|
25
|
+
}
|
|
45
26
|
exports.DebugBreakpointOptions = DebugBreakpointOptions;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
return DebugBreakpointDecoration;
|
|
50
|
-
}());
|
|
27
|
+
class DebugBreakpointDecoration {
|
|
28
|
+
}
|
|
51
29
|
exports.DebugBreakpointDecoration = DebugBreakpointDecoration;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
_this.setEnabled(event.target.checked);
|
|
30
|
+
class DebugBreakpoint extends DebugBreakpointOptions {
|
|
31
|
+
constructor(uri, options) {
|
|
32
|
+
super();
|
|
33
|
+
this.uri = uri;
|
|
34
|
+
this.setBreakpointEnabled = (event) => {
|
|
35
|
+
this.setEnabled(event.target.checked);
|
|
59
36
|
};
|
|
60
|
-
Object.assign(
|
|
61
|
-
return _this;
|
|
37
|
+
Object.assign(this, options);
|
|
62
38
|
}
|
|
63
|
-
|
|
39
|
+
update(data) {
|
|
64
40
|
Object.assign(this, data);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
});
|
|
87
|
-
Object.defineProperty(DebugBreakpoint.prototype, "installed", {
|
|
88
|
-
get: function () {
|
|
89
|
-
return !!this.raw;
|
|
90
|
-
},
|
|
91
|
-
enumerable: false,
|
|
92
|
-
configurable: true
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(DebugBreakpoint.prototype, "verified", {
|
|
95
|
-
get: function () {
|
|
96
|
-
return !!this.raw ? this.raw.verified : true;
|
|
97
|
-
},
|
|
98
|
-
enumerable: false,
|
|
99
|
-
configurable: true
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(DebugBreakpoint.prototype, "message", {
|
|
102
|
-
get: function () {
|
|
103
|
-
return this.raw && this.raw.message || '';
|
|
104
|
-
},
|
|
105
|
-
enumerable: false,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
108
|
-
DebugBreakpoint.prototype.render = function () {
|
|
109
|
-
var classNames = ['theia-source-breakpoint'];
|
|
41
|
+
}
|
|
42
|
+
get idFromAdapter() {
|
|
43
|
+
return this.raw && this.raw.id;
|
|
44
|
+
}
|
|
45
|
+
get id() {
|
|
46
|
+
return this.origin.id;
|
|
47
|
+
}
|
|
48
|
+
get enabled() {
|
|
49
|
+
return this.breakpoints.breakpointsEnabled && this.origin.enabled;
|
|
50
|
+
}
|
|
51
|
+
get installed() {
|
|
52
|
+
return !!this.raw;
|
|
53
|
+
}
|
|
54
|
+
get verified() {
|
|
55
|
+
return !!this.raw ? this.raw.verified : true;
|
|
56
|
+
}
|
|
57
|
+
get message() {
|
|
58
|
+
return this.raw && this.raw.message || '';
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
const classNames = ['theia-source-breakpoint'];
|
|
110
62
|
if (!this.isEnabled()) {
|
|
111
63
|
classNames.push(browser_1.DISABLED_CLASS);
|
|
112
64
|
}
|
|
113
|
-
|
|
65
|
+
const decoration = this.getDecoration();
|
|
114
66
|
return React.createElement("div", { title: decoration.message.join('\n'), className: classNames.join(' ') },
|
|
115
67
|
React.createElement("span", { className: 'theia-debug-breakpoint-icon ' + decoration.className }),
|
|
116
68
|
React.createElement("input", { className: 'theia-input', type: 'checkbox', checked: this.origin.enabled, onChange: this.setBreakpointEnabled }),
|
|
117
69
|
this.doRender());
|
|
118
|
-
}
|
|
119
|
-
|
|
70
|
+
}
|
|
71
|
+
isEnabled() {
|
|
120
72
|
return this.breakpoints.breakpointsEnabled && this.verified;
|
|
121
|
-
}
|
|
122
|
-
|
|
73
|
+
}
|
|
74
|
+
getDecoration() {
|
|
123
75
|
if (!this.enabled) {
|
|
124
76
|
return this.getDisabledBreakpointDecoration();
|
|
125
77
|
}
|
|
@@ -127,23 +79,22 @@ var DebugBreakpoint = /** @class */ (function (_super) {
|
|
|
127
79
|
return this.getUnverifiedBreakpointDecoration();
|
|
128
80
|
}
|
|
129
81
|
return this.doGetDecoration();
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
82
|
+
}
|
|
83
|
+
getUnverifiedBreakpointDecoration() {
|
|
84
|
+
const decoration = this.getBreakpointDecoration();
|
|
133
85
|
return {
|
|
134
86
|
className: decoration.className + '-unverified',
|
|
135
87
|
message: [this.message || 'Unverified ' + decoration.message[0]]
|
|
136
88
|
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
89
|
+
}
|
|
90
|
+
getDisabledBreakpointDecoration(message) {
|
|
91
|
+
const decoration = this.getBreakpointDecoration();
|
|
140
92
|
return {
|
|
141
93
|
className: decoration.className + '-disabled',
|
|
142
94
|
message: [message || ('Disabled ' + decoration.message[0])]
|
|
143
95
|
};
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
if (messages === void 0) { messages = []; }
|
|
96
|
+
}
|
|
97
|
+
doGetDecoration(messages = []) {
|
|
147
98
|
if (this.message) {
|
|
148
99
|
if (messages.length) {
|
|
149
100
|
messages[messages.length - 1].concat(', ' + this.message);
|
|
@@ -153,8 +104,7 @@ var DebugBreakpoint = /** @class */ (function (_super) {
|
|
|
153
104
|
}
|
|
154
105
|
}
|
|
155
106
|
return this.getBreakpointDecoration(messages);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
}(DebugBreakpointOptions));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
159
109
|
exports.DebugBreakpoint = DebugBreakpoint;
|
|
160
110
|
//# sourceMappingURL=debug-breakpoint.js.map
|