@codingame/monaco-vscode-debug-service-override 7.1.0 → 8.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.
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,6 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { PickerQuickAccessProvider, TriggerAction } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
5
5
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
6
6
  import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
@@ -11,12 +11,11 @@ import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from 'vscode/vscode/v
11
11
  import { debugConfigure, debugRemoveConfig } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
12
12
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
13
13
 
14
- const _moduleId = "vs/workbench/contrib/debug/browser/debugQuickAccess";
15
14
  let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends PickerQuickAccessProvider {
16
15
  constructor(debugService, contextService, commandService, notificationService) {
17
16
  super(DEBUG_QUICK_ACCESS_PREFIX, {
18
17
  noResultsPick: {
19
- label: ( localizeWithPath(_moduleId, 0, "No matching launch configurations"))
18
+ label: ( localize(5994, "No matching launch configurations"))
20
19
  }
21
20
  });
22
21
  this.debugService = debugService;
@@ -45,7 +44,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
45
44
  highlights: { label: highlights },
46
45
  buttons: [{
47
46
  iconClass: ThemeIcon.asClassName(debugConfigure),
48
- tooltip: ( localizeWithPath(_moduleId, 1, "Configure Launch Configuration"))
47
+ tooltip: ( localize(5995, "Configure Launch Configuration"))
49
48
  }],
50
49
  trigger: () => {
51
50
  config.launch.openConfigFile({ preserveFocus: false });
@@ -66,7 +65,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
66
65
  const dynamicProviders = await configManager.getDynamicProviders();
67
66
  if (dynamicProviders.length > 0) {
68
67
  picks.push({
69
- type: 'separator', label: ( localizeWithPath(_moduleId, 2, "contributed"))
68
+ type: 'separator', label: ( localize(5996, "contributed"))
70
69
  });
71
70
  }
72
71
  configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
@@ -77,7 +76,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
77
76
  highlights: { label: highlights },
78
77
  buttons: [{
79
78
  iconClass: ThemeIcon.asClassName(debugRemoveConfig),
80
- tooltip: ( localizeWithPath(_moduleId, 3, "Remove Launch Configuration"))
79
+ tooltip: ( localize(5997, "Remove Launch Configuration"))
81
80
  }],
82
81
  trigger: () => {
83
82
  configManager.removeRecentDynamicConfigurations(name, type);
@@ -100,7 +99,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
100
99
  dynamicProviders.forEach(provider => {
101
100
  picks.push({
102
101
  label: `$(folder) ${provider.label}...`,
103
- ariaLabel: ( localizeWithPath(_moduleId, 4, "{0} contributed configurations", provider.label)),
102
+ ariaLabel: ( localize(5998, "{0} contributed configurations", provider.label)),
104
103
  accept: async () => {
105
104
  const pick = await provider.pick();
106
105
  if (pick) {
@@ -112,12 +111,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
112
111
  });
113
112
  const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
114
113
  if (visibleLaunches.length > 0) {
115
- picks.push({ type: 'separator', label: ( localizeWithPath(_moduleId, 5, "configure")) });
114
+ picks.push({ type: 'separator', label: ( localize(5999, "configure")) });
116
115
  }
117
116
  for (const launch of visibleLaunches) {
118
117
  const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
119
- ( localizeWithPath(_moduleId, 6, "Add Config ({0})...", launch.name)) :
120
- ( localizeWithPath(_moduleId, 7, "Add Configuration..."));
118
+ ( localize(6000, "Add Config ({0})...", launch.name)) :
119
+ ( localize(6001, "Add Configuration..."));
121
120
  picks.push({
122
121
  label,
123
122
  description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? launch.name : '',
@@ -13,7 +13,7 @@ import Severity$1 from 'vscode/vscode/vs/base/common/severity';
13
13
  import { URI } from 'vscode/vscode/vs/base/common/uri';
14
14
  import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
15
15
  import { isCodeEditor } from 'vscode/vscode/vs/editor/browser/editorBrowser';
16
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
16
+ import { localize } from 'vscode/vscode/vs/nls';
17
17
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
18
18
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
19
19
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
@@ -58,7 +58,6 @@ import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle
58
58
  import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
59
59
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
60
60
 
61
- const _moduleId = "vs/workbench/contrib/debug/browser/debugService";
62
61
  let DebugService = class DebugService {
63
62
  constructor(editorService, paneCompositeService, viewsService, viewDescriptorService, notificationService, dialogService, layoutService, contextService, contextKeyService, lifecycleService, instantiationService, extensionService, fileService, configurationService, extensionHostDebugService, activityService, commandService, quickInputService, workspaceTrustRequestService, uriIdentityService, testService) {
64
63
  this.editorService = editorService;
@@ -139,7 +138,7 @@ let DebugService = class DebugService {
139
138
  if (numberOfSessions > 0) {
140
139
  const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
141
140
  if (viewContainer) {
142
- this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localizeWithPath(_moduleId, 0, "1 active session")) : ( localizeWithPath(_moduleId, 1, "{0} active sessions", n))))) });
141
+ this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2076, "1 active session")) : ( localize(2077, "{0} active sessions", n))))) });
143
142
  }
144
143
  }
145
144
  }));
@@ -161,7 +160,7 @@ let DebugService = class DebugService {
161
160
  }
162
161
  }));
163
162
  this.disposables.add(extensionService.onWillStop(evt => {
164
- evt.veto(this.model.getSessions().length > 0, ( localizeWithPath(_moduleId, 2, 'A debug session is still running.')));
163
+ evt.veto(this.model.getSessions().length > 0, ( localize(2078, 'A debug session is still running.')));
165
164
  }));
166
165
  this.initContextKeys(contextKeyService);
167
166
  }
@@ -270,13 +269,8 @@ let DebugService = class DebugService {
270
269
  }
271
270
  }
272
271
  async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
273
- const message = options && options.noDebug ? ( localizeWithPath(
274
- _moduleId,
275
- 3,
276
- "Running executes build tasks and program code from your workspace."
277
- )) : ( localizeWithPath(
278
- _moduleId,
279
- 4,
272
+ const message = options && options.noDebug ? ( localize(2079, "Running executes build tasks and program code from your workspace.")) : ( localize(
273
+ 2080,
280
274
  "Debugging executes build tasks and program code from your workspace."
281
275
  ));
282
276
  const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
@@ -306,9 +300,8 @@ let DebugService = class DebugService {
306
300
  }
307
301
  if (compound) {
308
302
  if (!compound.configurations) {
309
- throw ( (new Error(localizeWithPath(
310
- _moduleId,
311
- 5,
303
+ throw ( (new Error(localize(
304
+ 2081,
312
305
  "Compound must have \"configurations\" attribute set in order to start multiple configurations."
313
306
  ))));
314
307
  }
@@ -337,18 +330,14 @@ let DebugService = class DebugService {
337
330
  launchForName = launch;
338
331
  }
339
332
  else {
340
- throw ( (new Error(launchesContainingName.length === 0 ? localizeWithPath(
341
- _moduleId,
342
- 6,
343
- "Could not find launch configuration '{0}' in the workspace.",
344
- name
345
- )
346
- : localizeWithPath(
347
- _moduleId,
348
- 7,
349
- "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
350
- name
351
- ))));
333
+ throw ( (new Error(
334
+ launchesContainingName.length === 0 ? localize(2082, "Could not find launch configuration '{0}' in the workspace.", name)
335
+ : localize(
336
+ 2083,
337
+ "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
338
+ name
339
+ )
340
+ )));
352
341
  }
353
342
  }
354
343
  else if (configData.folder) {
@@ -357,9 +346,8 @@ let DebugService = class DebugService {
357
346
  launchForName = launchesMatchingConfigData[0];
358
347
  }
359
348
  else {
360
- throw ( (new Error(localizeWithPath(
361
- _moduleId,
362
- 8,
349
+ throw ( (new Error(localize(
350
+ 2084,
363
351
  "Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
364
352
  configData.folder,
365
353
  configData.name,
@@ -374,13 +362,12 @@ let DebugService = class DebugService {
374
362
  return result;
375
363
  }
376
364
  if (configOrName && !config) {
377
- const message = !!launch ? ( localizeWithPath(
378
- _moduleId,
379
- 9,
365
+ const message = !!launch ? ( localize(
366
+ 2085,
380
367
  "Configuration '{0}' is missing in 'launch.json'.",
381
368
  typeof configOrName === 'string' ? configOrName : configOrName.name
382
369
  )) :
383
- ( localizeWithPath(_moduleId, 10, "'launch.json' does not exist for passed workspace folder."));
370
+ ( localize(2086, "'launch.json' does not exist for passed workspace folder."));
384
371
  throw ( (new Error(message)));
385
372
  }
386
373
  const result = await this.createSession(launch, config, options);
@@ -452,35 +439,24 @@ let DebugService = class DebugService {
452
439
  if (!dbg || (configByProviders.request !== 'attach' && configByProviders.request !== 'launch')) {
453
440
  let message;
454
441
  if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
455
- message = configByProviders.request ? ( localizeWithPath(
456
- _moduleId,
457
- 11,
442
+ message = configByProviders.request ? ( localize(
443
+ 2087,
458
444
  "Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
459
445
  'request',
460
446
  configByProviders.request
461
447
  ))
462
- : ( localizeWithPath(
463
- _moduleId,
464
- 12,
448
+ : ( localize(
449
+ 2088,
465
450
  "Attribute '{0}' is missing from the chosen debug configuration.",
466
451
  'request'
467
452
  ));
468
453
  }
469
454
  else {
470
- message = resolvedConfig.type ? ( localizeWithPath(
471
- _moduleId,
472
- 13,
473
- "Configured debug type '{0}' is not supported.",
474
- resolvedConfig.type
475
- )) :
476
- ( localizeWithPath(
477
- _moduleId,
478
- 14,
479
- "Missing property 'type' for the chosen launch configuration."
480
- ));
455
+ message = resolvedConfig.type ? ( localize(2089, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
456
+ ( localize(2090, "Missing property 'type' for the chosen launch configuration."));
481
457
  }
482
458
  const actionList = [];
483
- actionList.push(( (new Action('installAdditionalDebuggers', ( localizeWithPath(_moduleId, 15, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
459
+ actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2091, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
484
460
  await this.showError(message, actionList);
485
461
  return false;
486
462
  }
@@ -500,9 +476,8 @@ let DebugService = class DebugService {
500
476
  await this.showError(err.message);
501
477
  }
502
478
  else if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
503
- await this.showError(( localizeWithPath(
504
- _moduleId,
505
- 16,
479
+ await this.showError(( localize(
480
+ 2092,
506
481
  "The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
507
482
  )));
508
483
  }
@@ -520,9 +495,8 @@ let DebugService = class DebugService {
520
495
  async doCreateSession(sessionId, root, configuration, options) {
521
496
  const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
522
497
  if (options?.startedByUser && ( (this.model.getSessions().some(s => s.getLabel() === session.getLabel()))) && configuration.resolved.suppressMultipleSessionWarning !== true) {
523
- const result = await this.dialogService.confirm({ message: ( localizeWithPath(
524
- _moduleId,
525
- 17,
498
+ const result = await this.dialogService.confirm({ message: ( localize(
499
+ 2093,
526
500
  "'{0}' is already running. Do you want to start another instance?",
527
501
  session.getLabel()
528
502
  )) });
@@ -612,9 +586,8 @@ let DebugService = class DebugService {
612
586
  listenerDisposables.add(session.onDidEndAdapter(async (adapterExitEvent) => {
613
587
  if (adapterExitEvent) {
614
588
  if (adapterExitEvent.error) {
615
- this.notificationService.error(( localizeWithPath(
616
- _moduleId,
617
- 18,
589
+ this.notificationService.error(( localize(
590
+ 2094,
618
591
  "Debug adapter process has terminated unexpectedly ({0})",
619
592
  adapterExitEvent.error.message || ( (adapterExitEvent.error.toString()))
620
593
  )));
@@ -856,9 +829,8 @@ let DebugService = class DebugService {
856
829
  const lineNumber = stackFrame.range.startLineNumber;
857
830
  if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
858
831
  const lineContent = control.getModel().getLineContent(lineNumber);
859
- alert(( localizeWithPath(
860
- _moduleId,
861
- 19,
832
+ alert(( localize(
833
+ 2095,
862
834
  "{0}, debugging paused {1}, {2}:{3}",
863
835
  lineContent,
864
836
  thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
@@ -931,13 +903,7 @@ let DebugService = class DebugService {
931
903
  async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
932
904
  const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
933
905
  if (ariaAnnounce) {
934
- breakpoints.forEach(bp => status(( localizeWithPath(
935
- _moduleId,
936
- 20,
937
- "Added breakpoint, line {0}, file {1}",
938
- bp.lineNumber,
939
- uri.fsPath
940
- ))));
906
+ breakpoints.forEach(bp => status(( localize(2096, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
941
907
  }
942
908
  this.debugStorage.storeBreakpoints(this.model);
943
909
  await this.sendBreakpoints(uri);
@@ -958,9 +924,8 @@ let DebugService = class DebugService {
958
924
  async removeBreakpoints(id) {
959
925
  const breakpoints = this.model.getBreakpoints();
960
926
  const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
961
- toRemove.forEach(bp => status(( localizeWithPath(
962
- _moduleId,
963
- 21,
927
+ toRemove.forEach(bp => status(( localize(
928
+ 2097,
964
929
  "Removed breakpoint, line {0}, file {1}",
965
930
  bp.lineNumber,
966
931
  bp.uri.fsPath