@codingame/monaco-vscode-debug-service-override 1.83.5 → 1.83.6
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/baseDebugView.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +193 -86
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +44 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +254 -60
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +10 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +98 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +429 -185
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +25 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +62 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +130 -32
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +20 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +105 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +10 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +18 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +39 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +100 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +58 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +17 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +12 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +80 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +15 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +8 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +36 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +24 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +33 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +34 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +26 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +48 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +31 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +20 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +40 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +49 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +5 -60
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +18 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +15 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +32 -22
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +205 -41
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +51 -10
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +5 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +18 -7
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +80 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-debug-service-override",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.6",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.83.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.6",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -104,7 +104,11 @@ let AbstractExpressionsRenderer = class AbstractExpressionsRenderer {
|
|
|
104
104
|
const name = dom.append(expression, $('span.name'));
|
|
105
105
|
const lazyButton = dom.append(expression, $('span.lazy-button'));
|
|
106
106
|
lazyButton.classList.add(...ThemeIcon.asClassNameArray(Codicon.eye));
|
|
107
|
-
lazyButton.title = localizeWithPath(
|
|
107
|
+
lazyButton.title = ( localizeWithPath(
|
|
108
|
+
'vs/workbench/contrib/debug/browser/baseDebugView',
|
|
109
|
+
'debug.lazyButton.tooltip',
|
|
110
|
+
"Click to expand"
|
|
111
|
+
));
|
|
108
112
|
const value = dom.append(expression, $('span.value'));
|
|
109
113
|
const label = ( new HighlightedLabel(name));
|
|
110
114
|
const inputBoxContainer = dom.append(expression, $('.inputBoxContainer'));
|
|
@@ -236,19 +236,74 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
236
236
|
}
|
|
237
237
|
else if (!platform.isLinux && ( breakpoints.some(bp => !!bp.condition || !!bp.logMessage || !!bp.hitCondition))) {
|
|
238
238
|
const logPoint = breakpoints.every(bp => !!bp.logMessage);
|
|
239
|
-
const breakpointType = logPoint ?
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
const breakpointType = logPoint ? ( nls.localizeWithPath(
|
|
240
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
241
|
+
'logPoint',
|
|
242
|
+
"Logpoint"
|
|
243
|
+
)) : ( nls.localizeWithPath(
|
|
244
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
245
|
+
'breakpoint',
|
|
246
|
+
"Breakpoint"
|
|
247
|
+
));
|
|
248
|
+
const disabledBreakpointDialogMessage = ( nls.localizeWithPath(
|
|
249
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
250
|
+
'breakpointHasConditionDisabled',
|
|
251
|
+
"This {0} has a {1} that will get lost on remove. Consider enabling the {0} instead.",
|
|
252
|
+
breakpointType.toLowerCase(),
|
|
253
|
+
logPoint ? ( nls.localizeWithPath(
|
|
254
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
255
|
+
'message',
|
|
256
|
+
"message"
|
|
257
|
+
)) : ( nls.localizeWithPath(
|
|
258
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
259
|
+
'condition',
|
|
260
|
+
"condition"
|
|
261
|
+
))
|
|
262
|
+
));
|
|
263
|
+
const enabledBreakpointDialogMessage = ( nls.localizeWithPath(
|
|
264
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
265
|
+
'breakpointHasConditionEnabled',
|
|
266
|
+
"This {0} has a {1} that will get lost on remove. Consider disabling the {0} instead.",
|
|
267
|
+
breakpointType.toLowerCase(),
|
|
268
|
+
logPoint ? ( nls.localizeWithPath(
|
|
269
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
270
|
+
'message',
|
|
271
|
+
"message"
|
|
272
|
+
)) : ( nls.localizeWithPath(
|
|
273
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
274
|
+
'condition',
|
|
275
|
+
"condition"
|
|
276
|
+
))
|
|
277
|
+
));
|
|
242
278
|
await this.dialogService.prompt({
|
|
243
279
|
type: Severity.Info,
|
|
244
280
|
message: enabled ? enabledBreakpointDialogMessage : disabledBreakpointDialogMessage,
|
|
245
281
|
buttons: [
|
|
246
282
|
{
|
|
247
|
-
label: nls.localizeWithPath(
|
|
283
|
+
label: ( nls.localizeWithPath(
|
|
284
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
285
|
+
{ key: 'removeLogPoint', comment: ['&& denotes a mnemonic'] },
|
|
286
|
+
"&&Remove {0}",
|
|
287
|
+
breakpointType
|
|
288
|
+
)),
|
|
248
289
|
run: () => breakpoints.forEach(bp => this.debugService.removeBreakpoints(bp.getId()))
|
|
249
290
|
},
|
|
250
291
|
{
|
|
251
|
-
label:
|
|
292
|
+
label: ( nls.localizeWithPath(
|
|
293
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
294
|
+
'disableLogPoint',
|
|
295
|
+
"{0} {1}",
|
|
296
|
+
enabled ? ( nls.localizeWithPath(
|
|
297
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
298
|
+
{ key: 'disable', comment: ['&& denotes a mnemonic'] },
|
|
299
|
+
"&&Disable"
|
|
300
|
+
)) : ( nls.localizeWithPath(
|
|
301
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
302
|
+
{ key: 'enable', comment: ['&& denotes a mnemonic'] },
|
|
303
|
+
"&&Enable"
|
|
304
|
+
)),
|
|
305
|
+
breakpointType
|
|
306
|
+
)),
|
|
252
307
|
run: () => breakpoints.forEach(bp => this.debugService.enableOrDisableBreakpoints(!enabled, bp))
|
|
253
308
|
}
|
|
254
309
|
],
|
|
@@ -313,26 +368,42 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
313
368
|
getContextMenuActions(breakpoints, uri, lineNumber, column) {
|
|
314
369
|
const actions = [];
|
|
315
370
|
if (breakpoints.length === 1) {
|
|
316
|
-
const breakpointType = breakpoints[0].logMessage ?
|
|
317
|
-
|
|
318
|
-
'
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
'
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
)));
|
|
371
|
+
const breakpointType = breakpoints[0].logMessage ? ( nls.localizeWithPath(
|
|
372
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
373
|
+
'logPoint',
|
|
374
|
+
"Logpoint"
|
|
375
|
+
)) : ( nls.localizeWithPath(
|
|
376
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
377
|
+
'breakpoint',
|
|
378
|
+
"Breakpoint"
|
|
379
|
+
));
|
|
380
|
+
actions.push(( new Action('debug.removeBreakpoint', ( nls.localizeWithPath(
|
|
381
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
382
|
+
'removeBreakpoint',
|
|
383
|
+
"Remove {0}",
|
|
384
|
+
breakpointType
|
|
385
|
+
)), undefined, true, async () => {
|
|
386
|
+
await this.debugService.removeBreakpoints(breakpoints[0].getId());
|
|
387
|
+
})));
|
|
388
|
+
actions.push(( new Action('workbench.debug.action.editBreakpointAction', ( nls.localizeWithPath(
|
|
389
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
390
|
+
'editBreakpoint',
|
|
391
|
+
"Edit {0}...",
|
|
392
|
+
breakpointType
|
|
393
|
+
)), undefined, true, () => Promise.resolve(this.showBreakpointWidget(breakpoints[0].lineNumber, breakpoints[0].column)))));
|
|
333
394
|
actions.push(( new Action(
|
|
334
395
|
`workbench.debug.viewlet.action.toggleBreakpoint`,
|
|
335
|
-
breakpoints[0].enabled ?
|
|
396
|
+
breakpoints[0].enabled ? ( nls.localizeWithPath(
|
|
397
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
398
|
+
'disableBreakpoint',
|
|
399
|
+
"Disable {0}",
|
|
400
|
+
breakpointType
|
|
401
|
+
)) : ( nls.localizeWithPath(
|
|
402
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
403
|
+
'enableBreakpoint',
|
|
404
|
+
"Enable {0}",
|
|
405
|
+
breakpointType
|
|
406
|
+
)),
|
|
336
407
|
undefined,
|
|
337
408
|
true,
|
|
338
409
|
() => this.debugService.enableOrDisableBreakpoints(!breakpoints[0].enabled, breakpoints[0])
|
|
@@ -340,73 +411,89 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
340
411
|
}
|
|
341
412
|
else if (breakpoints.length > 1) {
|
|
342
413
|
const sorted = breakpoints.slice().sort((first, second) => (first.column && second.column) ? first.column - second.column : 1);
|
|
343
|
-
actions.push(( new SubmenuAction(
|
|
344
|
-
'debug
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
414
|
+
actions.push(( new SubmenuAction('debug.removeBreakpoints', ( nls.localizeWithPath(
|
|
415
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
416
|
+
'removeBreakpoints',
|
|
417
|
+
"Remove Breakpoints"
|
|
418
|
+
)), ( sorted.map(bp => ( new Action('removeInlineBreakpoint', bp.column ? ( nls.localizeWithPath(
|
|
419
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
420
|
+
'removeInlineBreakpointOnColumn',
|
|
421
|
+
"Remove Inline Breakpoint on Column {0}",
|
|
422
|
+
bp.column
|
|
423
|
+
)) : ( nls.localizeWithPath(
|
|
424
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
425
|
+
'removeLineBreakpoint',
|
|
426
|
+
"Remove Line Breakpoint"
|
|
427
|
+
)), undefined, true, () => this.debugService.removeBreakpoints(bp.getId()))))))));
|
|
428
|
+
actions.push(( new SubmenuAction('debug.editBreakpoints', ( nls.localizeWithPath(
|
|
429
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
430
|
+
'editBreakpoints',
|
|
431
|
+
"Edit Breakpoints"
|
|
432
|
+
)), ( sorted.map(bp => ( new Action('editBreakpoint', bp.column ? ( nls.localizeWithPath(
|
|
433
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
434
|
+
'editInlineBreakpointOnColumn',
|
|
435
|
+
"Edit Inline Breakpoint on Column {0}",
|
|
436
|
+
bp.column
|
|
437
|
+
)) : ( nls.localizeWithPath(
|
|
438
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
439
|
+
'editLineBreakpoint',
|
|
440
|
+
"Edit Line Breakpoint"
|
|
441
|
+
)), undefined, true, () => Promise.resolve(this.showBreakpointWidget(bp.lineNumber, bp.column)))))))));
|
|
442
|
+
actions.push(( new SubmenuAction('debug.enableDisableBreakpoints', ( nls.localizeWithPath(
|
|
443
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
444
|
+
'enableDisableBreakpoints',
|
|
445
|
+
"Enable/Disable Breakpoints"
|
|
446
|
+
)), ( sorted.map(bp => ( new Action(
|
|
447
|
+
bp.enabled ? 'disableColumnBreakpoint' : 'enableColumnBreakpoint',
|
|
448
|
+
bp.enabled ? (bp.column ? ( nls.localizeWithPath(
|
|
449
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
450
|
+
'disableInlineColumnBreakpoint',
|
|
451
|
+
"Disable Inline Breakpoint on Column {0}",
|
|
452
|
+
bp.column
|
|
453
|
+
)) : ( nls.localizeWithPath(
|
|
454
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
455
|
+
'disableBreakpointOnLine',
|
|
456
|
+
"Disable Line Breakpoint"
|
|
457
|
+
)))
|
|
458
|
+
: (bp.column ? ( nls.localizeWithPath(
|
|
459
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
460
|
+
'enableBreakpoints',
|
|
461
|
+
"Enable Inline Breakpoint on Column {0}",
|
|
462
|
+
bp.column
|
|
463
|
+
)) : ( nls.localizeWithPath(
|
|
464
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
465
|
+
'enableBreakpointOnLine',
|
|
466
|
+
"Enable Line Breakpoint"
|
|
467
|
+
))),
|
|
468
|
+
undefined,
|
|
469
|
+
true,
|
|
470
|
+
() => this.debugService.enableOrDisableBreakpoints(!bp.enabled, bp)
|
|
471
|
+
)))))));
|
|
377
472
|
}
|
|
378
473
|
else {
|
|
379
|
-
actions.push(( new Action(
|
|
474
|
+
actions.push(( new Action('addBreakpoint', ( nls.localizeWithPath(
|
|
475
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
380
476
|
'addBreakpoint',
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
)));
|
|
386
|
-
actions.push(( new Action(
|
|
477
|
+
"Add Breakpoint"
|
|
478
|
+
)), undefined, true, () => this.debugService.addBreakpoints(uri, [{ lineNumber, column }]))));
|
|
479
|
+
actions.push(( new Action('addConditionalBreakpoint', ( nls.localizeWithPath(
|
|
480
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
387
481
|
'addConditionalBreakpoint',
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
)));
|
|
393
|
-
actions.push(( new Action(
|
|
482
|
+
"Add Conditional Breakpoint..."
|
|
483
|
+
)), undefined, true, () => Promise.resolve(this.showBreakpointWidget(lineNumber, column, 0 )))));
|
|
484
|
+
actions.push(( new Action('addLogPoint', ( nls.localizeWithPath(
|
|
485
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
394
486
|
'addLogPoint',
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
true,
|
|
398
|
-
() => Promise.resolve(this.showBreakpointWidget(lineNumber, column, 2 ))
|
|
399
|
-
)));
|
|
487
|
+
"Add Logpoint..."
|
|
488
|
+
)), undefined, true, () => Promise.resolve(this.showBreakpointWidget(lineNumber, column, 2 )))));
|
|
400
489
|
}
|
|
401
490
|
if (this.debugService.state === 2 ) {
|
|
402
491
|
actions.push(( new Separator()));
|
|
403
|
-
actions.push(( new Action(
|
|
492
|
+
actions.push(( new Action('runToLine', ( nls.localizeWithPath(
|
|
493
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
404
494
|
'runToLine',
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
true,
|
|
408
|
-
() => this.debugService.runTo(uri, lineNumber).catch(onUnexpectedError)
|
|
409
|
-
)));
|
|
495
|
+
"Run to Line"
|
|
496
|
+
)), undefined, true, () => this.debugService.runTo(uri, lineNumber).catch(onUnexpectedError))));
|
|
410
497
|
}
|
|
411
498
|
return actions;
|
|
412
499
|
}
|
|
@@ -741,10 +828,30 @@ registerThemingParticipant((theme, collector) => {
|
|
|
741
828
|
`);
|
|
742
829
|
}
|
|
743
830
|
});
|
|
744
|
-
const debugIconBreakpointForeground = registerColor('debugIcon.breakpointForeground', { dark: '#E51400', light: '#E51400', hcDark: '#E51400', hcLight: '#E51400' }, nls.localizeWithPath(
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
831
|
+
const debugIconBreakpointForeground = registerColor('debugIcon.breakpointForeground', { dark: '#E51400', light: '#E51400', hcDark: '#E51400', hcLight: '#E51400' }, ( nls.localizeWithPath(
|
|
832
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
833
|
+
'debugIcon.breakpointForeground',
|
|
834
|
+
'Icon color for breakpoints.'
|
|
835
|
+
)));
|
|
836
|
+
const debugIconBreakpointDisabledForeground = registerColor('debugIcon.breakpointDisabledForeground', { dark: '#848484', light: '#848484', hcDark: '#848484', hcLight: '#848484' }, ( nls.localizeWithPath(
|
|
837
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
838
|
+
'debugIcon.breakpointDisabledForeground',
|
|
839
|
+
'Icon color for disabled breakpoints.'
|
|
840
|
+
)));
|
|
841
|
+
const debugIconBreakpointUnverifiedForeground = registerColor('debugIcon.breakpointUnverifiedForeground', { dark: '#848484', light: '#848484', hcDark: '#848484', hcLight: '#848484' }, ( nls.localizeWithPath(
|
|
842
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
843
|
+
'debugIcon.breakpointUnverifiedForeground',
|
|
844
|
+
'Icon color for unverified breakpoints.'
|
|
845
|
+
)));
|
|
846
|
+
const debugIconBreakpointCurrentStackframeForeground = registerColor('debugIcon.breakpointCurrentStackframeForeground', { dark: '#FFCC00', light: '#BE8700', hcDark: '#FFCC00', hcLight: '#BE8700' }, ( nls.localizeWithPath(
|
|
847
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
848
|
+
'debugIcon.breakpointCurrentStackframeForeground',
|
|
849
|
+
'Icon color for the current breakpoint stack frame.'
|
|
850
|
+
)));
|
|
851
|
+
const debugIconBreakpointStackframeForeground = registerColor('debugIcon.breakpointStackframeForeground', { dark: '#89D185', light: '#89D185', hcDark: '#89D185', hcLight: '#89D185' }, ( nls.localizeWithPath(
|
|
852
|
+
'vs/workbench/contrib/debug/browser/breakpointEditorContribution',
|
|
853
|
+
'debugIcon.breakpointStackframeForeground',
|
|
854
|
+
'Icon color for all breakpoint stack frames.'
|
|
855
|
+
)));
|
|
749
856
|
|
|
750
857
|
export { BreakpointEditorContribution, createBreakpointDecorations, debugIconBreakpointForeground };
|
|
@@ -108,11 +108,35 @@ let BreakpointWidget = class BreakpointWidget extends ZoneWidget {
|
|
|
108
108
|
const closeString = this.keybindingService.lookupKeybinding(CloseBreakpointWidgetCommand.ID)?.getLabel() || 'Escape';
|
|
109
109
|
switch (this.context) {
|
|
110
110
|
case 2 :
|
|
111
|
-
return
|
|
111
|
+
return (
|
|
112
|
+
(nls.localizeWithPath(
|
|
113
|
+
'vs/workbench/contrib/debug/browser/breakpointWidget',
|
|
114
|
+
'breakpointWidgetLogMessagePlaceholder',
|
|
115
|
+
"Message to log when breakpoint is hit. Expressions within {} are interpolated. '{0}' to accept, '{1}' to cancel.",
|
|
116
|
+
acceptString,
|
|
117
|
+
closeString
|
|
118
|
+
))
|
|
119
|
+
);
|
|
112
120
|
case 1 :
|
|
113
|
-
return
|
|
121
|
+
return (
|
|
122
|
+
(nls.localizeWithPath(
|
|
123
|
+
'vs/workbench/contrib/debug/browser/breakpointWidget',
|
|
124
|
+
'breakpointWidgetHitCountPlaceholder',
|
|
125
|
+
"Break when hit count condition is met. '{0}' to accept, '{1}' to cancel.",
|
|
126
|
+
acceptString,
|
|
127
|
+
closeString
|
|
128
|
+
))
|
|
129
|
+
);
|
|
114
130
|
default:
|
|
115
|
-
return
|
|
131
|
+
return (
|
|
132
|
+
(nls.localizeWithPath(
|
|
133
|
+
'vs/workbench/contrib/debug/browser/breakpointWidget',
|
|
134
|
+
'breakpointWidgetExpressionPlaceholder',
|
|
135
|
+
"Break when expression evaluates to true. '{0}' to accept, '{1}' to cancel.",
|
|
136
|
+
acceptString,
|
|
137
|
+
closeString
|
|
138
|
+
))
|
|
139
|
+
);
|
|
116
140
|
}
|
|
117
141
|
}
|
|
118
142
|
getInputValue(breakpoint) {
|
|
@@ -154,13 +178,23 @@ let BreakpointWidget = class BreakpointWidget extends ZoneWidget {
|
|
|
154
178
|
}
|
|
155
179
|
_fillContainer(container) {
|
|
156
180
|
this.setCssClass('breakpoint-widget');
|
|
157
|
-
const selectBox = ( (new SelectBox(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
181
|
+
const selectBox = ( (new SelectBox([{ text: ( (nls.localizeWithPath(
|
|
182
|
+
'vs/workbench/contrib/debug/browser/breakpointWidget',
|
|
183
|
+
'expression',
|
|
184
|
+
"Expression"
|
|
185
|
+
))) }, { text: ( (nls.localizeWithPath(
|
|
186
|
+
'vs/workbench/contrib/debug/browser/breakpointWidget',
|
|
187
|
+
'hitCount',
|
|
188
|
+
"Hit Count"
|
|
189
|
+
))) }, { text: ( (nls.localizeWithPath(
|
|
190
|
+
'vs/workbench/contrib/debug/browser/breakpointWidget',
|
|
191
|
+
'logMessage',
|
|
192
|
+
"Log Message"
|
|
193
|
+
))) }], this.context, this.contextViewService, defaultSelectBoxStyles, { ariaLabel: ( (nls.localizeWithPath(
|
|
194
|
+
'vs/workbench/contrib/debug/browser/breakpointWidget',
|
|
195
|
+
'breakpointType',
|
|
196
|
+
'Breakpoint Type'
|
|
197
|
+
))) })));
|
|
164
198
|
this.selectContainer = $('.breakpoint-select-container');
|
|
165
199
|
selectBox.render(dom.append(container, this.selectContainer));
|
|
166
200
|
selectBox.onDidSelect(e => {
|