@codingame/monaco-vscode-debug-service-override 13.0.0 → 13.1.0
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 +17 -37
- 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 +108 -108
- 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/debugMemory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +22 -22
- 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 +4 -4
- 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/extensionHostDebugService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +1 -1
- 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 +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/debugVisualizers.d.ts +1 -1
- 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
|
@@ -560,7 +560,7 @@ class LoadedScriptsRenderer {
|
|
|
560
560
|
options.fileKind = FileKind.ROOT_FOLDER;
|
|
561
561
|
}
|
|
562
562
|
else if (element instanceof SessionTreeItem) {
|
|
563
|
-
options.title = ( localize(
|
|
563
|
+
options.title = ( localize(5435, "Debug Session"));
|
|
564
564
|
options.hideIcon = true;
|
|
565
565
|
}
|
|
566
566
|
else if (element instanceof BaseTreeItem) {
|
|
@@ -582,20 +582,20 @@ class LoadedScriptsRenderer {
|
|
|
582
582
|
}
|
|
583
583
|
class LoadedSciptsAccessibilityProvider {
|
|
584
584
|
getWidgetAriaLabel() {
|
|
585
|
-
return localize(
|
|
585
|
+
return localize(5436, "Debug Loaded Scripts");
|
|
586
586
|
}
|
|
587
587
|
getAriaLabel(element) {
|
|
588
588
|
if (element instanceof RootFolderTreeItem) {
|
|
589
|
-
return localize(
|
|
589
|
+
return localize(5437, "Workspace folder {0}, loaded script, debug", element.getLabel());
|
|
590
590
|
}
|
|
591
591
|
if (element instanceof SessionTreeItem) {
|
|
592
|
-
return localize(
|
|
592
|
+
return localize(5438, "Session {0}, loaded script, debug", element.getLabel());
|
|
593
593
|
}
|
|
594
594
|
if (element.hasChildren()) {
|
|
595
|
-
return localize(
|
|
595
|
+
return localize(5439, "Folder {0}, loaded script, debug", element.getLabel());
|
|
596
596
|
}
|
|
597
597
|
else {
|
|
598
|
-
return localize(
|
|
598
|
+
return localize(5440, "{0}, loaded script, debug", element.getLabel());
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
601
|
}
|
|
@@ -622,7 +622,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
622
622
|
super({
|
|
623
623
|
id: 'loadedScripts.collapse',
|
|
624
624
|
viewId: LOADED_SCRIPTS_VIEW_ID,
|
|
625
|
-
title: ( localize(
|
|
625
|
+
title: ( localize(5441, "Collapse All")),
|
|
626
626
|
f1: false,
|
|
627
627
|
icon: Codicon.collapseAll,
|
|
628
628
|
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(5442, "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
|
+
5443,
|
|
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(5444, "&&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(5445, "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(5446, "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 }) })]);
|
|
@@ -100,7 +100,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
100
100
|
super({
|
|
101
101
|
...options,
|
|
102
102
|
filterOptions: {
|
|
103
|
-
placeholder: ( localize(
|
|
103
|
+
placeholder: ( localize(5447, "Filter (e.g. text, !exclude, \\escape)")),
|
|
104
104
|
text: filterText,
|
|
105
105
|
history: JSON.parse(storageService.get(FILTER_HISTORY_STORAGE_KEY, StorageScope.WORKSPACE, '[]')),
|
|
106
106
|
}
|
|
@@ -502,7 +502,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
502
502
|
await autoExpandElements(session.getReplElements());
|
|
503
503
|
}
|
|
504
504
|
const { total, filtered } = this.getFilterStats();
|
|
505
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
505
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(5448, "Showing {0} of {1}", filtered, total)));
|
|
506
506
|
}, Repl_1.REFRESH_DELAY));
|
|
507
507
|
}
|
|
508
508
|
render() {
|
|
@@ -624,17 +624,17 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
624
624
|
this._register(addStandardDisposableListener(this.replInputContainer, EventType.BLUR, () => this.replInputContainer.classList.remove('synthetic-focus')));
|
|
625
625
|
}
|
|
626
626
|
getAriaLabel() {
|
|
627
|
-
let ariaLabel = ( localize(
|
|
627
|
+
let ariaLabel = ( localize(5449, "Debug Console"));
|
|
628
628
|
if (!this.configurationService.getValue(AccessibilityVerbositySettingId.Debug)) {
|
|
629
629
|
return ariaLabel;
|
|
630
630
|
}
|
|
631
631
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getAriaLabel();
|
|
632
632
|
if (keybinding) {
|
|
633
|
-
ariaLabel = ( localize(
|
|
633
|
+
ariaLabel = ( localize(5450, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
634
634
|
}
|
|
635
635
|
else {
|
|
636
636
|
ariaLabel = ( localize(
|
|
637
|
-
|
|
637
|
+
5451,
|
|
638
638
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
639
639
|
ariaLabel
|
|
640
640
|
));
|
|
@@ -673,7 +673,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
673
673
|
},
|
|
674
674
|
renderOptions: {
|
|
675
675
|
after: {
|
|
676
|
-
contentText: ( localize(
|
|
676
|
+
contentText: ( localize(5452, "Please start a debug session to evaluate expressions")),
|
|
677
677
|
color: transparentForeground ? ( transparentForeground.toString()) : undefined
|
|
678
678
|
}
|
|
679
679
|
}
|
|
@@ -786,7 +786,7 @@ class AcceptReplInputAction extends EditorAction {
|
|
|
786
786
|
constructor() {
|
|
787
787
|
super({
|
|
788
788
|
id: 'repl.action.acceptInput',
|
|
789
|
-
label: ( localize2(
|
|
789
|
+
label: ( localize2(5453, "Debug Console: Accept Input")),
|
|
790
790
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
791
791
|
kbOpts: {
|
|
792
792
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -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(5454, "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(5455, "Debug Console: Focus Find")),
|
|
828
828
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
829
829
|
keybinding: [{
|
|
830
830
|
when: ( ContextKeyExpr.or(CONTEXT_IN_DEBUG_REPL, ( ContextKeyExpr.equals('focusedView', 'workbench.panel.repl.view')))),
|
|
@@ -852,7 +852,7 @@ class ReplCopyAllAction extends EditorAction {
|
|
|
852
852
|
constructor() {
|
|
853
853
|
super({
|
|
854
854
|
id: 'repl.action.copyAll',
|
|
855
|
-
label: ( localize(
|
|
855
|
+
label: ( localize(5456, "Debug: Console Copy All")),
|
|
856
856
|
alias: 'Debug Console Copy All',
|
|
857
857
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
858
858
|
});
|
|
@@ -889,7 +889,7 @@ registerAction2(class extends ViewAction {
|
|
|
889
889
|
super({
|
|
890
890
|
id: selectReplCommandId,
|
|
891
891
|
viewId: REPL_VIEW_ID,
|
|
892
|
-
title: ( localize(
|
|
892
|
+
title: ( localize(5457, "Select Debug Console")),
|
|
893
893
|
f1: false,
|
|
894
894
|
menu: {
|
|
895
895
|
id: MenuId.ViewTitle,
|
|
@@ -918,9 +918,9 @@ registerAction2(class extends ViewAction {
|
|
|
918
918
|
super({
|
|
919
919
|
id: 'workbench.debug.panel.action.clearReplAction',
|
|
920
920
|
viewId: REPL_VIEW_ID,
|
|
921
|
-
title: ( localize2(
|
|
921
|
+
title: ( localize2(5458, 'Clear Console')),
|
|
922
922
|
metadata: {
|
|
923
|
-
description: ( localize2(
|
|
923
|
+
description: ( localize2(5459, 'Clears all program output from your debug REPL'))
|
|
924
924
|
},
|
|
925
925
|
f1: true,
|
|
926
926
|
icon: debugConsoleClearAll,
|
|
@@ -952,7 +952,7 @@ registerAction2(class extends ViewAction {
|
|
|
952
952
|
constructor() {
|
|
953
953
|
super({
|
|
954
954
|
id: 'debug.collapseRepl',
|
|
955
|
-
title: ( localize(
|
|
955
|
+
title: ( localize(5460, "Collapse All")),
|
|
956
956
|
viewId: REPL_VIEW_ID,
|
|
957
957
|
menu: {
|
|
958
958
|
id: MenuId.DebugConsoleContext,
|
|
@@ -970,7 +970,7 @@ registerAction2(class extends ViewAction {
|
|
|
970
970
|
constructor() {
|
|
971
971
|
super({
|
|
972
972
|
id: 'debug.replPaste',
|
|
973
|
-
title: ( localize(
|
|
973
|
+
title: ( localize(5461, "Paste")),
|
|
974
974
|
viewId: REPL_VIEW_ID,
|
|
975
975
|
precondition: ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Inactive))),
|
|
976
976
|
menu: {
|
|
@@ -1000,7 +1000,7 @@ registerAction2(class extends ViewAction {
|
|
|
1000
1000
|
constructor() {
|
|
1001
1001
|
super({
|
|
1002
1002
|
id: 'workbench.debug.action.copyAll',
|
|
1003
|
-
title: ( localize(
|
|
1003
|
+
title: ( localize(5462, "Copy All")),
|
|
1004
1004
|
viewId: REPL_VIEW_ID,
|
|
1005
1005
|
menu: {
|
|
1006
1006
|
id: MenuId.DebugConsoleContext,
|
|
@@ -1018,7 +1018,7 @@ registerAction2(class extends Action2 {
|
|
|
1018
1018
|
constructor() {
|
|
1019
1019
|
super({
|
|
1020
1020
|
id: 'debug.replCopy',
|
|
1021
|
-
title: ( localize(
|
|
1021
|
+
title: ( localize(5463, "Copy")),
|
|
1022
1022
|
menu: {
|
|
1023
1023
|
id: MenuId.DebugConsoleContext,
|
|
1024
1024
|
group: '2_cutcopypaste',
|
|
@@ -42,41 +42,41 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
42
42
|
provideContent() {
|
|
43
43
|
return [
|
|
44
44
|
( localize(
|
|
45
|
-
|
|
45
|
+
5464,
|
|
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
|
+
5465,
|
|
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
|
+
5466,
|
|
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
|
+
5467,
|
|
61
61
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
62
62
|
)),
|
|
63
63
|
( localize(
|
|
64
|
-
|
|
64
|
+
5468,
|
|
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
|
+
5469,
|
|
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
|
+
5470,
|
|
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
|
+
5471,
|
|
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(5472, "Debug Console");
|
|
312
312
|
}
|
|
313
313
|
getAriaLabel(element) {
|
|
314
314
|
if (element instanceof Variable) {
|
|
315
|
-
return localize(
|
|
315
|
+
return localize(5473, "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(5474, ", occurred {0} times", element.count)) : '');
|
|
319
319
|
}
|
|
320
320
|
if (element instanceof RawObjectReplElement) {
|
|
321
|
-
return localize(
|
|
321
|
+
return localize(5475, "Debug console variable {0}, value {1}", element.name, element.value);
|
|
322
322
|
}
|
|
323
323
|
if (element instanceof ReplGroup) {
|
|
324
|
-
return localize(
|
|
324
|
+
return localize(5476, "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
|
+
5477,
|
|
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
|
+
5478,
|
|
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
|
+
5479,
|
|
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(5480, "Once debugging, the following commands will be available:")),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
5481,
|
|
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
|
+
5482,
|
|
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
|
+
5483,
|
|
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
|
+
5484,
|
|
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
|
+
5485,
|
|
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
|
+
5486,
|
|
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
|
+
5487,
|
|
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
|
+
5488,
|
|
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
|
+
5489,
|
|
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
|
+
5490,
|
|
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
|
+
5491,
|
|
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
|
+
5492,
|
|
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
|
+
5493,
|
|
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
|
+
5494,
|
|
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
|
+
5495,
|
|
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(5496, "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) {
|
|
@@ -363,7 +363,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
363
363
|
const viz = expression;
|
|
364
364
|
return {
|
|
365
365
|
initialValue: expression.value,
|
|
366
|
-
ariaLabel: ( localize(
|
|
366
|
+
ariaLabel: ( localize(5497, "Type new variable value")),
|
|
367
367
|
validationOptions: {
|
|
368
368
|
validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
|
|
369
369
|
},
|
|
@@ -385,7 +385,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
385
385
|
const menu = this.menuService.getMenuActions(MenuId.DebugVariablesContext, contextKeyService, { arg: context, shouldForwardArgs: false });
|
|
386
386
|
const { primary } = getContextMenuActions(menu, 'inline');
|
|
387
387
|
if (viz.original) {
|
|
388
|
-
const action = ( new Action('debugViz', ( localize(
|
|
388
|
+
const action = ( new Action('debugViz', ( localize(5498, '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(5497, "Type new variable value")),
|
|
434
434
|
validationOptions: {
|
|
435
435
|
validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
|
|
436
436
|
},
|
|
@@ -473,7 +473,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
473
473
|
actionBar.push(actions[0], { icon: true, label: false });
|
|
474
474
|
}
|
|
475
475
|
else {
|
|
476
|
-
actionBar.push(( new Action('debugViz', ( localize(
|
|
476
|
+
actionBar.push(( new Action('debugViz', ( localize(5499, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data))), { icon: true, label: false });
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
479
|
}
|
|
@@ -512,14 +512,14 @@ VariablesRenderer = VariablesRenderer_1 = ( __decorate([
|
|
|
512
512
|
], VariablesRenderer));
|
|
513
513
|
class VariablesAccessibilityProvider {
|
|
514
514
|
getWidgetAriaLabel() {
|
|
515
|
-
return localize(
|
|
515
|
+
return localize(5500, "Debug Variables");
|
|
516
516
|
}
|
|
517
517
|
getAriaLabel(element) {
|
|
518
518
|
if (element instanceof Scope) {
|
|
519
|
-
return localize(
|
|
519
|
+
return localize(5501, "Scope {0}", element.name);
|
|
520
520
|
}
|
|
521
521
|
if (element instanceof Variable) {
|
|
522
|
-
return localize(
|
|
522
|
+
return localize(5502, "{0}, value {1}", element.name, element.value);
|
|
523
523
|
}
|
|
524
524
|
return null;
|
|
525
525
|
}
|
|
@@ -622,7 +622,7 @@ CommandsRegistry.registerCommand({
|
|
|
622
622
|
async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
|
|
623
623
|
try {
|
|
624
624
|
await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
|
|
625
|
-
justification: ( localize(
|
|
625
|
+
justification: ( localize(5503, "Inspecting binary data requires this extension.")),
|
|
626
626
|
enable: true
|
|
627
627
|
}, ProgressLocation.Notification);
|
|
628
628
|
return true;
|
|
@@ -687,7 +687,7 @@ registerAction2(class extends ViewAction {
|
|
|
687
687
|
super({
|
|
688
688
|
id: 'variables.collapse',
|
|
689
689
|
viewId: VARIABLES_VIEW_ID,
|
|
690
|
-
title: ( localize(
|
|
690
|
+
title: ( localize(5504, "Collapse All")),
|
|
691
691
|
f1: false,
|
|
692
692
|
icon: Codicon.collapseAll,
|
|
693
693
|
menu: {
|
|
@@ -283,7 +283,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
283
283
|
if (settingValue) {
|
|
284
284
|
return {
|
|
285
285
|
initialValue: expression.value,
|
|
286
|
-
ariaLabel: ( localize(
|
|
286
|
+
ariaLabel: ( localize(5505, "Type new value")),
|
|
287
287
|
onFinish: async (value, success) => {
|
|
288
288
|
if (success && value) {
|
|
289
289
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -297,8 +297,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
297
297
|
}
|
|
298
298
|
return {
|
|
299
299
|
initialValue: expression.name ? expression.name : '',
|
|
300
|
-
ariaLabel: ( localize(
|
|
301
|
-
placeholder: ( localize(
|
|
300
|
+
ariaLabel: ( localize(5506, "Type watch expression")),
|
|
301
|
+
placeholder: ( localize(5507, "Expression to watch")),
|
|
302
302
|
onFinish: (value, success) => {
|
|
303
303
|
if (success && value) {
|
|
304
304
|
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(5508, "Debug Watch Expressions");
|
|
342
342
|
}
|
|
343
343
|
getAriaLabel(element) {
|
|
344
344
|
if (element instanceof Expression) {
|
|
345
|
-
return localize(
|
|
345
|
+
return localize(5509, "{0}, value {1}", element.name, element.value);
|
|
346
346
|
}
|
|
347
|
-
return localize(
|
|
347
|
+
return localize(5510, "{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(5511, "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(5512, "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(5513, "Remove All Expressions"));
|
|
467
467
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
468
468
|
constructor() {
|
|
469
469
|
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(5514, "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
|
+
5515,
|
|
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(5516, "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
|
+
5517,
|
|
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
|
+
5518,
|
|
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
|
+
5519,
|
|
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()),
|
|
@@ -50,14 +50,14 @@ let DebugContentProvider = class DebugContentProvider {
|
|
|
50
50
|
session = this.debugService.getViewModel().focusedSession;
|
|
51
51
|
}
|
|
52
52
|
if (!session) {
|
|
53
|
-
return Promise.reject(( new ErrorNoTelemetry(( localize(
|
|
53
|
+
return Promise.reject(( new ErrorNoTelemetry(( localize(5585, "Unable to resolve the resource without a debug session")))));
|
|
54
54
|
}
|
|
55
55
|
const createErrModel = (errMsg) => {
|
|
56
56
|
this.debugService.sourceIsNotAvailable(resource);
|
|
57
57
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
58
58
|
const message = errMsg
|
|
59
|
-
? ( localize(
|
|
60
|
-
: ( localize(
|
|
59
|
+
? ( localize(5586, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
60
|
+
: ( localize(5587, "Could not load source '{0}'.", resource.path));
|
|
61
61
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
62
62
|
};
|
|
63
63
|
return session.loadSource(resource).then(response => {
|