@codingame/monaco-vscode-debug-service-override 26.2.2 → 28.0.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 +2 -2
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.d.ts +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +6 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +104 -104
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/debugChatIntegration.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +9 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +25 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +52 -42
- 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 +4 -6
- 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/loadedScriptsView.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css +2 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css +2 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css +1 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +27 -27
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +107 -38
- 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/watchExpressionsView.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +10 -8
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.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
|
@@ -6,12 +6,13 @@ import { getReplView } from '@codingame/monaco-vscode-api/vscode/vs/workbench/co
|
|
|
6
6
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
7
7
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
8
8
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
9
|
+
import { CONTEXT_IN_DEBUG_REPL } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
9
10
|
|
|
10
11
|
class ReplAccessibilityHelp {
|
|
11
12
|
constructor() {
|
|
12
13
|
this.priority = 120;
|
|
13
14
|
this.name = "replHelp";
|
|
14
|
-
this.when = ( ContextKeyExpr.equals("focusedView", "workbench.panel.repl.view"));
|
|
15
|
+
this.when = ( ContextKeyExpr.or(( ContextKeyExpr.equals("focusedView", "workbench.panel.repl.view")), CONTEXT_IN_DEBUG_REPL));
|
|
15
16
|
this.type = AccessibleViewType.Help;
|
|
16
17
|
}
|
|
17
18
|
getProvider(accessor) {
|
|
@@ -28,51 +29,119 @@ class ReplAccessibilityHelpProvider extends Disposable {
|
|
|
28
29
|
super();
|
|
29
30
|
this._replView = _replView;
|
|
30
31
|
this.id = AccessibleViewProviderId.ReplHelp;
|
|
31
|
-
this.verbositySettingKey = AccessibilityVerbositySettingId.
|
|
32
|
+
this.verbositySettingKey = AccessibilityVerbositySettingId.Find;
|
|
32
33
|
this.options = {
|
|
33
34
|
type: AccessibleViewType.Help
|
|
34
35
|
};
|
|
35
|
-
this._treeHadFocus = false;
|
|
36
|
-
this._treeHadFocus = !!_replView.getFocusedElement();
|
|
37
36
|
}
|
|
38
37
|
onClose() {
|
|
39
|
-
|
|
40
|
-
return this._replView.focusTree();
|
|
41
|
-
}
|
|
42
|
-
this._replView.getReplInput().focus();
|
|
38
|
+
this._replView.focusFilter();
|
|
43
39
|
}
|
|
44
40
|
provideContent() {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
const content = [];
|
|
42
|
+
content.push(( localize(8274, "Accessibility Help: Debug Console Filter")));
|
|
43
|
+
content.push(( localize(
|
|
44
|
+
8275,
|
|
45
|
+
"You are in the Debug Console filter input. This is a filter that instantly hides console messages that do not match your filter, showing only the messages you want to see."
|
|
46
|
+
)));
|
|
47
|
+
content.push("");
|
|
48
|
+
content.push(( localize(8276, "Current Filter Status:")));
|
|
49
|
+
content.push(( localize(8277, "You are filtering the console output.")));
|
|
50
|
+
content.push("");
|
|
51
|
+
content.push(( localize(8278, "Inside the Filter Input (What It Does):")));
|
|
52
|
+
content.push(( localize(
|
|
53
|
+
8279,
|
|
54
|
+
"While you are in the filter input, your focus stays in the field. You can type, edit, or adjust your filter without leaving the input. As you type, the console instantly updates to show only messages matching your filter."
|
|
55
|
+
)));
|
|
56
|
+
content.push("");
|
|
57
|
+
content.push(( localize(8280, "What Happens When You Filter:")));
|
|
58
|
+
content.push(( localize(
|
|
59
|
+
8281,
|
|
60
|
+
"Each time you change the filter text, the console instantly regenerates to show only matching messages. Your screen reader announces how many messages are now visible. This is live feedback: text searches console output, variable values, and log messages."
|
|
61
|
+
)));
|
|
62
|
+
content.push("");
|
|
63
|
+
content.push(( localize(8282, "Focus Behavior (Important):")));
|
|
64
|
+
content.push(( localize(
|
|
65
|
+
8283,
|
|
66
|
+
"Your focus stays in the filter input while the console updates in the background. This is intentional, so you can keep typing without losing your place."
|
|
67
|
+
)));
|
|
68
|
+
content.push(( localize(
|
|
69
|
+
8284,
|
|
70
|
+
"If you want to review the filtered console output, press Down Arrow to move focus from the filter into the console messages above."
|
|
71
|
+
)));
|
|
72
|
+
content.push(( localize(
|
|
73
|
+
8285,
|
|
74
|
+
"Important: The console input area is at the bottom of the console, separate from the filter. To evaluate expressions, navigate to the console input (after the filtered messages) and type your expression."
|
|
75
|
+
)));
|
|
76
|
+
content.push("");
|
|
77
|
+
content.push(( localize(8286, "Distinguishing Filter from Console Input:")));
|
|
78
|
+
content.push(( localize(
|
|
79
|
+
8287,
|
|
80
|
+
"The filter input is where you are now. It hides or shows messages without running code."
|
|
81
|
+
)));
|
|
82
|
+
content.push(( localize(
|
|
83
|
+
8288,
|
|
84
|
+
"The console input is at the bottom of the console, after all displayed messages. That is where you type and press Enter to evaluate expressions during debugging."
|
|
85
|
+
)));
|
|
86
|
+
content.push(( localize(
|
|
87
|
+
8289,
|
|
88
|
+
"To switch to the console input and evaluate an expression, use {0} to focus the console input.",
|
|
89
|
+
"<keybinding:workbench.panel.repl.view.focus>"
|
|
90
|
+
)));
|
|
91
|
+
content.push("");
|
|
92
|
+
content.push(( localize(8290, "Filter Syntax and Patterns:")));
|
|
93
|
+
content.push(( localize(8291, "- Type text: Shows only messages containing that text.")));
|
|
94
|
+
content.push(( localize(
|
|
95
|
+
8292,
|
|
96
|
+
"- !text (exclude): Hides messages containing the text, showing all others."
|
|
97
|
+
)));
|
|
98
|
+
content.push("");
|
|
99
|
+
content.push(( localize(8293, "Keyboard Navigation Summary:")));
|
|
100
|
+
content.push(( localize(8294, "- Down Arrow: Move focus from filter into the console output.")));
|
|
101
|
+
content.push(( localize(8295, "- Tab: Move to other console controls if available.")));
|
|
102
|
+
content.push(( localize(8296, "- Escape: Clear the filter or close the filter.")));
|
|
103
|
+
content.push(( localize(
|
|
104
|
+
8297,
|
|
105
|
+
"- {0}: Focus the console input to evaluate expressions.",
|
|
48
106
|
"<keybinding:workbench.panel.repl.view.focus>"
|
|
49
|
-
))
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
))
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
))
|
|
107
|
+
)));
|
|
108
|
+
content.push("");
|
|
109
|
+
content.push(( localize(
|
|
110
|
+
8298,
|
|
111
|
+
"Settings You Can Adjust ({0} opens Settings):",
|
|
112
|
+
"<keybinding:workbench.action.openSettings>"
|
|
113
|
+
)));
|
|
114
|
+
content.push(( localize(8299, "These settings affect the Debug Console.")));
|
|
115
|
+
content.push(( localize(
|
|
116
|
+
8300,
|
|
117
|
+
"- `accessibility.verbosity.find`: Controls whether the filter input announces the Accessibility Help hint."
|
|
118
|
+
)));
|
|
119
|
+
content.push(( localize(
|
|
120
|
+
8301,
|
|
121
|
+
"- `debug.console.closeOnEnd`: Automatically close the Debug Console when the debugging session ends."
|
|
122
|
+
)));
|
|
123
|
+
content.push(( localize(8302, "- `debug.console.fontSize`: Font size in the console.")));
|
|
124
|
+
content.push(( localize(8303, "- `debug.console.fontFamily`: Font family in the console.")));
|
|
125
|
+
content.push(( localize(8304, "- `debug.console.wordWrap`: Wrap lines in the console.")));
|
|
126
|
+
content.push(( localize(
|
|
127
|
+
8305,
|
|
128
|
+
"- `debug.console.historySuggestions`: Suggest previously typed input."
|
|
129
|
+
)));
|
|
130
|
+
content.push(( localize(
|
|
131
|
+
8306,
|
|
132
|
+
"- `debug.console.collapseIdenticalLines`: Collapse repeated messages with a count."
|
|
133
|
+
)));
|
|
134
|
+
content.push(( localize(
|
|
135
|
+
8307,
|
|
136
|
+
"- `debug.console.maximumLines`: Maximum number of messages to keep in the console."
|
|
137
|
+
)));
|
|
138
|
+
content.push("");
|
|
139
|
+
content.push(( localize(8308, "Closing:")));
|
|
140
|
+
content.push(( localize(
|
|
141
|
+
8309,
|
|
142
|
+
"Press Escape to clear the filter, or close the Debug Console. Your filter text is preserved if you reopen the console."
|
|
143
|
+
)));
|
|
144
|
+
return content.join("\n");
|
|
76
145
|
}
|
|
77
146
|
}
|
|
78
147
|
|
|
@@ -54,62 +54,62 @@ let RunAndDebugAccessibilityHelpProvider = class RunAndDebugAccessibilityHelpPro
|
|
|
54
54
|
}
|
|
55
55
|
provideContent() {
|
|
56
56
|
return [( localize(
|
|
57
|
-
|
|
57
|
+
8315,
|
|
58
58
|
"The Show Run and Debug view command{0} will open the current view.",
|
|
59
59
|
"<keybinding:workbench.view.debug>"
|
|
60
60
|
)), ( localize(
|
|
61
|
-
|
|
61
|
+
8316,
|
|
62
62
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
63
63
|
"<keybinding:workbench.action.debug.start>"
|
|
64
64
|
)), ( localize(
|
|
65
|
-
|
|
65
|
+
8317,
|
|
66
66
|
"Access debug output and evaluate expressions in the debug console, which can be focused with{0}.",
|
|
67
67
|
"<keybinding:workbench.panel.repl.view.focus>"
|
|
68
|
-
)), AccessibilityHelpNLS.setBreakpoint, AccessibilityHelpNLS.addToWatch, ( localize(
|
|
69
|
-
|
|
68
|
+
)), AccessibilityHelpNLS.setBreakpoint, AccessibilityHelpNLS.addToWatch, ( localize(8318, "Once debugging, the following commands will be available:")), ( localize(
|
|
69
|
+
8319,
|
|
70
70
|
"- Debug: Restart Debugging command{0} will restart the current debug session.",
|
|
71
71
|
"<keybinding:workbench.action.debug.restart>"
|
|
72
72
|
)), ( localize(
|
|
73
|
-
|
|
73
|
+
8320,
|
|
74
74
|
"- Debug: Stop Debugging command{0} will stop the current debugging session.",
|
|
75
75
|
"<keybinding:workbench.action.debug.stop>"
|
|
76
76
|
)), ( localize(
|
|
77
|
-
|
|
77
|
+
8321,
|
|
78
78
|
"- Debug: Continue command{0} will continue execution until the next breakpoint.",
|
|
79
79
|
"<keybinding:workbench.action.debug.continue>"
|
|
80
80
|
)), ( localize(
|
|
81
|
-
|
|
81
|
+
8322,
|
|
82
82
|
"- Debug: Step Into command{0} will step into the next function call.",
|
|
83
83
|
"<keybinding:workbench.action.debug.stepInto>"
|
|
84
84
|
)), ( localize(
|
|
85
|
-
|
|
85
|
+
8323,
|
|
86
86
|
"- Debug: Step Over command{0} will step over the current function call.",
|
|
87
87
|
"<keybinding:workbench.action.debug.stepOver>"
|
|
88
88
|
)), ( localize(
|
|
89
|
-
|
|
89
|
+
8324,
|
|
90
90
|
"- Debug: Step Out command{0} will step out of the current function call.",
|
|
91
91
|
"<keybinding:workbench.action.debug.stepOut>"
|
|
92
92
|
)), ( localize(
|
|
93
|
-
|
|
93
|
+
8325,
|
|
94
94
|
"The debug viewlet is comprised of several views that can be focused with the following commands or navigated to via tab then arrow keys:"
|
|
95
95
|
)), ( localize(
|
|
96
|
-
|
|
96
|
+
8326,
|
|
97
97
|
"- Debug: Focus Breakpoints View command{0} will focus the breakpoints view.",
|
|
98
98
|
"<keybinding:workbench.debug.action.focusBreakpointsView>"
|
|
99
99
|
)), ( localize(
|
|
100
|
-
|
|
100
|
+
8327,
|
|
101
101
|
"- Debug: Focus Call Stack View command{0} will focus the call stack view.",
|
|
102
102
|
"<keybinding:workbench.debug.action.focusCallStackView>"
|
|
103
103
|
)), ( localize(
|
|
104
|
-
|
|
104
|
+
8328,
|
|
105
105
|
"- Debug: Focus Variables View command{0} will focus the variables view.",
|
|
106
106
|
"<keybinding:workbench.debug.action.focusVariablesView>"
|
|
107
107
|
)), ( localize(
|
|
108
|
-
|
|
108
|
+
8329,
|
|
109
109
|
"- Debug: Focus Watch View command{0} will focus the watch view.",
|
|
110
110
|
"<keybinding:workbench.debug.action.focusWatchView>"
|
|
111
111
|
)), ( localize(
|
|
112
|
-
|
|
112
|
+
8330,
|
|
113
113
|
"The setting {0} controls whether watch variable changes are announced.",
|
|
114
114
|
"accessibility.debugWatchVariableAnnouncements"
|
|
115
115
|
))].join("\n");
|
|
@@ -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
|
+
8331,
|
|
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
|
+
8332,
|
|
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
|
+
8333,
|
|
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(8334, "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) {
|
|
@@ -73,10 +73,10 @@ let WatchExpressionsView = class WatchExpressionsView extends ViewPane {
|
|
|
73
73
|
this.menuService = menuService;
|
|
74
74
|
this.logService = logService;
|
|
75
75
|
this.needsRefresh = false;
|
|
76
|
-
this.watchExpressionsUpdatedScheduler = ( new RunOnceScheduler(() => {
|
|
76
|
+
this.watchExpressionsUpdatedScheduler = this._register(( new RunOnceScheduler(() => {
|
|
77
77
|
this.needsRefresh = false;
|
|
78
78
|
this.tree.updateChildren();
|
|
79
|
-
}, 50));
|
|
79
|
+
}, 50)));
|
|
80
80
|
this.watchExpressionsExist = CONTEXT_WATCH_EXPRESSIONS_EXIST.bindTo(contextKeyService);
|
|
81
81
|
this.watchExpressionsExist.set(this.debugService.getModel().getWatchExpressions().length > 0);
|
|
82
82
|
this.expressionRenderer = instantiationService.createInstance(DebugExpressionRenderer);
|
|
@@ -320,7 +320,7 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
320
320
|
if (settingValue) {
|
|
321
321
|
return {
|
|
322
322
|
initialValue: expression.value,
|
|
323
|
-
ariaLabel: ( localize(
|
|
323
|
+
ariaLabel: ( localize(8343, "Type new value")),
|
|
324
324
|
onFinish: async (value, success) => {
|
|
325
325
|
if (success && value) {
|
|
326
326
|
const focusedFrame = this.debugService.getViewModel().focusedStackFrame;
|
|
@@ -334,8 +334,8 @@ let WatchExpressionsRenderer = class WatchExpressionsRenderer extends AbstractEx
|
|
|
334
334
|
}
|
|
335
335
|
return {
|
|
336
336
|
initialValue: expression.name ? expression.name : "",
|
|
337
|
-
ariaLabel: ( localize(
|
|
338
|
-
placeholder: ( localize(
|
|
337
|
+
ariaLabel: ( localize(8344, "Type watch expression")),
|
|
338
|
+
placeholder: ( localize(8345, "Expression to watch")),
|
|
339
339
|
onFinish: (value, success) => {
|
|
340
340
|
if (success && value) {
|
|
341
341
|
this.debugService.renameWatchExpression(expression.getId(), value);
|
|
@@ -431,13 +431,13 @@ async function getContextForWatchExpressionMenuWithDataAccess(parentContext, exp
|
|
|
431
431
|
}
|
|
432
432
|
class WatchExpressionsAccessibilityProvider {
|
|
433
433
|
getWidgetAriaLabel() {
|
|
434
|
-
return localize(
|
|
434
|
+
return localize(8346, "Debug Watch Expressions");
|
|
435
435
|
}
|
|
436
436
|
getAriaLabel(element) {
|
|
437
437
|
if (element instanceof Expression) {
|
|
438
|
-
return localize(
|
|
438
|
+
return localize(8347, "{0}, value {1}", element.name, element.value);
|
|
439
439
|
}
|
|
440
|
-
return localize(
|
|
440
|
+
return localize(8348, "{0}, value {1}", element.name, element.value);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
class WatchExpressionsDragAndDrop {
|
|
@@ -528,7 +528,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
528
528
|
super({
|
|
529
529
|
id: "watch.collapse",
|
|
530
530
|
viewId: WATCH_VIEW_ID,
|
|
531
|
-
title: ( localize(
|
|
531
|
+
title: ( localize(8349, "Collapse All")),
|
|
532
532
|
f1: false,
|
|
533
533
|
icon: Codicon.collapseAll,
|
|
534
534
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -545,7 +545,7 @@ registerAction2(class Collapse extends ViewAction {
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
const ADD_WATCH_ID = "workbench.debug.viewlet.action.addWatchExpression";
|
|
548
|
-
const ADD_WATCH_LABEL = ( localize(
|
|
548
|
+
const ADD_WATCH_LABEL = ( localize(8350, "Add Expression"));
|
|
549
549
|
registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
550
550
|
constructor() {
|
|
551
551
|
super({
|
|
@@ -566,7 +566,7 @@ registerAction2(class AddWatchExpressionAction extends Action2 {
|
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
const REMOVE_WATCH_EXPRESSIONS_COMMAND_ID = "workbench.debug.viewlet.action.removeAllWatchExpressions";
|
|
569
|
-
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(
|
|
569
|
+
const REMOVE_WATCH_EXPRESSIONS_LABEL = ( localize(8351, "Remove All Expressions"));
|
|
570
570
|
registerAction2(class RemoveAllWatchExpressionsAction extends Action2 {
|
|
571
571
|
constructor() {
|
|
572
572
|
super({
|
|
@@ -592,7 +592,7 @@ registerAction2(class CopyExpression extends ViewAction {
|
|
|
592
592
|
constructor() {
|
|
593
593
|
super({
|
|
594
594
|
id: COPY_WATCH_EXPRESSION_COMMAND_ID,
|
|
595
|
-
title: ( localize(
|
|
595
|
+
title: ( localize(8352, "Copy Expression")),
|
|
596
596
|
f1: false,
|
|
597
597
|
viewId: WATCH_VIEW_ID,
|
|
598
598
|
precondition: CONTEXT_WATCH_EXPRESSIONS_EXIST,
|
|
@@ -34,7 +34,7 @@ let WelcomeView = class WelcomeView extends ViewPane {
|
|
|
34
34
|
this.ID = "workbench.debug.welcome";
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
|
-
this.LABEL = ( localize2(
|
|
37
|
+
this.LABEL = ( localize2(8353, "Run"));
|
|
38
38
|
}
|
|
39
39
|
constructor(
|
|
40
40
|
options,
|
|
@@ -121,7 +121,7 @@ WelcomeView = ( __decorate([( __param(1, IThemeService)), ( __param(2, IKeybindi
|
|
|
121
121
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
122
122
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
123
123
|
content: ( localize(
|
|
124
|
-
|
|
124
|
+
8354,
|
|
125
125
|
"[Open a file](command:{0}) which can be debugged or run.",
|
|
126
126
|
OpenFileAction.ID
|
|
127
127
|
)),
|
|
@@ -130,14 +130,14 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
130
130
|
});
|
|
131
131
|
let debugKeybindingLabel = "";
|
|
132
132
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
133
|
-
content: `[${( localize(
|
|
133
|
+
content: `[${( localize(8355, "Run and Debug"))}${debugKeybindingLabel}](command:${DEBUG_START_COMMAND_ID})`,
|
|
134
134
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
135
135
|
group: ViewContentGroups.Debug,
|
|
136
136
|
order: 1
|
|
137
137
|
});
|
|
138
138
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
139
139
|
content: ( localize(
|
|
140
|
-
|
|
140
|
+
8356,
|
|
141
141
|
"To customize Run and Debug [create a launch.json file]({0}).",
|
|
142
142
|
`${( createCommandUri(DEBUG_CONFIGURE_COMMAND_ID, {
|
|
143
143
|
addNew: true
|
|
@@ -148,7 +148,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
148
148
|
});
|
|
149
149
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
150
150
|
content: ( localize(
|
|
151
|
-
|
|
151
|
+
8357,
|
|
152
152
|
"To customize Run and Debug, [open a folder]({0}) and create a launch.json file.",
|
|
153
153
|
(createCommandUri(OpenFolderAction.ID).toString())
|
|
154
154
|
)),
|
|
@@ -157,7 +157,7 @@ viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
|
157
157
|
});
|
|
158
158
|
viewsRegistry.registerViewWelcomeContent(WelcomeView.ID, {
|
|
159
159
|
content: ( localize(
|
|
160
|
-
|
|
160
|
+
8358,
|
|
161
161
|
"All debug extensions are disabled. Enable a debug extension or install a new one from the Marketplace."
|
|
162
162
|
)),
|
|
163
163
|
when: ( CONTEXT_DEBUG_EXTENSION_AVAILABLE.toNegated()),
|
|
@@ -63,12 +63,12 @@ let DebugContentProvider = class DebugContentProvider extends Disposable {
|
|
|
63
63
|
session = this.debugService.getViewModel().focusedSession;
|
|
64
64
|
}
|
|
65
65
|
if (!session) {
|
|
66
|
-
return Promise.reject(( new ErrorNoTelemetry(( localize(
|
|
66
|
+
return Promise.reject(( new ErrorNoTelemetry(( localize(8425, "Unable to resolve the resource without a debug session")))));
|
|
67
67
|
}
|
|
68
68
|
const createErrModel = errMsg => {
|
|
69
69
|
this.debugService.sourceIsNotAvailable(resource);
|
|
70
70
|
const languageSelection = this.languageService.createById(PLAINTEXT_LANGUAGE_ID);
|
|
71
|
-
const message = errMsg ? ( localize(
|
|
71
|
+
const message = errMsg ? ( localize(8426, "Could not load source '{0}': {1}.", resource.path, errMsg)) : ( localize(8427, "Could not load source '{0}'.", resource.path));
|
|
72
72
|
return this.modelService.createModel(message, languageSelection, resource);
|
|
73
73
|
};
|
|
74
74
|
return session.loadSource(resource).then(response => {
|
|
@@ -31,19 +31,19 @@ let DebugLifecycle = class DebugLifecycle {
|
|
|
31
31
|
let message;
|
|
32
32
|
if (numSessions === 1) {
|
|
33
33
|
message = ( localize(
|
|
34
|
-
|
|
34
|
+
8428,
|
|
35
35
|
"There is an active debug session, are you sure you want to stop it?"
|
|
36
36
|
));
|
|
37
37
|
} else {
|
|
38
38
|
message = ( localize(
|
|
39
|
-
|
|
39
|
+
8429,
|
|
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(8430, "&&Stop Debugging"))
|
|
47
47
|
});
|
|
48
48
|
return !res.confirmed;
|
|
49
49
|
}
|