@codingame/monaco-vscode-debug-service-override 8.0.0 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/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 +41 -41
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +15 -15
- 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/linkDetector.js +3 -3
- 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 +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +20 -15
- 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(10246, '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(10247, "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(10248, "Add Config ({0})...", l.name)) : ( localize(10249, "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(10250, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
259
259
|
}
|
|
260
260
|
else {
|
|
261
261
|
ariaLabel = ( localize(
|
|
262
|
-
|
|
262
|
+
10251,
|
|
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(10252, 'Debug Session')) });
|
|
283
283
|
this.debugService = debugService;
|
|
284
284
|
this.configurationService = configurationService;
|
|
285
285
|
this._register(this.debugService.getViewModel().onDidFocusSession(() => {
|
|
@@ -72,7 +72,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
72
72
|
delta.added.forEach(added => {
|
|
73
73
|
added.value.forEach(rawAdapter => {
|
|
74
74
|
if (!rawAdapter.type || (typeof rawAdapter.type !== 'string')) {
|
|
75
|
-
added.collector.error(( localize(
|
|
75
|
+
added.collector.error(( localize(5738, "Debugger 'type' can not be omitted and must be of type 'string'.")));
|
|
76
76
|
}
|
|
77
77
|
if (rawAdapter.type !== '*') {
|
|
78
78
|
const existing = this.getDebugger(rawAdapter.type);
|
|
@@ -116,7 +116,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
116
116
|
'name': {
|
|
117
117
|
type: 'string',
|
|
118
118
|
description: ( localize(
|
|
119
|
-
|
|
119
|
+
5739,
|
|
120
120
|
"Name of configuration; appears in the launch configuration dropdown menu."
|
|
121
121
|
)),
|
|
122
122
|
default: 'Launch'
|
|
@@ -124,7 +124,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
124
124
|
'debugServer': {
|
|
125
125
|
type: 'number',
|
|
126
126
|
description: ( localize(
|
|
127
|
-
|
|
127
|
+
5740,
|
|
128
128
|
"For debug extension development only: if a port is specified VS Code tries to connect to a debug adapter running in server mode"
|
|
129
129
|
)),
|
|
130
130
|
default: 4711
|
|
@@ -135,7 +135,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
135
135
|
}],
|
|
136
136
|
default: '',
|
|
137
137
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
138
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(5741, "Task to run before debug session starts."))
|
|
139
139
|
},
|
|
140
140
|
'postDebugTask': {
|
|
141
141
|
anyOf: [taskSchema, {
|
|
@@ -143,14 +143,14 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
143
143
|
}],
|
|
144
144
|
default: '',
|
|
145
145
|
defaultSnippets: [{ body: { task: '', type: '' } }],
|
|
146
|
-
description: ( localize(
|
|
146
|
+
description: ( localize(5742, "Task to run after debug session ends."))
|
|
147
147
|
},
|
|
148
148
|
'presentation': presentationSchema,
|
|
149
149
|
'internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
150
150
|
'suppressMultipleSessionWarning': {
|
|
151
151
|
type: 'boolean',
|
|
152
152
|
description: ( localize(
|
|
153
|
-
|
|
153
|
+
5743,
|
|
154
154
|
"Disable the warning when trying to start the same debug configuration more than once."
|
|
155
155
|
)),
|
|
156
156
|
default: true
|
|
@@ -306,11 +306,11 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
306
306
|
const { confirmed } = await this.dialogService.confirm({
|
|
307
307
|
type: Severity$1.Warning,
|
|
308
308
|
message: ( localize(
|
|
309
|
-
|
|
309
|
+
5744,
|
|
310
310
|
"You don't have an extension for debugging {0}. Should we find a {0} extension in the Marketplace?",
|
|
311
311
|
languageLabel
|
|
312
312
|
)),
|
|
313
|
-
primaryButton: ( localize(
|
|
313
|
+
primaryButton: ( localize(5745, "&&Find {0} extension", languageLabel))
|
|
314
314
|
});
|
|
315
315
|
if (confirmed) {
|
|
316
316
|
await this.commandService.executeCommand('debug.installAdditionalDebuggers', languageLabel);
|
|
@@ -336,7 +336,7 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
336
336
|
});
|
|
337
337
|
const picks = [];
|
|
338
338
|
if (suggestedCandidates.length > 0) {
|
|
339
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
339
|
+
picks.push({ type: 'separator', label: ( localize(5746, "Suggested")) }, ...( (suggestedCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
340
340
|
}
|
|
341
341
|
if (otherCandidates.length > 0) {
|
|
342
342
|
if (picks.length > 0) {
|
|
@@ -344,8 +344,8 @@ let AdapterManager = class AdapterManager extends Disposable {
|
|
|
344
344
|
}
|
|
345
345
|
picks.push(...( (otherCandidates.map(c => ({ label: c.label, debugger: c })))));
|
|
346
346
|
}
|
|
347
|
-
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(
|
|
348
|
-
const placeHolder = ( localize(
|
|
347
|
+
picks.push({ type: 'separator', label: '' }, { label: languageLabel ? ( localize(5747, "Install an extension for {0}...", languageLabel)) : ( localize(5748, "Install extension...")) });
|
|
348
|
+
const placeHolder = ( localize(5749, "Select debugger"));
|
|
349
349
|
return this.quickInputService.pick(picks, { activeItem: picks[0], placeHolder })
|
|
350
350
|
.then(picked => {
|
|
351
351
|
if (picked && picked.debugger) {
|
|
@@ -191,7 +191,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
191
191
|
config,
|
|
192
192
|
buttons: [{
|
|
193
193
|
iconClass: ThemeIcon.asClassName(debugConfigure),
|
|
194
|
-
tooltip: ( localize(
|
|
194
|
+
tooltip: ( localize(5784, "Edit Debug Configuration in launch.json"))
|
|
195
195
|
}],
|
|
196
196
|
launch
|
|
197
197
|
}))))));
|
|
@@ -200,7 +200,7 @@ let ConfigurationManager = class ConfigurationManager {
|
|
|
200
200
|
const disposables = ( (new DisposableStore()));
|
|
201
201
|
const input = disposables.add(this.quickInputService.createQuickPick());
|
|
202
202
|
input.busy = true;
|
|
203
|
-
input.placeholder = ( localize(
|
|
203
|
+
input.placeholder = ( localize(5785, "Select Launch Configuration"));
|
|
204
204
|
const chosenPromise = ( (new Promise(resolve => {
|
|
205
205
|
disposables.add(input.onDidAccept(() => resolve(input.activeItems[0])));
|
|
206
206
|
disposables.add(input.onDidTriggerItemButton(async (context) => {
|
|
@@ -522,7 +522,7 @@ let Launch = class Launch extends AbstractLaunch {
|
|
|
522
522
|
}
|
|
523
523
|
catch (error) {
|
|
524
524
|
throw ( (new Error(localize(
|
|
525
|
-
|
|
525
|
+
5786,
|
|
526
526
|
"Unable to create 'launch.json' file inside the '.vscode' folder ({0}).",
|
|
527
527
|
error.message
|
|
528
528
|
))));
|
|
@@ -579,7 +579,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
|
|
|
579
579
|
return this.contextService.getWorkspace().configuration;
|
|
580
580
|
}
|
|
581
581
|
get name() {
|
|
582
|
-
return ( localize(
|
|
582
|
+
return ( localize(5787, "workspace"));
|
|
583
583
|
}
|
|
584
584
|
getConfig() {
|
|
585
585
|
return this.configurationService.inspect('launch').workspaceValue;
|
|
@@ -623,7 +623,7 @@ let UserLaunch = class UserLaunch extends AbstractLaunch {
|
|
|
623
623
|
return this.preferencesService.userSettingsResource;
|
|
624
624
|
}
|
|
625
625
|
get name() {
|
|
626
|
-
return ( localize(
|
|
626
|
+
return ( localize(5788, "user settings"));
|
|
627
627
|
}
|
|
628
628
|
get hidden() {
|
|
629
629
|
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(5946, "Start a New Debug Session"));
|
|
30
30
|
debugConsolePicks.push({
|
|
31
31
|
label: `$(plus) ${createTerminalLabel}`,
|
|
32
32
|
ariaLabel: createTerminalLabel,
|
|
@@ -29,8 +29,8 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
29
29
|
super({
|
|
30
30
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
31
31
|
title: {
|
|
32
|
-
...( localize2(
|
|
33
|
-
mnemonicTitle: ( localize(
|
|
32
|
+
...( localize2(5947, "Debug: Toggle Breakpoint")),
|
|
33
|
+
mnemonicTitle: ( localize(5948, "Toggle &&Breakpoint")),
|
|
34
34
|
},
|
|
35
35
|
f1: true,
|
|
36
36
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -89,12 +89,12 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
92
|
-
label: ( localize(
|
|
92
|
+
label: ( localize(5949, "Debug: Add Conditional Breakpoint...")),
|
|
93
93
|
alias: 'Debug: Add Conditional Breakpoint...',
|
|
94
94
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
95
95
|
menuOpts: {
|
|
96
96
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
97
|
-
title: ( localize(
|
|
97
|
+
title: ( localize(5950, "&&Conditional Breakpoint...")),
|
|
98
98
|
group: '1_breakpoints',
|
|
99
99
|
order: 1,
|
|
100
100
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -113,13 +113,13 @@ class LogPointAction extends EditorAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'editor.debug.action.addLogPoint',
|
|
116
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(5951, "Debug: Add Logpoint...")),
|
|
117
117
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
118
118
|
alias: 'Debug: Add Logpoint...',
|
|
119
119
|
menuOpts: [
|
|
120
120
|
{
|
|
121
121
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
122
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(5952, "&&Logpoint...")),
|
|
123
123
|
group: '1_breakpoints',
|
|
124
124
|
order: 4,
|
|
125
125
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -139,13 +139,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
142
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(5953, "Debug: Add Triggered Breakpoint...")),
|
|
143
143
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
144
144
|
alias: 'Debug: Triggered Breakpoint...',
|
|
145
145
|
menuOpts: [
|
|
146
146
|
{
|
|
147
147
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
148
|
-
title: ( localize(
|
|
148
|
+
title: ( localize(5954, "&&Triggered Breakpoint...")),
|
|
149
149
|
group: '1_breakpoints',
|
|
150
150
|
order: 4,
|
|
151
151
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -165,12 +165,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
165
165
|
constructor() {
|
|
166
166
|
super({
|
|
167
167
|
id: 'editor.debug.action.editBreakpoint',
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(5955, "Debug: Edit Breakpoint")),
|
|
169
169
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
170
170
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
171
171
|
menuOpts: {
|
|
172
172
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
173
|
-
title: ( localize(
|
|
173
|
+
title: ( localize(5956, "&&Edit Breakpoint")),
|
|
174
174
|
group: '1_breakpoints',
|
|
175
175
|
order: 1,
|
|
176
176
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -205,8 +205,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
205
205
|
super({
|
|
206
206
|
id: OpenDisassemblyViewAction.ID,
|
|
207
207
|
title: {
|
|
208
|
-
...( localize2(
|
|
209
|
-
mnemonicTitle: ( localize(
|
|
208
|
+
...( localize2(5957, "Open Disassembly View")),
|
|
209
|
+
mnemonicTitle: ( localize(5958, "&&DisassemblyView")),
|
|
210
210
|
},
|
|
211
211
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
212
212
|
menu: [
|
|
@@ -257,11 +257,11 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
257
257
|
super({
|
|
258
258
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
259
259
|
title: {
|
|
260
|
-
...( localize2(
|
|
261
|
-
mnemonicTitle: ( localize(
|
|
260
|
+
...( localize2(5959, "Toggle Source Code in Disassembly View")),
|
|
261
|
+
mnemonicTitle: ( localize(5960, "&&ToggleSource")),
|
|
262
262
|
},
|
|
263
263
|
metadata: {
|
|
264
|
-
description: ( localize2(
|
|
264
|
+
description: ( localize2(5961, 'Shows or hides source code in disassembly'))
|
|
265
265
|
},
|
|
266
266
|
f1: true,
|
|
267
267
|
});
|
|
@@ -276,7 +276,7 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
276
276
|
}
|
|
277
277
|
class RunToCursorAction extends EditorAction {
|
|
278
278
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
279
|
-
static { this.LABEL = ( localize2(
|
|
279
|
+
static { this.LABEL = ( localize2(5962, "Run to Cursor")); }
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: RunToCursorAction.ID,
|
|
@@ -313,7 +313,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
313
313
|
}
|
|
314
314
|
class SelectionToReplAction extends EditorAction {
|
|
315
315
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
316
|
-
static { this.LABEL = ( localize2(
|
|
316
|
+
static { this.LABEL = ( localize2(5963, "Evaluate in Debug Console")); }
|
|
317
317
|
constructor() {
|
|
318
318
|
super({
|
|
319
319
|
id: SelectionToReplAction.ID,
|
|
@@ -348,7 +348,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
348
348
|
}
|
|
349
349
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
350
350
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
351
|
-
static { this.LABEL = ( localize2(
|
|
351
|
+
static { this.LABEL = ( localize2(5964, "Add to Watch")); }
|
|
352
352
|
constructor() {
|
|
353
353
|
super({
|
|
354
354
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -393,7 +393,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
393
393
|
constructor() {
|
|
394
394
|
super({
|
|
395
395
|
id: 'editor.debug.action.showDebugHover',
|
|
396
|
-
label: ( localize(
|
|
396
|
+
label: ( localize(5965, "Debug: Show Hover")),
|
|
397
397
|
alias: 'Debug: Show Hover',
|
|
398
398
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
399
399
|
kbOpts: {
|
|
@@ -411,10 +411,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
411
411
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
414
|
+
const NO_TARGETS_MESSAGE = ( localize(5966, "Step targets are not available here"));
|
|
415
415
|
class StepIntoTargetsAction extends EditorAction {
|
|
416
416
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
417
|
-
static { this.LABEL = ( localize(
|
|
417
|
+
static { this.LABEL = ( localize(5967, "Step Into Target")); }
|
|
418
418
|
constructor() {
|
|
419
419
|
super({
|
|
420
420
|
id: StepIntoTargetsAction.ID,
|
|
@@ -526,7 +526,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
526
526
|
constructor() {
|
|
527
527
|
super(true, {
|
|
528
528
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
529
|
-
label: ( localize(
|
|
529
|
+
label: ( localize(5968, "Debug: Go to Next Breakpoint")),
|
|
530
530
|
alias: 'Debug: Go to Next Breakpoint',
|
|
531
531
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
532
532
|
});
|
|
@@ -536,7 +536,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
536
536
|
constructor() {
|
|
537
537
|
super(false, {
|
|
538
538
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
539
|
-
label: ( localize(
|
|
539
|
+
label: ( localize(5969, "Debug: Go to Previous Breakpoint")),
|
|
540
540
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
541
541
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
542
542
|
});
|
|
@@ -546,7 +546,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
546
546
|
constructor() {
|
|
547
547
|
super({
|
|
548
548
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
549
|
-
label: ( localize(
|
|
549
|
+
label: ( localize(5970, "Close Exception Widget")),
|
|
550
550
|
alias: 'Close Exception Widget',
|
|
551
551
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
552
552
|
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(5971, "Color for the debug inline value text.")));
|
|
71
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(5972, "Color for the debug inline value background.")));
|
|
72
72
|
class InlineSegment {
|
|
73
73
|
constructor(column, text) {
|
|
74
74
|
this.column = column;
|
|
@@ -101,7 +101,7 @@ let DebugHoverWidget = class DebugHoverWidget {
|
|
|
101
101
|
this.treeContainer.setAttribute('role', 'tree');
|
|
102
102
|
const tip = append(this.complexValueContainer, $('.tip'));
|
|
103
103
|
tip.textContent = ( localize(
|
|
104
|
-
|
|
104
|
+
10238,
|
|
105
105
|
'Hold {0} key to switch to editor language hover',
|
|
106
106
|
isMacintosh ? 'Option' : 'Alt'
|
|
107
107
|
));
|
|
@@ -337,10 +337,10 @@ DebugHoverWidget = DebugHoverWidget_1 = ( (__decorate([
|
|
|
337
337
|
], DebugHoverWidget)));
|
|
338
338
|
class DebugHoverAccessibilityProvider {
|
|
339
339
|
getWidgetAriaLabel() {
|
|
340
|
-
return ( localize(
|
|
340
|
+
return ( localize(10239, "Debug Hover"));
|
|
341
341
|
}
|
|
342
342
|
getAriaLabel(element) {
|
|
343
|
-
return ( localize(
|
|
343
|
+
return ( localize(10240, "{0}, value {1}, variables, debug", element.name, element.value));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
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(6030, "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(6031, "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(6032, "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(6033, "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(6034, "{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(6035, "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(6036, "Add Config ({0})...", launch.name)) :
|
|
119
|
+
( localize(6037, "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(2554, "1 active session")) : ( localize(2555, "{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(2556, '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(2557, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
273
|
+
2558,
|
|
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
|
+
2559,
|
|
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(2560, "Could not find launch configuration '{0}' in the workspace.", name)
|
|
335
335
|
: localize(
|
|
336
|
-
|
|
336
|
+
2561,
|
|
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
|
+
2562,
|
|
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
|
+
2563,
|
|
367
367
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
368
368
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
369
369
|
)) :
|
|
370
|
-
( localize(
|
|
370
|
+
( localize(2564, "'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
|
+
2565,
|
|
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
|
+
2566,
|
|
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(2567, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
456
|
+
( localize(2568, "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(2569, "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
|
+
2570,
|
|
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
|
+
2571,
|
|
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
|
+
2572,
|
|
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
|
+
2573,
|
|
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(2574, "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
|
+
2575,
|
|
929
929
|
"Removed breakpoint, line {0}, file {1}",
|
|
930
930
|
bp.lineNumber,
|
|
931
931
|
bp.uri.fsPath
|