@codingame/monaco-vscode-debug-service-override 14.0.6 → 15.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 (60) hide show
  1. package/index.js +1 -1
  2. package/package.json +14 -16
  3. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.d.ts +1 -2
  4. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +22 -24
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +133 -133
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +8 -7
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.d.ts +1 -1
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +13 -13
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +6 -6
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +1 -1
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +27 -27
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.d.ts +2 -1
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +5 -4
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +23 -16
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +24 -24
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.d.ts +1 -1
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +44 -44
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
  21. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
  22. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +2 -1
  23. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +14 -10
  24. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +1 -1
  25. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +7 -7
  26. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +1 -1
  27. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +12 -12
  28. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +1 -2
  29. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +11 -13
  30. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
  31. package/vscode/src/vs/workbench/contrib/debug/browser/repl.d.ts +6 -7
  32. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +36 -45
  33. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
  34. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -6
  35. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
  36. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
  37. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.d.ts +1 -2
  38. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +52 -18
  39. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.d.ts +1 -2
  40. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +10 -12
  41. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.d.ts +5 -4
  42. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +7 -7
  43. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
  44. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
  45. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +2 -7
  46. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +1 -1
  47. package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +1 -1
  48. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +12 -12
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
  50. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.d.ts +0 -64
  51. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -758
  52. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.d.ts +0 -65
  53. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -419
  54. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.d.ts +0 -18
  55. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -116
  56. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -6
  57. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +0 -79
  58. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -730
  59. package/vscode/src/vs/workbench/contrib/debug/common/debugContext.d.ts +0 -6
  60. package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +0 -17
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
3
+ import { PickerQuickAccessProvider, TriggerAction } from '@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
4
4
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
5
5
  import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
6
6
  import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
@@ -9,14 +9,14 @@ import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs
9
9
  import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
10
10
  import { matchesFuzzy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/filters';
11
11
  import { DEBUG_QUICK_ACCESS_PREFIX, ADD_CONFIGURATION_ID } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
12
- import { debugConfigure, debugRemoveConfig } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
12
+ import { debugConfigure, debugRemoveConfig } from '@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common/vscode/vs/workbench/contrib/debug/browser/debugIcons';
13
13
  import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
14
14
 
15
15
  let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends PickerQuickAccessProvider {
16
16
  constructor(debugService, contextService, commandService, notificationService) {
17
17
  super(DEBUG_QUICK_ACCESS_PREFIX, {
18
18
  noResultsPick: {
19
- label: ( localize(5494, "No matching launch configurations"))
19
+ label: ( localize(5580, "No matching launch configurations"))
20
20
  }
21
21
  });
22
22
  this.debugService = debugService;
@@ -31,21 +31,18 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
31
31
  }
32
32
  picks.push({ type: 'separator', label: 'launch.json' });
33
33
  const configManager = this.debugService.getConfigurationManager();
34
+ const selectedConfiguration = configManager.selectedConfiguration;
34
35
  let lastGroup;
35
36
  for (const config of configManager.getAllConfigurations()) {
36
37
  const highlights = matchesFuzzy(filter, config.name, true);
37
38
  if (highlights) {
38
- if (lastGroup !== config.presentation?.group) {
39
- picks.push({ type: 'separator' });
40
- lastGroup = config.presentation?.group;
41
- }
42
- picks.push({
39
+ const pick = {
43
40
  label: config.name,
44
41
  description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? config.launch.name : '',
45
42
  highlights: { label: highlights },
46
43
  buttons: [{
47
44
  iconClass: ThemeIcon.asClassName(debugConfigure),
48
- tooltip: ( localize(5495, "Configure Launch Configuration"))
45
+ tooltip: ( localize(5581, "Configure Launch Configuration"))
49
46
  }],
50
47
  trigger: () => {
51
48
  config.launch.openConfigFile({ preserveFocus: false });
@@ -60,13 +57,23 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
60
57
  this.notificationService.error(error);
61
58
  }
62
59
  }
63
- });
60
+ };
61
+ if (selectedConfiguration.name === config.name && selectedConfiguration.launch === config.launch) {
62
+ const separator = { type: 'separator', label: ( localize(5582, 'Most Recent')) };
63
+ picks.unshift(separator, pick);
64
+ continue;
65
+ }
66
+ if (lastGroup !== config.presentation?.group) {
67
+ picks.push({ type: 'separator' });
68
+ lastGroup = config.presentation?.group;
69
+ }
70
+ picks.push(pick);
64
71
  }
65
72
  }
66
73
  const dynamicProviders = await configManager.getDynamicProviders();
67
74
  if (dynamicProviders.length > 0) {
68
75
  picks.push({
69
- type: 'separator', label: ( localize(5496, "contributed"))
76
+ type: 'separator', label: ( localize(5583, "contributed"))
70
77
  });
71
78
  }
72
79
  configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
@@ -77,7 +84,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
77
84
  highlights: { label: highlights },
78
85
  buttons: [{
79
86
  iconClass: ThemeIcon.asClassName(debugRemoveConfig),
80
- tooltip: ( localize(5497, "Remove Launch Configuration"))
87
+ tooltip: ( localize(5584, "Remove Launch Configuration"))
81
88
  }],
82
89
  trigger: () => {
83
90
  configManager.removeRecentDynamicConfigurations(name, type);
@@ -100,7 +107,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
100
107
  dynamicProviders.forEach(provider => {
101
108
  picks.push({
102
109
  label: `$(folder) ${provider.label}...`,
103
- ariaLabel: ( localize(5498, "{0} contributed configurations", provider.label)),
110
+ ariaLabel: ( localize(5585, "{0} contributed configurations", provider.label)),
104
111
  accept: async () => {
105
112
  const pick = await provider.pick();
106
113
  if (pick) {
@@ -112,12 +119,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
112
119
  });
113
120
  const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
114
121
  if (visibleLaunches.length > 0) {
115
- picks.push({ type: 'separator', label: ( localize(5499, "configure")) });
122
+ picks.push({ type: 'separator', label: ( localize(5586, "configure")) });
116
123
  }
117
124
  for (const launch of visibleLaunches) {
118
125
  const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
119
- ( localize(5500, "Add Config ({0})...", launch.name)) :
120
- ( localize(5501, "Add Configuration..."));
126
+ ( localize(5587, "Add Config ({0})...", launch.name)) :
127
+ ( localize(5588, "Add Configuration..."));
121
128
  picks.push({
122
129
  label,
123
130
  description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? launch.name : '',
@@ -36,12 +36,12 @@ import { NumberBadge } from '@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-98
36
36
  import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
37
37
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
38
38
  import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
39
- import { Parts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
39
+ import { Parts } from '@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common/vscode/vs/workbench/services/layout/browser/layoutService';
40
40
  import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
41
41
  import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
42
42
  import { IPaneCompositePartService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
43
43
  import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
44
- import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common/vscode/vs/workbench/contrib/files/common/files';
44
+ import { VIEWLET_ID as VIEWLET_ID$1 } from '@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common/vscode/vs/workbench/contrib/files/common/files';
45
45
  import { ITestService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service';
46
46
  import { State, CALLSTACK_VIEW_ID, DEBUG_MEMORY_SCHEME, CONTEXT_DEBUG_TYPE, CONTEXT_DEBUG_STATE, CONTEXT_HAS_DEBUGGED, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_UX, CONTEXT_BREAKPOINTS_EXIST, CONTEXT_DISASSEMBLY_VIEW_FOCUS, getStateLabel, debuggerDisabledMessage, VIEWLET_ID, REPL_VIEW_ID, DEBUG_SCHEME } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
47
47
  import { DebugCompoundRoot } from '../common/debugCompoundRoot.js';
@@ -142,7 +142,7 @@ let DebugService = class DebugService {
142
142
  if (numberOfSessions > 0) {
143
143
  const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
144
144
  if (viewContainer) {
145
- this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(5502, "1 active session")) : ( localize(5503, "{0} active sessions", n)))) });
145
+ this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(5589, "1 active session")) : ( localize(5590, "{0} active sessions", n)))) });
146
146
  }
147
147
  }
148
148
  }));
@@ -164,7 +164,7 @@ let DebugService = class DebugService {
164
164
  }
165
165
  }));
166
166
  this.disposables.add(extensionService.onWillStop(evt => {
167
- evt.veto(this.model.getSessions().length > 0, ( localize(5504, 'A debug session is still running that would terminate.')));
167
+ evt.veto(this.model.getSessions().length > 0, ( localize(5591, 'A debug session is still running that would terminate.')));
168
168
  }));
169
169
  this.initContextKeys(contextKeyService);
170
170
  }
@@ -268,13 +268,13 @@ let DebugService = class DebugService {
268
268
  }
269
269
  lazySetup() {
270
270
  if (!this.haveDoneLazySetup) {
271
- this.disposables.add(this.fileService.registerProvider(DEBUG_MEMORY_SCHEME, ( new DebugMemoryFileSystemProvider(this))));
271
+ this.disposables.add(this.fileService.registerProvider(DEBUG_MEMORY_SCHEME, this.disposables.add(( new DebugMemoryFileSystemProvider(this)))));
272
272
  this.haveDoneLazySetup = true;
273
273
  }
274
274
  }
275
275
  async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
276
- const message = options && options.noDebug ? ( localize(5505, "Running executes build tasks and program code from your workspace.")) : ( localize(
277
- 5506,
276
+ const message = options && options.noDebug ? ( localize(5592, "Running executes build tasks and program code from your workspace.")) : ( localize(
277
+ 5593,
278
278
  "Debugging executes build tasks and program code from your workspace."
279
279
  ));
280
280
  const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
@@ -305,7 +305,7 @@ let DebugService = class DebugService {
305
305
  if (compound) {
306
306
  if (!compound.configurations) {
307
307
  throw ( new Error(( localize(
308
- 5507,
308
+ 5594,
309
309
  "Compound must have \"configurations\" attribute set in order to start multiple configurations."
310
310
  ))));
311
311
  }
@@ -334,9 +334,9 @@ let DebugService = class DebugService {
334
334
  launchForName = launch;
335
335
  }
336
336
  else {
337
- throw ( new Error(launchesContainingName.length === 0 ? ( localize(5508, "Could not find launch configuration '{0}' in the workspace.", name))
337
+ throw ( new Error(launchesContainingName.length === 0 ? ( localize(5595, "Could not find launch configuration '{0}' in the workspace.", name))
338
338
  : ( localize(
339
- 5509,
339
+ 5596,
340
340
  "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
341
341
  name
342
342
  ))));
@@ -349,7 +349,7 @@ let DebugService = class DebugService {
349
349
  }
350
350
  else {
351
351
  throw ( new Error(( localize(
352
- 5510,
352
+ 5597,
353
353
  "Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
354
354
  configData.folder,
355
355
  configData.name,
@@ -365,11 +365,11 @@ let DebugService = class DebugService {
365
365
  }
366
366
  if (configOrName && !config) {
367
367
  const message = !!launch ? ( localize(
368
- 5511,
368
+ 5598,
369
369
  "Configuration '{0}' is missing in 'launch.json'.",
370
370
  typeof configOrName === 'string' ? configOrName : configOrName.name
371
371
  )) :
372
- ( localize(5512, "'launch.json' does not exist for passed workspace folder."));
372
+ ( localize(5599, "'launch.json' does not exist for passed workspace folder."));
373
373
  throw ( new Error(message));
374
374
  }
375
375
  const result = await this.createSession(launch, config, options);
@@ -457,23 +457,23 @@ let DebugService = class DebugService {
457
457
  let message;
458
458
  if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
459
459
  message = configByProviders.request ? ( localize(
460
- 5513,
460
+ 5600,
461
461
  "Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
462
462
  'request',
463
463
  configByProviders.request
464
464
  ))
465
465
  : ( localize(
466
- 5514,
466
+ 5601,
467
467
  "Attribute '{0}' is missing from the chosen debug configuration.",
468
468
  'request'
469
469
  ));
470
470
  }
471
471
  else {
472
- message = resolvedConfig.type ? ( localize(5515, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
473
- ( localize(5516, "Missing property 'type' for the chosen launch configuration."));
472
+ message = resolvedConfig.type ? ( localize(5602, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
473
+ ( localize(5603, "Missing property 'type' for the chosen launch configuration."));
474
474
  }
475
475
  const actionList = [];
476
- actionList.push(( new Action('installAdditionalDebuggers', ( localize(5517, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type))));
476
+ actionList.push(( new Action('installAdditionalDebuggers', ( localize(5604, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type))));
477
477
  await this.showError(message, actionList);
478
478
  return false;
479
479
  }
@@ -494,7 +494,7 @@ let DebugService = class DebugService {
494
494
  }
495
495
  else if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
496
496
  await this.showError(( localize(
497
- 5518,
497
+ 5605,
498
498
  "The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
499
499
  )));
500
500
  }
@@ -513,7 +513,7 @@ let DebugService = class DebugService {
513
513
  const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
514
514
  if (options?.startedByUser && ( this.model.getSessions().some(s => s.getLabel() === session.getLabel())) && configuration.resolved.suppressMultipleSessionWarning !== true) {
515
515
  const result = await this.dialogService.confirm({ message: ( localize(
516
- 5519,
516
+ 5606,
517
517
  "'{0}' is already running. Do you want to start another instance?",
518
518
  session.getLabel()
519
519
  )) });
@@ -604,7 +604,7 @@ let DebugService = class DebugService {
604
604
  if (adapterExitEvent) {
605
605
  if (adapterExitEvent.error) {
606
606
  this.notificationService.error(( localize(
607
- 5520,
607
+ 5607,
608
608
  "Debug adapter process has terminated unexpectedly ({0})",
609
609
  adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
610
610
  )));
@@ -848,7 +848,7 @@ let DebugService = class DebugService {
848
848
  if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
849
849
  const lineContent = control.getModel().getLineContent(lineNumber);
850
850
  alert(( localize(
851
- 5521,
851
+ 5608,
852
852
  "{0}, debugging paused {1}, {2}:{3}",
853
853
  lineContent,
854
854
  thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
@@ -921,7 +921,7 @@ let DebugService = class DebugService {
921
921
  async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
922
922
  const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
923
923
  if (ariaAnnounce) {
924
- breakpoints.forEach(bp => status(( localize(5522, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
924
+ breakpoints.forEach(bp => status(( localize(5609, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
925
925
  }
926
926
  this.debugStorage.storeBreakpoints(this.model);
927
927
  await this.sendBreakpoints(uri);
@@ -943,7 +943,7 @@ let DebugService = class DebugService {
943
943
  const breakpoints = this.model.getBreakpoints();
944
944
  const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
945
945
  toRemove.forEach(bp => status(( localize(
946
- 5523,
946
+ 5610,
947
947
  "Removed breakpoint, line {0}, file {1}",
948
948
  bp.lineNumber,
949
949
  bp.uri.fsPath
@@ -162,7 +162,7 @@ export declare class DebugSession implements IDebugSession, IDisposable {
162
162
  goto(threadId: number, targetId: number): Promise<DebugProtocol.GotoResponse | undefined>;
163
163
  loadSource(resource: URI): Promise<DebugProtocol.SourceResponse | undefined>;
164
164
  getLoadedSources(): Promise<Source[]>;
165
- completions(frameId: number | undefined, threadId: number, text: string, position: Position, overwriteBefore: number, token: CancellationToken): Promise<DebugProtocol.CompletionsResponse | undefined>;
165
+ completions(frameId: number | undefined, threadId: number, text: string, position: Position, token: CancellationToken): Promise<DebugProtocol.CompletionsResponse | undefined>;
166
166
  stepInTargets(frameId: number): Promise<{
167
167
  id: number;
168
168
  label: string;
@@ -290,7 +290,7 @@ let DebugSession = class DebugSession {
290
290
  }
291
291
  async launchOrAttach(config) {
292
292
  if (!this.raw) {
293
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'launch or attach'))));
293
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'launch or attach'))));
294
294
  }
295
295
  if (this.parentSession && this.parentSession.state === State.Inactive) {
296
296
  throw canceled();
@@ -345,7 +345,7 @@ let DebugSession = class DebugSession {
345
345
  }
346
346
  async restart() {
347
347
  if (!this.raw) {
348
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'restart'))));
348
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'restart'))));
349
349
  }
350
350
  this.cancelAllRequests();
351
351
  if (this._options.lifecycleManagedByParent && this.parentSession) {
@@ -357,7 +357,7 @@ let DebugSession = class DebugSession {
357
357
  }
358
358
  async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
359
359
  if (!this.raw) {
360
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'breakpoints'))));
360
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'breakpoints'))));
361
361
  }
362
362
  if (!this.raw.readyForBreakpoints) {
363
363
  return Promise.resolve(undefined);
@@ -385,7 +385,7 @@ let DebugSession = class DebugSession {
385
385
  }
386
386
  async sendFunctionBreakpoints(fbpts) {
387
387
  if (!this.raw) {
388
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'function breakpoints'))));
388
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'function breakpoints'))));
389
389
  }
390
390
  if (this.raw.readyForBreakpoints) {
391
391
  const response = await this.raw.setFunctionBreakpoints({ breakpoints: ( fbpts.map(bp => bp.toDAP())) });
@@ -400,7 +400,7 @@ let DebugSession = class DebugSession {
400
400
  }
401
401
  async sendExceptionBreakpoints(exbpts) {
402
402
  if (!this.raw) {
403
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'exception breakpoints'))));
403
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'exception breakpoints'))));
404
404
  }
405
405
  if (this.raw.readyForBreakpoints) {
406
406
  const args = this.capabilities.supportsExceptionFilterOptions ? {
@@ -424,7 +424,7 @@ let DebugSession = class DebugSession {
424
424
  }
425
425
  dataBytesBreakpointInfo(address, bytes) {
426
426
  if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
427
- throw ( new Error(( localize(5525, "Session does not support breakpoints with bytes"))));
427
+ throw ( new Error(( localize(5612, "Session does not support breakpoints with bytes"))));
428
428
  }
429
429
  return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
430
430
  }
@@ -433,17 +433,17 @@ let DebugSession = class DebugSession {
433
433
  }
434
434
  async _dataBreakpointInfo(args) {
435
435
  if (!this.raw) {
436
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'data breakpoints info'))));
436
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'data breakpoints info'))));
437
437
  }
438
438
  if (!this.raw.readyForBreakpoints) {
439
- throw ( new Error(( localize(5526, "Session is not ready for breakpoints"))));
439
+ throw ( new Error(( localize(5613, "Session is not ready for breakpoints"))));
440
440
  }
441
441
  const response = await this.raw.dataBreakpointInfo(args);
442
442
  return response?.body;
443
443
  }
444
444
  async sendDataBreakpoints(dataBreakpoints) {
445
445
  if (!this.raw) {
446
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'data breakpoints'))));
446
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'data breakpoints'))));
447
447
  }
448
448
  if (this.raw.readyForBreakpoints) {
449
449
  const converted = await Promise.all(( dataBreakpoints.map(async (bp) => {
@@ -474,7 +474,7 @@ let DebugSession = class DebugSession {
474
474
  async sendInstructionBreakpoints(instructionBreakpoints) {
475
475
  if (!this.raw) {
476
476
  throw ( new Error(( localize(
477
- 5524,
477
+ 5611,
478
478
  "No debugger available, can not send '{0}'",
479
479
  'instruction breakpoints'
480
480
  ))));
@@ -492,7 +492,7 @@ let DebugSession = class DebugSession {
492
492
  }
493
493
  async breakpointsLocations(uri, lineNumber) {
494
494
  if (!this.raw) {
495
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'breakpoints locations'))));
495
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'breakpoints locations'))));
496
496
  }
497
497
  const source = this.getRawSource(uri);
498
498
  const response = await this.raw.breakpointLocations({ source, line: lineNumber });
@@ -507,20 +507,20 @@ let DebugSession = class DebugSession {
507
507
  }
508
508
  customRequest(request, args) {
509
509
  if (!this.raw) {
510
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", request))));
510
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", request))));
511
511
  }
512
512
  return this.raw.custom(request, args);
513
513
  }
514
514
  stackTrace(threadId, startFrame, levels, token) {
515
515
  if (!this.raw) {
516
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stackTrace'))));
516
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'stackTrace'))));
517
517
  }
518
518
  const sessionToken = this.getNewCancellationToken(threadId, token);
519
519
  return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
520
520
  }
521
521
  async exceptionInfo(threadId) {
522
522
  if (!this.raw) {
523
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'exceptionInfo'))));
523
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'exceptionInfo'))));
524
524
  }
525
525
  const response = await this.raw.exceptionInfo({ threadId });
526
526
  if (response) {
@@ -535,28 +535,28 @@ let DebugSession = class DebugSession {
535
535
  }
536
536
  scopes(frameId, threadId) {
537
537
  if (!this.raw) {
538
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'scopes'))));
538
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'scopes'))));
539
539
  }
540
540
  const token = this.getNewCancellationToken(threadId);
541
541
  return this.raw.scopes({ frameId }, token);
542
542
  }
543
543
  variables(variablesReference, threadId, filter, start, count) {
544
544
  if (!this.raw) {
545
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'variables'))));
545
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'variables'))));
546
546
  }
547
547
  const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
548
548
  return this.raw.variables({ variablesReference, filter, start, count }, token);
549
549
  }
550
550
  evaluate(expression, frameId, context, location) {
551
551
  if (!this.raw) {
552
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'evaluate'))));
552
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'evaluate'))));
553
553
  }
554
554
  return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
555
555
  }
556
556
  async restartFrame(frameId, threadId) {
557
557
  await this.waitForTriggeredBreakpoints();
558
558
  if (!this.raw) {
559
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'restartFrame'))));
559
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'restartFrame'))));
560
560
  }
561
561
  await this.raw.restartFrame({ frameId }, threadId);
562
562
  }
@@ -569,7 +569,7 @@ let DebugSession = class DebugSession {
569
569
  async next(threadId, granularity) {
570
570
  await this.waitForTriggeredBreakpoints();
571
571
  if (!this.raw) {
572
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'next'))));
572
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'next'))));
573
573
  }
574
574
  this.setLastSteppingGranularity(threadId, granularity);
575
575
  await this.raw.next({ threadId, granularity });
@@ -577,7 +577,7 @@ let DebugSession = class DebugSession {
577
577
  async stepIn(threadId, targetId, granularity) {
578
578
  await this.waitForTriggeredBreakpoints();
579
579
  if (!this.raw) {
580
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepIn'))));
580
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'stepIn'))));
581
581
  }
582
582
  this.setLastSteppingGranularity(threadId, granularity);
583
583
  await this.raw.stepIn({ threadId, targetId, granularity });
@@ -585,7 +585,7 @@ let DebugSession = class DebugSession {
585
585
  async stepOut(threadId, granularity) {
586
586
  await this.waitForTriggeredBreakpoints();
587
587
  if (!this.raw) {
588
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepOut'))));
588
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'stepOut'))));
589
589
  }
590
590
  this.setLastSteppingGranularity(threadId, granularity);
591
591
  await this.raw.stepOut({ threadId, granularity });
@@ -593,7 +593,7 @@ let DebugSession = class DebugSession {
593
593
  async stepBack(threadId, granularity) {
594
594
  await this.waitForTriggeredBreakpoints();
595
595
  if (!this.raw) {
596
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepBack'))));
596
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'stepBack'))));
597
597
  }
598
598
  this.setLastSteppingGranularity(threadId, granularity);
599
599
  await this.raw.stepBack({ threadId, granularity });
@@ -601,56 +601,56 @@ let DebugSession = class DebugSession {
601
601
  async continue(threadId) {
602
602
  await this.waitForTriggeredBreakpoints();
603
603
  if (!this.raw) {
604
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'continue'))));
604
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'continue'))));
605
605
  }
606
606
  await this.raw.continue({ threadId });
607
607
  }
608
608
  async reverseContinue(threadId) {
609
609
  await this.waitForTriggeredBreakpoints();
610
610
  if (!this.raw) {
611
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'reverse continue'))));
611
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'reverse continue'))));
612
612
  }
613
613
  await this.raw.reverseContinue({ threadId });
614
614
  }
615
615
  async pause(threadId) {
616
616
  if (!this.raw) {
617
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'pause'))));
617
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'pause'))));
618
618
  }
619
619
  await this.raw.pause({ threadId });
620
620
  }
621
621
  async terminateThreads(threadIds) {
622
622
  if (!this.raw) {
623
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'terminateThreads'))));
623
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'terminateThreads'))));
624
624
  }
625
625
  await this.raw.terminateThreads({ threadIds });
626
626
  }
627
627
  setVariable(variablesReference, name, value) {
628
628
  if (!this.raw) {
629
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'setVariable'))));
629
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'setVariable'))));
630
630
  }
631
631
  return this.raw.setVariable({ variablesReference, name, value });
632
632
  }
633
633
  setExpression(frameId, expression, value) {
634
634
  if (!this.raw) {
635
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'setExpression'))));
635
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'setExpression'))));
636
636
  }
637
637
  return this.raw.setExpression({ expression, value, frameId });
638
638
  }
639
639
  gotoTargets(source, line, column) {
640
640
  if (!this.raw) {
641
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'gotoTargets'))));
641
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'gotoTargets'))));
642
642
  }
643
643
  return this.raw.gotoTargets({ source, line, column });
644
644
  }
645
645
  goto(threadId, targetId) {
646
646
  if (!this.raw) {
647
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'goto'))));
647
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'goto'))));
648
648
  }
649
649
  return this.raw.goto({ threadId, targetId });
650
650
  }
651
651
  loadSource(resource) {
652
652
  if (!this.raw) {
653
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'loadSource')))));
653
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'loadSource')))));
654
654
  }
655
655
  const source = this.getSourceForUri(resource);
656
656
  let rawSource;
@@ -665,7 +665,7 @@ let DebugSession = class DebugSession {
665
665
  }
666
666
  async getLoadedSources() {
667
667
  if (!this.raw) {
668
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'getLoadedSources')))));
668
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'getLoadedSources')))));
669
669
  }
670
670
  const response = await this.raw.loadedSources({});
671
671
  if (response?.body && response.body.sources) {
@@ -675,9 +675,9 @@ let DebugSession = class DebugSession {
675
675
  return [];
676
676
  }
677
677
  }
678
- async completions(frameId, threadId, text, position, overwriteBefore, token) {
678
+ async completions(frameId, threadId, text, position, token) {
679
679
  if (!this.raw) {
680
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'completions')))));
680
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'completions')))));
681
681
  }
682
682
  const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
683
683
  return this.raw.completions({
@@ -689,43 +689,43 @@ let DebugSession = class DebugSession {
689
689
  }
690
690
  async stepInTargets(frameId) {
691
691
  if (!this.raw) {
692
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'stepInTargets')))));
692
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'stepInTargets')))));
693
693
  }
694
694
  const response = await this.raw.stepInTargets({ frameId });
695
695
  return response?.body.targets;
696
696
  }
697
697
  async cancel(progressId) {
698
698
  if (!this.raw) {
699
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'cancel')))));
699
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'cancel')))));
700
700
  }
701
701
  return this.raw.cancel({ progressId });
702
702
  }
703
703
  async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
704
704
  if (!this.raw) {
705
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'disassemble')))));
705
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'disassemble')))));
706
706
  }
707
707
  const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
708
708
  return response?.body?.instructions;
709
709
  }
710
710
  readMemory(memoryReference, offset, count) {
711
711
  if (!this.raw) {
712
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'readMemory')))));
712
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'readMemory')))));
713
713
  }
714
714
  return this.raw.readMemory({ count, memoryReference, offset });
715
715
  }
716
716
  writeMemory(memoryReference, offset, data, allowPartial) {
717
717
  if (!this.raw) {
718
- return Promise.reject(( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'disassemble')))));
718
+ return Promise.reject(( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'disassemble')))));
719
719
  }
720
720
  return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
721
721
  }
722
722
  async resolveLocationReference(locationReference) {
723
723
  if (!this.raw) {
724
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'locations'))));
724
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'locations'))));
725
725
  }
726
726
  const location = await this.raw.locations({ locationReference });
727
727
  if (!location?.body) {
728
- throw ( new Error(( localize(5524, "No debugger available, can not send '{0}'", 'locations'))));
728
+ throw ( new Error(( localize(5611, "No debugger available, can not send '{0}'", 'locations'))));
729
729
  }
730
730
  const source = this.getSource(location.body.source);
731
731
  return { column: 1, ...location.body, source };
@@ -837,8 +837,8 @@ let DebugSession = class DebugSession {
837
837
  }
838
838
  this.rawListeners.add(this.raw.onDidInitialize(async () => {
839
839
  status(this.configuration.noDebug
840
- ? ( localize(5527, "Started running without debugging."))
841
- : ( localize(5528, "Debugging started.")));
840
+ ? ( localize(5614, "Started running without debugging."))
841
+ : ( localize(5615, "Debugging started.")));
842
842
  const sendConfigurationDone = async () => {
843
843
  if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
844
844
  try {
@@ -885,7 +885,7 @@ let DebugSession = class DebugSession {
885
885
  }
886
886
  }));
887
887
  this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
888
- status(( localize(5529, "Debugging stopped.")));
888
+ status(( localize(5616, "Debugging stopped.")));
889
889
  if (event.body && event.body.restart) {
890
890
  await this.debugService.restartSession(this, event.body.restart);
891
891
  }