@codingame/monaco-vscode-debug-service-override 4.5.1 → 5.0.0
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 +140 -177
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +260 -531
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +34 -52
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +44 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +116 -120
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +8 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +81 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +73 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +30 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +17 -49
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +143 -135
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +220 -177
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +9 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +70 -111
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +84 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +85 -57
- 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 +52 -78
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +60 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +29 -54
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +4 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +42 -55
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +17 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +84 -110
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +50 -88
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +60 -60
- 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/debugStorage.js +1 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +92 -111
- 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
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1042
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -116
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -87
|
@@ -15,10 +15,12 @@ import { MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/commo
|
|
|
15
15
|
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
|
|
16
16
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
17
17
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
18
|
+
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
18
19
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
19
20
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
20
21
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
21
22
|
import { IContextMenuService, IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
23
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
22
24
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
23
25
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
24
26
|
import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
@@ -29,6 +31,7 @@ import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeServi
|
|
|
29
31
|
import { ViewPane, ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
30
32
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
31
33
|
import { renderViewTree, AbstractExpressionDataSource, AbstractExpressionsRenderer, renderExpressionValue, renderVariable } from 'vscode/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
34
|
+
import { COPY_VALUE_LABEL, COPY_VALUE_ID, COPY_EVALUATE_PATH_LABEL, COPY_EVALUATE_PATH_ID, ADD_TO_WATCH_LABEL, ADD_TO_WATCH_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
32
35
|
import { LinkDetector } from './linkDetector.js';
|
|
33
36
|
import { CONTEXT_VARIABLES_FOCUSED, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, VARIABLES_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
34
37
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
@@ -41,19 +44,20 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
|
|
|
41
44
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
42
45
|
|
|
43
46
|
var VisualizedVariableRenderer_1, VariablesRenderer_1;
|
|
47
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/variablesView";
|
|
44
48
|
const $ = $$1;
|
|
45
49
|
let forgetScopes = true;
|
|
46
50
|
let variableInternalContext;
|
|
47
51
|
let dataBreakpointInfoResponse;
|
|
48
52
|
let VariablesView = class VariablesView extends ViewPane {
|
|
49
|
-
constructor(options, contextMenuService, debugService, keybindingService, configurationService, instantiationService, viewDescriptorService, contextKeyService, openerService, themeService, telemetryService, menuService) {
|
|
50
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
53
|
+
constructor(options, contextMenuService, debugService, keybindingService, configurationService, instantiationService, viewDescriptorService, contextKeyService, openerService, themeService, telemetryService, hoverService, menuService) {
|
|
54
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
51
55
|
this.debugService = debugService;
|
|
52
56
|
this.menuService = menuService;
|
|
53
57
|
this.needsRefresh = false;
|
|
54
|
-
this.savedViewState = ( new Map());
|
|
55
|
-
this.autoExpandedScopes = ( new Set());
|
|
56
|
-
this.updateTreeScheduler = ( new RunOnceScheduler(async () => {
|
|
58
|
+
this.savedViewState = ( (new Map()));
|
|
59
|
+
this.autoExpandedScopes = ( (new Set()));
|
|
60
|
+
this.updateTreeScheduler = ( (new RunOnceScheduler(async () => {
|
|
57
61
|
const stackFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
58
62
|
this.needsRefresh = false;
|
|
59
63
|
const input = this.tree.getInput();
|
|
@@ -72,7 +76,7 @@ let VariablesView = class VariablesView extends ViewPane {
|
|
|
72
76
|
this.autoExpandedScopes.add(toExpand.getId());
|
|
73
77
|
await this.tree.expand(toExpand);
|
|
74
78
|
}
|
|
75
|
-
}, 400));
|
|
79
|
+
}, 400)));
|
|
76
80
|
}
|
|
77
81
|
renderBody(container) {
|
|
78
82
|
super.renderBody(container);
|
|
@@ -80,18 +84,16 @@ let VariablesView = class VariablesView extends ViewPane {
|
|
|
80
84
|
container.classList.add('debug-variables');
|
|
81
85
|
const treeContainer = renderViewTree(container);
|
|
82
86
|
const linkDetector = this.instantiationService.createInstance(LinkDetector);
|
|
83
|
-
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'VariablesView', treeContainer, ( new VariablesDelegate()), [
|
|
87
|
+
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'VariablesView', treeContainer, ( (new VariablesDelegate())), [
|
|
84
88
|
this.instantiationService.createInstance(VariablesRenderer, linkDetector),
|
|
85
89
|
this.instantiationService.createInstance(VisualizedVariableRenderer, linkDetector),
|
|
86
|
-
( new ScopesRenderer()),
|
|
87
|
-
( new ScopeErrorRenderer()),
|
|
90
|
+
( (new ScopesRenderer())),
|
|
91
|
+
( (new ScopeErrorRenderer())),
|
|
88
92
|
], this.instantiationService.createInstance(VariablesDataSource), {
|
|
89
|
-
accessibilityProvider: ( new VariablesAccessibilityProvider()),
|
|
93
|
+
accessibilityProvider: ( (new VariablesAccessibilityProvider())),
|
|
90
94
|
identityProvider: { getId: (element) => element.getId() },
|
|
91
95
|
keyboardNavigationLabelProvider: { getKeyboardNavigationLabel: (e) => e.name },
|
|
92
|
-
overrideStyles:
|
|
93
|
-
listBackground: this.getBackgroundColor()
|
|
94
|
-
}
|
|
96
|
+
overrideStyles: this.getLocationBasedColors().listOverrideStyles
|
|
95
97
|
});
|
|
96
98
|
this._register(VisualizedVariableRenderer.rendererOnVisualizationRange(this.debugService.getViewModel(), this.tree));
|
|
97
99
|
this.tree.setInput(this.debugService.getViewModel().focusedStackFrame ?? null);
|
|
@@ -180,25 +182,26 @@ let VariablesView = class VariablesView extends ViewPane {
|
|
|
180
182
|
return openContextMenuForVariableTreeElement(this.contextKeyService, this.menuService, this.contextMenuService, MenuId.DebugVariablesContext, e);
|
|
181
183
|
}
|
|
182
184
|
};
|
|
183
|
-
VariablesView = ( __decorate([
|
|
184
|
-
( __param(1, IContextMenuService)),
|
|
185
|
-
( __param(2, IDebugService)),
|
|
186
|
-
( __param(3, IKeybindingService)),
|
|
187
|
-
( __param(4, IConfigurationService)),
|
|
188
|
-
( __param(5, IInstantiationService)),
|
|
189
|
-
( __param(6, IViewDescriptorService)),
|
|
190
|
-
( __param(7, IContextKeyService)),
|
|
191
|
-
( __param(8, IOpenerService)),
|
|
192
|
-
( __param(9, IThemeService)),
|
|
193
|
-
( __param(10, ITelemetryService)),
|
|
194
|
-
( __param(11,
|
|
195
|
-
|
|
185
|
+
VariablesView = ( (__decorate([
|
|
186
|
+
( (__param(1, IContextMenuService))),
|
|
187
|
+
( (__param(2, IDebugService))),
|
|
188
|
+
( (__param(3, IKeybindingService))),
|
|
189
|
+
( (__param(4, IConfigurationService))),
|
|
190
|
+
( (__param(5, IInstantiationService))),
|
|
191
|
+
( (__param(6, IViewDescriptorService))),
|
|
192
|
+
( (__param(7, IContextKeyService))),
|
|
193
|
+
( (__param(8, IOpenerService))),
|
|
194
|
+
( (__param(9, IThemeService))),
|
|
195
|
+
( (__param(10, ITelemetryService))),
|
|
196
|
+
( (__param(11, IHoverService))),
|
|
197
|
+
( (__param(12, IMenuService)))
|
|
198
|
+
], VariablesView)));
|
|
196
199
|
async function openContextMenuForVariableTreeElement(parentContextKeyService, menuService, contextMenuService, menuId, e) {
|
|
197
200
|
const variable = e.element;
|
|
198
201
|
if (!(variable instanceof Variable) || !variable.value) {
|
|
199
202
|
return;
|
|
200
203
|
}
|
|
201
|
-
const toDispose = ( new DisposableStore());
|
|
204
|
+
const toDispose = ( (new DisposableStore()));
|
|
202
205
|
try {
|
|
203
206
|
const contextKeyService = await getContextForVariableMenuWithDataAccess(parentContextKeyService, variable);
|
|
204
207
|
const menu = toDispose.add(menuService.createMenu(menuId, contextKeyService));
|
|
@@ -298,7 +301,7 @@ class ScopesRenderer {
|
|
|
298
301
|
}
|
|
299
302
|
renderTemplate(container) {
|
|
300
303
|
const name = append(container, $('.scope'));
|
|
301
|
-
const label = ( new HighlightedLabel(name));
|
|
304
|
+
const label = ( (new HighlightedLabel(name)));
|
|
302
305
|
return { name, label };
|
|
303
306
|
}
|
|
304
307
|
renderElement(element, index, templateData) {
|
|
@@ -336,8 +339,8 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
336
339
|
tree.updateChildren(parent, false, false);
|
|
337
340
|
});
|
|
338
341
|
}
|
|
339
|
-
constructor(linkDetector, debugService, contextViewService, menuService, contextKeyService) {
|
|
340
|
-
super(debugService, contextViewService);
|
|
342
|
+
constructor(linkDetector, debugService, contextViewService, hoverService, menuService, contextKeyService) {
|
|
343
|
+
super(debugService, contextViewService, hoverService);
|
|
341
344
|
this.linkDetector = linkDetector;
|
|
342
345
|
this.menuService = menuService;
|
|
343
346
|
this.contextKeyService = contextKeyService;
|
|
@@ -358,20 +361,16 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
358
361
|
renderExpressionValue(viz, data.value, {
|
|
359
362
|
showChanged: false,
|
|
360
363
|
maxValueLength: 1024,
|
|
361
|
-
|
|
364
|
+
hover: data.elementDisposable,
|
|
362
365
|
colorize: true,
|
|
363
366
|
linkDetector: this.linkDetector
|
|
364
|
-
});
|
|
367
|
+
}, this.hoverService);
|
|
365
368
|
}
|
|
366
369
|
getInputBoxOptions(expression) {
|
|
367
370
|
const viz = expression;
|
|
368
371
|
return {
|
|
369
372
|
initialValue: expression.value,
|
|
370
|
-
ariaLabel: ( localizeWithPath(
|
|
371
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
372
|
-
'variableValueAriaLabel',
|
|
373
|
-
"Type new variable value"
|
|
374
|
-
)),
|
|
373
|
+
ariaLabel: ( localizeWithPath(_moduleId, 0, "Type new variable value")),
|
|
375
374
|
validationOptions: {
|
|
376
375
|
validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
|
|
377
376
|
},
|
|
@@ -394,11 +393,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
394
393
|
const context = viz.original ? getVariablesContext(viz.original) : undefined;
|
|
395
394
|
createAndFillInContextMenuActions(menu, { arg: context, shouldForwardArgs: false }, { primary, secondary: [] }, 'inline');
|
|
396
395
|
if (viz.original) {
|
|
397
|
-
const action = ( new Action('debugViz', ( localizeWithPath(
|
|
398
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
399
|
-
'removeVisualizer',
|
|
400
|
-
'Remove Visualizer'
|
|
401
|
-
)), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined)));
|
|
396
|
+
const action = ( (new Action('debugViz', ( localizeWithPath(_moduleId, 1, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined))));
|
|
402
397
|
action.checked = true;
|
|
403
398
|
primary.push(action);
|
|
404
399
|
actionBar.domNode.style.display = 'initial';
|
|
@@ -408,28 +403,30 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
408
403
|
actionBar.push(primary, { icon: true, label: false });
|
|
409
404
|
}
|
|
410
405
|
};
|
|
411
|
-
VisualizedVariableRenderer = VisualizedVariableRenderer_1 = ( __decorate([
|
|
412
|
-
( __param(1, IDebugService)),
|
|
413
|
-
( __param(2, IContextViewService)),
|
|
414
|
-
( __param(3,
|
|
415
|
-
( __param(4,
|
|
416
|
-
|
|
406
|
+
VisualizedVariableRenderer = VisualizedVariableRenderer_1 = ( (__decorate([
|
|
407
|
+
( (__param(1, IDebugService))),
|
|
408
|
+
( (__param(2, IContextViewService))),
|
|
409
|
+
( (__param(3, IHoverService))),
|
|
410
|
+
( (__param(4, IMenuService))),
|
|
411
|
+
( (__param(5, IContextKeyService)))
|
|
412
|
+
], VisualizedVariableRenderer)));
|
|
417
413
|
let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRenderer {
|
|
418
414
|
static { VariablesRenderer_1 = this; }
|
|
419
415
|
static { this.ID = 'variable'; }
|
|
420
|
-
constructor(linkDetector, menuService, contextKeyService, visualization, contextMenuService, debugService, contextViewService) {
|
|
421
|
-
super(debugService, contextViewService);
|
|
416
|
+
constructor(linkDetector, menuService, contextKeyService, visualization, contextMenuService, commandService, debugService, contextViewService, hoverService) {
|
|
417
|
+
super(debugService, contextViewService, hoverService);
|
|
422
418
|
this.linkDetector = linkDetector;
|
|
423
419
|
this.menuService = menuService;
|
|
424
420
|
this.contextKeyService = contextKeyService;
|
|
425
421
|
this.visualization = visualization;
|
|
426
422
|
this.contextMenuService = contextMenuService;
|
|
423
|
+
this.commandService = commandService;
|
|
427
424
|
}
|
|
428
425
|
get templateId() {
|
|
429
426
|
return VariablesRenderer_1.ID;
|
|
430
427
|
}
|
|
431
428
|
renderExpression(expression, data, highlights) {
|
|
432
|
-
renderVariable(expression, data, true, highlights, this.linkDetector);
|
|
429
|
+
renderVariable(data.elementDisposable, this.commandService, this.hoverService, expression, data, true, highlights, this.linkDetector);
|
|
433
430
|
}
|
|
434
431
|
renderElement(node, index, data) {
|
|
435
432
|
super.renderExpressionElement(node.element, node, data);
|
|
@@ -438,11 +435,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
438
435
|
const variable = expression;
|
|
439
436
|
return {
|
|
440
437
|
initialValue: expression.value,
|
|
441
|
-
ariaLabel: ( localizeWithPath(
|
|
442
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
443
|
-
'variableValueAriaLabel',
|
|
444
|
-
"Type new variable value"
|
|
445
|
-
)),
|
|
438
|
+
ariaLabel: ( localizeWithPath(_moduleId, 0, "Type new variable value")),
|
|
446
439
|
validationOptions: {
|
|
447
440
|
validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
|
|
448
441
|
},
|
|
@@ -469,28 +462,24 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
469
462
|
actionBar.clear();
|
|
470
463
|
actionBar.context = context;
|
|
471
464
|
actionBar.push(primary, { icon: true, label: false });
|
|
472
|
-
const cts = ( new CancellationTokenSource());
|
|
465
|
+
const cts = ( (new CancellationTokenSource()));
|
|
473
466
|
data.elementDisposable.add(toDisposable(() => cts.dispose(true)));
|
|
474
467
|
this.visualization.getApplicableFor(expression, cts.token).then(result => {
|
|
475
468
|
data.elementDisposable.add(result);
|
|
476
469
|
const originalExpression = (expression instanceof VisualizedExpression && expression.original) || expression;
|
|
477
|
-
const actions = ( result.object.map(v => ( new Action(
|
|
470
|
+
const actions = ( (result.object.map(v => ( (new Action(
|
|
478
471
|
'debugViz',
|
|
479
472
|
v.name,
|
|
480
473
|
v.iconClass || 'debug-viz-icon',
|
|
481
474
|
undefined,
|
|
482
475
|
this.useVisualizer(v, originalExpression, cts.token)
|
|
483
|
-
))));
|
|
476
|
+
))))));
|
|
484
477
|
if (actions.length === 0) ;
|
|
485
478
|
else if (actions.length === 1) {
|
|
486
479
|
actionBar.push(actions[0], { icon: true, label: false });
|
|
487
480
|
}
|
|
488
481
|
else {
|
|
489
|
-
actionBar.push(( new Action('debugViz', ( localizeWithPath(
|
|
490
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
491
|
-
'useVisualizer',
|
|
492
|
-
'Visualize Variable...'
|
|
493
|
-
)), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data))), { icon: true, label: false });
|
|
482
|
+
actionBar.push(( (new Action('debugViz', ( localizeWithPath(_moduleId, 2, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data)))), { icon: true, label: false });
|
|
494
483
|
}
|
|
495
484
|
});
|
|
496
485
|
}
|
|
@@ -518,39 +507,26 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
518
507
|
};
|
|
519
508
|
}
|
|
520
509
|
};
|
|
521
|
-
VariablesRenderer = VariablesRenderer_1 = ( __decorate([
|
|
522
|
-
( __param(1, IMenuService)),
|
|
523
|
-
( __param(2, IContextKeyService)),
|
|
524
|
-
( __param(3, IDebugVisualizerService)),
|
|
525
|
-
( __param(4, IContextMenuService)),
|
|
526
|
-
( __param(5,
|
|
527
|
-
( __param(6,
|
|
528
|
-
|
|
510
|
+
VariablesRenderer = VariablesRenderer_1 = ( (__decorate([
|
|
511
|
+
( (__param(1, IMenuService))),
|
|
512
|
+
( (__param(2, IContextKeyService))),
|
|
513
|
+
( (__param(3, IDebugVisualizerService))),
|
|
514
|
+
( (__param(4, IContextMenuService))),
|
|
515
|
+
( (__param(5, ICommandService))),
|
|
516
|
+
( (__param(6, IDebugService))),
|
|
517
|
+
( (__param(7, IContextViewService))),
|
|
518
|
+
( (__param(8, IHoverService)))
|
|
519
|
+
], VariablesRenderer)));
|
|
529
520
|
class VariablesAccessibilityProvider {
|
|
530
521
|
getWidgetAriaLabel() {
|
|
531
|
-
return ( localizeWithPath(
|
|
532
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
533
|
-
'variablesAriaTreeLabel',
|
|
534
|
-
"Debug Variables"
|
|
535
|
-
));
|
|
522
|
+
return ( localizeWithPath(_moduleId, 3, "Debug Variables"));
|
|
536
523
|
}
|
|
537
524
|
getAriaLabel(element) {
|
|
538
525
|
if (element instanceof Scope) {
|
|
539
|
-
return ( localizeWithPath(
|
|
540
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
541
|
-
'variableScopeAriaLabel',
|
|
542
|
-
"Scope {0}",
|
|
543
|
-
element.name
|
|
544
|
-
));
|
|
526
|
+
return ( localizeWithPath(_moduleId, 4, "Scope {0}", element.name));
|
|
545
527
|
}
|
|
546
528
|
if (element instanceof Variable) {
|
|
547
|
-
return ( localizeWithPath(
|
|
548
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
549
|
-
{ key: 'variableAriaLabel', comment: ['Placeholders are variable name and variable value respectivly. They should not be translated.'] },
|
|
550
|
-
"{0}, value {1}",
|
|
551
|
-
element.name,
|
|
552
|
-
element.value
|
|
553
|
-
));
|
|
529
|
+
return ( localizeWithPath(_moduleId, 5, "{0}, value {1}", element.name, element.value));
|
|
554
530
|
}
|
|
555
531
|
return null;
|
|
556
532
|
}
|
|
@@ -563,8 +539,10 @@ CommandsRegistry.registerCommand({
|
|
|
563
539
|
debugService.getViewModel().setSelectedExpression(variableInternalContext, false);
|
|
564
540
|
}
|
|
565
541
|
});
|
|
566
|
-
const COPY_VALUE_ID = 'workbench.debug.viewlet.action.copyValue';
|
|
567
542
|
CommandsRegistry.registerCommand({
|
|
543
|
+
metadata: {
|
|
544
|
+
description: COPY_VALUE_LABEL,
|
|
545
|
+
},
|
|
568
546
|
id: COPY_VALUE_ID,
|
|
569
547
|
handler: async (accessor, arg, ctx) => {
|
|
570
548
|
const debugService = accessor.get(IDebugService);
|
|
@@ -585,18 +563,18 @@ CommandsRegistry.registerCommand({
|
|
|
585
563
|
return;
|
|
586
564
|
}
|
|
587
565
|
const evalContext = session.capabilities.supportsClipboardContext ? 'clipboard' : elementContext;
|
|
588
|
-
const toEvaluate = ( elements.map(
|
|
566
|
+
const toEvaluate = ( (elements.map(
|
|
589
567
|
element => element instanceof Variable ? (element.evaluateName || element.value) : element.name
|
|
590
|
-
));
|
|
568
|
+
)));
|
|
591
569
|
try {
|
|
592
|
-
const evaluations = await Promise.all(( toEvaluate.map(expr => session.evaluate(expr, stackFrame.frameId, evalContext))));
|
|
593
|
-
const result = ( coalesce(evaluations).map(evaluation => evaluation.body.result));
|
|
570
|
+
const evaluations = await Promise.all(( (toEvaluate.map(expr => session.evaluate(expr, stackFrame.frameId, evalContext)))));
|
|
571
|
+
const result = ( (coalesce(evaluations).map(evaluation => evaluation.body.result)));
|
|
594
572
|
if (result.length) {
|
|
595
573
|
clipboardService.writeText(result.join('\n'));
|
|
596
574
|
}
|
|
597
575
|
}
|
|
598
576
|
catch (e) {
|
|
599
|
-
const result = ( elements.map(element => element.value));
|
|
577
|
+
const result = ( (elements.map(element => element.value)));
|
|
600
578
|
clipboardService.writeText(result.join('\n'));
|
|
601
579
|
}
|
|
602
580
|
}
|
|
@@ -651,11 +629,7 @@ CommandsRegistry.registerCommand({
|
|
|
651
629
|
async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
|
|
652
630
|
try {
|
|
653
631
|
await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
|
|
654
|
-
justification: ( localizeWithPath(
|
|
655
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
656
|
-
"viewMemory.prompt",
|
|
657
|
-
"Inspecting binary data requires this extension."
|
|
658
|
-
)),
|
|
632
|
+
justification: ( localizeWithPath(_moduleId, 6, "Inspecting binary data requires this extension.")),
|
|
659
633
|
enable: true
|
|
660
634
|
}, 15 );
|
|
661
635
|
return true;
|
|
@@ -695,16 +669,20 @@ CommandsRegistry.registerCommand({
|
|
|
695
669
|
}
|
|
696
670
|
}
|
|
697
671
|
});
|
|
698
|
-
const COPY_EVALUATE_PATH_ID = 'debug.copyEvaluatePath';
|
|
699
672
|
CommandsRegistry.registerCommand({
|
|
673
|
+
metadata: {
|
|
674
|
+
description: COPY_EVALUATE_PATH_LABEL,
|
|
675
|
+
},
|
|
700
676
|
id: COPY_EVALUATE_PATH_ID,
|
|
701
677
|
handler: async (accessor, context) => {
|
|
702
678
|
const clipboardService = accessor.get(IClipboardService);
|
|
703
679
|
await clipboardService.writeText(context.variable.evaluateName);
|
|
704
680
|
}
|
|
705
681
|
});
|
|
706
|
-
const ADD_TO_WATCH_ID = 'debug.addToWatchExpressions';
|
|
707
682
|
CommandsRegistry.registerCommand({
|
|
683
|
+
metadata: {
|
|
684
|
+
description: ADD_TO_WATCH_LABEL,
|
|
685
|
+
},
|
|
708
686
|
id: ADD_TO_WATCH_ID,
|
|
709
687
|
handler: async (accessor, context) => {
|
|
710
688
|
const debugService = accessor.get(IDebugService);
|
|
@@ -716,17 +694,13 @@ registerAction2(class extends ViewAction {
|
|
|
716
694
|
super({
|
|
717
695
|
id: 'variables.collapse',
|
|
718
696
|
viewId: VARIABLES_VIEW_ID,
|
|
719
|
-
title: ( localizeWithPath(
|
|
720
|
-
'vs/workbench/contrib/debug/browser/variablesView',
|
|
721
|
-
'collapse',
|
|
722
|
-
"Collapse All"
|
|
723
|
-
)),
|
|
697
|
+
title: ( localizeWithPath(_moduleId, 7, "Collapse All")),
|
|
724
698
|
f1: false,
|
|
725
699
|
icon: Codicon.collapseAll,
|
|
726
700
|
menu: {
|
|
727
701
|
id: MenuId.ViewTitle,
|
|
728
702
|
group: 'navigation',
|
|
729
|
-
when: ( ContextKeyExpr.equals('view', VARIABLES_VIEW_ID))
|
|
703
|
+
when: ( (ContextKeyExpr.equals('view', VARIABLES_VIEW_ID)))
|
|
730
704
|
}
|
|
731
705
|
});
|
|
732
706
|
}
|
|
@@ -735,4 +709,4 @@ registerAction2(class extends ViewAction {
|
|
|
735
709
|
}
|
|
736
710
|
});
|
|
737
711
|
|
|
738
|
-
export {
|
|
712
|
+
export { BREAK_WHEN_VALUE_CHANGES_ID, BREAK_WHEN_VALUE_IS_ACCESSED_ID, BREAK_WHEN_VALUE_IS_READ_ID, SET_VARIABLE_ID, VIEW_MEMORY_ID, VariablesRenderer, VariablesView, VisualizedVariableRenderer, openContextMenuForVariableTreeElement };
|