@codingame/monaco-vscode-debug-service-override 10.1.3 → 11.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 (40) hide show
  1. package/package.json +3 -2
  2. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +2 -2
  3. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +18 -18
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +119 -111
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +7 -7
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -11
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +26 -26
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -3
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -5
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -9
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +28 -25
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +46 -46
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +42 -39
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +58 -51
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +6 -6
  19. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +9 -9
  20. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +6 -6
  21. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
  22. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
  24. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +22 -21
  25. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
  26. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +2 -2
  27. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +7 -7
  28. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
  29. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
  30. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +12 -12
  31. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +12 -11
  32. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +8 -8
  33. package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +1 -1
  34. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +4 -4
  35. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
  36. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
  37. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +1 -1
  38. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +1 -1
  39. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
@@ -28,20 +28,20 @@ import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/co
28
28
  import { IWorkspaceTrustRequestService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
29
29
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
30
30
  import { AdapterManager } from './debugAdapterManager.js';
31
- import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
31
+ import { DEBUG_CONFIGURE_COMMAND_ID, DEBUG_CONFIGURE_LABEL } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
32
32
  import { ConfigurationManager } from './debugConfigurationManager.js';
33
33
  import { DebugMemoryFileSystemProvider } from './debugMemory.js';
34
34
  import { DebugSession } from './debugSession.js';
35
35
  import { DebugTaskRunner } from './debugTaskRunner.js';
36
36
  import { 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 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
37
37
  import { DebugCompoundRoot } from '../common/debugCompoundRoot.js';
38
- import { DebugModel, Breakpoint, FunctionBreakpoint, DataBreakpoint, InstructionBreakpoint } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
39
- import { Source } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugSource';
38
+ import { DebugModel, Breakpoint, FunctionBreakpoint, DataBreakpoint, InstructionBreakpoint } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/debugModel';
39
+ import { Source } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/debugSource';
40
40
  import { DebugStorage } from '../common/debugStorage.js';
41
41
  import { DebugTelemetry } from '../common/debugTelemetry.js';
42
42
  import { saveAllBeforeDebugStart, getExtensionHostDebugSession } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
43
43
  import { ViewModel } from '../common/debugViewModel.js';
44
- import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
44
+ import { DisassemblyViewInput } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
45
45
  import { VIEWLET_ID as VIEWLET_ID$1 } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
46
46
  import { ITestService } from 'vscode/vscode/vs/workbench/contrib/testing/common/testService.service';
47
47
  import { NumberBadge } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
@@ -133,7 +133,7 @@ let DebugService = class DebugService {
133
133
  if (numberOfSessions > 0) {
134
134
  const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
135
135
  if (viewContainer) {
136
- this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2578, "1 active session")) : ( localize(2579, "{0} active sessions", n))))) });
136
+ this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2100, "1 active session")) : ( localize(2101, "{0} active sessions", n))))) });
137
137
  }
138
138
  }
139
139
  }));
@@ -155,7 +155,7 @@ let DebugService = class DebugService {
155
155
  }
156
156
  }));
157
157
  this.disposables.add(extensionService.onWillStop(evt => {
158
- evt.veto(this.model.getSessions().length > 0, ( localize(2580, 'A debug session is still running.')));
158
+ evt.veto(this.model.getSessions().length > 0, ( localize(2102, 'A debug session is still running.')));
159
159
  }));
160
160
  this.initContextKeys(contextKeyService);
161
161
  }
@@ -264,8 +264,8 @@ let DebugService = class DebugService {
264
264
  }
265
265
  }
266
266
  async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
267
- const message = options && options.noDebug ? ( localize(2581, "Running executes build tasks and program code from your workspace.")) : ( localize(
268
- 2582,
267
+ const message = options && options.noDebug ? ( localize(2103, "Running executes build tasks and program code from your workspace.")) : ( localize(
268
+ 2104,
269
269
  "Debugging executes build tasks and program code from your workspace."
270
270
  ));
271
271
  const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
@@ -296,7 +296,7 @@ let DebugService = class DebugService {
296
296
  if (compound) {
297
297
  if (!compound.configurations) {
298
298
  throw ( (new Error(localize(
299
- 2583,
299
+ 2105,
300
300
  "Compound must have \"configurations\" attribute set in order to start multiple configurations."
301
301
  ))));
302
302
  }
@@ -326,9 +326,9 @@ let DebugService = class DebugService {
326
326
  }
327
327
  else {
328
328
  throw ( (new Error(
329
- launchesContainingName.length === 0 ? localize(2584, "Could not find launch configuration '{0}' in the workspace.", name)
329
+ launchesContainingName.length === 0 ? localize(2106, "Could not find launch configuration '{0}' in the workspace.", name)
330
330
  : localize(
331
- 2585,
331
+ 2107,
332
332
  "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
333
333
  name
334
334
  )
@@ -342,7 +342,7 @@ let DebugService = class DebugService {
342
342
  }
343
343
  else {
344
344
  throw ( (new Error(localize(
345
- 2586,
345
+ 2108,
346
346
  "Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
347
347
  configData.folder,
348
348
  configData.name,
@@ -358,11 +358,11 @@ let DebugService = class DebugService {
358
358
  }
359
359
  if (configOrName && !config) {
360
360
  const message = !!launch ? ( localize(
361
- 2587,
361
+ 2109,
362
362
  "Configuration '{0}' is missing in 'launch.json'.",
363
363
  typeof configOrName === 'string' ? configOrName : configOrName.name
364
364
  )) :
365
- ( localize(2588, "'launch.json' does not exist for passed workspace folder."));
365
+ ( localize(2110, "'launch.json' does not exist for passed workspace folder."));
366
366
  throw ( (new Error(message)));
367
367
  }
368
368
  const result = await this.createSession(launch, config, options);
@@ -435,23 +435,23 @@ let DebugService = class DebugService {
435
435
  let message;
436
436
  if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
437
437
  message = configByProviders.request ? ( localize(
438
- 2589,
438
+ 2111,
439
439
  "Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
440
440
  'request',
441
441
  configByProviders.request
442
442
  ))
443
443
  : ( localize(
444
- 2590,
444
+ 2112,
445
445
  "Attribute '{0}' is missing from the chosen debug configuration.",
446
446
  'request'
447
447
  ));
448
448
  }
449
449
  else {
450
- message = resolvedConfig.type ? ( localize(2591, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
451
- ( localize(2592, "Missing property 'type' for the chosen launch configuration."));
450
+ message = resolvedConfig.type ? ( localize(2113, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
451
+ ( localize(2114, "Missing property 'type' for the chosen launch configuration."));
452
452
  }
453
453
  const actionList = [];
454
- actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2593, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
454
+ actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2115, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
455
455
  await this.showError(message, actionList);
456
456
  return false;
457
457
  }
@@ -472,7 +472,7 @@ let DebugService = class DebugService {
472
472
  }
473
473
  else if (this.contextService.getWorkbenchState() === 1 ) {
474
474
  await this.showError(( localize(
475
- 2594,
475
+ 2116,
476
476
  "The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
477
477
  )));
478
478
  }
@@ -491,7 +491,7 @@ let DebugService = class DebugService {
491
491
  const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
492
492
  if (options?.startedByUser && ( (this.model.getSessions().some(s => s.getLabel() === session.getLabel()))) && configuration.resolved.suppressMultipleSessionWarning !== true) {
493
493
  const result = await this.dialogService.confirm({ message: ( localize(
494
- 2595,
494
+ 2117,
495
495
  "'{0}' is already running. Do you want to start another instance?",
496
496
  session.getLabel()
497
497
  )) });
@@ -582,7 +582,7 @@ let DebugService = class DebugService {
582
582
  if (adapterExitEvent) {
583
583
  if (adapterExitEvent.error) {
584
584
  this.notificationService.error(( localize(
585
- 2596,
585
+ 2118,
586
586
  "Debug adapter process has terminated unexpectedly ({0})",
587
587
  adapterExitEvent.error.message || ( (adapterExitEvent.error.toString()))
588
588
  )));
@@ -705,6 +705,9 @@ let DebugService = class DebugService {
705
705
  }
706
706
  }
707
707
  };
708
+ for (const breakpoint of this.model.getBreakpoints({ triggeredOnly: true })) {
709
+ breakpoint.setSessionDidTrigger(session.getId(), false);
710
+ }
708
711
  if (session.correlatedTestRun) {
709
712
  if (!session.correlatedTestRun.completedAt) {
710
713
  this.testService.cancelTestRun(session.correlatedTestRun.id);
@@ -825,7 +828,7 @@ let DebugService = class DebugService {
825
828
  if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
826
829
  const lineContent = control.getModel().getLineContent(lineNumber);
827
830
  alert(( localize(
828
- 2597,
831
+ 2119,
829
832
  "{0}, debugging paused {1}, {2}:{3}",
830
833
  lineContent,
831
834
  thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
@@ -898,7 +901,7 @@ let DebugService = class DebugService {
898
901
  async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
899
902
  const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
900
903
  if (ariaAnnounce) {
901
- breakpoints.forEach(bp => status(( localize(2598, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
904
+ breakpoints.forEach(bp => status(( localize(2120, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
902
905
  }
903
906
  this.debugStorage.storeBreakpoints(this.model);
904
907
  await this.sendBreakpoints(uri);
@@ -920,7 +923,7 @@ let DebugService = class DebugService {
920
923
  const breakpoints = this.model.getBreakpoints();
921
924
  const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
922
925
  toRemove.forEach(bp => status(( localize(
923
- 2599,
926
+ 2121,
924
927
  "Removed breakpoint, line {0}, file {1}",
925
928
  bp.lineNumber,
926
929
  bp.uri.fsPath
@@ -25,10 +25,10 @@ import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/co
25
25
  import { RawDebugSession } from './rawDebugSession.js';
26
26
  import { VIEWLET_ID, isFrameDeemphasized } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
27
27
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
28
- import { MemoryRegion, ExpressionContainer, Thread } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
29
- import { Source } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugSource';
28
+ import { MemoryRegion, ExpressionContainer, Thread } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/debugModel';
29
+ import { Source } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/debugSource';
30
30
  import { filterExceptionsFromTelemetry } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
31
- import { ReplModel } from 'vscode/vscode/vs/workbench/contrib/debug/common/replModel';
31
+ import { ReplModel } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/common/replModel';
32
32
  import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
33
33
  import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
34
34
  import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
@@ -290,7 +290,7 @@ let DebugSession = class DebugSession {
290
290
  async launchOrAttach(config) {
291
291
  if (!this.raw) {
292
292
  throw ( (new Error(
293
- localize(5791, "No debugger available, can not send '{0}'", 'launch or attach')
293
+ localize(5792, "No debugger available, can not send '{0}'", 'launch or attach')
294
294
  )));
295
295
  }
296
296
  if (this.parentSession && this.parentSession.state === 0 ) {
@@ -346,7 +346,7 @@ let DebugSession = class DebugSession {
346
346
  }
347
347
  async restart() {
348
348
  if (!this.raw) {
349
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'restart'))));
349
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'restart'))));
350
350
  }
351
351
  this.cancelAllRequests();
352
352
  if (this._options.lifecycleManagedByParent && this.parentSession) {
@@ -358,7 +358,7 @@ let DebugSession = class DebugSession {
358
358
  }
359
359
  async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
360
360
  if (!this.raw) {
361
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'breakpoints'))));
361
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'breakpoints'))));
362
362
  }
363
363
  if (!this.raw.readyForBreakpoints) {
364
364
  return Promise.resolve(undefined);
@@ -387,7 +387,7 @@ let DebugSession = class DebugSession {
387
387
  async sendFunctionBreakpoints(fbpts) {
388
388
  if (!this.raw) {
389
389
  throw ( (new Error(
390
- localize(5791, "No debugger available, can not send '{0}'", 'function breakpoints')
390
+ localize(5792, "No debugger available, can not send '{0}'", 'function breakpoints')
391
391
  )));
392
392
  }
393
393
  if (this.raw.readyForBreakpoints) {
@@ -404,7 +404,7 @@ let DebugSession = class DebugSession {
404
404
  async sendExceptionBreakpoints(exbpts) {
405
405
  if (!this.raw) {
406
406
  throw ( (new Error(
407
- localize(5791, "No debugger available, can not send '{0}'", 'exception breakpoints')
407
+ localize(5792, "No debugger available, can not send '{0}'", 'exception breakpoints')
408
408
  )));
409
409
  }
410
410
  if (this.raw.readyForBreakpoints) {
@@ -429,7 +429,7 @@ let DebugSession = class DebugSession {
429
429
  }
430
430
  dataBytesBreakpointInfo(address, bytes) {
431
431
  if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
432
- throw ( (new Error(localize(5792, "Session does not support breakpoints with bytes"))));
432
+ throw ( (new Error(localize(5793, "Session does not support breakpoints with bytes"))));
433
433
  }
434
434
  return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
435
435
  }
@@ -439,11 +439,11 @@ let DebugSession = class DebugSession {
439
439
  async _dataBreakpointInfo(args) {
440
440
  if (!this.raw) {
441
441
  throw ( (new Error(
442
- localize(5791, "No debugger available, can not send '{0}'", 'data breakpoints info')
442
+ localize(5792, "No debugger available, can not send '{0}'", 'data breakpoints info')
443
443
  )));
444
444
  }
445
445
  if (!this.raw.readyForBreakpoints) {
446
- throw ( (new Error(localize(5793, "Session is not ready for breakpoints"))));
446
+ throw ( (new Error(localize(5794, "Session is not ready for breakpoints"))));
447
447
  }
448
448
  const response = await this.raw.dataBreakpointInfo(args);
449
449
  return response?.body;
@@ -451,7 +451,7 @@ let DebugSession = class DebugSession {
451
451
  async sendDataBreakpoints(dataBreakpoints) {
452
452
  if (!this.raw) {
453
453
  throw ( (new Error(
454
- localize(5791, "No debugger available, can not send '{0}'", 'data breakpoints')
454
+ localize(5792, "No debugger available, can not send '{0}'", 'data breakpoints')
455
455
  )));
456
456
  }
457
457
  if (this.raw.readyForBreakpoints) {
@@ -483,7 +483,7 @@ let DebugSession = class DebugSession {
483
483
  async sendInstructionBreakpoints(instructionBreakpoints) {
484
484
  if (!this.raw) {
485
485
  throw ( (new Error(localize(
486
- 5791,
486
+ 5792,
487
487
  "No debugger available, can not send '{0}'",
488
488
  'instruction breakpoints'
489
489
  ))));
@@ -502,7 +502,7 @@ let DebugSession = class DebugSession {
502
502
  async breakpointsLocations(uri, lineNumber) {
503
503
  if (!this.raw) {
504
504
  throw ( (new Error(
505
- localize(5791, "No debugger available, can not send '{0}'", 'breakpoints locations')
505
+ localize(5792, "No debugger available, can not send '{0}'", 'breakpoints locations')
506
506
  )));
507
507
  }
508
508
  const source = this.getRawSource(uri);
@@ -518,13 +518,13 @@ let DebugSession = class DebugSession {
518
518
  }
519
519
  customRequest(request, args) {
520
520
  if (!this.raw) {
521
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", request))));
521
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", request))));
522
522
  }
523
523
  return this.raw.custom(request, args);
524
524
  }
525
525
  stackTrace(threadId, startFrame, levels, token) {
526
526
  if (!this.raw) {
527
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'stackTrace'))));
527
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'stackTrace'))));
528
528
  }
529
529
  const sessionToken = this.getNewCancellationToken(threadId, token);
530
530
  return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
@@ -532,7 +532,7 @@ let DebugSession = class DebugSession {
532
532
  async exceptionInfo(threadId) {
533
533
  if (!this.raw) {
534
534
  throw ( (new Error(
535
- localize(5791, "No debugger available, can not send '{0}'", 'exceptionInfo')
535
+ localize(5792, "No debugger available, can not send '{0}'", 'exceptionInfo')
536
536
  )));
537
537
  }
538
538
  const response = await this.raw.exceptionInfo({ threadId });
@@ -548,21 +548,21 @@ let DebugSession = class DebugSession {
548
548
  }
549
549
  scopes(frameId, threadId) {
550
550
  if (!this.raw) {
551
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'scopes'))));
551
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'scopes'))));
552
552
  }
553
553
  const token = this.getNewCancellationToken(threadId);
554
554
  return this.raw.scopes({ frameId }, token);
555
555
  }
556
556
  variables(variablesReference, threadId, filter, start, count) {
557
557
  if (!this.raw) {
558
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'variables'))));
558
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'variables'))));
559
559
  }
560
560
  const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
561
561
  return this.raw.variables({ variablesReference, filter, start, count }, token);
562
562
  }
563
563
  evaluate(expression, frameId, context, location) {
564
564
  if (!this.raw) {
565
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'evaluate'))));
565
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'evaluate'))));
566
566
  }
567
567
  return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
568
568
  }
@@ -570,7 +570,7 @@ let DebugSession = class DebugSession {
570
570
  await this.waitForTriggeredBreakpoints();
571
571
  if (!this.raw) {
572
572
  throw ( (new Error(
573
- localize(5791, "No debugger available, can not send '{0}'", 'restartFrame')
573
+ localize(5792, "No debugger available, can not send '{0}'", 'restartFrame')
574
574
  )));
575
575
  }
576
576
  await this.raw.restartFrame({ frameId }, threadId);
@@ -584,7 +584,7 @@ let DebugSession = class DebugSession {
584
584
  async next(threadId, granularity) {
585
585
  await this.waitForTriggeredBreakpoints();
586
586
  if (!this.raw) {
587
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'next'))));
587
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'next'))));
588
588
  }
589
589
  this.setLastSteppingGranularity(threadId, granularity);
590
590
  await this.raw.next({ threadId, granularity });
@@ -592,7 +592,7 @@ let DebugSession = class DebugSession {
592
592
  async stepIn(threadId, targetId, granularity) {
593
593
  await this.waitForTriggeredBreakpoints();
594
594
  if (!this.raw) {
595
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'stepIn'))));
595
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'stepIn'))));
596
596
  }
597
597
  this.setLastSteppingGranularity(threadId, granularity);
598
598
  await this.raw.stepIn({ threadId, targetId, granularity });
@@ -600,7 +600,7 @@ let DebugSession = class DebugSession {
600
600
  async stepOut(threadId, granularity) {
601
601
  await this.waitForTriggeredBreakpoints();
602
602
  if (!this.raw) {
603
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'stepOut'))));
603
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'stepOut'))));
604
604
  }
605
605
  this.setLastSteppingGranularity(threadId, granularity);
606
606
  await this.raw.stepOut({ threadId, granularity });
@@ -608,7 +608,7 @@ let DebugSession = class DebugSession {
608
608
  async stepBack(threadId, granularity) {
609
609
  await this.waitForTriggeredBreakpoints();
610
610
  if (!this.raw) {
611
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'stepBack'))));
611
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'stepBack'))));
612
612
  }
613
613
  this.setLastSteppingGranularity(threadId, granularity);
614
614
  await this.raw.stepBack({ threadId, granularity });
@@ -616,7 +616,7 @@ let DebugSession = class DebugSession {
616
616
  async continue(threadId) {
617
617
  await this.waitForTriggeredBreakpoints();
618
618
  if (!this.raw) {
619
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'continue'))));
619
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'continue'))));
620
620
  }
621
621
  await this.raw.continue({ threadId });
622
622
  }
@@ -624,54 +624,54 @@ let DebugSession = class DebugSession {
624
624
  await this.waitForTriggeredBreakpoints();
625
625
  if (!this.raw) {
626
626
  throw ( (new Error(
627
- localize(5791, "No debugger available, can not send '{0}'", 'reverse continue')
627
+ localize(5792, "No debugger available, can not send '{0}'", 'reverse continue')
628
628
  )));
629
629
  }
630
630
  await this.raw.reverseContinue({ threadId });
631
631
  }
632
632
  async pause(threadId) {
633
633
  if (!this.raw) {
634
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'pause'))));
634
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'pause'))));
635
635
  }
636
636
  await this.raw.pause({ threadId });
637
637
  }
638
638
  async terminateThreads(threadIds) {
639
639
  if (!this.raw) {
640
640
  throw ( (new Error(
641
- localize(5791, "No debugger available, can not send '{0}'", 'terminateThreads')
641
+ localize(5792, "No debugger available, can not send '{0}'", 'terminateThreads')
642
642
  )));
643
643
  }
644
644
  await this.raw.terminateThreads({ threadIds });
645
645
  }
646
646
  setVariable(variablesReference, name, value) {
647
647
  if (!this.raw) {
648
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'setVariable'))));
648
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'setVariable'))));
649
649
  }
650
650
  return this.raw.setVariable({ variablesReference, name, value });
651
651
  }
652
652
  setExpression(frameId, expression, value) {
653
653
  if (!this.raw) {
654
654
  throw ( (new Error(
655
- localize(5791, "No debugger available, can not send '{0}'", 'setExpression')
655
+ localize(5792, "No debugger available, can not send '{0}'", 'setExpression')
656
656
  )));
657
657
  }
658
658
  return this.raw.setExpression({ expression, value, frameId });
659
659
  }
660
660
  gotoTargets(source, line, column) {
661
661
  if (!this.raw) {
662
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'gotoTargets'))));
662
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'gotoTargets'))));
663
663
  }
664
664
  return this.raw.gotoTargets({ source, line, column });
665
665
  }
666
666
  goto(threadId, targetId) {
667
667
  if (!this.raw) {
668
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'goto'))));
668
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'goto'))));
669
669
  }
670
670
  return this.raw.goto({ threadId, targetId });
671
671
  }
672
672
  loadSource(resource) {
673
673
  if (!this.raw) {
674
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'loadSource'))))));
674
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'loadSource'))))));
675
675
  }
676
676
  const source = this.getSourceForUri(resource);
677
677
  let rawSource;
@@ -686,7 +686,7 @@ let DebugSession = class DebugSession {
686
686
  }
687
687
  async getLoadedSources() {
688
688
  if (!this.raw) {
689
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'getLoadedSources'))))));
689
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'getLoadedSources'))))));
690
690
  }
691
691
  const response = await this.raw.loadedSources({});
692
692
  if (response?.body && response.body.sources) {
@@ -700,7 +700,7 @@ let DebugSession = class DebugSession {
700
700
  }
701
701
  async completions(frameId, threadId, text, position, overwriteBefore, token) {
702
702
  if (!this.raw) {
703
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'completions'))))));
703
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'completions'))))));
704
704
  }
705
705
  const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
706
706
  return this.raw.completions({
@@ -712,43 +712,43 @@ let DebugSession = class DebugSession {
712
712
  }
713
713
  async stepInTargets(frameId) {
714
714
  if (!this.raw) {
715
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'stepInTargets'))))));
715
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'stepInTargets'))))));
716
716
  }
717
717
  const response = await this.raw.stepInTargets({ frameId });
718
718
  return response?.body.targets;
719
719
  }
720
720
  async cancel(progressId) {
721
721
  if (!this.raw) {
722
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'cancel'))))));
722
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'cancel'))))));
723
723
  }
724
724
  return this.raw.cancel({ progressId });
725
725
  }
726
726
  async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
727
727
  if (!this.raw) {
728
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'disassemble'))))));
728
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'disassemble'))))));
729
729
  }
730
730
  const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
731
731
  return response?.body?.instructions;
732
732
  }
733
733
  readMemory(memoryReference, offset, count) {
734
734
  if (!this.raw) {
735
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'readMemory'))))));
735
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'readMemory'))))));
736
736
  }
737
737
  return this.raw.readMemory({ count, memoryReference, offset });
738
738
  }
739
739
  writeMemory(memoryReference, offset, data, allowPartial) {
740
740
  if (!this.raw) {
741
- return Promise.reject(( (new Error(( localize(5791, "No debugger available, can not send '{0}'", 'disassemble'))))));
741
+ return Promise.reject(( (new Error(( localize(5792, "No debugger available, can not send '{0}'", 'disassemble'))))));
742
742
  }
743
743
  return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
744
744
  }
745
745
  async resolveLocationReference(locationReference) {
746
746
  if (!this.raw) {
747
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'locations'))));
747
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'locations'))));
748
748
  }
749
749
  const location = await this.raw.locations({ locationReference });
750
750
  if (!location?.body) {
751
- throw ( (new Error(localize(5791, "No debugger available, can not send '{0}'", 'locations'))));
751
+ throw ( (new Error(localize(5792, "No debugger available, can not send '{0}'", 'locations'))));
752
752
  }
753
753
  const source = this.getSource(location.body.source);
754
754
  return { column: 1, ...location.body, source };
@@ -860,8 +860,8 @@ let DebugSession = class DebugSession {
860
860
  }
861
861
  this.rawListeners.add(this.raw.onDidInitialize(async () => {
862
862
  status(this.configuration.noDebug
863
- ? ( localize(5794, "Started running without debugging."))
864
- : ( localize(5795, "Debugging started.")));
863
+ ? ( localize(5795, "Started running without debugging."))
864
+ : ( localize(5796, "Debugging started.")));
865
865
  const sendConfigurationDone = async () => {
866
866
  if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
867
867
  try {
@@ -908,7 +908,7 @@ let DebugSession = class DebugSession {
908
908
  }
909
909
  }));
910
910
  this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
911
- status(( localize(5796, "Debugging stopped.")));
911
+ status(( localize(5797, "Debugging stopped.")));
912
912
  if (event.body && event.body.restart) {
913
913
  await this.debugService.restartSession(this, event.body.restart);
914
914
  }
@@ -47,10 +47,10 @@ let DebugStatusContribution = class DebugStatusContribution {
47
47
  text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
48
48
  }
49
49
  return {
50
- name: ( localize(6042, "Debug")),
50
+ name: ( localize(6043, "Debug")),
51
51
  text: '$(debug-alt-small) ' + text,
52
- ariaLabel: ( localize(6043, "Debug: {0}", text)),
53
- tooltip: ( localize(6044, "Select and Start Debug Configuration")),
52
+ ariaLabel: ( localize(6044, "Debug: {0}", text)),
53
+ tooltip: ( localize(6045, "Select and Start Debug Configuration")),
54
54
  command: 'workbench.action.debug.selectandstart'
55
55
  };
56
56
  }