@codingame/monaco-vscode-debug-service-override 8.0.0 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +107 -107
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +21 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +41 -41
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +15 -15
- 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/linkDetector.js +3 -3
- 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 +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +20 -15
- 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
|
@@ -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(10217, "No debug adapter, can not start debug session."))))));
|
|
197
197
|
}
|
|
198
198
|
await this.debugAdapter.startSession();
|
|
199
199
|
this.startTime = ( (new Date())).getTime();
|
|
@@ -514,10 +514,10 @@ let RawDebugSession = class RawDebugSession {
|
|
|
514
514
|
const { confirmed } = await this.dialogSerivce.confirm({
|
|
515
515
|
type: Severity$1.Warning,
|
|
516
516
|
message: ( localize(
|
|
517
|
-
|
|
517
|
+
10218,
|
|
518
518
|
"The debugger needs to open a new tab or window for the debuggee but the browser prevented this. You must give permission to continue."
|
|
519
519
|
)),
|
|
520
|
-
primaryButton: ( localize(
|
|
520
|
+
primaryButton: ( localize(10219, "&&Continue"))
|
|
521
521
|
});
|
|
522
522
|
if (confirmed) {
|
|
523
523
|
result = await this.launchVsCode(request.arguments);
|
|
@@ -617,7 +617,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
617
617
|
completeDispatch(undefined);
|
|
618
618
|
}
|
|
619
619
|
else {
|
|
620
|
-
errorDispatch(( (new Error(( localize(
|
|
620
|
+
errorDispatch(( (new Error(( localize(10220, "No debugger available found. Can not send '{0}'.", command))))));
|
|
621
621
|
}
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
@@ -650,7 +650,7 @@ let RawDebugSession = class RawDebugSession {
|
|
|
650
650
|
const userMessage = error ? formatPII(error.format, false, error.variables) : errorMessage;
|
|
651
651
|
const url = error?.url;
|
|
652
652
|
if (error && url) {
|
|
653
|
-
const label = error.urlLabel ? error.urlLabel : ( localize(
|
|
653
|
+
const label = error.urlLabel ? error.urlLabel : ( localize(10221, "More Info"));
|
|
654
654
|
const uri = ( (URI.parse(url)));
|
|
655
655
|
const actionId = uri.scheme === Schemas.command ? 'debug.moreInfo.command' : 'debug.moreInfo';
|
|
656
656
|
return createErrorWithActions(userMessage, [toAction({ id: actionId, label, run: () => this.openerService.open(uri, { allowCommands: true }) })]);
|
|
@@ -97,7 +97,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
97
97
|
super({
|
|
98
98
|
...options,
|
|
99
99
|
filterOptions: {
|
|
100
|
-
placeholder: ( localize(
|
|
100
|
+
placeholder: ( localize(6067, "Filter (e.g. text, !exclude, \\escape)")),
|
|
101
101
|
text: filterText,
|
|
102
102
|
history: JSON.parse(storageService.get(FILTER_HISTORY_STORAGE_KEY, StorageScope.WORKSPACE, '[]')),
|
|
103
103
|
}
|
|
@@ -496,7 +496,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
496
496
|
await autoExpandElements(session.getReplElements());
|
|
497
497
|
}
|
|
498
498
|
const { total, filtered } = this.getFilterStats();
|
|
499
|
-
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(
|
|
499
|
+
this.filterWidget.updateBadge(total === filtered || total === 0 ? undefined : ( localize(6068, "Showing {0} of {1}", filtered, total)));
|
|
500
500
|
}, Repl_1.REFRESH_DELAY))
|
|
501
501
|
);
|
|
502
502
|
}
|
|
@@ -615,17 +615,17 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
615
615
|
this._register(addStandardDisposableListener(this.replInputContainer, EventType.BLUR, () => this.replInputContainer.classList.remove('synthetic-focus')));
|
|
616
616
|
}
|
|
617
617
|
getAriaLabel() {
|
|
618
|
-
let ariaLabel = ( localize(
|
|
618
|
+
let ariaLabel = ( localize(6069, "Debug Console"));
|
|
619
619
|
if (!this.configurationService.getValue(AccessibilityVerbositySettingId.Debug)) {
|
|
620
620
|
return ariaLabel;
|
|
621
621
|
}
|
|
622
622
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getAriaLabel();
|
|
623
623
|
if (keybinding) {
|
|
624
|
-
ariaLabel = ( localize(
|
|
624
|
+
ariaLabel = ( localize(6070, "{0}, use ({1}) for accessibility help", ariaLabel, keybinding));
|
|
625
625
|
}
|
|
626
626
|
else {
|
|
627
627
|
ariaLabel = ( localize(
|
|
628
|
-
|
|
628
|
+
6071,
|
|
629
629
|
"{0}, run the command Open Accessibility Help which is currently not triggerable via keybinding.",
|
|
630
630
|
ariaLabel
|
|
631
631
|
));
|
|
@@ -665,7 +665,7 @@ let Repl = class Repl extends FilterViewPane {
|
|
|
665
665
|
},
|
|
666
666
|
renderOptions: {
|
|
667
667
|
after: {
|
|
668
|
-
contentText: ( localize(
|
|
668
|
+
contentText: ( localize(6072, "Please start a debug session to evaluate expressions")),
|
|
669
669
|
color: transparentForeground ? ( (transparentForeground.toString())) : undefined
|
|
670
670
|
}
|
|
671
671
|
}
|
|
@@ -778,7 +778,7 @@ class AcceptReplInputAction extends EditorAction {
|
|
|
778
778
|
constructor() {
|
|
779
779
|
super({
|
|
780
780
|
id: 'repl.action.acceptInput',
|
|
781
|
-
label: ( localize(
|
|
781
|
+
label: ( localize(6073, "Debug Console: Accept Input")),
|
|
782
782
|
alias: 'Debug Console: Accept Input',
|
|
783
783
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
784
784
|
kbOpts: {
|
|
@@ -798,7 +798,7 @@ class FilterReplAction extends EditorAction {
|
|
|
798
798
|
constructor() {
|
|
799
799
|
super({
|
|
800
800
|
id: 'repl.action.filter',
|
|
801
|
-
label: ( localize(
|
|
801
|
+
label: ( localize(6074, "Debug Console: Focus Filter")),
|
|
802
802
|
alias: 'Debug Console: Focus Filter',
|
|
803
803
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
804
804
|
kbOpts: {
|
|
@@ -817,7 +817,7 @@ class ReplCopyAllAction extends EditorAction {
|
|
|
817
817
|
constructor() {
|
|
818
818
|
super({
|
|
819
819
|
id: 'repl.action.copyAll',
|
|
820
|
-
label: ( localize(
|
|
820
|
+
label: ( localize(6075, "Debug: Console Copy All")),
|
|
821
821
|
alias: 'Debug Console Copy All',
|
|
822
822
|
precondition: CONTEXT_IN_DEBUG_REPL,
|
|
823
823
|
});
|
|
@@ -853,7 +853,7 @@ registerAction2(class extends ViewAction {
|
|
|
853
853
|
super({
|
|
854
854
|
id: selectReplCommandId,
|
|
855
855
|
viewId: REPL_VIEW_ID,
|
|
856
|
-
title: ( localize(
|
|
856
|
+
title: ( localize(6076, "Select Debug Console")),
|
|
857
857
|
f1: false,
|
|
858
858
|
menu: {
|
|
859
859
|
id: MenuId.ViewTitle,
|
|
@@ -885,9 +885,9 @@ registerAction2(class extends ViewAction {
|
|
|
885
885
|
super({
|
|
886
886
|
id: 'workbench.debug.panel.action.clearReplAction',
|
|
887
887
|
viewId: REPL_VIEW_ID,
|
|
888
|
-
title: ( localize2(
|
|
888
|
+
title: ( localize2(6077, 'Clear Console')),
|
|
889
889
|
metadata: {
|
|
890
|
-
description: ( localize2(
|
|
890
|
+
description: ( localize2(6078, 'Clears all program output from your debug REPL'))
|
|
891
891
|
},
|
|
892
892
|
f1: true,
|
|
893
893
|
icon: debugConsoleClearAll,
|
|
@@ -913,7 +913,7 @@ registerAction2(class extends ViewAction {
|
|
|
913
913
|
constructor() {
|
|
914
914
|
super({
|
|
915
915
|
id: 'debug.collapseRepl',
|
|
916
|
-
title: ( localize(
|
|
916
|
+
title: ( localize(6079, "Collapse All")),
|
|
917
917
|
viewId: REPL_VIEW_ID,
|
|
918
918
|
menu: {
|
|
919
919
|
id: MenuId.DebugConsoleContext,
|
|
@@ -931,7 +931,7 @@ registerAction2(class extends ViewAction {
|
|
|
931
931
|
constructor() {
|
|
932
932
|
super({
|
|
933
933
|
id: 'debug.replPaste',
|
|
934
|
-
title: ( localize(
|
|
934
|
+
title: ( localize(6080, "Paste")),
|
|
935
935
|
viewId: REPL_VIEW_ID,
|
|
936
936
|
precondition: ( (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Inactive)))),
|
|
937
937
|
menu: {
|
|
@@ -961,7 +961,7 @@ registerAction2(class extends ViewAction {
|
|
|
961
961
|
constructor() {
|
|
962
962
|
super({
|
|
963
963
|
id: 'workbench.debug.action.copyAll',
|
|
964
|
-
title: ( localize(
|
|
964
|
+
title: ( localize(6081, "Copy All")),
|
|
965
965
|
viewId: REPL_VIEW_ID,
|
|
966
966
|
menu: {
|
|
967
967
|
id: MenuId.DebugConsoleContext,
|
|
@@ -979,7 +979,7 @@ registerAction2(class extends Action2 {
|
|
|
979
979
|
constructor() {
|
|
980
980
|
super({
|
|
981
981
|
id: 'debug.replCopy',
|
|
982
|
-
title: ( localize(
|
|
982
|
+
title: ( localize(6082, "Copy")),
|
|
983
983
|
menu: {
|
|
984
984
|
id: MenuId.DebugConsoleContext,
|
|
985
985
|
group: '2_cutcopypaste',
|
|
@@ -44,56 +44,56 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
44
44
|
provideContent() {
|
|
45
45
|
return [
|
|
46
46
|
( localize(
|
|
47
|
-
|
|
47
|
+
6115,
|
|
48
48
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
49
49
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
50
50
|
)),
|
|
51
51
|
( localize(
|
|
52
|
-
|
|
52
|
+
6116,
|
|
53
53
|
"The debug console output can be navigated to from the input field with the Focus Previous Widget command{0}.",
|
|
54
54
|
'<keybinding:widgetNavigation.focusPrevious>'
|
|
55
55
|
)),
|
|
56
56
|
( localize(
|
|
57
|
-
|
|
57
|
+
6117,
|
|
58
58
|
"The debug console input can be navigated to from the output with the Focus Next Widget command{0}.",
|
|
59
59
|
'<keybinding:widgetNavigation.focusNext>'
|
|
60
60
|
)),
|
|
61
61
|
( localize(
|
|
62
|
-
|
|
62
|
+
6118,
|
|
63
63
|
"The debug console output history can be navigated with the up and down arrow keys."
|
|
64
64
|
)),
|
|
65
65
|
( localize(
|
|
66
|
-
|
|
66
|
+
6119,
|
|
67
67
|
"The Open Accessible View command{0} will allow character by character navigation of the console output.",
|
|
68
68
|
'<keybinding:editor.action.accessibleView>'
|
|
69
69
|
)),
|
|
70
70
|
( localize(
|
|
71
|
-
|
|
71
|
+
6120,
|
|
72
72
|
"The Show Run and Debug view command{0} will open the Run and Debug view.",
|
|
73
73
|
'<keybinding:workbench.view.debug>'
|
|
74
74
|
)),
|
|
75
75
|
AccessibilityHelpNLS.setBreakpoint,
|
|
76
76
|
( localize(
|
|
77
|
-
|
|
77
|
+
6121,
|
|
78
78
|
"The setting `debug.expandLazyVariables` controls whether variables are evaluated automatically. This is enabled by default when using a screen reader."
|
|
79
79
|
)),
|
|
80
80
|
( localize(
|
|
81
|
-
|
|
81
|
+
6122,
|
|
82
82
|
"The Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
83
83
|
'<keybinding:workbench.action.debug.continue>'
|
|
84
84
|
)),
|
|
85
85
|
( localize(
|
|
86
|
-
|
|
86
|
+
6123,
|
|
87
87
|
"The Debug: Step Into command{0} will step into the next function call.",
|
|
88
88
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
89
89
|
)),
|
|
90
90
|
( localize(
|
|
91
|
-
|
|
91
|
+
6124,
|
|
92
92
|
"The Debug: Step Over command{0} will step over the current function call.",
|
|
93
93
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
94
94
|
)),
|
|
95
95
|
( localize(
|
|
96
|
-
|
|
96
|
+
6125,
|
|
97
97
|
"The Debug: Step Out command{0} will step out of the current function call.",
|
|
98
98
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
99
99
|
)),
|
|
@@ -300,25 +300,25 @@ class ReplDataSource {
|
|
|
300
300
|
}
|
|
301
301
|
class ReplAccessibilityProvider {
|
|
302
302
|
getWidgetAriaLabel() {
|
|
303
|
-
return ( localize(
|
|
303
|
+
return ( localize(10259, "Debug Console"));
|
|
304
304
|
}
|
|
305
305
|
getAriaLabel(element) {
|
|
306
306
|
if (element instanceof Variable) {
|
|
307
|
-
return ( localize(
|
|
307
|
+
return ( localize(10260, "Variable {0}, value {1}", element.name, element.value));
|
|
308
308
|
}
|
|
309
309
|
if (element instanceof ReplOutputElement || element instanceof ReplEvaluationInput || element instanceof ReplEvaluationResult) {
|
|
310
|
-
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(
|
|
310
|
+
return element.value + (element instanceof ReplOutputElement && element.count > 1 ? ( localize(10261, ", occurred {0} times", element.count)) : '');
|
|
311
311
|
}
|
|
312
312
|
if (element instanceof RawObjectReplElement) {
|
|
313
313
|
return ( localize(
|
|
314
|
-
|
|
314
|
+
10262,
|
|
315
315
|
"Debug console variable {0}, value {1}",
|
|
316
316
|
element.name,
|
|
317
317
|
element.value
|
|
318
318
|
));
|
|
319
319
|
}
|
|
320
320
|
if (element instanceof ReplGroup) {
|
|
321
|
-
return ( localize(
|
|
321
|
+
return ( localize(10263, "Debug console group {0}", element.name));
|
|
322
322
|
}
|
|
323
323
|
return '';
|
|
324
324
|
}
|
|
@@ -7,12 +7,17 @@ import { localize } from 'vscode/vscode/vs/nls';
|
|
|
7
7
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
8
8
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
9
9
|
import { AccessibilityHelpNLS } from 'vscode/vscode/vs/editor/common/standaloneStrings';
|
|
10
|
+
import { SidebarFocusContext, FocusedViewContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
11
|
+
import { VARIABLES_VIEW_ID, WATCH_VIEW_ID, CALLSTACK_VIEW_ID, LOADED_SCRIPTS_VIEW_ID, BREAKPOINTS_VIEW_ID } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
10
12
|
|
|
11
13
|
class RunAndDebugAccessibilityHelp {
|
|
12
14
|
constructor() {
|
|
13
15
|
this.priority = 120;
|
|
14
16
|
this.name = 'runAndDebugHelp';
|
|
15
|
-
this.when = ( (ContextKeyExpr.
|
|
17
|
+
this.when = ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|
|
18
|
+
(ContextKeyExpr.equals('activeViewlet', 'workbench.view.debug')),
|
|
19
|
+
SidebarFocusContext
|
|
20
|
+
)), (ContextKeyExpr.equals(FocusedViewContext.key, VARIABLES_VIEW_ID)), (ContextKeyExpr.equals(FocusedViewContext.key, WATCH_VIEW_ID)), (ContextKeyExpr.equals(FocusedViewContext.key, CALLSTACK_VIEW_ID)), (ContextKeyExpr.equals(FocusedViewContext.key, LOADED_SCRIPTS_VIEW_ID)), (ContextKeyExpr.equals(FocusedViewContext.key, BREAKPOINTS_VIEW_ID)))));
|
|
16
21
|
this.type = AccessibleViewType.Help;
|
|
17
22
|
}
|
|
18
23
|
getProvider(accessor) {
|
|
@@ -52,68 +57,68 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
52
57
|
provideContent() {
|
|
53
58
|
return [
|
|
54
59
|
( localize(
|
|
55
|
-
|
|
60
|
+
6126,
|
|
56
61
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
57
62
|
'<keybinding:workbench.view.debug>'
|
|
58
63
|
)),
|
|
59
64
|
( localize(
|
|
60
|
-
|
|
65
|
+
6127,
|
|
61
66
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
62
67
|
'<keybinding:workbench.action.debug.start>'
|
|
63
68
|
)),
|
|
64
69
|
AccessibilityHelpNLS.setBreakpoint,
|
|
65
|
-
( localize(
|
|
70
|
+
( localize(6128, "Once debugging, the following commands will be available:")),
|
|
66
71
|
( localize(
|
|
67
|
-
|
|
72
|
+
6129,
|
|
68
73
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
69
74
|
'<keybinding:workbench.action.debug.continue>'
|
|
70
75
|
)),
|
|
71
76
|
( localize(
|
|
72
|
-
|
|
77
|
+
6130,
|
|
73
78
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
74
79
|
'<keybinding:workbench.action.debug.stepInto>'
|
|
75
80
|
)),
|
|
76
81
|
( localize(
|
|
77
|
-
|
|
82
|
+
6131,
|
|
78
83
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
79
84
|
'<keybinding:workbench.action.debug.stepOver>'
|
|
80
85
|
)),
|
|
81
86
|
( localize(
|
|
82
|
-
|
|
87
|
+
6132,
|
|
83
88
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
84
89
|
'<keybinding:workbench.action.debug.stepOut>'
|
|
85
90
|
)),
|
|
86
91
|
( localize(
|
|
87
|
-
|
|
92
|
+
6133,
|
|
88
93
|
'The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:'
|
|
89
94
|
)),
|
|
90
95
|
( localize(
|
|
91
|
-
|
|
96
|
+
6134,
|
|
92
97
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
93
98
|
'<keybinding:workbench.debug.action.focusBreakpointsView>'
|
|
94
99
|
)),
|
|
95
100
|
( localize(
|
|
96
|
-
|
|
101
|
+
6135,
|
|
97
102
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
98
103
|
'<keybinding:workbench.debug.action.focusCallStackView>'
|
|
99
104
|
)),
|
|
100
105
|
( localize(
|
|
101
|
-
|
|
106
|
+
6136,
|
|
102
107
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
103
108
|
'<keybinding:workbench.debug.action.focusVariablesView>'
|
|
104
109
|
)),
|
|
105
110
|
( localize(
|
|
106
|
-
|
|
111
|
+
6137,
|
|
107
112
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
108
113
|
'<keybinding:workbench.debug.action.focusWatchView>'
|
|
109
114
|
)),
|
|
110
115
|
( localize(
|
|
111
|
-
|
|
116
|
+
6138,
|
|
112
117
|
"The debug console is a Read-Eval-Print-Loop that allows you to evaluate expressions and run commands and can be focused with{0}.",
|
|
113
118
|
'<keybinding:workbench.panel.repl.view.focus>'
|
|
114
119
|
)),
|
|
115
120
|
( localize(
|
|
116
|
-
|
|
121
|
+
6139,
|
|
117
122
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
118
123
|
'accessibility.debugWatchVariableAnnouncements'
|
|
119
124
|
)),
|
|
@@ -26,7 +26,7 @@ const STATUS_BAR_DEBUGGING_BACKGROUND = registerColor('statusBar.debuggingBackgr
|
|
|
26
26
|
hcDark: '#BA592C',
|
|
27
27
|
hcLight: '#B5200D'
|
|
28
28
|
}, ( localize(
|
|
29
|
-
|
|
29
|
+
6063,
|
|
30
30
|
"Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
31
31
|
)));
|
|
32
32
|
const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForeground', {
|
|
@@ -35,14 +35,14 @@ const STATUS_BAR_DEBUGGING_FOREGROUND = registerColor('statusBar.debuggingForegr
|
|
|
35
35
|
hcDark: STATUS_BAR_FOREGROUND,
|
|
36
36
|
hcLight: '#FFFFFF'
|
|
37
37
|
}, ( localize(
|
|
38
|
-
|
|
38
|
+
6064,
|
|
39
39
|
"Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
40
40
|
)));
|
|
41
41
|
const STATUS_BAR_DEBUGGING_BORDER = registerColor('statusBar.debuggingBorder', STATUS_BAR_BORDER, ( localize(
|
|
42
|
-
|
|
42
|
+
6065,
|
|
43
43
|
"Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window"
|
|
44
44
|
)));
|
|
45
|
-
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localize(
|
|
45
|
+
const COMMAND_CENTER_DEBUGGING_BACKGROUND = registerColor('commandCenter.debuggingBackground', ( (transparent(STATUS_BAR_DEBUGGING_BACKGROUND, 0.258))), ( localize(6066, "Command center background color when a program is being debugged")), true);
|
|
46
46
|
let StatusBarColorProvider = class StatusBarColorProvider {
|
|
47
47
|
set enabled(enabled) {
|
|
48
48
|
if (enabled === !!this.disposable) {
|
|
@@ -365,7 +365,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
365
365
|
const viz = expression;
|
|
366
366
|
return {
|
|
367
367
|
initialValue: expression.value,
|
|
368
|
-
ariaLabel: ( localize(
|
|
368
|
+
ariaLabel: ( localize(6083, "Type new variable value")),
|
|
369
369
|
validationOptions: {
|
|
370
370
|
validation: () => viz.errorMessage ? ({ content: viz.errorMessage }) : null
|
|
371
371
|
},
|
|
@@ -388,7 +388,7 @@ let VisualizedVariableRenderer = class VisualizedVariableRenderer extends Abstra
|
|
|
388
388
|
const primary = [];
|
|
389
389
|
createAndFillInContextMenuActions(menu, { primary, secondary: [] }, 'inline');
|
|
390
390
|
if (viz.original) {
|
|
391
|
-
const action = ( (new Action('debugViz', ( localize(
|
|
391
|
+
const action = ( (new Action('debugViz', ( localize(6084, 'Remove Visualizer')), ThemeIcon.asClassName(Codicon.eye), true, () => this.debugService.getViewModel().setVisualizedExpression(viz.original, undefined))));
|
|
392
392
|
action.checked = true;
|
|
393
393
|
primary.push(action);
|
|
394
394
|
actionBar.domNode.style.display = 'initial';
|
|
@@ -438,7 +438,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
438
438
|
const variable = expression;
|
|
439
439
|
return {
|
|
440
440
|
initialValue: expression.value,
|
|
441
|
-
ariaLabel: ( localize(
|
|
441
|
+
ariaLabel: ( localize(6083, "Type new variable value")),
|
|
442
442
|
validationOptions: {
|
|
443
443
|
validation: () => variable.errorMessage ? ({ content: variable.errorMessage }) : null
|
|
444
444
|
},
|
|
@@ -482,7 +482,7 @@ let VariablesRenderer = class VariablesRenderer extends AbstractExpressionsRende
|
|
|
482
482
|
actionBar.push(actions[0], { icon: true, label: false });
|
|
483
483
|
}
|
|
484
484
|
else {
|
|
485
|
-
actionBar.push(( (new Action('debugViz', ( localize(
|
|
485
|
+
actionBar.push(( (new Action('debugViz', ( localize(6085, 'Visualize Variable...')), ThemeIcon.asClassName(Codicon.eye), undefined, () => this.pickVisualizer(actions, originalExpression, data)))), { icon: true, label: false });
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
}
|
|
@@ -523,14 +523,14 @@ VariablesRenderer = VariablesRenderer_1 = ( (__decorate([
|
|
|
523
523
|
], VariablesRenderer)));
|
|
524
524
|
class VariablesAccessibilityProvider {
|
|
525
525
|
getWidgetAriaLabel() {
|
|
526
|
-
return ( localize(
|
|
526
|
+
return ( localize(6086, "Debug Variables"));
|
|
527
527
|
}
|
|
528
528
|
getAriaLabel(element) {
|
|
529
529
|
if (element instanceof Scope) {
|
|
530
|
-
return ( localize(
|
|
530
|
+
return ( localize(6087, "Scope {0}", element.name));
|
|
531
531
|
}
|
|
532
532
|
if (element instanceof Variable) {
|
|
533
|
-
return ( localize(
|
|
533
|
+
return ( localize(6088, "{0}, value {1}", element.name, element.value));
|
|
534
534
|
}
|
|
535
535
|
return null;
|
|
536
536
|
}
|
|
@@ -633,7 +633,7 @@ CommandsRegistry.registerCommand({
|
|
|
633
633
|
async function tryInstallHexEditor(extensionsWorkbenchService, notificationService) {
|
|
634
634
|
try {
|
|
635
635
|
await extensionsWorkbenchService.install(HEX_EDITOR_EXTENSION_ID, {
|
|
636
|
-
justification: ( localize(
|
|
636
|
+
justification: ( localize(6089, "Inspecting binary data requires this extension.")),
|
|
637
637
|
enable: true
|
|
638
638
|
}, ProgressLocation.Notification);
|
|
639
639
|
return true;
|
|
@@ -698,7 +698,7 @@ registerAction2(class extends ViewAction {
|
|
|
698
698
|
super({
|
|
699
699
|
id: 'variables.collapse',
|
|
700
700
|
viewId: VARIABLES_VIEW_ID,
|
|
701
|
-
title: ( localize(
|
|
701
|
+
title: ( localize(6090, "Collapse All")),
|
|
702
702
|
f1: false,
|
|
703
703
|
icon: Codicon.collapseAll,
|
|
704
704
|
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(6091, "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(6092, "Type watch expression")),
|
|
299
|
+
placeholder: ( localize(6093, "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(6094, "Debug Watch Expressions"));
|
|
341
341
|
}
|
|
342
342
|
getAriaLabel(element) {
|
|
343
343
|
if (element instanceof Expression) {
|
|
344
|
-
return ( localize(
|
|
344
|
+
return ( localize(6095, "{0}, value {1}", element.name, element.value));
|
|
345
345
|
}
|
|
346
|
-
return ( localize(
|
|
346
|
+
return ( localize(6096, "{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(6097, "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(6098, "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(6099, "Remove All Expressions"));
|
|
466
466
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
467
467
|
constructor() {
|
|
468
468
|
super({
|
|
@@ -31,7 +31,7 @@ const CONTEXT_DEBUG_START_LANGUAGE = ( (new RawContextKey(debugStartLanguageKey,
|
|
|
31
31
|
const CONTEXT_DEBUGGER_INTERESTED_IN_ACTIVE_EDITOR = ( (new RawContextKey('debuggerInterestedInActiveEditor', false)));
|
|
32
32
|
let WelcomeView = class WelcomeView extends ViewPane {
|
|
33
33
|
static { this.ID = 'workbench.debug.welcome'; }
|
|
34
|
-
static { this.LABEL = ( localize2(
|
|
34
|
+
static { this.LABEL = ( localize2(6100, "Run")); }
|
|
35
35
|
constructor(options, themeService, keybindingService, contextMenuService, configurationService, contextKeyService, debugService, editorService, instantiationService, viewDescriptorService, openerService, storageSevice, telemetryService, hoverService) {
|
|
36
36
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
37
37
|
this.debugService = debugService;
|
|
@@ -102,7 +102,7 @@ WelcomeView = ( (__decorate([
|
|
|
102
102
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
103
103
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
104
104
|
content: ( localize(
|
|
105
|
-
|
|
105
|
+
6101,
|
|
106
106
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
107
107
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFileAction.ID
|
|
108
108
|
)),
|
|
@@ -114,20 +114,20 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
114
114
|
});
|
|
115
115
|
let debugKeybindingLabel = '';
|
|
116
116
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
117
|
-
content: `[${( localize(
|
|
117
|
+
content: `[${( localize(6102, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
118
118
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
119
119
|
group: ViewContentGroups.Debug,
|
|
120
120
|
order: 1
|
|
121
121
|
});
|
|
122
122
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
123
|
-
content: `[${( localize(
|
|
123
|
+
content: `[${( localize(6103, "Show all automatic debug configurations"))}](command:${SELECT_AND_START_ID}).`,
|
|
124
124
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
125
125
|
group: ViewContentGroups.Debug,
|
|
126
126
|
order: 10
|
|
127
127
|
});
|
|
128
128
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
129
129
|
content: ( localize(
|
|
130
|
-
|
|
130
|
+
6104,
|
|
131
131
|
"To customize Run and Debug [create a launch.json file](command:{0}).",
|
|
132
132
|
DEBUG_CONFIGURE_COMMAND_ID
|
|
133
133
|
)),
|
|
@@ -139,7 +139,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
139
139
|
});
|
|
140
140
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
141
141
|
content: ( localize(
|
|
142
|
-
|
|
142
|
+
6105,
|
|
143
143
|
"To customize Run and Debug, [open a folder](command:{0}) and create a launch.json file.",
|
|
144
144
|
(isMacintosh && !isWeb) ? OpenFileFolderAction.ID : OpenFolderAction.ID
|
|
145
145
|
)),
|
|
@@ -151,7 +151,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
151
151
|
});
|
|
152
152
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
153
153
|
content: ( localize(
|
|
154
|
-
|
|
154
|
+
6106,
|
|
155
155
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
156
156
|
)),
|
|
157
157
|
when: ( (CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated())),
|
|
@@ -49,14 +49,14 @@ let DebugContentProvider = class DebugContentProvider {
|
|
|
49
49
|
session = this.debugService.getViewModel().focusedSession;
|
|
50
50
|
}
|
|
51
51
|
if (!session) {
|
|
52
|
-
return Promise.reject(( (new ErrorNoTelemetry(( localize(
|
|
52
|
+
return Promise.reject(( (new ErrorNoTelemetry(( localize(6107, "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(6108, "Could not load source '{0}': {1}.", resource.path, errMsg))
|
|
59
|
+
: ( localize(6109, "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 => {
|
|
@@ -30,20 +30,20 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
30
30
|
let message;
|
|
31
31
|
if (numSessions === 1) {
|
|
32
32
|
message = ( localize(
|
|
33
|
-
|
|
33
|
+
6110,
|
|
34
34
|
"There is an active debug session, are you sure you want to stop it?"
|
|
35
35
|
));
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
38
|
message = ( localize(
|
|
39
|
-
|
|
39
|
+
6111,
|
|
40
40
|
"There are active debug sessions, are you sure you want to stop them?"
|
|
41
41
|
));
|
|
42
42
|
}
|
|
43
43
|
const res = await this.dialogService.confirm({
|
|
44
44
|
message,
|
|
45
45
|
type: 'warning',
|
|
46
|
-
primaryButton: ( localize(
|
|
46
|
+
primaryButton: ( localize(6112, "&&Stop Debugging"))
|
|
47
47
|
});
|
|
48
48
|
return !res.confirmed;
|
|
49
49
|
}
|