@codingame/monaco-vscode-debug-service-override 11.0.1 → 11.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 +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +108 -108
- 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/debugService.js +21 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-debug-service-override",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@11.0.
|
|
30
|
-
"@codingame/monaco-vscode-debug-notebook-common": "11.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-debug-notebook-common": "11.0.2"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -55,7 +55,7 @@ import { ReplAccessibilityAnnouncer } from '../common/replAccessibilityAnnouncer
|
|
|
55
55
|
import { RunAndDebugAccessibilityHelp } from './runAndDebugAccessibilityHelp.js';
|
|
56
56
|
import { DebugWatchAccessibilityAnnouncer } from '../common/debugAccessibilityAnnouncer.js';
|
|
57
57
|
|
|
58
|
-
const debugCategory = ( localize(
|
|
58
|
+
const debugCategory = ( localize(2514, "Debug"));
|
|
59
59
|
registerColors();
|
|
60
60
|
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugStatusContribution, 4 );
|
|
61
61
|
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugProgressContribution, 4 );
|
|
@@ -71,9 +71,9 @@ if (isWeb) {
|
|
|
71
71
|
ctor: StartDebugQuickAccessProvider,
|
|
72
72
|
prefix: DEBUG_QUICK_ACCESS_PREFIX,
|
|
73
73
|
contextKey: 'inLaunchConfigurationsPicker',
|
|
74
|
-
placeholder: ( localize(
|
|
74
|
+
placeholder: ( localize(2515, "Type the name of a launch configuration to run.")),
|
|
75
75
|
helpEntries: [{
|
|
76
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(2516, "Start Debugging")),
|
|
77
77
|
commandId: SELECT_AND_START_ID,
|
|
78
78
|
commandCenterOrder: 50
|
|
79
79
|
}]
|
|
@@ -82,8 +82,8 @@ if (isWeb) {
|
|
|
82
82
|
ctor: DebugConsoleQuickAccess,
|
|
83
83
|
prefix: DEBUG_CONSOLE_QUICK_ACCESS_PREFIX,
|
|
84
84
|
contextKey: 'inDebugConsolePicker',
|
|
85
|
-
placeholder: ( localize(
|
|
86
|
-
helpEntries: [{ description: ( localize(
|
|
85
|
+
placeholder: ( localize(2517, "Type the name of a debug console to open.")),
|
|
86
|
+
helpEntries: [{ description: ( localize(2518, "Show All Debug Consoles")), commandId: SELECT_DEBUG_CONSOLE_ID }]
|
|
87
87
|
});
|
|
88
88
|
registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, 1 );
|
|
89
89
|
registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, 1 );
|
|
@@ -101,7 +101,7 @@ const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
registerDebugCommandPaletteItem(RESTART_SESSION_ID, RESTART_LABEL);
|
|
104
|
-
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2(
|
|
104
|
+
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2(2519, "Terminate Thread")), CONTEXT_IN_DEBUG_MODE);
|
|
105
105
|
registerDebugCommandPaletteItem(STEP_OVER_ID, STEP_OVER_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
106
106
|
registerDebugCommandPaletteItem(STEP_INTO_ID, STEP_INTO_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
107
107
|
registerDebugCommandPaletteItem(STEP_INTO_TARGET_ID, STEP_INTO_TARGET_LABEL, CONTEXT_IN_DEBUG_MODE, ( (ContextKeyExpr.and(
|
|
@@ -124,13 +124,13 @@ registerDebugCommandPaletteItem(STOP_ID, STOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( (C
|
|
|
124
124
|
CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED
|
|
125
125
|
))));
|
|
126
126
|
registerDebugCommandPaletteItem(CONTINUE_ID, CONTINUE_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
127
|
-
registerDebugCommandPaletteItem(FOCUS_REPL_ID, ( localize2(
|
|
128
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(
|
|
129
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(
|
|
127
|
+
registerDebugCommandPaletteItem(FOCUS_REPL_ID, ( localize2(2520, "Focus on Debug Console View")));
|
|
128
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2521, "Jump to Cursor")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
129
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2522, "Set Next Statement")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
130
130
|
registerDebugCommandPaletteItem(RunToCursorAction.ID, RunToCursorAction.LABEL, CONTEXT_DEBUGGERS_AVAILABLE);
|
|
131
131
|
registerDebugCommandPaletteItem(SelectionToReplAction.ID, SelectionToReplAction.LABEL, CONTEXT_IN_DEBUG_MODE);
|
|
132
132
|
registerDebugCommandPaletteItem(SelectionToWatchExpressionsAction.ID, SelectionToWatchExpressionsAction.LABEL);
|
|
133
|
-
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2(
|
|
133
|
+
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2(2523, "Inline Breakpoint")));
|
|
134
134
|
registerDebugCommandPaletteItem(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, ( (ContextKeyExpr.and(
|
|
135
135
|
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
136
136
|
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 )))
|
|
@@ -188,45 +188,45 @@ registerDebugViewMenuItem(MenuId.DebugCallStackContext, CONTINUE_ID, CONTINUE_LA
|
|
|
188
188
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OVER_ID, STEP_OVER_LABEL, 20, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
189
189
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_INTO_ID, STEP_INTO_LABEL, 30, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
190
190
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OUT_ID, STEP_OUT_LABEL, 40, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
191
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localize(
|
|
192
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(
|
|
191
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localize(2519, "Terminate Thread")), 10, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), undefined, 'termination');
|
|
192
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(2524, "Restart Frame")), 10, ( (ContextKeyExpr.and(
|
|
193
193
|
(CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')),
|
|
194
194
|
CONTEXT_RESTART_FRAME_SUPPORTED
|
|
195
195
|
))), CONTEXT_STACK_FRAME_SUPPORTS_RESTART);
|
|
196
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localize(
|
|
197
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(
|
|
198
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(
|
|
196
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localize(2525, "Copy Call Stack")), 20, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame'))), undefined, '3_modification');
|
|
197
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(2526, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
198
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(2527, "Set Value")), 10, ( (ContextKeyExpr.or(
|
|
199
199
|
CONTEXT_SET_VARIABLE_SUPPORTED,
|
|
200
200
|
(ContextKeyExpr.and(CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED))
|
|
201
201
|
))), ( (CONTEXT_VARIABLE_IS_READONLY.toNegated())), '3_modification');
|
|
202
202
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
203
203
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
204
204
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
205
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(
|
|
206
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(
|
|
207
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(
|
|
208
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(
|
|
205
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(2528, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
206
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(2529, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
207
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(2530, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
208
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(2526, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
209
209
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
210
210
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
211
211
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
212
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(
|
|
213
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(
|
|
214
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(
|
|
212
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(2528, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
213
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(2529, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
214
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(2530, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
215
215
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, ADD_WATCH_ID, ADD_WATCH_LABEL, 10, undefined, undefined, '3_modification');
|
|
216
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localize(
|
|
217
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(
|
|
216
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localize(2531, "Edit Expression")), 20, ( (CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))), undefined, '3_modification');
|
|
217
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(2527, "Set Value")), 30, ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|
|
218
218
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')),
|
|
219
219
|
CONTEXT_SET_EXPRESSION_SUPPORTED
|
|
220
220
|
)), (ContextKeyExpr.and(
|
|
221
221
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable')),
|
|
222
222
|
CONTEXT_SET_VARIABLE_SUPPORTED
|
|
223
223
|
))))), ( (CONTEXT_VARIABLE_IS_READONLY.toNegated())), '3_modification');
|
|
224
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localize(
|
|
224
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localize(2532, "Copy Value")), 40, ( (ContextKeyExpr.or(
|
|
225
225
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')),
|
|
226
226
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable'))
|
|
227
227
|
))), CONTEXT_IN_DEBUG_MODE, '3_modification');
|
|
228
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localize(
|
|
229
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(
|
|
228
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localize(2526, "View Binary Data")), 10, CONTEXT_CAN_VIEW_MEMORY, undefined, 'inline', debugInspectMemory);
|
|
229
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(2533, "Remove Expression")), 20, ( (CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))), undefined, 'inline', watchExpressionRemove);
|
|
230
230
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, 20, undefined, undefined, 'z_commands');
|
|
231
231
|
registerDebugViewMenuItem(MenuId.NotebookVariablesContext, COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, 20, CONTEXT_VARIABLE_VALUE);
|
|
232
232
|
if (isMacintosh) {
|
|
@@ -255,12 +255,12 @@ if (isMacintosh) {
|
|
|
255
255
|
registerTouchBarEntry(RESTART_SESSION_ID, RESTART_LABEL, 5, CONTEXT_IN_DEBUG_MODE, ( (FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/restart-tb.png'))));
|
|
256
256
|
registerTouchBarEntry(STOP_ID, STOP_LABEL, 6, CONTEXT_IN_DEBUG_MODE, ( (FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stop-tb.png'))));
|
|
257
257
|
}
|
|
258
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2(
|
|
258
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2(2534, "Run or Debug...")), icon: debugRun, group: 'navigation', order: -1 });
|
|
259
259
|
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
260
260
|
submenu: MenuId.MenubarDebugMenu,
|
|
261
261
|
title: {
|
|
262
|
-
...( localize2(
|
|
263
|
-
mnemonicTitle: ( localize(
|
|
262
|
+
...( localize2(2535, "Run")),
|
|
263
|
+
mnemonicTitle: ( localize(2536, "&&Run"))
|
|
264
264
|
},
|
|
265
265
|
order: 6
|
|
266
266
|
});
|
|
@@ -268,7 +268,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
268
268
|
group: '1_debug',
|
|
269
269
|
command: {
|
|
270
270
|
id: DEBUG_START_COMMAND_ID,
|
|
271
|
-
title: ( localize(
|
|
271
|
+
title: ( localize(2537, "&&Start Debugging"))
|
|
272
272
|
},
|
|
273
273
|
order: 1,
|
|
274
274
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -277,7 +277,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
277
277
|
group: '1_debug',
|
|
278
278
|
command: {
|
|
279
279
|
id: DEBUG_RUN_COMMAND_ID,
|
|
280
|
-
title: ( localize(
|
|
280
|
+
title: ( localize(2538, "Run &&Without Debugging"))
|
|
281
281
|
},
|
|
282
282
|
order: 2,
|
|
283
283
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -286,7 +286,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
286
286
|
group: '1_debug',
|
|
287
287
|
command: {
|
|
288
288
|
id: STOP_ID,
|
|
289
|
-
title: ( localize(
|
|
289
|
+
title: ( localize(2539, "&&Stop Debugging")),
|
|
290
290
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
291
291
|
},
|
|
292
292
|
order: 3,
|
|
@@ -296,7 +296,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
296
296
|
group: '1_debug',
|
|
297
297
|
command: {
|
|
298
298
|
id: RESTART_SESSION_ID,
|
|
299
|
-
title: ( localize(
|
|
299
|
+
title: ( localize(2540, "&&Restart Debugging")),
|
|
300
300
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
301
301
|
},
|
|
302
302
|
order: 4,
|
|
@@ -306,7 +306,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
306
306
|
group: '2_configuration',
|
|
307
307
|
command: {
|
|
308
308
|
id: ADD_CONFIGURATION_ID,
|
|
309
|
-
title: ( localize(
|
|
309
|
+
title: ( localize(2541, "A&&dd Configuration..."))
|
|
310
310
|
},
|
|
311
311
|
order: 2,
|
|
312
312
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -315,7 +315,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
315
315
|
group: '3_step',
|
|
316
316
|
command: {
|
|
317
317
|
id: STEP_OVER_ID,
|
|
318
|
-
title: ( localize(
|
|
318
|
+
title: ( localize(2542, "Step &&Over")),
|
|
319
319
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
320
320
|
},
|
|
321
321
|
order: 1,
|
|
@@ -325,7 +325,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
325
325
|
group: '3_step',
|
|
326
326
|
command: {
|
|
327
327
|
id: STEP_INTO_ID,
|
|
328
|
-
title: ( localize(
|
|
328
|
+
title: ( localize(2543, "Step &&Into")),
|
|
329
329
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
330
330
|
},
|
|
331
331
|
order: 2,
|
|
@@ -335,7 +335,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
335
335
|
group: '3_step',
|
|
336
336
|
command: {
|
|
337
337
|
id: STEP_OUT_ID,
|
|
338
|
-
title: ( localize(
|
|
338
|
+
title: ( localize(2544, "Step O&&ut")),
|
|
339
339
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
340
340
|
},
|
|
341
341
|
order: 3,
|
|
@@ -345,7 +345,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
345
345
|
group: '3_step',
|
|
346
346
|
command: {
|
|
347
347
|
id: CONTINUE_ID,
|
|
348
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(2545, "&&Continue")),
|
|
349
349
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
350
350
|
},
|
|
351
351
|
order: 4,
|
|
@@ -355,14 +355,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
|
|
|
355
355
|
group: '1_breakpoints',
|
|
356
356
|
command: {
|
|
357
357
|
id: TOGGLE_INLINE_BREAKPOINT_ID,
|
|
358
|
-
title: ( localize(
|
|
358
|
+
title: ( localize(2546, "Inline Breakp&&oint"))
|
|
359
359
|
},
|
|
360
360
|
order: 2,
|
|
361
361
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
362
362
|
});
|
|
363
363
|
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
364
364
|
group: '4_new_breakpoint',
|
|
365
|
-
title: ( localize(
|
|
365
|
+
title: ( localize(2547, "&&New Breakpoint")),
|
|
366
366
|
submenu: MenuId.MenubarNewBreakpointMenu,
|
|
367
367
|
order: 2,
|
|
368
368
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -371,13 +371,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
371
371
|
group: 'z_install',
|
|
372
372
|
command: {
|
|
373
373
|
id: 'debug.installAdditionalDebuggers',
|
|
374
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(2548, "&&Install Additional Debuggers..."))
|
|
375
375
|
},
|
|
376
376
|
order: 1
|
|
377
377
|
});
|
|
378
378
|
const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).registerViewContainer({
|
|
379
379
|
id: DEBUG_PANEL_ID,
|
|
380
|
-
title: ( localize2(
|
|
380
|
+
title: ( localize2(2549, "Debug Console")),
|
|
381
381
|
icon: debugConsoleViewIcon,
|
|
382
382
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
383
383
|
ViewPaneContainer,
|
|
@@ -389,7 +389,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
|
|
|
389
389
|
}, 1 , { doNotRegisterOpenCommand: true });
|
|
390
390
|
( (Registry.as(Extensions$2.ViewsRegistry))).registerViews([{
|
|
391
391
|
id: REPL_VIEW_ID,
|
|
392
|
-
name: ( localize2(
|
|
392
|
+
name: ( localize2(2549, "Debug Console")),
|
|
393
393
|
containerIcon: debugConsoleViewIcon,
|
|
394
394
|
canToggleVisibility: false,
|
|
395
395
|
canMoveView: true,
|
|
@@ -397,17 +397,17 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
|
|
|
397
397
|
ctorDescriptor: ( (new SyncDescriptor(Repl))),
|
|
398
398
|
openCommandActionDescriptor: {
|
|
399
399
|
id: 'workbench.debug.action.toggleRepl',
|
|
400
|
-
mnemonicTitle: ( localize(
|
|
400
|
+
mnemonicTitle: ( localize(2550, "De&&bug Console")),
|
|
401
401
|
keybindings: { primary: 2048 | 1024 | 55 },
|
|
402
402
|
order: 2
|
|
403
403
|
}
|
|
404
404
|
}], VIEW_CONTAINER);
|
|
405
405
|
const viewContainer = ( (Registry.as(Extensions$2.ViewContainersRegistry))).registerViewContainer({
|
|
406
406
|
id: VIEWLET_ID,
|
|
407
|
-
title: ( localize2(
|
|
407
|
+
title: ( localize2(2551, "Run and Debug")),
|
|
408
408
|
openCommandActionDescriptor: {
|
|
409
409
|
id: VIEWLET_ID,
|
|
410
|
-
mnemonicTitle: ( localize(
|
|
410
|
+
mnemonicTitle: ( localize(2552, "&&Run")),
|
|
411
411
|
keybindings: { primary: 2048 | 1024 | 34 },
|
|
412
412
|
order: 3
|
|
413
413
|
},
|
|
@@ -417,56 +417,56 @@ const viewContainer = ( (Registry.as(Extensions$2.ViewContainersRegistry))).regi
|
|
|
417
417
|
order: 3,
|
|
418
418
|
}, 0 );
|
|
419
419
|
const viewsRegistry = ( (Registry.as(Extensions$2.ViewsRegistry)));
|
|
420
|
-
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2(
|
|
421
|
-
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2(
|
|
422
|
-
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2(
|
|
423
|
-
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2(
|
|
420
|
+
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2(2553, "Variables")), containerIcon: variablesViewIcon, ctorDescriptor: ( (new SyncDescriptor(VariablesView))), order: 10, weight: 40, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusVariablesView' }, when: ( (CONTEXT_DEBUG_UX.isEqualTo('default'))) }], viewContainer);
|
|
421
|
+
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2(2554, "Watch")), containerIcon: watchViewIcon, ctorDescriptor: ( (new SyncDescriptor(WatchExpressionsView))), order: 20, weight: 10, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusWatchView' }, when: ( (CONTEXT_DEBUG_UX.isEqualTo('default'))) }], viewContainer);
|
|
422
|
+
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2(2555, "Call Stack")), containerIcon: callStackViewIcon, ctorDescriptor: ( (new SyncDescriptor(CallStackView))), order: 30, weight: 30, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusCallStackView' }, when: ( (CONTEXT_DEBUG_UX.isEqualTo('default'))) }], viewContainer);
|
|
423
|
+
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2(2556, "Breakpoints")), containerIcon: breakpointsViewIcon, ctorDescriptor: ( (new SyncDescriptor(BreakpointsView))), order: 40, weight: 20, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusBreakpointsView' }, when: ( (ContextKeyExpr.or(
|
|
424
424
|
CONTEXT_BREAKPOINTS_EXIST,
|
|
425
425
|
(CONTEXT_DEBUG_UX.isEqualTo('default')),
|
|
426
426
|
CONTEXT_HAS_DEBUGGED
|
|
427
427
|
))) }], viewContainer);
|
|
428
428
|
viewsRegistry.registerViews([{ id: WelcomeView.ID, name: WelcomeView.LABEL, containerIcon: runViewIcon, ctorDescriptor: ( (new SyncDescriptor(WelcomeView))), order: 1, weight: 40, canToggleVisibility: true, when: ( (CONTEXT_DEBUG_UX.isEqualTo('simple'))) }], viewContainer);
|
|
429
|
-
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2(
|
|
429
|
+
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2(2557, "Loaded Scripts")), containerIcon: loadedScriptsViewIcon, ctorDescriptor: ( (new SyncDescriptor(LoadedScriptsView))), order: 35, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: true, when: ( (ContextKeyExpr.and(
|
|
430
430
|
CONTEXT_LOADED_SCRIPTS_SUPPORTED,
|
|
431
431
|
(CONTEXT_DEBUG_UX.isEqualTo('default'))
|
|
432
432
|
))) }], viewContainer);
|
|
433
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localize(
|
|
433
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localize(2558, "Disassembly"))), [( (new SyncDescriptor(DisassemblyViewInput)))]);
|
|
434
434
|
const configurationRegistry = ( (Registry.as(Extensions$3.Configuration)));
|
|
435
435
|
configurationRegistry.registerConfiguration({
|
|
436
436
|
id: 'debug',
|
|
437
437
|
order: 20,
|
|
438
|
-
title: ( localize(
|
|
438
|
+
title: ( localize(2559, "Debug")),
|
|
439
439
|
type: 'object',
|
|
440
440
|
properties: {
|
|
441
441
|
'debug.showVariableTypes': {
|
|
442
442
|
type: 'boolean',
|
|
443
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(2560, "Show variable type in variable pane during debug session")),
|
|
444
444
|
default: false
|
|
445
445
|
},
|
|
446
446
|
'debug.allowBreakpointsEverywhere': {
|
|
447
447
|
type: 'boolean',
|
|
448
|
-
description: ( localize(
|
|
448
|
+
description: ( localize(2561, "Allow setting breakpoints in any file.")),
|
|
449
449
|
default: false
|
|
450
450
|
},
|
|
451
451
|
'debug.gutterMiddleClickAction': {
|
|
452
452
|
type: 'string',
|
|
453
453
|
enum: ['logpoint', 'conditionalBreakpoint', 'triggeredBreakpoint', 'none'],
|
|
454
454
|
description: ( localize(
|
|
455
|
-
|
|
455
|
+
2562,
|
|
456
456
|
'Controls the action to perform when clicking the editor gutter with the middle mouse button.'
|
|
457
457
|
)),
|
|
458
458
|
enumDescriptions: [
|
|
459
|
-
( localize(
|
|
460
|
-
( localize(
|
|
461
|
-
( localize(
|
|
462
|
-
( localize(
|
|
459
|
+
( localize(2563, "Add Logpoint.")),
|
|
460
|
+
( localize(2564, "Add Conditional Breakpoint.")),
|
|
461
|
+
( localize(2565, "Add Triggered Breakpoint.")),
|
|
462
|
+
( localize(2566, "Don't perform any action.")),
|
|
463
463
|
],
|
|
464
464
|
default: 'logpoint',
|
|
465
465
|
},
|
|
466
466
|
'debug.openExplorerOnEnd': {
|
|
467
467
|
type: 'boolean',
|
|
468
468
|
description: ( localize(
|
|
469
|
-
|
|
469
|
+
2567,
|
|
470
470
|
"Automatically open the explorer view at the end of a debug session."
|
|
471
471
|
)),
|
|
472
472
|
default: false
|
|
@@ -474,7 +474,7 @@ configurationRegistry.registerConfiguration({
|
|
|
474
474
|
'debug.closeReadonlyTabsOnEnd': {
|
|
475
475
|
type: 'boolean',
|
|
476
476
|
description: ( localize(
|
|
477
|
-
|
|
477
|
+
2568,
|
|
478
478
|
"At the end of a debug session, all the read-only tabs associated with that session will be closed"
|
|
479
479
|
)),
|
|
480
480
|
default: false
|
|
@@ -482,12 +482,12 @@ configurationRegistry.registerConfiguration({
|
|
|
482
482
|
'debug.inlineValues': {
|
|
483
483
|
type: 'string',
|
|
484
484
|
'enum': ['on', 'off', 'auto'],
|
|
485
|
-
description: ( localize(
|
|
485
|
+
description: ( localize(2569, "Show variable values inline in editor while debugging.")),
|
|
486
486
|
'enumDescriptions': [
|
|
487
|
-
( localize(
|
|
488
|
-
( localize(
|
|
487
|
+
( localize(2570, "Always show variable values inline in editor while debugging.")),
|
|
488
|
+
( localize(2571, "Never show variable values inline in editor while debugging.")),
|
|
489
489
|
( localize(
|
|
490
|
-
|
|
490
|
+
2572,
|
|
491
491
|
"Show variable values inline in editor while debugging when the language supports inline value locations."
|
|
492
492
|
)),
|
|
493
493
|
],
|
|
@@ -496,32 +496,32 @@ configurationRegistry.registerConfiguration({
|
|
|
496
496
|
'debug.toolBarLocation': {
|
|
497
497
|
enum: ['floating', 'docked', 'commandCenter', 'hidden'],
|
|
498
498
|
markdownDescription: ( localize(
|
|
499
|
-
|
|
499
|
+
2573,
|
|
500
500
|
"Controls the location of the debug toolbar. Either `floating` in all views, `docked` in the debug view, `commandCenter` (requires {0}), or `hidden`.",
|
|
501
501
|
'`#window.commandCenter#`'
|
|
502
502
|
)),
|
|
503
503
|
default: 'floating',
|
|
504
504
|
markdownEnumDescriptions: [
|
|
505
|
-
( localize(
|
|
506
|
-
( localize(
|
|
507
|
-
( localize(
|
|
508
|
-
( localize(
|
|
505
|
+
( localize(2574, "Show debug toolbar in all views.")),
|
|
506
|
+
( localize(2575, "Show debug toolbar only in debug views.")),
|
|
507
|
+
( localize(2576, "`(Experimental)` Show debug toolbar in the command center.")),
|
|
508
|
+
( localize(2577, "Do not show debug toolbar.")),
|
|
509
509
|
]
|
|
510
510
|
},
|
|
511
511
|
'debug.showInStatusBar': {
|
|
512
512
|
enum: ['never', 'always', 'onFirstSessionStart'],
|
|
513
|
-
enumDescriptions: [( localize(
|
|
514
|
-
|
|
513
|
+
enumDescriptions: [( localize(2578, "Never show debug in Status bar")), ( localize(2579, "Always show debug in Status bar")), ( localize(
|
|
514
|
+
2580,
|
|
515
515
|
"Show debug in Status bar only after debug was started for the first time"
|
|
516
516
|
))],
|
|
517
|
-
description: ( localize(
|
|
517
|
+
description: ( localize(2581, "Controls when the debug Status bar should be visible.")),
|
|
518
518
|
default: 'onFirstSessionStart'
|
|
519
519
|
},
|
|
520
520
|
'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
521
521
|
'debug.console.closeOnEnd': {
|
|
522
522
|
type: 'boolean',
|
|
523
523
|
description: ( localize(
|
|
524
|
-
|
|
524
|
+
2582,
|
|
525
525
|
"Controls if the Debug Console should be automatically closed when the debug session ends."
|
|
526
526
|
)),
|
|
527
527
|
default: false
|
|
@@ -529,7 +529,7 @@ configurationRegistry.registerConfiguration({
|
|
|
529
529
|
'debug.terminal.clearBeforeReusing': {
|
|
530
530
|
type: 'boolean',
|
|
531
531
|
description: ( localize(
|
|
532
|
-
|
|
532
|
+
2583,
|
|
533
533
|
"Before starting a new debug session in an integrated or external terminal, clear the terminal."
|
|
534
534
|
)),
|
|
535
535
|
default: false
|
|
@@ -537,43 +537,43 @@ configurationRegistry.registerConfiguration({
|
|
|
537
537
|
'debug.openDebug': {
|
|
538
538
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
|
|
539
539
|
default: 'openOnDebugBreak',
|
|
540
|
-
description: ( localize(
|
|
540
|
+
description: ( localize(2584, "Controls when the debug view should open."))
|
|
541
541
|
},
|
|
542
542
|
'debug.showSubSessionsInToolBar': {
|
|
543
543
|
type: 'boolean',
|
|
544
544
|
description: ( localize(
|
|
545
|
-
|
|
545
|
+
2585,
|
|
546
546
|
"Controls whether the debug sub-sessions are shown in the debug tool bar. When this setting is false the stop command on a sub-session will also stop the parent session."
|
|
547
547
|
)),
|
|
548
548
|
default: false
|
|
549
549
|
},
|
|
550
550
|
'debug.console.fontSize': {
|
|
551
551
|
type: 'number',
|
|
552
|
-
description: ( localize(
|
|
552
|
+
description: ( localize(2586, "Controls the font size in pixels in the Debug Console.")),
|
|
553
553
|
default: isMacintosh ? 12 : 14,
|
|
554
554
|
},
|
|
555
555
|
'debug.console.fontFamily': {
|
|
556
556
|
type: 'string',
|
|
557
|
-
description: ( localize(
|
|
557
|
+
description: ( localize(2587, "Controls the font family in the Debug Console.")),
|
|
558
558
|
default: 'default'
|
|
559
559
|
},
|
|
560
560
|
'debug.console.lineHeight': {
|
|
561
561
|
type: 'number',
|
|
562
562
|
description: ( localize(
|
|
563
|
-
|
|
563
|
+
2588,
|
|
564
564
|
"Controls the line height in pixels in the Debug Console. Use 0 to compute the line height from the font size."
|
|
565
565
|
)),
|
|
566
566
|
default: 0
|
|
567
567
|
},
|
|
568
568
|
'debug.console.wordWrap': {
|
|
569
569
|
type: 'boolean',
|
|
570
|
-
description: ( localize(
|
|
570
|
+
description: ( localize(2589, "Controls if the lines should wrap in the Debug Console.")),
|
|
571
571
|
default: true
|
|
572
572
|
},
|
|
573
573
|
'debug.console.historySuggestions': {
|
|
574
574
|
type: 'boolean',
|
|
575
575
|
description: ( localize(
|
|
576
|
-
|
|
576
|
+
2590,
|
|
577
577
|
"Controls if the Debug Console should suggest previously typed input."
|
|
578
578
|
)),
|
|
579
579
|
default: true
|
|
@@ -581,7 +581,7 @@ configurationRegistry.registerConfiguration({
|
|
|
581
581
|
'debug.console.collapseIdenticalLines': {
|
|
582
582
|
type: 'boolean',
|
|
583
583
|
description: ( localize(
|
|
584
|
-
|
|
584
|
+
2591,
|
|
585
585
|
"Controls if the Debug Console should collapse identical lines and show a number of occurrences with a badge."
|
|
586
586
|
)),
|
|
587
587
|
default: true
|
|
@@ -589,7 +589,7 @@ configurationRegistry.registerConfiguration({
|
|
|
589
589
|
'debug.console.acceptSuggestionOnEnter': {
|
|
590
590
|
enum: ['off', 'on'],
|
|
591
591
|
description: ( localize(
|
|
592
|
-
|
|
592
|
+
2592,
|
|
593
593
|
"Controls whether suggestions should be accepted on Enter in the Debug Console. Enter is also used to evaluate whatever is typed in the Debug Console."
|
|
594
594
|
)),
|
|
595
595
|
default: 'off'
|
|
@@ -597,7 +597,7 @@ configurationRegistry.registerConfiguration({
|
|
|
597
597
|
'launch': {
|
|
598
598
|
type: 'object',
|
|
599
599
|
description: ( localize(
|
|
600
|
-
|
|
600
|
+
2593,
|
|
601
601
|
"Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."
|
|
602
602
|
)),
|
|
603
603
|
default: { configurations: [], compounds: [] },
|
|
@@ -607,7 +607,7 @@ configurationRegistry.registerConfiguration({
|
|
|
607
607
|
'debug.focusWindowOnBreak': {
|
|
608
608
|
type: 'boolean',
|
|
609
609
|
description: ( localize(
|
|
610
|
-
|
|
610
|
+
2594,
|
|
611
611
|
"Controls whether the workbench window should be focused when the debugger breaks."
|
|
612
612
|
)),
|
|
613
613
|
default: true
|
|
@@ -615,16 +615,16 @@ configurationRegistry.registerConfiguration({
|
|
|
615
615
|
'debug.focusEditorOnBreak': {
|
|
616
616
|
type: 'boolean',
|
|
617
617
|
description: ( localize(
|
|
618
|
-
|
|
618
|
+
2595,
|
|
619
619
|
"Controls whether the editor should be focused when the debugger breaks."
|
|
620
620
|
)),
|
|
621
621
|
default: true
|
|
622
622
|
},
|
|
623
623
|
'debug.onTaskErrors': {
|
|
624
624
|
enum: ['debugAnyway', 'showErrors', 'prompt', 'abort'],
|
|
625
|
-
enumDescriptions: [( localize(
|
|
625
|
+
enumDescriptions: [( localize(2596, "Ignore task errors and start debugging.")), ( localize(2597, "Show the Problems view and do not start debugging.")), ( localize(2598, "Prompt user.")), ( localize(2599, "Cancel debugging."))],
|
|
626
626
|
description: ( localize(
|
|
627
|
-
|
|
627
|
+
2600,
|
|
628
628
|
"Controls what to do when errors are encountered after running a preLaunchTask."
|
|
629
629
|
)),
|
|
630
630
|
default: 'prompt'
|
|
@@ -632,7 +632,7 @@ configurationRegistry.registerConfiguration({
|
|
|
632
632
|
'debug.showBreakpointsInOverviewRuler': {
|
|
633
633
|
type: 'boolean',
|
|
634
634
|
description: ( localize(
|
|
635
|
-
|
|
635
|
+
2601,
|
|
636
636
|
"Controls whether breakpoints should be shown in the overview ruler."
|
|
637
637
|
)),
|
|
638
638
|
default: false
|
|
@@ -640,45 +640,45 @@ configurationRegistry.registerConfiguration({
|
|
|
640
640
|
'debug.showInlineBreakpointCandidates': {
|
|
641
641
|
type: 'boolean',
|
|
642
642
|
description: ( localize(
|
|
643
|
-
|
|
643
|
+
2602,
|
|
644
644
|
"Controls whether inline breakpoints candidate decorations should be shown in the editor while debugging."
|
|
645
645
|
)),
|
|
646
646
|
default: true
|
|
647
647
|
},
|
|
648
648
|
'debug.saveBeforeStart': {
|
|
649
|
-
description: ( localize(
|
|
649
|
+
description: ( localize(2603, "Controls what editors to save before starting a debug session.")),
|
|
650
650
|
enum: ['allEditorsInActiveGroup', 'nonUntitledEditorsInActiveGroup', 'none'],
|
|
651
651
|
enumDescriptions: [
|
|
652
652
|
( localize(
|
|
653
|
-
|
|
653
|
+
2604,
|
|
654
654
|
"Save all editors in the active group before starting a debug session."
|
|
655
655
|
)),
|
|
656
656
|
( localize(
|
|
657
|
-
|
|
657
|
+
2605,
|
|
658
658
|
"Save all editors in the active group except untitled ones before starting a debug session."
|
|
659
659
|
)),
|
|
660
|
-
( localize(
|
|
660
|
+
( localize(2606, "Don't save any editors before starting a debug session.")),
|
|
661
661
|
],
|
|
662
662
|
default: 'allEditorsInActiveGroup',
|
|
663
663
|
scope: 5
|
|
664
664
|
},
|
|
665
665
|
'debug.confirmOnExit': {
|
|
666
666
|
description: ( localize(
|
|
667
|
-
|
|
667
|
+
2607,
|
|
668
668
|
"Controls whether to confirm when the window closes if there are active debug sessions."
|
|
669
669
|
)),
|
|
670
670
|
type: 'string',
|
|
671
671
|
enum: ['never', 'always'],
|
|
672
672
|
enumDescriptions: [
|
|
673
|
-
( localize(
|
|
674
|
-
( localize(
|
|
673
|
+
( localize(2608, "Never confirm.")),
|
|
674
|
+
( localize(2609, "Always confirm if there are debug sessions.")),
|
|
675
675
|
],
|
|
676
676
|
default: 'never'
|
|
677
677
|
},
|
|
678
678
|
'debug.disassemblyView.showSourceCode': {
|
|
679
679
|
type: 'boolean',
|
|
680
680
|
default: true,
|
|
681
|
-
description: ( localize(
|
|
681
|
+
description: ( localize(2610, "Show Source Code in Disassembly View."))
|
|
682
682
|
},
|
|
683
683
|
'debug.autoExpandLazyVariables': {
|
|
684
684
|
type: 'string',
|
|
@@ -686,26 +686,26 @@ configurationRegistry.registerConfiguration({
|
|
|
686
686
|
default: 'auto',
|
|
687
687
|
enumDescriptions: [
|
|
688
688
|
( localize(
|
|
689
|
-
|
|
689
|
+
2611,
|
|
690
690
|
"When in screen reader optimized mode, automatically expand lazy variables."
|
|
691
691
|
)),
|
|
692
|
-
( localize(
|
|
693
|
-
( localize(
|
|
692
|
+
( localize(2612, "Always automatically expand lazy variables.")),
|
|
693
|
+
( localize(2613, "Never automatically expand lazy variables."))
|
|
694
694
|
],
|
|
695
695
|
description: ( localize(
|
|
696
|
-
|
|
696
|
+
2614,
|
|
697
697
|
"Controls whether variables that are lazily resolved, such as getters, are automatically resolved and expanded by the debugger."
|
|
698
698
|
))
|
|
699
699
|
},
|
|
700
700
|
'debug.enableStatusBarColor': {
|
|
701
701
|
type: 'boolean',
|
|
702
|
-
description: ( localize(
|
|
702
|
+
description: ( localize(2615, "Color of the Status bar when debugger is active.")),
|
|
703
703
|
default: true
|
|
704
704
|
},
|
|
705
705
|
'debug.hideLauncherWhileDebugging': {
|
|
706
706
|
type: 'boolean',
|
|
707
707
|
markdownDescription: ( localize(
|
|
708
|
-
|
|
708
|
+
2616,
|
|
709
709
|
"Hide 'Start Debugging' control in title bar of 'Run and Debug' view while debugging is active. Only relevant when {0} is not `docked`.",
|
|
710
710
|
'`#debug.toolBarLocation#`'
|
|
711
711
|
)),
|
|
@@ -714,7 +714,7 @@ configurationRegistry.registerConfiguration({
|
|
|
714
714
|
'debug.hideSlowPreLaunchWarning': {
|
|
715
715
|
type: 'boolean',
|
|
716
716
|
markdownDescription: ( localize(
|
|
717
|
-
|
|
717
|
+
2617,
|
|
718
718
|
"Hide the warning shown when a `preLaunchTask` has been running for a while."
|
|
719
719
|
)),
|
|
720
720
|
default: false
|
|
@@ -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(5990, "Debug: Toggle Breakpoint")),
|
|
33
|
+
mnemonicTitle: ( localize(5991, "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(5992, "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(5993, "&&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(5994, "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(5995, "&&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(5996, "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(5997, "&&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(5998, "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(5999, "&&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(6000, "Open Disassembly View")),
|
|
209
|
+
mnemonicTitle: ( localize(6001, "&&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(6002, "Toggle Source Code in Disassembly View")),
|
|
261
|
+
mnemonicTitle: ( localize(6003, "&&ToggleSource")),
|
|
262
262
|
},
|
|
263
263
|
metadata: {
|
|
264
|
-
description: ( localize2(
|
|
264
|
+
description: ( localize2(6004, '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(6005, "Run to Cursor")); }
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: RunToCursorAction.ID,
|
|
@@ -314,7 +314,7 @@ class RunToCursorAction extends EditorAction {
|
|
|
314
314
|
}
|
|
315
315
|
class SelectionToReplAction extends EditorAction {
|
|
316
316
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
317
|
-
static { this.LABEL = ( localize2(
|
|
317
|
+
static { this.LABEL = ( localize2(6006, "Evaluate in Debug Console")); }
|
|
318
318
|
constructor() {
|
|
319
319
|
super({
|
|
320
320
|
id: SelectionToReplAction.ID,
|
|
@@ -353,7 +353,7 @@ class SelectionToReplAction extends EditorAction {
|
|
|
353
353
|
}
|
|
354
354
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
355
355
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
356
|
-
static { this.LABEL = ( localize2(
|
|
356
|
+
static { this.LABEL = ( localize2(6007, "Add to Watch")); }
|
|
357
357
|
constructor() {
|
|
358
358
|
super({
|
|
359
359
|
id: SelectionToWatchExpressionsAction.ID,
|
|
@@ -402,7 +402,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
402
402
|
constructor() {
|
|
403
403
|
super({
|
|
404
404
|
id: 'editor.debug.action.showDebugHover',
|
|
405
|
-
label: ( localize(
|
|
405
|
+
label: ( localize(6008, "Debug: Show Hover")),
|
|
406
406
|
alias: 'Debug: Show Hover',
|
|
407
407
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
408
408
|
kbOpts: {
|
|
@@ -420,10 +420,10 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
420
420
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const NO_TARGETS_MESSAGE = ( localize(
|
|
423
|
+
const NO_TARGETS_MESSAGE = ( localize(6009, "Step targets are not available here"));
|
|
424
424
|
class StepIntoTargetsAction extends EditorAction {
|
|
425
425
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
426
|
-
static { this.LABEL = ( localize(
|
|
426
|
+
static { this.LABEL = ( localize(6010, "Step Into Target")); }
|
|
427
427
|
constructor() {
|
|
428
428
|
super({
|
|
429
429
|
id: StepIntoTargetsAction.ID,
|
|
@@ -535,7 +535,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
535
535
|
constructor() {
|
|
536
536
|
super(true, {
|
|
537
537
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
538
|
-
label: ( localize(
|
|
538
|
+
label: ( localize(6011, "Debug: Go to Next Breakpoint")),
|
|
539
539
|
alias: 'Debug: Go to Next Breakpoint',
|
|
540
540
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
541
541
|
});
|
|
@@ -545,7 +545,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
545
545
|
constructor() {
|
|
546
546
|
super(false, {
|
|
547
547
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
548
|
-
label: ( localize(
|
|
548
|
+
label: ( localize(6012, "Debug: Go to Previous Breakpoint")),
|
|
549
549
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
550
550
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
551
551
|
});
|
|
@@ -555,7 +555,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
555
555
|
constructor() {
|
|
556
556
|
super({
|
|
557
557
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
558
|
-
label: ( localize(
|
|
558
|
+
label: ( localize(6013, "Close Exception Widget")),
|
|
559
559
|
alias: 'Close Exception Widget',
|
|
560
560
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
561
561
|
kbOpts: {
|
|
@@ -60,8 +60,8 @@ registerColor('editor.inlineValuesForeground', {
|
|
|
60
60
|
light: '#00000080',
|
|
61
61
|
hcDark: '#ffffff80',
|
|
62
62
|
hcLight: '#00000080'
|
|
63
|
-
}, ( localize(
|
|
64
|
-
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(
|
|
63
|
+
}, ( localize(5988, "Color for the debug inline value text.")));
|
|
64
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(5989, "Color for the debug inline value background.")));
|
|
65
65
|
class InlineSegment {
|
|
66
66
|
constructor(column, text) {
|
|
67
67
|
this.column = column;
|
|
@@ -133,7 +133,7 @@ let DebugService = class DebugService {
|
|
|
133
133
|
if (numberOfSessions > 0) {
|
|
134
134
|
const viewContainer = this.viewDescriptorService.getViewContainerByViewId(CALLSTACK_VIEW_ID);
|
|
135
135
|
if (viewContainer) {
|
|
136
|
-
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(
|
|
136
|
+
this.activity = this.activityService.showViewContainerActivity(viewContainer.id, { badge: ( (new NumberBadge(numberOfSessions, n => n === 1 ? ( localize(2492, "1 active session")) : ( localize(2493, "{0} active sessions", n))))) });
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}));
|
|
@@ -155,7 +155,7 @@ let DebugService = class DebugService {
|
|
|
155
155
|
}
|
|
156
156
|
}));
|
|
157
157
|
this.disposables.add(extensionService.onWillStop(evt => {
|
|
158
|
-
evt.veto(this.model.getSessions().length > 0, ( localize(
|
|
158
|
+
evt.veto(this.model.getSessions().length > 0, ( localize(2494, 'A debug session is still running.')));
|
|
159
159
|
}));
|
|
160
160
|
this.initContextKeys(contextKeyService);
|
|
161
161
|
}
|
|
@@ -264,8 +264,8 @@ let DebugService = class DebugService {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
async startDebugging(launch, configOrName, options, saveBeforeStart = !options?.parentSession) {
|
|
267
|
-
const message = options && options.noDebug ? ( localize(
|
|
268
|
-
|
|
267
|
+
const message = options && options.noDebug ? ( localize(2495, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
268
|
+
2496,
|
|
269
269
|
"Debugging executes build tasks and program code from your workspace."
|
|
270
270
|
));
|
|
271
271
|
const trust = await this.workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
@@ -296,7 +296,7 @@ let DebugService = class DebugService {
|
|
|
296
296
|
if (compound) {
|
|
297
297
|
if (!compound.configurations) {
|
|
298
298
|
throw ( (new Error(localize(
|
|
299
|
-
|
|
299
|
+
2497,
|
|
300
300
|
"Compound must have \"configurations\" attribute set in order to start multiple configurations."
|
|
301
301
|
))));
|
|
302
302
|
}
|
|
@@ -326,9 +326,9 @@ let DebugService = class DebugService {
|
|
|
326
326
|
}
|
|
327
327
|
else {
|
|
328
328
|
throw ( (new Error(
|
|
329
|
-
launchesContainingName.length === 0 ? localize(
|
|
329
|
+
launchesContainingName.length === 0 ? localize(2498, "Could not find launch configuration '{0}' in the workspace.", name)
|
|
330
330
|
: localize(
|
|
331
|
-
|
|
331
|
+
2499,
|
|
332
332
|
"There are multiple launch configurations '{0}' in the workspace. Use folder name to qualify the configuration.",
|
|
333
333
|
name
|
|
334
334
|
)
|
|
@@ -342,7 +342,7 @@ let DebugService = class DebugService {
|
|
|
342
342
|
}
|
|
343
343
|
else {
|
|
344
344
|
throw ( (new Error(localize(
|
|
345
|
-
|
|
345
|
+
2500,
|
|
346
346
|
"Can not find folder with name '{0}' for configuration '{1}' in compound '{2}'.",
|
|
347
347
|
configData.folder,
|
|
348
348
|
configData.name,
|
|
@@ -358,11 +358,11 @@ let DebugService = class DebugService {
|
|
|
358
358
|
}
|
|
359
359
|
if (configOrName && !config) {
|
|
360
360
|
const message = !!launch ? ( localize(
|
|
361
|
-
|
|
361
|
+
2501,
|
|
362
362
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
363
363
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
364
364
|
)) :
|
|
365
|
-
( localize(
|
|
365
|
+
( localize(2502, "'launch.json' does not exist for passed workspace folder."));
|
|
366
366
|
throw ( (new Error(message)));
|
|
367
367
|
}
|
|
368
368
|
const result = await this.createSession(launch, config, options);
|
|
@@ -435,23 +435,23 @@ let DebugService = class DebugService {
|
|
|
435
435
|
let message;
|
|
436
436
|
if (configByProviders.request !== 'attach' && configByProviders.request !== 'launch') {
|
|
437
437
|
message = configByProviders.request ? ( localize(
|
|
438
|
-
|
|
438
|
+
2503,
|
|
439
439
|
"Attribute '{0}' has an unsupported value '{1}' in the chosen debug configuration.",
|
|
440
440
|
'request',
|
|
441
441
|
configByProviders.request
|
|
442
442
|
))
|
|
443
443
|
: ( localize(
|
|
444
|
-
|
|
444
|
+
2504,
|
|
445
445
|
"Attribute '{0}' is missing from the chosen debug configuration.",
|
|
446
446
|
'request'
|
|
447
447
|
));
|
|
448
448
|
}
|
|
449
449
|
else {
|
|
450
|
-
message = resolvedConfig.type ? ( localize(
|
|
451
|
-
( localize(
|
|
450
|
+
message = resolvedConfig.type ? ( localize(2505, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
451
|
+
( localize(2506, "Missing property 'type' for the chosen launch configuration."));
|
|
452
452
|
}
|
|
453
453
|
const actionList = [];
|
|
454
|
-
actionList.push(( (new Action('installAdditionalDebuggers', ( localize(
|
|
454
|
+
actionList.push(( (new Action('installAdditionalDebuggers', ( localize(2507, "Install {0} Extension", resolvedConfig.type)), undefined, true, async () => this.commandService.executeCommand('debug.installAdditionalDebuggers', resolvedConfig?.type)))));
|
|
455
455
|
await this.showError(message, actionList);
|
|
456
456
|
return false;
|
|
457
457
|
}
|
|
@@ -472,7 +472,7 @@ let DebugService = class DebugService {
|
|
|
472
472
|
}
|
|
473
473
|
else if (this.contextService.getWorkbenchState() === 1 ) {
|
|
474
474
|
await this.showError(( localize(
|
|
475
|
-
|
|
475
|
+
2508,
|
|
476
476
|
"The active file can not be debugged. Make sure it is saved and that you have a debug extension installed for that file type."
|
|
477
477
|
)));
|
|
478
478
|
}
|
|
@@ -491,7 +491,7 @@ let DebugService = class DebugService {
|
|
|
491
491
|
const session = this.instantiationService.createInstance(DebugSession, sessionId, configuration, root, this.model, options);
|
|
492
492
|
if (options?.startedByUser && ( (this.model.getSessions().some(s => s.getLabel() === session.getLabel()))) && configuration.resolved.suppressMultipleSessionWarning !== true) {
|
|
493
493
|
const result = await this.dialogService.confirm({ message: ( localize(
|
|
494
|
-
|
|
494
|
+
2509,
|
|
495
495
|
"'{0}' is already running. Do you want to start another instance?",
|
|
496
496
|
session.getLabel()
|
|
497
497
|
)) });
|
|
@@ -582,7 +582,7 @@ let DebugService = class DebugService {
|
|
|
582
582
|
if (adapterExitEvent) {
|
|
583
583
|
if (adapterExitEvent.error) {
|
|
584
584
|
this.notificationService.error(( localize(
|
|
585
|
-
|
|
585
|
+
2510,
|
|
586
586
|
"Debug adapter process has terminated unexpectedly ({0})",
|
|
587
587
|
adapterExitEvent.error.message || ( (adapterExitEvent.error.toString()))
|
|
588
588
|
)));
|
|
@@ -828,7 +828,7 @@ let DebugService = class DebugService {
|
|
|
828
828
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
829
829
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
830
830
|
alert(( localize(
|
|
831
|
-
|
|
831
|
+
2511,
|
|
832
832
|
"{0}, debugging paused {1}, {2}:{3}",
|
|
833
833
|
lineContent,
|
|
834
834
|
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
@@ -901,7 +901,7 @@ let DebugService = class DebugService {
|
|
|
901
901
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
902
902
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
903
903
|
if (ariaAnnounce) {
|
|
904
|
-
breakpoints.forEach(bp => status(( localize(
|
|
904
|
+
breakpoints.forEach(bp => status(( localize(2512, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
|
|
905
905
|
}
|
|
906
906
|
this.debugStorage.storeBreakpoints(this.model);
|
|
907
907
|
await this.sendBreakpoints(uri);
|
|
@@ -923,7 +923,7 @@ let DebugService = class DebugService {
|
|
|
923
923
|
const breakpoints = this.model.getBreakpoints();
|
|
924
924
|
const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
|
|
925
925
|
toRemove.forEach(bp => status(( localize(
|
|
926
|
-
|
|
926
|
+
2513,
|
|
927
927
|
"Removed breakpoint, line {0}, file {1}",
|
|
928
928
|
bp.lineNumber,
|
|
929
929
|
bp.uri.fsPath
|