@codingame/monaco-vscode-debug-service-override 4.5.1 → 4.5.2
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/package.json +2 -2
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +105 -150
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +258 -529
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +28 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +44 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +84 -163
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +116 -120
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +7 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +78 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +72 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +25 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +16 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +140 -132
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +218 -175
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +5 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +9 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +69 -110
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +68 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +77 -56
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +50 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +22 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +47 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +60 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +14 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +23 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +17 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +56 -94
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +40 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +55 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +14 -28
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +12 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +71 -146
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +92 -111
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -12
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +42 -22
|
@@ -14,20 +14,21 @@ import { ITunnelService } from 'vscode/vscode/vs/platform/tunnel/common/tunnel.s
|
|
|
14
14
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
15
15
|
import { getWindow } from 'vscode/vscode/vs/base/browser/dom';
|
|
16
16
|
|
|
17
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/linkDetector";
|
|
17
18
|
const CONTROL_CODES = '\\u0000-\\u0020\\u007f-\\u009f';
|
|
18
|
-
const WEB_LINK_REGEX = ( new RegExp(
|
|
19
|
+
const WEB_LINK_REGEX = ( (new RegExp(
|
|
19
20
|
'(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|data:|www\\.)[^\\s' + CONTROL_CODES + '"]{2,}[^\\s' + CONTROL_CODES + '"\')}\\],:;.!?]',
|
|
20
21
|
'ug'
|
|
21
|
-
));
|
|
22
|
+
)));
|
|
22
23
|
const WIN_ABSOLUTE_PATH = /(?:[a-zA-Z]:(?:(?:\\|\/)[\w\.-]*)+)/;
|
|
23
24
|
const WIN_RELATIVE_PATH = /(?:(?:\~|\.)(?:(?:\\|\/)[\w\.-]*)+)/;
|
|
24
|
-
const WIN_PATH = ( new RegExp(`(${WIN_ABSOLUTE_PATH.source}|${WIN_RELATIVE_PATH.source})`));
|
|
25
|
+
const WIN_PATH = ( (new RegExp(`(${WIN_ABSOLUTE_PATH.source}|${WIN_RELATIVE_PATH.source})`)));
|
|
25
26
|
const POSIX_PATH = /((?:\~|\.)?(?:\/[\w\.-]*)+)/;
|
|
26
27
|
const LINE_COLUMN = /(?:\:([\d]+))?(?:\:([\d]+))?/;
|
|
27
|
-
const PATH_LINK_REGEX = ( new RegExp(
|
|
28
|
+
const PATH_LINK_REGEX = ( (new RegExp(
|
|
28
29
|
`${isWindows ? WIN_PATH.source : POSIX_PATH.source}${LINE_COLUMN.source}`,
|
|
29
30
|
'g'
|
|
30
|
-
));
|
|
31
|
+
)));
|
|
31
32
|
const LINE_COLUMN_REGEX = /:([\d]+)(?::([\d]+))?$/;
|
|
32
33
|
const MAX_LENGTH = 2000;
|
|
33
34
|
let LinkDetector = class LinkDetector {
|
|
@@ -49,7 +50,7 @@ let LinkDetector = class LinkDetector {
|
|
|
49
50
|
if (!lines[lines.length - 1]) {
|
|
50
51
|
lines.pop();
|
|
51
52
|
}
|
|
52
|
-
const elements = ( lines.map(line => this.linkify(line, false, workspaceFolder, includeFulltext)));
|
|
53
|
+
const elements = ( (lines.map(line => this.linkify(line, false, workspaceFolder, includeFulltext))));
|
|
53
54
|
if (elements.length === 1) {
|
|
54
55
|
return elements[0];
|
|
55
56
|
}
|
|
@@ -84,7 +85,7 @@ let LinkDetector = class LinkDetector {
|
|
|
84
85
|
}
|
|
85
86
|
createWebLink(fulltext, url) {
|
|
86
87
|
const link = this.createLink(url);
|
|
87
|
-
let uri = ( URI.parse(url));
|
|
88
|
+
let uri = ( (URI.parse(url)));
|
|
88
89
|
const lineCol = LINE_COLUMN_REGEX.exec(uri.path);
|
|
89
90
|
if (lineCol) {
|
|
90
91
|
uri = uri.with({
|
|
@@ -97,7 +98,7 @@ let LinkDetector = class LinkDetector {
|
|
|
97
98
|
const fsPath = uri.fsPath;
|
|
98
99
|
const path = await this.pathService.path;
|
|
99
100
|
const fileUrl = normalize(((path.sep === posix.sep) && isWindows) ? fsPath.replace(/\\/g, posix.sep) : fsPath);
|
|
100
|
-
const fileUri = ( URI.parse(fileUrl));
|
|
101
|
+
const fileUri = ( (URI.parse(fileUrl)));
|
|
101
102
|
const exists = await this.fileService.exists(fileUri);
|
|
102
103
|
if (!exists) {
|
|
103
104
|
return;
|
|
@@ -154,40 +155,10 @@ let LinkDetector = class LinkDetector {
|
|
|
154
155
|
}
|
|
155
156
|
decorateLink(link, uri, fulltext, onClick) {
|
|
156
157
|
link.classList.add('link');
|
|
157
|
-
const followLink = this.tunnelService.canTunnel(uri) ? ( localizeWithPath(
|
|
158
|
-
'vs/workbench/contrib/debug/browser/linkDetector',
|
|
159
|
-
'followForwardedLink',
|
|
160
|
-
"follow link using forwarded port"
|
|
161
|
-
)) : ( localizeWithPath(
|
|
162
|
-
'vs/workbench/contrib/debug/browser/linkDetector',
|
|
163
|
-
'followLink',
|
|
164
|
-
"follow link"
|
|
165
|
-
));
|
|
158
|
+
const followLink = this.tunnelService.canTunnel(uri) ? ( localizeWithPath(_moduleId, 0, "follow link using forwarded port")) : ( localizeWithPath(_moduleId, 1, "follow link"));
|
|
166
159
|
link.title = fulltext
|
|
167
|
-
? (isMacintosh ? ( localizeWithPath(
|
|
168
|
-
|
|
169
|
-
'fileLinkWithPathMac',
|
|
170
|
-
"Cmd + click to {0}\n{1}",
|
|
171
|
-
followLink,
|
|
172
|
-
fulltext
|
|
173
|
-
)) : ( localizeWithPath(
|
|
174
|
-
'vs/workbench/contrib/debug/browser/linkDetector',
|
|
175
|
-
'fileLinkWithPath',
|
|
176
|
-
"Ctrl + click to {0}\n{1}",
|
|
177
|
-
followLink,
|
|
178
|
-
fulltext
|
|
179
|
-
)))
|
|
180
|
-
: (isMacintosh ? ( localizeWithPath(
|
|
181
|
-
'vs/workbench/contrib/debug/browser/linkDetector',
|
|
182
|
-
'fileLinkMac',
|
|
183
|
-
"Cmd + click to {0}",
|
|
184
|
-
followLink
|
|
185
|
-
)) : ( localizeWithPath(
|
|
186
|
-
'vs/workbench/contrib/debug/browser/linkDetector',
|
|
187
|
-
'fileLink',
|
|
188
|
-
"Ctrl + click to {0}",
|
|
189
|
-
followLink
|
|
190
|
-
)));
|
|
160
|
+
? (isMacintosh ? ( localizeWithPath(_moduleId, 2, "Cmd + click to {0}\n{1}", followLink, fulltext)) : ( localizeWithPath(_moduleId, 3, "Ctrl + click to {0}\n{1}", followLink, fulltext)))
|
|
161
|
+
: (isMacintosh ? ( localizeWithPath(_moduleId, 4, "Cmd + click to {0}", followLink)) : ( localizeWithPath(_moduleId, 5, "Ctrl + click to {0}", followLink)));
|
|
191
162
|
link.onmousemove = (event) => { link.classList.toggle('pointer', isMacintosh ? event.metaKey : event.ctrlKey); };
|
|
192
163
|
link.onmouseleave = () => link.classList.remove('pointer');
|
|
193
164
|
link.onclick = (event) => {
|
|
@@ -203,7 +174,7 @@ let LinkDetector = class LinkDetector {
|
|
|
203
174
|
onClick(false);
|
|
204
175
|
};
|
|
205
176
|
link.onkeydown = e => {
|
|
206
|
-
const event = ( new StandardKeyboardEvent(e));
|
|
177
|
+
const event = ( (new StandardKeyboardEvent(e)));
|
|
207
178
|
if (event.keyCode === 3 || event.keyCode === 10 ) {
|
|
208
179
|
event.preventDefault();
|
|
209
180
|
event.stopPropagation();
|
|
@@ -249,14 +220,14 @@ let LinkDetector = class LinkDetector {
|
|
|
249
220
|
return result;
|
|
250
221
|
}
|
|
251
222
|
};
|
|
252
|
-
LinkDetector = ( __decorate([
|
|
253
|
-
( __param(0, IEditorService)),
|
|
254
|
-
( __param(1, IFileService)),
|
|
255
|
-
( __param(2, IOpenerService)),
|
|
256
|
-
( __param(3, IPathService)),
|
|
257
|
-
( __param(4, ITunnelService)),
|
|
258
|
-
( __param(5, IWorkbenchEnvironmentService)),
|
|
259
|
-
( __param(6, IConfigurationService))
|
|
260
|
-
], LinkDetector));
|
|
223
|
+
LinkDetector = ( (__decorate([
|
|
224
|
+
( (__param(0, IEditorService))),
|
|
225
|
+
( (__param(1, IFileService))),
|
|
226
|
+
( (__param(2, IOpenerService))),
|
|
227
|
+
( (__param(3, IPathService))),
|
|
228
|
+
( (__param(4, ITunnelService))),
|
|
229
|
+
( (__param(5, IWorkbenchEnvironmentService))),
|
|
230
|
+
( (__param(6, IConfigurationService)))
|
|
231
|
+
], LinkDetector)));
|
|
261
232
|
|
|
262
233
|
export { LinkDetector };
|
|
@@ -34,6 +34,7 @@ import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/te
|
|
|
34
34
|
import { IPathService } from 'vscode/vscode/vs/workbench/services/path/common/pathService.service';
|
|
35
35
|
import { TreeFindMode } from 'vscode/vscode/vs/base/browser/ui/tree/abstractTree';
|
|
36
36
|
|
|
37
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/loadedScriptsView";
|
|
37
38
|
const NEW_STYLE_COMPRESS = true;
|
|
38
39
|
const URI_SCHEMA_PATTERN = /^[a-zA-Z][a-zA-Z0-9\+\-\.]+:/;
|
|
39
40
|
class BaseTreeItem {
|
|
@@ -41,7 +42,7 @@ class BaseTreeItem {
|
|
|
41
42
|
this._parent = _parent;
|
|
42
43
|
this._label = _label;
|
|
43
44
|
this.isIncompressible = isIncompressible;
|
|
44
|
-
this._children = ( new Map());
|
|
45
|
+
this._children = ( (new Map()));
|
|
45
46
|
this._showedMoreThanOne = false;
|
|
46
47
|
}
|
|
47
48
|
updateLabel(label) {
|
|
@@ -62,7 +63,7 @@ class BaseTreeItem {
|
|
|
62
63
|
if (source.raw && source.raw.sources) {
|
|
63
64
|
for (const src of source.raw.sources) {
|
|
64
65
|
if (src.name && src.path) {
|
|
65
|
-
const s = ( new BaseTreeItem(this, src.name));
|
|
66
|
+
const s = ( (new BaseTreeItem(this, src.name)));
|
|
66
67
|
this._children.set(src.path, s);
|
|
67
68
|
const ss = session.getSource(src);
|
|
68
69
|
s.setSource(session, ss);
|
|
@@ -133,7 +134,7 @@ class BaseTreeItem {
|
|
|
133
134
|
return child.getChildren();
|
|
134
135
|
}
|
|
135
136
|
const array = [];
|
|
136
|
-
for (const child of ( this._children.values())) {
|
|
137
|
+
for (const child of ( (this._children.values()))) {
|
|
137
138
|
array.push(child);
|
|
138
139
|
}
|
|
139
140
|
return array.sort((a, b) => this.compare(a, b));
|
|
@@ -176,7 +177,7 @@ class BaseTreeItem {
|
|
|
176
177
|
oneChild() {
|
|
177
178
|
if (!this._source && !this._showedMoreThanOne && this.skipOneChild()) {
|
|
178
179
|
if (this._children.size === 1) {
|
|
179
|
-
return ( this._children.values()).next().value;
|
|
180
|
+
return ( (this._children.values())).next().value;
|
|
180
181
|
}
|
|
181
182
|
if (this._children.size > 1) {
|
|
182
183
|
this._showedMoreThanOne = true;
|
|
@@ -204,7 +205,7 @@ class RootTreeItem extends BaseTreeItem {
|
|
|
204
205
|
this._labelService = _labelService;
|
|
205
206
|
}
|
|
206
207
|
add(session) {
|
|
207
|
-
return this.createIfNeeded(session.getId(), () => ( new SessionTreeItem(this._labelService, this, session, this._pathService, this._contextService)));
|
|
208
|
+
return this.createIfNeeded(session.getId(), () => ( (new SessionTreeItem(this._labelService, this, session, this._pathService, this._contextService))));
|
|
208
209
|
}
|
|
209
210
|
find(session) {
|
|
210
211
|
return this.getChild(session.getId());
|
|
@@ -216,7 +217,7 @@ class SessionTreeItem extends BaseTreeItem {
|
|
|
216
217
|
super(parent, session.getLabel(), true);
|
|
217
218
|
this._pathService = _pathService;
|
|
218
219
|
this.rootProvider = rootProvider;
|
|
219
|
-
this._map = ( new Map());
|
|
220
|
+
this._map = ( (new Map()));
|
|
220
221
|
this._labelService = labelService;
|
|
221
222
|
this._session = session;
|
|
222
223
|
}
|
|
@@ -258,7 +259,7 @@ class SessionTreeItem extends BaseTreeItem {
|
|
|
258
259
|
return;
|
|
259
260
|
}
|
|
260
261
|
if (this._labelService && URI_SCHEMA_PATTERN.test(path)) {
|
|
261
|
-
path = this._labelService.getUriLabel(( URI.parse(path)));
|
|
262
|
+
path = this._labelService.getUriLabel(( (URI.parse(path))));
|
|
262
263
|
}
|
|
263
264
|
const match = SessionTreeItem.URL_REGEXP.exec(path);
|
|
264
265
|
if (match && match.length === 3) {
|
|
@@ -294,13 +295,13 @@ class SessionTreeItem extends BaseTreeItem {
|
|
|
294
295
|
path.split(/[\/\\]/).forEach((segment, i) => {
|
|
295
296
|
if (i === 0 && folder) {
|
|
296
297
|
const f = folder;
|
|
297
|
-
leaf = leaf.createIfNeeded(folder.name, parent => ( new RootFolderTreeItem(parent, f)));
|
|
298
|
+
leaf = leaf.createIfNeeded(folder.name, parent => ( (new RootFolderTreeItem(parent, f))));
|
|
298
299
|
}
|
|
299
300
|
else if (i === 0 && url) {
|
|
300
|
-
leaf = leaf.createIfNeeded(url, parent => ( new BaseTreeItem(parent, url)));
|
|
301
|
+
leaf = leaf.createIfNeeded(url, parent => ( (new BaseTreeItem(parent, url))));
|
|
301
302
|
}
|
|
302
303
|
else {
|
|
303
|
-
leaf = leaf.createIfNeeded(segment, parent => ( new BaseTreeItem(parent, segment)));
|
|
304
|
+
leaf = leaf.createIfNeeded(segment, parent => ( (new BaseTreeItem(parent, segment))));
|
|
304
305
|
}
|
|
305
306
|
});
|
|
306
307
|
leaf.setSource(this._session, source);
|
|
@@ -321,12 +322,12 @@ class SessionTreeItem extends BaseTreeItem {
|
|
|
321
322
|
}
|
|
322
323
|
function asTreeElement(item, viewState) {
|
|
323
324
|
const children = item.getChildren();
|
|
324
|
-
const collapsed = viewState ? !( viewState.expanded.has(item.getId())) : !(item instanceof SessionTreeItem);
|
|
325
|
+
const collapsed = viewState ? !( (viewState.expanded.has(item.getId()))) : !(item instanceof SessionTreeItem);
|
|
325
326
|
return {
|
|
326
327
|
element: item,
|
|
327
328
|
collapsed,
|
|
328
329
|
collapsible: item.hasChildren(),
|
|
329
|
-
children: ( children.map(i => asTreeElement(i, viewState)))
|
|
330
|
+
children: ( (children.map(i => asTreeElement(i, viewState))))
|
|
330
331
|
};
|
|
331
332
|
}
|
|
332
333
|
let LoadedScriptsView = class LoadedScriptsView extends ViewPane {
|
|
@@ -346,11 +347,11 @@ let LoadedScriptsView = class LoadedScriptsView extends ViewPane {
|
|
|
346
347
|
container.classList.add('debug-loaded-scripts');
|
|
347
348
|
container.classList.add('show-file-icons');
|
|
348
349
|
this.treeContainer = renderViewTree(container);
|
|
349
|
-
this.filter = ( new LoadedScriptsFilter());
|
|
350
|
-
const root = ( new RootTreeItem(this.pathService, this.contextService, this.labelService));
|
|
350
|
+
this.filter = ( (new LoadedScriptsFilter()));
|
|
351
|
+
const root = ( (new RootTreeItem(this.pathService, this.contextService, this.labelService)));
|
|
351
352
|
this.treeLabels = this.instantiationService.createInstance(ResourceLabels, { onDidChangeVisibility: this.onDidChangeBodyVisibility });
|
|
352
353
|
this._register(this.treeLabels);
|
|
353
|
-
this.tree = this.instantiationService.createInstance(WorkbenchCompressibleObjectTree, 'LoadedScriptsView', this.treeContainer, ( new LoadedScriptsDelegate()), [( new LoadedScriptsRenderer(this.treeLabels))], {
|
|
354
|
+
this.tree = this.instantiationService.createInstance(WorkbenchCompressibleObjectTree, 'LoadedScriptsView', this.treeContainer, ( (new LoadedScriptsDelegate())), [( (new LoadedScriptsRenderer(this.treeLabels)))], {
|
|
354
355
|
compressionEnabled: NEW_STYLE_COMPRESS,
|
|
355
356
|
collapseByDefault: true,
|
|
356
357
|
hideTwistiesOfChildlessElements: true,
|
|
@@ -362,23 +363,23 @@ let LoadedScriptsView = class LoadedScriptsView extends ViewPane {
|
|
|
362
363
|
return element.getLabel();
|
|
363
364
|
},
|
|
364
365
|
getCompressedNodeKeyboardNavigationLabel: (elements) => {
|
|
365
|
-
return ( elements.map(e => e.getLabel())).join('/');
|
|
366
|
+
return ( (elements.map(e => e.getLabel()))).join('/');
|
|
366
367
|
}
|
|
367
368
|
},
|
|
368
369
|
filter: this.filter,
|
|
369
|
-
accessibilityProvider: ( new LoadedSciptsAccessibilityProvider()),
|
|
370
|
+
accessibilityProvider: ( (new LoadedSciptsAccessibilityProvider())),
|
|
370
371
|
overrideStyles: {
|
|
371
372
|
listBackground: this.getBackgroundColor()
|
|
372
373
|
}
|
|
373
374
|
});
|
|
374
375
|
const updateView = (viewState) => this.tree.setChildren(null, asTreeElement(root, viewState).children);
|
|
375
376
|
updateView();
|
|
376
|
-
this.changeScheduler = ( new RunOnceScheduler(() => {
|
|
377
|
+
this.changeScheduler = ( (new RunOnceScheduler(() => {
|
|
377
378
|
this.treeNeedsRefreshOnVisible = false;
|
|
378
379
|
if (this.tree) {
|
|
379
380
|
updateView();
|
|
380
381
|
}
|
|
381
|
-
}, 300));
|
|
382
|
+
}, 300)));
|
|
382
383
|
this._register(this.changeScheduler);
|
|
383
384
|
this._register(this.tree.onDidOpen(e => {
|
|
384
385
|
if (e.element instanceof BaseTreeItem) {
|
|
@@ -467,7 +468,7 @@ let LoadedScriptsView = class LoadedScriptsView extends ViewPane {
|
|
|
467
468
|
return;
|
|
468
469
|
}
|
|
469
470
|
if (!viewState && pattern) {
|
|
470
|
-
const expanded = ( new Set());
|
|
471
|
+
const expanded = ( (new Set()));
|
|
471
472
|
const visit = (node) => {
|
|
472
473
|
if (node.element && !node.collapsed) {
|
|
473
474
|
expanded.add(node.element.getId());
|
|
@@ -501,22 +502,22 @@ let LoadedScriptsView = class LoadedScriptsView extends ViewPane {
|
|
|
501
502
|
super.dispose();
|
|
502
503
|
}
|
|
503
504
|
};
|
|
504
|
-
LoadedScriptsView = ( __decorate([
|
|
505
|
-
( __param(1, IContextMenuService)),
|
|
506
|
-
( __param(2, IKeybindingService)),
|
|
507
|
-
( __param(3, IInstantiationService)),
|
|
508
|
-
( __param(4, IViewDescriptorService)),
|
|
509
|
-
( __param(5, IConfigurationService)),
|
|
510
|
-
( __param(6, IEditorService)),
|
|
511
|
-
( __param(7, IContextKeyService)),
|
|
512
|
-
( __param(8, IWorkspaceContextService)),
|
|
513
|
-
( __param(9, IDebugService)),
|
|
514
|
-
( __param(10, ILabelService)),
|
|
515
|
-
( __param(11, IPathService)),
|
|
516
|
-
( __param(12, IOpenerService)),
|
|
517
|
-
( __param(13, IThemeService)),
|
|
518
|
-
( __param(14, ITelemetryService))
|
|
519
|
-
], LoadedScriptsView));
|
|
505
|
+
LoadedScriptsView = ( (__decorate([
|
|
506
|
+
( (__param(1, IContextMenuService))),
|
|
507
|
+
( (__param(2, IKeybindingService))),
|
|
508
|
+
( (__param(3, IInstantiationService))),
|
|
509
|
+
( (__param(4, IViewDescriptorService))),
|
|
510
|
+
( (__param(5, IConfigurationService))),
|
|
511
|
+
( (__param(6, IEditorService))),
|
|
512
|
+
( (__param(7, IContextKeyService))),
|
|
513
|
+
( (__param(8, IWorkspaceContextService))),
|
|
514
|
+
( (__param(9, IDebugService))),
|
|
515
|
+
( (__param(10, ILabelService))),
|
|
516
|
+
( (__param(11, IPathService))),
|
|
517
|
+
( (__param(12, IOpenerService))),
|
|
518
|
+
( (__param(13, IThemeService))),
|
|
519
|
+
( (__param(14, ITelemetryService)))
|
|
520
|
+
], LoadedScriptsView)));
|
|
520
521
|
class LoadedScriptsDelegate {
|
|
521
522
|
getHeight(element) {
|
|
522
523
|
return 22;
|
|
@@ -544,7 +545,7 @@ class LoadedScriptsRenderer {
|
|
|
544
545
|
}
|
|
545
546
|
renderCompressedElements(node, index, data, height) {
|
|
546
547
|
const element = node.element.elements[node.element.elements.length - 1];
|
|
547
|
-
const labels = ( node.element.elements.map(e => e.getLabel()));
|
|
548
|
+
const labels = ( (node.element.elements.map(e => e.getLabel())));
|
|
548
549
|
this.render(element, labels, data, node.filterData);
|
|
549
550
|
}
|
|
550
551
|
render(element, labels, data, filterData) {
|
|
@@ -558,11 +559,7 @@ class LoadedScriptsRenderer {
|
|
|
558
559
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
559
560
|
}
|
|
560
561
|
else if (element instanceof SessionTreeItem) {
|
|
561
|
-
options.title = ( localizeWithPath(
|
|
562
|
-
'vs/workbench/contrib/debug/browser/loadedScriptsView',
|
|
563
|
-
'loadedScriptsSession',
|
|
564
|
-
"Debug Session"
|
|
565
|
-
));
|
|
562
|
+
options.title = ( localizeWithPath(_moduleId, 0, "Debug Session"));
|
|
566
563
|
options.hideIcon = true;
|
|
567
564
|
}
|
|
568
565
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -584,44 +581,25 @@ class LoadedScriptsRenderer {
|
|
|
584
581
|
}
|
|
585
582
|
class LoadedSciptsAccessibilityProvider {
|
|
586
583
|
getWidgetAriaLabel() {
|
|
587
|
-
return ( localizeWithPath(
|
|
588
|
-
'vs/workbench/contrib/debug/browser/loadedScriptsView',
|
|
589
|
-
{ comment: ['Debug is a noun in this context, not a verb.'], key: 'loadedScriptsAriaLabel' },
|
|
590
|
-
"Debug Loaded Scripts"
|
|
591
|
-
));
|
|
584
|
+
return ( localizeWithPath(_moduleId, 1, "Debug Loaded Scripts"));
|
|
592
585
|
}
|
|
593
586
|
getAriaLabel(element) {
|
|
594
587
|
if (element instanceof RootFolderTreeItem) {
|
|
595
588
|
return ( localizeWithPath(
|
|
596
|
-
|
|
597
|
-
|
|
589
|
+
_moduleId,
|
|
590
|
+
2,
|
|
598
591
|
"Workspace folder {0}, loaded script, debug",
|
|
599
592
|
element.getLabel()
|
|
600
593
|
));
|
|
601
594
|
}
|
|
602
595
|
if (element instanceof SessionTreeItem) {
|
|
603
|
-
return ( localizeWithPath(
|
|
604
|
-
'vs/workbench/contrib/debug/browser/loadedScriptsView',
|
|
605
|
-
'loadedScriptsSessionAriaLabel',
|
|
606
|
-
"Session {0}, loaded script, debug",
|
|
607
|
-
element.getLabel()
|
|
608
|
-
));
|
|
596
|
+
return ( localizeWithPath(_moduleId, 3, "Session {0}, loaded script, debug", element.getLabel()));
|
|
609
597
|
}
|
|
610
598
|
if (element.hasChildren()) {
|
|
611
|
-
return ( localizeWithPath(
|
|
612
|
-
'vs/workbench/contrib/debug/browser/loadedScriptsView',
|
|
613
|
-
'loadedScriptsFolderAriaLabel',
|
|
614
|
-
"Folder {0}, loaded script, debug",
|
|
615
|
-
element.getLabel()
|
|
616
|
-
));
|
|
599
|
+
return ( localizeWithPath(_moduleId, 4, "Folder {0}, loaded script, debug", element.getLabel()));
|
|
617
600
|
}
|
|
618
601
|
else {
|
|
619
|
-
return ( localizeWithPath(
|
|
620
|
-
'vs/workbench/contrib/debug/browser/loadedScriptsView',
|
|
621
|
-
'loadedScriptsSourceAriaLabel',
|
|
622
|
-
"{0}, loaded script, debug",
|
|
623
|
-
element.getLabel()
|
|
624
|
-
));
|
|
602
|
+
return ( localizeWithPath(_moduleId, 5, "{0}, loaded script, debug", element.getLabel()));
|
|
625
603
|
}
|
|
626
604
|
}
|
|
627
605
|
}
|
|
@@ -648,18 +626,14 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
648
626
|
super({
|
|
649
627
|
id: 'loadedScripts.collapse',
|
|
650
628
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
651
|
-
title: ( localizeWithPath(
|
|
652
|
-
'vs/workbench/contrib/debug/browser/loadedScriptsView',
|
|
653
|
-
'collapse',
|
|
654
|
-
"Collapse All"
|
|
655
|
-
)),
|
|
629
|
+
title: ( localizeWithPath(_moduleId, 6, "Collapse All")),
|
|
656
630
|
f1: false,
|
|
657
631
|
icon: Codicon.collapseAll,
|
|
658
632
|
menu: {
|
|
659
633
|
id: MenuId.ViewTitle,
|
|
660
634
|
order: 30,
|
|
661
635
|
group: 'navigation',
|
|
662
|
-
when: ( ContextKeyExpr.equals('view', LOADED_SCRIPTS_VIEW_ID))
|
|
636
|
+
when: ( (ContextKeyExpr.equals('view', LOADED_SCRIPTS_VIEW_ID)))
|
|
663
637
|
}
|
|
664
638
|
});
|
|
665
639
|
}
|