@codingame/monaco-vscode-debug-service-override 23.0.2 → 23.0.4
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 +15 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +112 -112
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -194,7 +194,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
194
194
|
}
|
|
195
195
|
async start() {
|
|
196
196
|
if (!this.debugAdapter) {
|
|
197
|
-
return Promise.reject(( new Error(( localize(
|
|
197
|
+
return Promise.reject(( new Error(( localize(6773, "No debug adapter, can not start debug session.")))));
|
|
198
198
|
}
|
|
199
199
|
await this.debugAdapter.startSession();
|
|
200
200
|
this.startTime = ( new Date()).getTime();
|
|
@@ -518,10 +518,10 @@ let RawDebugSession = class RawDebugSession {
|
|
|
518
518
|
const { confirmed } = await this.dialogSerivce.confirm({
|
|
519
519
|
type: Severity.Warning,
|
|
520
520
|
message: ( localize(
|
|
521
|
-
|
|
521
|
+
6774,
|
|
522
522
|
"The debugger needs to open a new tab or window for the debuggee but the browser prevented this. You must give permission to continue."
|
|
523
523
|
)),
|
|
524
|
-
primaryButton: ( localize(
|
|
524
|
+
primaryButton: ( localize(6775, "&&Continue"))
|
|
525
525
|
});
|
|
526
526
|
if (confirmed) {
|
|
527
527
|
result = await this.launchVsCode(request.arguments);
|
|
@@ -621,7 +621,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
621
621
|
completeDispatch(undefined);
|
|
622
622
|
}
|
|
623
623
|
else {
|
|
624
|
-
errorDispatch(( new Error(( localize(
|
|
624
|
+
errorDispatch(( new Error(( localize(6776, "No debugger available found. Can not send '{0}'.", command)))));
|
|
625
625
|
}
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
@@ -654,7 +654,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
654
654
|
const userMessage = error ? formatPII(error.format, false, error.variables) : errorMessage;
|
|
655
655
|
const url = error?.url;
|
|
656
656
|
if (error && url) {
|
|
657
|
-
const label = error.urlLabel ? error.urlLabel : ( localize(
|
|
657
|
+
const label = error.urlLabel ? error.urlLabel : ( localize(6777, "More Info"));
|
|
658
658
|
const uri = ( URI.parse(url));
|
|
659
659
|
const actionId = uri.scheme === Schemas.command ? 'debug.moreInfo.command' : 'debug.moreInfo';
|
|
660
660
|
return createErrorWithActions(userMessage, [toAction({ id: actionId, label, run: () => this.openerService.open(uri, { allowCommands: true }) })]);
|
|
@@ -42,41 +42,41 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
42
42
|
provideContent() {
|
|
43
43
|
return [
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
6796,
|
|
46
46
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
47
47
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
48
48
|
)),
|
|
49
49
|
( localize(
|
|
50
|
-
|
|
50
|
+
6797,
|
|
51
51
|
"The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
|
|
52
52
|
'<keybinding:widgetNavigation.focusPrevious>'
|
|
53
53
|
)),
|
|
54
54
|
( localize(
|
|
55
|
-
|
|
55
|
+
6798,
|
|
56
56
|
"The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
|
|
57
57
|
'<keybinding:widgetNavigation.focusNext>'
|
|
58
58
|
)),
|
|
59
59
|
( localize(
|
|
60
|
-
|
|
60
|
+
6799,
|
|
61
61
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
62
62
|
)),
|
|
63
63
|
( localize(
|
|
64
|
-
|
|
64
|
+
6800,
|
|
65
65
|
"The Open Accessible View command{0} will allow character by character navigation of the console output.",
|
|
66
66
|
'<keybinding:editor.action.accessibleView>'
|
|
67
67
|
)),
|
|
68
68
|
( localize(
|
|
69
|
-
|
|
69
|
+
6801,
|
|
70
70
|
"The Show Run and Debug view command{0} will open the Run and Debug view and provides more information about debugging.",
|
|
71
71
|
'<keybinding:workbench.view.debug>'
|
|
72
72
|
)),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
6802,
|
|
75
75
|
"The Debug: Clear Console command{0} will clear the console output.",
|
|
76
76
|
'<keybinding:workbench.debug.panel.action.clearReplAction>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
6803,
|
|
80
80
|
"The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
|
|
81
81
|
)),
|
|
82
82
|
].join('\n');
|
|
@@ -53,79 +53,79 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
53
53
|
provideContent() {
|
|
54
54
|
return [
|
|
55
55
|
( localize(
|
|
56
|
-
|
|
56
|
+
6809,
|
|
57
57
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
58
58
|
'<keybinding:workbench.view.debug>'
|
|
59
59
|
)),
|
|
60
60
|
( localize(
|
|
61
|
-
|
|
61
|
+
6810,
|
|
62
62
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
63
63
|
'<keybinding:workbench.action.debug.start>'
|
|
64
64
|
)),
|
|
65
65
|
( localize(
|
|
66
|
-
|
|
66
|
+
6811,
|
|
67
67
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
68
68
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
69
69
|
)),
|
|
70
70
|
AccessibilityHelpNLS.setBreakpoint,
|
|
71
71
|
AccessibilityHelpNLS.addToWatch,
|
|
72
|
-
( localize(
|
|
72
|
+
( localize(6812, "Once debugging, the following commands will be available:")),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
6813,
|
|
75
75
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
76
76
|
'<keybinding:workbench.action.debug.restart>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
6814,
|
|
80
80
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
81
81
|
'<keybinding:workbench.action.debug.stop>'
|
|
82
82
|
)),
|
|
83
83
|
( localize(
|
|
84
|
-
|
|
84
|
+
6815,
|
|
85
85
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
86
86
|
'<keybinding:workbench.action.debug.continue>'
|
|
87
87
|
)),
|
|
88
88
|
( localize(
|
|
89
|
-
|
|
89
|
+
6816,
|
|
90
90
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
91
91
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
92
92
|
)),
|
|
93
93
|
( localize(
|
|
94
|
-
|
|
94
|
+
6817,
|
|
95
95
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
96
96
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
97
97
|
)),
|
|
98
98
|
( localize(
|
|
99
|
-
|
|
99
|
+
6818,
|
|
100
100
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
101
101
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
102
102
|
)),
|
|
103
103
|
( localize(
|
|
104
|
-
|
|
104
|
+
6819,
|
|
105
105
|
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
|
|
106
106
|
)),
|
|
107
107
|
( localize(
|
|
108
|
-
|
|
108
|
+
6820,
|
|
109
109
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
110
110
|
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
111
111
|
)),
|
|
112
112
|
( localize(
|
|
113
|
-
|
|
113
|
+
6821,
|
|
114
114
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
115
115
|
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
116
116
|
)),
|
|
117
117
|
( localize(
|
|
118
|
-
|
|
118
|
+
6822,
|
|
119
119
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
120
120
|
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
121
121
|
)),
|
|
122
122
|
( localize(
|
|
123
|
-
|
|
123
|
+
6823,
|
|
124
124
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
125
125
|
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
126
126
|
)),
|
|
127
127
|
( localize(
|
|
128
|
-
|
|
128
|
+
6824,
|
|
129
129
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
130
130
|
'accessibility.debugWatchVariableAnnouncements'
|
|
131
131
|
)),
|
|
@@ -27,7 +27,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
27
27
|
hcDark: '#BA592C',
|
|
28
28
|
hcLight: '#B5200D'
|
|
29
29
|
}, ( localize(
|
|
30
|
-
|
|
30
|
+
6825,
|
|
31
31
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
32
32
|
)));
|
|
33
33
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -36,14 +36,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
36
36
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
37
37
|
hcLight: '#FFFFFF'
|
|
38
38
|
}, ( localize(
|
|
39
|
-
|
|
39
|
+
6826,
|
|
40
40
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
41
41
|
)));
|
|
42
42
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
43
|
-
|
|
43
|
+
6827,
|
|
44
44
|
"Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
45
45
|
)));
|
|
46
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(
|
|
46
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(6828, "Command center background color when a program is being debugged")), true);
|
|
47
47
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
48
48
|
set enabled(enabled) {
|
|
49
49
|
if (enabled === !!this.disposable) {
|
|
@@ -291,7 +291,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
291
291
|
if (settingValue) {
|
|
292
292
|
return {
|
|
293
293
|
initialValue: expression.value,
|
|
294
|
-
ariaLabel: ( localize(
|
|
294
|
+
ariaLabel: ( localize(6837, "Type new value")),
|
|
295
295
|
onFinish: async (value, success) => {
|
|
296
296
|
if (success && value) {
|
|
297
297
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -305,8 +305,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
305
305
|
}
|
|
306
306
|
return {
|
|
307
307
|
initialValue: expression.name ? expression.name : '',
|
|
308
|
-
ariaLabel: ( localize(
|
|
309
|
-
placeholder: ( localize(
|
|
308
|
+
ariaLabel: ( localize(6838, "Type watch expression")),
|
|
309
|
+
placeholder: ( localize(6839, "Expression to watch")),
|
|
310
310
|
onFinish: (value, success) => {
|
|
311
311
|
if (success && value) {
|
|
312
312
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -397,13 +397,13 @@ async function getContextForWatchExpressionMenuWithDataAccess(parentContext, exp
|
|
|
397
397
|
}
|
|
398
398
|
class WatchExpressionsAccessibilityProvider {
|
|
399
399
|
getWidgetAriaLabel() {
|
|
400
|
-
return localize(
|
|
400
|
+
return localize(6840, "Debug Watch Expressions");
|
|
401
401
|
}
|
|
402
402
|
getAriaLabel(element) {
|
|
403
403
|
if (element instanceof Expression) {
|
|
404
|
-
return localize(
|
|
404
|
+
return localize(6841, "{0}, value {1}", element.name, element.value);
|
|
405
405
|
}
|
|
406
|
-
return localize(
|
|
406
|
+
return localize(6842, "{0}, value {1}", element.name, element.value);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
class WatchExpressionsDragAndDrop {
|
|
@@ -489,7 +489,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
489
489
|
super({
|
|
490
490
|
id: 'watch.collapse',
|
|
491
491
|
viewId: WATCH_VIEW_ID,
|
|
492
|
-
title: ( localize(
|
|
492
|
+
title: ( localize(6843, "Collapse All")),
|
|
493
493
|
f1: false,
|
|
494
494
|
icon: Codicon.collapseAll,
|
|
495
495
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -506,7 +506,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
509
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
509
|
+
const ADD_WATCH_LABEL = ( localize(6844, "Add Expression"));
|
|
510
510
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
511
511
|
constructor() {
|
|
512
512
|
super({
|
|
@@ -527,7 +527,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
530
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
530
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(6845, "Remove All Expressions"));
|
|
531
531
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
532
532
|
constructor() {
|
|
533
533
|
super({
|
|
@@ -553,7 +553,7 @@ registerAction2(class CopyExpression extends ViewAction {
|
|
|
553
553
|
constructor() {
|
|
554
554
|
super({
|
|
555
555
|
id: COPY_WATCH_EXPRESSION_COMMAND_ID,
|
|
556
|
-
title: ( localize(
|
|
556
|
+
title: ( localize(6846, "Copy Expression")),
|
|
557
557
|
f1: false,
|
|
558
558
|
viewId: WATCH_VIEW_ID,
|
|
559
559
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -31,7 +31,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( new RawContextKey(debugStartLanguageKey,
|
|
|
31
31
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( new RawContextKey('debuggerInterestedInActiveEditor', false));
|
|
32
32
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
33
33
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
34
|
-
static { this.LABEL = ( localize2(
|
|
34
|
+
static { this.LABEL = ( localize2(6847, "Run")); }
|
|
35
35
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, hoverService) {
|
|
36
36
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, hoverService);
|
|
37
37
|
this.debugService = debugService;
|
|
@@ -101,7 +101,7 @@ WelcomeView = ( __decorate([
|
|
|
101
101
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
102
102
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
103
103
|
content: ( localize(
|
|
104
|
-
|
|
104
|
+
6848,
|
|
105
105
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
106
106
|
OpenFileAction.ID
|
|
107
107
|
)),
|
|
@@ -110,14 +110,14 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
110
110
|
});
|
|
111
111
|
let debugKeybindingLabel = '';
|
|
112
112
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
113
|
-
content: `[${( localize(
|
|
113
|
+
content: `[${( localize(6849, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
114
114
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
115
115
|
group: ViewContentGroups.Debug,
|
|
116
116
|
order: 1
|
|
117
117
|
});
|
|
118
118
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
119
119
|
content: ( localize(
|
|
120
|
-
|
|
120
|
+
6850,
|
|
121
121
|
"To customize Run and Debug [create a launch.json file]({0}).",
|
|
122
122
|
`${( createCommandUri(DEBUG_CONFIGURE_COMMAND_ID, { addNew: true }).toString())}`
|
|
123
123
|
)),
|
|
@@ -126,7 +126,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
126
126
|
});
|
|
127
127
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
128
128
|
content: ( localize(
|
|
129
|
-
|
|
129
|
+
6851,
|
|
130
130
|
"To customize Run and Debug, [open a folder]({0}) and create a launch.json file.",
|
|
131
131
|
(createCommandUri(OpenFolderAction.ID).toString())
|
|
132
132
|
)),
|
|
@@ -135,7 +135,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
135
135
|
});
|
|
136
136
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
137
137
|
content: ( localize(
|
|
138
|
-
|
|
138
|
+
6852,
|
|
139
139
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
140
140
|
)),
|
|
141
141
|
when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
|
|
@@ -53,14 +53,14 @@ let DebugContentProvider = class DebugContentProvider extends Disposable {
|
|
|
53
53
|
session = this.debugService.getViewModel().focusedSession;
|
|
54
54
|
}
|
|
55
55
|
if (!session) {
|
|
56
|
-
return Promise.reject(( new ErrorNoTelemetry(( localize(
|
|
56
|
+
return Promise.reject(( new ErrorNoTelemetry(( localize(6919, "Unable to resolve the resource without a debug session")))));
|
|
57
57
|
}
|
|
58
58
|
const createErrModel = (errMsg) => {
|
|
59
59
|
this.debugService.sourceIsNotAvailable(resource);
|
|
60
60
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
61
61
|
const message = errMsg
|
|
62
|
-
? ( localize(
|
|
63
|
-
: ( localize(
|
|
62
|
+
? ( localize(6920, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
63
|
+
: ( localize(6921, "Could not load source '{0}'.", resource.path));
|
|
64
64
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
65
65
|
};
|
|
66
66
|
return session.loadSource(resource).then(response => {
|
|
@@ -31,20 +31,20 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
31
31
|
let message;
|
|
32
32
|
if (numSessions === 1) {
|
|
33
33
|
message = ( localize(
|
|
34
|
-
|
|
34
|
+
6922,
|
|
35
35
|
"There is an active debug session, are you sure you want to stop it?"
|
|
36
36
|
));
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
39
|
message = ( localize(
|
|
40
|
-
|
|
40
|
+
6923,
|
|
41
41
|
"There are active debug sessions, are you sure you want to stop them?"
|
|
42
42
|
));
|
|
43
43
|
}
|
|
44
44
|
const res = await this.dialogService.confirm({
|
|
45
45
|
message,
|
|
46
46
|
type: 'warning',
|
|
47
|
-
primaryButton: ( localize(
|
|
47
|
+
primaryButton: ( localize(6924, "&&Stop Debugging"))
|
|
48
48
|
});
|
|
49
49
|
return !res.confirmed;
|
|
50
50
|
}
|