@codingame/monaco-vscode-debug-service-override 10.0.0 → 10.0.2
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 +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +107 -107
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -11
- 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/debugEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- 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/exceptionWidget.js +4 -4
- 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/repl.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- 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/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- 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
|
@@ -54,7 +54,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
54
54
|
-1,
|
|
55
55
|
contextViewService,
|
|
56
56
|
defaultSelectBoxStyles,
|
|
57
|
-
{ ariaLabel: ( localize(
|
|
57
|
+
{ ariaLabel: ( localize(10381, 'Debug Launch Configurations')) }
|
|
58
58
|
)));
|
|
59
59
|
this.selectBox.setFocusable(false);
|
|
60
60
|
this.toDispose.push(this.selectBox);
|
|
@@ -212,7 +212,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
214
|
if (this.debugOptions.length === 0) {
|
|
215
|
-
this.debugOptions.push({ label: ( localize(
|
|
215
|
+
this.debugOptions.push({ label: ( localize(10382, "No Configurations")), handler: async () => false });
|
|
216
216
|
}
|
|
217
217
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
218
218
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -230,7 +230,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
230
230
|
});
|
|
231
231
|
});
|
|
232
232
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
233
|
-
const label = inWorkspace ? ( localize(
|
|
233
|
+
const label = inWorkspace ? ( localize(10383, "Add Config ({0})...", l.name)) : ( localize(10384, "Add Configuration..."));
|
|
234
234
|
this.debugOptions.push({
|
|
235
235
|
label, handler: async () => {
|
|
236
236
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( (l.uri.toString())));
|
|
@@ -250,11 +250,11 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
250
250
|
keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" , this.contextKeyService)?.getLabel() ?? undefined;
|
|
251
251
|
}
|
|
252
252
|
if (keybinding) {
|
|
253
|
-
ariaLabel = ( localize(
|
|
253
|
+
ariaLabel = ( localize(10385, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
ariaLabel = ( localize(
|
|
257
|
-
|
|
257
|
+
10386,
|
|
258
258
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
259
259
|
ariaLabel
|
|
260
260
|
));
|
|
@@ -274,7 +274,7 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( (__decorate([
|
|
|
274
274
|
], StartDebugActionViewItem)));
|
|
275
275
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
276
276
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
277
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(
|
|
277
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(10387, 'Debug Session')) });
|
|
278
278
|
this.debugService = debugService;
|
|
279
279
|
this.configurationService = configurationService;
|
|
280
280
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -84,7 +84,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
84
84
|
delta.added.forEach(added => {
|
|
85
85
|
added.value.forEach(rawAdapter => {
|
|
86
86
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
87
|
-
added.collector.error(( localize(
|
|
87
|
+
added.collector.error(( localize(5767, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
88
88
|
}
|
|
89
89
|
if (rawAdapter.type !== '*') {
|
|
90
90
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -134,7 +134,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
134
134
|
'name': {
|
|
135
135
|
type: 'string',
|
|
136
136
|
description: ( localize(
|
|
137
|
-
|
|
137
|
+
5768,
|
|
138
138
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
139
139
|
)),
|
|
140
140
|
default: 'Launch'
|
|
@@ -142,7 +142,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
142
142
|
'debugServer': {
|
|
143
143
|
type: 'number',
|
|
144
144
|
description: ( localize(
|
|
145
|
-
|
|
145
|
+
5769,
|
|
146
146
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
147
147
|
)),
|
|
148
148
|
default: 4711
|
|
@@ -153,7 +153,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
153
153
|
}],
|
|
154
154
|
default: '',
|
|
155
155
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
156
|
-
description: ( localize(
|
|
156
|
+
description: ( localize(5770, "Task to run before debug session starts.")),
|
|
157
157
|
examples: this.taskLabels,
|
|
158
158
|
},
|
|
159
159
|
'postDebugTask': {
|
|
@@ -162,7 +162,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
162
162
|
}],
|
|
163
163
|
default: '',
|
|
164
164
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
165
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(5771, "Task to run after debug session ends.")),
|
|
166
166
|
examples: this.taskLabels,
|
|
167
167
|
},
|
|
168
168
|
'presentation': presentationSchema,
|
|
@@ -170,7 +170,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
170
170
|
'suppressMultipleSessionWarning': {
|
|
171
171
|
type: 'boolean',
|
|
172
172
|
description: ( localize(
|
|
173
|
-
|
|
173
|
+
5772,
|
|
174
174
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
175
175
|
)),
|
|
176
176
|
default: true
|
|
@@ -326,11 +326,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
326
326
|
const { confirmed } = await this.dialogService.confirm({
|
|
327
327
|
type: Severity$1.Warning,
|
|
328
328
|
message: ( localize(
|
|
329
|
-
|
|
329
|
+
5773,
|
|
330
330
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
331
331
|
languageLabel
|
|
332
332
|
)),
|
|
333
|
-
primaryButton: ( localize(
|
|
333
|
+
primaryButton: ( localize(5774, "&&Find {0} extension", languageLabel))
|
|
334
334
|
});
|
|
335
335
|
if (confirmed) {
|
|
336
336
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -356,7 +356,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
356
356
|
});
|
|
357
357
|
const picks = [];
|
|
358
358
|
if (suggestedCandidates.length > 0) {
|
|
359
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
359
|
+
picks.push({ type: 'separator', label: ( localize(5775, "Suggested")) }, ...( (suggestedCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
360
360
|
}
|
|
361
361
|
if (otherCandidates.length > 0) {
|
|
362
362
|
if (picks.length > 0) {
|
|
@@ -364,14 +364,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
364
364
|
}
|
|
365
365
|
picks.push(...( (otherCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
366
366
|
}
|
|
367
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(
|
|
367
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5776, "Install an extension for {0}...", languageLabel)) : ( localize(5777, "Install extension...")) });
|
|
368
368
|
const contributed = this.menuService.getMenuActions(MenuId.DebugCreateConfiguration, this.contextKeyService);
|
|
369
369
|
for (const [, action] of contributed) {
|
|
370
370
|
for (const item of action) {
|
|
371
371
|
picks.push(item);
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const placeHolder = ( localize(
|
|
374
|
+
const placeHolder = ( localize(5778, "Select debugger"));
|
|
375
375
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder })
|
|
376
376
|
.then(async (picked) => {
|
|
377
377
|
if (picked && 'debugger' in picked && picked.debugger) {
|
|
@@ -190,7 +190,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
190
190
|
config,
|
|
191
191
|
buttons: [{
|
|
192
192
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
193
|
-
tooltip: ( localize(
|
|
193
|
+
tooltip: ( localize(5813, "Edit Debug Configuration in launch.json"))
|
|
194
194
|
}],
|
|
195
195
|
launch
|
|
196
196
|
}))))));
|
|
@@ -199,7 +199,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
199
199
|
const disposables = ( (new DisposableStore()));
|
|
200
200
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
201
201
|
input.busy = true;
|
|
202
|
-
input.placeholder = ( localize(
|
|
202
|
+
input.placeholder = ( localize(5814, "Select Launch Configuration"));
|
|
203
203
|
const chosenPromise = ( (new Promise(resolve => {
|
|
204
204
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
205
205
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -530,7 +530,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
530
530
|
}
|
|
531
531
|
catch (error) {
|
|
532
532
|
throw ( (new Error(localize(
|
|
533
|
-
|
|
533
|
+
5815,
|
|
534
534
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
535
535
|
error.message
|
|
536
536
|
))));
|
|
@@ -587,7 +587,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
587
587
|
return this.contextService.getWorkspace().configuration;
|
|
588
588
|
}
|
|
589
589
|
get name() {
|
|
590
|
-
return ( localize(
|
|
590
|
+
return ( localize(5816, "workspace"));
|
|
591
591
|
}
|
|
592
592
|
getConfig() {
|
|
593
593
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -631,7 +631,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
631
631
|
return this.preferencesService.userSettingsResource;
|
|
632
632
|
}
|
|
633
633
|
get name() {
|
|
634
|
-
return ( localize(
|
|
634
|
+
return ( localize(5817, "user settings"));
|
|
635
635
|
}
|
|
636
636
|
get hidden() {
|
|
637
637
|
return true;
|
|
@@ -26,7 +26,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
26
26
|
if (debugConsolePicks.length > 0) {
|
|
27
27
|
debugConsolePicks.push({ type: 'separator' });
|
|
28
28
|
}
|
|
29
|
-
const createTerminalLabel = ( localize(
|
|
29
|
+
const createTerminalLabel = ( localize(5977, "Start a New Debug Session"));
|
|
30
30
|
debugConsolePicks.push({
|
|
31
31
|
label: `$(plus) ${createTerminalLabel}`,
|
|
32
32
|
ariaLabel: createTerminalLabel,
|
|
@@ -29,8 +29,8 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
29
29
|
super({
|
|
30
30
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
31
31
|
title: {
|
|
32
|
-
...( localize2(
|
|
33
|
-
mnemonicTitle: ( localize(
|
|
32
|
+
...( localize2(5978, "Debug: Toggle Breakpoint")),
|
|
33
|
+
mnemonicTitle: ( localize(5979, "Toggle &&Breakpoint")),
|
|
34
34
|
},
|
|
35
35
|
f1: true,
|
|
36
36
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -89,12 +89,12 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
92
|
-
label: ( localize(
|
|
92
|
+
label: ( localize(5980, "Debug: Add Conditional Breakpoint...")),
|
|
93
93
|
alias: 'Debug: Add Conditional Breakpoint...',
|
|
94
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
95
95
|
menuOpts: {
|
|
96
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(5981, "&&Conditional Breakpoint...")),
|
|
98
98
|
group: '1_breakpoints',
|
|
99
99
|
order: 1,
|
|
100
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -113,13 +113,13 @@ class LogPointAction extends EditorAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'editor.debug.action.addLogPoint',
|
|
116
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(5982, "Debug: Add Logpoint...")),
|
|
117
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
118
118
|
alias: 'Debug: Add Logpoint...',
|
|
119
119
|
menuOpts: [
|
|
120
120
|
{
|
|
121
121
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
122
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(5983, "&&Logpoint...")),
|
|
123
123
|
group: '1_breakpoints',
|
|
124
124
|
order: 4,
|
|
125
125
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -139,13 +139,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
142
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(5984, "Debug: Add Triggered Breakpoint...")),
|
|
143
143
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
144
144
|
alias: 'Debug: Triggered Breakpoint...',
|
|
145
145
|
menuOpts: [
|
|
146
146
|
{
|
|
147
147
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
148
|
-
title: ( localize(
|
|
148
|
+
title: ( localize(5985, "&&Triggered Breakpoint...")),
|
|
149
149
|
group: '1_breakpoints',
|
|
150
150
|
order: 4,
|
|
151
151
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -165,12 +165,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
165
165
|
constructor() {
|
|
166
166
|
super({
|
|
167
167
|
id: 'editor.debug.action.editBreakpoint',
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(5986, "Debug: Edit Breakpoint")),
|
|
169
169
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
170
170
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
171
171
|
menuOpts: {
|
|
172
172
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
173
|
-
title: ( localize(
|
|
173
|
+
title: ( localize(5987, "&&Edit Breakpoint")),
|
|
174
174
|
group: '1_breakpoints',
|
|
175
175
|
order: 1,
|
|
176
176
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -205,8 +205,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
205
205
|
super({
|
|
206
206
|
id: OpenDisassemblyViewAction.ID,
|
|
207
207
|
title: {
|
|
208
|
-
...( localize2(
|
|
209
|
-
mnemonicTitle: ( localize(
|
|
208
|
+
...( localize2(5988, "Open Disassembly View")),
|
|
209
|
+
mnemonicTitle: ( localize(5989, "&&DisassemblyView")),
|
|
210
210
|
},
|
|
211
211
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
212
212
|
menu: [
|
|
@@ -257,11 +257,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
257
257
|
super({
|
|
258
258
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
259
259
|
title: {
|
|
260
|
-
...( localize2(
|
|
261
|
-
mnemonicTitle: ( localize(
|
|
260
|
+
...( localize2(5990, "Toggle Source Code in Disassembly View")),
|
|
261
|
+
mnemonicTitle: ( localize(5991, "&&ToggleSource")),
|
|
262
262
|
},
|
|
263
263
|
metadata: {
|
|
264
|
-
description: ( localize2(
|
|
264
|
+
description: ( localize2(5992, 'Shows or hides source code in disassembly'))
|
|
265
265
|
},
|
|
266
266
|
f1: true,
|
|
267
267
|
});
|
|
@@ -276,7 +276,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
276
276
|
}
|
|
277
277
|
class RunToCursorAction extends EditorAction {
|
|
278
278
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
279
|
-
static { this.LABEL = ( localize2(
|
|
279
|
+
static { this.LABEL = ( localize2(5993, "Run to Cursor")); }
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: RunToCursorAction.ID,
|
|
@@ -314,7 +314,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
314
314
|
}
|
|
315
315
|
class SelectionToReplAction extends EditorAction {
|
|
316
316
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
317
|
-
static { this.LABEL = ( localize2(
|
|
317
|
+
static { this.LABEL = ( localize2(5994, "Evaluate in Debug Console")); }
|
|
318
318
|
constructor() {
|
|
319
319
|
super({
|
|
320
320
|
id: SelectionToReplAction.ID,
|
|
@@ -353,7 +353,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
353
353
|
}
|
|
354
354
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
355
355
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
356
|
-
static { this.LABEL = ( localize2(
|
|
356
|
+
static { this.LABEL = ( localize2(5995, "Add to Watch")); }
|
|
357
357
|
constructor() {
|
|
358
358
|
super({
|
|
359
359
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -402,7 +402,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
402
402
|
constructor() {
|
|
403
403
|
super({
|
|
404
404
|
id: 'editor.debug.action.showDebugHover',
|
|
405
|
-
label: ( localize(
|
|
405
|
+
label: ( localize(5996, "Debug: Show Hover")),
|
|
406
406
|
alias: 'Debug: Show Hover',
|
|
407
407
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
408
408
|
kbOpts: {
|
|
@@ -420,10 +420,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
420
420
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
423
|
+
const NO_TARGETS_MESSAGE = ( localize(5997, "Step targets are not available here"));
|
|
424
424
|
class StepIntoTargetsAction extends EditorAction {
|
|
425
425
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
426
|
-
static { this.LABEL = ( localize(
|
|
426
|
+
static { this.LABEL = ( localize(5998, "Step Into Target")); }
|
|
427
427
|
constructor() {
|
|
428
428
|
super({
|
|
429
429
|
id: StepIntoTargetsAction.ID,
|
|
@@ -535,7 +535,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
535
535
|
constructor() {
|
|
536
536
|
super(true, {
|
|
537
537
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
538
|
-
label: ( localize(
|
|
538
|
+
label: ( localize(5999, "Debug: Go to Next Breakpoint")),
|
|
539
539
|
alias: 'Debug: Go to Next Breakpoint',
|
|
540
540
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
541
541
|
});
|
|
@@ -545,7 +545,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
545
545
|
constructor() {
|
|
546
546
|
super(false, {
|
|
547
547
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
548
|
-
label: ( localize(
|
|
548
|
+
label: ( localize(6000, "Debug: Go to Previous Breakpoint")),
|
|
549
549
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
550
550
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
551
551
|
});
|
|
@@ -555,7 +555,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
555
555
|
constructor() {
|
|
556
556
|
super({
|
|
557
557
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
558
|
-
label: ( localize(
|
|
558
|
+
label: ( localize(6001, "Close Exception Widget")),
|
|
559
559
|
alias: 'Close Exception Widget',
|
|
560
560
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
561
561
|
kbOpts: {
|
|
@@ -60,8 +60,8 @@ registerColor('editor.inlineValuesForeground', {
|
|
|
60
60
|
light: '#00000080',
|
|
61
61
|
hcDark: '#ffffff80',
|
|
62
62
|
hcLight: '#00000080'
|
|
63
|
-
}, ( localize(
|
|
64
|
-
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(
|
|
63
|
+
}, ( localize(6002, "Color for the debug inline value text.")));
|
|
64
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(6003, "Color for the debug inline value background.")));
|
|
65
65
|
class InlineSegment {
|
|
66
66
|
constructor(column, text) {
|
|
67
67
|
this.column = column;
|
|
@@ -89,7 +89,7 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
89
89
|
this.treeContainer.setAttribute('role', 'tree');
|
|
90
90
|
const tip = append(this.complexValueContainer, $('.tip'));
|
|
91
91
|
tip.textContent = ( localize(
|
|
92
|
-
|
|
92
|
+
10373,
|
|
93
93
|
'Hold {0} key to switch to editor language hover',
|
|
94
94
|
isMacintosh ? 'Option' : 'Alt'
|
|
95
95
|
));
|
|
@@ -326,10 +326,10 @@ DebugHoverWidget = DebugHoverWidget_1 = ( (__decorate([
|
|
|
326
326
|
], DebugHoverWidget)));
|
|
327
327
|
class DebugHoverAccessibilityProvider {
|
|
328
328
|
getWidgetAriaLabel() {
|
|
329
|
-
return ( localize(
|
|
329
|
+
return ( localize(10374, "Debug Hover"));
|
|
330
330
|
}
|
|
331
331
|
getAriaLabel(element) {
|
|
332
|
-
return ( localize(
|
|
332
|
+
return ( localize(10375, "{0}, value {1}, variables, debug", element.name, element.value));
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
class DebugHoverDataSource extends AbstractExpressionDataSource {
|
|
@@ -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: ( localize(
|
|
17
|
+
label: ( localize(6061, "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: ( localize(
|
|
46
|
+
tooltip: ( localize(6062, "Configure Launch Configuration"))
|
|
47
47
|
}],
|
|
48
48
|
trigger: () => {
|
|
49
49
|
config.launch.openConfigFile({ preserveFocus: false });
|
|
@@ -64,7 +64,7 @@ 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: ( localize(
|
|
67
|
+
type: 'separator', label: ( localize(6063, "contributed"))
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
@@ -75,7 +75,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
75
75
|
highlights: { label: highlights },
|
|
76
76
|
buttons: [{
|
|
77
77
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
78
|
-
tooltip: ( localize(
|
|
78
|
+
tooltip: ( localize(6064, "Remove Launch Configuration"))
|
|
79
79
|
}],
|
|
80
80
|
trigger: () => {
|
|
81
81
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -98,7 +98,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
98
98
|
dynamicProviders.forEach(provider => {
|
|
99
99
|
picks.push({
|
|
100
100
|
label: `$(folder) ${provider.label}...`,
|
|
101
|
-
ariaLabel: ( localize(
|
|
101
|
+
ariaLabel: ( localize(6065, "{0} contributed configurations", provider.label)),
|
|
102
102
|
accept: async () => {
|
|
103
103
|
const pick = await provider.pick();
|
|
104
104
|
if (pick) {
|
|
@@ -110,12 +110,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
110
110
|
});
|
|
111
111
|
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
112
112
|
if (visibleLaunches.length > 0) {
|
|
113
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
113
|
+
picks.push({ type: 'separator', label: ( localize(6066, "configure")) });
|
|
114
114
|
}
|
|
115
115
|
for (const launch of visibleLaunches) {
|
|
116
116
|
const label = this.contextService.getWorkbenchState() === 3 ?
|
|
117
|
-
( localize(
|
|
118
|
-
( localize(
|
|
117
|
+
( localize(6067, "Add Config ({0})...", launch.name)) :
|
|
118
|
+
( localize(6068, "Add Configuration..."));
|
|
119
119
|
picks.push({
|
|
120
120
|
label,
|
|
121
121
|
description: this.contextService.getWorkbenchState() === 3 ? launch.name : '',
|
|
@@ -133,7 +133,7 @@ let DebugService = class DebugService {
|
|
|
133
133
|
if (numberOfSessions > 0) {
|
|
134
134
|
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
135
135
|
if (viewContainer) {
|
|
136
|
-
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(
|
|
136
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2578, "1 active session")) : ( localize(2579, "{0} active sessions", n))))) });
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}));
|
|
@@ -155,7 +155,7 @@ let DebugService = class DebugService {
|
|
|
155
155
|
}
|
|
156
156
|
}));
|
|
157
157
|
this.disposables.add(extensionService.onWillStop(evt => {
|
|
158
|
-
evt.veto(this.model.getSessions().length > 0, ( localize(
|
|
158
|
+
evt.veto(this.model.getSessions().length > 0, ( localize(2580, 'A debug session is still running.')));
|
|
159
159
|
}));
|
|
160
160
|
this.initContextKeys(contextKeyService);
|
|
161
161
|
}
|
|
@@ -264,8 +264,8 @@ let DebugService = class DebugService {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
267
|
-
const message = options && options.noDebug ? ( localize(
|
|
268
|
-
|
|
267
|
+
const message = options && options.noDebug ? ( localize(2581, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
268
|
+
2582,
|
|
269
269
|
"Debugging executes build tasks and program code from your workspace."
|
|
270
270
|
));
|
|
271
271
|
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
@@ -296,7 +296,7 @@ let DebugService = class DebugService {
|
|
|
296
296
|
if (compound) {
|
|
297
297
|
if (!compound.configurations) {
|
|
298
298
|
throw ( (new Error(localize(
|
|
299
|
-
|
|
299
|
+
2583,
|
|
300
300
|
"Compound must have \"configurations\" attribute set in order to start multiple configurations."
|
|
301
301
|
))));
|
|
302
302
|
}
|
|
@@ -326,9 +326,9 @@ let DebugService = class DebugService {
|
|
|
326
326
|
}
|
|
327
327
|
else {
|
|
328
328
|
throw ( (new Error(
|
|
329
|
-
launchesContainingName.length === 0 ? localize(
|
|
329
|
+
launchesContainingName.length === 0 ? localize(2584, "Could not find launch configuration '{0}' in the workspace.", name)
|
|
330
330
|
: localize(
|
|
331
|
-
|
|
331
|
+
2585,
|
|
332
332
|
"There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
|
|
333
333
|
name
|
|
334
334
|
)
|
|
@@ -342,7 +342,7 @@ let DebugService = class DebugService {
|
|
|
342
342
|
}
|
|
343
343
|
else {
|
|
344
344
|
throw ( (new Error(localize(
|
|
345
|
-
|
|
345
|
+
2586,
|
|
346
346
|
"Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
|
|
347
347
|
configData.folder,
|
|
348
348
|
configData.name,
|
|
@@ -358,11 +358,11 @@ let DebugService = class DebugService {
|
|
|
358
358
|
}
|
|
359
359
|
if (configOrName && !config) {
|
|
360
360
|
const message = !!launch ? ( localize(
|
|
361
|
-
|
|
361
|
+
2587,
|
|
362
362
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
363
363
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
364
364
|
)) :
|
|
365
|
-
( localize(
|
|
365
|
+
( localize(2588, "'launch.json' does not exist for passed workspace folder."));
|
|
366
366
|
throw ( (new Error(message)));
|
|
367
367
|
}
|
|
368
368
|
const result = await this.createSession(launch, config, options);
|
|
@@ -435,23 +435,23 @@ let DebugService = class DebugService {
|
|
|
435
435
|
let message;
|
|
436
436
|
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
437
437
|
message = configByProviders.request ? ( localize(
|
|
438
|
-
|
|
438
|
+
2589,
|
|
439
439
|
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
440
440
|
'request',
|
|
441
441
|
configByProviders.request
|
|
442
442
|
))
|
|
443
443
|
: ( localize(
|
|
444
|
-
|
|
444
|
+
2590,
|
|
445
445
|
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
446
446
|
'request'
|
|
447
447
|
));
|
|
448
448
|
}
|
|
449
449
|
else {
|
|
450
|
-
message = resolvedConfig.type ? ( localize(
|
|
451
|
-
( localize(
|
|
450
|
+
message = resolvedConfig.type ? ( localize(2591, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
451
|
+
( localize(2592, "Missing property 'type' for the chosen launch configuration."));
|
|
452
452
|
}
|
|
453
453
|
const actionList = [];
|
|
454
|
-
actionList.push(( (new Action('installAdditionalDebuggers', ( localize(
|
|
454
|
+
actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2593, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
|
|
455
455
|
await this.showError(message, actionList);
|
|
456
456
|
return false;
|
|
457
457
|
}
|
|
@@ -472,7 +472,7 @@ let DebugService = class DebugService {
|
|
|
472
472
|
}
|
|
473
473
|
else if (this.contextService.getWorkbenchState() === 1 ) {
|
|
474
474
|
await this.showError(( localize(
|
|
475
|
-
|
|
475
|
+
2594,
|
|
476
476
|
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
477
477
|
)));
|
|
478
478
|
}
|
|
@@ -491,7 +491,7 @@ let DebugService = class DebugService {
|
|
|
491
491
|
const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
|
|
492
492
|
if (options?.startedByUser && ( (this.model.getSessions().some(s => s.getLabel() === session.getLabel()))) && configuration.resolved.suppressMultipleSessionWarning !== true) {
|
|
493
493
|
const result = await this.dialogService.confirm({ message: ( localize(
|
|
494
|
-
|
|
494
|
+
2595,
|
|
495
495
|
"'{0}' is already running. Do you want to start another instance?",
|
|
496
496
|
session.getLabel()
|
|
497
497
|
)) });
|
|
@@ -582,7 +582,7 @@ let DebugService = class DebugService {
|
|
|
582
582
|
if (adapterExitEvent) {
|
|
583
583
|
if (adapterExitEvent.error) {
|
|
584
584
|
this.notificationService.error(( localize(
|
|
585
|
-
|
|
585
|
+
2596,
|
|
586
586
|
"Debug adapter process has terminated unexpectedly ({0})",
|
|
587
587
|
adapterExitEvent.error.message || ( (adapterExitEvent.error.toString()))
|
|
588
588
|
)));
|
|
@@ -825,7 +825,7 @@ let DebugService = class DebugService {
|
|
|
825
825
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
826
826
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
827
827
|
alert(( localize(
|
|
828
|
-
|
|
828
|
+
2597,
|
|
829
829
|
"{0}, debugging paused {1}, {2}:{3}",
|
|
830
830
|
lineContent,
|
|
831
831
|
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
@@ -898,7 +898,7 @@ let DebugService = class DebugService {
|
|
|
898
898
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
899
899
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
900
900
|
if (ariaAnnounce) {
|
|
901
|
-
breakpoints.forEach(bp => status(( localize(
|
|
901
|
+
breakpoints.forEach(bp => status(( localize(2598, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
|
|
902
902
|
}
|
|
903
903
|
this.debugStorage.storeBreakpoints(this.model);
|
|
904
904
|
await this.sendBreakpoints(uri);
|
|
@@ -920,7 +920,7 @@ let DebugService = class DebugService {
|
|
|
920
920
|
const breakpoints = this.model.getBreakpoints();
|
|
921
921
|
const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
|
|
922
922
|
toRemove.forEach(bp => status(( localize(
|
|
923
|
-
|
|
923
|
+
2599,
|
|
924
924
|
"Removed breakpoint, line {0}, file {1}",
|
|
925
925
|
bp.lineNumber,
|
|
926
926
|
bp.uri.fsPath
|