@codingame/monaco-vscode-debug-service-override 9.0.0 → 9.0.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/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +107 -107
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -11
- 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 +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/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/exceptionWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- 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/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- 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.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -559,7 +559,7 @@ class LoadedScriptsRenderer {
|
|
|
559
559
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
560
560
|
}
|
|
561
561
|
else if (element instanceof SessionTreeItem) {
|
|
562
|
-
options.title = ( localize(
|
|
562
|
+
options.title = ( localize(6034, "Debug Session"));
|
|
563
563
|
options.hideIcon = true;
|
|
564
564
|
}
|
|
565
565
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -581,20 +581,20 @@ class LoadedScriptsRenderer {
|
|
|
581
581
|
}
|
|
582
582
|
class LoadedSciptsAccessibilityProvider {
|
|
583
583
|
getWidgetAriaLabel() {
|
|
584
|
-
return ( localize(
|
|
584
|
+
return ( localize(6035, "Debug Loaded Scripts"));
|
|
585
585
|
}
|
|
586
586
|
getAriaLabel(element) {
|
|
587
587
|
if (element instanceof RootFolderTreeItem) {
|
|
588
|
-
return ( localize(
|
|
588
|
+
return ( localize(6036, "Workspace folder {0}, loaded script, debug", element.getLabel()));
|
|
589
589
|
}
|
|
590
590
|
if (element instanceof SessionTreeItem) {
|
|
591
|
-
return ( localize(
|
|
591
|
+
return ( localize(6037, "Session {0}, loaded script, debug", element.getLabel()));
|
|
592
592
|
}
|
|
593
593
|
if (element.hasChildren()) {
|
|
594
|
-
return ( localize(
|
|
594
|
+
return ( localize(6038, "Folder {0}, loaded script, debug", element.getLabel()));
|
|
595
595
|
}
|
|
596
596
|
else {
|
|
597
|
-
return ( localize(
|
|
597
|
+
return ( localize(6039, "{0}, loaded script, debug", element.getLabel()));
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
}
|
|
@@ -621,7 +621,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
621
621
|
super({
|
|
622
622
|
id: 'loadedScripts.collapse',
|
|
623
623
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
624
|
-
title: ( localize(
|
|
624
|
+
title: ( localize(6040, "Collapse All")),
|
|
625
625
|
f1: false,
|
|
626
626
|
icon: Codicon.collapseAll,
|
|
627
627
|
menu: {
|
|
@@ -193,7 +193,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
193
193
|
}
|
|
194
194
|
async start() {
|
|
195
195
|
if (!this.debugAdapter) {
|
|
196
|
-
return Promise.reject(( (new Error(( localize(
|
|
196
|
+
return Promise.reject(( (new Error(( localize(10261, "No debug adapter, can not start debug session."))))));
|
|
197
197
|
}
|
|
198
198
|
await this.debugAdapter.startSession();
|
|
199
199
|
this.startTime = ( (new Date())).getTime();
|
|
@@ -517,10 +517,10 @@ let RawDebugSession = class RawDebugSession {
|
|
|
517
517
|
const { confirmed } = await this.dialogSerivce.confirm({
|
|
518
518
|
type: Severity$1.Warning,
|
|
519
519
|
message: ( localize(
|
|
520
|
-
|
|
520
|
+
10262,
|
|
521
521
|
"The debugger needs to open a new tab or window for the debuggee but the browser prevented this. You must give permission to continue."
|
|
522
522
|
)),
|
|
523
|
-
primaryButton: ( localize(
|
|
523
|
+
primaryButton: ( localize(10263, "&&Continue"))
|
|
524
524
|
});
|
|
525
525
|
if (confirmed) {
|
|
526
526
|
result = await this.launchVsCode(request.arguments);
|
|
@@ -620,7 +620,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
620
620
|
completeDispatch(undefined);
|
|
621
621
|
}
|
|
622
622
|
else {
|
|
623
|
-
errorDispatch(( (new Error(( localize(
|
|
623
|
+
errorDispatch(( (new Error(( localize(10264, "No debugger available found. Can not send '{0}'.", command))))));
|
|
624
624
|
}
|
|
625
625
|
return;
|
|
626
626
|
}
|
|
@@ -653,7 +653,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
653
653
|
const userMessage = error ? formatPII(error.format, false, error.variables) : errorMessage;
|
|
654
654
|
const url = error?.url;
|
|
655
655
|
if (error && url) {
|
|
656
|
-
const label = error.urlLabel ? error.urlLabel : ( localize(
|
|
656
|
+
const label = error.urlLabel ? error.urlLabel : ( localize(10265, "More Info"));
|
|
657
657
|
const uri = ( (URI.parse(url)));
|
|
658
658
|
const actionId = uri.scheme === Schemas.command ? 'debug.moreInfo.command' : 'debug.moreInfo';
|
|
659
659
|
return createErrorWithActions(userMessage, [toAction({ id: actionId, label, run: () => this.openerService.open(uri, { allowCommands: true }) })]);
|
|
@@ -98,7 +98,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
98
98
|
super({
|
|
99
99
|
...options,
|
|
100
100
|
filterOptions: {
|
|
101
|
-
placeholder: ( localize(
|
|
101
|
+
placeholder: ( localize(6041, "Filter (e.g. text, !exclude, \\escape)")),
|
|
102
102
|
text: filterText,
|
|
103
103
|
history: JSON.parse(storageService.get(FILTER_HISTORY_STORAGE_KEY, StorageScope.WORKSPACE, '[]')),
|
|
104
104
|
}
|
|
@@ -504,7 +504,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
504
504
|
await autoExpandElements(session.getReplElements());
|
|
505
505
|
}
|
|
506
506
|
const { total, filtered } = this.getFilterStats();
|
|
507
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
507
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(6042, "Showing {0} of {1}", filtered, total)));
|
|
508
508
|
}, Repl_1.REFRESH_DELAY))
|
|
509
509
|
);
|
|
510
510
|
}
|
|
@@ -627,17 +627,17 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
627
627
|
this._register(addStandardDisposableListener(this.replInputContainer, EventType.BLUR, () => this.replInputContainer.classList.remove('synthetic-focus')));
|
|
628
628
|
}
|
|
629
629
|
getAriaLabel() {
|
|
630
|
-
let ariaLabel = ( localize(
|
|
630
|
+
let ariaLabel = ( localize(6043, "Debug Console"));
|
|
631
631
|
if (!this.configurationService.getValue(AccessibilityVerbositySettingId.Debug)) {
|
|
632
632
|
return ariaLabel;
|
|
633
633
|
}
|
|
634
634
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getAriaLabel();
|
|
635
635
|
if (keybinding) {
|
|
636
|
-
ariaLabel = ( localize(
|
|
636
|
+
ariaLabel = ( localize(6044, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
637
637
|
}
|
|
638
638
|
else {
|
|
639
639
|
ariaLabel = ( localize(
|
|
640
|
-
|
|
640
|
+
6045,
|
|
641
641
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
642
642
|
ariaLabel
|
|
643
643
|
));
|
|
@@ -677,7 +677,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
677
677
|
},
|
|
678
678
|
renderOptions: {
|
|
679
679
|
after: {
|
|
680
|
-
contentText: ( localize(
|
|
680
|
+
contentText: ( localize(6046, "Please start a debug session to evaluate expressions")),
|
|
681
681
|
color: transparentForeground ? ( (transparentForeground.toString())) : undefined
|
|
682
682
|
}
|
|
683
683
|
}
|
|
@@ -790,7 +790,7 @@ class AcceptReplInputAction extends EditorAction {
|
|
|
790
790
|
constructor() {
|
|
791
791
|
super({
|
|
792
792
|
id: 'repl.action.acceptInput',
|
|
793
|
-
label: ( localize(
|
|
793
|
+
label: ( localize(6047, "Debug Console: Accept Input")),
|
|
794
794
|
alias: 'Debug Console: Accept Input',
|
|
795
795
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
796
796
|
kbOpts: {
|
|
@@ -811,7 +811,7 @@ class FilterReplAction extends ViewAction {
|
|
|
811
811
|
super({
|
|
812
812
|
viewId: REPL_VIEW_ID,
|
|
813
813
|
id: 'repl.action.filter',
|
|
814
|
-
title: ( localize(
|
|
814
|
+
title: ( localize(6048, "Debug Console: Focus Filter")),
|
|
815
815
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
816
816
|
keybinding: [{
|
|
817
817
|
when: EditorContextKeys.textInputFocus,
|
|
@@ -829,7 +829,7 @@ class FindReplAction extends ViewAction {
|
|
|
829
829
|
super({
|
|
830
830
|
viewId: REPL_VIEW_ID,
|
|
831
831
|
id: 'repl.action.find',
|
|
832
|
-
title: ( localize(
|
|
832
|
+
title: ( localize(6049, "Debug Console: Focus Find")),
|
|
833
833
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
834
834
|
keybinding: [{
|
|
835
835
|
when: ( (ContextKeyExpr.or(
|
|
@@ -860,7 +860,7 @@ class ReplCopyAllAction extends EditorAction {
|
|
|
860
860
|
constructor() {
|
|
861
861
|
super({
|
|
862
862
|
id: 'repl.action.copyAll',
|
|
863
|
-
label: ( localize(
|
|
863
|
+
label: ( localize(6050, "Debug: Console Copy All")),
|
|
864
864
|
alias: 'Debug Console Copy All',
|
|
865
865
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
866
866
|
});
|
|
@@ -897,7 +897,7 @@ registerAction2(class extends ViewAction {
|
|
|
897
897
|
super({
|
|
898
898
|
id: selectReplCommandId,
|
|
899
899
|
viewId: REPL_VIEW_ID,
|
|
900
|
-
title: ( localize(
|
|
900
|
+
title: ( localize(6051, "Select Debug Console")),
|
|
901
901
|
f1: false,
|
|
902
902
|
menu: {
|
|
903
903
|
id: MenuId.ViewTitle,
|
|
@@ -929,9 +929,9 @@ registerAction2(class extends ViewAction {
|
|
|
929
929
|
super({
|
|
930
930
|
id: 'workbench.debug.panel.action.clearReplAction',
|
|
931
931
|
viewId: REPL_VIEW_ID,
|
|
932
|
-
title: ( localize2(
|
|
932
|
+
title: ( localize2(6052, 'Clear Console')),
|
|
933
933
|
metadata: {
|
|
934
|
-
description: ( localize2(
|
|
934
|
+
description: ( localize2(6053, 'Clears all program output from your debug REPL'))
|
|
935
935
|
},
|
|
936
936
|
f1: true,
|
|
937
937
|
icon: debugConsoleClearAll,
|
|
@@ -963,7 +963,7 @@ registerAction2(class extends ViewAction {
|
|
|
963
963
|
constructor() {
|
|
964
964
|
super({
|
|
965
965
|
id: 'debug.collapseRepl',
|
|
966
|
-
title: ( localize(
|
|
966
|
+
title: ( localize(6054, "Collapse All")),
|
|
967
967
|
viewId: REPL_VIEW_ID,
|
|
968
968
|
menu: {
|
|
969
969
|
id: MenuId.DebugConsoleContext,
|
|
@@ -981,7 +981,7 @@ registerAction2(class extends ViewAction {
|
|
|
981
981
|
constructor() {
|
|
982
982
|
super({
|
|
983
983
|
id: 'debug.replPaste',
|
|
984
|
-
title: ( localize(
|
|
984
|
+
title: ( localize(6055, "Paste")),
|
|
985
985
|
viewId: REPL_VIEW_ID,
|
|
986
986
|
precondition: ( (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Inactive)))),
|
|
987
987
|
menu: {
|
|
@@ -1011,7 +1011,7 @@ registerAction2(class extends ViewAction {
|
|
|
1011
1011
|
constructor() {
|
|
1012
1012
|
super({
|
|
1013
1013
|
id: 'workbench.debug.action.copyAll',
|
|
1014
|
-
title: ( localize(
|
|
1014
|
+
title: ( localize(6056, "Copy All")),
|
|
1015
1015
|
viewId: REPL_VIEW_ID,
|
|
1016
1016
|
menu: {
|
|
1017
1017
|
id: MenuId.DebugConsoleContext,
|
|
@@ -1029,7 +1029,7 @@ registerAction2(class extends Action2 {
|
|
|
1029
1029
|
constructor() {
|
|
1030
1030
|
super({
|
|
1031
1031
|
id: 'debug.replCopy',
|
|
1032
|
-
title: ( localize(
|
|
1032
|
+
title: ( localize(6057, "Copy")),
|
|
1033
1033
|
menu: {
|
|
1034
1034
|
id: MenuId.DebugConsoleContext,
|
|
1035
1035
|
group: '2_cutcopypaste',
|
|
@@ -43,41 +43,41 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
43
43
|
provideContent() {
|
|
44
44
|
return [
|
|
45
45
|
( localize(
|
|
46
|
-
|
|
46
|
+
6094,
|
|
47
47
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
48
48
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
49
49
|
)),
|
|
50
50
|
( localize(
|
|
51
|
-
|
|
51
|
+
6095,
|
|
52
52
|
"The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
|
|
53
53
|
'<keybinding:widgetNavigation.focusPrevious>'
|
|
54
54
|
)),
|
|
55
55
|
( localize(
|
|
56
|
-
|
|
56
|
+
6096,
|
|
57
57
|
"The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
|
|
58
58
|
'<keybinding:widgetNavigation.focusNext>'
|
|
59
59
|
)),
|
|
60
60
|
( localize(
|
|
61
|
-
|
|
61
|
+
6097,
|
|
62
62
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
63
63
|
)),
|
|
64
64
|
( localize(
|
|
65
|
-
|
|
65
|
+
6098,
|
|
66
66
|
"The Open Accessible View command{0} will allow character by character navigation of the console output.",
|
|
67
67
|
'<keybinding:editor.action.accessibleView>'
|
|
68
68
|
)),
|
|
69
69
|
( localize(
|
|
70
|
-
|
|
70
|
+
6099,
|
|
71
71
|
"The Show Run and Debug view command{0} will open the Run and Debug view and provides more information about debugging.",
|
|
72
72
|
'<keybinding:workbench.view.debug>'
|
|
73
73
|
)),
|
|
74
74
|
( localize(
|
|
75
|
-
|
|
75
|
+
6100,
|
|
76
76
|
"The Debug: Clear Console command{0} will clear the console output.",
|
|
77
77
|
'<keybinding:workbench.debug.panel.action.clearReplAction>'
|
|
78
78
|
)),
|
|
79
79
|
( localize(
|
|
80
|
-
|
|
80
|
+
6101,
|
|
81
81
|
"The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
|
|
82
82
|
)),
|
|
83
83
|
].join('\n');
|
|
@@ -306,25 +306,25 @@ class ReplDataSource {
|
|
|
306
306
|
}
|
|
307
307
|
class ReplAccessibilityProvider {
|
|
308
308
|
getWidgetAriaLabel() {
|
|
309
|
-
return ( localize(
|
|
309
|
+
return ( localize(10303, "Debug Console"));
|
|
310
310
|
}
|
|
311
311
|
getAriaLabel(element) {
|
|
312
312
|
if (element instanceof Variable) {
|
|
313
|
-
return ( localize(
|
|
313
|
+
return ( localize(10304, "Variable {0}, value {1}", element.name, element.value));
|
|
314
314
|
}
|
|
315
315
|
if (element instanceof ReplOutputElement || element instanceof ReplEvaluationInput || element instanceof ReplEvaluationResult) {
|
|
316
|
-
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(
|
|
316
|
+
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(10305, ", occurred {0} times", element.count)) : '');
|
|
317
317
|
}
|
|
318
318
|
if (element instanceof RawObjectReplElement) {
|
|
319
319
|
return ( localize(
|
|
320
|
-
|
|
320
|
+
10306,
|
|
321
321
|
"Debug console variable {0}, value {1}",
|
|
322
322
|
element.name,
|
|
323
323
|
element.value
|
|
324
324
|
));
|
|
325
325
|
}
|
|
326
326
|
if (element instanceof ReplGroup) {
|
|
327
|
-
return ( localize(
|
|
327
|
+
return ( localize(10307, "Debug console group {0}", element.name));
|
|
328
328
|
}
|
|
329
329
|
return '';
|
|
330
330
|
}
|
|
@@ -57,79 +57,79 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
57
57
|
provideContent() {
|
|
58
58
|
return [
|
|
59
59
|
( localize(
|
|
60
|
-
|
|
60
|
+
6102,
|
|
61
61
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
62
62
|
'<keybinding:workbench.view.debug>'
|
|
63
63
|
)),
|
|
64
64
|
( localize(
|
|
65
|
-
|
|
65
|
+
6103,
|
|
66
66
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
67
67
|
'<keybinding:workbench.action.debug.start>'
|
|
68
68
|
)),
|
|
69
69
|
( localize(
|
|
70
|
-
|
|
70
|
+
6104,
|
|
71
71
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
72
72
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
73
73
|
)),
|
|
74
74
|
AccessibilityHelpNLS.setBreakpoint,
|
|
75
75
|
AccessibilityHelpNLS.addToWatch,
|
|
76
|
-
( localize(
|
|
76
|
+
( localize(6105, "Once debugging, the following commands will be available:")),
|
|
77
77
|
( localize(
|
|
78
|
-
|
|
78
|
+
6106,
|
|
79
79
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
80
80
|
'<keybinding:workbench.action.debug.restart>'
|
|
81
81
|
)),
|
|
82
82
|
( localize(
|
|
83
|
-
|
|
83
|
+
6107,
|
|
84
84
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
85
85
|
'<keybinding:workbench.action.debug.stop>'
|
|
86
86
|
)),
|
|
87
87
|
( localize(
|
|
88
|
-
|
|
88
|
+
6108,
|
|
89
89
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
90
90
|
'<keybinding:workbench.action.debug.continue>'
|
|
91
91
|
)),
|
|
92
92
|
( localize(
|
|
93
|
-
|
|
93
|
+
6109,
|
|
94
94
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
95
95
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
96
96
|
)),
|
|
97
97
|
( localize(
|
|
98
|
-
|
|
98
|
+
6110,
|
|
99
99
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
100
100
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
101
101
|
)),
|
|
102
102
|
( localize(
|
|
103
|
-
|
|
103
|
+
6111,
|
|
104
104
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
105
105
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
106
106
|
)),
|
|
107
107
|
( localize(
|
|
108
|
-
|
|
108
|
+
6112,
|
|
109
109
|
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
|
|
110
110
|
)),
|
|
111
111
|
( localize(
|
|
112
|
-
|
|
112
|
+
6113,
|
|
113
113
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
114
114
|
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
115
115
|
)),
|
|
116
116
|
( localize(
|
|
117
|
-
|
|
117
|
+
6114,
|
|
118
118
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
119
119
|
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
120
120
|
)),
|
|
121
121
|
( localize(
|
|
122
|
-
|
|
122
|
+
6115,
|
|
123
123
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
124
124
|
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
125
125
|
)),
|
|
126
126
|
( localize(
|
|
127
|
-
|
|
127
|
+
6116,
|
|
128
128
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
129
129
|
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
130
130
|
)),
|
|
131
131
|
( localize(
|
|
132
|
-
|
|
132
|
+
6117,
|
|
133
133
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
134
134
|
'accessibility.debugWatchVariableAnnouncements'
|
|
135
135
|
)),
|
|
@@ -26,7 +26,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
26
26
|
hcDark: '#BA592C',
|
|
27
27
|
hcLight: '#B5200D'
|
|
28
28
|
}, ( localize(
|
|
29
|
-
|
|
29
|
+
6058,
|
|
30
30
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
31
31
|
)));
|
|
32
32
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -35,14 +35,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
35
35
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
36
36
|
hcLight: '#FFFFFF'
|
|
37
37
|
}, ( localize(
|
|
38
|
-
|
|
38
|
+
6059,
|
|
39
39
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
40
40
|
)));
|
|
41
41
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
42
|
-
|
|
42
|
+
6060,
|
|
43
43
|
"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"
|
|
44
44
|
)));
|
|
45
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localize(
|
|
45
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localize(6061, "Command center background color when a program is being debugged")), true);
|
|
46
46
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
47
47
|
set enabled(enabled) {
|
|
48
48
|
if (enabled === !!this.disposable) {
|
|
@@ -364,7 +364,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
364
364
|
const viz = expression;
|
|
365
365
|
return {
|
|
366
366
|
initialValue: expression.value,
|
|
367
|
-
ariaLabel: ( localize(
|
|
367
|
+
ariaLabel: ( localize(6062, "Type new variable value")),
|
|
368
368
|
validationOptions: {
|
|
369
369
|
validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
|
|
370
370
|
},
|
|
@@ -387,7 +387,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
387
387
|
const primary = [];
|
|
388
388
|
createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
|
|
389
389
|
if (viz.original) {
|
|
390
|
-
const action = ( (new Action('debugViz', ( localize(
|
|
390
|
+
const action = ( (new Action('debugViz', ( localize(6063, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined))));
|
|
391
391
|
action.checked = true;
|
|
392
392
|
primary.push(action);
|
|
393
393
|
actionBar.domNode.style.display = 'initial';
|
|
@@ -437,7 +437,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
437
437
|
const variable = expression;
|
|
438
438
|
return {
|
|
439
439
|
initialValue: expression.value,
|
|
440
|
-
ariaLabel: ( localize(
|
|
440
|
+
ariaLabel: ( localize(6062, "Type new variable value")),
|
|
441
441
|
validationOptions: {
|
|
442
442
|
validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
|
|
443
443
|
},
|
|
@@ -481,7 +481,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
481
481
|
actionBar.push(actions[0], { icon: true, label: false });
|
|
482
482
|
}
|
|
483
483
|
else {
|
|
484
|
-
actionBar.push(( (new Action('debugViz', ( localize(
|
|
484
|
+
actionBar.push(( (new Action('debugViz', ( localize(6064, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data)))), { icon: true, label: false });
|
|
485
485
|
}
|
|
486
486
|
});
|
|
487
487
|
}
|
|
@@ -522,14 +522,14 @@ VariablesRenderer = VariablesRenderer_1 = ( (__decorate([
|
|
|
522
522
|
], VariablesRenderer)));
|
|
523
523
|
class VariablesAccessibilityProvider {
|
|
524
524
|
getWidgetAriaLabel() {
|
|
525
|
-
return ( localize(
|
|
525
|
+
return ( localize(6065, "Debug Variables"));
|
|
526
526
|
}
|
|
527
527
|
getAriaLabel(element) {
|
|
528
528
|
if (element instanceof Scope) {
|
|
529
|
-
return ( localize(
|
|
529
|
+
return ( localize(6066, "Scope {0}", element.name));
|
|
530
530
|
}
|
|
531
531
|
if (element instanceof Variable) {
|
|
532
|
-
return ( localize(
|
|
532
|
+
return ( localize(6067, "{0}, value {1}", element.name, element.value));
|
|
533
533
|
}
|
|
534
534
|
return null;
|
|
535
535
|
}
|
|
@@ -632,7 +632,7 @@ CommandsRegistry.registerCommand({
|
|
|
632
632
|
async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
|
|
633
633
|
try {
|
|
634
634
|
await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
|
|
635
|
-
justification: ( localize(
|
|
635
|
+
justification: ( localize(6068, "Inspecting binary data requires this extension.")),
|
|
636
636
|
enable: true
|
|
637
637
|
}, ProgressLocation.Notification);
|
|
638
638
|
return true;
|
|
@@ -697,7 +697,7 @@ registerAction2(class extends ViewAction {
|
|
|
697
697
|
super({
|
|
698
698
|
id: 'variables.collapse',
|
|
699
699
|
viewId: VARIABLES_VIEW_ID,
|
|
700
|
-
title: ( localize(
|
|
700
|
+
title: ( localize(6069, "Collapse All")),
|
|
701
701
|
f1: false,
|
|
702
702
|
icon: Codicon.collapseAll,
|
|
703
703
|
menu: {
|
|
@@ -282,7 +282,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
282
282
|
if (settingValue) {
|
|
283
283
|
return {
|
|
284
284
|
initialValue: expression.value,
|
|
285
|
-
ariaLabel: ( localize(
|
|
285
|
+
ariaLabel: ( localize(6070, "Type new value")),
|
|
286
286
|
onFinish: async (value, success) => {
|
|
287
287
|
if (success && value) {
|
|
288
288
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -296,8 +296,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
296
296
|
}
|
|
297
297
|
return {
|
|
298
298
|
initialValue: expression.name ? expression.name : '',
|
|
299
|
-
ariaLabel: ( localize(
|
|
300
|
-
placeholder: ( localize(
|
|
299
|
+
ariaLabel: ( localize(6071, "Type watch expression")),
|
|
300
|
+
placeholder: ( localize(6072, "Expression to watch")),
|
|
301
301
|
onFinish: (value, success) => {
|
|
302
302
|
if (success && value) {
|
|
303
303
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -338,13 +338,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
|
338
338
|
}
|
|
339
339
|
class WatchExpressionsAccessibilityProvider {
|
|
340
340
|
getWidgetAriaLabel() {
|
|
341
|
-
return ( localize(
|
|
341
|
+
return ( localize(6073, "Debug Watch Expressions"));
|
|
342
342
|
}
|
|
343
343
|
getAriaLabel(element) {
|
|
344
344
|
if (element instanceof Expression) {
|
|
345
|
-
return ( localize(
|
|
345
|
+
return ( localize(6074, "{0}, value {1}", element.name, element.value));
|
|
346
346
|
}
|
|
347
|
-
return ( localize(
|
|
347
|
+
return ( localize(6075, "{0}, value {1}", element.name, element.value));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
class WatchExpressionsDragAndDrop {
|
|
@@ -425,7 +425,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
425
425
|
super({
|
|
426
426
|
id: 'watch.collapse',
|
|
427
427
|
viewId: WATCH_VIEW_ID,
|
|
428
|
-
title: ( localize(
|
|
428
|
+
title: ( localize(6076, "Collapse All")),
|
|
429
429
|
f1: false,
|
|
430
430
|
icon: Codicon.collapseAll,
|
|
431
431
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -442,7 +442,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
445
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
445
|
+
const ADD_WATCH_LABEL = ( localize(6077, "Add Expression"));
|
|
446
446
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
447
447
|
constructor() {
|
|
448
448
|
super({
|
|
@@ -463,7 +463,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
466
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
466
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(6078, "Remove All Expressions"));
|
|
467
467
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
468
468
|
constructor() {
|
|
469
469
|
super({
|
|
@@ -31,7 +31,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( (new RawContextKey(debugStartLanguageKey,
|
|
|
31
31
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( (new RawContextKey('debuggerInterestedInActiveEditor', false)));
|
|
32
32
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
33
33
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
34
|
-
static { this.LABEL = ( localize2(
|
|
34
|
+
static { this.LABEL = ( localize2(6079, "Run")); }
|
|
35
35
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, telemetryService, hoverService) {
|
|
36
36
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
37
37
|
this.debugService = debugService;
|
|
@@ -102,7 +102,7 @@ WelcomeView = ( (__decorate([
|
|
|
102
102
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
103
103
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
104
104
|
content: ( localize(
|
|
105
|
-
|
|
105
|
+
6080,
|
|
106
106
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
107
107
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
|
|
108
108
|
)),
|
|
@@ -114,20 +114,20 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
114
114
|
});
|
|
115
115
|
let debugKeybindingLabel = '';
|
|
116
116
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
117
|
-
content: `[${( localize(
|
|
117
|
+
content: `[${( localize(6081, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
118
118
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
119
119
|
group: ViewContentGroups.Debug,
|
|
120
120
|
order: 1
|
|
121
121
|
});
|
|
122
122
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
123
|
-
content: `[${( localize(
|
|
123
|
+
content: `[${( localize(6082, "Show all automatic debug configurations"))}](command:${SELECT_AND_START_ID}).`,
|
|
124
124
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
125
125
|
group: ViewContentGroups.Debug,
|
|
126
126
|
order: 10
|
|
127
127
|
});
|
|
128
128
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
129
129
|
content: ( localize(
|
|
130
|
-
|
|
130
|
+
6083,
|
|
131
131
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
132
132
|
DEBUG_CONFIGURE_COMMAND_ID
|
|
133
133
|
)),
|
|
@@ -139,7 +139,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
139
139
|
});
|
|
140
140
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
141
141
|
content: ( localize(
|
|
142
|
-
|
|
142
|
+
6084,
|
|
143
143
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
144
144
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
|
|
145
145
|
)),
|
|
@@ -151,7 +151,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
151
151
|
});
|
|
152
152
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
153
153
|
content: ( localize(
|
|
154
|
-
|
|
154
|
+
6085,
|
|
155
155
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
156
156
|
)),
|
|
157
157
|
when: ( (CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated())),
|
|
@@ -49,14 +49,14 @@ let DebugContentProvider = class DebugContentProvider {
|
|
|
49
49
|
session = this.debugService.getViewModel().focusedSession;
|
|
50
50
|
}
|
|
51
51
|
if (!session) {
|
|
52
|
-
return Promise.reject(( (new ErrorNoTelemetry(( localize(
|
|
52
|
+
return Promise.reject(( (new ErrorNoTelemetry(( localize(6086, "Unable to resolve the resource without a debug session"))))));
|
|
53
53
|
}
|
|
54
54
|
const createErrModel = (errMsg) => {
|
|
55
55
|
this.debugService.sourceIsNotAvailable(resource);
|
|
56
56
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
57
57
|
const message = errMsg
|
|
58
|
-
? ( localize(
|
|
59
|
-
: ( localize(
|
|
58
|
+
? ( localize(6087, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
59
|
+
: ( localize(6088, "Could not load source '{0}'.", resource.path));
|
|
60
60
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
61
61
|
};
|
|
62
62
|
return session.loadSource(resource).then(response => {
|