@codingame/monaco-vscode-debug-service-override 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +105 -150
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +258 -529
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +28 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +44 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +84 -163
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +116 -120
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +7 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +78 -140
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +72 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +25 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +16 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +140 -132
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +218 -175
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +5 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +9 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +69 -110
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +68 -53
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +77 -56
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +50 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +22 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +47 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +60 -76
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +14 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +23 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +17 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +56 -94
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +40 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +55 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +14 -28
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +12 -15
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +71 -146
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +92 -111
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +5 -12
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +42 -22
|
@@ -23,25 +23,18 @@ import { getEvaluatableExpressionAtPosition } from 'vscode/vscode/vs/workbench/c
|
|
|
23
23
|
import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
24
24
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
25
25
|
|
|
26
|
+
const _moduleId = "vs/workbench/contrib/debug/browser/debugEditorActions";
|
|
26
27
|
class ToggleBreakpointAction extends Action2 {
|
|
27
28
|
constructor() {
|
|
28
29
|
super({
|
|
29
30
|
id: 'editor.debug.action.toggleBreakpoint',
|
|
30
31
|
title: {
|
|
31
|
-
...( localize2WithPath(
|
|
32
|
-
|
|
33
|
-
'toggleBreakpointAction',
|
|
34
|
-
"Debug: Toggle Breakpoint"
|
|
35
|
-
)),
|
|
36
|
-
mnemonicTitle: ( localizeWithPath(
|
|
37
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
38
|
-
{ key: 'miToggleBreakpoint', comment: ['&& denotes a mnemonic'] },
|
|
39
|
-
"Toggle &&Breakpoint"
|
|
40
|
-
)),
|
|
32
|
+
...( localize2WithPath(_moduleId, 0, "Debug: Toggle Breakpoint")),
|
|
33
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 1, "Toggle &&Breakpoint")),
|
|
41
34
|
},
|
|
42
35
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
43
36
|
keybinding: {
|
|
44
|
-
when: ( ContextKeyExpr.or(EditorContextKeys.editorTextFocus, CONTEXT_DISASSEMBLY_VIEW_FOCUS)),
|
|
37
|
+
when: ( (ContextKeyExpr.or(EditorContextKeys.editorTextFocus, CONTEXT_DISASSEMBLY_VIEW_FOCUS))),
|
|
45
38
|
primary: 67 ,
|
|
46
39
|
weight: 100
|
|
47
40
|
},
|
|
@@ -76,16 +69,18 @@ class ToggleBreakpointAction extends Action2 {
|
|
|
76
69
|
if (editor?.hasModel()) {
|
|
77
70
|
const modelUri = editor.getModel().uri;
|
|
78
71
|
const canSet = debugService.canSetBreakpointsIn(editor.getModel());
|
|
79
|
-
const lineNumbers = [...( new Set(
|
|
80
|
-
|
|
72
|
+
const lineNumbers = [...( (new Set(
|
|
73
|
+
(editor.getSelections().map(s => s.getPosition().lineNumber))
|
|
74
|
+
)))];
|
|
75
|
+
await Promise.all(( (lineNumbers.map(async (line) => {
|
|
81
76
|
const bps = debugService.getModel().getBreakpoints({ lineNumber: line, uri: modelUri });
|
|
82
77
|
if (bps.length) {
|
|
83
|
-
await Promise.all(( bps.map(bp => debugService.removeBreakpoints(bp.getId()))));
|
|
78
|
+
await Promise.all(( (bps.map(bp => debugService.removeBreakpoints(bp.getId())))));
|
|
84
79
|
}
|
|
85
80
|
else if (canSet) {
|
|
86
81
|
await debugService.addBreakpoints(modelUri, [{ lineNumber: line }]);
|
|
87
82
|
}
|
|
88
|
-
})));
|
|
83
|
+
}))));
|
|
89
84
|
}
|
|
90
85
|
}
|
|
91
86
|
}
|
|
@@ -93,20 +88,12 @@ class ConditionalBreakpointAction extends EditorAction {
|
|
|
93
88
|
constructor() {
|
|
94
89
|
super({
|
|
95
90
|
id: 'editor.debug.action.conditionalBreakpoint',
|
|
96
|
-
label: ( localizeWithPath(
|
|
97
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
98
|
-
'conditionalBreakpointEditorAction',
|
|
99
|
-
"Debug: Add Conditional Breakpoint..."
|
|
100
|
-
)),
|
|
91
|
+
label: ( localizeWithPath(_moduleId, 2, "Debug: Add Conditional Breakpoint...")),
|
|
101
92
|
alias: 'Debug: Add Conditional Breakpoint...',
|
|
102
93
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
103
94
|
menuOpts: {
|
|
104
95
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
105
|
-
title: ( localizeWithPath(
|
|
106
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
107
|
-
{ key: 'miConditionalBreakpoint', comment: ['&& denotes a mnemonic'] },
|
|
108
|
-
"&&Conditional Breakpoint..."
|
|
109
|
-
)),
|
|
96
|
+
title: ( localizeWithPath(_moduleId, 3, "&&Conditional Breakpoint...")),
|
|
110
97
|
group: '1_breakpoints',
|
|
111
98
|
order: 1,
|
|
112
99
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -125,21 +112,13 @@ class LogPointAction extends EditorAction {
|
|
|
125
112
|
constructor() {
|
|
126
113
|
super({
|
|
127
114
|
id: 'editor.debug.action.addLogPoint',
|
|
128
|
-
label: ( localizeWithPath(
|
|
129
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
130
|
-
'logPointEditorAction',
|
|
131
|
-
"Debug: Add Logpoint..."
|
|
132
|
-
)),
|
|
115
|
+
label: ( localizeWithPath(_moduleId, 4, "Debug: Add Logpoint...")),
|
|
133
116
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
134
117
|
alias: 'Debug: Add Logpoint...',
|
|
135
118
|
menuOpts: [
|
|
136
119
|
{
|
|
137
120
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
138
|
-
title: ( localizeWithPath(
|
|
139
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
140
|
-
{ key: 'miLogPoint', comment: ['&& denotes a mnemonic'] },
|
|
141
|
-
"&&Logpoint..."
|
|
142
|
-
)),
|
|
121
|
+
title: ( localizeWithPath(_moduleId, 5, "&&Logpoint...")),
|
|
143
122
|
group: '1_breakpoints',
|
|
144
123
|
order: 4,
|
|
145
124
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -159,21 +138,13 @@ class TriggerByBreakpointAction extends EditorAction {
|
|
|
159
138
|
constructor() {
|
|
160
139
|
super({
|
|
161
140
|
id: 'editor.debug.action.triggerByBreakpoint',
|
|
162
|
-
label: ( localizeWithPath(
|
|
163
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
164
|
-
'triggerByBreakpointEditorAction',
|
|
165
|
-
"Debug: Add Triggered Breakpoint..."
|
|
166
|
-
)),
|
|
141
|
+
label: ( localizeWithPath(_moduleId, 6, "Debug: Add Triggered Breakpoint...")),
|
|
167
142
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
168
143
|
alias: 'Debug: Triggered Breakpoint...',
|
|
169
144
|
menuOpts: [
|
|
170
145
|
{
|
|
171
146
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
172
|
-
title: ( localizeWithPath(
|
|
173
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
174
|
-
{ key: 'miTriggerByBreakpoint', comment: ['&& denotes a mnemonic'] },
|
|
175
|
-
"&&Triggered Breakpoint..."
|
|
176
|
-
)),
|
|
147
|
+
title: ( localizeWithPath(_moduleId, 7, "&&Triggered Breakpoint...")),
|
|
177
148
|
group: '1_breakpoints',
|
|
178
149
|
order: 4,
|
|
179
150
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
@@ -193,20 +164,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
193
164
|
constructor() {
|
|
194
165
|
super({
|
|
195
166
|
id: 'editor.debug.action.editBreakpoint',
|
|
196
|
-
label: ( localizeWithPath(
|
|
197
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
198
|
-
'EditBreakpointEditorAction',
|
|
199
|
-
"Debug: Edit Breakpoint"
|
|
200
|
-
)),
|
|
167
|
+
label: ( localizeWithPath(_moduleId, 8, "Debug: Edit Breakpoint")),
|
|
201
168
|
alias: 'Debug: Edit Existing Breakpoint',
|
|
202
169
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
203
170
|
menuOpts: {
|
|
204
171
|
menuId: MenuId.MenubarNewBreakpointMenu,
|
|
205
|
-
title: ( localizeWithPath(
|
|
206
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
207
|
-
{ key: 'miEditBreakpoint', comment: ['&& denotes a mnemonic'] },
|
|
208
|
-
"&&Edit Breakpoint"
|
|
209
|
-
)),
|
|
172
|
+
title: ( localizeWithPath(_moduleId, 9, "&&Edit Breakpoint")),
|
|
210
173
|
group: '1_breakpoints',
|
|
211
174
|
order: 1,
|
|
212
175
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -224,12 +187,12 @@ class EditBreakpointAction extends EditorAction {
|
|
|
224
187
|
if (lineBreakpoints.length === 0) {
|
|
225
188
|
return;
|
|
226
189
|
}
|
|
227
|
-
const breakpointDistances = ( lineBreakpoints.map(b => {
|
|
190
|
+
const breakpointDistances = ( (lineBreakpoints.map(b => {
|
|
228
191
|
if (!b.column) {
|
|
229
192
|
return position.column;
|
|
230
193
|
}
|
|
231
194
|
return Math.abs(b.column - position.column);
|
|
232
|
-
}));
|
|
195
|
+
})));
|
|
233
196
|
const closestBreakpointIndex = breakpointDistances.indexOf(Math.min(...breakpointDistances));
|
|
234
197
|
const closestBreakpoint = lineBreakpoints[closestBreakpointIndex];
|
|
235
198
|
editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(closestBreakpoint.lineNumber, closestBreakpoint.column);
|
|
@@ -241,16 +204,8 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
241
204
|
super({
|
|
242
205
|
id: OpenDisassemblyViewAction.ID,
|
|
243
206
|
title: {
|
|
244
|
-
...( localize2WithPath(
|
|
245
|
-
|
|
246
|
-
'openDisassemblyView',
|
|
247
|
-
"Open Disassembly View"
|
|
248
|
-
)),
|
|
249
|
-
mnemonicTitle: ( localizeWithPath(
|
|
250
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
251
|
-
{ key: 'miDisassemblyView', comment: ['&& denotes a mnemonic'] },
|
|
252
|
-
"&&DisassemblyView"
|
|
253
|
-
)),
|
|
207
|
+
...( localize2WithPath(_moduleId, 10, "Open Disassembly View")),
|
|
208
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 11, "&&DisassemblyView")),
|
|
254
209
|
},
|
|
255
210
|
precondition: CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE,
|
|
256
211
|
menu: [
|
|
@@ -258,17 +213,33 @@ class OpenDisassemblyViewAction extends Action2 {
|
|
|
258
213
|
id: MenuId.EditorContext,
|
|
259
214
|
group: 'debug',
|
|
260
215
|
order: 5,
|
|
261
|
-
when: ( ContextKeyExpr.and(
|
|
216
|
+
when: ( (ContextKeyExpr.and(
|
|
217
|
+
CONTEXT_IN_DEBUG_MODE,
|
|
218
|
+
(PanelFocusContext.toNegated()),
|
|
219
|
+
(CONTEXT_DEBUG_STATE.isEqualTo('stopped')),
|
|
220
|
+
EditorContextKeys.editorTextFocus,
|
|
221
|
+
CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED,
|
|
222
|
+
CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST
|
|
223
|
+
)))
|
|
262
224
|
},
|
|
263
225
|
{
|
|
264
226
|
id: MenuId.DebugCallStackContext,
|
|
265
227
|
group: 'z_commands',
|
|
266
228
|
order: 50,
|
|
267
|
-
when: ( ContextKeyExpr.and(
|
|
229
|
+
when: ( (ContextKeyExpr.and(
|
|
230
|
+
CONTEXT_IN_DEBUG_MODE,
|
|
231
|
+
(CONTEXT_DEBUG_STATE.isEqualTo('stopped')),
|
|
232
|
+
(CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')),
|
|
233
|
+
CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED
|
|
234
|
+
)))
|
|
268
235
|
},
|
|
269
236
|
{
|
|
270
237
|
id: MenuId.CommandPalette,
|
|
271
|
-
when: ( ContextKeyExpr.and(
|
|
238
|
+
when: ( (ContextKeyExpr.and(
|
|
239
|
+
CONTEXT_IN_DEBUG_MODE,
|
|
240
|
+
(CONTEXT_DEBUG_STATE.isEqualTo('stopped')),
|
|
241
|
+
CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED
|
|
242
|
+
)))
|
|
272
243
|
}
|
|
273
244
|
]
|
|
274
245
|
});
|
|
@@ -285,16 +256,8 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
285
256
|
super({
|
|
286
257
|
id: ToggleDisassemblyViewSourceCodeAction.ID,
|
|
287
258
|
title: {
|
|
288
|
-
...( localize2WithPath(
|
|
289
|
-
|
|
290
|
-
'toggleDisassemblyViewSourceCode',
|
|
291
|
-
"Toggle Source Code in Disassembly View"
|
|
292
|
-
)),
|
|
293
|
-
mnemonicTitle: ( localizeWithPath(
|
|
294
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
295
|
-
{ key: 'mitogglesource', comment: ['&& denotes a mnemonic'] },
|
|
296
|
-
"&&ToggleSource"
|
|
297
|
-
)),
|
|
259
|
+
...( localize2WithPath(_moduleId, 12, "Toggle Source Code in Disassembly View")),
|
|
260
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 13, "&&ToggleSource")),
|
|
298
261
|
},
|
|
299
262
|
f1: true,
|
|
300
263
|
});
|
|
@@ -309,17 +272,17 @@ class ToggleDisassemblyViewSourceCodeAction extends Action2 {
|
|
|
309
272
|
}
|
|
310
273
|
class RunToCursorAction extends EditorAction {
|
|
311
274
|
static { this.ID = 'editor.debug.action.runToCursor'; }
|
|
312
|
-
static { this.LABEL = ( localize2WithPath(
|
|
313
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
314
|
-
'runToCursor',
|
|
315
|
-
"Run to Cursor"
|
|
316
|
-
)); }
|
|
275
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 14, "Run to Cursor")); }
|
|
317
276
|
constructor() {
|
|
318
277
|
super({
|
|
319
278
|
id: RunToCursorAction.ID,
|
|
320
279
|
label: RunToCursorAction.LABEL.value,
|
|
321
280
|
alias: 'Debug: Run to Cursor',
|
|
322
|
-
precondition: ( ContextKeyExpr.and(
|
|
281
|
+
precondition: ( (ContextKeyExpr.and(
|
|
282
|
+
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
283
|
+
(PanelFocusContext.toNegated()),
|
|
284
|
+
(ContextKeyExpr.or(EditorContextKeys.editorTextFocus, CONTEXT_DISASSEMBLY_VIEW_FOCUS))
|
|
285
|
+
))),
|
|
323
286
|
contextMenuOpts: {
|
|
324
287
|
group: 'debug',
|
|
325
288
|
order: 2,
|
|
@@ -346,17 +309,13 @@ class RunToCursorAction extends EditorAction {
|
|
|
346
309
|
}
|
|
347
310
|
class SelectionToReplAction extends EditorAction {
|
|
348
311
|
static { this.ID = 'editor.debug.action.selectionToRepl'; }
|
|
349
|
-
static { this.LABEL = ( localize2WithPath(
|
|
350
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
351
|
-
'evaluateInDebugConsole',
|
|
352
|
-
"Evaluate in Debug Console"
|
|
353
|
-
)); }
|
|
312
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 15, "Evaluate in Debug Console")); }
|
|
354
313
|
constructor() {
|
|
355
314
|
super({
|
|
356
315
|
id: SelectionToReplAction.ID,
|
|
357
316
|
label: SelectionToReplAction.LABEL.value,
|
|
358
317
|
alias: 'Debug: Evaluate in Console',
|
|
359
|
-
precondition: ( ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, EditorContextKeys.editorTextFocus)),
|
|
318
|
+
precondition: ( (ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, EditorContextKeys.editorTextFocus))),
|
|
360
319
|
contextMenuOpts: {
|
|
361
320
|
group: 'debug',
|
|
362
321
|
order: 0
|
|
@@ -385,17 +344,13 @@ class SelectionToReplAction extends EditorAction {
|
|
|
385
344
|
}
|
|
386
345
|
class SelectionToWatchExpressionsAction extends EditorAction {
|
|
387
346
|
static { this.ID = 'editor.debug.action.selectionToWatch'; }
|
|
388
|
-
static { this.LABEL = ( localize2WithPath(
|
|
389
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
390
|
-
'addToWatch',
|
|
391
|
-
"Add to Watch"
|
|
392
|
-
)); }
|
|
347
|
+
static { this.LABEL = ( localize2WithPath(_moduleId, 16, "Add to Watch")); }
|
|
393
348
|
constructor() {
|
|
394
349
|
super({
|
|
395
350
|
id: SelectionToWatchExpressionsAction.ID,
|
|
396
351
|
label: SelectionToWatchExpressionsAction.LABEL.value,
|
|
397
352
|
alias: 'Debug: Add to Watch',
|
|
398
|
-
precondition: ( ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, EditorContextKeys.editorTextFocus)),
|
|
353
|
+
precondition: ( (ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, EditorContextKeys.editorTextFocus))),
|
|
399
354
|
contextMenuOpts: {
|
|
400
355
|
group: 'debug',
|
|
401
356
|
order: 1
|
|
@@ -434,11 +389,7 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
434
389
|
constructor() {
|
|
435
390
|
super({
|
|
436
391
|
id: 'editor.debug.action.showDebugHover',
|
|
437
|
-
label: ( localizeWithPath(
|
|
438
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
439
|
-
'showDebugHover',
|
|
440
|
-
"Debug: Show Hover"
|
|
441
|
-
)),
|
|
392
|
+
label: ( localizeWithPath(_moduleId, 17, "Debug: Show Hover")),
|
|
442
393
|
alias: 'Debug: Show Hover',
|
|
443
394
|
precondition: CONTEXT_IN_DEBUG_MODE,
|
|
444
395
|
kbOpts: {
|
|
@@ -456,24 +407,21 @@ class ShowDebugHoverAction extends EditorAction {
|
|
|
456
407
|
return editor.getContribution(EDITOR_CONTRIBUTION_ID)?.showHover(position, true);
|
|
457
408
|
}
|
|
458
409
|
}
|
|
459
|
-
const NO_TARGETS_MESSAGE = ( localizeWithPath(
|
|
460
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
461
|
-
'editor.debug.action.stepIntoTargets.notAvailable',
|
|
462
|
-
"Step targets are not available here"
|
|
463
|
-
));
|
|
410
|
+
const NO_TARGETS_MESSAGE = ( localizeWithPath(_moduleId, 18, "Step targets are not available here"));
|
|
464
411
|
class StepIntoTargetsAction extends EditorAction {
|
|
465
412
|
static { this.ID = 'editor.debug.action.stepIntoTargets'; }
|
|
466
|
-
static { this.LABEL = ( localizeWithPath(
|
|
467
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
468
|
-
{ key: 'stepIntoTargets', comment: ['Step Into Targets lets the user step into an exact function he or she is interested in.'] },
|
|
469
|
-
"Step Into Target"
|
|
470
|
-
)); }
|
|
413
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 19, "Step Into Target")); }
|
|
471
414
|
constructor() {
|
|
472
415
|
super({
|
|
473
416
|
id: StepIntoTargetsAction.ID,
|
|
474
417
|
label: StepIntoTargetsAction.LABEL,
|
|
475
418
|
alias: 'Debug: Step Into Target',
|
|
476
|
-
precondition: ( ContextKeyExpr.and(
|
|
419
|
+
precondition: ( (ContextKeyExpr.and(
|
|
420
|
+
CONTEXT_STEP_INTO_TARGETS_SUPPORTED,
|
|
421
|
+
CONTEXT_IN_DEBUG_MODE,
|
|
422
|
+
(CONTEXT_DEBUG_STATE.isEqualTo('stopped')),
|
|
423
|
+
EditorContextKeys.editorTextFocus
|
|
424
|
+
))),
|
|
477
425
|
contextMenuOpts: {
|
|
478
426
|
group: 'debug',
|
|
479
427
|
order: 1.5
|
|
@@ -504,8 +452,8 @@ class StepIntoTargetsAction extends EditorAction {
|
|
|
504
452
|
for (const target of targets) {
|
|
505
453
|
if (target.line) {
|
|
506
454
|
positionalTargets.push({
|
|
507
|
-
start: ( new Position(target.line, target.column || 1)),
|
|
508
|
-
end: target.endLine ? ( new Position(target.endLine, target.endColumn || 1)) : undefined,
|
|
455
|
+
start: ( (new Position(target.line, target.column || 1))),
|
|
456
|
+
end: target.endLine ? ( (new Position(target.endLine, target.endColumn || 1))) : undefined,
|
|
509
457
|
target
|
|
510
458
|
});
|
|
511
459
|
}
|
|
@@ -526,13 +474,15 @@ class StepIntoTargetsAction extends EditorAction {
|
|
|
526
474
|
contextMenuService.showContextMenu({
|
|
527
475
|
getAnchor: () => ({ x, y }),
|
|
528
476
|
getActions: () => {
|
|
529
|
-
return (
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
477
|
+
return (
|
|
478
|
+
(targets.map(t => ( (new Action(
|
|
479
|
+
`stepIntoTarget:${t.id}`,
|
|
480
|
+
t.label,
|
|
481
|
+
undefined,
|
|
482
|
+
true,
|
|
483
|
+
() => session.stepIn(frame.thread.threadId, t.id)
|
|
484
|
+
)))))
|
|
485
|
+
);
|
|
536
486
|
}
|
|
537
487
|
});
|
|
538
488
|
}
|
|
@@ -556,8 +506,8 @@ class GoToBreakpointAction extends EditorAction {
|
|
|
556
506
|
if (!moveBreakpoint) {
|
|
557
507
|
moveBreakpoint =
|
|
558
508
|
this.isNext
|
|
559
|
-
? allEnabledBreakpoints.filter(bp => ( bp.uri.toString()) > ( currentUri.toString())).shift()
|
|
560
|
-
: allEnabledBreakpoints.filter(bp => ( bp.uri.toString()) < ( currentUri.toString())).pop();
|
|
509
|
+
? allEnabledBreakpoints.filter(bp => ( (bp.uri.toString())) > ( (currentUri.toString()))).shift()
|
|
510
|
+
: allEnabledBreakpoints.filter(bp => ( (bp.uri.toString())) < ( (currentUri.toString()))).pop();
|
|
561
511
|
}
|
|
562
512
|
if (!moveBreakpoint && allEnabledBreakpoints.length) {
|
|
563
513
|
moveBreakpoint = this.isNext ? allEnabledBreakpoints[0] : allEnabledBreakpoints[allEnabledBreakpoints.length - 1];
|
|
@@ -572,11 +522,7 @@ class GoToNextBreakpointAction extends GoToBreakpointAction {
|
|
|
572
522
|
constructor() {
|
|
573
523
|
super(true, {
|
|
574
524
|
id: 'editor.debug.action.goToNextBreakpoint',
|
|
575
|
-
label: ( localizeWithPath(
|
|
576
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
577
|
-
'goToNextBreakpoint',
|
|
578
|
-
"Debug: Go to Next Breakpoint"
|
|
579
|
-
)),
|
|
525
|
+
label: ( localizeWithPath(_moduleId, 20, "Debug: Go to Next Breakpoint")),
|
|
580
526
|
alias: 'Debug: Go to Next Breakpoint',
|
|
581
527
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
582
528
|
});
|
|
@@ -586,11 +532,7 @@ class GoToPreviousBreakpointAction extends GoToBreakpointAction {
|
|
|
586
532
|
constructor() {
|
|
587
533
|
super(false, {
|
|
588
534
|
id: 'editor.debug.action.goToPreviousBreakpoint',
|
|
589
|
-
label: ( localizeWithPath(
|
|
590
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
591
|
-
'goToPreviousBreakpoint',
|
|
592
|
-
"Debug: Go to Previous Breakpoint"
|
|
593
|
-
)),
|
|
535
|
+
label: ( localizeWithPath(_moduleId, 21, "Debug: Go to Previous Breakpoint")),
|
|
594
536
|
alias: 'Debug: Go to Previous Breakpoint',
|
|
595
537
|
precondition: CONTEXT_DEBUGGERS_AVAILABLE
|
|
596
538
|
});
|
|
@@ -600,11 +542,7 @@ class CloseExceptionWidgetAction extends EditorAction {
|
|
|
600
542
|
constructor() {
|
|
601
543
|
super({
|
|
602
544
|
id: 'editor.debug.action.closeExceptionWidget',
|
|
603
|
-
label: ( localizeWithPath(
|
|
604
|
-
'vs/workbench/contrib/debug/browser/debugEditorActions',
|
|
605
|
-
'closeExceptionWidget',
|
|
606
|
-
"Close Exception Widget"
|
|
607
|
-
)),
|
|
545
|
+
label: ( localizeWithPath(_moduleId, 22, "Close Exception Widget")),
|
|
608
546
|
alias: 'Close Exception Widget',
|
|
609
547
|
precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
|
|
610
548
|
kbOpts: {
|