@codingame/monaco-vscode-debug-service-override 14.0.2 → 14.0.4
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 +16 -16
- 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 +12 -12
- 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 +21 -18
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +44 -44
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
|
@@ -565,7 +565,7 @@ class LoadedScriptsRenderer {
|
|
|
565
565
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
566
566
|
}
|
|
567
567
|
else if (element instanceof SessionTreeItem) {
|
|
568
|
-
options.title = ( localize(
|
|
568
|
+
options.title = ( localize(5578, "Debug Session"));
|
|
569
569
|
options.hideIcon = true;
|
|
570
570
|
}
|
|
571
571
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -587,20 +587,20 @@ class LoadedScriptsRenderer {
|
|
|
587
587
|
}
|
|
588
588
|
class LoadedSciptsAccessibilityProvider {
|
|
589
589
|
getWidgetAriaLabel() {
|
|
590
|
-
return localize(
|
|
590
|
+
return localize(5579, "Debug Loaded Scripts");
|
|
591
591
|
}
|
|
592
592
|
getAriaLabel(element) {
|
|
593
593
|
if (element instanceof RootFolderTreeItem) {
|
|
594
|
-
return localize(
|
|
594
|
+
return localize(5580, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
595
595
|
}
|
|
596
596
|
if (element instanceof SessionTreeItem) {
|
|
597
|
-
return localize(
|
|
597
|
+
return localize(5581, "Session {0}, loaded script, debug", element.getLabel());
|
|
598
598
|
}
|
|
599
599
|
if (element.hasChildren()) {
|
|
600
|
-
return localize(
|
|
600
|
+
return localize(5582, "Folder {0}, loaded script, debug", element.getLabel());
|
|
601
601
|
}
|
|
602
602
|
else {
|
|
603
|
-
return localize(
|
|
603
|
+
return localize(5583, "{0}, loaded script, debug", element.getLabel());
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
}
|
|
@@ -627,7 +627,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
627
627
|
super({
|
|
628
628
|
id: 'loadedScripts.collapse',
|
|
629
629
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
630
|
-
title: ( localize(
|
|
630
|
+
title: ( localize(5584, "Collapse All")),
|
|
631
631
|
f1: false,
|
|
632
632
|
icon: Codicon.collapseAll,
|
|
633
633
|
menu: {
|
|
@@ -194,7 +194,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
194
194
|
}
|
|
195
195
|
async start() {
|
|
196
196
|
if (!this.debugAdapter) {
|
|
197
|
-
return Promise.reject(( new Error(( localize(
|
|
197
|
+
return Promise.reject(( new Error(( localize(5585, "No debug adapter, can not start debug session.")))));
|
|
198
198
|
}
|
|
199
199
|
await this.debugAdapter.startSession();
|
|
200
200
|
this.startTime = ( new Date()).getTime();
|
|
@@ -518,10 +518,10 @@ let RawDebugSession = class RawDebugSession {
|
|
|
518
518
|
const { confirmed } = await this.dialogSerivce.confirm({
|
|
519
519
|
type: Severity.Warning,
|
|
520
520
|
message: ( localize(
|
|
521
|
-
|
|
521
|
+
5586,
|
|
522
522
|
"The debugger needs to open a new tab or window for the debuggee but the browser prevented this. You must give permission to continue."
|
|
523
523
|
)),
|
|
524
|
-
primaryButton: ( localize(
|
|
524
|
+
primaryButton: ( localize(5587, "&&Continue"))
|
|
525
525
|
});
|
|
526
526
|
if (confirmed) {
|
|
527
527
|
result = await this.launchVsCode(request.arguments);
|
|
@@ -621,7 +621,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
621
621
|
completeDispatch(undefined);
|
|
622
622
|
}
|
|
623
623
|
else {
|
|
624
|
-
errorDispatch(( new Error(( localize(
|
|
624
|
+
errorDispatch(( new Error(( localize(5588, "No debugger available found. Can not send '{0}'.", command)))));
|
|
625
625
|
}
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
@@ -654,7 +654,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
654
654
|
const userMessage = error ? formatPII(error.format, false, error.variables) : errorMessage;
|
|
655
655
|
const url = error?.url;
|
|
656
656
|
if (error && url) {
|
|
657
|
-
const label = error.urlLabel ? error.urlLabel : ( localize(
|
|
657
|
+
const label = error.urlLabel ? error.urlLabel : ( localize(5589, "More Info"));
|
|
658
658
|
const uri = ( URI.parse(url));
|
|
659
659
|
const actionId = uri.scheme === Schemas.command ? 'debug.moreInfo.command' : 'debug.moreInfo';
|
|
660
660
|
return createErrorWithActions(userMessage, [toAction({ id: actionId, label, run: () => this.openerService.open(uri, { allowCommands: true }) })]);
|
|
@@ -101,7 +101,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
101
101
|
super({
|
|
102
102
|
...options,
|
|
103
103
|
filterOptions: {
|
|
104
|
-
placeholder: ( localize(
|
|
104
|
+
placeholder: ( localize(5590, "Filter (e.g. text, !exclude, \\escape)")),
|
|
105
105
|
text: filterText,
|
|
106
106
|
history: JSON.parse(storageService.get(FILTER_HISTORY_STORAGE_KEY, StorageScope.WORKSPACE, '[]')),
|
|
107
107
|
}
|
|
@@ -176,6 +176,9 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
176
176
|
if (this.tree && this.tree.getInput() !== focusedSession) {
|
|
177
177
|
this.onDidFocusSession(focusedSession);
|
|
178
178
|
}
|
|
179
|
+
else {
|
|
180
|
+
this.selectSession();
|
|
181
|
+
}
|
|
179
182
|
this.setMode();
|
|
180
183
|
this.replInput.setModel(this.model);
|
|
181
184
|
this.updateInputDecoration();
|
|
@@ -510,7 +513,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
510
513
|
await autoExpandElements(session.getReplElements());
|
|
511
514
|
}
|
|
512
515
|
const { total, filtered } = this.getFilterStats();
|
|
513
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
516
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(5591, "Showing {0} of {1}", filtered, total)));
|
|
514
517
|
}, Repl_1.REFRESH_DELAY));
|
|
515
518
|
}
|
|
516
519
|
render() {
|
|
@@ -634,17 +637,17 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
634
637
|
this._register(addStandardDisposableListener(this.replInputContainer, EventType.BLUR, () => this.replInputContainer.classList.remove('synthetic-focus')));
|
|
635
638
|
}
|
|
636
639
|
getAriaLabel() {
|
|
637
|
-
let ariaLabel = ( localize(
|
|
640
|
+
let ariaLabel = ( localize(5592, "Debug Console"));
|
|
638
641
|
if (!this.configurationService.getValue(AccessibilityVerbositySettingId.Debug)) {
|
|
639
642
|
return ariaLabel;
|
|
640
643
|
}
|
|
641
644
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getAriaLabel();
|
|
642
645
|
if (keybinding) {
|
|
643
|
-
ariaLabel = ( localize(
|
|
646
|
+
ariaLabel = ( localize(5593, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
644
647
|
}
|
|
645
648
|
else {
|
|
646
649
|
ariaLabel = ( localize(
|
|
647
|
-
|
|
650
|
+
5594,
|
|
648
651
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
649
652
|
ariaLabel
|
|
650
653
|
));
|
|
@@ -683,7 +686,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
683
686
|
},
|
|
684
687
|
renderOptions: {
|
|
685
688
|
after: {
|
|
686
|
-
contentText: ( localize(
|
|
689
|
+
contentText: ( localize(5595, "Please start a debug session to evaluate expressions")),
|
|
687
690
|
color: transparentForeground ? ( transparentForeground.toString()) : undefined
|
|
688
691
|
}
|
|
689
692
|
}
|
|
@@ -796,7 +799,7 @@ class AcceptReplInputAction extends EditorAction {
|
|
|
796
799
|
constructor() {
|
|
797
800
|
super({
|
|
798
801
|
id: 'repl.action.acceptInput',
|
|
799
|
-
label: ( localize2(
|
|
802
|
+
label: ( localize2(5596, "Debug Console: Accept Input")),
|
|
800
803
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
801
804
|
kbOpts: {
|
|
802
805
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -816,7 +819,7 @@ class FilterReplAction extends ViewAction {
|
|
|
816
819
|
super({
|
|
817
820
|
viewId: REPL_VIEW_ID,
|
|
818
821
|
id: 'repl.action.filter',
|
|
819
|
-
title: ( localize(
|
|
822
|
+
title: ( localize(5597, "Debug Console: Focus Filter")),
|
|
820
823
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
821
824
|
keybinding: [{
|
|
822
825
|
when: EditorContextKeys.textInputFocus,
|
|
@@ -834,7 +837,7 @@ class FindReplAction extends ViewAction {
|
|
|
834
837
|
super({
|
|
835
838
|
viewId: REPL_VIEW_ID,
|
|
836
839
|
id: 'repl.action.find',
|
|
837
|
-
title: ( localize(
|
|
840
|
+
title: ( localize(5598, "Debug Console: Focus Find")),
|
|
838
841
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
839
842
|
keybinding: [{
|
|
840
843
|
when: ( ContextKeyExpr.or(CONTEXT_IN_DEBUG_REPL, ( ContextKeyExpr.equals('focusedView', 'workbench.panel.repl.view')))),
|
|
@@ -862,7 +865,7 @@ class ReplCopyAllAction extends EditorAction {
|
|
|
862
865
|
constructor() {
|
|
863
866
|
super({
|
|
864
867
|
id: 'repl.action.copyAll',
|
|
865
|
-
label: ( localize(
|
|
868
|
+
label: ( localize(5599, "Debug: Console Copy All")),
|
|
866
869
|
alias: 'Debug Console Copy All',
|
|
867
870
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
868
871
|
});
|
|
@@ -899,7 +902,7 @@ registerAction2(class extends ViewAction {
|
|
|
899
902
|
super({
|
|
900
903
|
id: selectReplCommandId,
|
|
901
904
|
viewId: REPL_VIEW_ID,
|
|
902
|
-
title: ( localize(
|
|
905
|
+
title: ( localize(5600, "Select Debug Console")),
|
|
903
906
|
f1: false,
|
|
904
907
|
menu: {
|
|
905
908
|
id: MenuId.ViewTitle,
|
|
@@ -928,9 +931,9 @@ registerAction2(class extends ViewAction {
|
|
|
928
931
|
super({
|
|
929
932
|
id: 'workbench.debug.panel.action.clearReplAction',
|
|
930
933
|
viewId: REPL_VIEW_ID,
|
|
931
|
-
title: ( localize2(
|
|
934
|
+
title: ( localize2(5601, 'Clear Console')),
|
|
932
935
|
metadata: {
|
|
933
|
-
description: ( localize2(
|
|
936
|
+
description: ( localize2(5602, 'Clears all program output from your debug REPL'))
|
|
934
937
|
},
|
|
935
938
|
f1: true,
|
|
936
939
|
icon: debugConsoleClearAll,
|
|
@@ -962,7 +965,7 @@ registerAction2(class extends ViewAction {
|
|
|
962
965
|
constructor() {
|
|
963
966
|
super({
|
|
964
967
|
id: 'debug.collapseRepl',
|
|
965
|
-
title: ( localize(
|
|
968
|
+
title: ( localize(5603, "Collapse All")),
|
|
966
969
|
viewId: REPL_VIEW_ID,
|
|
967
970
|
menu: {
|
|
968
971
|
id: MenuId.DebugConsoleContext,
|
|
@@ -980,7 +983,7 @@ registerAction2(class extends ViewAction {
|
|
|
980
983
|
constructor() {
|
|
981
984
|
super({
|
|
982
985
|
id: 'debug.replPaste',
|
|
983
|
-
title: ( localize(
|
|
986
|
+
title: ( localize(5604, "Paste")),
|
|
984
987
|
viewId: REPL_VIEW_ID,
|
|
985
988
|
precondition: ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Inactive))),
|
|
986
989
|
menu: {
|
|
@@ -1010,7 +1013,7 @@ registerAction2(class extends ViewAction {
|
|
|
1010
1013
|
constructor() {
|
|
1011
1014
|
super({
|
|
1012
1015
|
id: 'workbench.debug.action.copyAll',
|
|
1013
|
-
title: ( localize(
|
|
1016
|
+
title: ( localize(5605, "Copy All")),
|
|
1014
1017
|
viewId: REPL_VIEW_ID,
|
|
1015
1018
|
menu: {
|
|
1016
1019
|
id: MenuId.DebugConsoleContext,
|
|
@@ -1028,7 +1031,7 @@ registerAction2(class extends Action2 {
|
|
|
1028
1031
|
constructor() {
|
|
1029
1032
|
super({
|
|
1030
1033
|
id: 'debug.replCopy',
|
|
1031
|
-
title: ( localize(
|
|
1034
|
+
title: ( localize(5606, "Copy")),
|
|
1032
1035
|
menu: {
|
|
1033
1036
|
id: MenuId.DebugConsoleContext,
|
|
1034
1037
|
group: '2_cutcopypaste',
|
|
@@ -1071,7 +1074,7 @@ registerAction2(class extends Action2 {
|
|
|
1071
1074
|
super({
|
|
1072
1075
|
id: FOCUS_REPL_ID,
|
|
1073
1076
|
category: DEBUG_COMMAND_CATEGORY,
|
|
1074
|
-
title: ( localize2(
|
|
1077
|
+
title: ( localize2(5607, "Focus on Debug Console View")),
|
|
1075
1078
|
});
|
|
1076
1079
|
}
|
|
1077
1080
|
async run(accessor) {
|
|
@@ -42,41 +42,41 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
42
42
|
provideContent() {
|
|
43
43
|
return [
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
5608,
|
|
46
46
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
47
47
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
48
48
|
)),
|
|
49
49
|
( localize(
|
|
50
|
-
|
|
50
|
+
5609,
|
|
51
51
|
"The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
|
|
52
52
|
'<keybinding:widgetNavigation.focusPrevious>'
|
|
53
53
|
)),
|
|
54
54
|
( localize(
|
|
55
|
-
|
|
55
|
+
5610,
|
|
56
56
|
"The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
|
|
57
57
|
'<keybinding:widgetNavigation.focusNext>'
|
|
58
58
|
)),
|
|
59
59
|
( localize(
|
|
60
|
-
|
|
60
|
+
5611,
|
|
61
61
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
62
62
|
)),
|
|
63
63
|
( localize(
|
|
64
|
-
|
|
64
|
+
5612,
|
|
65
65
|
"The Open Accessible View command{0} will allow character by character navigation of the console output.",
|
|
66
66
|
'<keybinding:editor.action.accessibleView>'
|
|
67
67
|
)),
|
|
68
68
|
( localize(
|
|
69
|
-
|
|
69
|
+
5613,
|
|
70
70
|
"The Show Run and Debug view command{0} will open the Run and Debug view and provides more information about debugging.",
|
|
71
71
|
'<keybinding:workbench.view.debug>'
|
|
72
72
|
)),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
5614,
|
|
75
75
|
"The Debug: Clear Console command{0} will clear the console output.",
|
|
76
76
|
'<keybinding:workbench.debug.panel.action.clearReplAction>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
5615,
|
|
80
80
|
"The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
|
|
81
81
|
)),
|
|
82
82
|
].join('\n');
|
|
@@ -308,20 +308,20 @@ class ReplDataSource {
|
|
|
308
308
|
}
|
|
309
309
|
class ReplAccessibilityProvider {
|
|
310
310
|
getWidgetAriaLabel() {
|
|
311
|
-
return localize(
|
|
311
|
+
return localize(5616, "Debug Console");
|
|
312
312
|
}
|
|
313
313
|
getAriaLabel(element) {
|
|
314
314
|
if (element instanceof Variable) {
|
|
315
|
-
return localize(
|
|
315
|
+
return localize(5617, "Variable {0}, value {1}", element.name, element.value);
|
|
316
316
|
}
|
|
317
317
|
if (element instanceof ReplOutputElement || element instanceof ReplEvaluationInput || element instanceof ReplEvaluationResult) {
|
|
318
|
-
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(
|
|
318
|
+
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(5618, ", occurred {0} times", element.count)) : '');
|
|
319
319
|
}
|
|
320
320
|
if (element instanceof RawObjectReplElement) {
|
|
321
|
-
return localize(
|
|
321
|
+
return localize(5619, "Debug console variable {0}, value {1}", element.name, element.value);
|
|
322
322
|
}
|
|
323
323
|
if (element instanceof ReplGroup) {
|
|
324
|
-
return localize(
|
|
324
|
+
return localize(5620, "Debug console group {0}", element.name);
|
|
325
325
|
}
|
|
326
326
|
return '';
|
|
327
327
|
}
|
|
@@ -53,79 +53,79 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
53
53
|
provideContent() {
|
|
54
54
|
return [
|
|
55
55
|
( localize(
|
|
56
|
-
|
|
56
|
+
5621,
|
|
57
57
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
58
58
|
'<keybinding:workbench.view.debug>'
|
|
59
59
|
)),
|
|
60
60
|
( localize(
|
|
61
|
-
|
|
61
|
+
5622,
|
|
62
62
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
63
63
|
'<keybinding:workbench.action.debug.start>'
|
|
64
64
|
)),
|
|
65
65
|
( localize(
|
|
66
|
-
|
|
66
|
+
5623,
|
|
67
67
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
68
68
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
69
69
|
)),
|
|
70
70
|
AccessibilityHelpNLS.setBreakpoint,
|
|
71
71
|
AccessibilityHelpNLS.addToWatch,
|
|
72
|
-
( localize(
|
|
72
|
+
( localize(5624, "Once debugging, the following commands will be available:")),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
5625,
|
|
75
75
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
76
76
|
'<keybinding:workbench.action.debug.restart>'
|
|
77
77
|
)),
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
5626,
|
|
80
80
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
81
81
|
'<keybinding:workbench.action.debug.stop>'
|
|
82
82
|
)),
|
|
83
83
|
( localize(
|
|
84
|
-
|
|
84
|
+
5627,
|
|
85
85
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
86
86
|
'<keybinding:workbench.action.debug.continue>'
|
|
87
87
|
)),
|
|
88
88
|
( localize(
|
|
89
|
-
|
|
89
|
+
5628,
|
|
90
90
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
91
91
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
92
92
|
)),
|
|
93
93
|
( localize(
|
|
94
|
-
|
|
94
|
+
5629,
|
|
95
95
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
96
96
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
97
97
|
)),
|
|
98
98
|
( localize(
|
|
99
|
-
|
|
99
|
+
5630,
|
|
100
100
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
101
101
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
102
102
|
)),
|
|
103
103
|
( localize(
|
|
104
|
-
|
|
104
|
+
5631,
|
|
105
105
|
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
|
|
106
106
|
)),
|
|
107
107
|
( localize(
|
|
108
|
-
|
|
108
|
+
5632,
|
|
109
109
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
110
110
|
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
111
111
|
)),
|
|
112
112
|
( localize(
|
|
113
|
-
|
|
113
|
+
5633,
|
|
114
114
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
115
115
|
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
116
116
|
)),
|
|
117
117
|
( localize(
|
|
118
|
-
|
|
118
|
+
5634,
|
|
119
119
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
120
120
|
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
121
121
|
)),
|
|
122
122
|
( localize(
|
|
123
|
-
|
|
123
|
+
5635,
|
|
124
124
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
125
125
|
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
126
126
|
)),
|
|
127
127
|
( localize(
|
|
128
|
-
|
|
128
|
+
5636,
|
|
129
129
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
130
130
|
'accessibility.debugWatchVariableAnnouncements'
|
|
131
131
|
)),
|
|
@@ -27,7 +27,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
27
27
|
hcDark: '#BA592C',
|
|
28
28
|
hcLight: '#B5200D'
|
|
29
29
|
}, ( localize(
|
|
30
|
-
|
|
30
|
+
5637,
|
|
31
31
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
32
32
|
)));
|
|
33
33
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -36,14 +36,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
36
36
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
37
37
|
hcLight: '#FFFFFF'
|
|
38
38
|
}, ( localize(
|
|
39
|
-
|
|
39
|
+
5638,
|
|
40
40
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
41
41
|
)));
|
|
42
42
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
43
|
-
|
|
43
|
+
5639,
|
|
44
44
|
"Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
45
45
|
)));
|
|
46
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(
|
|
46
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258)), ( localize(5640, "Command center background color when a program is being debugged")), true);
|
|
47
47
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
48
48
|
set enabled(enabled) {
|
|
49
49
|
if (enabled === !!this.disposable) {
|
|
@@ -367,7 +367,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
367
367
|
const viz = expression;
|
|
368
368
|
return {
|
|
369
369
|
initialValue: expression.value,
|
|
370
|
-
ariaLabel: ( localize(
|
|
370
|
+
ariaLabel: ( localize(5641, "Type new variable value")),
|
|
371
371
|
validationOptions: {
|
|
372
372
|
validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
|
|
373
373
|
},
|
|
@@ -389,7 +389,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
389
389
|
const menu = this.menuService.getMenuActions(MenuId.DebugVariablesContext, contextKeyService, { arg: context, shouldForwardArgs: false });
|
|
390
390
|
const { primary } = getContextMenuActions(menu, 'inline');
|
|
391
391
|
if (viz.original) {
|
|
392
|
-
const action = ( new Action('debugViz', ( localize(
|
|
392
|
+
const action = ( new Action('debugViz', ( localize(5642, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined)));
|
|
393
393
|
action.checked = true;
|
|
394
394
|
primary.push(action);
|
|
395
395
|
actionBar.domNode.style.display = 'initial';
|
|
@@ -434,7 +434,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
434
434
|
const variable = expression;
|
|
435
435
|
return {
|
|
436
436
|
initialValue: expression.value,
|
|
437
|
-
ariaLabel: ( localize(
|
|
437
|
+
ariaLabel: ( localize(5641, "Type new variable value")),
|
|
438
438
|
validationOptions: {
|
|
439
439
|
validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
|
|
440
440
|
},
|
|
@@ -477,7 +477,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
477
477
|
actionBar.push(actions[0], { icon: true, label: false });
|
|
478
478
|
}
|
|
479
479
|
else {
|
|
480
|
-
actionBar.push(( new Action('debugViz', ( localize(
|
|
480
|
+
actionBar.push(( new Action('debugViz', ( localize(5643, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data))), { icon: true, label: false });
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
}
|
|
@@ -516,14 +516,14 @@ VariablesRenderer = VariablesRenderer_1 = ( __decorate([
|
|
|
516
516
|
], VariablesRenderer));
|
|
517
517
|
class VariablesAccessibilityProvider {
|
|
518
518
|
getWidgetAriaLabel() {
|
|
519
|
-
return localize(
|
|
519
|
+
return localize(5644, "Debug Variables");
|
|
520
520
|
}
|
|
521
521
|
getAriaLabel(element) {
|
|
522
522
|
if (element instanceof Scope) {
|
|
523
|
-
return localize(
|
|
523
|
+
return localize(5645, "Scope {0}", element.name);
|
|
524
524
|
}
|
|
525
525
|
if (element instanceof Variable) {
|
|
526
|
-
return localize(
|
|
526
|
+
return localize(5646, "{0}, value {1}", element.name, element.value);
|
|
527
527
|
}
|
|
528
528
|
return null;
|
|
529
529
|
}
|
|
@@ -647,7 +647,7 @@ CommandsRegistry.registerCommand({
|
|
|
647
647
|
async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
|
|
648
648
|
try {
|
|
649
649
|
await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
|
|
650
|
-
justification: ( localize(
|
|
650
|
+
justification: ( localize(5647, "Inspecting binary data requires this extension.")),
|
|
651
651
|
enable: true
|
|
652
652
|
}, ProgressLocation.Notification);
|
|
653
653
|
return true;
|
|
@@ -712,7 +712,7 @@ registerAction2(class extends ViewAction {
|
|
|
712
712
|
super({
|
|
713
713
|
id: 'variables.collapse',
|
|
714
714
|
viewId: VARIABLES_VIEW_ID,
|
|
715
|
-
title: ( localize(
|
|
715
|
+
title: ( localize(5648, "Collapse All")),
|
|
716
716
|
f1: false,
|
|
717
717
|
icon: Codicon.collapseAll,
|
|
718
718
|
menu: {
|
|
@@ -286,7 +286,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
286
286
|
if (settingValue) {
|
|
287
287
|
return {
|
|
288
288
|
initialValue: expression.value,
|
|
289
|
-
ariaLabel: ( localize(
|
|
289
|
+
ariaLabel: ( localize(5649, "Type new value")),
|
|
290
290
|
onFinish: async (value, success) => {
|
|
291
291
|
if (success && value) {
|
|
292
292
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -300,8 +300,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
300
300
|
}
|
|
301
301
|
return {
|
|
302
302
|
initialValue: expression.name ? expression.name : '',
|
|
303
|
-
ariaLabel: ( localize(
|
|
304
|
-
placeholder: ( localize(
|
|
303
|
+
ariaLabel: ( localize(5650, "Type watch expression")),
|
|
304
|
+
placeholder: ( localize(5651, "Expression to watch")),
|
|
305
305
|
onFinish: (value, success) => {
|
|
306
306
|
if (success && value) {
|
|
307
307
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -341,13 +341,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
|
341
341
|
}
|
|
342
342
|
class WatchExpressionsAccessibilityProvider {
|
|
343
343
|
getWidgetAriaLabel() {
|
|
344
|
-
return localize(
|
|
344
|
+
return localize(5652, "Debug Watch Expressions");
|
|
345
345
|
}
|
|
346
346
|
getAriaLabel(element) {
|
|
347
347
|
if (element instanceof Expression) {
|
|
348
|
-
return localize(
|
|
348
|
+
return localize(5653, "{0}, value {1}", element.name, element.value);
|
|
349
349
|
}
|
|
350
|
-
return localize(
|
|
350
|
+
return localize(5654, "{0}, value {1}", element.name, element.value);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
class WatchExpressionsDragAndDrop {
|
|
@@ -428,7 +428,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
428
428
|
super({
|
|
429
429
|
id: 'watch.collapse',
|
|
430
430
|
viewId: WATCH_VIEW_ID,
|
|
431
|
-
title: ( localize(
|
|
431
|
+
title: ( localize(5655, "Collapse All")),
|
|
432
432
|
f1: false,
|
|
433
433
|
icon: Codicon.collapseAll,
|
|
434
434
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -445,7 +445,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
448
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
448
|
+
const ADD_WATCH_LABEL = ( localize(5656, "Add Expression"));
|
|
449
449
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
450
450
|
constructor() {
|
|
451
451
|
super({
|
|
@@ -466,7 +466,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
466
466
|
}
|
|
467
467
|
});
|
|
468
468
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
469
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
469
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(5657, "Remove All Expressions"));
|
|
470
470
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
471
471
|
constructor() {
|
|
472
472
|
super({
|
|
@@ -32,7 +32,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( new RawContextKey(debugStartLanguageKey,
|
|
|
32
32
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( new RawContextKey('debuggerInterestedInActiveEditor', false));
|
|
33
33
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
34
34
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
35
|
-
static { this.LABEL = ( localize2(
|
|
35
|
+
static { this.LABEL = ( localize2(5658, "Run")); }
|
|
36
36
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, telemetryService, hoverService) {
|
|
37
37
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
38
38
|
this.debugService = debugService;
|
|
@@ -103,7 +103,7 @@ WelcomeView = ( __decorate([
|
|
|
103
103
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
104
104
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
105
105
|
content: ( localize(
|
|
106
|
-
|
|
106
|
+
5659,
|
|
107
107
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
108
108
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
|
|
109
109
|
)),
|
|
@@ -112,14 +112,14 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
112
112
|
});
|
|
113
113
|
let debugKeybindingLabel = '';
|
|
114
114
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
115
|
-
content: `[${( localize(
|
|
115
|
+
content: `[${( localize(5660, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
116
116
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
117
117
|
group: ViewContentGroups.Debug,
|
|
118
118
|
order: 1
|
|
119
119
|
});
|
|
120
120
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
121
121
|
content: ( localize(
|
|
122
|
-
|
|
122
|
+
5661,
|
|
123
123
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
124
124
|
`${DEBUG_CONFIGURE_COMMAND_ID}?${encodeURIComponent(JSON.stringify([{ addNew: true }]))}`
|
|
125
125
|
)),
|
|
@@ -128,7 +128,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
128
128
|
});
|
|
129
129
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
130
130
|
content: ( localize(
|
|
131
|
-
|
|
131
|
+
5662,
|
|
132
132
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
133
133
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
|
|
134
134
|
)),
|
|
@@ -137,7 +137,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
137
137
|
});
|
|
138
138
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
139
139
|
content: ( localize(
|
|
140
|
-
|
|
140
|
+
5663,
|
|
141
141
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
142
142
|
)),
|
|
143
143
|
when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
|
|
@@ -53,14 +53,14 @@ let DebugContentProvider = class DebugContentProvider extends Disposable {
|
|
|
53
53
|
session = this.debugService.getViewModel().focusedSession;
|
|
54
54
|
}
|
|
55
55
|
if (!session) {
|
|
56
|
-
return Promise.reject(( new ErrorNoTelemetry(( localize(
|
|
56
|
+
return Promise.reject(( new ErrorNoTelemetry(( localize(5729, "Unable to resolve the resource without a debug session")))));
|
|
57
57
|
}
|
|
58
58
|
const createErrModel = (errMsg) => {
|
|
59
59
|
this.debugService.sourceIsNotAvailable(resource);
|
|
60
60
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
61
61
|
const message = errMsg
|
|
62
|
-
? ( localize(
|
|
63
|
-
: ( localize(
|
|
62
|
+
? ( localize(5730, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
63
|
+
: ( localize(5731, "Could not load source '{0}'.", resource.path));
|
|
64
64
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
65
65
|
};
|
|
66
66
|
return session.loadSource(resource).then(response => {
|