@codingame/monaco-vscode-debug-service-override 14.0.2 → 14.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 +16 -16
- 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 +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/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 +21 -18
- 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 +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
|
@@ -60,7 +60,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
60
60
|
-1,
|
|
61
61
|
contextViewService,
|
|
62
62
|
defaultSelectBoxStyles,
|
|
63
|
-
{ ariaLabel: ( localize(
|
|
63
|
+
{ ariaLabel: ( localize(5336, 'Debug Launch Configurations')) }
|
|
64
64
|
));
|
|
65
65
|
this.selectBox.setFocusable(false);
|
|
66
66
|
this.toDispose.push(this.selectBox);
|
|
@@ -218,7 +218,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
220
|
if (this.debugOptions.length === 0) {
|
|
221
|
-
this.debugOptions.push({ label: ( localize(
|
|
221
|
+
this.debugOptions.push({ label: ( localize(5337, "No Configurations")), handler: async () => false });
|
|
222
222
|
}
|
|
223
223
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
224
224
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -236,7 +236,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
236
236
|
});
|
|
237
237
|
});
|
|
238
238
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
239
|
-
const label = inWorkspace ? ( localize(
|
|
239
|
+
const label = inWorkspace ? ( localize(5338, "Add Config ({0})...", l.name)) : ( localize(5339, "Add Configuration..."));
|
|
240
240
|
this.debugOptions.push({
|
|
241
241
|
label, handler: async () => {
|
|
242
242
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( l.uri.toString()));
|
|
@@ -256,11 +256,11 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
256
256
|
keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp, this.contextKeyService)?.getLabel() ?? undefined;
|
|
257
257
|
}
|
|
258
258
|
if (keybinding) {
|
|
259
|
-
ariaLabel = ( localize(
|
|
259
|
+
ariaLabel = ( localize(5340, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
260
260
|
}
|
|
261
261
|
else {
|
|
262
262
|
ariaLabel = ( localize(
|
|
263
|
-
|
|
263
|
+
5341,
|
|
264
264
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
265
265
|
ariaLabel
|
|
266
266
|
));
|
|
@@ -280,7 +280,7 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( __decorate([
|
|
|
280
280
|
], StartDebugActionViewItem));
|
|
281
281
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
282
282
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
283
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(
|
|
283
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(5342, 'Debug Session')) });
|
|
284
284
|
this.debugService = debugService;
|
|
285
285
|
this.configurationService = configurationService;
|
|
286
286
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -87,7 +87,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
87
87
|
delta.added.forEach(added => {
|
|
88
88
|
added.value.forEach(rawAdapter => {
|
|
89
89
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
90
|
-
added.collector.error(( localize(
|
|
90
|
+
added.collector.error(( localize(5343, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
91
91
|
}
|
|
92
92
|
if (rawAdapter.type !== '*') {
|
|
93
93
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -137,7 +137,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
137
137
|
'name': {
|
|
138
138
|
type: 'string',
|
|
139
139
|
description: ( localize(
|
|
140
|
-
|
|
140
|
+
5344,
|
|
141
141
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
142
142
|
)),
|
|
143
143
|
default: 'Launch'
|
|
@@ -145,7 +145,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
145
145
|
'debugServer': {
|
|
146
146
|
type: 'number',
|
|
147
147
|
description: ( localize(
|
|
148
|
-
|
|
148
|
+
5345,
|
|
149
149
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
150
150
|
)),
|
|
151
151
|
default: 4711
|
|
@@ -156,7 +156,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
156
156
|
}],
|
|
157
157
|
default: '',
|
|
158
158
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
159
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(5346, "Task to run before debug session starts.")),
|
|
160
160
|
examples: this.taskLabels,
|
|
161
161
|
},
|
|
162
162
|
'postDebugTask': {
|
|
@@ -165,7 +165,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
165
165
|
}],
|
|
166
166
|
default: '',
|
|
167
167
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(5347, "Task to run after debug session ends.")),
|
|
169
169
|
examples: this.taskLabels,
|
|
170
170
|
},
|
|
171
171
|
'presentation': presentationSchema,
|
|
@@ -173,7 +173,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
173
173
|
'suppressMultipleSessionWarning': {
|
|
174
174
|
type: 'boolean',
|
|
175
175
|
description: ( localize(
|
|
176
|
-
|
|
176
|
+
5348,
|
|
177
177
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
178
178
|
)),
|
|
179
179
|
default: true
|
|
@@ -327,11 +327,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
327
327
|
const { confirmed } = await this.dialogService.confirm({
|
|
328
328
|
type: Severity.Warning,
|
|
329
329
|
message: ( localize(
|
|
330
|
-
|
|
330
|
+
5349,
|
|
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(5350, "&&Find {0} extension", languageLabel))
|
|
335
335
|
});
|
|
336
336
|
if (confirmed) {
|
|
337
337
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -358,7 +358,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
358
358
|
const picks = [];
|
|
359
359
|
const dynamic = await this.delegate.configurationManager().getDynamicProviders();
|
|
360
360
|
if (suggestedCandidates.length > 0) {
|
|
361
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
361
|
+
picks.push({ type: 'separator', label: ( localize(5351, "Suggested")) }, ...( suggestedCandidates.map(c => ({ label: c.label, pick: () => ({ debugger: c }) }))));
|
|
362
362
|
}
|
|
363
363
|
if (otherCandidates.length > 0) {
|
|
364
364
|
if (picks.length > 0) {
|
|
@@ -372,7 +372,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
372
372
|
}
|
|
373
373
|
for (const d of dynamic) {
|
|
374
374
|
picks.push({
|
|
375
|
-
label: ( localize(
|
|
375
|
+
label: ( localize(5352, "More {0} options...", d.label)),
|
|
376
376
|
pick: async () => {
|
|
377
377
|
const cfg = await d.pick();
|
|
378
378
|
if (!cfg) {
|
|
@@ -383,14 +383,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(
|
|
386
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5353, "Install an extension for {0}...", languageLabel)) : ( localize(5354, "Install extension...")) });
|
|
387
387
|
const contributed = this.menuService.getMenuActions(MenuId.DebugCreateConfiguration, this.contextKeyService);
|
|
388
388
|
for (const [, action] of contributed) {
|
|
389
389
|
for (const item of action) {
|
|
390
390
|
picks.push(item);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
const placeHolder = ( localize(
|
|
393
|
+
const placeHolder = ( localize(5355, "Select debugger"));
|
|
394
394
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder }).then(async (picked) => {
|
|
395
395
|
if (picked && 'pick' in picked && typeof picked.pick === 'function') {
|
|
396
396
|
return await picked.pick();
|
|
@@ -186,7 +186,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
186
186
|
disposables.add(token);
|
|
187
187
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
188
188
|
input.busy = true;
|
|
189
|
-
input.placeholder = ( localize(
|
|
189
|
+
input.placeholder = ( localize(5402, "Select Launch Configuration"));
|
|
190
190
|
const chosenPromise = ( new Promise(resolve => {
|
|
191
191
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
192
192
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -230,7 +230,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
230
230
|
config,
|
|
231
231
|
buttons: [{
|
|
232
232
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
233
|
-
tooltip: ( localize(
|
|
233
|
+
tooltip: ( localize(5403, "Edit Debug Configuration in launch.json"))
|
|
234
234
|
}],
|
|
235
235
|
launch
|
|
236
236
|
})))));
|
|
@@ -548,7 +548,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
548
548
|
}
|
|
549
549
|
catch (error) {
|
|
550
550
|
throw ( new Error(( localize(
|
|
551
|
-
|
|
551
|
+
5404,
|
|
552
552
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
553
553
|
error.message
|
|
554
554
|
))));
|
|
@@ -602,7 +602,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
602
602
|
return this.contextService.getWorkspace().configuration;
|
|
603
603
|
}
|
|
604
604
|
get name() {
|
|
605
|
-
return localize(
|
|
605
|
+
return localize(5405, "workspace");
|
|
606
606
|
}
|
|
607
607
|
getConfig() {
|
|
608
608
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -646,7 +646,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
646
646
|
return this.preferencesService.userSettingsResource;
|
|
647
647
|
}
|
|
648
648
|
get name() {
|
|
649
|
-
return localize(
|
|
649
|
+
return localize(5406, "user settings");
|
|
650
650
|
}
|
|
651
651
|
get hidden() {
|
|
652
652
|
return true;
|
|
@@ -27,7 +27,7 @@ let DebugConsoleQuickAccess = class DebugConsoleQuickAccess extends PickerQuickA
|
|
|
27
27
|
if (debugConsolePicks.length > 0) {
|
|
28
28
|
debugConsolePicks.push({ type: 'separator' });
|
|
29
29
|
}
|
|
30
|
-
const createTerminalLabel = ( localize(
|
|
30
|
+
const createTerminalLabel = ( localize(5407, "Start a New Debug Session"));
|
|
31
31
|
debugConsolePicks.push({
|
|
32
32
|
label: `$(plus) ${createTerminalLabel}`,
|
|
33
33
|
ariaLabel: createTerminalLabel,
|
|
@@ -31,8 +31,8 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
31
31
|
super({
|
|
32
32
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
33
33
|
title: {
|
|
34
|
-
...( localize2(
|
|
35
|
-
mnemonicTitle: ( localize(
|
|
34
|
+
...( localize2(5408, "Debug: Toggle Breakpoint")),
|
|
35
|
+
mnemonicTitle: ( localize(5409, "Toggle &&Breakpoint")),
|
|
36
36
|
},
|
|
37
37
|
f1: true,
|
|
38
38
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -89,11 +89,11 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
92
|
-
label: ( localize2(
|
|
92
|
+
label: ( localize2(5410, "Debug: Add Conditional Breakpoint...")),
|
|
93
93
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
94
94
|
menuOpts: {
|
|
95
95
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(5411, "&&Conditional Breakpoint...")),
|
|
97
97
|
group: '1_breakpoints',
|
|
98
98
|
order: 1,
|
|
99
99
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -112,12 +112,12 @@ class LogPointAction extends EditorAction {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: 'editor.debug.action.addLogPoint',
|
|
115
|
-
label: ( localize2(
|
|
115
|
+
label: ( localize2(5412, "Debug: Add Logpoint...")),
|
|
116
116
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
117
117
|
menuOpts: [
|
|
118
118
|
{
|
|
119
119
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
120
|
-
title: ( localize(
|
|
120
|
+
title: ( localize(5413, "&&Logpoint...")),
|
|
121
121
|
group: '1_breakpoints',
|
|
122
122
|
order: 4,
|
|
123
123
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -137,13 +137,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
137
137
|
constructor() {
|
|
138
138
|
super({
|
|
139
139
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(5414, "Debug: Add Triggered Breakpoint...")),
|
|
141
141
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
142
142
|
alias: 'Debug: Triggered Breakpoint...',
|
|
143
143
|
menuOpts: [
|
|
144
144
|
{
|
|
145
145
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
146
|
-
title: ( localize(
|
|
146
|
+
title: ( localize(5415, "&&Triggered Breakpoint...")),
|
|
147
147
|
group: '1_breakpoints',
|
|
148
148
|
order: 4,
|
|
149
149
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -163,12 +163,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: 'editor.debug.action.editBreakpoint',
|
|
166
|
-
label: ( localize(
|
|
166
|
+
label: ( localize(5416, "Debug: Edit Breakpoint")),
|
|
167
167
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
168
168
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
169
169
|
menuOpts: {
|
|
170
170
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
171
|
-
title: ( localize(
|
|
171
|
+
title: ( localize(5417, "&&Edit Breakpoint")),
|
|
172
172
|
group: '1_breakpoints',
|
|
173
173
|
order: 1,
|
|
174
174
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -203,8 +203,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
203
203
|
super({
|
|
204
204
|
id: OpenDisassemblyViewAction.ID,
|
|
205
205
|
title: {
|
|
206
|
-
...( localize2(
|
|
207
|
-
mnemonicTitle: ( localize(
|
|
206
|
+
...( localize2(5418, "Open Disassembly View")),
|
|
207
|
+
mnemonicTitle: ( localize(5419, "&&DisassemblyView")),
|
|
208
208
|
},
|
|
209
209
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
210
210
|
menu: [
|
|
@@ -239,11 +239,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
239
239
|
super({
|
|
240
240
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
241
241
|
title: {
|
|
242
|
-
...( localize2(
|
|
243
|
-
mnemonicTitle: ( localize(
|
|
242
|
+
...( localize2(5420, "Toggle Source Code in Disassembly View")),
|
|
243
|
+
mnemonicTitle: ( localize(5421, "&&ToggleSource")),
|
|
244
244
|
},
|
|
245
245
|
metadata: {
|
|
246
|
-
description: ( localize2(
|
|
246
|
+
description: ( localize2(5422, 'Shows or hides source code in disassembly'))
|
|
247
247
|
},
|
|
248
248
|
f1: true,
|
|
249
249
|
});
|
|
@@ -258,7 +258,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
258
258
|
}
|
|
259
259
|
class RunToCursorAction extends EditorAction {
|
|
260
260
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
261
|
-
static { this.LABEL = ( localize2(
|
|
261
|
+
static { this.LABEL = ( localize2(5423, "Run to Cursor")); }
|
|
262
262
|
constructor() {
|
|
263
263
|
super({
|
|
264
264
|
id: RunToCursorAction.ID,
|
|
@@ -291,7 +291,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
291
291
|
}
|
|
292
292
|
class SelectionToReplAction extends EditorAction {
|
|
293
293
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
294
|
-
static { this.LABEL = ( localize2(
|
|
294
|
+
static { this.LABEL = ( localize2(5424, "Evaluate in Debug Console")); }
|
|
295
295
|
constructor() {
|
|
296
296
|
super({
|
|
297
297
|
id: SelectionToReplAction.ID,
|
|
@@ -326,7 +326,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
326
326
|
}
|
|
327
327
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
328
328
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
329
|
-
static { this.LABEL = ( localize2(
|
|
329
|
+
static { this.LABEL = ( localize2(5425, "Add to Watch")); }
|
|
330
330
|
constructor() {
|
|
331
331
|
super({
|
|
332
332
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -371,7 +371,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
371
371
|
constructor() {
|
|
372
372
|
super({
|
|
373
373
|
id: 'editor.debug.action.showDebugHover',
|
|
374
|
-
label: ( localize2(
|
|
374
|
+
label: ( localize2(5426, "Debug: Show Hover")),
|
|
375
375
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
376
376
|
kbOpts: {
|
|
377
377
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -388,10 +388,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
388
388
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
391
|
+
const NO_TARGETS_MESSAGE = ( localize(5427, "Step targets are not available here"));
|
|
392
392
|
class StepIntoTargetsAction extends EditorAction {
|
|
393
393
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
394
|
-
static { this.LABEL = ( localize(
|
|
394
|
+
static { this.LABEL = ( localize(5428, "Step Into Target")); }
|
|
395
395
|
constructor() {
|
|
396
396
|
super({
|
|
397
397
|
id: StepIntoTargetsAction.ID,
|
|
@@ -496,7 +496,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
496
496
|
constructor() {
|
|
497
497
|
super(true, {
|
|
498
498
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
499
|
-
label: ( localize2(
|
|
499
|
+
label: ( localize2(5429, "Debug: Go to Next Breakpoint")),
|
|
500
500
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
501
501
|
});
|
|
502
502
|
}
|
|
@@ -505,7 +505,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
505
505
|
constructor() {
|
|
506
506
|
super(false, {
|
|
507
507
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
508
|
-
label: ( localize2(
|
|
508
|
+
label: ( localize2(5430, "Debug: Go to Previous Breakpoint")),
|
|
509
509
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
510
510
|
});
|
|
511
511
|
}
|
|
@@ -514,7 +514,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
514
514
|
constructor() {
|
|
515
515
|
super({
|
|
516
516
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
517
|
-
label: ( localize2(
|
|
517
|
+
label: ( localize2(5431, "Close Exception Widget")),
|
|
518
518
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
519
519
|
kbOpts: {
|
|
520
520
|
primary: KeyCode.Escape,
|
|
@@ -68,8 +68,8 @@ registerColor('editor.inlineValuesForeground', {
|
|
|
68
68
|
light: '#00000080',
|
|
69
69
|
hcDark: '#ffffff80',
|
|
70
70
|
hcLight: '#00000080'
|
|
71
|
-
}, ( localize(
|
|
72
|
-
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(
|
|
71
|
+
}, ( localize(5432, "Color for the debug inline value text.")));
|
|
72
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(5433, "Color for the debug inline value background.")));
|
|
73
73
|
class InlineSegment {
|
|
74
74
|
constructor(column, text) {
|
|
75
75
|
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
|
+
5434,
|
|
104
104
|
'Hold {0} key to switch to editor language hover',
|
|
105
105
|
isMacintosh ? 'Option' : 'Alt'
|
|
106
106
|
));
|
|
@@ -338,10 +338,10 @@ DebugHoverWidget = DebugHoverWidget_1 = ( __decorate([
|
|
|
338
338
|
], DebugHoverWidget));
|
|
339
339
|
class DebugHoverAccessibilityProvider {
|
|
340
340
|
getWidgetAriaLabel() {
|
|
341
|
-
return localize(
|
|
341
|
+
return localize(5435, "Debug Hover");
|
|
342
342
|
}
|
|
343
343
|
getAriaLabel(element) {
|
|
344
|
-
return localize(
|
|
344
|
+
return localize(5436, "{0}, value {1}, variables, debug", element.name, element.value);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
class DebugHoverDataSource extends AbstractExpressionDataSource {
|
|
@@ -16,7 +16,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
16
16
|
constructor(debugService, contextService, commandService, notificationService) {
|
|
17
17
|
super(DEBUG_QUICK_ACCESS_PREFIX, {
|
|
18
18
|
noResultsPick: {
|
|
19
|
-
label: ( localize(
|
|
19
|
+
label: ( localize(5494, "No matching launch configurations"))
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
this.debugService = debugService;
|
|
@@ -45,7 +45,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
45
45
|
highlights: { label: highlights },
|
|
46
46
|
buttons: [{
|
|
47
47
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
48
|
-
tooltip: ( localize(
|
|
48
|
+
tooltip: ( localize(5495, "Configure Launch Configuration"))
|
|
49
49
|
}],
|
|
50
50
|
trigger: () => {
|
|
51
51
|
config.launch.openConfigFile({ preserveFocus: false });
|
|
@@ -66,7 +66,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
66
66
|
const dynamicProviders = await configManager.getDynamicProviders();
|
|
67
67
|
if (dynamicProviders.length > 0) {
|
|
68
68
|
picks.push({
|
|
69
|
-
type: 'separator', label: ( localize(
|
|
69
|
+
type: 'separator', label: ( localize(5496, "contributed"))
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
@@ -77,7 +77,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
77
77
|
highlights: { label: highlights },
|
|
78
78
|
buttons: [{
|
|
79
79
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
80
|
-
tooltip: ( localize(
|
|
80
|
+
tooltip: ( localize(5497, "Remove Launch Configuration"))
|
|
81
81
|
}],
|
|
82
82
|
trigger: () => {
|
|
83
83
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -100,7 +100,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
100
100
|
dynamicProviders.forEach(provider => {
|
|
101
101
|
picks.push({
|
|
102
102
|
label: `$(folder) ${provider.label}...`,
|
|
103
|
-
ariaLabel: ( localize(
|
|
103
|
+
ariaLabel: ( localize(5498, "{0} contributed configurations", provider.label)),
|
|
104
104
|
accept: async () => {
|
|
105
105
|
const pick = await provider.pick();
|
|
106
106
|
if (pick) {
|
|
@@ -112,12 +112,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
112
112
|
});
|
|
113
113
|
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
114
114
|
if (visibleLaunches.length > 0) {
|
|
115
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
115
|
+
picks.push({ type: 'separator', label: ( localize(5499, "configure")) });
|
|
116
116
|
}
|
|
117
117
|
for (const launch of visibleLaunches) {
|
|
118
118
|
const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
|
|
119
|
-
( localize(
|
|
120
|
-
( localize(
|
|
119
|
+
( localize(5500, "Add Config ({0})...", launch.name)) :
|
|
120
|
+
( localize(5501, "Add Configuration..."));
|
|
121
121
|
picks.push({
|
|
122
122
|
label,
|
|
123
123
|
description: this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ? launch.name : '',
|
|
@@ -142,7 +142,7 @@ let DebugService = class DebugService {
|
|
|
142
142
|
if (numberOfSessions > 0) {
|
|
143
143
|
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
144
144
|
if (viewContainer) {
|
|
145
|
-
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(
|
|
145
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(5502, "1 active session")) : ( localize(5503, "{0} active sessions", n)))) });
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}));
|
|
@@ -164,7 +164,7 @@ let DebugService = class DebugService {
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
this.disposables.add(extensionService.onWillStop(evt => {
|
|
167
|
-
evt.veto(this.model.getSessions().length > 0, ( localize(
|
|
167
|
+
evt.veto(this.model.getSessions().length > 0, ( localize(5504, 'A debug session is still running that would terminate.')));
|
|
168
168
|
}));
|
|
169
169
|
this.initContextKeys(contextKeyService);
|
|
170
170
|
}
|
|
@@ -273,8 +273,8 @@ let DebugService = class DebugService {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
276
|
-
const message = options && options.noDebug ? ( localize(
|
|
277
|
-
|
|
276
|
+
const message = options && options.noDebug ? ( localize(5505, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
277
|
+
5506,
|
|
278
278
|
"Debugging executes build tasks and program code from your workspace."
|
|
279
279
|
));
|
|
280
280
|
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
@@ -305,7 +305,7 @@ let DebugService = class DebugService {
|
|
|
305
305
|
if (compound) {
|
|
306
306
|
if (!compound.configurations) {
|
|
307
307
|
throw ( new Error(( localize(
|
|
308
|
-
|
|
308
|
+
5507,
|
|
309
309
|
"Compound must have \"configurations\" attribute set in order to start multiple configurations."
|
|
310
310
|
))));
|
|
311
311
|
}
|
|
@@ -334,9 +334,9 @@ let DebugService = class DebugService {
|
|
|
334
334
|
launchForName = launch;
|
|
335
335
|
}
|
|
336
336
|
else {
|
|
337
|
-
throw ( new Error(launchesContainingName.length === 0 ? ( localize(
|
|
337
|
+
throw ( new Error(launchesContainingName.length === 0 ? ( localize(5508, "Could not find launch configuration '{0}' in the workspace.", name))
|
|
338
338
|
: ( localize(
|
|
339
|
-
|
|
339
|
+
5509,
|
|
340
340
|
"There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
|
|
341
341
|
name
|
|
342
342
|
))));
|
|
@@ -349,7 +349,7 @@ let DebugService = class DebugService {
|
|
|
349
349
|
}
|
|
350
350
|
else {
|
|
351
351
|
throw ( new Error(( localize(
|
|
352
|
-
|
|
352
|
+
5510,
|
|
353
353
|
"Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
|
|
354
354
|
configData.folder,
|
|
355
355
|
configData.name,
|
|
@@ -365,11 +365,11 @@ let DebugService = class DebugService {
|
|
|
365
365
|
}
|
|
366
366
|
if (configOrName && !config) {
|
|
367
367
|
const message = !!launch ? ( localize(
|
|
368
|
-
|
|
368
|
+
5511,
|
|
369
369
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
370
370
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
371
371
|
)) :
|
|
372
|
-
( localize(
|
|
372
|
+
( localize(5512, "'launch.json' does not exist for passed workspace folder."));
|
|
373
373
|
throw ( new Error(message));
|
|
374
374
|
}
|
|
375
375
|
const result = await this.createSession(launch, config, options);
|
|
@@ -457,23 +457,23 @@ let DebugService = class DebugService {
|
|
|
457
457
|
let message;
|
|
458
458
|
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
459
459
|
message = configByProviders.request ? ( localize(
|
|
460
|
-
|
|
460
|
+
5513,
|
|
461
461
|
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
462
462
|
'request',
|
|
463
463
|
configByProviders.request
|
|
464
464
|
))
|
|
465
465
|
: ( localize(
|
|
466
|
-
|
|
466
|
+
5514,
|
|
467
467
|
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
468
468
|
'request'
|
|
469
469
|
));
|
|
470
470
|
}
|
|
471
471
|
else {
|
|
472
|
-
message = resolvedConfig.type ? ( localize(
|
|
473
|
-
( localize(
|
|
472
|
+
message = resolvedConfig.type ? ( localize(5515, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
473
|
+
( localize(5516, "Missing property 'type' for the chosen launch configuration."));
|
|
474
474
|
}
|
|
475
475
|
const actionList = [];
|
|
476
|
-
actionList.push(( new Action('installAdditionalDebuggers', ( localize(
|
|
476
|
+
actionList.push(( new Action('installAdditionalDebuggers', ( localize(5517, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type))));
|
|
477
477
|
await this.showError(message, actionList);
|
|
478
478
|
return false;
|
|
479
479
|
}
|
|
@@ -494,7 +494,7 @@ let DebugService = class DebugService {
|
|
|
494
494
|
}
|
|
495
495
|
else if (this.contextService.getWorkbenchState() === WorkbenchState.EMPTY) {
|
|
496
496
|
await this.showError(( localize(
|
|
497
|
-
|
|
497
|
+
5518,
|
|
498
498
|
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
499
499
|
)));
|
|
500
500
|
}
|
|
@@ -513,7 +513,7 @@ let DebugService = class DebugService {
|
|
|
513
513
|
const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
|
|
514
514
|
if (options?.startedByUser && ( this.model.getSessions().some(s => s.getLabel() === session.getLabel())) && configuration.resolved.suppressMultipleSessionWarning !== true) {
|
|
515
515
|
const result = await this.dialogService.confirm({ message: ( localize(
|
|
516
|
-
|
|
516
|
+
5519,
|
|
517
517
|
"'{0}' is already running. Do you want to start another instance?",
|
|
518
518
|
session.getLabel()
|
|
519
519
|
)) });
|
|
@@ -604,7 +604,7 @@ let DebugService = class DebugService {
|
|
|
604
604
|
if (adapterExitEvent) {
|
|
605
605
|
if (adapterExitEvent.error) {
|
|
606
606
|
this.notificationService.error(( localize(
|
|
607
|
-
|
|
607
|
+
5520,
|
|
608
608
|
"Debug adapter process has terminated unexpectedly ({0})",
|
|
609
609
|
adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
|
|
610
610
|
)));
|
|
@@ -848,7 +848,7 @@ let DebugService = class DebugService {
|
|
|
848
848
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
849
849
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
850
850
|
alert(( localize(
|
|
851
|
-
|
|
851
|
+
5521,
|
|
852
852
|
"{0}, debugging paused {1}, {2}:{3}",
|
|
853
853
|
lineContent,
|
|
854
854
|
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
@@ -921,7 +921,7 @@ let DebugService = class DebugService {
|
|
|
921
921
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
922
922
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
923
923
|
if (ariaAnnounce) {
|
|
924
|
-
breakpoints.forEach(bp => status(( localize(
|
|
924
|
+
breakpoints.forEach(bp => status(( localize(5522, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
|
|
925
925
|
}
|
|
926
926
|
this.debugStorage.storeBreakpoints(this.model);
|
|
927
927
|
await this.sendBreakpoints(uri);
|
|
@@ -943,7 +943,7 @@ let DebugService = class DebugService {
|
|
|
943
943
|
const breakpoints = this.model.getBreakpoints();
|
|
944
944
|
const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
|
|
945
945
|
toRemove.forEach(bp => status(( localize(
|
|
946
|
-
|
|
946
|
+
5523,
|
|
947
947
|
"Removed breakpoint, line {0}, file {1}",
|
|
948
948
|
bp.lineNumber,
|
|
949
949
|
bp.uri.fsPath
|