@codingame/monaco-vscode-debug-service-override 8.0.3 → 9.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/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +107 -107
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +49 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +19 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +37 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +15 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +53 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +109 -82
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +8 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +80 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +12 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +7 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +19 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +29 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +11 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +21 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -233
|
@@ -33,7 +33,7 @@ import { ViewPane, ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/v
|
|
|
33
33
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
34
34
|
import { renderViewTree, AbstractExpressionDataSource, AbstractExpressionsRenderer, renderExpressionValue, renderVariable } from 'vscode/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
35
35
|
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';
|
|
36
|
-
import { LinkDetector } from '
|
|
36
|
+
import { LinkDetector } from 'vscode/vscode/vs/workbench/contrib/debug/browser/linkDetector';
|
|
37
37
|
import { CONTEXT_VARIABLES_FOCUSED, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, DebugVisualizationType, DataBreakpointSetType, VARIABLES_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
38
38
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
39
39
|
import { getContextForVariable } from '../common/debugContext.js';
|
|
@@ -353,10 +353,9 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
353
353
|
text += ':';
|
|
354
354
|
}
|
|
355
355
|
data.label.set(text, highlights, viz.name);
|
|
356
|
-
renderExpressionValue(viz, data.value, {
|
|
356
|
+
renderExpressionValue(data.elementDisposable, viz, data.value, {
|
|
357
357
|
showChanged: false,
|
|
358
358
|
maxValueLength: 1024,
|
|
359
|
-
hover: data.elementDisposable,
|
|
360
359
|
colorize: true,
|
|
361
360
|
linkDetector: this.linkDetector
|
|
362
361
|
}, this.hoverService);
|
|
@@ -365,7 +364,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
365
364
|
const viz = expression;
|
|
366
365
|
return {
|
|
367
366
|
initialValue: expression.value,
|
|
368
|
-
ariaLabel: ( localize(
|
|
367
|
+
ariaLabel: ( localize(6027, "Type new variable value")),
|
|
369
368
|
validationOptions: {
|
|
370
369
|
validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
|
|
371
370
|
},
|
|
@@ -388,7 +387,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
388
387
|
const primary = [];
|
|
389
388
|
createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
|
|
390
389
|
if (viz.original) {
|
|
391
|
-
const action = ( (new Action('debugViz', ( localize(
|
|
390
|
+
const action = ( (new Action('debugViz', ( localize(6028, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined))));
|
|
392
391
|
action.checked = true;
|
|
393
392
|
primary.push(action);
|
|
394
393
|
actionBar.domNode.style.display = 'initial';
|
|
@@ -438,7 +437,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
438
437
|
const variable = expression;
|
|
439
438
|
return {
|
|
440
439
|
initialValue: expression.value,
|
|
441
|
-
ariaLabel: ( localize(
|
|
440
|
+
ariaLabel: ( localize(6027, "Type new variable value")),
|
|
442
441
|
validationOptions: {
|
|
443
442
|
validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
|
|
444
443
|
},
|
|
@@ -482,7 +481,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
482
481
|
actionBar.push(actions[0], { icon: true, label: false });
|
|
483
482
|
}
|
|
484
483
|
else {
|
|
485
|
-
actionBar.push(( (new Action('debugViz', ( localize(
|
|
484
|
+
actionBar.push(( (new Action('debugViz', ( localize(6029, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data)))), { icon: true, label: false });
|
|
486
485
|
}
|
|
487
486
|
});
|
|
488
487
|
}
|
|
@@ -523,14 +522,14 @@ VariablesRenderer = VariablesRenderer_1 = ( (__decorate([
|
|
|
523
522
|
], VariablesRenderer)));
|
|
524
523
|
class VariablesAccessibilityProvider {
|
|
525
524
|
getWidgetAriaLabel() {
|
|
526
|
-
return ( localize(
|
|
525
|
+
return ( localize(6030, "Debug Variables"));
|
|
527
526
|
}
|
|
528
527
|
getAriaLabel(element) {
|
|
529
528
|
if (element instanceof Scope) {
|
|
530
|
-
return ( localize(
|
|
529
|
+
return ( localize(6031, "Scope {0}", element.name));
|
|
531
530
|
}
|
|
532
531
|
if (element instanceof Variable) {
|
|
533
|
-
return ( localize(
|
|
532
|
+
return ( localize(6032, "{0}, value {1}", element.name, element.value));
|
|
534
533
|
}
|
|
535
534
|
return null;
|
|
536
535
|
}
|
|
@@ -633,7 +632,7 @@ CommandsRegistry.registerCommand({
|
|
|
633
632
|
async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
|
|
634
633
|
try {
|
|
635
634
|
await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
|
|
636
|
-
justification: ( localize(
|
|
635
|
+
justification: ( localize(6033, "Inspecting binary data requires this extension.")),
|
|
637
636
|
enable: true
|
|
638
637
|
}, ProgressLocation.Notification);
|
|
639
638
|
return true;
|
|
@@ -698,7 +697,7 @@ registerAction2(class extends ViewAction {
|
|
|
698
697
|
super({
|
|
699
698
|
id: 'variables.collapse',
|
|
700
699
|
viewId: VARIABLES_VIEW_ID,
|
|
701
|
-
title: ( localize(
|
|
700
|
+
title: ( localize(6034, "Collapse All")),
|
|
702
701
|
f1: false,
|
|
703
702
|
icon: Codicon.collapseAll,
|
|
704
703
|
menu: {
|
|
@@ -22,7 +22,7 @@ import { ViewPane, ViewAction } from 'vscode/vscode/vs/workbench/browser/parts/v
|
|
|
22
22
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
23
23
|
import { renderViewTree, AbstractExpressionDataSource, AbstractExpressionsRenderer, renderExpressionValue } from 'vscode/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
24
24
|
import { watchExpressionsAdd, watchExpressionsRemoveAll } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
25
|
-
import { LinkDetector } from '
|
|
25
|
+
import { LinkDetector } from 'vscode/vscode/vs/workbench/contrib/debug/browser/linkDetector';
|
|
26
26
|
import { VariablesRenderer, VisualizedVariableRenderer } from './variablesView.js';
|
|
27
27
|
import { CONTEXT_WATCH_EXPRESSIONS_EXIST, CONTEXT_VARIABLE_IS_READONLY, CONTEXT_WATCH_ITEM_TYPE, CONTEXT_WATCH_EXPRESSIONS_FOCUSED, CONTEXT_CAN_VIEW_MEMORY, WATCH_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
28
28
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
@@ -53,8 +53,8 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
53
53
|
this.element.classList.add('debug-pane');
|
|
54
54
|
container.classList.add('debug-watch');
|
|
55
55
|
const treeContainer = renderViewTree(container);
|
|
56
|
-
const expressionsRenderer = this.instantiationService.createInstance(WatchExpressionsRenderer);
|
|
57
56
|
const linkDetector = this.instantiationService.createInstance(LinkDetector);
|
|
57
|
+
const expressionsRenderer = this.instantiationService.createInstance(WatchExpressionsRenderer, linkDetector);
|
|
58
58
|
this.tree = this.instantiationService.createInstance(WorkbenchAsyncDataTree, 'WatchExpressions', treeContainer, ( (new WatchExpressionsDelegate())), [
|
|
59
59
|
expressionsRenderer,
|
|
60
60
|
this.instantiationService.createInstance(VariablesRenderer, linkDetector),
|
|
@@ -226,8 +226,9 @@ class WatchExpressionsDataSource extends AbstractExpressionDataSource {
|
|
|
226
226
|
let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractExpressionsRenderer {
|
|
227
227
|
static { WatchExpressionsRenderer_1 = this; }
|
|
228
228
|
static { this.ID = 'watchexpression'; }
|
|
229
|
-
constructor(menuService, contextKeyService, debugService, contextViewService, hoverService, configurationService) {
|
|
229
|
+
constructor(linkDetector, menuService, contextKeyService, debugService, contextViewService, hoverService, configurationService) {
|
|
230
230
|
super(debugService, contextViewService, hoverService);
|
|
231
|
+
this.linkDetector = linkDetector;
|
|
231
232
|
this.menuService = menuService;
|
|
232
233
|
this.contextKeyService = contextKeyService;
|
|
233
234
|
this.configurationService = configurationService;
|
|
@@ -270,10 +271,10 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
270
271
|
title = expression.value;
|
|
271
272
|
}
|
|
272
273
|
data.label.set(text, highlights, title);
|
|
273
|
-
renderExpressionValue(expression, data.value, {
|
|
274
|
+
renderExpressionValue(data.elementDisposable, expression, data.value, {
|
|
274
275
|
showChanged: true,
|
|
275
276
|
maxValueLength: MAX_VALUE_RENDER_LENGTH_IN_VIEWLET,
|
|
276
|
-
|
|
277
|
+
linkDetector: this.linkDetector,
|
|
277
278
|
colorize: true
|
|
278
279
|
}, this.hoverService);
|
|
279
280
|
}
|
|
@@ -281,7 +282,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
281
282
|
if (settingValue) {
|
|
282
283
|
return {
|
|
283
284
|
initialValue: expression.value,
|
|
284
|
-
ariaLabel: ( localize(
|
|
285
|
+
ariaLabel: ( localize(6035, "Type new value")),
|
|
285
286
|
onFinish: async (value, success) => {
|
|
286
287
|
if (success && value) {
|
|
287
288
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -295,8 +296,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
295
296
|
}
|
|
296
297
|
return {
|
|
297
298
|
initialValue: expression.name ? expression.name : '',
|
|
298
|
-
ariaLabel: ( localize(
|
|
299
|
-
placeholder: ( localize(
|
|
299
|
+
ariaLabel: ( localize(6036, "Type watch expression")),
|
|
300
|
+
placeholder: ( localize(6037, "Expression to watch")),
|
|
300
301
|
onFinish: (value, success) => {
|
|
301
302
|
if (success && value) {
|
|
302
303
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -322,12 +323,12 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
322
323
|
}
|
|
323
324
|
};
|
|
324
325
|
WatchExpressionsRenderer = WatchExpressionsRenderer_1 = ( (__decorate([
|
|
325
|
-
( (__param(
|
|
326
|
-
( (__param(
|
|
327
|
-
( (__param(
|
|
328
|
-
( (__param(
|
|
329
|
-
( (__param(
|
|
330
|
-
( (__param(
|
|
326
|
+
( (__param(1, IMenuService))),
|
|
327
|
+
( (__param(2, IContextKeyService))),
|
|
328
|
+
( (__param(3, IDebugService))),
|
|
329
|
+
( (__param(4, IContextViewService))),
|
|
330
|
+
( (__param(5, IHoverService))),
|
|
331
|
+
( (__param(6, IConfigurationService)))
|
|
331
332
|
], WatchExpressionsRenderer)));
|
|
332
333
|
function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
333
334
|
return parentContext.createOverlay([
|
|
@@ -337,13 +338,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
|
337
338
|
}
|
|
338
339
|
class WatchExpressionsAccessibilityProvider {
|
|
339
340
|
getWidgetAriaLabel() {
|
|
340
|
-
return ( localize(
|
|
341
|
+
return ( localize(6038, "Debug Watch Expressions"));
|
|
341
342
|
}
|
|
342
343
|
getAriaLabel(element) {
|
|
343
344
|
if (element instanceof Expression) {
|
|
344
|
-
return ( localize(
|
|
345
|
+
return ( localize(6039, "{0}, value {1}", element.name, element.value));
|
|
345
346
|
}
|
|
346
|
-
return ( localize(
|
|
347
|
+
return ( localize(6040, "{0}, value {1}", element.name, element.value));
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
350
|
class WatchExpressionsDragAndDrop {
|
|
@@ -424,7 +425,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
424
425
|
super({
|
|
425
426
|
id: 'watch.collapse',
|
|
426
427
|
viewId: WATCH_VIEW_ID,
|
|
427
|
-
title: ( localize(
|
|
428
|
+
title: ( localize(6041, "Collapse All")),
|
|
428
429
|
f1: false,
|
|
429
430
|
icon: Codicon.collapseAll,
|
|
430
431
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -441,7 +442,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
441
442
|
}
|
|
442
443
|
});
|
|
443
444
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
444
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
445
|
+
const ADD_WATCH_LABEL = ( localize(6042, "Add Expression"));
|
|
445
446
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
446
447
|
constructor() {
|
|
447
448
|
super({
|
|
@@ -462,7 +463,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
462
463
|
}
|
|
463
464
|
});
|
|
464
465
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
465
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
466
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(6043, "Remove All Expressions"));
|
|
466
467
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
467
468
|
constructor() {
|
|
468
469
|
super({
|
|
@@ -31,7 +31,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( (new RawContextKey(debugStartLanguageKey,
|
|
|
31
31
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( (new RawContextKey('debuggerInterestedInActiveEditor', false)));
|
|
32
32
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
33
33
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
34
|
-
static { this.LABEL = ( localize2(
|
|
34
|
+
static { this.LABEL = ( localize2(6044, "Run")); }
|
|
35
35
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, telemetryService, hoverService) {
|
|
36
36
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
37
37
|
this.debugService = debugService;
|
|
@@ -102,7 +102,7 @@ WelcomeView = ( (__decorate([
|
|
|
102
102
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
103
103
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
104
104
|
content: ( localize(
|
|
105
|
-
|
|
105
|
+
6045,
|
|
106
106
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
107
107
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
|
|
108
108
|
)),
|
|
@@ -114,20 +114,20 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
114
114
|
});
|
|
115
115
|
let debugKeybindingLabel = '';
|
|
116
116
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
117
|
-
content: `[${( localize(
|
|
117
|
+
content: `[${( localize(6046, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
118
118
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
119
119
|
group: ViewContentGroups.Debug,
|
|
120
120
|
order: 1
|
|
121
121
|
});
|
|
122
122
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
123
|
-
content: `[${( localize(
|
|
123
|
+
content: `[${( localize(6047, "Show all automatic debug configurations"))}](command:${SELECT_AND_START_ID}).`,
|
|
124
124
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
125
125
|
group: ViewContentGroups.Debug,
|
|
126
126
|
order: 10
|
|
127
127
|
});
|
|
128
128
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
129
129
|
content: ( localize(
|
|
130
|
-
|
|
130
|
+
6048,
|
|
131
131
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
132
132
|
DEBUG_CONFIGURE_COMMAND_ID
|
|
133
133
|
)),
|
|
@@ -139,7 +139,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
139
139
|
});
|
|
140
140
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
141
141
|
content: ( localize(
|
|
142
|
-
|
|
142
|
+
6049,
|
|
143
143
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
144
144
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
|
|
145
145
|
)),
|
|
@@ -151,7 +151,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
151
151
|
});
|
|
152
152
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
153
153
|
content: ( localize(
|
|
154
|
-
|
|
154
|
+
6050,
|
|
155
155
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
156
156
|
)),
|
|
157
157
|
when: ( (CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated())),
|
|
@@ -4,6 +4,7 @@ import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/life
|
|
|
4
4
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
5
5
|
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
6
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
|
+
import { Expression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
|
|
7
8
|
|
|
8
9
|
let DebugWatchAccessibilityAnnouncer = class DebugWatchAccessibilityAnnouncer extends Disposable {
|
|
9
10
|
static { this.ID = 'workbench.contrib.debugWatchAccessibilityAnnouncer'; }
|
|
@@ -25,7 +26,7 @@ let DebugWatchAccessibilityAnnouncer = class DebugWatchAccessibilityAnnouncer ex
|
|
|
25
26
|
const value = this._configurationService.getValue('accessibility.debugWatchVariableAnnouncements');
|
|
26
27
|
if (value && !this._listener.value) {
|
|
27
28
|
this._listener.value = this._debugService.getModel().onDidChangeWatchExpressionValue((e) => {
|
|
28
|
-
if (!e || e.value ===
|
|
29
|
+
if (!e || e.value === Expression.DEFAULT_VALUE) {
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
32
|
this._accessibilityService.alert(`${e.name} = ${e.value}`);
|
|
@@ -49,14 +49,14 @@ let DebugContentProvider = class DebugContentProvider {
|
|
|
49
49
|
session = this.debugService.getViewModel().focusedSession;
|
|
50
50
|
}
|
|
51
51
|
if (!session) {
|
|
52
|
-
return Promise.reject(( (new ErrorNoTelemetry(( localize(
|
|
52
|
+
return Promise.reject(( (new ErrorNoTelemetry(( localize(6051, "Unable to resolve the resource without a debug session"))))));
|
|
53
53
|
}
|
|
54
54
|
const createErrModel = (errMsg) => {
|
|
55
55
|
this.debugService.sourceIsNotAvailable(resource);
|
|
56
56
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
57
57
|
const message = errMsg
|
|
58
|
-
? ( localize(
|
|
59
|
-
: ( localize(
|
|
58
|
+
? ( localize(6052, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
59
|
+
: ( localize(6053, "Could not load source '{0}'.", resource.path));
|
|
60
60
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
61
61
|
};
|
|
62
62
|
return session.loadSource(resource).then(response => {
|
|
@@ -30,20 +30,20 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
30
30
|
let message;
|
|
31
31
|
if (numSessions === 1) {
|
|
32
32
|
message = ( localize(
|
|
33
|
-
|
|
33
|
+
6054,
|
|
34
34
|
"There is an active debug session, are you sure you want to stop it?"
|
|
35
35
|
));
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
38
|
message = ( localize(
|
|
39
|
-
|
|
39
|
+
6055,
|
|
40
40
|
"There are active debug sessions, are you sure you want to stop them?"
|
|
41
41
|
));
|
|
42
42
|
}
|
|
43
43
|
const res = await this.dialogService.confirm({
|
|
44
44
|
message,
|
|
45
45
|
type: 'warning',
|
|
46
|
-
primaryButton: ( localize(
|
|
46
|
+
primaryButton: ( localize(6056, "&&Stop Debugging"))
|
|
47
47
|
});
|
|
48
48
|
return !res.confirmed;
|
|
49
49
|
}
|