@codingame/monaco-vscode-debug-service-override 10.0.1 → 10.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 +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +107 -107
- 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/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-debug-service-override",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.0
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -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(2513, "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(2514, "Type the name of a launch configuration to run.")),
|
|
75
75
|
helpEntries: [{
|
|
76
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(2515, "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(2516, "Type the name of a debug console to open.")),
|
|
86
|
+
helpEntries: [{ description: ( localize(2517, "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(2518, "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(2519, "Focus on Debug Console View")));
|
|
128
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2520, "Jump to Cursor")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
129
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2521, "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(2522, "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(2518, "Terminate Thread")), 10, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), undefined, 'termination');
|
|
192
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(2523, "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(2524, "Copy Call Stack")), 20, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame'))), undefined, '3_modification');
|
|
197
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(2525, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
198
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(2526, "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(2527, "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(2528, "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(2529, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
208
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(2525, "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(2527, "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(2528, "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(2529, "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(2530, "Edit Expression")), 20, ( (CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))), undefined, '3_modification');
|
|
217
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(2526, "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(2531, "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(2525, "View Binary Data")), 10, CONTEXT_CAN_VIEW_MEMORY, undefined, 'inline', debugInspectMemory);
|
|
229
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(2532, "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(2533, "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(2534, "Run")),
|
|
263
|
+
mnemonicTitle: ( localize(2535, "&&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(2536, "&&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(2537, "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(2538, "&&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(2539, "&&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(2540, "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(2541, "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(2542, "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(2543, "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(2544, "&&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(2545, "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(2546, "&&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(2547, "&&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(2548, "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(2548, "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(2549, "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(2550, "Run and Debug")),
|
|
408
408
|
openCommandActionDescriptor: {
|
|
409
409
|
id: VIEWLET_ID,
|
|
410
|
-
mnemonicTitle: ( localize(
|
|
410
|
+
mnemonicTitle: ( localize(2551, "&&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(2552, "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(2553, "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(2554, "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(2555, "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(2556, "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(2557, "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(2558, "Debug")),
|
|
439
439
|
type: 'object',
|
|
440
440
|
properties: {
|
|
441
441
|
'debug.showVariableTypes': {
|
|
442
442
|
type: 'boolean',
|
|
443
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(2559, "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(2560, "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
|
+
2561,
|
|
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(2562, "Add Logpoint.")),
|
|
460
|
+
( localize(2563, "Add Conditional Breakpoint.")),
|
|
461
|
+
( localize(2564, "Add Triggered Breakpoint.")),
|
|
462
|
+
( localize(2565, "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
|
+
2566,
|
|
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
|
+
2567,
|
|
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(2568, "Show variable values inline in editor while debugging.")),
|
|
486
486
|
'enumDescriptions': [
|
|
487
|
-
( localize(
|
|
488
|
-
( localize(
|
|
487
|
+
( localize(2569, "Always show variable values inline in editor while debugging.")),
|
|
488
|
+
( localize(2570, "Never show variable values inline in editor while debugging.")),
|
|
489
489
|
( localize(
|
|
490
|
-
|
|
490
|
+
2571,
|
|
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
|
+
2572,
|
|
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(2573, "Show debug toolbar in all views.")),
|
|
506
|
+
( localize(2574, "Show debug toolbar only in debug views.")),
|
|
507
|
+
( localize(2575, "`(Experimental)` Show debug toolbar in the command center.")),
|
|
508
|
+
( localize(2576, "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(2577, "Never show debug in Status bar")), ( localize(2578, "Always show debug in Status bar")), ( localize(
|
|
514
|
+
2579,
|
|
515
515
|
"Show debug in Status bar only after debug was started for the first time"
|
|
516
516
|
))],
|
|
517
|
-
description: ( localize(
|
|
517
|
+
description: ( localize(2580, "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
|
+
2581,
|
|
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
|
+
2582,
|
|
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(2583, "Controls when the debug view should open."))
|
|
541
541
|
},
|
|
542
542
|
'debug.showSubSessionsInToolBar': {
|
|
543
543
|
type: 'boolean',
|
|
544
544
|
description: ( localize(
|
|
545
|
-
|
|
545
|
+
2584,
|
|
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(2585, "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(2586, "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
|
+
2587,
|
|
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(2588, "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
|
+
2589,
|
|
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
|
+
2590,
|
|
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
|
+
2591,
|
|
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
|
+
2592,
|
|
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
|
+
2593,
|
|
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
|
+
2594,
|
|
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(2595, "Ignore task errors and start debugging.")), ( localize(2596, "Show the Problems view and do not start debugging.")), ( localize(2597, "Prompt user.")), ( localize(2598, "Cancel debugging."))],
|
|
626
626
|
description: ( localize(
|
|
627
|
-
|
|
627
|
+
2599,
|
|
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
|
+
2600,
|
|
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
|
+
2601,
|
|
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(2602, "Controls what editors to save before starting a debug session.")),
|
|
650
650
|
enum: ['allEditorsInActiveGroup', 'nonUntitledEditorsInActiveGroup', 'none'],
|
|
651
651
|
enumDescriptions: [
|
|
652
652
|
( localize(
|
|
653
|
-
|
|
653
|
+
2603,
|
|
654
654
|
"Save all editors in the active group before starting a debug session."
|
|
655
655
|
)),
|
|
656
656
|
( localize(
|
|
657
|
-
|
|
657
|
+
2604,
|
|
658
658
|
"Save all editors in the active group except untitled ones before starting a debug session."
|
|
659
659
|
)),
|
|
660
|
-
( localize(
|
|
660
|
+
( localize(2605, "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
|
+
2606,
|
|
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(2607, "Never confirm.")),
|
|
674
|
+
( localize(2608, "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(2609, "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
|
+
2610,
|
|
690
690
|
"When in screen reader optimized mode, automatically expand lazy variables."
|
|
691
691
|
)),
|
|
692
|
-
( localize(
|
|
693
|
-
( localize(
|
|
692
|
+
( localize(2611, "Always automatically expand lazy variables.")),
|
|
693
|
+
( localize(2612, "Never automatically expand lazy variables."))
|
|
694
694
|
],
|
|
695
695
|
description: ( localize(
|
|
696
|
-
|
|
696
|
+
2613,
|
|
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(2614, "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
|
+
2615,
|
|
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
|
)),
|
|
@@ -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(6059, "Color for the debug inline value text.")));
|
|
64
|
+
registerColor('editor.inlineValuesBackground', '#ffc80033', ( localize(6060, "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(2491, "1 active session")) : ( localize(2492, "{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(2493, '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(2494, "Running executes build tasks and program code from your workspace.")) : ( localize(
|
|
268
|
+
2495,
|
|
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
|
+
2496,
|
|
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(2497, "Could not find launch configuration '{0}' in the workspace.", name)
|
|
330
330
|
: localize(
|
|
331
|
-
|
|
331
|
+
2498,
|
|
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
|
+
2499,
|
|
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
|
+
2500,
|
|
362
362
|
"Configuration '{0}' is missing in 'launch.json'.",
|
|
363
363
|
typeof configOrName === 'string' ? configOrName : configOrName.name
|
|
364
364
|
)) :
|
|
365
|
-
( localize(
|
|
365
|
+
( localize(2501, "'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
|
+
2502,
|
|
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
|
+
2503,
|
|
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(2504, "Configured debug type '{0}' is not supported.", resolvedConfig.type)) :
|
|
451
|
+
( localize(2505, "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(2506, "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
|
+
2507,
|
|
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
|
+
2508,
|
|
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
|
+
2509,
|
|
586
586
|
"Debug adapter process has terminated unexpectedly ({0})",
|
|
587
587
|
adapterExitEvent.error.message || ( (adapterExitEvent.error.toString()))
|
|
588
588
|
)));
|
|
@@ -825,7 +825,7 @@ let DebugService = class DebugService {
|
|
|
825
825
|
if (lineNumber >= 1 && lineNumber <= model.getLineCount()) {
|
|
826
826
|
const lineContent = control.getModel().getLineContent(lineNumber);
|
|
827
827
|
alert(( localize(
|
|
828
|
-
|
|
828
|
+
2510,
|
|
829
829
|
"{0}, debugging paused {1}, {2}:{3}",
|
|
830
830
|
lineContent,
|
|
831
831
|
thread && thread.stoppedDetails ? `, reason ${thread.stoppedDetails.reason}` : '',
|
|
@@ -898,7 +898,7 @@ let DebugService = class DebugService {
|
|
|
898
898
|
async addBreakpoints(uri, rawBreakpoints, ariaAnnounce = true) {
|
|
899
899
|
const breakpoints = this.model.addBreakpoints(uri, rawBreakpoints);
|
|
900
900
|
if (ariaAnnounce) {
|
|
901
|
-
breakpoints.forEach(bp => status(( localize(
|
|
901
|
+
breakpoints.forEach(bp => status(( localize(2511, "Added breakpoint, line {0}, file {1}", bp.lineNumber, uri.fsPath))));
|
|
902
902
|
}
|
|
903
903
|
this.debugStorage.storeBreakpoints(this.model);
|
|
904
904
|
await this.sendBreakpoints(uri);
|
|
@@ -920,7 +920,7 @@ let DebugService = class DebugService {
|
|
|
920
920
|
const breakpoints = this.model.getBreakpoints();
|
|
921
921
|
const toRemove = breakpoints.filter(bp => !id || bp.getId() === id);
|
|
922
922
|
toRemove.forEach(bp => status(( localize(
|
|
923
|
-
|
|
923
|
+
2512,
|
|
924
924
|
"Removed breakpoint, line {0}, file {1}",
|
|
925
925
|
bp.lineNumber,
|
|
926
926
|
bp.uri.fsPath
|
|
@@ -290,7 +290,7 @@ let DebugSession = class DebugSession {
|
|
|
290
290
|
async launchOrAttach(config) {
|
|
291
291
|
if (!this.raw) {
|
|
292
292
|
throw ( (new Error(
|
|
293
|
-
localize(
|
|
293
|
+
localize(5834, "No debugger available, can not send '{0}'", 'launch or attach')
|
|
294
294
|
)));
|
|
295
295
|
}
|
|
296
296
|
if (this.parentSession && this.parentSession.state === 0 ) {
|
|
@@ -346,7 +346,7 @@ let DebugSession = class DebugSession {
|
|
|
346
346
|
}
|
|
347
347
|
async restart() {
|
|
348
348
|
if (!this.raw) {
|
|
349
|
-
throw ( (new Error(localize(
|
|
349
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'restart'))));
|
|
350
350
|
}
|
|
351
351
|
this.cancelAllRequests();
|
|
352
352
|
if (this._options.lifecycleManagedByParent && this.parentSession) {
|
|
@@ -358,7 +358,7 @@ let DebugSession = class DebugSession {
|
|
|
358
358
|
}
|
|
359
359
|
async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
|
|
360
360
|
if (!this.raw) {
|
|
361
|
-
throw ( (new Error(localize(
|
|
361
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'breakpoints'))));
|
|
362
362
|
}
|
|
363
363
|
if (!this.raw.readyForBreakpoints) {
|
|
364
364
|
return Promise.resolve(undefined);
|
|
@@ -387,7 +387,7 @@ let DebugSession = class DebugSession {
|
|
|
387
387
|
async sendFunctionBreakpoints(fbpts) {
|
|
388
388
|
if (!this.raw) {
|
|
389
389
|
throw ( (new Error(
|
|
390
|
-
localize(
|
|
390
|
+
localize(5834, "No debugger available, can not send '{0}'", 'function breakpoints')
|
|
391
391
|
)));
|
|
392
392
|
}
|
|
393
393
|
if (this.raw.readyForBreakpoints) {
|
|
@@ -404,7 +404,7 @@ let DebugSession = class DebugSession {
|
|
|
404
404
|
async sendExceptionBreakpoints(exbpts) {
|
|
405
405
|
if (!this.raw) {
|
|
406
406
|
throw ( (new Error(
|
|
407
|
-
localize(
|
|
407
|
+
localize(5834, "No debugger available, can not send '{0}'", 'exception breakpoints')
|
|
408
408
|
)));
|
|
409
409
|
}
|
|
410
410
|
if (this.raw.readyForBreakpoints) {
|
|
@@ -429,7 +429,7 @@ let DebugSession = class DebugSession {
|
|
|
429
429
|
}
|
|
430
430
|
dataBytesBreakpointInfo(address, bytes) {
|
|
431
431
|
if (this.raw?.capabilities.supportsDataBreakpointBytes === false) {
|
|
432
|
-
throw ( (new Error(localize(
|
|
432
|
+
throw ( (new Error(localize(5835, "Session does not support breakpoints with bytes"))));
|
|
433
433
|
}
|
|
434
434
|
return this._dataBreakpointInfo({ name: address, bytes, asAddress: true });
|
|
435
435
|
}
|
|
@@ -439,11 +439,11 @@ let DebugSession = class DebugSession {
|
|
|
439
439
|
async _dataBreakpointInfo(args) {
|
|
440
440
|
if (!this.raw) {
|
|
441
441
|
throw ( (new Error(
|
|
442
|
-
localize(
|
|
442
|
+
localize(5834, "No debugger available, can not send '{0}'", 'data breakpoints info')
|
|
443
443
|
)));
|
|
444
444
|
}
|
|
445
445
|
if (!this.raw.readyForBreakpoints) {
|
|
446
|
-
throw ( (new Error(localize(
|
|
446
|
+
throw ( (new Error(localize(5836, "Session is not ready for breakpoints"))));
|
|
447
447
|
}
|
|
448
448
|
const response = await this.raw.dataBreakpointInfo(args);
|
|
449
449
|
return response?.body;
|
|
@@ -451,7 +451,7 @@ let DebugSession = class DebugSession {
|
|
|
451
451
|
async sendDataBreakpoints(dataBreakpoints) {
|
|
452
452
|
if (!this.raw) {
|
|
453
453
|
throw ( (new Error(
|
|
454
|
-
localize(
|
|
454
|
+
localize(5834, "No debugger available, can not send '{0}'", 'data breakpoints')
|
|
455
455
|
)));
|
|
456
456
|
}
|
|
457
457
|
if (this.raw.readyForBreakpoints) {
|
|
@@ -483,7 +483,7 @@ let DebugSession = class DebugSession {
|
|
|
483
483
|
async sendInstructionBreakpoints(instructionBreakpoints) {
|
|
484
484
|
if (!this.raw) {
|
|
485
485
|
throw ( (new Error(localize(
|
|
486
|
-
|
|
486
|
+
5834,
|
|
487
487
|
"No debugger available, can not send '{0}'",
|
|
488
488
|
'instruction breakpoints'
|
|
489
489
|
))));
|
|
@@ -502,7 +502,7 @@ let DebugSession = class DebugSession {
|
|
|
502
502
|
async breakpointsLocations(uri, lineNumber) {
|
|
503
503
|
if (!this.raw) {
|
|
504
504
|
throw ( (new Error(
|
|
505
|
-
localize(
|
|
505
|
+
localize(5834, "No debugger available, can not send '{0}'", 'breakpoints locations')
|
|
506
506
|
)));
|
|
507
507
|
}
|
|
508
508
|
const source = this.getRawSource(uri);
|
|
@@ -518,13 +518,13 @@ let DebugSession = class DebugSession {
|
|
|
518
518
|
}
|
|
519
519
|
customRequest(request, args) {
|
|
520
520
|
if (!this.raw) {
|
|
521
|
-
throw ( (new Error(localize(
|
|
521
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", request))));
|
|
522
522
|
}
|
|
523
523
|
return this.raw.custom(request, args);
|
|
524
524
|
}
|
|
525
525
|
stackTrace(threadId, startFrame, levels, token) {
|
|
526
526
|
if (!this.raw) {
|
|
527
|
-
throw ( (new Error(localize(
|
|
527
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'stackTrace'))));
|
|
528
528
|
}
|
|
529
529
|
const sessionToken = this.getNewCancellationToken(threadId, token);
|
|
530
530
|
return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
|
|
@@ -532,7 +532,7 @@ let DebugSession = class DebugSession {
|
|
|
532
532
|
async exceptionInfo(threadId) {
|
|
533
533
|
if (!this.raw) {
|
|
534
534
|
throw ( (new Error(
|
|
535
|
-
localize(
|
|
535
|
+
localize(5834, "No debugger available, can not send '{0}'", 'exceptionInfo')
|
|
536
536
|
)));
|
|
537
537
|
}
|
|
538
538
|
const response = await this.raw.exceptionInfo({ threadId });
|
|
@@ -548,21 +548,21 @@ let DebugSession = class DebugSession {
|
|
|
548
548
|
}
|
|
549
549
|
scopes(frameId, threadId) {
|
|
550
550
|
if (!this.raw) {
|
|
551
|
-
throw ( (new Error(localize(
|
|
551
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'scopes'))));
|
|
552
552
|
}
|
|
553
553
|
const token = this.getNewCancellationToken(threadId);
|
|
554
554
|
return this.raw.scopes({ frameId }, token);
|
|
555
555
|
}
|
|
556
556
|
variables(variablesReference, threadId, filter, start, count) {
|
|
557
557
|
if (!this.raw) {
|
|
558
|
-
throw ( (new Error(localize(
|
|
558
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'variables'))));
|
|
559
559
|
}
|
|
560
560
|
const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
|
|
561
561
|
return this.raw.variables({ variablesReference, filter, start, count }, token);
|
|
562
562
|
}
|
|
563
563
|
evaluate(expression, frameId, context, location) {
|
|
564
564
|
if (!this.raw) {
|
|
565
|
-
throw ( (new Error(localize(
|
|
565
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'evaluate'))));
|
|
566
566
|
}
|
|
567
567
|
return this.raw.evaluate({ expression, frameId, context, line: location?.line, column: location?.column, source: location?.source });
|
|
568
568
|
}
|
|
@@ -570,7 +570,7 @@ let DebugSession = class DebugSession {
|
|
|
570
570
|
await this.waitForTriggeredBreakpoints();
|
|
571
571
|
if (!this.raw) {
|
|
572
572
|
throw ( (new Error(
|
|
573
|
-
localize(
|
|
573
|
+
localize(5834, "No debugger available, can not send '{0}'", 'restartFrame')
|
|
574
574
|
)));
|
|
575
575
|
}
|
|
576
576
|
await this.raw.restartFrame({ frameId }, threadId);
|
|
@@ -584,7 +584,7 @@ let DebugSession = class DebugSession {
|
|
|
584
584
|
async next(threadId, granularity) {
|
|
585
585
|
await this.waitForTriggeredBreakpoints();
|
|
586
586
|
if (!this.raw) {
|
|
587
|
-
throw ( (new Error(localize(
|
|
587
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'next'))));
|
|
588
588
|
}
|
|
589
589
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
590
590
|
await this.raw.next({ threadId, granularity });
|
|
@@ -592,7 +592,7 @@ let DebugSession = class DebugSession {
|
|
|
592
592
|
async stepIn(threadId, targetId, granularity) {
|
|
593
593
|
await this.waitForTriggeredBreakpoints();
|
|
594
594
|
if (!this.raw) {
|
|
595
|
-
throw ( (new Error(localize(
|
|
595
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'stepIn'))));
|
|
596
596
|
}
|
|
597
597
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
598
598
|
await this.raw.stepIn({ threadId, targetId, granularity });
|
|
@@ -600,7 +600,7 @@ let DebugSession = class DebugSession {
|
|
|
600
600
|
async stepOut(threadId, granularity) {
|
|
601
601
|
await this.waitForTriggeredBreakpoints();
|
|
602
602
|
if (!this.raw) {
|
|
603
|
-
throw ( (new Error(localize(
|
|
603
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'stepOut'))));
|
|
604
604
|
}
|
|
605
605
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
606
606
|
await this.raw.stepOut({ threadId, granularity });
|
|
@@ -608,7 +608,7 @@ let DebugSession = class DebugSession {
|
|
|
608
608
|
async stepBack(threadId, granularity) {
|
|
609
609
|
await this.waitForTriggeredBreakpoints();
|
|
610
610
|
if (!this.raw) {
|
|
611
|
-
throw ( (new Error(localize(
|
|
611
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'stepBack'))));
|
|
612
612
|
}
|
|
613
613
|
this.setLastSteppingGranularity(threadId, granularity);
|
|
614
614
|
await this.raw.stepBack({ threadId, granularity });
|
|
@@ -616,7 +616,7 @@ let DebugSession = class DebugSession {
|
|
|
616
616
|
async continue(threadId) {
|
|
617
617
|
await this.waitForTriggeredBreakpoints();
|
|
618
618
|
if (!this.raw) {
|
|
619
|
-
throw ( (new Error(localize(
|
|
619
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'continue'))));
|
|
620
620
|
}
|
|
621
621
|
await this.raw.continue({ threadId });
|
|
622
622
|
}
|
|
@@ -624,54 +624,54 @@ let DebugSession = class DebugSession {
|
|
|
624
624
|
await this.waitForTriggeredBreakpoints();
|
|
625
625
|
if (!this.raw) {
|
|
626
626
|
throw ( (new Error(
|
|
627
|
-
localize(
|
|
627
|
+
localize(5834, "No debugger available, can not send '{0}'", 'reverse continue')
|
|
628
628
|
)));
|
|
629
629
|
}
|
|
630
630
|
await this.raw.reverseContinue({ threadId });
|
|
631
631
|
}
|
|
632
632
|
async pause(threadId) {
|
|
633
633
|
if (!this.raw) {
|
|
634
|
-
throw ( (new Error(localize(
|
|
634
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'pause'))));
|
|
635
635
|
}
|
|
636
636
|
await this.raw.pause({ threadId });
|
|
637
637
|
}
|
|
638
638
|
async terminateThreads(threadIds) {
|
|
639
639
|
if (!this.raw) {
|
|
640
640
|
throw ( (new Error(
|
|
641
|
-
localize(
|
|
641
|
+
localize(5834, "No debugger available, can not send '{0}'", 'terminateThreads')
|
|
642
642
|
)));
|
|
643
643
|
}
|
|
644
644
|
await this.raw.terminateThreads({ threadIds });
|
|
645
645
|
}
|
|
646
646
|
setVariable(variablesReference, name, value) {
|
|
647
647
|
if (!this.raw) {
|
|
648
|
-
throw ( (new Error(localize(
|
|
648
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'setVariable'))));
|
|
649
649
|
}
|
|
650
650
|
return this.raw.setVariable({ variablesReference, name, value });
|
|
651
651
|
}
|
|
652
652
|
setExpression(frameId, expression, value) {
|
|
653
653
|
if (!this.raw) {
|
|
654
654
|
throw ( (new Error(
|
|
655
|
-
localize(
|
|
655
|
+
localize(5834, "No debugger available, can not send '{0}'", 'setExpression')
|
|
656
656
|
)));
|
|
657
657
|
}
|
|
658
658
|
return this.raw.setExpression({ expression, value, frameId });
|
|
659
659
|
}
|
|
660
660
|
gotoTargets(source, line, column) {
|
|
661
661
|
if (!this.raw) {
|
|
662
|
-
throw ( (new Error(localize(
|
|
662
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'gotoTargets'))));
|
|
663
663
|
}
|
|
664
664
|
return this.raw.gotoTargets({ source, line, column });
|
|
665
665
|
}
|
|
666
666
|
goto(threadId, targetId) {
|
|
667
667
|
if (!this.raw) {
|
|
668
|
-
throw ( (new Error(localize(
|
|
668
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'goto'))));
|
|
669
669
|
}
|
|
670
670
|
return this.raw.goto({ threadId, targetId });
|
|
671
671
|
}
|
|
672
672
|
loadSource(resource) {
|
|
673
673
|
if (!this.raw) {
|
|
674
|
-
return Promise.reject(( (new Error(( localize(
|
|
674
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'loadSource'))))));
|
|
675
675
|
}
|
|
676
676
|
const source = this.getSourceForUri(resource);
|
|
677
677
|
let rawSource;
|
|
@@ -686,7 +686,7 @@ let DebugSession = class DebugSession {
|
|
|
686
686
|
}
|
|
687
687
|
async getLoadedSources() {
|
|
688
688
|
if (!this.raw) {
|
|
689
|
-
return Promise.reject(( (new Error(( localize(
|
|
689
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'getLoadedSources'))))));
|
|
690
690
|
}
|
|
691
691
|
const response = await this.raw.loadedSources({});
|
|
692
692
|
if (response?.body && response.body.sources) {
|
|
@@ -700,7 +700,7 @@ let DebugSession = class DebugSession {
|
|
|
700
700
|
}
|
|
701
701
|
async completions(frameId, threadId, text, position, overwriteBefore, token) {
|
|
702
702
|
if (!this.raw) {
|
|
703
|
-
return Promise.reject(( (new Error(( localize(
|
|
703
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'completions'))))));
|
|
704
704
|
}
|
|
705
705
|
const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
|
|
706
706
|
return this.raw.completions({
|
|
@@ -712,43 +712,43 @@ let DebugSession = class DebugSession {
|
|
|
712
712
|
}
|
|
713
713
|
async stepInTargets(frameId) {
|
|
714
714
|
if (!this.raw) {
|
|
715
|
-
return Promise.reject(( (new Error(( localize(
|
|
715
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'stepInTargets'))))));
|
|
716
716
|
}
|
|
717
717
|
const response = await this.raw.stepInTargets({ frameId });
|
|
718
718
|
return response?.body.targets;
|
|
719
719
|
}
|
|
720
720
|
async cancel(progressId) {
|
|
721
721
|
if (!this.raw) {
|
|
722
|
-
return Promise.reject(( (new Error(( localize(
|
|
722
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'cancel'))))));
|
|
723
723
|
}
|
|
724
724
|
return this.raw.cancel({ progressId });
|
|
725
725
|
}
|
|
726
726
|
async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
|
|
727
727
|
if (!this.raw) {
|
|
728
|
-
return Promise.reject(( (new Error(( localize(
|
|
728
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'disassemble'))))));
|
|
729
729
|
}
|
|
730
730
|
const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
|
|
731
731
|
return response?.body?.instructions;
|
|
732
732
|
}
|
|
733
733
|
readMemory(memoryReference, offset, count) {
|
|
734
734
|
if (!this.raw) {
|
|
735
|
-
return Promise.reject(( (new Error(( localize(
|
|
735
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'readMemory'))))));
|
|
736
736
|
}
|
|
737
737
|
return this.raw.readMemory({ count, memoryReference, offset });
|
|
738
738
|
}
|
|
739
739
|
writeMemory(memoryReference, offset, data, allowPartial) {
|
|
740
740
|
if (!this.raw) {
|
|
741
|
-
return Promise.reject(( (new Error(( localize(
|
|
741
|
+
return Promise.reject(( (new Error(( localize(5834, "No debugger available, can not send '{0}'", 'disassemble'))))));
|
|
742
742
|
}
|
|
743
743
|
return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
|
|
744
744
|
}
|
|
745
745
|
async resolveLocationReference(locationReference) {
|
|
746
746
|
if (!this.raw) {
|
|
747
|
-
throw ( (new Error(localize(
|
|
747
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'locations'))));
|
|
748
748
|
}
|
|
749
749
|
const location = await this.raw.locations({ locationReference });
|
|
750
750
|
if (!location?.body) {
|
|
751
|
-
throw ( (new Error(localize(
|
|
751
|
+
throw ( (new Error(localize(5834, "No debugger available, can not send '{0}'", 'locations'))));
|
|
752
752
|
}
|
|
753
753
|
const source = this.getSource(location.body.source);
|
|
754
754
|
return { column: 1, ...location.body, source };
|
|
@@ -860,8 +860,8 @@ let DebugSession = class DebugSession {
|
|
|
860
860
|
}
|
|
861
861
|
this.rawListeners.add(this.raw.onDidInitialize(async () => {
|
|
862
862
|
status(this.configuration.noDebug
|
|
863
|
-
? ( localize(
|
|
864
|
-
: ( localize(
|
|
863
|
+
? ( localize(5837, "Started running without debugging."))
|
|
864
|
+
: ( localize(5838, "Debugging started.")));
|
|
865
865
|
const sendConfigurationDone = async () => {
|
|
866
866
|
if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
|
|
867
867
|
try {
|
|
@@ -908,7 +908,7 @@ let DebugSession = class DebugSession {
|
|
|
908
908
|
}
|
|
909
909
|
}));
|
|
910
910
|
this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
|
|
911
|
-
status(( localize(
|
|
911
|
+
status(( localize(5839, "Debugging stopped.")));
|
|
912
912
|
if (event.body && event.body.restart) {
|
|
913
913
|
await this.debugService.restartSession(this, event.body.restart);
|
|
914
914
|
}
|
|
@@ -22,9 +22,9 @@ import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/
|
|
|
22
22
|
|
|
23
23
|
const onceFilter = (event, filter) => Event.once(Event.filter(event, filter));
|
|
24
24
|
const DEBUG_TASK_ERROR_CHOICE_KEY = 'debug.taskerrorchoice';
|
|
25
|
-
const ABORT_LABEL = ( localize(
|
|
26
|
-
const DEBUG_ANYWAY_LABEL = ( localize(
|
|
27
|
-
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(
|
|
25
|
+
const ABORT_LABEL = ( localize(5818, "Abort"));
|
|
26
|
+
const DEBUG_ANYWAY_LABEL = ( localize(5819, "&&Debug Anyway"));
|
|
27
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(5820, "Debug Anyway"));
|
|
28
28
|
let DebugTaskRunner = class DebugTaskRunner {
|
|
29
29
|
constructor(taskService, markerService, configurationService, viewsService, dialogService, storageService, commandService, progressService) {
|
|
30
30
|
this.taskService = taskService;
|
|
@@ -66,17 +66,17 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
66
66
|
}
|
|
67
67
|
const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
|
|
68
68
|
const message = errorCount > 1
|
|
69
|
-
? ( localize(
|
|
69
|
+
? ( localize(5821, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
|
|
70
70
|
: errorCount === 1
|
|
71
|
-
? ( localize(
|
|
71
|
+
? ( localize(5822, "Error exists after running preLaunchTask '{0}'.", taskLabel))
|
|
72
72
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
73
73
|
? ( localize(
|
|
74
|
-
|
|
74
|
+
5823,
|
|
75
75
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
76
76
|
taskLabel,
|
|
77
77
|
taskSummary.exitCode
|
|
78
78
|
))
|
|
79
|
-
: ( localize(
|
|
79
|
+
: ( localize(5824, "The preLaunchTask '{0}' terminated.", taskLabel));
|
|
80
80
|
let DebugChoice;
|
|
81
81
|
( ((function(DebugChoice) {
|
|
82
82
|
DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
|
|
@@ -92,7 +92,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
92
92
|
run: () => DebugChoice.DebugAnyway
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
label: ( localize(
|
|
95
|
+
label: ( localize(5825, "&&Show Errors")),
|
|
96
96
|
run: () => DebugChoice.ShowErrors
|
|
97
97
|
}
|
|
98
98
|
],
|
|
@@ -101,7 +101,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
101
101
|
run: () => DebugChoice.Cancel
|
|
102
102
|
},
|
|
103
103
|
checkbox: {
|
|
104
|
-
label: ( localize(
|
|
104
|
+
label: ( localize(5826, "Remember my choice in user settings")),
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
const debugAnyway = result === DebugChoice.DebugAnyway;
|
|
@@ -137,7 +137,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
137
137
|
message: err.message,
|
|
138
138
|
buttons: [
|
|
139
139
|
{
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(5819, "&&Debug Anyway")),
|
|
141
141
|
run: () => DebugChoice.DebugAnyway
|
|
142
142
|
},
|
|
143
143
|
{
|
|
@@ -149,7 +149,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
149
149
|
run: () => DebugChoice.Cancel
|
|
150
150
|
},
|
|
151
151
|
checkbox: {
|
|
152
|
-
label: ( localize(
|
|
152
|
+
label: ( localize(5827, "Remember my choice for this task"))
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
choice = result;
|
|
@@ -170,7 +170,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
170
170
|
}
|
|
171
171
|
if (!root) {
|
|
172
172
|
return Promise.reject(( (new Error(( localize(
|
|
173
|
-
|
|
173
|
+
5828,
|
|
174
174
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
175
175
|
typeof taskId === 'string' ? taskId : taskId.type
|
|
176
176
|
))))));
|
|
@@ -178,8 +178,8 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
178
178
|
const task = await this.taskService.getTask(root, taskId);
|
|
179
179
|
if (!task) {
|
|
180
180
|
const errorMessage = typeof taskId === 'string'
|
|
181
|
-
? ( localize(
|
|
182
|
-
: ( localize(
|
|
181
|
+
? ( localize(5829, "Could not find the task '{0}'.", taskId))
|
|
182
|
+
: ( localize(5830, "Could not find the specified task."));
|
|
183
183
|
return Promise.reject(createErrorWithActions(errorMessage, [( (new Action(
|
|
184
184
|
DEBUG_CONFIGURE_COMMAND_ID,
|
|
185
185
|
DEBUG_CONFIGURE_LABEL,
|
|
@@ -237,7 +237,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
237
237
|
store.add(disposableTimeout(() => {
|
|
238
238
|
if (!taskStarted) {
|
|
239
239
|
const errorMessage = ( localize(
|
|
240
|
-
|
|
240
|
+
5831,
|
|
241
241
|
"The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
|
|
242
242
|
typeof taskId === 'string' ? taskId : JSON.stringify(taskId)
|
|
243
243
|
));
|
|
@@ -246,14 +246,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
246
246
|
}, waitTime));
|
|
247
247
|
store.add(disposableTimeout(() => {
|
|
248
248
|
const message = ( localize(
|
|
249
|
-
|
|
249
|
+
5832,
|
|
250
250
|
"Waiting for preLaunchTask '{0}'...",
|
|
251
251
|
task.configurationProperties.name
|
|
252
252
|
));
|
|
253
253
|
const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
|
|
254
254
|
const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
|
|
255
255
|
if (canConfigure) {
|
|
256
|
-
buttons.splice(1, 0, ( localize(
|
|
256
|
+
buttons.splice(1, 0, ( localize(5833, "Configure Task")));
|
|
257
257
|
}
|
|
258
258
|
this.progressService.withProgress({ location: 15 , title: message, buttons }, () => result.catch(() => { }), (choice) => {
|
|
259
259
|
if (choice === undefined) ;
|