@codingame/monaco-vscode-debug-service-override 1.83.2 → 1.83.3
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.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +90 -68
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +5 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +61 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +3 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +29 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +190 -203
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +32 -32
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +21 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +28 -80
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +56 -68
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -50
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +31 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +9 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +12 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +6 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +9 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +15 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +5 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +10 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +10 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +61 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +6 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +21 -13
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +41 -143
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -36
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +11 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -49
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PickerQuickAccessProvider, TriggerAction } from '
|
|
3
|
-
import {
|
|
2
|
+
import { PickerQuickAccessProvider, TriggerAction } from 'vscode/vscode/vs/platform/quickinput/browser/pickerQuickAccess';
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
5
5
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
6
6
|
import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
@@ -14,7 +14,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
14
14
|
constructor(debugService, contextService, commandService, notificationService) {
|
|
15
15
|
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
16
16
|
noResultsPick: {
|
|
17
|
-
label: (
|
|
17
|
+
label: localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', 'noDebugResults', "No matching launch configurations")
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
this.debugService = debugService;
|
|
@@ -43,7 +43,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
43
43
|
highlights: { label: highlights },
|
|
44
44
|
buttons: [{
|
|
45
45
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
46
|
-
tooltip: (
|
|
46
|
+
tooltip: localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', 'customizeLaunchConfig', "Configure Launch Configuration")
|
|
47
47
|
}],
|
|
48
48
|
trigger: () => {
|
|
49
49
|
config.launch.openConfigFile({ preserveFocus: false });
|
|
@@ -64,10 +64,10 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
64
64
|
const dynamicProviders = await configManager.getDynamicProviders();
|
|
65
65
|
if (dynamicProviders.length > 0) {
|
|
66
66
|
picks.push({
|
|
67
|
-
type: 'separator', label: (
|
|
67
|
+
type: 'separator', label: localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', {
|
|
68
68
|
key: 'contributed',
|
|
69
69
|
comment: ['contributed is lower case because it looks better like that in UI. Nothing preceeds it. It is a name of the grouping of debug configurations.']
|
|
70
|
-
}, "contributed")
|
|
70
|
+
}, "contributed")
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
@@ -78,7 +78,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
78
78
|
highlights: { label: highlights },
|
|
79
79
|
buttons: [{
|
|
80
80
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
81
|
-
tooltip: (
|
|
81
|
+
tooltip: localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', 'removeLaunchConfig', "Remove Launch Configuration")
|
|
82
82
|
}],
|
|
83
83
|
trigger: () => {
|
|
84
84
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -101,11 +101,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
101
101
|
dynamicProviders.forEach(provider => {
|
|
102
102
|
picks.push({
|
|
103
103
|
label: `$(folder) ${provider.label}...`,
|
|
104
|
-
ariaLabel: (
|
|
105
|
-
{ key: 'providerAriaLabel', comment: ['Placeholder stands for the provider label. For example "NodeJS".'] },
|
|
106
|
-
"{0} contributed configurations",
|
|
107
|
-
provider.label
|
|
108
|
-
)),
|
|
104
|
+
ariaLabel: localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', { key: 'providerAriaLabel', comment: ['Placeholder stands for the provider label. For example "NodeJS".'] }, "{0} contributed configurations", provider.label),
|
|
109
105
|
accept: async () => {
|
|
110
106
|
const pick = await provider.pick();
|
|
111
107
|
if (pick) {
|
|
@@ -117,12 +113,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
117
113
|
});
|
|
118
114
|
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
119
115
|
if (visibleLaunches.length > 0) {
|
|
120
|
-
picks.push({ type: 'separator', label: (
|
|
116
|
+
picks.push({ type: 'separator', label: localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', 'configure', "configure") });
|
|
121
117
|
}
|
|
122
118
|
for (const launch of visibleLaunches) {
|
|
123
119
|
const label = this.contextService.getWorkbenchState() === 3 ?
|
|
124
|
-
(
|
|
125
|
-
(
|
|
120
|
+
localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', "addConfigTo", "Add Config ({0})...", launch.name) :
|
|
121
|
+
localizeWithPath('vs/workbench/contrib/debug/browser/debugQuickAccess', 'addConfiguration', "Add Configuration...");
|
|
126
122
|
picks.push({
|
|
127
123
|
label,
|
|
128
124
|
description: this.contextService.getWorkbenchState() === 3 ? launch.name : '',
|
|
@@ -127,7 +127,10 @@ let DebugService = class DebugService {
|
|
|
127
127
|
if (numberOfSessions > 0) {
|
|
128
128
|
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
129
129
|
if (viewContainer) {
|
|
130
|
-
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(
|
|
130
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(
|
|
131
|
+
numberOfSessions,
|
|
132
|
+
n => n === 1 ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', '1activeSession', "1 active session") : nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'nActiveSessions', "{0} active sessions", n)
|
|
133
|
+
)) });
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
}));
|
|
@@ -255,13 +258,7 @@ let DebugService = class DebugService {
|
|
|
255
258
|
}
|
|
256
259
|
}
|
|
257
260
|
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
258
|
-
const message = options && options.noDebug ? ( nls.
|
|
259
|
-
'runTrust',
|
|
260
|
-
"Running executes build tasks and program code from your workspace."
|
|
261
|
-
)) : ( nls.localize(
|
|
262
|
-
'debugTrust',
|
|
263
|
-
"Debugging executes build tasks and program code from your workspace."
|
|
264
|
-
));
|
|
261
|
+
const message = options && options.noDebug ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'runTrust', "Running executes build tasks and program code from your workspace.") : nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'debugTrust', "Debugging executes build tasks and program code from your workspace.");
|
|
265
262
|
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
266
263
|
if (!trust) {
|
|
267
264
|
return false;
|
|
@@ -289,7 +286,7 @@ let DebugService = class DebugService {
|
|
|
289
286
|
}
|
|
290
287
|
if (compound) {
|
|
291
288
|
if (!compound.configurations) {
|
|
292
|
-
throw new Error(nls.
|
|
289
|
+
throw new Error(nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', { key: 'compoundMustHaveConfigurations', comment: ['compound indicates a "compounds" configuration item', '"configurations" is an attribute and should not be localized'] }, "Compound must have \"configurations\" attribute set in order to start multiple configurations."));
|
|
293
290
|
}
|
|
294
291
|
if (compound.preLaunchTask) {
|
|
295
292
|
const taskResult = await this.taskRunner.runTaskAndCheckErrors(launch?.workspace || this.contextService.getWorkspace(), compound.preLaunchTask);
|
|
@@ -316,8 +313,8 @@ let DebugService = class DebugService {
|
|
|
316
313
|
launchForName = launch;
|
|
317
314
|
}
|
|
318
315
|
else {
|
|
319
|
-
throw new Error(launchesContainingName.length === 0 ? nls.
|
|
320
|
-
: nls.
|
|
316
|
+
throw new Error(launchesContainingName.length === 0 ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'noConfigurationNameInWorkspace', "Could not find launch configuration '{0}' in the workspace.", name)
|
|
317
|
+
: nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'multipleConfigurationNamesInWorkspace', "There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.", name));
|
|
321
318
|
}
|
|
322
319
|
}
|
|
323
320
|
else if (configData.folder) {
|
|
@@ -326,7 +323,7 @@ let DebugService = class DebugService {
|
|
|
326
323
|
launchForName = launchesMatchingConfigData[0];
|
|
327
324
|
}
|
|
328
325
|
else {
|
|
329
|
-
throw new Error(nls.
|
|
326
|
+
throw new Error(nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'noFolderWithName', "Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.", configData.folder, configData.name, compound.name));
|
|
330
327
|
}
|
|
331
328
|
}
|
|
332
329
|
return this.createSession(launchForName, launchForName.getConfiguration(name), options);
|
|
@@ -336,15 +333,8 @@ let DebugService = class DebugService {
|
|
|
336
333
|
return result;
|
|
337
334
|
}
|
|
338
335
|
if (configOrName && !config) {
|
|
339
|
-
const message = !!launch ? (
|
|
340
|
-
'
|
|
341
|
-
"Configuration '{0}' is missing in 'launch.json'.",
|
|
342
|
-
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
343
|
-
)) :
|
|
344
|
-
( nls.localize(
|
|
345
|
-
'launchJsonDoesNotExist',
|
|
346
|
-
"'launch.json' does not exist for passed workspace folder."
|
|
347
|
-
));
|
|
336
|
+
const message = !!launch ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'configMissing', "Configuration '{0}' is missing in 'launch.json'.", typeof configOrName === 'string' ? configOrName : configOrName.name) :
|
|
337
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'launchJsonDoesNotExist', "'launch.json' does not exist for passed workspace folder.");
|
|
348
338
|
throw new Error(message);
|
|
349
339
|
}
|
|
350
340
|
const result = await this.createSession(launch, config, options);
|
|
@@ -416,35 +406,21 @@ let DebugService = class DebugService {
|
|
|
416
406
|
if (!dbg || (configByProviders.request !== 'attach' && configByProviders.request !== 'launch')) {
|
|
417
407
|
let message;
|
|
418
408
|
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
419
|
-
message = configByProviders.request ? (
|
|
420
|
-
'
|
|
421
|
-
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
422
|
-
'request',
|
|
423
|
-
configByProviders.request
|
|
424
|
-
))
|
|
425
|
-
: ( nls.localize(
|
|
426
|
-
'debugRequesMissing',
|
|
427
|
-
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
428
|
-
'request'
|
|
429
|
-
));
|
|
409
|
+
message = configByProviders.request ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'debugRequestNotSupported', "Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.", 'request', configByProviders.request)
|
|
410
|
+
: nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'debugRequesMissing', "Attribute '{0}' is missing from the chosen debug configuration.", 'request');
|
|
430
411
|
}
|
|
431
412
|
else {
|
|
432
|
-
message = resolvedConfig.type ? (
|
|
433
|
-
'
|
|
434
|
-
"Configured debug type '{0}' is not supported.",
|
|
435
|
-
resolvedConfig.type
|
|
436
|
-
)) :
|
|
437
|
-
( nls.localize(
|
|
438
|
-
'debugTypeMissing',
|
|
439
|
-
"Missing property 'type' for the chosen launch configuration."
|
|
440
|
-
));
|
|
413
|
+
message = resolvedConfig.type ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'debugTypeNotSupported', "Configured debug type '{0}' is not supported.", resolvedConfig.type) :
|
|
414
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'debugTypeMissing', "Missing property 'type' for the chosen launch configuration.");
|
|
441
415
|
}
|
|
442
416
|
const actionList = [];
|
|
443
|
-
actionList.push(( new Action(
|
|
444
|
-
|
|
445
|
-
"Install {0} Extension",
|
|
446
|
-
|
|
447
|
-
|
|
417
|
+
actionList.push(( new Action(
|
|
418
|
+
'installAdditionalDebuggers',
|
|
419
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', { key: 'installAdditionalDebuggers', comment: ['Placeholder is the debug type, so for example "node", "python"'] }, "Install {0} Extension", resolvedConfig.type),
|
|
420
|
+
undefined,
|
|
421
|
+
true,
|
|
422
|
+
async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)
|
|
423
|
+
)));
|
|
448
424
|
await this.showError(message, actionList);
|
|
449
425
|
return false;
|
|
450
426
|
}
|
|
@@ -464,10 +440,7 @@ let DebugService = class DebugService {
|
|
|
464
440
|
await this.showError(err.message);
|
|
465
441
|
}
|
|
466
442
|
else if (this.contextService.getWorkbenchState() === 1 ) {
|
|
467
|
-
await this.showError((
|
|
468
|
-
'noFolderWorkspaceDebugError',
|
|
469
|
-
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
470
|
-
)));
|
|
443
|
+
await this.showError(nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'noFolderWorkspaceDebugError', "The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."));
|
|
471
444
|
}
|
|
472
445
|
if (launch && !initCancellationToken.token.isCancellationRequested) {
|
|
473
446
|
await launch.openConfigFile({ preserveFocus: true }, initCancellationToken.token);
|
|
@@ -483,11 +456,7 @@ let DebugService = class DebugService {
|
|
|
483
456
|
async doCreateSession(sessionId, root, configuration, options) {
|
|
484
457
|
const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
|
|
485
458
|
if (options?.startedByUser && ( this.model.getSessions().some(s => s.getLabel() === session.getLabel())) && configuration.resolved.suppressMultipleSessionWarning !== true) {
|
|
486
|
-
const result = await this.dialogService.confirm({ message: (
|
|
487
|
-
'multipleSession',
|
|
488
|
-
"'{0}' is already running. Do you want to start another instance?",
|
|
489
|
-
session.getLabel()
|
|
490
|
-
)) });
|
|
459
|
+
const result = await this.dialogService.confirm({ message: nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'multipleSession', "'{0}' is already running. Do you want to start another instance?", session.getLabel()) });
|
|
491
460
|
if (!result.confirmed) {
|
|
492
461
|
return false;
|
|
493
462
|
}
|
|
@@ -567,11 +536,7 @@ let DebugService = class DebugService {
|
|
|
567
536
|
this.disposables.add(session.onDidEndAdapter(async (adapterExitEvent) => {
|
|
568
537
|
if (adapterExitEvent) {
|
|
569
538
|
if (adapterExitEvent.error) {
|
|
570
|
-
this.notificationService.error((
|
|
571
|
-
'debugAdapterCrash',
|
|
572
|
-
"Debug adapter process has terminated unexpectedly ({0})",
|
|
573
|
-
adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
|
|
574
|
-
)));
|
|
539
|
+
this.notificationService.error(nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'debugAdapterCrash', "Debug adapter process has terminated unexpectedly ({0})", adapterExitEvent.error.message || ( adapterExitEvent.error.toString())));
|
|
575
540
|
}
|
|
576
541
|
this.telemetry.logDebugSessionStop(session, adapterExitEvent);
|
|
577
542
|
}
|
|
@@ -773,14 +738,7 @@ let DebugService = class DebugService {
|
|
|
773
738
|
const lineNumber = stackFrame.range.startLineNumber;
|
|
774
739
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
775
740
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
776
|
-
aria.alert((
|
|
777
|
-
{ key: 'debuggingPaused', comment: ['First placeholder is the file line content, second placeholder is the reason why debugging is stopped, for example "breakpoint", third is the stack frame name, and last is the line number.'] },
|
|
778
|
-
"{0}, debugging paused {1}, {2}:{3}",
|
|
779
|
-
lineContent,
|
|
780
|
-
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
781
|
-
stackFrame.source ? stackFrame.source.name : '',
|
|
782
|
-
stackFrame.range.startLineNumber
|
|
783
|
-
)));
|
|
741
|
+
aria.alert(nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', { key: 'debuggingPaused', comment: ['First placeholder is the file line content, second placeholder is the reason why debugging is stopped, for example "breakpoint", third is the stack frame name, and last is the line number.'] }, "{0}, debugging paused {1}, {2}:{3}", lineContent, thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '', stackFrame.source ? stackFrame.source.name : '', stackFrame.range.startLineNumber));
|
|
784
742
|
}
|
|
785
743
|
}
|
|
786
744
|
}
|
|
@@ -846,12 +804,7 @@ let DebugService = class DebugService {
|
|
|
846
804
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
847
805
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
848
806
|
if (ariaAnnounce) {
|
|
849
|
-
breakpoints.forEach(bp => aria.status((
|
|
850
|
-
'breakpointAdded',
|
|
851
|
-
"Added breakpoint, line {0}, file {1}",
|
|
852
|
-
bp.lineNumber,
|
|
853
|
-
uri.fsPath
|
|
854
|
-
))));
|
|
807
|
+
breakpoints.forEach(bp => aria.status(nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'breakpointAdded', "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath)));
|
|
855
808
|
}
|
|
856
809
|
this.debugStorage.storeBreakpoints(this.model);
|
|
857
810
|
await this.sendBreakpoints(uri);
|
|
@@ -871,12 +824,7 @@ let DebugService = class DebugService {
|
|
|
871
824
|
}
|
|
872
825
|
async removeBreakpoints(id) {
|
|
873
826
|
const toRemove = this.model.getBreakpoints().filter(bp => !id || bp.getId() === id);
|
|
874
|
-
toRemove.forEach(bp => aria.status((
|
|
875
|
-
'breakpointRemoved',
|
|
876
|
-
"Removed breakpoint, line {0}, file {1}",
|
|
877
|
-
bp.lineNumber,
|
|
878
|
-
bp.uri.fsPath
|
|
879
|
-
))));
|
|
827
|
+
toRemove.forEach(bp => aria.status(nls.localizeWithPath('vs/workbench/contrib/debug/browser/debugService', 'breakpointRemoved', "Removed breakpoint, line {0}, file {1}", bp.lineNumber, bp.uri.fsPath)));
|
|
880
828
|
const urisToClear = ( distinct(toRemove, bp => ( bp.originalUri.toString())).map(bp => bp.originalUri));
|
|
881
829
|
this.model.removeBreakpoints(toRemove);
|
|
882
830
|
this.debugStorage.storeBreakpoints(this.model);
|