@codingame/monaco-vscode-debug-service-override 10.0.0 → 10.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/baseDebugView.js +1 -1
- 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
|
@@ -558,7 +558,7 @@ class LoadedScriptsRenderer {
|
|
|
558
558
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
559
559
|
}
|
|
560
560
|
else if (element instanceof SessionTreeItem) {
|
|
561
|
-
options.title = ( localize(
|
|
561
|
+
options.title = ( localize(6087, "Debug Session"));
|
|
562
562
|
options.hideIcon = true;
|
|
563
563
|
}
|
|
564
564
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -580,20 +580,20 @@ class LoadedScriptsRenderer {
|
|
|
580
580
|
}
|
|
581
581
|
class LoadedSciptsAccessibilityProvider {
|
|
582
582
|
getWidgetAriaLabel() {
|
|
583
|
-
return ( localize(
|
|
583
|
+
return ( localize(6088, "Debug Loaded Scripts"));
|
|
584
584
|
}
|
|
585
585
|
getAriaLabel(element) {
|
|
586
586
|
if (element instanceof RootFolderTreeItem) {
|
|
587
|
-
return ( localize(
|
|
587
|
+
return ( localize(6089, "Workspace folder {0}, loaded script, debug", element.getLabel()));
|
|
588
588
|
}
|
|
589
589
|
if (element instanceof SessionTreeItem) {
|
|
590
|
-
return ( localize(
|
|
590
|
+
return ( localize(6090, "Session {0}, loaded script, debug", element.getLabel()));
|
|
591
591
|
}
|
|
592
592
|
if (element.hasChildren()) {
|
|
593
|
-
return ( localize(
|
|
593
|
+
return ( localize(6091, "Folder {0}, loaded script, debug", element.getLabel()));
|
|
594
594
|
}
|
|
595
595
|
else {
|
|
596
|
-
return ( localize(
|
|
596
|
+
return ( localize(6092, "{0}, loaded script, debug", element.getLabel()));
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
}
|
|
@@ -620,7 +620,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
620
620
|
super({
|
|
621
621
|
id: 'loadedScripts.collapse',
|
|
622
622
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
623
|
-
title: ( localize(
|
|
623
|
+
title: ( localize(6093, "Collapse All")),
|
|
624
624
|
f1: false,
|
|
625
625
|
icon: Codicon.collapseAll,
|
|
626
626
|
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(10352, "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
|
+
10353,
|
|
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(10354, "&&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(10355, "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(10356, "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 }) })]);
|
|
@@ -93,7 +93,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
93
93
|
super({
|
|
94
94
|
...options,
|
|
95
95
|
filterOptions: {
|
|
96
|
-
placeholder: ( localize(
|
|
96
|
+
placeholder: ( localize(6094, "Filter (e.g. text, !exclude, \\escape)")),
|
|
97
97
|
text: filterText,
|
|
98
98
|
history: JSON.parse(storageService.get(FILTER_HISTORY_STORAGE_KEY, 1 , '[]')),
|
|
99
99
|
}
|
|
@@ -499,7 +499,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
499
499
|
await autoExpandElements(session.getReplElements());
|
|
500
500
|
}
|
|
501
501
|
const { total, filtered } = this.getFilterStats();
|
|
502
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
502
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(6095, "Showing {0} of {1}", filtered, total)));
|
|
503
503
|
}, Repl_1.REFRESH_DELAY))
|
|
504
504
|
);
|
|
505
505
|
}
|
|
@@ -622,17 +622,17 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
622
622
|
this._register(addStandardDisposableListener(this.replInputContainer, EventType.BLUR, () => this.replInputContainer.classList.remove('synthetic-focus')));
|
|
623
623
|
}
|
|
624
624
|
getAriaLabel() {
|
|
625
|
-
let ariaLabel = ( localize(
|
|
625
|
+
let ariaLabel = ( localize(6096, "Debug Console"));
|
|
626
626
|
if (!this.configurationService.getValue("accessibility.verbosity.debug" )) {
|
|
627
627
|
return ariaLabel;
|
|
628
628
|
}
|
|
629
629
|
const keybinding = this.keybindingService.lookupKeybinding("editor.action.accessibilityHelp" )?.getAriaLabel();
|
|
630
630
|
if (keybinding) {
|
|
631
|
-
ariaLabel = ( localize(
|
|
631
|
+
ariaLabel = ( localize(6097, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
632
632
|
}
|
|
633
633
|
else {
|
|
634
634
|
ariaLabel = ( localize(
|
|
635
|
-
|
|
635
|
+
6098,
|
|
636
636
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
637
637
|
ariaLabel
|
|
638
638
|
));
|
|
@@ -672,7 +672,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
672
672
|
},
|
|
673
673
|
renderOptions: {
|
|
674
674
|
after: {
|
|
675
|
-
contentText: ( localize(
|
|
675
|
+
contentText: ( localize(6099, "Please start a debug session to evaluate expressions")),
|
|
676
676
|
color: transparentForeground ? ( (transparentForeground.toString())) : undefined
|
|
677
677
|
}
|
|
678
678
|
}
|
|
@@ -785,7 +785,7 @@ class AcceptReplInputAction extends EditorAction {
|
|
|
785
785
|
constructor() {
|
|
786
786
|
super({
|
|
787
787
|
id: 'repl.action.acceptInput',
|
|
788
|
-
label: ( localize(
|
|
788
|
+
label: ( localize(6100, "Debug Console: Accept Input")),
|
|
789
789
|
alias: 'Debug Console: Accept Input',
|
|
790
790
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
791
791
|
kbOpts: {
|
|
@@ -806,7 +806,7 @@ class FilterReplAction extends ViewAction {
|
|
|
806
806
|
super({
|
|
807
807
|
viewId: REPL_VIEW_ID,
|
|
808
808
|
id: 'repl.action.filter',
|
|
809
|
-
title: ( localize(
|
|
809
|
+
title: ( localize(6101, "Debug Console: Focus Filter")),
|
|
810
810
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
811
811
|
keybinding: [{
|
|
812
812
|
when: EditorContextKeys.textInputFocus,
|
|
@@ -824,7 +824,7 @@ class FindReplAction extends ViewAction {
|
|
|
824
824
|
super({
|
|
825
825
|
viewId: REPL_VIEW_ID,
|
|
826
826
|
id: 'repl.action.find',
|
|
827
|
-
title: ( localize(
|
|
827
|
+
title: ( localize(6102, "Debug Console: Focus Find")),
|
|
828
828
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
829
829
|
keybinding: [{
|
|
830
830
|
when: ( (ContextKeyExpr.or(
|
|
@@ -855,7 +855,7 @@ class ReplCopyAllAction extends EditorAction {
|
|
|
855
855
|
constructor() {
|
|
856
856
|
super({
|
|
857
857
|
id: 'repl.action.copyAll',
|
|
858
|
-
label: ( localize(
|
|
858
|
+
label: ( localize(6103, "Debug: Console Copy All")),
|
|
859
859
|
alias: 'Debug Console Copy All',
|
|
860
860
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
861
861
|
});
|
|
@@ -892,7 +892,7 @@ registerAction2(class extends ViewAction {
|
|
|
892
892
|
super({
|
|
893
893
|
id: selectReplCommandId,
|
|
894
894
|
viewId: REPL_VIEW_ID,
|
|
895
|
-
title: ( localize(
|
|
895
|
+
title: ( localize(6104, "Select Debug Console")),
|
|
896
896
|
f1: false,
|
|
897
897
|
menu: {
|
|
898
898
|
id: MenuId.ViewTitle,
|
|
@@ -924,9 +924,9 @@ registerAction2(class extends ViewAction {
|
|
|
924
924
|
super({
|
|
925
925
|
id: 'workbench.debug.panel.action.clearReplAction',
|
|
926
926
|
viewId: REPL_VIEW_ID,
|
|
927
|
-
title: ( localize2(
|
|
927
|
+
title: ( localize2(6105, 'Clear Console')),
|
|
928
928
|
metadata: {
|
|
929
|
-
description: ( localize2(
|
|
929
|
+
description: ( localize2(6106, 'Clears all program output from your debug REPL'))
|
|
930
930
|
},
|
|
931
931
|
f1: true,
|
|
932
932
|
icon: debugConsoleClearAll,
|
|
@@ -958,7 +958,7 @@ registerAction2(class extends ViewAction {
|
|
|
958
958
|
constructor() {
|
|
959
959
|
super({
|
|
960
960
|
id: 'debug.collapseRepl',
|
|
961
|
-
title: ( localize(
|
|
961
|
+
title: ( localize(6107, "Collapse All")),
|
|
962
962
|
viewId: REPL_VIEW_ID,
|
|
963
963
|
menu: {
|
|
964
964
|
id: MenuId.DebugConsoleContext,
|
|
@@ -976,7 +976,7 @@ registerAction2(class extends ViewAction {
|
|
|
976
976
|
constructor() {
|
|
977
977
|
super({
|
|
978
978
|
id: 'debug.replPaste',
|
|
979
|
-
title: ( localize(
|
|
979
|
+
title: ( localize(6108, "Paste")),
|
|
980
980
|
viewId: REPL_VIEW_ID,
|
|
981
981
|
precondition: ( (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(0 )))),
|
|
982
982
|
menu: {
|
|
@@ -1006,7 +1006,7 @@ registerAction2(class extends ViewAction {
|
|
|
1006
1006
|
constructor() {
|
|
1007
1007
|
super({
|
|
1008
1008
|
id: 'workbench.debug.action.copyAll',
|
|
1009
|
-
title: ( localize(
|
|
1009
|
+
title: ( localize(6109, "Copy All")),
|
|
1010
1010
|
viewId: REPL_VIEW_ID,
|
|
1011
1011
|
menu: {
|
|
1012
1012
|
id: MenuId.DebugConsoleContext,
|
|
@@ -1024,7 +1024,7 @@ registerAction2(class extends Action2 {
|
|
|
1024
1024
|
constructor() {
|
|
1025
1025
|
super({
|
|
1026
1026
|
id: 'debug.replCopy',
|
|
1027
|
-
title: ( localize(
|
|
1027
|
+
title: ( localize(6110, "Copy")),
|
|
1028
1028
|
menu: {
|
|
1029
1029
|
id: MenuId.DebugConsoleContext,
|
|
1030
1030
|
group: '2_cutcopypaste',
|
|
@@ -41,41 +41,41 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
41
41
|
provideContent() {
|
|
42
42
|
return [
|
|
43
43
|
( localize(
|
|
44
|
-
|
|
44
|
+
6147,
|
|
45
45
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
46
46
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
47
47
|
)),
|
|
48
48
|
( localize(
|
|
49
|
-
|
|
49
|
+
6148,
|
|
50
50
|
"The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
|
|
51
51
|
'<keybinding:widgetNavigation.focusPrevious>'
|
|
52
52
|
)),
|
|
53
53
|
( localize(
|
|
54
|
-
|
|
54
|
+
6149,
|
|
55
55
|
"The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
|
|
56
56
|
'<keybinding:widgetNavigation.focusNext>'
|
|
57
57
|
)),
|
|
58
58
|
( localize(
|
|
59
|
-
|
|
59
|
+
6150,
|
|
60
60
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
61
61
|
)),
|
|
62
62
|
( localize(
|
|
63
|
-
|
|
63
|
+
6151,
|
|
64
64
|
"The Open Accessible View command{0} will allow character by character navigation of the console output.",
|
|
65
65
|
'<keybinding:editor.action.accessibleView>'
|
|
66
66
|
)),
|
|
67
67
|
( localize(
|
|
68
|
-
|
|
68
|
+
6152,
|
|
69
69
|
"The Show Run and Debug view command{0} will open the Run and Debug view and provides more information about debugging.",
|
|
70
70
|
'<keybinding:workbench.view.debug>'
|
|
71
71
|
)),
|
|
72
72
|
( localize(
|
|
73
|
-
|
|
73
|
+
6153,
|
|
74
74
|
"The Debug: Clear Console command{0} will clear the console output.",
|
|
75
75
|
'<keybinding:workbench.debug.panel.action.clearReplAction>'
|
|
76
76
|
)),
|
|
77
77
|
( localize(
|
|
78
|
-
|
|
78
|
+
6154,
|
|
79
79
|
"The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
|
|
80
80
|
)),
|
|
81
81
|
].join('\n');
|
|
@@ -301,25 +301,25 @@ class ReplDataSource {
|
|
|
301
301
|
}
|
|
302
302
|
class ReplAccessibilityProvider {
|
|
303
303
|
getWidgetAriaLabel() {
|
|
304
|
-
return ( localize(
|
|
304
|
+
return ( localize(10388, "Debug Console"));
|
|
305
305
|
}
|
|
306
306
|
getAriaLabel(element) {
|
|
307
307
|
if (element instanceof Variable) {
|
|
308
|
-
return ( localize(
|
|
308
|
+
return ( localize(10389, "Variable {0}, value {1}", element.name, element.value));
|
|
309
309
|
}
|
|
310
310
|
if (element instanceof ReplOutputElement || element instanceof ReplEvaluationInput || element instanceof ReplEvaluationResult) {
|
|
311
|
-
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(
|
|
311
|
+
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(10390, ", occurred {0} times", element.count)) : '');
|
|
312
312
|
}
|
|
313
313
|
if (element instanceof RawObjectReplElement) {
|
|
314
314
|
return ( localize(
|
|
315
|
-
|
|
315
|
+
10391,
|
|
316
316
|
"Debug console variable {0}, value {1}",
|
|
317
317
|
element.name,
|
|
318
318
|
element.value
|
|
319
319
|
));
|
|
320
320
|
}
|
|
321
321
|
if (element instanceof ReplGroup) {
|
|
322
|
-
return ( localize(
|
|
322
|
+
return ( localize(10392, "Debug console group {0}", element.name));
|
|
323
323
|
}
|
|
324
324
|
return '';
|
|
325
325
|
}
|
|
@@ -55,79 +55,79 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
55
55
|
provideContent() {
|
|
56
56
|
return [
|
|
57
57
|
( localize(
|
|
58
|
-
|
|
58
|
+
6155,
|
|
59
59
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
60
60
|
'<keybinding:workbench.view.debug>'
|
|
61
61
|
)),
|
|
62
62
|
( localize(
|
|
63
|
-
|
|
63
|
+
6156,
|
|
64
64
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
65
65
|
'<keybinding:workbench.action.debug.start>'
|
|
66
66
|
)),
|
|
67
67
|
( localize(
|
|
68
|
-
|
|
68
|
+
6157,
|
|
69
69
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
70
70
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
71
71
|
)),
|
|
72
72
|
AccessibilityHelpNLS.setBreakpoint,
|
|
73
73
|
AccessibilityHelpNLS.addToWatch,
|
|
74
|
-
( localize(
|
|
74
|
+
( localize(6158, "Once debugging, the following commands will be available:")),
|
|
75
75
|
( localize(
|
|
76
|
-
|
|
76
|
+
6159,
|
|
77
77
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
78
78
|
'<keybinding:workbench.action.debug.restart>'
|
|
79
79
|
)),
|
|
80
80
|
( localize(
|
|
81
|
-
|
|
81
|
+
6160,
|
|
82
82
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
83
83
|
'<keybinding:workbench.action.debug.stop>'
|
|
84
84
|
)),
|
|
85
85
|
( localize(
|
|
86
|
-
|
|
86
|
+
6161,
|
|
87
87
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
88
88
|
'<keybinding:workbench.action.debug.continue>'
|
|
89
89
|
)),
|
|
90
90
|
( localize(
|
|
91
|
-
|
|
91
|
+
6162,
|
|
92
92
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
93
93
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
94
94
|
)),
|
|
95
95
|
( localize(
|
|
96
|
-
|
|
96
|
+
6163,
|
|
97
97
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
98
98
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
99
99
|
)),
|
|
100
100
|
( localize(
|
|
101
|
-
|
|
101
|
+
6164,
|
|
102
102
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
103
103
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
104
104
|
)),
|
|
105
105
|
( localize(
|
|
106
|
-
|
|
106
|
+
6165,
|
|
107
107
|
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
|
|
108
108
|
)),
|
|
109
109
|
( localize(
|
|
110
|
-
|
|
110
|
+
6166,
|
|
111
111
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
112
112
|
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
113
113
|
)),
|
|
114
114
|
( localize(
|
|
115
|
-
|
|
115
|
+
6167,
|
|
116
116
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
117
117
|
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
118
118
|
)),
|
|
119
119
|
( localize(
|
|
120
|
-
|
|
120
|
+
6168,
|
|
121
121
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
122
122
|
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
123
123
|
)),
|
|
124
124
|
( localize(
|
|
125
|
-
|
|
125
|
+
6169,
|
|
126
126
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
127
127
|
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
128
128
|
)),
|
|
129
129
|
( localize(
|
|
130
|
-
|
|
130
|
+
6170,
|
|
131
131
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
132
132
|
'accessibility.debugWatchVariableAnnouncements'
|
|
133
133
|
)),
|
|
@@ -25,7 +25,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
25
25
|
hcDark: '#BA592C',
|
|
26
26
|
hcLight: '#B5200D'
|
|
27
27
|
}, ( localize(
|
|
28
|
-
|
|
28
|
+
6111,
|
|
29
29
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
30
30
|
)));
|
|
31
31
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -34,14 +34,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
34
34
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
35
35
|
hcLight: '#FFFFFF'
|
|
36
36
|
}, ( localize(
|
|
37
|
-
|
|
37
|
+
6112,
|
|
38
38
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
39
39
|
)));
|
|
40
40
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
41
|
-
|
|
41
|
+
6113,
|
|
42
42
|
"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"
|
|
43
43
|
)));
|
|
44
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localize(
|
|
44
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localize(6114, "Command center background color when a program is being debugged")), true);
|
|
45
45
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
46
46
|
set enabled(enabled) {
|
|
47
47
|
if (enabled === !!this.disposable) {
|
|
@@ -362,7 +362,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
362
362
|
const viz = expression;
|
|
363
363
|
return {
|
|
364
364
|
initialValue: expression.value,
|
|
365
|
-
ariaLabel: ( localize(
|
|
365
|
+
ariaLabel: ( localize(6115, "Type new variable value")),
|
|
366
366
|
validationOptions: {
|
|
367
367
|
validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
|
|
368
368
|
},
|
|
@@ -385,7 +385,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
385
385
|
const primary = [];
|
|
386
386
|
createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
|
|
387
387
|
if (viz.original) {
|
|
388
|
-
const action = ( (new Action('debugViz', ( localize(
|
|
388
|
+
const action = ( (new Action('debugViz', ( localize(6116, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined))));
|
|
389
389
|
action.checked = true;
|
|
390
390
|
primary.push(action);
|
|
391
391
|
actionBar.domNode.style.display = 'initial';
|
|
@@ -430,7 +430,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
430
430
|
const variable = expression;
|
|
431
431
|
return {
|
|
432
432
|
initialValue: expression.value,
|
|
433
|
-
ariaLabel: ( localize(
|
|
433
|
+
ariaLabel: ( localize(6115, "Type new variable value")),
|
|
434
434
|
validationOptions: {
|
|
435
435
|
validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
|
|
436
436
|
},
|
|
@@ -474,7 +474,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
474
474
|
actionBar.push(actions[0], { icon: true, label: false });
|
|
475
475
|
}
|
|
476
476
|
else {
|
|
477
|
-
actionBar.push(( (new Action('debugViz', ( localize(
|
|
477
|
+
actionBar.push(( (new Action('debugViz', ( localize(6117, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data)))), { icon: true, label: false });
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
480
|
}
|
|
@@ -513,14 +513,14 @@ VariablesRenderer = VariablesRenderer_1 = ( (__decorate([
|
|
|
513
513
|
], VariablesRenderer)));
|
|
514
514
|
class VariablesAccessibilityProvider {
|
|
515
515
|
getWidgetAriaLabel() {
|
|
516
|
-
return ( localize(
|
|
516
|
+
return ( localize(6118, "Debug Variables"));
|
|
517
517
|
}
|
|
518
518
|
getAriaLabel(element) {
|
|
519
519
|
if (element instanceof Scope) {
|
|
520
|
-
return ( localize(
|
|
520
|
+
return ( localize(6119, "Scope {0}", element.name));
|
|
521
521
|
}
|
|
522
522
|
if (element instanceof Variable) {
|
|
523
|
-
return ( localize(
|
|
523
|
+
return ( localize(6120, "{0}, value {1}", element.name, element.value));
|
|
524
524
|
}
|
|
525
525
|
return null;
|
|
526
526
|
}
|
|
@@ -623,7 +623,7 @@ CommandsRegistry.registerCommand({
|
|
|
623
623
|
async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
|
|
624
624
|
try {
|
|
625
625
|
await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
|
|
626
|
-
justification: ( localize(
|
|
626
|
+
justification: ( localize(6121, "Inspecting binary data requires this extension.")),
|
|
627
627
|
enable: true
|
|
628
628
|
}, 15 );
|
|
629
629
|
return true;
|
|
@@ -688,7 +688,7 @@ registerAction2(class extends ViewAction {
|
|
|
688
688
|
super({
|
|
689
689
|
id: 'variables.collapse',
|
|
690
690
|
viewId: VARIABLES_VIEW_ID,
|
|
691
|
-
title: ( localize(
|
|
691
|
+
title: ( localize(6122, "Collapse All")),
|
|
692
692
|
f1: false,
|
|
693
693
|
icon: Codicon.collapseAll,
|
|
694
694
|
menu: {
|
|
@@ -281,7 +281,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
281
281
|
if (settingValue) {
|
|
282
282
|
return {
|
|
283
283
|
initialValue: expression.value,
|
|
284
|
-
ariaLabel: ( localize(
|
|
284
|
+
ariaLabel: ( localize(6123, "Type new value")),
|
|
285
285
|
onFinish: async (value, success) => {
|
|
286
286
|
if (success && value) {
|
|
287
287
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -295,8 +295,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
295
295
|
}
|
|
296
296
|
return {
|
|
297
297
|
initialValue: expression.name ? expression.name : '',
|
|
298
|
-
ariaLabel: ( localize(
|
|
299
|
-
placeholder: ( localize(
|
|
298
|
+
ariaLabel: ( localize(6124, "Type watch expression")),
|
|
299
|
+
placeholder: ( localize(6125, "Expression to watch")),
|
|
300
300
|
onFinish: (value, success) => {
|
|
301
301
|
if (success && value) {
|
|
302
302
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -337,13 +337,13 @@ function getContextForWatchExpressionMenu(parentContext, expression) {
|
|
|
337
337
|
}
|
|
338
338
|
class WatchExpressionsAccessibilityProvider {
|
|
339
339
|
getWidgetAriaLabel() {
|
|
340
|
-
return ( localize(
|
|
340
|
+
return ( localize(6126, "Debug Watch Expressions"));
|
|
341
341
|
}
|
|
342
342
|
getAriaLabel(element) {
|
|
343
343
|
if (element instanceof Expression) {
|
|
344
|
-
return ( localize(
|
|
344
|
+
return ( localize(6127, "{0}, value {1}", element.name, element.value));
|
|
345
345
|
}
|
|
346
|
-
return ( localize(
|
|
346
|
+
return ( localize(6128, "{0}, value {1}", element.name, element.value));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
class WatchExpressionsDragAndDrop {
|
|
@@ -424,7 +424,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
424
424
|
super({
|
|
425
425
|
id: 'watch.collapse',
|
|
426
426
|
viewId: WATCH_VIEW_ID,
|
|
427
|
-
title: ( localize(
|
|
427
|
+
title: ( localize(6129, "Collapse All")),
|
|
428
428
|
f1: false,
|
|
429
429
|
icon: Codicon.collapseAll,
|
|
430
430
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -441,7 +441,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
441
441
|
}
|
|
442
442
|
});
|
|
443
443
|
const ADD_WATCH_ID = 'workbench.debug.viewlet.action.addWatchExpression';
|
|
444
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
444
|
+
const ADD_WATCH_LABEL = ( localize(6130, "Add Expression"));
|
|
445
445
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
446
446
|
constructor() {
|
|
447
447
|
super({
|
|
@@ -462,7 +462,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
462
462
|
}
|
|
463
463
|
});
|
|
464
464
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = 'workbench.debug.viewlet.action.removeAllWatchExpressions';
|
|
465
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
465
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(6131, "Remove All Expressions"));
|
|
466
466
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super({
|
|
@@ -30,7 +30,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( (new RawContextKey(debugStartLanguageKey,
|
|
|
30
30
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( (new RawContextKey('debuggerInterestedInActiveEditor', false)));
|
|
31
31
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
32
32
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
33
|
-
static { this.LABEL = ( localize2(
|
|
33
|
+
static { this.LABEL = ( localize2(6132, "Run")); }
|
|
34
34
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, telemetryService, hoverService) {
|
|
35
35
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
36
36
|
this.debugService = debugService;
|
|
@@ -101,7 +101,7 @@ WelcomeView = ( (__decorate([
|
|
|
101
101
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
102
102
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
103
103
|
content: ( localize(
|
|
104
|
-
|
|
104
|
+
6133,
|
|
105
105
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
106
106
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
|
|
107
107
|
)),
|
|
@@ -113,20 +113,20 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
113
113
|
});
|
|
114
114
|
let debugKeybindingLabel = '';
|
|
115
115
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
116
|
-
content: `[${( localize(
|
|
116
|
+
content: `[${( localize(6134, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
117
117
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
118
118
|
group: ViewContentGroups.Debug,
|
|
119
119
|
order: 1
|
|
120
120
|
});
|
|
121
121
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
122
|
-
content: `[${( localize(
|
|
122
|
+
content: `[${( localize(6135, "Show all automatic debug configurations"))}](command:${SELECT_AND_START_ID}).`,
|
|
123
123
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
124
124
|
group: ViewContentGroups.Debug,
|
|
125
125
|
order: 10
|
|
126
126
|
});
|
|
127
127
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
128
128
|
content: ( localize(
|
|
129
|
-
|
|
129
|
+
6136,
|
|
130
130
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
131
131
|
DEBUG_CONFIGURE_COMMAND_ID
|
|
132
132
|
)),
|
|
@@ -138,7 +138,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
138
138
|
});
|
|
139
139
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
140
140
|
content: ( localize(
|
|
141
|
-
|
|
141
|
+
6137,
|
|
142
142
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
143
143
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
|
|
144
144
|
)),
|
|
@@ -150,7 +150,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
150
150
|
});
|
|
151
151
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
152
152
|
content: ( localize(
|
|
153
|
-
|
|
153
|
+
6138,
|
|
154
154
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
155
155
|
)),
|
|
156
156
|
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(6139, "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(6140, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
59
|
+
: ( localize(6141, "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 => {
|