@codingame/monaco-vscode-debug-service-override 24.2.0 → 25.0.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/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +121 -112
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +26 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +69 -59
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +17 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -30,9 +30,9 @@ var TaskRunResult;
|
|
|
30
30
|
TaskRunResult[TaskRunResult["Success"] = 1] = "Success";
|
|
31
31
|
})(TaskRunResult || (TaskRunResult = {}));
|
|
32
32
|
const DEBUG_TASK_ERROR_CHOICE_KEY = 'debug.taskerrorchoice';
|
|
33
|
-
const ABORT_LABEL = ( localize(
|
|
34
|
-
const DEBUG_ANYWAY_LABEL = ( localize(
|
|
35
|
-
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(
|
|
33
|
+
const ABORT_LABEL = ( localize(6909, "Abort"));
|
|
34
|
+
const DEBUG_ANYWAY_LABEL = ( localize(6910, "&&Debug Anyway"));
|
|
35
|
+
const DEBUG_ANYWAY_LABEL_NO_MEMO = ( localize(6911, "Debug Anyway"));
|
|
36
36
|
let DebugTaskRunner = class DebugTaskRunner {
|
|
37
37
|
constructor(taskService, markerService, configurationService, viewsService, dialogService, storageService, commandService, progressService) {
|
|
38
38
|
this.taskService = taskService;
|
|
@@ -74,17 +74,17 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
74
74
|
}
|
|
75
75
|
const taskLabel = typeof taskId === 'string' ? taskId : taskId ? taskId.name : '';
|
|
76
76
|
const message = errorCount > 1
|
|
77
|
-
? ( localize(
|
|
77
|
+
? ( localize(6912, "Errors exist after running preLaunchTask '{0}'.", taskLabel))
|
|
78
78
|
: errorCount === 1
|
|
79
|
-
? ( localize(
|
|
79
|
+
? ( localize(6913, "Error exists after running preLaunchTask '{0}'.", taskLabel))
|
|
80
80
|
: taskSummary && typeof taskSummary.exitCode === 'number'
|
|
81
81
|
? ( localize(
|
|
82
|
-
|
|
82
|
+
6914,
|
|
83
83
|
"The preLaunchTask '{0}' terminated with exit code {1}.",
|
|
84
84
|
taskLabel,
|
|
85
85
|
taskSummary.exitCode
|
|
86
86
|
))
|
|
87
|
-
: ( localize(
|
|
87
|
+
: ( localize(6915, "The preLaunchTask '{0}' terminated.", taskLabel));
|
|
88
88
|
let DebugChoice;
|
|
89
89
|
(function (DebugChoice) {
|
|
90
90
|
DebugChoice[DebugChoice["DebugAnyway"] = 1] = "DebugAnyway";
|
|
@@ -100,7 +100,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
100
100
|
run: () => DebugChoice.DebugAnyway
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
label: ( localize(
|
|
103
|
+
label: ( localize(6916, "&&Show Errors")),
|
|
104
104
|
run: () => DebugChoice.ShowErrors
|
|
105
105
|
}
|
|
106
106
|
],
|
|
@@ -109,7 +109,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
109
109
|
run: () => DebugChoice.Cancel
|
|
110
110
|
},
|
|
111
111
|
checkbox: {
|
|
112
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(6917, "Remember my choice in user settings")),
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
const debugAnyway = result === DebugChoice.DebugAnyway;
|
|
@@ -145,7 +145,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
145
145
|
message: err.message,
|
|
146
146
|
buttons: [
|
|
147
147
|
{
|
|
148
|
-
label: ( localize(
|
|
148
|
+
label: ( localize(6910, "&&Debug Anyway")),
|
|
149
149
|
run: () => DebugChoice.DebugAnyway
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -157,7 +157,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
157
157
|
run: () => DebugChoice.Cancel
|
|
158
158
|
},
|
|
159
159
|
checkbox: {
|
|
160
|
-
label: ( localize(
|
|
160
|
+
label: ( localize(6918, "Remember my choice for this task"))
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
choice = result;
|
|
@@ -178,7 +178,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
178
178
|
}
|
|
179
179
|
if (!root) {
|
|
180
180
|
return Promise.reject(( new Error(( localize(
|
|
181
|
-
|
|
181
|
+
6919,
|
|
182
182
|
"Task '{0}' can not be referenced from a launch configuration that is in a different workspace folder.",
|
|
183
183
|
typeof taskId === 'string' ? taskId : taskId.type
|
|
184
184
|
)))));
|
|
@@ -186,8 +186,8 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
186
186
|
const task = await this.taskService.getTask(root, taskId);
|
|
187
187
|
if (!task) {
|
|
188
188
|
const errorMessage = typeof taskId === 'string'
|
|
189
|
-
? ( localize(
|
|
190
|
-
: ( localize(
|
|
189
|
+
? ( localize(6920, "Could not find the task '{0}'.", taskId))
|
|
190
|
+
: ( localize(6921, "Could not find the specified task."));
|
|
191
191
|
return Promise.reject(createErrorWithActions(errorMessage, [toAction({ id: DEBUG_CONFIGURE_COMMAND_ID, label: DEBUG_CONFIGURE_LABEL, enabled: true, run: () => this.commandService.executeCommand(DEBUG_CONFIGURE_COMMAND_ID) })]));
|
|
192
192
|
}
|
|
193
193
|
let taskStarted = false;
|
|
@@ -239,7 +239,7 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
239
239
|
store.add(disposableTimeout(() => {
|
|
240
240
|
if (!taskStarted) {
|
|
241
241
|
const errorMessage = ( localize(
|
|
242
|
-
|
|
242
|
+
6922,
|
|
243
243
|
"The task '{0}' has not exited and doesn't have a 'problemMatcher' defined. Make sure to define a problem matcher for watch tasks.",
|
|
244
244
|
typeof taskId === 'string' ? taskId : JSON.stringify(taskId)
|
|
245
245
|
));
|
|
@@ -250,14 +250,14 @@ let DebugTaskRunner = class DebugTaskRunner {
|
|
|
250
250
|
if (!hideSlowPreLaunchWarning) {
|
|
251
251
|
store.add(disposableTimeout(() => {
|
|
252
252
|
const message = ( localize(
|
|
253
|
-
|
|
253
|
+
6923,
|
|
254
254
|
"Waiting for preLaunchTask '{0}'...",
|
|
255
255
|
task.configurationProperties.name
|
|
256
256
|
));
|
|
257
257
|
const buttons = [DEBUG_ANYWAY_LABEL_NO_MEMO, ABORT_LABEL];
|
|
258
258
|
const canConfigure = task instanceof CustomTask || task instanceof ConfiguringTask;
|
|
259
259
|
if (canConfigure) {
|
|
260
|
-
buttons.splice(1, 0, ( localize(
|
|
260
|
+
buttons.splice(1, 0, ( localize(6924, "Configure Task")));
|
|
261
261
|
}
|
|
262
262
|
this.progressService.withProgress({ location: ProgressLocation.Notification, title: message, buttons }, () => result.catch(() => { }), (choice) => {
|
|
263
263
|
if (choice === undefined) ;
|
|
@@ -312,7 +312,7 @@ function createDisconnectMenuItemAction(action, disposables, accessor, options)
|
|
|
312
312
|
if (!secondary.length) {
|
|
313
313
|
return undefined;
|
|
314
314
|
}
|
|
315
|
-
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(
|
|
315
|
+
const dropdownAction = disposables.add(( new Action('notebook.moreRunActions', ( localize(6925, "More...")), 'codicon-chevron-down', true)));
|
|
316
316
|
const item = instantiationService.createInstance(DropdownWithPrimaryActionViewItem, action, dropdownAction, secondary, 'debug-stop-actions', options);
|
|
317
317
|
return item;
|
|
318
318
|
}
|
|
@@ -370,8 +370,8 @@ registerDebugToolBarItem(STEP_OVER_ID, STEP_OVER_LABEL, 20, debugStepOver, undef
|
|
|
370
370
|
registerDebugToolBarItem(STEP_INTO_ID, STEP_INTO_LABEL, 30, debugStepInto, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
371
371
|
registerDebugToolBarItem(STEP_OUT_ID, STEP_OUT_LABEL, 40, debugStepOut, undefined, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
372
372
|
registerDebugToolBarItem(RESTART_SESSION_ID, RESTART_LABEL, 60, debugRestart);
|
|
373
|
-
registerDebugToolBarItem(STEP_BACK_ID, ( localize(
|
|
374
|
-
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(
|
|
373
|
+
registerDebugToolBarItem(STEP_BACK_ID, ( localize(6926, "Step Back")), 50, debugStepBack, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
374
|
+
registerDebugToolBarItem(REVERSE_CONTINUE_ID, ( localize(6927, "Reverse")), 55, debugReverseContinue, CONTEXT_STEP_BACK_SUPPORTED, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
375
375
|
registerDebugToolBarItem(FOCUS_SESSION_ID, FOCUS_SESSION_LABEL, 100, Codicon.listTree, ( ContextKeyExpr.and(CONTEXT_MULTI_SESSION_DEBUG, ( CONTEXT_TOOLBAR_COMMAND_CENTER.negate()))));
|
|
376
376
|
MenuRegistry.appendMenuItem(MenuId.DebugToolBarStop, {
|
|
377
377
|
group: 'navigation',
|
|
@@ -171,10 +171,10 @@ registerAction2(class extends Action2 {
|
|
|
171
171
|
title: {
|
|
172
172
|
value: DEBUG_CONFIGURE_LABEL,
|
|
173
173
|
original: 'Open \'launch.json\'',
|
|
174
|
-
mnemonicTitle: ( localize(
|
|
174
|
+
mnemonicTitle: ( localize(6928, "Open &&Configurations"))
|
|
175
175
|
},
|
|
176
176
|
metadata: {
|
|
177
|
-
description: ( localize2(
|
|
177
|
+
description: ( localize2(6929, 'Opens the file used to configure how your program is debugged'))
|
|
178
178
|
},
|
|
179
179
|
f1: true,
|
|
180
180
|
icon: debugConfigure,
|
|
@@ -214,7 +214,7 @@ registerAction2(class extends Action2 {
|
|
|
214
214
|
const picked = await quickInputService.pick(picks, {
|
|
215
215
|
activeItem: picks[0],
|
|
216
216
|
placeHolder: ( localize(
|
|
217
|
-
|
|
217
|
+
6930,
|
|
218
218
|
"Select a workspace folder to create a launch.json file in or add it to the workspace config file"
|
|
219
219
|
))
|
|
220
220
|
});
|
|
@@ -238,7 +238,7 @@ registerAction2(class extends Action2 {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: 'debug.toggleReplIgnoreFocus',
|
|
241
|
-
title: ( localize(
|
|
241
|
+
title: ( localize(6931, "Debug Console")),
|
|
242
242
|
toggled: ( ContextKeyExpr.has(`view.${REPL_VIEW_ID}.visible`)),
|
|
243
243
|
menu: [{
|
|
244
244
|
id: ViewsSubMenu,
|
|
@@ -263,7 +263,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
|
|
263
263
|
order: 10,
|
|
264
264
|
command: {
|
|
265
265
|
id: SELECT_AND_START_ID,
|
|
266
|
-
title: ( localize(
|
|
266
|
+
title: ( localize(6932, "Start Additional Session")),
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
|
|
@@ -64,7 +64,7 @@ const disassemblyNotAvailable = {
|
|
|
64
64
|
address: 0n,
|
|
65
65
|
instruction: {
|
|
66
66
|
address: '-1',
|
|
67
|
-
instruction: ( localize(
|
|
67
|
+
instruction: ( localize(6933, "Disassembly not available."))
|
|
68
68
|
},
|
|
69
69
|
};
|
|
70
70
|
let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
@@ -182,7 +182,7 @@ let DisassemblyView = class DisassemblyView extends EditorPane {
|
|
|
182
182
|
project(row) { return row; }
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(6934, "instructions")),
|
|
186
186
|
tooltip: '',
|
|
187
187
|
weight: 0.3,
|
|
188
188
|
templateId: InstructionRenderer.TEMPLATE_ID,
|
|
@@ -734,7 +734,7 @@ let InstructionRenderer = class InstructionRenderer extends Disposable {
|
|
|
734
734
|
};
|
|
735
735
|
this.editorService.openEditor({
|
|
736
736
|
resource: sourceURI,
|
|
737
|
-
description: ( localize(
|
|
737
|
+
description: ( localize(6935, "from disassembly")),
|
|
738
738
|
options: {
|
|
739
739
|
preserveFocus: false,
|
|
740
740
|
selection: selection,
|
|
@@ -769,18 +769,18 @@ InstructionRenderer = InstructionRenderer_1 = ( __decorate([
|
|
|
769
769
|
], InstructionRenderer));
|
|
770
770
|
class AccessibilityProvider {
|
|
771
771
|
getWidgetAriaLabel() {
|
|
772
|
-
return localize(
|
|
772
|
+
return localize(6936, "Disassembly View");
|
|
773
773
|
}
|
|
774
774
|
getAriaLabel(element) {
|
|
775
775
|
let label = '';
|
|
776
776
|
const instruction = element.instruction;
|
|
777
777
|
if (instruction.address !== '-1') {
|
|
778
|
-
label += `${( localize(
|
|
778
|
+
label += `${( localize(6937, "Address"))}: ${instruction.address}`;
|
|
779
779
|
}
|
|
780
780
|
if (instruction.instructionBytes) {
|
|
781
|
-
label += `, ${( localize(
|
|
781
|
+
label += `, ${( localize(6938, "Bytes"))}: ${instruction.instructionBytes}`;
|
|
782
782
|
}
|
|
783
|
-
label += `, ${( localize(
|
|
783
|
+
label += `, ${( localize(6939, "Instruction"))}: ${instruction.instruction}`;
|
|
784
784
|
return label;
|
|
785
785
|
}
|
|
786
786
|
}
|
|
@@ -563,7 +563,7 @@ class LoadedScriptsRenderer {
|
|
|
563
563
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
564
564
|
}
|
|
565
565
|
else if (element instanceof SessionTreeItem) {
|
|
566
|
-
options.title = ( localize(
|
|
566
|
+
options.title = ( localize(6951, "Debug Session"));
|
|
567
567
|
options.hideIcon = true;
|
|
568
568
|
}
|
|
569
569
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -585,20 +585,20 @@ class LoadedScriptsRenderer {
|
|
|
585
585
|
}
|
|
586
586
|
class LoadedSciptsAccessibilityProvider {
|
|
587
587
|
getWidgetAriaLabel() {
|
|
588
|
-
return localize(
|
|
588
|
+
return localize(6952, "Debug Loaded Scripts");
|
|
589
589
|
}
|
|
590
590
|
getAriaLabel(element) {
|
|
591
591
|
if (element instanceof RootFolderTreeItem) {
|
|
592
|
-
return localize(
|
|
592
|
+
return localize(6953, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
593
593
|
}
|
|
594
594
|
if (element instanceof SessionTreeItem) {
|
|
595
|
-
return localize(
|
|
595
|
+
return localize(6954, "Session {0}, loaded script, debug", element.getLabel());
|
|
596
596
|
}
|
|
597
597
|
if (element.hasChildren()) {
|
|
598
|
-
return localize(
|
|
598
|
+
return localize(6955, "Folder {0}, loaded script, debug", element.getLabel());
|
|
599
599
|
}
|
|
600
600
|
else {
|
|
601
|
-
return localize(
|
|
601
|
+
return localize(6956, "{0}, loaded script, debug", element.getLabel());
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -625,7 +625,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
625
625
|
super({
|
|
626
626
|
id: 'loadedScripts.collapse',
|
|
627
627
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
628
|
-
title: ( localize(
|
|
628
|
+
title: ( localize(6957, "Collapse All")),
|
|
629
629
|
f1: false,
|
|
630
630
|
icon: Codicon.collapseAll,
|
|
631
631
|
menu: {
|
|
@@ -110,8 +110,14 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.debug-pane .debug-call-stack .thread,
|
|
113
|
-
.debug-pane .debug-call-stack .session
|
|
113
|
+
.debug-pane .debug-call-stack .session,
|
|
114
|
+
.debug-pane .debug-call-stack .stack-frame {
|
|
114
115
|
display: flex;
|
|
116
|
+
padding-right: 12px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.debug-pane .debug-call-stack .thread,
|
|
120
|
+
.debug-pane .debug-call-stack .session {
|
|
115
121
|
align-items: center;
|
|
116
122
|
}
|
|
117
123
|
|
|
@@ -143,7 +149,6 @@
|
|
|
143
149
|
.debug-pane .monaco-list-row .monaco-action-bar {
|
|
144
150
|
display: none;
|
|
145
151
|
flex-shrink: 0;
|
|
146
|
-
margin-right: 6px;
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
.debug-pane .monaco-list-row:hover .monaco-action-bar,
|
|
@@ -163,8 +168,6 @@
|
|
|
163
168
|
.debug-pane .debug-call-stack .stack-frame {
|
|
164
169
|
overflow: hidden;
|
|
165
170
|
text-overflow: ellipsis;
|
|
166
|
-
padding-right: 0.8em;
|
|
167
|
-
display: flex;
|
|
168
171
|
}
|
|
169
172
|
|
|
170
173
|
.debug-pane .debug-call-stack .stack-frame.label {
|
|
@@ -185,7 +188,6 @@
|
|
|
185
188
|
.debug-pane .debug-call-stack .stack-frame > .file {
|
|
186
189
|
display: flex;
|
|
187
190
|
overflow: hidden;
|
|
188
|
-
flex-wrap: wrap;
|
|
189
191
|
justify-content: flex-end;
|
|
190
192
|
}
|
|
191
193
|
|
|
@@ -291,19 +293,17 @@
|
|
|
291
293
|
line-height: 22px;
|
|
292
294
|
}
|
|
293
295
|
|
|
294
|
-
.debug-pane .debug-breakpoints .monaco-list-row .breakpoint {
|
|
295
|
-
padding-left: 2px;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.debug-pane .debug-breakpoints .breakpoint.exception {
|
|
299
|
-
padding-left: 21px;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
296
|
.debug-pane .debug-breakpoints .breakpoint {
|
|
303
297
|
display: flex;
|
|
304
298
|
padding-right: 0.8em;
|
|
305
299
|
flex: 1;
|
|
306
300
|
align-items: center;
|
|
301
|
+
margin-left: -19px;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.debug-pane .debug-breakpoints .breakpoint-folder,
|
|
305
|
+
.debug-pane .debug-breakpoints .exception {
|
|
306
|
+
margin-left: 0;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.debug-pane .debug-breakpoints .breakpoint input {
|
|
@@ -194,7 +194,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
194
194
|
}
|
|
195
195
|
async start() {
|
|
196
196
|
if (!this.debugAdapter) {
|
|
197
|
-
return Promise.reject(( new Error(( localize(
|
|
197
|
+
return Promise.reject(( new Error(( localize(6958, "No debug adapter, can not start debug session.")))));
|
|
198
198
|
}
|
|
199
199
|
await this.debugAdapter.startSession();
|
|
200
200
|
this.startTime = ( new Date()).getTime();
|
|
@@ -518,10 +518,10 @@ let RawDebugSession = class RawDebugSession {
|
|
|
518
518
|
const { confirmed } = await this.dialogSerivce.confirm({
|
|
519
519
|
type: Severity.Warning,
|
|
520
520
|
message: ( localize(
|
|
521
|
-
|
|
521
|
+
6959,
|
|
522
522
|
"The debugger needs to open a new tab or window for the debuggee but the browser prevented this. You must give permission to continue."
|
|
523
523
|
)),
|
|
524
|
-
primaryButton: ( localize(
|
|
524
|
+
primaryButton: ( localize(6960, "&&Continue"))
|
|
525
525
|
});
|
|
526
526
|
if (confirmed) {
|
|
527
527
|
result = await this.launchVsCode(request.arguments);
|
|
@@ -621,7 +621,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
621
621
|
completeDispatch(undefined);
|
|
622
622
|
}
|
|
623
623
|
else {
|
|
624
|
-
errorDispatch(( new Error(( localize(
|
|
624
|
+
errorDispatch(( new Error(( localize(6961, "No debugger available found. Can not send '{0}'.", command)))));
|
|
625
625
|
}
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
@@ -654,7 +654,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
654
654
|
const userMessage = error ? formatPII(error.format, false, error.variables) : errorMessage;
|
|
655
655
|
const url = error?.url;
|
|
656
656
|
if (error && url) {
|
|
657
|
-
const label = error.urlLabel ? error.urlLabel : ( localize(
|
|
657
|
+
const label = error.urlLabel ? error.urlLabel : ( localize(6962, "More Info"));
|
|
658
658
|
const uri = ( URI.parse(url));
|
|
659
659
|
const actionId = uri.scheme === Schemas.command ? 'debug.moreInfo.command' : 'debug.moreInfo';
|
|
660
660
|
return createErrorWithActions(userMessage, [toAction({ id: actionId, label, run: () => this.openerService.open(uri, { allowCommands: true }) })]);
|
|
@@ -42,41 +42,41 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
42
42
|
provideContent() {
|
|
43
43
|
return [
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
6981,
|
|
46
46
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
47
47
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
48
48
|
)),
|
|
49
49
|
( localize(
|
|
50
|
-
|
|
50
|
+
6982,
|
|
51
51
|
"The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
|
|
52
52
|
'<keybinding:widgetNavigation.focusPrevious>'
|
|
53
53
|
)),
|
|
54
54
|
( localize(
|
|
55
|
-
|
|
55
|
+
6983,
|
|
56
56
|
"The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
|
|
57
57
|
'<keybinding:widgetNavigation.focusNext>'
|
|
58
58
|
)),
|
|
59
59
|
( localize(
|
|
60
|
-
|
|
60
|
+
6984,
|
|
61
61
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
62
62
|
)),
|
|
63
63
|
( localize(
|
|
64
|
-
|
|
64
|
+
6985,
|
|
65
65
|
"The Open Accessible View command{0} will allow character by character navigation of the console output.",
|
|
66
66
|
'<keybinding:editor.action.accessibleView>'
|
|
67
67
|
)),
|
|
68
68
|
( localize(
|
|
69
|
-
|
|
69
|
+
6986,
|
|
70
70
|
"The Show Run and Debug view command{0} will open the Run and Debug view and provides more information about debugging.",
|
|
71
71
|
'<keybinding:workbench.view.debug>'
|
|
72
72
|
)),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
6987,
|
|
75
75
|
"The Debug: Clear Console command{0} will clear the console output.",
|
|
76
76
|
'<keybinding:workbench.debug.panel.action.clearReplAction>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
6988,
|
|
80
80
|
"The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
|
|
81
81
|
)),
|
|
82
82
|
].join('\n');
|
|
@@ -53,79 +53,79 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
53
53
|
provideContent() {
|
|
54
54
|
return [
|
|
55
55
|
( localize(
|
|
56
|
-
|
|
56
|
+
6994,
|
|
57
57
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
58
58
|
'<keybinding:workbench.view.debug>'
|
|
59
59
|
)),
|
|
60
60
|
( localize(
|
|
61
|
-
|
|
61
|
+
6995,
|
|
62
62
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
63
63
|
'<keybinding:workbench.action.debug.start>'
|
|
64
64
|
)),
|
|
65
65
|
( localize(
|
|
66
|
-
|
|
66
|
+
6996,
|
|
67
67
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
68
68
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
69
69
|
)),
|
|
70
70
|
AccessibilityHelpNLS.setBreakpoint,
|
|
71
71
|
AccessibilityHelpNLS.addToWatch,
|
|
72
|
-
( localize(
|
|
72
|
+
( localize(6997, "Once debugging, the following commands will be available:")),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
6998,
|
|
75
75
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
76
76
|
'<keybinding:workbench.action.debug.restart>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
6999,
|
|
80
80
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
81
81
|
'<keybinding:workbench.action.debug.stop>'
|
|
82
82
|
)),
|
|
83
83
|
( localize(
|
|
84
|
-
|
|
84
|
+
7000,
|
|
85
85
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
86
86
|
'<keybinding:workbench.action.debug.continue>'
|
|
87
87
|
)),
|
|
88
88
|
( localize(
|
|
89
|
-
|
|
89
|
+
7001,
|
|
90
90
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
91
91
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
92
92
|
)),
|
|
93
93
|
( localize(
|
|
94
|
-
|
|
94
|
+
7002,
|
|
95
95
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
96
96
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
97
97
|
)),
|
|
98
98
|
( localize(
|
|
99
|
-
|
|
99
|
+
7003,
|
|
100
100
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
101
101
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
102
102
|
)),
|
|
103
103
|
( localize(
|
|
104
|
-
|
|
104
|
+
7004,
|
|
105
105
|
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
|
|
106
106
|
)),
|
|
107
107
|
( localize(
|
|
108
|
-
|
|
108
|
+
7005,
|
|
109
109
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
110
110
|
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
111
111
|
)),
|
|
112
112
|
( localize(
|
|
113
|
-
|
|
113
|
+
7006,
|
|
114
114
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
115
115
|
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
116
116
|
)),
|
|
117
117
|
( localize(
|
|
118
|
-
|
|
118
|
+
7007,
|
|
119
119
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
120
120
|
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
121
121
|
)),
|
|
122
122
|
( localize(
|
|
123
|
-
|
|
123
|
+
7008,
|
|
124
124
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
125
125
|
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
126
126
|
)),
|
|
127
127
|
( localize(
|
|
128
|
-
|
|
128
|
+
7009,
|
|
129
129
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
130
130
|
'accessibility.debugWatchVariableAnnouncements'
|
|
131
131
|
)),
|
|
@@ -27,7 +27,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
27
27
|
hcDark: '#BA592C',
|
|
28
28
|
hcLight: '#B5200D'
|
|
29
29
|
}, ( localize(
|
|
30
|
-
|
|
30
|
+
7010,
|
|
31
31
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
32
32
|
)));
|
|
33
33
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -36,14 +36,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
36
36
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
37
37
|
hcLight: '#FFFFFF'
|
|
38
38
|
}, ( localize(
|
|
39
|
-
|
|
39
|
+
7011,
|
|
40
40
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
41
41
|
)));
|
|
42
42
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
43
|
-
|
|
43
|
+
7012,
|
|
44
44
|
"Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
45
45
|
)));
|
|
46
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(
|
|
46
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(7013, "Command center background color when a program is being debugged")), true);
|
|
47
47
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
48
48
|
set enabled(enabled) {
|
|
49
49
|
if (enabled === !!this.disposable) {
|
|
@@ -291,7 +291,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
291
291
|
if (settingValue) {
|
|
292
292
|
return {
|
|
293
293
|
initialValue: expression.value,
|
|
294
|
-
ariaLabel: ( localize(
|
|
294
|
+
ariaLabel: ( localize(7022, "Type new value")),
|
|
295
295
|
onFinish: async (value, success) => {
|
|
296
296
|
if (success && value) {
|
|
297
297
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -305,8 +305,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
305
305
|
}
|
|
306
306
|
return {
|
|
307
307
|
initialValue: expression.name ? expression.name : '',
|
|
308
|
-
ariaLabel: ( localize(
|
|
309
|
-
placeholder: ( localize(
|
|
308
|
+
ariaLabel: ( localize(7023, "Type watch expression")),
|
|
309
|
+
placeholder: ( localize(7024, "Expression to watch")),
|
|
310
310
|
onFinish: (value, success) => {
|
|
311
311
|
if (success && value) {
|
|
312
312
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -397,13 +397,13 @@ async function getContextForWatchExpressionMenuWithDataAccess(parentContext, exp
|
|
|
397
397
|
}
|
|
398
398
|
class WatchExpressionsAccessibilityProvider {
|
|
399
399
|
getWidgetAriaLabel() {
|
|
400
|
-
return localize(
|
|
400
|
+
return localize(7025, "Debug Watch Expressions");
|
|
401
401
|
}
|
|
402
402
|
getAriaLabel(element) {
|
|
403
403
|
if (element instanceof Expression) {
|
|
404
|
-
return localize(
|
|
404
|
+
return localize(7026, "{0}, value {1}", element.name, element.value);
|
|
405
405
|
}
|
|
406
|
-
return localize(
|
|
406
|
+
return localize(7027, "{0}, value {1}", element.name, element.value);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
class WatchExpressionsDragAndDrop {
|
|
@@ -489,7 +489,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
489
489
|
super({
|
|
490
490
|
id: 'watch.collapse',
|
|
491
491
|
viewId: WATCH_VIEW_ID,
|
|
492
|
-
title: ( localize(
|
|
492
|
+
title: ( localize(7028, "Collapse All")),
|
|
493
493
|
f1: false,
|
|
494
494
|
icon: Codicon.collapseAll,
|
|
495
495
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -506,7 +506,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
509
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
509
|
+
const ADD_WATCH_LABEL = ( localize(7029, "Add Expression"));
|
|
510
510
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
511
511
|
constructor() {
|
|
512
512
|
super({
|
|
@@ -527,7 +527,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
530
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
530
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(7030, "Remove All Expressions"));
|
|
531
531
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
532
532
|
constructor() {
|
|
533
533
|
super({
|
|
@@ -553,7 +553,7 @@ registerAction2(class CopyExpression extends ViewAction {
|
|
|
553
553
|
constructor() {
|
|
554
554
|
super({
|
|
555
555
|
id: COPY_WATCH_EXPRESSION_COMMAND_ID,
|
|
556
|
-
title: ( localize(
|
|
556
|
+
title: ( localize(7031, "Copy Expression")),
|
|
557
557
|
f1: false,
|
|
558
558
|
viewId: WATCH_VIEW_ID,
|
|
559
559
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|