@codingame/monaco-vscode-debug-service-override 20.0.0 → 20.1.0
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 +112 -112
- 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/debugQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -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/watchExpressionsView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -61,7 +61,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
61
61
|
-1,
|
|
62
62
|
contextViewService,
|
|
63
63
|
defaultSelectBoxStyles,
|
|
64
|
-
{ ariaLabel: ( localize(
|
|
64
|
+
{ ariaLabel: ( localize(6060, 'Debug Launch Configurations')), useCustomDrawn: !hasNativeContextMenu(this.configurationService) }
|
|
65
65
|
));
|
|
66
66
|
this.selectBox.setFocusable(false);
|
|
67
67
|
this.toDispose.push(this.selectBox);
|
|
@@ -220,7 +220,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
222
|
if (this.debugOptions.length === 0) {
|
|
223
|
-
this.debugOptions.push({ label: ( localize(
|
|
223
|
+
this.debugOptions.push({ label: ( localize(6061, "No Configurations")), handler: async () => false });
|
|
224
224
|
}
|
|
225
225
|
this.debugOptions.push({ label: StartDebugActionViewItem_1.SEPARATOR, handler: () => Promise.resolve(false) });
|
|
226
226
|
disabledIdxs.push(this.debugOptions.length - 1);
|
|
@@ -238,7 +238,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
manager.getLaunches().filter(l => !l.hidden).forEach(l => {
|
|
241
|
-
const label = inWorkspace ? ( localize(
|
|
241
|
+
const label = inWorkspace ? ( localize(6062, "Add Config ({0})...", l.name)) : ( localize(6063, "Add Configuration..."));
|
|
242
242
|
this.debugOptions.push({
|
|
243
243
|
label, handler: async () => {
|
|
244
244
|
await this.commandService.executeCommand(ADD_CONFIGURATION_ID, ( l.uri.toString()));
|
|
@@ -258,11 +258,11 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
258
258
|
keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp, this.contextKeyService)?.getLabel() ?? undefined;
|
|
259
259
|
}
|
|
260
260
|
if (keybinding) {
|
|
261
|
-
ariaLabel = ( localize(
|
|
261
|
+
ariaLabel = ( localize(6064, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
262
262
|
}
|
|
263
263
|
else {
|
|
264
264
|
ariaLabel = ( localize(
|
|
265
|
-
|
|
265
|
+
6065,
|
|
266
266
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
267
267
|
ariaLabel
|
|
268
268
|
));
|
|
@@ -282,7 +282,7 @@ StartDebugActionViewItem = StartDebugActionViewItem_1 = ( __decorate([
|
|
|
282
282
|
], StartDebugActionViewItem));
|
|
283
283
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
284
284
|
constructor(action, session, debugService, contextViewService, configurationService) {
|
|
285
|
-
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(
|
|
285
|
+
super(null, action, [], -1, contextViewService, defaultSelectBoxStyles, { ariaLabel: ( localize(6066, 'Debug Session')), useCustomDrawn: !hasNativeContextMenu(configurationService) });
|
|
286
286
|
this.debugService = debugService;
|
|
287
287
|
this.configurationService = configurationService;
|
|
288
288
|
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(6067, "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
|
+
6068,
|
|
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
|
+
6069,
|
|
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(6070, "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(6071, "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
|
+
6072,
|
|
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
|
+
6073,
|
|
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(6074, "&&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(6075, "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(6076, "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(6077, "Install an extension for {0}...", languageLabel)) : ( localize(6078, "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(6079, "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(6127, "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(6128, "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
|
+
6129,
|
|
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(6130, "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(6131, "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(6132, "Start a New Debug Session"));
|
|
31
31
|
debugConsolePicks.push({
|
|
32
32
|
label: `$(plus) ${createTerminalLabel}`,
|
|
33
33
|
ariaLabel: createTerminalLabel,
|
|
@@ -32,8 +32,8 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
32
32
|
super({
|
|
33
33
|
id: TOGGLE_BREAKPOINT_ID,
|
|
34
34
|
title: {
|
|
35
|
-
...( localize2(
|
|
36
|
-
mnemonicTitle: ( localize(
|
|
35
|
+
...( localize2(6133, "Debug: Toggle Breakpoint")),
|
|
36
|
+
mnemonicTitle: ( localize(6134, "Toggle &&Breakpoint")),
|
|
37
37
|
},
|
|
38
38
|
f1: true,
|
|
39
39
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -90,11 +90,11 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super({
|
|
92
92
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
93
|
-
label: ( localize2(
|
|
93
|
+
label: ( localize2(6135, "Debug: Add Conditional Breakpoint...")),
|
|
94
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
95
95
|
menuOpts: {
|
|
96
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(6136, "&&Conditional Breakpoint...")),
|
|
98
98
|
group: '1_breakpoints',
|
|
99
99
|
order: 1,
|
|
100
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -113,12 +113,12 @@ class LogPointAction extends EditorAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'editor.debug.action.addLogPoint',
|
|
116
|
-
label: ( localize2(
|
|
116
|
+
label: ( localize2(6137, "Debug: Add Logpoint...")),
|
|
117
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
118
118
|
menuOpts: [
|
|
119
119
|
{
|
|
120
120
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
121
|
-
title: ( localize(
|
|
121
|
+
title: ( localize(6138, "&&Logpoint...")),
|
|
122
122
|
group: '1_breakpoints',
|
|
123
123
|
order: 4,
|
|
124
124
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -138,13 +138,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
138
138
|
constructor() {
|
|
139
139
|
super({
|
|
140
140
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
141
|
-
label: ( localize(
|
|
141
|
+
label: ( localize(6139, "Debug: Add Triggered Breakpoint...")),
|
|
142
142
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
143
143
|
alias: 'Debug: Triggered Breakpoint...',
|
|
144
144
|
menuOpts: [
|
|
145
145
|
{
|
|
146
146
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
147
|
-
title: ( localize(
|
|
147
|
+
title: ( localize(6140, "&&Triggered Breakpoint...")),
|
|
148
148
|
group: '1_breakpoints',
|
|
149
149
|
order: 4,
|
|
150
150
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -164,12 +164,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
164
164
|
constructor() {
|
|
165
165
|
super({
|
|
166
166
|
id: 'editor.debug.action.editBreakpoint',
|
|
167
|
-
label: ( localize(
|
|
167
|
+
label: ( localize(6141, "Debug: Edit Breakpoint")),
|
|
168
168
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
169
169
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
170
170
|
menuOpts: {
|
|
171
171
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(6142, "&&Edit Breakpoint")),
|
|
173
173
|
group: '1_breakpoints',
|
|
174
174
|
order: 1,
|
|
175
175
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -204,8 +204,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
204
204
|
super({
|
|
205
205
|
id: OpenDisassemblyViewAction.ID,
|
|
206
206
|
title: {
|
|
207
|
-
...( localize2(
|
|
208
|
-
mnemonicTitle: ( localize(
|
|
207
|
+
...( localize2(6143, "Open Disassembly View")),
|
|
208
|
+
mnemonicTitle: ( localize(6144, "&&DisassemblyView")),
|
|
209
209
|
},
|
|
210
210
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
211
211
|
menu: [
|
|
@@ -240,11 +240,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
240
240
|
super({
|
|
241
241
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
242
242
|
title: {
|
|
243
|
-
...( localize2(
|
|
244
|
-
mnemonicTitle: ( localize(
|
|
243
|
+
...( localize2(6145, "Toggle Source Code in Disassembly View")),
|
|
244
|
+
mnemonicTitle: ( localize(6146, "&&ToggleSource")),
|
|
245
245
|
},
|
|
246
246
|
metadata: {
|
|
247
|
-
description: ( localize2(
|
|
247
|
+
description: ( localize2(6147, 'Shows or hides source code in disassembly'))
|
|
248
248
|
},
|
|
249
249
|
f1: true,
|
|
250
250
|
});
|
|
@@ -259,7 +259,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
259
259
|
}
|
|
260
260
|
class RunToCursorAction extends EditorAction {
|
|
261
261
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
262
|
-
static { this.LABEL = ( localize2(
|
|
262
|
+
static { this.LABEL = ( localize2(6148, "Run to Cursor")); }
|
|
263
263
|
constructor() {
|
|
264
264
|
super({
|
|
265
265
|
id: RunToCursorAction.ID,
|
|
@@ -292,7 +292,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
292
292
|
}
|
|
293
293
|
class SelectionToReplAction extends EditorAction {
|
|
294
294
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
295
|
-
static { this.LABEL = ( localize2(
|
|
295
|
+
static { this.LABEL = ( localize2(6149, "Evaluate in Debug Console")); }
|
|
296
296
|
constructor() {
|
|
297
297
|
super({
|
|
298
298
|
id: SelectionToReplAction.ID,
|
|
@@ -327,7 +327,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
327
327
|
}
|
|
328
328
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
329
329
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
330
|
-
static { this.LABEL = ( localize2(
|
|
330
|
+
static { this.LABEL = ( localize2(6150, "Add to Watch")); }
|
|
331
331
|
constructor() {
|
|
332
332
|
super({
|
|
333
333
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -372,7 +372,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: 'editor.debug.action.showDebugHover',
|
|
375
|
-
label: ( localize2(
|
|
375
|
+
label: ( localize2(6151, "Debug: Show Hover")),
|
|
376
376
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
377
377
|
kbOpts: {
|
|
378
378
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -389,10 +389,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
389
389
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
392
|
+
const NO_TARGETS_MESSAGE = ( localize(6152, "Step targets are not available here"));
|
|
393
393
|
class StepIntoTargetsAction extends EditorAction {
|
|
394
394
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
395
|
-
static { this.LABEL = ( localize(
|
|
395
|
+
static { this.LABEL = ( localize(6153, "Step Into Target")); }
|
|
396
396
|
constructor() {
|
|
397
397
|
super({
|
|
398
398
|
id: StepIntoTargetsAction.ID,
|
|
@@ -497,7 +497,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
497
497
|
constructor() {
|
|
498
498
|
super(true, {
|
|
499
499
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
500
|
-
label: ( localize2(
|
|
500
|
+
label: ( localize2(6154, "Debug: Go to Next Breakpoint")),
|
|
501
501
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
502
502
|
});
|
|
503
503
|
}
|
|
@@ -506,7 +506,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
506
506
|
constructor() {
|
|
507
507
|
super(false, {
|
|
508
508
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
509
|
-
label: ( localize2(
|
|
509
|
+
label: ( localize2(6155, "Debug: Go to Previous Breakpoint")),
|
|
510
510
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
511
511
|
});
|
|
512
512
|
}
|
|
@@ -515,7 +515,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
515
515
|
constructor() {
|
|
516
516
|
super({
|
|
517
517
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
518
|
-
label: ( localize2(
|
|
518
|
+
label: ( localize2(6156, "Close Exception Widget")),
|
|
519
519
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
520
520
|
kbOpts: {
|
|
521
521
|
primary: KeyCode.Escape,
|
|
@@ -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(6219, "No matching launch configurations"))
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
this.debugService = debugService;
|
|
@@ -42,7 +42,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
42
42
|
highlights: { label: highlights },
|
|
43
43
|
buttons: [{
|
|
44
44
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
45
|
-
tooltip: ( localize(
|
|
45
|
+
tooltip: ( localize(6220, "Configure Launch Configuration"))
|
|
46
46
|
}],
|
|
47
47
|
trigger: () => {
|
|
48
48
|
config.launch.openConfigFile({ preserveFocus: false });
|
|
@@ -59,7 +59,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
if (selectedConfiguration.name === config.name && selectedConfiguration.launch === config.launch) {
|
|
62
|
-
const separator = { type: 'separator', label: ( localize(
|
|
62
|
+
const separator = { type: 'separator', label: ( localize(6221, 'Most Recent')) };
|
|
63
63
|
picks.unshift(separator, pick);
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
@@ -73,7 +73,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
73
73
|
const dynamicProviders = await configManager.getDynamicProviders();
|
|
74
74
|
if (dynamicProviders.length > 0) {
|
|
75
75
|
picks.push({
|
|
76
|
-
type: 'separator', label: ( localize(
|
|
76
|
+
type: 'separator', label: ( localize(6222, "contributed"))
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
configManager.getRecentDynamicConfigurations().forEach(({ name, type }) => {
|
|
@@ -84,7 +84,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
84
84
|
highlights: { label: highlights },
|
|
85
85
|
buttons: [{
|
|
86
86
|
iconClass: ThemeIcon.asClassName(debugRemoveConfig),
|
|
87
|
-
tooltip: ( localize(
|
|
87
|
+
tooltip: ( localize(6223, "Remove Launch Configuration"))
|
|
88
88
|
}],
|
|
89
89
|
trigger: () => {
|
|
90
90
|
configManager.removeRecentDynamicConfigurations(name, type);
|
|
@@ -107,7 +107,7 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
107
107
|
dynamicProviders.forEach(provider => {
|
|
108
108
|
picks.push({
|
|
109
109
|
label: `$(folder) ${provider.label}...`,
|
|
110
|
-
ariaLabel: ( localize(
|
|
110
|
+
ariaLabel: ( localize(6224, "{0} contributed configurations", provider.label)),
|
|
111
111
|
accept: async () => {
|
|
112
112
|
const pick = await provider.pick();
|
|
113
113
|
if (pick) {
|
|
@@ -119,12 +119,12 @@ let StartDebugQuickAccessProvider = class StartDebugQuickAccessProvider extends
|
|
|
119
119
|
});
|
|
120
120
|
const visibleLaunches = configManager.getLaunches().filter(launch => !launch.hidden);
|
|
121
121
|
if (visibleLaunches.length > 0) {
|
|
122
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
122
|
+
picks.push({ type: 'separator', label: ( localize(6225, "configure")) });
|
|
123
123
|
}
|
|
124
124
|
for (const launch of visibleLaunches) {
|
|
125
125
|
const label = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE ?
|
|
126
|
-
( localize(
|
|
127
|
-
( localize(
|
|
126
|
+
( localize(6226, "Add Config ({0})...", launch.name)) :
|
|
127
|
+
( localize(6227, "Add Configuration..."));
|
|
128
128
|
picks.push({
|
|
129
129
|
label,
|
|
130
130
|
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(6228, "1 active session")) : ( localize(6229, "{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(6230, '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(6231, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
277
|
+
6232,
|
|
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
|
+
6233,
|
|
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(6234, "Could not find launch configuration '{0}' in the workspace.", name))
|
|
338
338
|
: ( localize(
|
|
339
|
-
|
|
339
|
+
6235,
|
|
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
|
+
6236,
|
|
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
|
+
6237,
|
|
369
369
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
370
370
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
371
371
|
)) :
|
|
372
|
-
( localize(
|
|
372
|
+
( localize(6238, "'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
|
+
6239,
|
|
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
|
+
6240,
|
|
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(6241, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
473
|
+
( localize(6242, "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(6243, "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
|
+
6244,
|
|
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
|
+
6245,
|
|
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
|
+
6246,
|
|
608
608
|
"Debug adapter process has terminated unexpectedly ({0})",
|
|
609
609
|
adapterExitEvent.error.message || ( adapterExitEvent.error.toString())
|
|
610
610
|
)));
|
|
@@ -850,7 +850,7 @@ let DebugService = class DebugService {
|
|
|
850
850
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
851
851
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
852
852
|
alert(( localize(
|
|
853
|
-
|
|
853
|
+
6247,
|
|
854
854
|
"{0}, debugging paused {1}, {2}:{3}",
|
|
855
855
|
lineContent,
|
|
856
856
|
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
@@ -923,7 +923,7 @@ let DebugService = class DebugService {
|
|
|
923
923
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
924
924
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
925
925
|
if (ariaAnnounce) {
|
|
926
|
-
breakpoints.forEach(bp => status(( localize(
|
|
926
|
+
breakpoints.forEach(bp => status(( localize(6248, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
|
|
927
927
|
}
|
|
928
928
|
this.debugStorage.storeBreakpoints(this.model);
|
|
929
929
|
await this.sendBreakpoints(uri);
|
|
@@ -945,7 +945,7 @@ let DebugService = class DebugService {
|
|
|
945
945
|
const breakpoints = this.model.getBreakpoints();
|
|
946
946
|
const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
|
|
947
947
|
toRemove.forEach(bp => status(( localize(
|
|
948
|
-
|
|
948
|
+
6249,
|
|
949
949
|
"Removed breakpoint, line {0}, file {1}",
|
|
950
950
|
bp.lineNumber,
|
|
951
951
|
bp.uri.fsPath
|