@codingame/monaco-vscode-debug-service-override 7.0.11 → 7.1.1

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.
Files changed (39) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +21 -25
  3. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +155 -174
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +32 -9
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +16 -25
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -9
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -3
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -26
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -4
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -13
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -10
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +38 -73
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +69 -129
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +19 -0
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +4 -5
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +20 -25
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +6 -7
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +7 -13
  19. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -9
  20. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +5 -6
  21. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +4 -5
  22. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +8 -14
  23. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +7 -9
  24. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +52 -23
  25. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +104 -0
  26. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +122 -0
  27. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +7 -9
  28. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +128 -0
  29. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +8 -16
  30. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +25 -32
  31. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +13 -14
  32. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +12 -17
  33. package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +47 -0
  34. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +4 -5
  35. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +6 -9
  36. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +63 -98
  37. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +15 -25
  38. package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +33 -0
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +3 -4
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { registerColor, transparent, asCssVariableName, asCssVariable } from 'vscode/vscode/vs/platform/theme/common/colorUtils';
4
4
  import 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
5
5
  import 'vscode/vscode/vs/platform/theme/common/colors/chartsColors';
@@ -20,15 +20,13 @@ import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar
20
20
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
21
21
  import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService.service';
22
22
 
23
- const _moduleId = "vs/workbench/contrib/debug/browser/statusbarColorProvider";
24
23
  const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackground', {
25
24
  dark: '#CC6633',
26
25
  light: '#CC6633',
27
26
  hcDark: '#BA592C',
28
27
  hcLight: '#B5200D'
29
- }, ( localizeWithPath(
30
- _moduleId,
31
- 0,
28
+ }, ( localize(
29
+ 6085,
32
30
  "Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
33
31
  )));
34
32
  const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
@@ -36,21 +34,15 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
36
34
  light: STATUS_BAR_FOREGROUND,
37
35
  hcDark: STATUS_BAR_FOREGROUND,
38
36
  hcLight: '#FFFFFF'
39
- }, ( localizeWithPath(
40
- _moduleId,
41
- 1,
37
+ }, ( localize(
38
+ 6086,
42
39
  "Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
43
40
  )));
44
- const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localizeWithPath(
45
- _moduleId,
46
- 2,
41
+ const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
42
+ 6087,
47
43
  "Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window"
48
44
  )));
49
- const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localizeWithPath(
50
- _moduleId,
51
- 3,
52
- "Command center background color when a program is being debugged"
53
- )), true);
45
+ const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localize(6088, "Command center background color when a program is being debugged")), true);
54
46
  let StatusBarColorProvider = class StatusBarColorProvider {
55
47
  set enabled(enabled) {
56
48
  if (enabled === !!this.disposable) {
@@ -7,9 +7,9 @@ import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
7
7
  import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
8
8
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
9
9
  import { createMatches } from 'vscode/vscode/vs/base/common/filters';
10
- import { DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
10
+ import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
11
11
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
12
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
12
+ import { localize } from 'vscode/vscode/vs/nls';
13
13
  import { createAndFillInContextMenuActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
14
14
  import { MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
15
15
  import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
@@ -45,7 +45,6 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
45
45
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
46
46
 
47
47
  var VisualizedVariableRenderer_1, VariablesRenderer_1;
48
- const _moduleId = "vs/workbench/contrib/debug/browser/variablesView";
49
48
  const $ = $$1;
50
49
  let forgetScopes = true;
51
50
  let variableInternalContext;
@@ -202,21 +201,15 @@ async function openContextMenuForVariableTreeElement(parentContextKeyService, me
202
201
  if (!(variable instanceof Variable) || !variable.value) {
203
202
  return;
204
203
  }
205
- const toDispose = ( (new DisposableStore()));
206
- try {
207
- const contextKeyService = await getContextForVariableMenuWithDataAccess(parentContextKeyService, variable);
208
- const menu = toDispose.add(menuService.createMenu(menuId, contextKeyService));
209
- const context = getVariablesContext(variable);
210
- const secondary = [];
211
- createAndFillInContextMenuActions(menu, { arg: context, shouldForwardArgs: false }, { primary: [], secondary }, 'inline');
212
- contextMenuService.showContextMenu({
213
- getAnchor: () => e.anchor,
214
- getActions: () => secondary
215
- });
216
- }
217
- finally {
218
- toDispose.dispose();
219
- }
204
+ const contextKeyService = await getContextForVariableMenuWithDataAccess(parentContextKeyService, variable);
205
+ const context = getVariablesContext(variable);
206
+ const menu = menuService.getMenuActions(menuId, contextKeyService, { arg: context, shouldForwardArgs: false });
207
+ const secondary = [];
208
+ createAndFillInContextMenuActions(menu, { primary: [], secondary }, 'inline');
209
+ contextMenuService.showContextMenu({
210
+ getAnchor: () => e.anchor,
211
+ getActions: () => secondary
212
+ });
220
213
  }
221
214
  const getVariablesContext = (variable) => ({
222
215
  sessionId: variable.getSession()?.getId(),
@@ -372,7 +365,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
372
365
  const viz = expression;
373
366
  return {
374
367
  initialValue: expression.value,
375
- ariaLabel: ( localizeWithPath(_moduleId, 0, "Type new variable value")),
368
+ ariaLabel: ( localize(6089, "Type new variable value")),
376
369
  validationOptions: {
377
370
  validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
378
371
  },
@@ -390,12 +383,12 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
390
383
  renderActionBar(actionBar, expression, _data) {
391
384
  const viz = expression;
392
385
  const contextKeyService = viz.original ? getContextForVariableMenuBase(this.contextKeyService, viz.original) : this.contextKeyService;
393
- const menu = this.menuService.createMenu(MenuId.DebugVariablesContext, contextKeyService);
394
- const primary = [];
395
386
  const context = viz.original ? getVariablesContext(viz.original) : undefined;
396
- createAndFillInContextMenuActions(menu, { arg: context, shouldForwardArgs: false }, { primary, secondary: [] }, 'inline');
387
+ const menu = this.menuService.getMenuActions(MenuId.DebugVariablesContext, contextKeyService, { arg: context, shouldForwardArgs: false });
388
+ const primary = [];
389
+ createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
397
390
  if (viz.original) {
398
- const action = ( (new Action('debugViz', ( localizeWithPath(_moduleId, 1, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined))));
391
+ const action = ( (new Action('debugViz', ( localize(6090, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined))));
399
392
  action.checked = true;
400
393
  primary.push(action);
401
394
  actionBar.domNode.style.display = 'initial';
@@ -445,7 +438,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
445
438
  const variable = expression;
446
439
  return {
447
440
  initialValue: expression.value,
448
- ariaLabel: ( localizeWithPath(_moduleId, 0, "Type new variable value")),
441
+ ariaLabel: ( localize(6090, "Type new variable value")),
449
442
  validationOptions: {
450
443
  validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
451
444
  },
@@ -465,10 +458,10 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
465
458
  renderActionBar(actionBar, expression, data) {
466
459
  const variable = expression;
467
460
  const contextKeyService = getContextForVariableMenuBase(this.contextKeyService, variable);
468
- const menu = this.menuService.createMenu(MenuId.DebugVariablesContext, contextKeyService);
469
461
  const primary = [];
470
462
  const context = getVariablesContext(variable);
471
- createAndFillInContextMenuActions(menu, { arg: context, shouldForwardArgs: false }, { primary, secondary: [] }, 'inline');
463
+ const menu = this.menuService.getMenuActions(MenuId.DebugVariablesContext, contextKeyService, { arg: context, shouldForwardArgs: false });
464
+ createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
472
465
  actionBar.clear();
473
466
  actionBar.context = context;
474
467
  actionBar.push(primary, { icon: true, label: false });
@@ -489,7 +482,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
489
482
  actionBar.push(actions[0], { icon: true, label: false });
490
483
  }
491
484
  else {
492
- actionBar.push(( (new Action('debugViz', ( localizeWithPath(_moduleId, 2, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data)))), { icon: true, label: false });
485
+ actionBar.push(( (new Action('debugViz', ( localize(6091, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data)))), { icon: true, label: false });
493
486
  }
494
487
  });
495
488
  }
@@ -530,14 +523,14 @@ VariablesRenderer = VariablesRenderer_1 = ( (__decorate([
530
523
  ], VariablesRenderer)));
531
524
  class VariablesAccessibilityProvider {
532
525
  getWidgetAriaLabel() {
533
- return ( localizeWithPath(_moduleId, 3, "Debug Variables"));
526
+ return ( localize(6092, "Debug Variables"));
534
527
  }
535
528
  getAriaLabel(element) {
536
529
  if (element instanceof Scope) {
537
- return ( localizeWithPath(_moduleId, 4, "Scope {0}", element.name));
530
+ return ( localize(6093, "Scope {0}", element.name));
538
531
  }
539
532
  if (element instanceof Variable) {
540
- return ( localizeWithPath(_moduleId, 5, "{0}, value {1}", element.name, element.value));
533
+ return ( localize(6094, "{0}, value {1}", element.name, element.value));
541
534
  }
542
535
  return null;
543
536
  }
@@ -640,7 +633,7 @@ CommandsRegistry.registerCommand({
640
633
  async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
641
634
  try {
642
635
  await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
643
- justification: ( localizeWithPath(_moduleId, 6, "Inspecting binary data requires this extension.")),
636
+ justification: ( localize(6095, "Inspecting binary data requires this extension.")),
644
637
  enable: true
645
638
  }, ProgressLocation.Notification);
646
639
  return true;
@@ -705,7 +698,7 @@ registerAction2(class extends ViewAction {
705
698
  super({
706
699
  id: 'variables.collapse',
707
700
  viewId: VARIABLES_VIEW_ID,
708
- title: ( localizeWithPath(_moduleId, 7, "Collapse All")),
701
+ title: ( localize(6096, "Collapse All")),
709
702
  f1: false,
710
703
  icon: Codicon.collapseAll,
711
704
  menu: {
@@ -3,7 +3,7 @@ import { ListDragOverEffectPosition, ListDragOverEffectType } from 'vscode/vscod
3
3
  import { ElementsDragAndDropData, ListViewTargetSector } from 'vscode/vscode/vs/base/browser/ui/list/listView';
4
4
  import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
5
5
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
6
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
6
+ import { localize } from 'vscode/vscode/vs/nls';
7
7
  import { createAndFillInContextMenuActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
8
8
  import { MenuId, registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
9
9
  import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
@@ -29,7 +29,6 @@ import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/d
29
29
  import { Expression, Variable, VisualizedExpression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
30
30
 
31
31
  var WatchExpressionsRenderer_1;
32
- const _moduleId = "vs/workbench/contrib/debug/browser/watchExpressionsView";
33
32
  const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
34
33
  let ignoreViewUpdates = false;
35
34
  let useCachedEvaluation = false;
@@ -282,7 +281,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
282
281
  if (settingValue) {
283
282
  return {
284
283
  initialValue: expression.value,
285
- ariaLabel: ( localizeWithPath(_moduleId, 0, "Type new value")),
284
+ ariaLabel: ( localize(6097, "Type new value")),
286
285
  onFinish: async (value, success) => {
287
286
  if (success && value) {
288
287
  const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
@@ -296,8 +295,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
296
295
  }
297
296
  return {
298
297
  initialValue: expression.name ? expression.name : '',
299
- ariaLabel: ( localizeWithPath(_moduleId, 1, "Type watch expression")),
300
- placeholder: ( localizeWithPath(_moduleId, 2, "Expression to watch")),
298
+ ariaLabel: ( localize(6098, "Type watch expression")),
299
+ placeholder: ( localize(6099, "Expression to watch")),
301
300
  onFinish: (value, success) => {
302
301
  if (success && value) {
303
302
  this.debugService.renameWatchExpression(expression.getId(), value);
@@ -313,10 +312,10 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
313
312
  }
314
313
  renderActionBar(actionBar, expression) {
315
314
  const contextKeyService = getContextForWatchExpressionMenu(this.contextKeyService, expression);
316
- const menu = this.menuService.createMenu(MenuId.DebugWatchContext, contextKeyService);
317
- const primary = [];
318
315
  const context = expression;
319
- createAndFillInContextMenuActions(menu, { arg: context, shouldForwardArgs: false }, { primary, secondary: [] }, 'inline');
316
+ const menu = this.menuService.getMenuActions(MenuId.DebugWatchContext, contextKeyService, { arg: context, shouldForwardArgs: false });
317
+ const primary = [];
318
+ createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
320
319
  actionBar.clear();
321
320
  actionBar.context = context;
322
321
  actionBar.push(primary, { icon: true, label: false });
@@ -338,13 +337,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
338
337
  }
339
338
  class WatchExpressionsAccessibilityProvider {
340
339
  getWidgetAriaLabel() {
341
- return ( localizeWithPath(_moduleId, 3, "Debug Watch Expressions"));
340
+ return ( localize(6100, "Debug Watch Expressions"));
342
341
  }
343
342
  getAriaLabel(element) {
344
343
  if (element instanceof Expression) {
345
- return ( localizeWithPath(_moduleId, 4, "{0}, value {1}", element.name, element.value));
344
+ return ( localize(6101, "{0}, value {1}", element.name, element.value));
346
345
  }
347
- return ( localizeWithPath(_moduleId, 5, "{0}, value {1}", element.name, element.value));
346
+ return ( localize(6102, "{0}, value {1}", element.name, element.value));
348
347
  }
349
348
  }
350
349
  class WatchExpressionsDragAndDrop {
@@ -425,7 +424,7 @@ registerAction2(class Collapse extends ViewAction {
425
424
  super({
426
425
  id: 'watch.collapse',
427
426
  viewId: WATCH_VIEW_ID,
428
- title: ( localizeWithPath(_moduleId, 6, "Collapse All")),
427
+ title: ( localize(6103, "Collapse All")),
429
428
  f1: false,
430
429
  icon: Codicon.collapseAll,
431
430
  precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
@@ -442,7 +441,7 @@ registerAction2(class Collapse extends ViewAction {
442
441
  }
443
442
  });
444
443
  const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
445
- const ADD_WATCH_LABEL = ( localizeWithPath(_moduleId, 7, "Add Expression"));
444
+ const ADD_WATCH_LABEL = ( localize(6104, "Add Expression"));
446
445
  registerAction2(class AddWatchExpressionAction extends Action2 {
447
446
  constructor() {
448
447
  super({
@@ -463,7 +462,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
463
462
  }
464
463
  });
465
464
  const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
466
- const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localizeWithPath(_moduleId, 8, "Remove All Expressions"));
465
+ const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(6105, "Remove All Expressions"));
467
466
  registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
468
467
  constructor() {
469
468
  super({
@@ -5,7 +5,7 @@ import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/brows
5
5
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
6
6
  import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
7
7
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
8
- import { localize2WithPath, localizeWithPath } from 'vscode/vscode/vs/nls';
8
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
9
9
  import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DEBUG_EXTENSION_AVAILABLE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
10
10
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
11
11
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
@@ -26,13 +26,12 @@ import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
26
26
  import { DEBUG_START_COMMAND_ID, SELECT_AND_START_ID, DEBUG_CONFIGURE_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
27
27
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
28
28
 
29
- const _moduleId = "vs/workbench/contrib/debug/browser/welcomeView";
30
29
  const debugStartLanguageKey = 'debugStartLanguage';
31
30
  const CONTEXT_DEBUG_START_LANGUAGE = ( (new RawContextKey(debugStartLanguageKey, undefined)));
32
31
  const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( (new RawContextKey('debuggerInterestedInActiveEditor', false)));
33
32
  let WelcomeView = class WelcomeView extends ViewPane {
34
33
  static { this.ID = 'workbench.debug.welcome'; }
35
- static { this.LABEL = ( localize2WithPath(_moduleId, 0, "Run")); }
34
+ static { this.LABEL = ( localize2(6106, "Run")); }
36
35
  constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, telemetryService, hoverService) {
37
36
  super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
38
37
  this.debugService = debugService;
@@ -102,9 +101,8 @@ WelcomeView = ( (__decorate([
102
101
  ], WelcomeView)));
103
102
  const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
104
103
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
105
- content: ( localizeWithPath(
106
- _moduleId,
107
- 1,
104
+ content: ( localize(
105
+ 6107,
108
106
  "[Open a file](command:{0}) which can be debugged or run.",
109
107
  (isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
110
108
  )),
@@ -116,21 +114,20 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
116
114
  });
117
115
  let debugKeybindingLabel = '';
118
116
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
119
- content: `[${( localizeWithPath(_moduleId, 2, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
117
+ content: `[${( localize(6108, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
120
118
  when: CONTEXT_DEBUGGERS_AVAILABLE,
121
119
  group: ViewContentGroups.Debug,
122
120
  order: 1
123
121
  });
124
122
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
125
- content: `[${( localizeWithPath(_moduleId, 3, "Show all automatic debug configurations"))}](command:${SELECT_AND_START_ID}).`,
123
+ content: `[${( localize(6109, "Show all automatic debug configurations"))}](command:${SELECT_AND_START_ID}).`,
126
124
  when: CONTEXT_DEBUGGERS_AVAILABLE,
127
125
  group: ViewContentGroups.Debug,
128
126
  order: 10
129
127
  });
130
128
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
131
- content: ( localizeWithPath(
132
- _moduleId,
133
- 4,
129
+ content: ( localize(
130
+ 6110,
134
131
  "To customize Run and Debug [create a launch.json file](command:{0}).",
135
132
  DEBUG_CONFIGURE_COMMAND_ID
136
133
  )),
@@ -141,9 +138,8 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
141
138
  group: ViewContentGroups.Debug
142
139
  });
143
140
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
144
- content: ( localizeWithPath(
145
- _moduleId,
146
- 5,
141
+ content: ( localize(
142
+ 6111,
147
143
  "To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
148
144
  (isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
149
145
  )),
@@ -154,9 +150,8 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
154
150
  group: ViewContentGroups.Debug
155
151
  });
156
152
  viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
157
- content: ( localizeWithPath(
158
- _moduleId,
159
- 6,
153
+ content: ( localize(
154
+ 6112,
160
155
  "All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
161
156
  )),
162
157
  when: ( (CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated())),
@@ -0,0 +1,47 @@
1
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
+ import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
3
+ import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
+ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
5
+ import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility.service';
6
+ import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
7
+
8
+ let DebugWatchAccessibilityAnnouncer = class DebugWatchAccessibilityAnnouncer extends Disposable {
9
+ static { this.ID = 'workbench.contrib.debugWatchAccessibilityAnnouncer'; }
10
+ constructor(_debugService, _logService, _accessibilityService, _configurationService) {
11
+ super();
12
+ this._debugService = _debugService;
13
+ this._logService = _logService;
14
+ this._accessibilityService = _accessibilityService;
15
+ this._configurationService = _configurationService;
16
+ this._listener = this._register(( new MutableDisposable()));
17
+ this._setListener();
18
+ this._register(_configurationService.onDidChangeConfiguration(e => {
19
+ if (e.affectsConfiguration('accessibility.debugWatchVariableAnnouncements')) {
20
+ this._setListener();
21
+ }
22
+ }));
23
+ }
24
+ _setListener() {
25
+ const value = this._configurationService.getValue('accessibility.debugWatchVariableAnnouncements');
26
+ if (value && !this._listener.value) {
27
+ this._listener.value = this._debugService.getModel().onDidChangeWatchExpressionValue((e) => {
28
+ if (!e || e.value === 'not available') {
29
+ return;
30
+ }
31
+ this._accessibilityService.alert(`${e.name} = ${e.value}`);
32
+ this._logService.trace(`debugAccessibilityAnnouncerValueChanged ${e.name} ${e.value}`);
33
+ });
34
+ }
35
+ else {
36
+ this._listener.clear();
37
+ }
38
+ }
39
+ };
40
+ DebugWatchAccessibilityAnnouncer = ( __decorate([
41
+ ( __param(0, IDebugService)),
42
+ ( __param(1, ILogService)),
43
+ ( __param(2, IAccessibilityService)),
44
+ ( __param(3, IConfigurationService))
45
+ ], DebugWatchAccessibilityAnnouncer));
46
+
47
+ export { DebugWatchAccessibilityAnnouncer };
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { getMimeTypes } from 'vscode/vscode/vs/editor/common/services/languagesAssociations';
4
4
  import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
5
5
  import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
@@ -15,7 +15,6 @@ import { PLAINTEXT_LANGUAGE_ID } from 'vscode/vscode/vs/editor/common/languages/
15
15
  import { ErrorNoTelemetry } from 'vscode/vscode/vs/base/common/errors';
16
16
 
17
17
  var DebugContentProvider_1;
18
- const _moduleId = "vs/workbench/contrib/debug/common/debugContentProvider";
19
18
  let DebugContentProvider = class DebugContentProvider {
20
19
  static { DebugContentProvider_1 = this; }
21
20
  constructor(textModelResolverService, debugService, modelService, languageService, editorWorkerService) {
@@ -50,14 +49,14 @@ let DebugContentProvider = class DebugContentProvider {
50
49
  session = this.debugService.getViewModel().focusedSession;
51
50
  }
52
51
  if (!session) {
53
- return Promise.reject(( (new ErrorNoTelemetry(( localizeWithPath(_moduleId, 0, "Unable to resolve the resource without a debug session"))))));
52
+ return Promise.reject(( (new ErrorNoTelemetry(( localize(6113, "Unable to resolve the resource without a debug session"))))));
54
53
  }
55
54
  const createErrModel = (errMsg) => {
56
55
  this.debugService.sourceIsNotAvailable(resource);
57
56
  const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
58
57
  const message = errMsg
59
- ? ( localizeWithPath(_moduleId, 1, "Could not load source '{0}': {1}.", resource.path, errMsg))
60
- : ( localizeWithPath(_moduleId, 2, "Could not load source '{0}'.", resource.path));
58
+ ? ( localize(6114, "Could not load source '{0}': {1}.", resource.path, errMsg))
59
+ : ( localize(6115, "Could not load source '{0}'.", resource.path));
61
60
  return this.modelService.createModel(message, languageSelection, resource);
62
61
  };
63
62
  return session.loadSource(resource).then(response => {
@@ -1,11 +1,10 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
4
4
  import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
5
5
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
6
6
  import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
7
7
 
8
- const _moduleId = "vs/workbench/contrib/debug/common/debugLifecycle";
9
8
  let DebugLifecycle = class DebugLifecycle {
10
9
  constructor(lifecycleService, debugService, configurationService, dialogService) {
11
10
  this.debugService = debugService;
@@ -30,23 +29,21 @@ let DebugLifecycle = class DebugLifecycle {
30
29
  async showWindowCloseConfirmation(numSessions) {
31
30
  let message;
32
31
  if (numSessions === 1) {
33
- message = ( localizeWithPath(
34
- _moduleId,
35
- 0,
32
+ message = ( localize(
33
+ 6116,
36
34
  "There is an active debug session, are you sure you want to stop it?"
37
35
  ));
38
36
  }
39
37
  else {
40
- message = ( localizeWithPath(
41
- _moduleId,
42
- 1,
38
+ message = ( localize(
39
+ 6117,
43
40
  "There are active debug sessions, are you sure you want to stop them?"
44
41
  ));
45
42
  }
46
43
  const res = await this.dialogService.confirm({
47
44
  message,
48
45
  type: 'warning',
49
- primaryButton: ( localizeWithPath(_moduleId, 2, "&&Stop Debugging"))
46
+ primaryButton: ( localize(6118, "&&Stop Debugging"))
50
47
  });
51
48
  return !res.confirmed;
52
49
  }