@codingame/monaco-vscode-debug-service-override 26.2.2 → 28.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/platform/debug/common/extensionHostDebugIpc.d.ts +1 -1
  3. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +6 -5
  4. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +104 -104
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +14 -14
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +12 -12
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +9 -6
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -25
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +2 -2
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +25 -25
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +52 -42
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +15 -15
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +4 -6
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
  19. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
  20. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +14 -10
  21. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css +2 -0
  22. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css +2 -1
  23. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +1 -0
  24. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.d.ts +1 -1
  25. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +27 -27
  26. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +2 -3
  27. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +107 -38
  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/watchExpressionsView.js +12 -12
  31. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
  32. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +2 -2
  33. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
  34. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +43 -43
  35. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +2 -1
  36. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +10 -8
  37. package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +1 -1
  38. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
@@ -110,10 +110,10 @@ let DebugService = class DebugService {
110
110
  this.sessionCancellationTokens = ( new Map());
111
111
  this.haveDoneLazySetup = false;
112
112
  this.breakpointsToSendOnResourceSaved = ( new Set());
113
- this._onDidChangeState = ( new Emitter());
114
- this._onDidNewSession = ( new Emitter());
115
- this._onWillNewSession = ( new Emitter());
116
- this._onDidEndSession = ( new Emitter());
113
+ this._onDidChangeState = this.disposables.add(( new Emitter()));
114
+ this._onDidNewSession = this.disposables.add(( new Emitter()));
115
+ this._onWillNewSession = this.disposables.add(( new Emitter()));
116
+ this._onDidEndSession = this.disposables.add(( new Emitter()));
117
117
  this.adapterManager = this.instantiationService.createInstance(AdapterManager, {
118
118
  onDidNewSession: this.onDidNewSession,
119
119
  configurationManager: () => this.configurationManager
@@ -125,7 +125,7 @@ let DebugService = class DebugService {
125
125
  this.chosenEnvironments = this.debugStorage.loadChosenEnvironments();
126
126
  this.model = this.instantiationService.createInstance(DebugModel, this.debugStorage);
127
127
  this.telemetry = this.instantiationService.createInstance(DebugTelemetry, this.model);
128
- this.viewModel = ( new ViewModel(contextKeyService));
128
+ this.viewModel = this.disposables.add(( new ViewModel(contextKeyService)));
129
129
  this.taskRunner = this.instantiationService.createInstance(DebugTaskRunner);
130
130
  this.disposables.add(this.fileService.onDidFilesChange(e => this.onFileChanges(e)));
131
131
  this.disposables.add(this.lifecycleService.onWillShutdown(this.dispose, this));
@@ -168,7 +168,7 @@ let DebugService = class DebugService {
168
168
  const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
169
169
  if (viewContainer) {
170
170
  this.activity = this.activityService.showViewContainerActivity(viewContainer.id, {
171
- badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(7375, "1 active session")) : ( localize(7376, "{0} active sessions", n))))
171
+ badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(8168, "1 active session")) : ( localize(8169, "{0} active sessions", n))))
172
172
  });
173
173
  }
174
174
  }
@@ -190,7 +190,7 @@ let DebugService = class DebugService {
190
190
  }
191
191
  }));
192
192
  this.disposables.add(extensionService.onWillStop(evt => {
193
- evt.veto(this.model.getSessions().length > 0, ( localize(7377, "A debug session is still running that would terminate.")));
193
+ evt.veto(this.model.getSessions().length > 0, ( localize(8170, "A debug session is still running that would terminate.")));
194
194
  }));
195
195
  this.initContextKeys(contextKeyService);
196
196
  }
@@ -302,8 +302,8 @@ let DebugService = class DebugService {
302
302
  }
303
303
  }
304
304
  async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
305
- const message = options && options.noDebug ? ( localize(7378, "Running executes build tasks and program code from your workspace.")) : ( localize(
306
- 7379,
305
+ const message = options && options.noDebug ? ( localize(8171, "Running executes build tasks and program code from your workspace.")) : ( localize(
306
+ 8172,
307
307
  "Debugging executes build tasks and program code from your workspace."
308
308
  ));
309
309
  const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({
@@ -335,7 +335,7 @@ let DebugService = class DebugService {
335
335
  if (compound) {
336
336
  if (!compound.configurations) {
337
337
  throw ( new Error(( localize(
338
- 7380,
338
+ 8173,
339
339
  "Compound must have \"configurations\" attribute set in order to start multiple configurations."
340
340
  ))));
341
341
  }
@@ -368,8 +368,8 @@ let DebugService = class DebugService {
368
368
  } else if (launch && launchesContainingName.length > 1 && launchesContainingName.indexOf(launch) >= 0) {
369
369
  launchForName = launch;
370
370
  } else {
371
- throw ( new Error(launchesContainingName.length === 0 ? ( localize(7381, "Could not find launch configuration '{0}' in the workspace.", name)) : ( localize(
372
- 7382,
371
+ throw ( new Error(launchesContainingName.length === 0 ? ( localize(8174, "Could not find launch configuration '{0}' in the workspace.", name)) : ( localize(
372
+ 8175,
373
373
  "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
374
374
  name
375
375
  ))));
@@ -382,7 +382,7 @@ let DebugService = class DebugService {
382
382
  launchForName = launchesMatchingConfigData[0];
383
383
  } else {
384
384
  throw ( new Error(( localize(
385
- 7383,
385
+ 8176,
386
386
  "Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
387
387
  configData.folder,
388
388
  configData.name,
@@ -398,10 +398,10 @@ let DebugService = class DebugService {
398
398
  }
399
399
  if (configOrName && !config) {
400
400
  const message = !!launch ? ( localize(
401
- 7384,
401
+ 8177,
402
402
  "Configuration '{0}' is missing in 'launch.json'.",
403
403
  typeof configOrName === "string" ? configOrName : configOrName.name
404
- )) : ( localize(7385, "'launch.json' does not exist for passed workspace folder."));
404
+ )) : ( localize(8178, "'launch.json' does not exist for passed workspace folder."));
405
405
  throw ( new Error(message));
406
406
  }
407
407
  const result = await this.createSession(launch, config, options);
@@ -514,22 +514,22 @@ let DebugService = class DebugService {
514
514
  let message;
515
515
  if (configByProviders.request !== "attach" && configByProviders.request !== "launch") {
516
516
  message = configByProviders.request ? ( localize(
517
- 7386,
517
+ 8179,
518
518
  "Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
519
519
  "request",
520
520
  configByProviders.request
521
521
  )) : ( localize(
522
- 7387,
522
+ 8180,
523
523
  "Attribute '{0}' is missing from the chosen debug configuration.",
524
524
  "request"
525
525
  ));
526
526
  } else {
527
- message = resolvedConfig.type ? ( localize(7388, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) : ( localize(7389, "Missing property 'type' for the chosen launch configuration."));
527
+ message = resolvedConfig.type ? ( localize(8181, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) : ( localize(8182, "Missing property 'type' for the chosen launch configuration."));
528
528
  }
529
529
  const actionList = [];
530
530
  actionList.push(toAction({
531
531
  id: "installAdditionalDebuggers",
532
- label: ( localize(7390, "Install {0} Extension", resolvedConfig.type)),
532
+ label: ( localize(8183, "Install {0} Extension", resolvedConfig.type)),
533
533
  enabled: true,
534
534
  run: async () => this.commandService.executeCommand("debug.installAdditionalDebuggers", resolvedConfig?.type)
535
535
  }));
@@ -557,7 +557,7 @@ let DebugService = class DebugService {
557
557
  await this.showError(err.message);
558
558
  } else if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
559
559
  await this.showError(( localize(
560
- 7391,
560
+ 8184,
561
561
  "The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
562
562
  )));
563
563
  }
@@ -634,7 +634,7 @@ let DebugService = class DebugService {
634
634
  async confirmConcurrentSession(sessionLabel) {
635
635
  const result = await this.dialogService.confirm({
636
636
  message: ( localize(
637
- 7392,
637
+ 8185,
638
638
  "'{0}' is already running. Do you want to start another instance?",
639
639
  sessionLabel
640
640
  ))
@@ -686,7 +686,7 @@ let DebugService = class DebugService {
686
686
  if (adapterExitEvent) {
687
687
  if (adapterExitEvent.error) {
688
688
  this.notificationService.error(( localize(
689
- 7393,
689
+ 8186,
690
690
  "Debug adapter process has terminated unexpectedly ({0})",
691
691
  adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
692
692
  )));
@@ -959,7 +959,7 @@ let DebugService = class DebugService {
959
959
  if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
960
960
  const lineContent = control.getModel().getLineContent(lineNumber);
961
961
  alert(( localize(
962
- 7394,
962
+ 8187,
963
963
  "{0}, debugging paused {1}, {2}:{3}",
964
964
  lineContent,
965
965
  thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : "",
@@ -1026,7 +1026,7 @@ let DebugService = class DebugService {
1026
1026
  async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
1027
1027
  const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
1028
1028
  if (ariaAnnounce) {
1029
- breakpoints.forEach(bp => status(( localize(7395, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
1029
+ breakpoints.forEach(bp => status(( localize(8188, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
1030
1030
  }
1031
1031
  this.debugStorage.storeBreakpoints(this.model);
1032
1032
  await this.sendBreakpoints(uri);
@@ -1047,7 +1047,7 @@ let DebugService = class DebugService {
1047
1047
  const breakpoints = this.model.getBreakpoints();
1048
1048
  const toRemove = id === undefined ? breakpoints : id instanceof Array ? breakpoints.filter(bp => id.includes(bp.getId())) : breakpoints.filter(bp => bp.getId() === id);
1049
1049
  toRemove.forEach(bp => status(( localize(
1050
- 7396,
1050
+ 8189,
1051
1051
  "Removed breakpoint, line {0}, file {1}",
1052
1052
  bp.lineNumber,
1053
1053
  bp.uri.fsPath
@@ -317,7 +317,7 @@ let DebugSession = class DebugSession {
317
317
  }
318
318
  async launchOrAttach(config) {
319
319
  if (!this.raw) {
320
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "launch or attach"))));
320
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "launch or attach"))));
321
321
  }
322
322
  if (this.parentSession && this.parentSession.state === State.Inactive) {
323
323
  throw canceled();
@@ -379,7 +379,7 @@ let DebugSession = class DebugSession {
379
379
  }
380
380
  async restart() {
381
381
  if (!this.raw) {
382
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "restart"))));
382
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "restart"))));
383
383
  }
384
384
  this.cancelAllRequests();
385
385
  if (this._options.lifecycleManagedByParent && this.parentSession) {
@@ -392,7 +392,7 @@ let DebugSession = class DebugSession {
392
392
  }
393
393
  async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
394
394
  if (!this.raw) {
395
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "breakpoints"))));
395
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "breakpoints"))));
396
396
  }
397
397
  if (!this.raw.readyForBreakpoints) {
398
398
  return Promise.resolve(undefined);
@@ -420,7 +420,7 @@ let DebugSession = class DebugSession {
420
420
  }
421
421
  async sendFunctionBreakpoints(fbpts) {
422
422
  if (!this.raw) {
423
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "function breakpoints"))));
423
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "function breakpoints"))));
424
424
  }
425
425
  if (this.raw.readyForBreakpoints) {
426
426
  const response = await this.raw.setFunctionBreakpoints({
@@ -437,7 +437,7 @@ let DebugSession = class DebugSession {
437
437
  }
438
438
  async sendExceptionBreakpoints(exbpts) {
439
439
  if (!this.raw) {
440
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "exception breakpoints"))));
440
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "exception breakpoints"))));
441
441
  }
442
442
  if (this.raw.readyForBreakpoints) {
443
443
  const args = this.capabilities.supportsExceptionFilterOptions ? {
@@ -468,7 +468,7 @@ let DebugSession = class DebugSession {
468
468
  }
469
469
  dataBytesBreakpointInfo(address, bytes) {
470
470
  if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
471
- throw ( new Error(( localize(7398, "Session does not support breakpoints with bytes"))));
471
+ throw ( new Error(( localize(8191, "Session does not support breakpoints with bytes"))));
472
472
  }
473
473
  return this._dataBreakpointInfo({
474
474
  name: address,
@@ -485,17 +485,17 @@ let DebugSession = class DebugSession {
485
485
  }
486
486
  async _dataBreakpointInfo(args) {
487
487
  if (!this.raw) {
488
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "data breakpoints info"))));
488
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "data breakpoints info"))));
489
489
  }
490
490
  if (!this.raw.readyForBreakpoints) {
491
- throw ( new Error(( localize(7399, "Session is not ready for breakpoints"))));
491
+ throw ( new Error(( localize(8192, "Session is not ready for breakpoints"))));
492
492
  }
493
493
  const response = await this.raw.dataBreakpointInfo(args);
494
494
  return response?.body;
495
495
  }
496
496
  async sendDataBreakpoints(dataBreakpoints) {
497
497
  if (!this.raw) {
498
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "data breakpoints"))));
498
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "data breakpoints"))));
499
499
  }
500
500
  if (this.raw.readyForBreakpoints) {
501
501
  const converted = await Promise.all(( dataBreakpoints.map(async bp => {
@@ -532,7 +532,7 @@ let DebugSession = class DebugSession {
532
532
  async sendInstructionBreakpoints(instructionBreakpoints) {
533
533
  if (!this.raw) {
534
534
  throw ( new Error(( localize(
535
- 7397,
535
+ 8190,
536
536
  "No debugger available, can not send '{0}'",
537
537
  "instruction breakpoints"
538
538
  ))));
@@ -552,7 +552,7 @@ let DebugSession = class DebugSession {
552
552
  }
553
553
  async breakpointsLocations(uri, lineNumber) {
554
554
  if (!this.raw) {
555
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "breakpoints locations"))));
555
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "breakpoints locations"))));
556
556
  }
557
557
  const source = this.getRawSource(uri);
558
558
  const response = await this.raw.breakpointLocations({
@@ -573,13 +573,13 @@ let DebugSession = class DebugSession {
573
573
  }
574
574
  customRequest(request, args) {
575
575
  if (!this.raw) {
576
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", request))));
576
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", request))));
577
577
  }
578
578
  return this.raw.custom(request, args);
579
579
  }
580
580
  stackTrace(threadId, startFrame, levels, token) {
581
581
  if (!this.raw) {
582
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "stackTrace"))));
582
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stackTrace"))));
583
583
  }
584
584
  const sessionToken = this.getNewCancellationToken(threadId, token);
585
585
  return this.raw.stackTrace({
@@ -590,7 +590,7 @@ let DebugSession = class DebugSession {
590
590
  }
591
591
  async exceptionInfo(threadId) {
592
592
  if (!this.raw) {
593
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "exceptionInfo"))));
593
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "exceptionInfo"))));
594
594
  }
595
595
  const response = await this.raw.exceptionInfo({
596
596
  threadId
@@ -607,7 +607,7 @@ let DebugSession = class DebugSession {
607
607
  }
608
608
  scopes(frameId, threadId) {
609
609
  if (!this.raw) {
610
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "scopes"))));
610
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "scopes"))));
611
611
  }
612
612
  const token = this.getNewCancellationToken(threadId);
613
613
  return this.raw.scopes({
@@ -616,7 +616,7 @@ let DebugSession = class DebugSession {
616
616
  }
617
617
  variables(variablesReference, threadId, filter, start, count) {
618
618
  if (!this.raw) {
619
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "variables"))));
619
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "variables"))));
620
620
  }
621
621
  const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
622
622
  return this.raw.variables({
@@ -628,7 +628,7 @@ let DebugSession = class DebugSession {
628
628
  }
629
629
  evaluate(expression, frameId, context, location) {
630
630
  if (!this.raw) {
631
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "evaluate"))));
631
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "evaluate"))));
632
632
  }
633
633
  return this.raw.evaluate({
634
634
  expression,
@@ -642,7 +642,7 @@ let DebugSession = class DebugSession {
642
642
  async restartFrame(frameId, threadId) {
643
643
  await this.waitForTriggeredBreakpoints();
644
644
  if (!this.raw) {
645
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "restartFrame"))));
645
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "restartFrame"))));
646
646
  }
647
647
  await this.raw.restartFrame({
648
648
  frameId
@@ -657,7 +657,7 @@ let DebugSession = class DebugSession {
657
657
  async next(threadId, granularity) {
658
658
  await this.waitForTriggeredBreakpoints();
659
659
  if (!this.raw) {
660
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "next"))));
660
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "next"))));
661
661
  }
662
662
  this.setLastSteppingGranularity(threadId, granularity);
663
663
  await this.raw.next({
@@ -668,7 +668,7 @@ let DebugSession = class DebugSession {
668
668
  async stepIn(threadId, targetId, granularity) {
669
669
  await this.waitForTriggeredBreakpoints();
670
670
  if (!this.raw) {
671
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "stepIn"))));
671
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepIn"))));
672
672
  }
673
673
  this.setLastSteppingGranularity(threadId, granularity);
674
674
  await this.raw.stepIn({
@@ -680,7 +680,7 @@ let DebugSession = class DebugSession {
680
680
  async stepOut(threadId, granularity) {
681
681
  await this.waitForTriggeredBreakpoints();
682
682
  if (!this.raw) {
683
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "stepOut"))));
683
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepOut"))));
684
684
  }
685
685
  this.setLastSteppingGranularity(threadId, granularity);
686
686
  await this.raw.stepOut({
@@ -691,7 +691,7 @@ let DebugSession = class DebugSession {
691
691
  async stepBack(threadId, granularity) {
692
692
  await this.waitForTriggeredBreakpoints();
693
693
  if (!this.raw) {
694
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "stepBack"))));
694
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepBack"))));
695
695
  }
696
696
  this.setLastSteppingGranularity(threadId, granularity);
697
697
  await this.raw.stepBack({
@@ -702,7 +702,7 @@ let DebugSession = class DebugSession {
702
702
  async continue(threadId) {
703
703
  await this.waitForTriggeredBreakpoints();
704
704
  if (!this.raw) {
705
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "continue"))));
705
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "continue"))));
706
706
  }
707
707
  await this.raw.continue({
708
708
  threadId
@@ -711,7 +711,7 @@ let DebugSession = class DebugSession {
711
711
  async reverseContinue(threadId) {
712
712
  await this.waitForTriggeredBreakpoints();
713
713
  if (!this.raw) {
714
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "reverse continue"))));
714
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "reverse continue"))));
715
715
  }
716
716
  await this.raw.reverseContinue({
717
717
  threadId
@@ -719,7 +719,7 @@ let DebugSession = class DebugSession {
719
719
  }
720
720
  async pause(threadId) {
721
721
  if (!this.raw) {
722
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "pause"))));
722
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "pause"))));
723
723
  }
724
724
  await this.raw.pause({
725
725
  threadId
@@ -727,7 +727,7 @@ let DebugSession = class DebugSession {
727
727
  }
728
728
  async terminateThreads(threadIds) {
729
729
  if (!this.raw) {
730
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "terminateThreads"))));
730
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "terminateThreads"))));
731
731
  }
732
732
  await this.raw.terminateThreads({
733
733
  threadIds
@@ -735,7 +735,7 @@ let DebugSession = class DebugSession {
735
735
  }
736
736
  setVariable(variablesReference, name, value) {
737
737
  if (!this.raw) {
738
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "setVariable"))));
738
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "setVariable"))));
739
739
  }
740
740
  return this.raw.setVariable({
741
741
  variablesReference,
@@ -745,7 +745,7 @@ let DebugSession = class DebugSession {
745
745
  }
746
746
  setExpression(frameId, expression, value) {
747
747
  if (!this.raw) {
748
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "setExpression"))));
748
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "setExpression"))));
749
749
  }
750
750
  return this.raw.setExpression({
751
751
  expression,
@@ -755,7 +755,7 @@ let DebugSession = class DebugSession {
755
755
  }
756
756
  gotoTargets(source, line, column) {
757
757
  if (!this.raw) {
758
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "gotoTargets"))));
758
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "gotoTargets"))));
759
759
  }
760
760
  return this.raw.gotoTargets({
761
761
  source,
@@ -765,7 +765,7 @@ let DebugSession = class DebugSession {
765
765
  }
766
766
  goto(threadId, targetId) {
767
767
  if (!this.raw) {
768
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "goto"))));
768
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "goto"))));
769
769
  }
770
770
  return this.raw.goto({
771
771
  threadId,
@@ -774,7 +774,7 @@ let DebugSession = class DebugSession {
774
774
  }
775
775
  loadSource(resource) {
776
776
  if (!this.raw) {
777
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "loadSource")))));
777
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "loadSource")))));
778
778
  }
779
779
  const source = this.getSourceForUri(resource);
780
780
  let rawSource;
@@ -794,7 +794,7 @@ let DebugSession = class DebugSession {
794
794
  }
795
795
  async getLoadedSources() {
796
796
  if (!this.raw) {
797
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "getLoadedSources")))));
797
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "getLoadedSources")))));
798
798
  }
799
799
  const response = await this.raw.loadedSources({});
800
800
  if (response?.body && response.body.sources) {
@@ -805,7 +805,7 @@ let DebugSession = class DebugSession {
805
805
  }
806
806
  async completions(frameId, threadId, text, position, token) {
807
807
  if (!this.raw) {
808
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "completions")))));
808
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "completions")))));
809
809
  }
810
810
  const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
811
811
  return this.raw.completions({
@@ -817,7 +817,7 @@ let DebugSession = class DebugSession {
817
817
  }
818
818
  async stepInTargets(frameId) {
819
819
  if (!this.raw) {
820
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "stepInTargets")))));
820
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "stepInTargets")))));
821
821
  }
822
822
  const response = await this.raw.stepInTargets({
823
823
  frameId
@@ -826,7 +826,7 @@ let DebugSession = class DebugSession {
826
826
  }
827
827
  async cancel(progressId) {
828
828
  if (!this.raw) {
829
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "cancel")))));
829
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "cancel")))));
830
830
  }
831
831
  return this.raw.cancel({
832
832
  progressId
@@ -834,7 +834,7 @@ let DebugSession = class DebugSession {
834
834
  }
835
835
  async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
836
836
  if (!this.raw) {
837
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "disassemble")))));
837
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "disassemble")))));
838
838
  }
839
839
  const response = await this.raw.disassemble({
840
840
  memoryReference,
@@ -847,7 +847,7 @@ let DebugSession = class DebugSession {
847
847
  }
848
848
  readMemory(memoryReference, offset, count) {
849
849
  if (!this.raw) {
850
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "readMemory")))));
850
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "readMemory")))));
851
851
  }
852
852
  return this.raw.readMemory({
853
853
  count,
@@ -857,7 +857,7 @@ let DebugSession = class DebugSession {
857
857
  }
858
858
  writeMemory(memoryReference, offset, data, allowPartial) {
859
859
  if (!this.raw) {
860
- return Promise.reject(( new Error(( localize(7397, "No debugger available, can not send '{0}'", "disassemble")))));
860
+ return Promise.reject(( new Error(( localize(8190, "No debugger available, can not send '{0}'", "disassemble")))));
861
861
  }
862
862
  return this.raw.writeMemory({
863
863
  memoryReference,
@@ -868,13 +868,13 @@ let DebugSession = class DebugSession {
868
868
  }
869
869
  async resolveLocationReference(locationReference) {
870
870
  if (!this.raw) {
871
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "locations"))));
871
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "locations"))));
872
872
  }
873
873
  const location = await this.raw.locations({
874
874
  locationReference
875
875
  });
876
876
  if (!location?.body) {
877
- throw ( new Error(( localize(7397, "No debugger available, can not send '{0}'", "locations"))));
877
+ throw ( new Error(( localize(8190, "No debugger available, can not send '{0}'", "locations"))));
878
878
  }
879
879
  const source = this.getSource(location.body.source);
880
880
  return {
@@ -988,7 +988,7 @@ let DebugSession = class DebugSession {
988
988
  return;
989
989
  }
990
990
  this.rawListeners.add(this.raw.onDidInitialize(async () => {
991
- status(this.configuration.noDebug ? ( localize(7400, "Started running without debugging.")) : ( localize(7401, "Debugging started.")));
991
+ status(this.configuration.noDebug ? ( localize(8193, "Started running without debugging.")) : ( localize(8194, "Debugging started.")));
992
992
  const sendConfigurationDone = async () => {
993
993
  if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
994
994
  try {
@@ -1028,7 +1028,7 @@ let DebugSession = class DebugSession {
1028
1028
  }
1029
1029
  }));
1030
1030
  this.rawListeners.add(this.raw.onDidTerminateDebugee(async event => {
1031
- status(( localize(7402, "Debugging stopped.")));
1031
+ status(( localize(8195, "Debugging stopped.")));
1032
1032
  if (event.body && event.body.restart) {
1033
1033
  await this.debugService.restartSession(this, event.body.restart);
1034
1034
  } else if (this.raw) {
@@ -1371,6 +1371,16 @@ let DebugSession = class DebugSession {
1371
1371
  this.cancelAllRequests();
1372
1372
  this.rawListeners.dispose();
1373
1373
  this.globalDisposables.dispose();
1374
+ this._onDidChangeState.dispose();
1375
+ this._onDidEndAdapter.dispose();
1376
+ this._onDidLoadedSource.dispose();
1377
+ this._onDidCustomEvent.dispose();
1378
+ this._onDidProgressStart.dispose();
1379
+ this._onDidProgressUpdate.dispose();
1380
+ this._onDidProgressEnd.dispose();
1381
+ this._onDidInvalidMemory.dispose();
1382
+ this._onDidChangeREPLElements.dispose();
1383
+ this._onDidChangeName.dispose();
1374
1384
  this._waitToResume = undefined;
1375
1385
  }
1376
1386
  getSourceForUri(uri) {
@@ -52,10 +52,10 @@ let DebugStatusContribution = class DebugStatusContribution {
52
52
  text = (manager.getLaunches().length > 1 ? `${name} (${manager.selectedConfiguration.launch.name})` : name);
53
53
  }
54
54
  return {
55
- name: ( localize(7406, "Debug")),
55
+ name: ( localize(8199, "Debug")),
56
56
  text: "$(debug-alt-small) " + text,
57
- ariaLabel: ( localize(7407, "Debug: {0}", text)),
58
- tooltip: ( localize(7408, "Select and Start Debug Configuration")),
57
+ ariaLabel: ( localize(8200, "Debug: {0}", text)),
58
+ tooltip: ( localize(8201, "Select and Start Debug Configuration")),
59
59
  command: "workbench.action.debug.selectandstart"
60
60
  };
61
61
  }