@codingame/monaco-vscode-debug-service-override 1.83.2 → 1.83.3
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 +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +90 -68
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +5 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +61 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +3 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +29 -51
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +190 -203
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -31
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +32 -32
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +21 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +28 -80
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +56 -68
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +17 -50
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +31 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +9 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +12 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +13 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +6 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +9 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +15 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +5 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +10 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +10 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +61 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +6 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -12
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +21 -13
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +41 -143
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -36
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +11 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -49
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -4
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.3",
|
|
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.3",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -8,7 +8,7 @@ import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
|
8
8
|
import { createMatches } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
9
9
|
import { createSingleCallFunction } from 'monaco-editor/esm/vs/base/common/functional.js';
|
|
10
10
|
import { DisposableStore, dispose, toDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
11
|
-
import {
|
|
11
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
12
12
|
import { IContextViewService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
13
13
|
import { defaultInputBoxStyles } from 'monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js';
|
|
14
14
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
@@ -104,7 +104,7 @@ 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 = (
|
|
107
|
+
lazyButton.title = localizeWithPath('vs/workbench/contrib/debug/browser/baseDebugView', 'debug.lazyButton.tooltip', "Click to expand");
|
|
108
108
|
const value = dom.append(expression, $('span.value'));
|
|
109
109
|
const label = ( new HighlightedLabel(name));
|
|
110
110
|
const inputBoxContainer = dom.append(expression, $('.inputBoxContainer'));
|
|
@@ -236,33 +236,19 @@ 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
|
-
const disabledBreakpointDialogMessage = ( nls.
|
|
241
|
-
|
|
242
|
-
"This {0} has a {1} that will get lost on remove. Consider enabling the {0} instead.",
|
|
243
|
-
breakpointType.toLowerCase(),
|
|
244
|
-
logPoint ? ( nls.localize('message', "message")) : ( nls.localize('condition', "condition"))
|
|
245
|
-
));
|
|
246
|
-
const enabledBreakpointDialogMessage = ( nls.localize(
|
|
247
|
-
'breakpointHasConditionEnabled',
|
|
248
|
-
"This {0} has a {1} that will get lost on remove. Consider disabling the {0} instead.",
|
|
249
|
-
breakpointType.toLowerCase(),
|
|
250
|
-
logPoint ? ( nls.localize('message', "message")) : ( nls.localize('condition', "condition"))
|
|
251
|
-
));
|
|
239
|
+
const breakpointType = logPoint ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'logPoint', "Logpoint") : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'breakpoint', "Breakpoint");
|
|
240
|
+
const disabledBreakpointDialogMessage = nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'breakpointHasConditionDisabled', "This {0} has a {1} that will get lost on remove. Consider enabling the {0} instead.", breakpointType.toLowerCase(), logPoint ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'message', "message") : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'condition', "condition"));
|
|
241
|
+
const enabledBreakpointDialogMessage = nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'breakpointHasConditionEnabled', "This {0} has a {1} that will get lost on remove. Consider disabling the {0} instead.", breakpointType.toLowerCase(), logPoint ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'message', "message") : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'condition', "condition"));
|
|
252
242
|
await this.dialogService.prompt({
|
|
253
243
|
type: Severity.Info,
|
|
254
244
|
message: enabled ? enabledBreakpointDialogMessage : disabledBreakpointDialogMessage,
|
|
255
245
|
buttons: [
|
|
256
246
|
{
|
|
257
|
-
label:
|
|
258
|
-
{ key: 'removeLogPoint', comment: ['&& denotes a mnemonic'] },
|
|
259
|
-
"&&Remove {0}",
|
|
260
|
-
breakpointType
|
|
261
|
-
)),
|
|
247
|
+
label: nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', { key: 'removeLogPoint', comment: ['&& denotes a mnemonic'] }, "&&Remove {0}", breakpointType),
|
|
262
248
|
run: () => breakpoints.forEach(bp => this.debugService.removeBreakpoints(bp.getId()))
|
|
263
249
|
},
|
|
264
250
|
{
|
|
265
|
-
label:
|
|
251
|
+
label: nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'disableLogPoint', "{0} {1}", enabled ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', { key: 'disable', comment: ['&& denotes a mnemonic'] }, "&&Disable") : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', { key: 'enable', comment: ['&& denotes a mnemonic'] }, "&&Enable"), breakpointType),
|
|
266
252
|
run: () => breakpoints.forEach(bp => this.debugService.enableOrDisableBreakpoints(!enabled, bp))
|
|
267
253
|
}
|
|
268
254
|
],
|
|
@@ -327,14 +313,26 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
327
313
|
getContextMenuActions(breakpoints, uri, lineNumber, column) {
|
|
328
314
|
const actions = [];
|
|
329
315
|
if (breakpoints.length === 1) {
|
|
330
|
-
const breakpointType = breakpoints[0].logMessage ?
|
|
331
|
-
actions.push(( new Action(
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
316
|
+
const breakpointType = breakpoints[0].logMessage ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'logPoint', "Logpoint") : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'breakpoint', "Breakpoint");
|
|
317
|
+
actions.push(( new Action(
|
|
318
|
+
'debug.removeBreakpoint',
|
|
319
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'removeBreakpoint', "Remove {0}", breakpointType),
|
|
320
|
+
undefined,
|
|
321
|
+
true,
|
|
322
|
+
async () => {
|
|
323
|
+
await this.debugService.removeBreakpoints(breakpoints[0].getId());
|
|
324
|
+
}
|
|
325
|
+
)));
|
|
326
|
+
actions.push(( new Action(
|
|
327
|
+
'workbench.debug.action.editBreakpointAction',
|
|
328
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'editBreakpoint', "Edit {0}...", breakpointType),
|
|
329
|
+
undefined,
|
|
330
|
+
true,
|
|
331
|
+
() => Promise.resolve(this.showBreakpointWidget(breakpoints[0].lineNumber, breakpoints[0].column))
|
|
332
|
+
)));
|
|
335
333
|
actions.push(( new Action(
|
|
336
334
|
`workbench.debug.viewlet.action.toggleBreakpoint`,
|
|
337
|
-
breakpoints[0].enabled ?
|
|
335
|
+
breakpoints[0].enabled ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'disableBreakpoint', "Disable {0}", breakpointType) : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'enableBreakpoint', "Enable {0}", breakpointType),
|
|
338
336
|
undefined,
|
|
339
337
|
true,
|
|
340
338
|
() => this.debugService.enableOrDisableBreakpoints(!breakpoints[0].enabled, breakpoints[0])
|
|
@@ -342,37 +340,73 @@ let BreakpointEditorContribution = class BreakpointEditorContribution {
|
|
|
342
340
|
}
|
|
343
341
|
else if (breakpoints.length > 1) {
|
|
344
342
|
const sorted = breakpoints.slice().sort((first, second) => (first.column && second.column) ? first.column - second.column : 1);
|
|
345
|
-
actions.push(( new SubmenuAction(
|
|
346
|
-
'
|
|
347
|
-
"Remove
|
|
348
|
-
bp
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
)))
|
|
343
|
+
actions.push(( new SubmenuAction(
|
|
344
|
+
'debug.removeBreakpoints',
|
|
345
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'removeBreakpoints', "Remove Breakpoints"),
|
|
346
|
+
( sorted.map(bp => ( new Action(
|
|
347
|
+
'removeInlineBreakpoint',
|
|
348
|
+
bp.column ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'removeInlineBreakpointOnColumn', "Remove Inline Breakpoint on Column {0}", bp.column) : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'removeLineBreakpoint', "Remove Line Breakpoint"),
|
|
349
|
+
undefined,
|
|
350
|
+
true,
|
|
351
|
+
() => this.debugService.removeBreakpoints(bp.getId())
|
|
352
|
+
))))
|
|
353
|
+
)));
|
|
354
|
+
actions.push(( new SubmenuAction(
|
|
355
|
+
'debug.editBreakpoints',
|
|
356
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'editBreakpoints', "Edit Breakpoints"),
|
|
357
|
+
( sorted.map(bp => ( new Action(
|
|
358
|
+
'editBreakpoint',
|
|
359
|
+
bp.column ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'editInlineBreakpointOnColumn', "Edit Inline Breakpoint on Column {0}", bp.column) : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'editLineBreakpoint', "Edit Line Breakpoint"),
|
|
360
|
+
undefined,
|
|
361
|
+
true,
|
|
362
|
+
() => Promise.resolve(this.showBreakpointWidget(bp.lineNumber, bp.column))
|
|
363
|
+
))))
|
|
364
|
+
)));
|
|
365
|
+
actions.push(( new SubmenuAction(
|
|
366
|
+
'debug.enableDisableBreakpoints',
|
|
367
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'enableDisableBreakpoints', "Enable/Disable Breakpoints"),
|
|
368
|
+
( sorted.map(bp => ( new Action(
|
|
369
|
+
bp.enabled ? 'disableColumnBreakpoint' : 'enableColumnBreakpoint',
|
|
370
|
+
bp.enabled ? (bp.column ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'disableInlineColumnBreakpoint', "Disable Inline Breakpoint on Column {0}", bp.column) : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'disableBreakpointOnLine', "Disable Line Breakpoint"))
|
|
371
|
+
: (bp.column ? nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'enableBreakpoints', "Enable Inline Breakpoint on Column {0}", bp.column) : nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'enableBreakpointOnLine', "Enable Line Breakpoint")),
|
|
372
|
+
undefined,
|
|
373
|
+
true,
|
|
374
|
+
() => this.debugService.enableOrDisableBreakpoints(!bp.enabled, bp)
|
|
375
|
+
))))
|
|
376
|
+
)));
|
|
367
377
|
}
|
|
368
378
|
else {
|
|
369
|
-
actions.push(( new Action(
|
|
370
|
-
|
|
371
|
-
|
|
379
|
+
actions.push(( new Action(
|
|
380
|
+
'addBreakpoint',
|
|
381
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'addBreakpoint', "Add Breakpoint"),
|
|
382
|
+
undefined,
|
|
383
|
+
true,
|
|
384
|
+
() => this.debugService.addBreakpoints(uri, [{ lineNumber, column }])
|
|
385
|
+
)));
|
|
386
|
+
actions.push(( new Action(
|
|
387
|
+
'addConditionalBreakpoint',
|
|
388
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'addConditionalBreakpoint', "Add Conditional Breakpoint..."),
|
|
389
|
+
undefined,
|
|
390
|
+
true,
|
|
391
|
+
() => Promise.resolve(this.showBreakpointWidget(lineNumber, column, 0 ))
|
|
392
|
+
)));
|
|
393
|
+
actions.push(( new Action(
|
|
394
|
+
'addLogPoint',
|
|
395
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'addLogPoint', "Add Logpoint..."),
|
|
396
|
+
undefined,
|
|
397
|
+
true,
|
|
398
|
+
() => Promise.resolve(this.showBreakpointWidget(lineNumber, column, 2 ))
|
|
399
|
+
)));
|
|
372
400
|
}
|
|
373
401
|
if (this.debugService.state === 2 ) {
|
|
374
402
|
actions.push(( new Separator()));
|
|
375
|
-
actions.push(( new Action(
|
|
403
|
+
actions.push(( new Action(
|
|
404
|
+
'runToLine',
|
|
405
|
+
nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'runToLine', "Run to Line"),
|
|
406
|
+
undefined,
|
|
407
|
+
true,
|
|
408
|
+
() => this.debugService.runTo(uri, lineNumber).catch(onUnexpectedError)
|
|
409
|
+
)));
|
|
376
410
|
}
|
|
377
411
|
return actions;
|
|
378
412
|
}
|
|
@@ -707,22 +741,10 @@ registerThemingParticipant((theme, collector) => {
|
|
|
707
741
|
`);
|
|
708
742
|
}
|
|
709
743
|
});
|
|
710
|
-
const debugIconBreakpointForeground = registerColor('debugIcon.breakpointForeground', { dark: '#E51400', light: '#E51400', hcDark: '#E51400', hcLight: '#E51400' },
|
|
711
|
-
const debugIconBreakpointDisabledForeground = registerColor('debugIcon.breakpointDisabledForeground', { dark: '#848484', light: '#848484', hcDark: '#848484', hcLight: '#848484' }, (
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
))
|
|
715
|
-
const debugIconBreakpointUnverifiedForeground = registerColor('debugIcon.breakpointUnverifiedForeground', { dark: '#848484', light: '#848484', hcDark: '#848484', hcLight: '#848484' }, ( nls.localize(
|
|
716
|
-
'debugIcon.breakpointUnverifiedForeground',
|
|
717
|
-
'Icon color for unverified breakpoints.'
|
|
718
|
-
)));
|
|
719
|
-
const debugIconBreakpointCurrentStackframeForeground = registerColor('debugIcon.breakpointCurrentStackframeForeground', { dark: '#FFCC00', light: '#BE8700', hcDark: '#FFCC00', hcLight: '#BE8700' }, ( nls.localize(
|
|
720
|
-
'debugIcon.breakpointCurrentStackframeForeground',
|
|
721
|
-
'Icon color for the current breakpoint stack frame.'
|
|
722
|
-
)));
|
|
723
|
-
const debugIconBreakpointStackframeForeground = registerColor('debugIcon.breakpointStackframeForeground', { dark: '#89D185', light: '#89D185', hcDark: '#89D185', hcLight: '#89D185' }, ( nls.localize(
|
|
724
|
-
'debugIcon.breakpointStackframeForeground',
|
|
725
|
-
'Icon color for all breakpoint stack frames.'
|
|
726
|
-
)));
|
|
744
|
+
const debugIconBreakpointForeground = registerColor('debugIcon.breakpointForeground', { dark: '#E51400', light: '#E51400', hcDark: '#E51400', hcLight: '#E51400' }, nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'debugIcon.breakpointForeground', 'Icon color for breakpoints.'));
|
|
745
|
+
const debugIconBreakpointDisabledForeground = registerColor('debugIcon.breakpointDisabledForeground', { dark: '#848484', light: '#848484', hcDark: '#848484', hcLight: '#848484' }, nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'debugIcon.breakpointDisabledForeground', 'Icon color for disabled breakpoints.'));
|
|
746
|
+
const debugIconBreakpointUnverifiedForeground = registerColor('debugIcon.breakpointUnverifiedForeground', { dark: '#848484', light: '#848484', hcDark: '#848484', hcLight: '#848484' }, nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'debugIcon.breakpointUnverifiedForeground', 'Icon color for unverified breakpoints.'));
|
|
747
|
+
const debugIconBreakpointCurrentStackframeForeground = registerColor('debugIcon.breakpointCurrentStackframeForeground', { dark: '#FFCC00', light: '#BE8700', hcDark: '#FFCC00', hcLight: '#BE8700' }, nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'debugIcon.breakpointCurrentStackframeForeground', 'Icon color for the current breakpoint stack frame.'));
|
|
748
|
+
const debugIconBreakpointStackframeForeground = registerColor('debugIcon.breakpointStackframeForeground', { dark: '#89D185', light: '#89D185', hcDark: '#89D185', hcLight: '#89D185' }, nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointEditorContribution', 'debugIcon.breakpointStackframeForeground', 'Icon color for all breakpoint stack frames.'));
|
|
727
749
|
|
|
728
750
|
export { BreakpointEditorContribution, createBreakpointDecorations, debugIconBreakpointForeground };
|
|
@@ -108,32 +108,11 @@ 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 (
|
|
112
|
-
(nls.localize(
|
|
113
|
-
'breakpointWidgetLogMessagePlaceholder',
|
|
114
|
-
"Message to log when breakpoint is hit. Expressions within {} are interpolated. '{0}' to accept, '{1}' to cancel.",
|
|
115
|
-
acceptString,
|
|
116
|
-
closeString
|
|
117
|
-
))
|
|
118
|
-
);
|
|
111
|
+
return nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointWidget', 'breakpointWidgetLogMessagePlaceholder', "Message to log when breakpoint is hit. Expressions within {} are interpolated. '{0}' to accept, '{1}' to cancel.", acceptString, closeString);
|
|
119
112
|
case 1 :
|
|
120
|
-
return (
|
|
121
|
-
(nls.localize(
|
|
122
|
-
'breakpointWidgetHitCountPlaceholder',
|
|
123
|
-
"Break when hit count condition is met. '{0}' to accept, '{1}' to cancel.",
|
|
124
|
-
acceptString,
|
|
125
|
-
closeString
|
|
126
|
-
))
|
|
127
|
-
);
|
|
113
|
+
return nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointWidget', 'breakpointWidgetHitCountPlaceholder', "Break when hit count condition is met. '{0}' to accept, '{1}' to cancel.", acceptString, closeString);
|
|
128
114
|
default:
|
|
129
|
-
return (
|
|
130
|
-
(nls.localize(
|
|
131
|
-
'breakpointWidgetExpressionPlaceholder',
|
|
132
|
-
"Break when expression evaluates to true. '{0}' to accept, '{1}' to cancel.",
|
|
133
|
-
acceptString,
|
|
134
|
-
closeString
|
|
135
|
-
))
|
|
136
|
-
);
|
|
115
|
+
return nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointWidget', 'breakpointWidgetExpressionPlaceholder', "Break when expression evaluates to true. '{0}' to accept, '{1}' to cancel.", acceptString, closeString);
|
|
137
116
|
}
|
|
138
117
|
}
|
|
139
118
|
getInputValue(breakpoint) {
|
|
@@ -176,11 +155,11 @@ let BreakpointWidget = class BreakpointWidget extends ZoneWidget {
|
|
|
176
155
|
_fillContainer(container) {
|
|
177
156
|
this.setCssClass('breakpoint-widget');
|
|
178
157
|
const selectBox = ( (new SelectBox(
|
|
179
|
-
[{ text:
|
|
158
|
+
[{ text: nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointWidget', 'expression', "Expression") }, { text: nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointWidget', 'hitCount', "Hit Count") }, { text: nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointWidget', 'logMessage', "Log Message") }],
|
|
180
159
|
this.context,
|
|
181
160
|
this.contextViewService,
|
|
182
161
|
defaultSelectBoxStyles,
|
|
183
|
-
{ ariaLabel:
|
|
162
|
+
{ ariaLabel: nls.localizeWithPath('vs/workbench/contrib/debug/browser/breakpointWidget', 'breakpointType', 'Breakpoint Type') }
|
|
184
163
|
)));
|
|
185
164
|
this.selectContainer = $('.breakpoint-select-container');
|
|
186
165
|
selectBox.render(dom.append(container, this.selectContainer));
|