@codingame/monaco-vscode-debug-service-override 9.0.0 → 9.0.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/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
|
@@ -59,7 +59,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
59
59
|
-1,
|
|
60
60
|
contextViewService,
|
|
61
61
|
defaultSelectBoxStyles,
|
|
62
|
-
{ ariaLabel: ( localize(
|
|
62
|
+
{ ariaLabel: ( localize(10291, 'Debug Launch Configurations')) }
|
|
63
63
|
)));
|
|
64
64
|
this.selectBox.setFocusable(false);
|
|
65
65
|
this.toDispose.push(this.selectBox);
|
|
@@ -217,7 +217,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
217
217
|
});
|
|
218
218
|
});
|
|
219
219
|
if (this.debugOptions.length === 0) {
|
|
220
|
-
this.debugOptions.push({ label: ( localize(
|
|
220
|
+
this.debugOptions.push({ label: ( localize(10292, "No Configurations")), handler: async () => false });
|
|
221
221
|
}
|
|
222
222
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
223
223
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -235,7 +235,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
237
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
238
|
-
const label = inWorkspace ? ( localize(
|
|
238
|
+
const label = inWorkspace ? ( localize(10293, "Add Config ({0})...", l.name)) : ( localize(10294, "Add Configuration..."));
|
|
239
239
|
this.debugOptions.push({
|
|
240
240
|
label, handler: async () => {
|
|
241
241
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( (l.uri.toString())));
|
|
@@ -255,11 +255,11 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
255
255
|
keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp, this.contextKeyService)?.getLabel() ?? undefined;
|
|
256
256
|
}
|
|
257
257
|
if (keybinding) {
|
|
258
|
-
ariaLabel = ( localize(
|
|
258
|
+
ariaLabel = ( localize(10295, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
259
259
|
}
|
|
260
260
|
else {
|
|
261
261
|
ariaLabel = ( localize(
|
|
262
|
-
|
|
262
|
+
10296,
|
|
263
263
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
264
264
|
ariaLabel
|
|
265
265
|
));
|
|
@@ -279,7 +279,7 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( (__decorate([
|
|
|
279
279
|
], StartDebugActionViewItem)));
|
|
280
280
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
281
281
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
282
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(
|
|
282
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(10297, 'Debug Session')) });
|
|
283
283
|
this.debugService = debugService;
|
|
284
284
|
this.configurationService = configurationService;
|
|
285
285
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -85,7 +85,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
85
85
|
delta.added.forEach(added => {
|
|
86
86
|
added.value.forEach(rawAdapter => {
|
|
87
87
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
88
|
-
added.collector.error(( localize(
|
|
88
|
+
added.collector.error(( localize(5720, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
89
89
|
}
|
|
90
90
|
if (rawAdapter.type !== '*') {
|
|
91
91
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -135,7 +135,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
135
135
|
'name': {
|
|
136
136
|
type: 'string',
|
|
137
137
|
description: ( localize(
|
|
138
|
-
|
|
138
|
+
5721,
|
|
139
139
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
140
140
|
)),
|
|
141
141
|
default: 'Launch'
|
|
@@ -143,7 +143,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
143
143
|
'debugServer': {
|
|
144
144
|
type: 'number',
|
|
145
145
|
description: ( localize(
|
|
146
|
-
|
|
146
|
+
5722,
|
|
147
147
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
148
148
|
)),
|
|
149
149
|
default: 4711
|
|
@@ -154,7 +154,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
154
154
|
}],
|
|
155
155
|
default: '',
|
|
156
156
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
157
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(5723, "Task to run before debug session starts.")),
|
|
158
158
|
examples: this.taskLabels,
|
|
159
159
|
},
|
|
160
160
|
'postDebugTask': {
|
|
@@ -163,7 +163,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
163
163
|
}],
|
|
164
164
|
default: '',
|
|
165
165
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
166
|
-
description: ( localize(
|
|
166
|
+
description: ( localize(5724, "Task to run after debug session ends.")),
|
|
167
167
|
examples: this.taskLabels,
|
|
168
168
|
},
|
|
169
169
|
'presentation': presentationSchema,
|
|
@@ -171,7 +171,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
171
171
|
'suppressMultipleSessionWarning': {
|
|
172
172
|
type: 'boolean',
|
|
173
173
|
description: ( localize(
|
|
174
|
-
|
|
174
|
+
5725,
|
|
175
175
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
176
176
|
)),
|
|
177
177
|
default: true
|
|
@@ -327,11 +327,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
327
327
|
const { confirmed } = await this.dialogService.confirm({
|
|
328
328
|
type: Severity$1.Warning,
|
|
329
329
|
message: ( localize(
|
|
330
|
-
|
|
330
|
+
5726,
|
|
331
331
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
332
332
|
languageLabel
|
|
333
333
|
)),
|
|
334
|
-
primaryButton: ( localize(
|
|
334
|
+
primaryButton: ( localize(5727, "&&Find {0} extension", languageLabel))
|
|
335
335
|
});
|
|
336
336
|
if (confirmed) {
|
|
337
337
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -357,7 +357,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
357
357
|
});
|
|
358
358
|
const picks = [];
|
|
359
359
|
if (suggestedCandidates.length > 0) {
|
|
360
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
360
|
+
picks.push({ type: 'separator', label: ( localize(5728, "Suggested")) }, ...( (suggestedCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
361
361
|
}
|
|
362
362
|
if (otherCandidates.length > 0) {
|
|
363
363
|
if (picks.length > 0) {
|
|
@@ -365,14 +365,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
365
365
|
}
|
|
366
366
|
picks.push(...( (otherCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
367
367
|
}
|
|
368
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(
|
|
368
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5729, "Install an extension for {0}...", languageLabel)) : ( localize(5730, "Install extension...")) });
|
|
369
369
|
const contributed = this.menuService.getMenuActions(MenuId.DebugCreateConfiguration, this.contextKeyService);
|
|
370
370
|
for (const [, action] of contributed) {
|
|
371
371
|
for (const item of action) {
|
|
372
372
|
picks.push(item);
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
const placeHolder = ( localize(
|
|
375
|
+
const placeHolder = ( localize(5731, "Select debugger"));
|
|
376
376
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder })
|
|
377
377
|
.then(async (picked) => {
|
|
378
378
|
if (picked && 'debugger' in picked && picked.debugger) {
|
|
@@ -193,7 +193,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
193
193
|
config,
|
|
194
194
|
buttons: [{
|
|
195
195
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
196
|
-
tooltip: ( localize(
|
|
196
|
+
tooltip: ( localize(5766, "Edit Debug Configuration in launch.json"))
|
|
197
197
|
}],
|
|
198
198
|
launch
|
|
199
199
|
}))))));
|
|
@@ -202,7 +202,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
202
202
|
const disposables = ( (new DisposableStore()));
|
|
203
203
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
204
204
|
input.busy = true;
|
|
205
|
-
input.placeholder = ( localize(
|
|
205
|
+
input.placeholder = ( localize(5767, "Select Launch Configuration"));
|
|
206
206
|
const chosenPromise = ( (new Promise(resolve => {
|
|
207
207
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
208
208
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -533,7 +533,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
533
533
|
}
|
|
534
534
|
catch (error) {
|
|
535
535
|
throw ( (new Error(localize(
|
|
536
|
-
|
|
536
|
+
5768,
|
|
537
537
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
538
538
|
error.message
|
|
539
539
|
))));
|
|
@@ -590,7 +590,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
590
590
|
return this.contextService.getWorkspace().configuration;
|
|
591
591
|
}
|
|
592
592
|
get name() {
|
|
593
|
-
return ( localize(
|
|
593
|
+
return ( localize(5769, "workspace"));
|
|
594
594
|
}
|
|
595
595
|
getConfig() {
|
|
596
596
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -634,7 +634,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
634
634
|
return this.preferencesService.userSettingsResource;
|
|
635
635
|
}
|
|
636
636
|
get name() {
|
|
637
|
-
return ( localize(
|
|
637
|
+
return ( localize(5770, "user settings"));
|
|
638
638
|
}
|
|
639
639
|
get hidden() {
|
|
640
640
|
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(5930, "Start a New Debug Session"));
|
|
30
30
|
debugConsolePicks.push({
|
|
31
31
|
label: `$(plus) ${createTerminalLabel}`,
|
|
32
32
|
ariaLabel: createTerminalLabel,
|
|
@@ -30,8 +30,8 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
30
30
|
super({
|
|
31
31
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
32
32
|
title: {
|
|
33
|
-
...( localize2(
|
|
34
|
-
mnemonicTitle: ( localize(
|
|
33
|
+
...( localize2(5931, "Debug: Toggle Breakpoint")),
|
|
34
|
+
mnemonicTitle: ( localize(5932, "Toggle &&Breakpoint")),
|
|
35
35
|
},
|
|
36
36
|
f1: true,
|
|
37
37
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -90,12 +90,12 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super({
|
|
92
92
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
93
|
-
label: ( localize(
|
|
93
|
+
label: ( localize(5933, "Debug: Add Conditional Breakpoint...")),
|
|
94
94
|
alias: 'Debug: Add Conditional Breakpoint...',
|
|
95
95
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
96
96
|
menuOpts: {
|
|
97
97
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
98
|
-
title: ( localize(
|
|
98
|
+
title: ( localize(5934, "&&Conditional Breakpoint...")),
|
|
99
99
|
group: '1_breakpoints',
|
|
100
100
|
order: 1,
|
|
101
101
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -114,13 +114,13 @@ class LogPointAction extends EditorAction {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: 'editor.debug.action.addLogPoint',
|
|
117
|
-
label: ( localize(
|
|
117
|
+
label: ( localize(5935, "Debug: Add Logpoint...")),
|
|
118
118
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
119
119
|
alias: 'Debug: Add Logpoint...',
|
|
120
120
|
menuOpts: [
|
|
121
121
|
{
|
|
122
122
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
123
|
-
title: ( localize(
|
|
123
|
+
title: ( localize(5936, "&&Logpoint...")),
|
|
124
124
|
group: '1_breakpoints',
|
|
125
125
|
order: 4,
|
|
126
126
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -140,13 +140,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
140
140
|
constructor() {
|
|
141
141
|
super({
|
|
142
142
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(5937, "Debug: Add Triggered Breakpoint...")),
|
|
144
144
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
145
145
|
alias: 'Debug: Triggered Breakpoint...',
|
|
146
146
|
menuOpts: [
|
|
147
147
|
{
|
|
148
148
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
149
|
-
title: ( localize(
|
|
149
|
+
title: ( localize(5938, "&&Triggered Breakpoint...")),
|
|
150
150
|
group: '1_breakpoints',
|
|
151
151
|
order: 4,
|
|
152
152
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -166,12 +166,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
166
166
|
constructor() {
|
|
167
167
|
super({
|
|
168
168
|
id: 'editor.debug.action.editBreakpoint',
|
|
169
|
-
label: ( localize(
|
|
169
|
+
label: ( localize(5939, "Debug: Edit Breakpoint")),
|
|
170
170
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
171
171
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
172
172
|
menuOpts: {
|
|
173
173
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
174
|
-
title: ( localize(
|
|
174
|
+
title: ( localize(5940, "&&Edit Breakpoint")),
|
|
175
175
|
group: '1_breakpoints',
|
|
176
176
|
order: 1,
|
|
177
177
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -206,8 +206,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
206
206
|
super({
|
|
207
207
|
id: OpenDisassemblyViewAction.ID,
|
|
208
208
|
title: {
|
|
209
|
-
...( localize2(
|
|
210
|
-
mnemonicTitle: ( localize(
|
|
209
|
+
...( localize2(5941, "Open Disassembly View")),
|
|
210
|
+
mnemonicTitle: ( localize(5942, "&&DisassemblyView")),
|
|
211
211
|
},
|
|
212
212
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
213
213
|
menu: [
|
|
@@ -258,11 +258,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
258
258
|
super({
|
|
259
259
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
260
260
|
title: {
|
|
261
|
-
...( localize2(
|
|
262
|
-
mnemonicTitle: ( localize(
|
|
261
|
+
...( localize2(5943, "Toggle Source Code in Disassembly View")),
|
|
262
|
+
mnemonicTitle: ( localize(5944, "&&ToggleSource")),
|
|
263
263
|
},
|
|
264
264
|
metadata: {
|
|
265
|
-
description: ( localize2(
|
|
265
|
+
description: ( localize2(5945, 'Shows or hides source code in disassembly'))
|
|
266
266
|
},
|
|
267
267
|
f1: true,
|
|
268
268
|
});
|
|
@@ -277,7 +277,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
277
277
|
}
|
|
278
278
|
class RunToCursorAction extends EditorAction {
|
|
279
279
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
280
|
-
static { this.LABEL = ( localize2(
|
|
280
|
+
static { this.LABEL = ( localize2(5946, "Run to Cursor")); }
|
|
281
281
|
constructor() {
|
|
282
282
|
super({
|
|
283
283
|
id: RunToCursorAction.ID,
|
|
@@ -315,7 +315,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
315
315
|
}
|
|
316
316
|
class SelectionToReplAction extends EditorAction {
|
|
317
317
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
318
|
-
static { this.LABEL = ( localize2(
|
|
318
|
+
static { this.LABEL = ( localize2(5947, "Evaluate in Debug Console")); }
|
|
319
319
|
constructor() {
|
|
320
320
|
super({
|
|
321
321
|
id: SelectionToReplAction.ID,
|
|
@@ -354,7 +354,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
354
354
|
}
|
|
355
355
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
356
356
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
357
|
-
static { this.LABEL = ( localize2(
|
|
357
|
+
static { this.LABEL = ( localize2(5948, "Add to Watch")); }
|
|
358
358
|
constructor() {
|
|
359
359
|
super({
|
|
360
360
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -403,7 +403,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
403
403
|
constructor() {
|
|
404
404
|
super({
|
|
405
405
|
id: 'editor.debug.action.showDebugHover',
|
|
406
|
-
label: ( localize(
|
|
406
|
+
label: ( localize(5949, "Debug: Show Hover")),
|
|
407
407
|
alias: 'Debug: Show Hover',
|
|
408
408
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
409
409
|
kbOpts: {
|
|
@@ -421,10 +421,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
421
421
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
424
|
+
const NO_TARGETS_MESSAGE = ( localize(5950, "Step targets are not available here"));
|
|
425
425
|
class StepIntoTargetsAction extends EditorAction {
|
|
426
426
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
427
|
-
static { this.LABEL = ( localize(
|
|
427
|
+
static { this.LABEL = ( localize(5951, "Step Into Target")); }
|
|
428
428
|
constructor() {
|
|
429
429
|
super({
|
|
430
430
|
id: StepIntoTargetsAction.ID,
|
|
@@ -536,7 +536,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
536
536
|
constructor() {
|
|
537
537
|
super(true, {
|
|
538
538
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
539
|
-
label: ( localize(
|
|
539
|
+
label: ( localize(5952, "Debug: Go to Next Breakpoint")),
|
|
540
540
|
alias: 'Debug: Go to Next Breakpoint',
|
|
541
541
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
542
542
|
});
|
|
@@ -546,7 +546,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
546
546
|
constructor() {
|
|
547
547
|
super(false, {
|
|
548
548
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
549
|
-
label: ( localize(
|
|
549
|
+
label: ( localize(5953, "Debug: Go to Previous Breakpoint")),
|
|
550
550
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
551
551
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
552
552
|
});
|
|
@@ -556,7 +556,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
556
556
|
constructor() {
|
|
557
557
|
super({
|
|
558
558
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
559
|
-
label: ( localize(
|
|
559
|
+
label: ( localize(5954, "Close Exception Widget")),
|
|
560
560
|
alias: 'Close Exception Widget',
|
|
561
561
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
562
562
|
kbOpts: {
|
|
@@ -67,8 +67,8 @@ registerColor('editor.inlineValuesForeground', {
|
|
|
67
67
|
light: '#00000080',
|
|
68
68
|
hcDark: '#ffffff80',
|
|
69
69
|
hcLight: '#00000080'
|
|
70
|
-
}, ( localize(
|
|
71
|
-
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(
|
|
70
|
+
}, ( localize(5955, "Color for the debug inline value text.")));
|
|
71
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(5956, "Color for the debug inline value background.")));
|
|
72
72
|
class InlineSegment {
|
|
73
73
|
constructor(column, text) {
|
|
74
74
|
this.column = column;
|
|
@@ -100,7 +100,7 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
100
100
|
this.treeContainer.setAttribute('role', 'tree');
|
|
101
101
|
const tip = append(this.complexValueContainer, $('.tip'));
|
|
102
102
|
tip.textContent = ( localize(
|
|
103
|
-
|
|
103
|
+
10283,
|
|
104
104
|
'Hold {0} key to switch to editor language hover',
|
|
105
105
|
isMacintosh ? 'Option' : 'Alt'
|
|
106
106
|
));
|
|
@@ -339,10 +339,10 @@ DebugHoverWidget = DebugHoverWidget_1 = ( (__decorate([
|
|
|
339
339
|
], DebugHoverWidget)));
|
|
340
340
|
class DebugHoverAccessibilityProvider {
|
|
341
341
|
getWidgetAriaLabel() {
|
|
342
|
-
return ( localize(
|
|
342
|
+
return ( localize(10284, "Debug Hover"));
|
|
343
343
|
}
|
|
344
344
|
getAriaLabel(element) {
|
|
345
|
-
return ( localize(
|
|
345
|
+
return ( localize(10285, "{0}, value {1}, variables, debug", element.name, element.value));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
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(
|
|
18
|
+
label: ( localize(6014, "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(
|
|
47
|
+
tooltip: ( localize(6015, "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(
|
|
68
|
+
type: 'separator', label: ( localize(6016, "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(
|
|
79
|
+
tooltip: ( localize(6017, "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(
|
|
102
|
+
ariaLabel: ( localize(6018, "{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(
|
|
114
|
+
picks.push({ type: 'separator', label: ( localize(6019, "configure")) });
|
|
115
115
|
}
|
|
116
116
|
for (const launch of visibleLaunches) {
|
|
117
117
|
const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
|
|
118
|
-
( localize(
|
|
119
|
-
( localize(
|
|
118
|
+
( localize(6020, "Add Config ({0})...", launch.name)) :
|
|
119
|
+
( localize(6021, "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(
|
|
141
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2568, "1 active session")) : ( localize(2569, "{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(
|
|
163
|
+
evt.veto(this.model.getSessions().length > 0, ( localize(2570, '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(
|
|
273
|
-
|
|
272
|
+
const message = options && options.noDebug ? ( localize(2571, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
273
|
+
2572,
|
|
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
|
-
|
|
304
|
+
2573,
|
|
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(
|
|
334
|
+
launchesContainingName.length === 0 ? localize(2574, "Could not find launch configuration '{0}' in the workspace.", name)
|
|
335
335
|
: localize(
|
|
336
|
-
|
|
336
|
+
2575,
|
|
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
|
-
|
|
350
|
+
2576,
|
|
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
|
-
|
|
366
|
+
2577,
|
|
367
367
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
368
368
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
369
369
|
)) :
|
|
370
|
-
( localize(
|
|
370
|
+
( localize(2578, "'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
|
-
|
|
443
|
+
2579,
|
|
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
|
-
|
|
449
|
+
2580,
|
|
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(
|
|
456
|
-
( localize(
|
|
455
|
+
message = resolvedConfig.type ? ( localize(2581, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
456
|
+
( localize(2582, "Missing property 'type' for the chosen launch configuration."));
|
|
457
457
|
}
|
|
458
458
|
const actionList = [];
|
|
459
|
-
actionList.push(( (new Action('installAdditionalDebuggers', ( localize(
|
|
459
|
+
actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2583, "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
|
-
|
|
480
|
+
2584,
|
|
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
|
-
|
|
499
|
+
2585,
|
|
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
|
-
|
|
590
|
+
2586,
|
|
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
|
-
|
|
833
|
+
2587,
|
|
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(
|
|
906
|
+
breakpoints.forEach(bp => status(( localize(2588, "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
|
-
|
|
928
|
+
2589,
|
|
929
929
|
"Removed breakpoint, line {0}, file {1}",
|
|
930
930
|
bp.lineNumber,
|
|
931
931
|
bp.uri.fsPath
|