@codingame/monaco-vscode-debug-service-override 8.0.4 → 9.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 (37) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
  3. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +107 -107
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +49 -16
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +19 -8
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +37 -27
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -3
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +15 -13
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +21 -21
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +53 -42
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +109 -82
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
  18. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +9 -9
  19. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +6 -6
  20. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
  21. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +8 -5
  22. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +80 -30
  23. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +12 -29
  24. package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +7 -12
  25. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +19 -13
  26. package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +29 -18
  27. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
  28. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +11 -12
  29. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +21 -20
  30. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
  31. package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +2 -1
  32. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
  33. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
  34. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
  35. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
  37. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -233
@@ -4,7 +4,7 @@ import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar
4
4
  import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
5
5
  import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
6
6
  import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
7
- import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
7
+ import { DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
8
8
  import { clamp } from 'vscode/vscode/vs/base/common/numbers';
9
9
  import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
10
10
  import { ScrollbarVisibility } from 'vscode/vscode/vs/base/common/scrollable';
@@ -34,7 +34,7 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
34
34
  import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
35
35
  import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
36
36
  import { renderExpressionValue, AbstractExpressionDataSource } from 'vscode/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
37
- import { LinkDetector } from './linkDetector.js';
37
+ import { LinkDetector } from 'vscode/vscode/vs/workbench/contrib/debug/browser/linkDetector';
38
38
  import { VariablesRenderer, VisualizedVariableRenderer, openContextMenuForVariableTreeElement } from './variablesView.js';
39
39
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
40
40
  import { Variable, Expression, VisualizedExpression } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
@@ -88,7 +88,6 @@ let DebugHoverWidget = class DebugHoverWidget {
88
88
  this.highlightDecorations = this.editor.createDecorationsCollection();
89
89
  this.isUpdatingTree = false;
90
90
  this.toDispose = [];
91
- this._isVisible = false;
92
91
  this.showAtPosition = null;
93
92
  this.positionPreference = [ContentWidgetPositionPreference.ABOVE, ContentWidgetPositionPreference.BELOW];
94
93
  this.debugHoverComputer = this.instantiationService.createInstance(DebugHoverComputer, this.editor);
@@ -101,7 +100,7 @@ let DebugHoverWidget = class DebugHoverWidget {
101
100
  this.treeContainer.setAttribute('role', 'tree');
102
101
  const tip = append(this.complexValueContainer, $('.tip'));
103
102
  tip.textContent = ( localize(
104
- 10238,
103
+ 10270,
105
104
  'Hold {0} key to switch to editor language hover',
106
105
  isMacintosh ? 'Option' : 'Alt'
107
106
  ));
@@ -174,7 +173,7 @@ let DebugHoverWidget = class DebugHoverWidget {
174
173
  return !!this.domNode?.matches(':hover');
175
174
  }
176
175
  isVisible() {
177
- return this._isVisible;
176
+ return !!this._isVisible;
178
177
  }
179
178
  willBeVisible() {
180
179
  return !!this.showCancellationSource;
@@ -189,7 +188,7 @@ let DebugHoverWidget = class DebugHoverWidget {
189
188
  return this._isVisible && !!this.safeTriangle?.contains(x, y);
190
189
  }
191
190
  async showAt(position, focus, mouseEvent) {
192
- this.showCancellationSource?.cancel();
191
+ this.showCancellationSource?.dispose(true);
193
192
  const cancellationSource = this.showCancellationSource = ( (new CancellationTokenSource()));
194
193
  const session = this.debugService.getViewModel().focusedSession;
195
194
  if (!session || !this.editor.hasModel()) {
@@ -232,13 +231,15 @@ let DebugHoverWidget = class DebugHoverWidget {
232
231
  this.create();
233
232
  }
234
233
  this.showAtPosition = position;
235
- this._isVisible = true;
234
+ const store = new DisposableStore();
235
+ this._isVisible = { store };
236
236
  if (!expression.hasChildren) {
237
237
  this.complexValueContainer.hidden = true;
238
238
  this.valueContainer.hidden = false;
239
- renderExpressionValue(expression, this.valueContainer, {
239
+ renderExpressionValue(store, expression, this.valueContainer, {
240
240
  showChanged: false,
241
- colorize: true
241
+ colorize: true,
242
+ hover: false,
242
243
  }, this.hoverService);
243
244
  this.valueContainer.title = '';
244
245
  this.editor.layoutContentWidget(this);
@@ -303,7 +304,7 @@ let DebugHoverWidget = class DebugHoverWidget {
303
304
  }
304
305
  hide() {
305
306
  if (this.showCancellationSource) {
306
- this.showCancellationSource.cancel();
307
+ this.showCancellationSource.dispose(true);
307
308
  this.showCancellationSource = undefined;
308
309
  }
309
310
  if (!this._isVisible) {
@@ -312,7 +313,8 @@ let DebugHoverWidget = class DebugHoverWidget {
312
313
  if (isAncestorOfActiveElement(this.domNode)) {
313
314
  this.editor.focus();
314
315
  }
315
- this._isVisible = false;
316
+ this._isVisible.store.dispose();
317
+ this._isVisible = undefined;
316
318
  this.highlightDecorations.clear();
317
319
  this.editor.layoutContentWidget(this);
318
320
  this.positionPreference = [ContentWidgetPositionPreference.ABOVE, ContentWidgetPositionPreference.BELOW];
@@ -337,10 +339,10 @@ DebugHoverWidget = DebugHoverWidget_1 = ( (__decorate([
337
339
  ], DebugHoverWidget)));
338
340
  class DebugHoverAccessibilityProvider {
339
341
  getWidgetAriaLabel() {
340
- return ( localize(10239, "Debug Hover"));
342
+ return ( localize(10271, "Debug Hover"));
341
343
  }
342
344
  getAriaLabel(element) {
343
- return ( localize(10240, "{0}, value {1}, variables, debug", element.name, element.value));
345
+ return ( localize(10272, "{0}, value {1}, variables, debug", element.name, element.value));
344
346
  }
345
347
  }
346
348
  class DebugHoverDataSource extends AbstractExpressionDataSource {
@@ -15,7 +15,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
15
15
  constructor(debugService, contextService, commandService, notificationService) {
16
16
  super(DEBUG_QUICK_ACCESS_PREFIX, {
17
17
  noResultsPick: {
18
- label: ( localize(6030, "No matching launch configurations"))
18
+ label: ( localize(5973, "No matching launch configurations"))
19
19
  }
20
20
  });
21
21
  this.debugService = debugService;
@@ -44,7 +44,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
44
44
  highlights: { label: highlights },
45
45
  buttons: [{
46
46
  iconClass: ThemeIcon.asClassName(debugConfigure),
47
- tooltip: ( localize(6031, "Configure Launch Configuration"))
47
+ tooltip: ( localize(5974, "Configure Launch Configuration"))
48
48
  }],
49
49
  trigger: () => {
50
50
  config.launch.openConfigFile({ preserveFocus: false });
@@ -65,7 +65,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
65
65
  const dynamicProviders = await configManager.getDynamicProviders();
66
66
  if (dynamicProviders.length > 0) {
67
67
  picks.push({
68
- type: 'separator', label: ( localize(6032, "contributed"))
68
+ type: 'separator', label: ( localize(5975, "contributed"))
69
69
  });
70
70
  }
71
71
  configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
@@ -76,7 +76,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
76
76
  highlights: { label: highlights },
77
77
  buttons: [{
78
78
  iconClass: ThemeIcon.asClassName(debugRemoveConfig),
79
- tooltip: ( localize(6033, "Remove Launch Configuration"))
79
+ tooltip: ( localize(5976, "Remove Launch Configuration"))
80
80
  }],
81
81
  trigger: () => {
82
82
  configManager.removeRecentDynamicConfigurations(name, type);
@@ -99,7 +99,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
99
99
  dynamicProviders.forEach(provider => {
100
100
  picks.push({
101
101
  label: `$(folder) ${provider.label}...`,
102
- ariaLabel: ( localize(6034, "{0} contributed configurations", provider.label)),
102
+ ariaLabel: ( localize(5977, "{0} contributed configurations", provider.label)),
103
103
  accept: async () => {
104
104
  const pick = await provider.pick();
105
105
  if (pick) {
@@ -111,12 +111,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
111
111
  });
112
112
  const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
113
113
  if (visibleLaunches.length > 0) {
114
- picks.push({ type: 'separator', label: ( localize(6035, "configure")) });
114
+ picks.push({ type: 'separator', label: ( localize(5978, "configure")) });
115
115
  }
116
116
  for (const launch of visibleLaunches) {
117
117
  const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
118
- ( localize(6036, "Add Config ({0})...", launch.name)) :
119
- ( localize(6037, "Add Configuration..."));
118
+ ( localize(5979, "Add Config ({0})...", launch.name)) :
119
+ ( localize(5980, "Add Configuration..."));
120
120
  picks.push({
121
121
  label,
122
122
  description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? launch.name : '',
@@ -138,7 +138,7 @@ let DebugService = class DebugService {
138
138
  if (numberOfSessions > 0) {
139
139
  const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
140
140
  if (viewContainer) {
141
- this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2554, "1 active session")) : ( localize(2555, "{0} active sessions", n))))) });
141
+ this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2085, "1 active session")) : ( localize(2086, "{0} active sessions", n))))) });
142
142
  }
143
143
  }
144
144
  }));
@@ -160,7 +160,7 @@ let DebugService = class DebugService {
160
160
  }
161
161
  }));
162
162
  this.disposables.add(extensionService.onWillStop(evt => {
163
- evt.veto(this.model.getSessions().length > 0, ( localize(2556, 'A debug session is still running.')));
163
+ evt.veto(this.model.getSessions().length > 0, ( localize(2087, 'A debug session is still running.')));
164
164
  }));
165
165
  this.initContextKeys(contextKeyService);
166
166
  }
@@ -269,8 +269,8 @@ let DebugService = class DebugService {
269
269
  }
270
270
  }
271
271
  async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
272
- const message = options && options.noDebug ? ( localize(2557, "Running executes build tasks and program code from your workspace.")) : ( localize(
273
- 2558,
272
+ const message = options && options.noDebug ? ( localize(2088, "Running executes build tasks and program code from your workspace.")) : ( localize(
273
+ 2089,
274
274
  "Debugging executes build tasks and program code from your workspace."
275
275
  ));
276
276
  const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
@@ -301,7 +301,7 @@ let DebugService = class DebugService {
301
301
  if (compound) {
302
302
  if (!compound.configurations) {
303
303
  throw ( (new Error(localize(
304
- 2559,
304
+ 2090,
305
305
  "Compound must have \"configurations\" attribute set in order to start multiple configurations."
306
306
  ))));
307
307
  }
@@ -331,9 +331,9 @@ let DebugService = class DebugService {
331
331
  }
332
332
  else {
333
333
  throw ( (new Error(
334
- launchesContainingName.length === 0 ? localize(2560, "Could not find launch configuration '{0}' in the workspace.", name)
334
+ launchesContainingName.length === 0 ? localize(2091, "Could not find launch configuration '{0}' in the workspace.", name)
335
335
  : localize(
336
- 2561,
336
+ 2092,
337
337
  "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
338
338
  name
339
339
  )
@@ -347,7 +347,7 @@ let DebugService = class DebugService {
347
347
  }
348
348
  else {
349
349
  throw ( (new Error(localize(
350
- 2562,
350
+ 2093,
351
351
  "Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
352
352
  configData.folder,
353
353
  configData.name,
@@ -363,11 +363,11 @@ let DebugService = class DebugService {
363
363
  }
364
364
  if (configOrName && !config) {
365
365
  const message = !!launch ? ( localize(
366
- 2563,
366
+ 2094,
367
367
  "Configuration '{0}' is missing in 'launch.json'.",
368
368
  typeof configOrName === 'string' ? configOrName : configOrName.name
369
369
  )) :
370
- ( localize(2564, "'launch.json' does not exist for passed workspace folder."));
370
+ ( localize(2095, "'launch.json' does not exist for passed workspace folder."));
371
371
  throw ( (new Error(message)));
372
372
  }
373
373
  const result = await this.createSession(launch, config, options);
@@ -440,23 +440,23 @@ let DebugService = class DebugService {
440
440
  let message;
441
441
  if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
442
442
  message = configByProviders.request ? ( localize(
443
- 2565,
443
+ 2096,
444
444
  "Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
445
445
  'request',
446
446
  configByProviders.request
447
447
  ))
448
448
  : ( localize(
449
- 2566,
449
+ 2097,
450
450
  "Attribute '{0}' is missing from the chosen debug configuration.",
451
451
  'request'
452
452
  ));
453
453
  }
454
454
  else {
455
- message = resolvedConfig.type ? ( localize(2567, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
456
- ( localize(2568, "Missing property 'type' for the chosen launch configuration."));
455
+ message = resolvedConfig.type ? ( localize(2098, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
456
+ ( localize(2099, "Missing property 'type' for the chosen launch configuration."));
457
457
  }
458
458
  const actionList = [];
459
- actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2569, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
459
+ actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2100, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
460
460
  await this.showError(message, actionList);
461
461
  return false;
462
462
  }
@@ -477,7 +477,7 @@ let DebugService = class DebugService {
477
477
  }
478
478
  else if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
479
479
  await this.showError(( localize(
480
- 2570,
480
+ 2101,
481
481
  "The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
482
482
  )));
483
483
  }
@@ -496,7 +496,7 @@ let DebugService = class DebugService {
496
496
  const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
497
497
  if (options?.startedByUser && ( (this.model.getSessions().some(s => s.getLabel() === session.getLabel()))) && configuration.resolved.suppressMultipleSessionWarning !== true) {
498
498
  const result = await this.dialogService.confirm({ message: ( localize(
499
- 2571,
499
+ 2102,
500
500
  "'{0}' is already running. Do you want to start another instance?",
501
501
  session.getLabel()
502
502
  )) });
@@ -587,7 +587,7 @@ let DebugService = class DebugService {
587
587
  if (adapterExitEvent) {
588
588
  if (adapterExitEvent.error) {
589
589
  this.notificationService.error(( localize(
590
- 2572,
590
+ 2103,
591
591
  "Debug adapter process has terminated unexpectedly ({0})",
592
592
  adapterExitEvent.error.message || ( (adapterExitEvent.error.toString()))
593
593
  )));
@@ -830,7 +830,7 @@ let DebugService = class DebugService {
830
830
  if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
831
831
  const lineContent = control.getModel().getLineContent(lineNumber);
832
832
  alert(( localize(
833
- 2573,
833
+ 2104,
834
834
  "{0}, debugging paused {1}, {2}:{3}",
835
835
  lineContent,
836
836
  thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
@@ -903,7 +903,7 @@ let DebugService = class DebugService {
903
903
  async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
904
904
  const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
905
905
  if (ariaAnnounce) {
906
- breakpoints.forEach(bp => status(( localize(2574, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
906
+ breakpoints.forEach(bp => status(( localize(2105, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
907
907
  }
908
908
  this.debugStorage.storeBreakpoints(this.model);
909
909
  await this.sendBreakpoints(uri);
@@ -925,7 +925,7 @@ let DebugService = class DebugService {
925
925
  const breakpoints = this.model.getBreakpoints();
926
926
  const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
927
927
  toRemove.forEach(bp => status(( localize(
928
- 2575,
928
+ 2106,
929
929
  "Removed breakpoint, line {0}, file {1}",
930
930
  bp.lineNumber,
931
931
  bp.uri.fsPath