@codingame/monaco-vscode-debug-service-override 7.1.0 → 8.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/workbench/contrib/debug/browser/callStackView.js +21 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +155 -174
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +32 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +16 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +25 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +5 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +38 -73
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +69 -129
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +19 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +20 -25
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +6 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +7 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +5 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +8 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +52 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +104 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +122 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +128 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +8 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +25 -32
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +13 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debugAccessibilityAnnouncer.js +47 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +4 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +6 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +63 -98
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +15 -25
- package/vscode/src/vs/workbench/contrib/debug/common/replAccessibilityAnnouncer.js +33 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +3 -4
|
@@ -4,7 +4,8 @@ import { isWeb, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
|
4
4
|
import './media/debug.contribution.css.js';
|
|
5
5
|
import './media/debugHover.css.js';
|
|
6
6
|
import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
7
|
-
import {
|
|
7
|
+
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
8
|
+
import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
8
9
|
import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
10
|
import { Extensions as Extensions$3, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
10
11
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
@@ -14,13 +15,14 @@ import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/quickinput
|
|
|
14
15
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
15
16
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
16
17
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
17
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
18
|
+
import { Extensions, registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
18
19
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
19
20
|
import { Extensions as Extensions$2, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
20
21
|
import { BreakpointEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
|
|
21
22
|
import { BreakpointsView } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
|
|
22
23
|
import { CallStackEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
23
24
|
import { CallStackView } from './callStackView.js';
|
|
25
|
+
import { ReplAccessibleView } from './replAccessibleView.js';
|
|
24
26
|
import { registerColors } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugColors';
|
|
25
27
|
import { DEBUG_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID, DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_DEBUG_CONSOLE_ID, DEBUG_COMMAND_CATEGORY, RESTART_SESSION_ID, RESTART_LABEL, TERMINATE_THREAD_ID, STEP_OVER_ID, STEP_OVER_LABEL, STEP_INTO_ID, STEP_INTO_LABEL, STEP_INTO_TARGET_ID, STEP_INTO_TARGET_LABEL, STEP_OUT_ID, STEP_OUT_LABEL, PAUSE_ID, PAUSE_LABEL, DISCONNECT_ID, DISCONNECT_LABEL, DISCONNECT_AND_SUSPEND_ID, DISCONNECT_AND_SUSPEND_LABEL, STOP_ID, STOP_LABEL, CONTINUE_ID, CONTINUE_LABEL, FOCUS_REPL_ID, JUMP_TO_CURSOR_ID, TOGGLE_INLINE_BREAKPOINT_ID, DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, DEBUG_RUN_COMMAND_ID, DEBUG_RUN_LABEL, SELECT_AND_START_LABEL, NEXT_DEBUG_CONSOLE_ID, NEXT_DEBUG_CONSOLE_LABEL, PREV_DEBUG_CONSOLE_ID, PREV_DEBUG_CONSOLE_LABEL, SHOW_LOADED_SCRIPTS_ID, OPEN_LOADED_SCRIPTS_LABEL, SELECT_DEBUG_CONSOLE_LABEL, SELECT_DEBUG_SESSION_ID, SELECT_DEBUG_SESSION_LABEL, CALLSTACK_TOP_ID, CALLSTACK_TOP_LABEL, CALLSTACK_BOTTOM_ID, CALLSTACK_BOTTOM_LABEL, CALLSTACK_UP_ID, CALLSTACK_UP_LABEL, CALLSTACK_DOWN_ID, CALLSTACK_DOWN_LABEL, RESTART_FRAME_ID, COPY_STACK_TRACE_ID, COPY_VALUE_ID, COPY_VALUE_LABEL, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, EDIT_EXPRESSION_COMMAND_ID, SET_EXPRESSION_COMMAND_ID, REMOVE_EXPRESSION_COMMAND_ID, ADD_CONFIGURATION_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
26
28
|
import { DebugConsoleQuickAccess } from './debugConsoleQuickAccess.js';
|
|
@@ -50,9 +52,13 @@ import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/c
|
|
|
50
52
|
import { COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL } from '../../notebook/browser/contrib/notebookVariables/notebookVariableCommands.js';
|
|
51
53
|
import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
52
54
|
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
55
|
+
import './debugSettingMigration.js';
|
|
56
|
+
import { ReplAccessibilityHelp } from './replAccessibilityHelp.js';
|
|
57
|
+
import { ReplAccessibilityAnnouncer } from '../common/replAccessibilityAnnouncer.js';
|
|
58
|
+
import { RunAndDebugAccessibilityHelp } from './runAndDebugAccessibilityHelp.js';
|
|
59
|
+
import { DebugWatchAccessibilityAnnouncer } from '../common/debugAccessibilityAnnouncer.js';
|
|
53
60
|
|
|
54
|
-
const
|
|
55
|
-
const debugCategory = ( localizeWithPath(_moduleId, 0, "Debug"));
|
|
61
|
+
const debugCategory = ( localize(2098, "Debug"));
|
|
56
62
|
registerColors();
|
|
57
63
|
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugStatusContribution, LifecyclePhase.Eventually);
|
|
58
64
|
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugProgressContribution, LifecyclePhase.Eventually);
|
|
@@ -68,9 +74,9 @@ if (isWeb) {
|
|
|
68
74
|
ctor: StartDebugQuickAccessProvider,
|
|
69
75
|
prefix: DEBUG_QUICK_ACCESS_PREFIX,
|
|
70
76
|
contextKey: 'inLaunchConfigurationsPicker',
|
|
71
|
-
placeholder: (
|
|
77
|
+
placeholder: ( localize(2099, "Type the name of a launch configuration to run.")),
|
|
72
78
|
helpEntries: [{
|
|
73
|
-
description: (
|
|
79
|
+
description: ( localize(2100, "Start Debugging")),
|
|
74
80
|
commandId: SELECT_AND_START_ID,
|
|
75
81
|
commandCenterOrder: 50
|
|
76
82
|
}]
|
|
@@ -79,8 +85,8 @@ if (isWeb) {
|
|
|
79
85
|
ctor: DebugConsoleQuickAccess,
|
|
80
86
|
prefix: DEBUG_CONSOLE_QUICK_ACCESS_PREFIX,
|
|
81
87
|
contextKey: 'inDebugConsolePicker',
|
|
82
|
-
placeholder: (
|
|
83
|
-
helpEntries: [{ description: (
|
|
88
|
+
placeholder: ( localize(2101, "Type the name of a debug console to open.")),
|
|
89
|
+
helpEntries: [{ description: ( localize(2102, "Show All Debug Consoles")), commandId: SELECT_DEBUG_CONSOLE_ID }]
|
|
84
90
|
});
|
|
85
91
|
registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, EditorContributionInstantiation.AfterFirstRender);
|
|
86
92
|
registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, EditorContributionInstantiation.AfterFirstRender);
|
|
@@ -98,7 +104,7 @@ const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
|
|
|
98
104
|
});
|
|
99
105
|
};
|
|
100
106
|
registerDebugCommandPaletteItem(RESTART_SESSION_ID, RESTART_LABEL);
|
|
101
|
-
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, (
|
|
107
|
+
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2(2103, "Terminate Thread")), CONTEXT_IN_DEBUG_MODE);
|
|
102
108
|
registerDebugCommandPaletteItem(STEP_OVER_ID, STEP_OVER_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
103
109
|
registerDebugCommandPaletteItem(STEP_INTO_ID, STEP_INTO_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
104
110
|
registerDebugCommandPaletteItem(STEP_INTO_TARGET_ID, STEP_INTO_TARGET_LABEL, CONTEXT_IN_DEBUG_MODE, ( (ContextKeyExpr.and(
|
|
@@ -121,13 +127,13 @@ registerDebugCommandPaletteItem(STOP_ID, STOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( (C
|
|
|
121
127
|
CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED
|
|
122
128
|
))));
|
|
123
129
|
registerDebugCommandPaletteItem(CONTINUE_ID, CONTINUE_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
124
|
-
registerDebugCommandPaletteItem(FOCUS_REPL_ID, (
|
|
125
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, (
|
|
126
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, (
|
|
130
|
+
registerDebugCommandPaletteItem(FOCUS_REPL_ID, ( localize2(2104, "Focus on Debug Console View")));
|
|
131
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2105, "Jump to Cursor")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
132
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2106, "Set Next Statement")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
127
133
|
registerDebugCommandPaletteItem(RunToCursorAction.ID, RunToCursorAction.LABEL, CONTEXT_DEBUGGERS_AVAILABLE);
|
|
128
134
|
registerDebugCommandPaletteItem(SelectionToReplAction.ID, SelectionToReplAction.LABEL, CONTEXT_IN_DEBUG_MODE);
|
|
129
135
|
registerDebugCommandPaletteItem(SelectionToWatchExpressionsAction.ID, SelectionToWatchExpressionsAction.LABEL);
|
|
130
|
-
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, (
|
|
136
|
+
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2(2107, "Inline Breakpoint")));
|
|
131
137
|
registerDebugCommandPaletteItem(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, ( (ContextKeyExpr.and(
|
|
132
138
|
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
133
139
|
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Initializing)))
|
|
@@ -185,45 +191,45 @@ registerDebugViewMenuItem(MenuId.DebugCallStackContext, CONTINUE_ID, CONTINUE_LA
|
|
|
185
191
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OVER_ID, STEP_OVER_LABEL, 20, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
186
192
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_INTO_ID, STEP_INTO_LABEL, 30, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
187
193
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OUT_ID, STEP_OUT_LABEL, 40, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
188
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, (
|
|
189
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, (
|
|
194
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localize(2107, "Terminate Thread")), 10, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), undefined, 'termination');
|
|
195
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(2108, "Restart Frame")), 10, ( (ContextKeyExpr.and(
|
|
190
196
|
(CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')),
|
|
191
197
|
CONTEXT_RESTART_FRAME_SUPPORTED
|
|
192
198
|
))), CONTEXT_STACK_FRAME_SUPPORTS_RESTART);
|
|
193
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, (
|
|
194
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, (
|
|
195
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, (
|
|
199
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localize(2109, "Copy Call Stack")), 20, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame'))), undefined, '3_modification');
|
|
200
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(2110, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
201
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(2111, "Set Value")), 10, ( (ContextKeyExpr.or(
|
|
196
202
|
CONTEXT_SET_VARIABLE_SUPPORTED,
|
|
197
203
|
(ContextKeyExpr.and(CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED))
|
|
198
204
|
))), ( (CONTEXT_VARIABLE_IS_READONLY.toNegated())), '3_modification');
|
|
199
205
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
200
206
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
201
207
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
202
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, (
|
|
203
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, (
|
|
204
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, (
|
|
205
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, (
|
|
208
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(2112, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
209
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(2113, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
210
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(2114, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
211
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(2114, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
206
212
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
207
213
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
208
214
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
209
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, (
|
|
210
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, (
|
|
211
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, (
|
|
215
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(2114, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
216
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(2114, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
217
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(2114, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
212
218
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, ADD_WATCH_ID, ADD_WATCH_LABEL, 10, undefined, undefined, '3_modification');
|
|
213
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, (
|
|
214
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, (
|
|
219
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localize(2115, "Edit Expression")), 20, ( (CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))), undefined, '3_modification');
|
|
220
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(2115, "Set Value")), 30, ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|
|
215
221
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')),
|
|
216
222
|
CONTEXT_SET_EXPRESSION_SUPPORTED
|
|
217
223
|
)), (ContextKeyExpr.and(
|
|
218
224
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable')),
|
|
219
225
|
CONTEXT_SET_VARIABLE_SUPPORTED
|
|
220
226
|
))))), ( (CONTEXT_VARIABLE_IS_READONLY.toNegated())), '3_modification');
|
|
221
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, (
|
|
227
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localize(2116, "Copy Value")), 40, ( (ContextKeyExpr.or(
|
|
222
228
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')),
|
|
223
229
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable'))
|
|
224
230
|
))), CONTEXT_IN_DEBUG_MODE, '3_modification');
|
|
225
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, (
|
|
226
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, (
|
|
231
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localize(2116, "View Binary Data")), 10, CONTEXT_CAN_VIEW_MEMORY, undefined, 'inline', debugInspectMemory);
|
|
232
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(2117, "Remove Expression")), 20, ( (CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))), undefined, 'inline', watchExpressionRemove);
|
|
227
233
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, 20, undefined, undefined, 'z_commands');
|
|
228
234
|
registerDebugViewMenuItem(MenuId.NotebookVariablesContext, COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, 20, CONTEXT_VARIABLE_VALUE);
|
|
229
235
|
if (isMacintosh) {
|
|
@@ -252,12 +258,12 @@ if (isMacintosh) {
|
|
|
252
258
|
registerTouchBarEntry(RESTART_SESSION_ID, RESTART_LABEL, 5, CONTEXT_IN_DEBUG_MODE, ( (FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/restart-tb.png'))));
|
|
253
259
|
registerTouchBarEntry(STOP_ID, STOP_LABEL, 6, CONTEXT_IN_DEBUG_MODE, ( (FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stop-tb.png'))));
|
|
254
260
|
}
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: (
|
|
261
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2(2118, "Run or Debug...")), icon: debugRun, group: 'navigation', order: -1 });
|
|
256
262
|
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
257
263
|
submenu: MenuId.MenubarDebugMenu,
|
|
258
264
|
title: {
|
|
259
|
-
...(
|
|
260
|
-
mnemonicTitle: (
|
|
265
|
+
...( localize2(2119, "Run")),
|
|
266
|
+
mnemonicTitle: ( localize(2120, "&&Run"))
|
|
261
267
|
},
|
|
262
268
|
order: 6
|
|
263
269
|
});
|
|
@@ -265,7 +271,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
265
271
|
group: '1_debug',
|
|
266
272
|
command: {
|
|
267
273
|
id: DEBUG_START_COMMAND_ID,
|
|
268
|
-
title: (
|
|
274
|
+
title: ( localize(2121, "&&Start Debugging"))
|
|
269
275
|
},
|
|
270
276
|
order: 1,
|
|
271
277
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -274,7 +280,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
274
280
|
group: '1_debug',
|
|
275
281
|
command: {
|
|
276
282
|
id: DEBUG_RUN_COMMAND_ID,
|
|
277
|
-
title: (
|
|
283
|
+
title: ( localize(2122, "Run &&Without Debugging"))
|
|
278
284
|
},
|
|
279
285
|
order: 2,
|
|
280
286
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -283,7 +289,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
283
289
|
group: '1_debug',
|
|
284
290
|
command: {
|
|
285
291
|
id: STOP_ID,
|
|
286
|
-
title: (
|
|
292
|
+
title: ( localize(2123, "&&Stop Debugging")),
|
|
287
293
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
288
294
|
},
|
|
289
295
|
order: 3,
|
|
@@ -293,7 +299,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
293
299
|
group: '1_debug',
|
|
294
300
|
command: {
|
|
295
301
|
id: RESTART_SESSION_ID,
|
|
296
|
-
title: (
|
|
302
|
+
title: ( localize(2124, "&&Restart Debugging")),
|
|
297
303
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
298
304
|
},
|
|
299
305
|
order: 4,
|
|
@@ -303,7 +309,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
303
309
|
group: '2_configuration',
|
|
304
310
|
command: {
|
|
305
311
|
id: ADD_CONFIGURATION_ID,
|
|
306
|
-
title: (
|
|
312
|
+
title: ( localize(2125, "A&&dd Configuration..."))
|
|
307
313
|
},
|
|
308
314
|
order: 2,
|
|
309
315
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -312,7 +318,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
312
318
|
group: '3_step',
|
|
313
319
|
command: {
|
|
314
320
|
id: STEP_OVER_ID,
|
|
315
|
-
title: (
|
|
321
|
+
title: ( localize(2126, "Step &&Over")),
|
|
316
322
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
317
323
|
},
|
|
318
324
|
order: 1,
|
|
@@ -322,7 +328,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
322
328
|
group: '3_step',
|
|
323
329
|
command: {
|
|
324
330
|
id: STEP_INTO_ID,
|
|
325
|
-
title: (
|
|
331
|
+
title: ( localize(2127, "Step &&Into")),
|
|
326
332
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
327
333
|
},
|
|
328
334
|
order: 2,
|
|
@@ -332,7 +338,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
332
338
|
group: '3_step',
|
|
333
339
|
command: {
|
|
334
340
|
id: STEP_OUT_ID,
|
|
335
|
-
title: (
|
|
341
|
+
title: ( localize(2128, "Step O&&ut")),
|
|
336
342
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
337
343
|
},
|
|
338
344
|
order: 3,
|
|
@@ -342,7 +348,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
342
348
|
group: '3_step',
|
|
343
349
|
command: {
|
|
344
350
|
id: CONTINUE_ID,
|
|
345
|
-
title: (
|
|
351
|
+
title: ( localize(2129, "&&Continue")),
|
|
346
352
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
347
353
|
},
|
|
348
354
|
order: 4,
|
|
@@ -352,14 +358,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
|
|
|
352
358
|
group: '1_breakpoints',
|
|
353
359
|
command: {
|
|
354
360
|
id: TOGGLE_INLINE_BREAKPOINT_ID,
|
|
355
|
-
title: (
|
|
361
|
+
title: ( localize(2130, "Inline Breakp&&oint"))
|
|
356
362
|
},
|
|
357
363
|
order: 2,
|
|
358
364
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
359
365
|
});
|
|
360
366
|
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
361
367
|
group: '4_new_breakpoint',
|
|
362
|
-
title: (
|
|
368
|
+
title: ( localize(2131, "&&New Breakpoint")),
|
|
363
369
|
submenu: MenuId.MenubarNewBreakpointMenu,
|
|
364
370
|
order: 2,
|
|
365
371
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -368,13 +374,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
368
374
|
group: 'z_install',
|
|
369
375
|
command: {
|
|
370
376
|
id: 'debug.installAdditionalDebuggers',
|
|
371
|
-
title: (
|
|
377
|
+
title: ( localize(2132, "&&Install Additional Debuggers..."))
|
|
372
378
|
},
|
|
373
379
|
order: 1
|
|
374
380
|
});
|
|
375
381
|
const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).registerViewContainer({
|
|
376
382
|
id: DEBUG_PANEL_ID,
|
|
377
|
-
title: (
|
|
383
|
+
title: ( localize2(2133, "Debug Console")),
|
|
378
384
|
icon: debugConsoleViewIcon,
|
|
379
385
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
380
386
|
ViewPaneContainer,
|
|
@@ -386,7 +392,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
|
|
|
386
392
|
}, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
|
|
387
393
|
( (Registry.as(Extensions$2.ViewsRegistry))).registerViews([{
|
|
388
394
|
id: REPL_VIEW_ID,
|
|
389
|
-
name: (
|
|
395
|
+
name: ( localize2(2133, "Debug Console")),
|
|
390
396
|
containerIcon: debugConsoleViewIcon,
|
|
391
397
|
canToggleVisibility: false,
|
|
392
398
|
canMoveView: true,
|
|
@@ -394,17 +400,17 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
|
|
|
394
400
|
ctorDescriptor: ( (new SyncDescriptor(Repl))),
|
|
395
401
|
openCommandActionDescriptor: {
|
|
396
402
|
id: 'workbench.debug.action.toggleRepl',
|
|
397
|
-
mnemonicTitle: (
|
|
403
|
+
mnemonicTitle: ( localize(2134, "De&&bug Console")),
|
|
398
404
|
keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyY },
|
|
399
405
|
order: 2
|
|
400
406
|
}
|
|
401
407
|
}], VIEW_CONTAINER);
|
|
402
408
|
const viewContainer = ( (Registry.as(Extensions$2.ViewContainersRegistry))).registerViewContainer({
|
|
403
409
|
id: VIEWLET_ID,
|
|
404
|
-
title: (
|
|
410
|
+
title: ( localize2(2135, "Run and Debug")),
|
|
405
411
|
openCommandActionDescriptor: {
|
|
406
412
|
id: VIEWLET_ID,
|
|
407
|
-
mnemonicTitle: (
|
|
413
|
+
mnemonicTitle: ( localize(2136, "&&Run")),
|
|
408
414
|
keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyD },
|
|
409
415
|
order: 3
|
|
410
416
|
},
|
|
@@ -414,67 +420,64 @@ const viewContainer = ( (Registry.as(Extensions$2.ViewContainersRegistry))).regi
|
|
|
414
420
|
order: 3,
|
|
415
421
|
}, ViewContainerLocation.Sidebar);
|
|
416
422
|
const viewsRegistry = ( (Registry.as(Extensions$2.ViewsRegistry)));
|
|
417
|
-
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: (
|
|
418
|
-
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: (
|
|
419
|
-
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: (
|
|
420
|
-
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: (
|
|
423
|
+
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2(2137, "Variables")), containerIcon: variablesViewIcon, ctorDescriptor: ( (new SyncDescriptor(VariablesView))), order: 10, weight: 40, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusVariablesView' }, when: ( (CONTEXT_DEBUG_UX.isEqualTo('default'))) }], viewContainer);
|
|
424
|
+
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2(2138, "Watch")), containerIcon: watchViewIcon, ctorDescriptor: ( (new SyncDescriptor(WatchExpressionsView))), order: 20, weight: 10, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusWatchView' }, when: ( (CONTEXT_DEBUG_UX.isEqualTo('default'))) }], viewContainer);
|
|
425
|
+
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2(2139, "Call Stack")), containerIcon: callStackViewIcon, ctorDescriptor: ( (new SyncDescriptor(CallStackView))), order: 30, weight: 30, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusCallStackView' }, when: ( (CONTEXT_DEBUG_UX.isEqualTo('default'))) }], viewContainer);
|
|
426
|
+
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2(2140, "Breakpoints")), containerIcon: breakpointsViewIcon, ctorDescriptor: ( (new SyncDescriptor(BreakpointsView))), order: 40, weight: 20, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusBreakpointsView' }, when: ( (ContextKeyExpr.or(
|
|
421
427
|
CONTEXT_BREAKPOINTS_EXIST,
|
|
422
428
|
(CONTEXT_DEBUG_UX.isEqualTo('default')),
|
|
423
429
|
CONTEXT_HAS_DEBUGGED
|
|
424
430
|
))) }], viewContainer);
|
|
425
431
|
viewsRegistry.registerViews([{ id: WelcomeView.ID, name: WelcomeView.LABEL, containerIcon: runViewIcon, ctorDescriptor: ( (new SyncDescriptor(WelcomeView))), order: 1, weight: 40, canToggleVisibility: true, when: ( (CONTEXT_DEBUG_UX.isEqualTo('simple'))) }], viewContainer);
|
|
426
|
-
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: (
|
|
432
|
+
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2(2141, "Loaded Scripts")), containerIcon: loadedScriptsViewIcon, ctorDescriptor: ( (new SyncDescriptor(LoadedScriptsView))), order: 35, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: true, when: ( (ContextKeyExpr.and(
|
|
427
433
|
CONTEXT_LOADED_SCRIPTS_SUPPORTED,
|
|
428
434
|
(CONTEXT_DEBUG_UX.isEqualTo('default'))
|
|
429
435
|
))) }], viewContainer);
|
|
430
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, (
|
|
436
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localize(2142, "Disassembly"))), [( (new SyncDescriptor(DisassemblyViewInput)))]);
|
|
431
437
|
const configurationRegistry = ( (Registry.as(Extensions$3.Configuration)));
|
|
432
438
|
configurationRegistry.registerConfiguration({
|
|
433
439
|
id: 'debug',
|
|
434
440
|
order: 20,
|
|
435
|
-
title: (
|
|
441
|
+
title: ( localize(2143, "Debug")),
|
|
436
442
|
type: 'object',
|
|
437
443
|
properties: {
|
|
438
444
|
'debug.showVariableTypes': {
|
|
439
445
|
type: 'boolean',
|
|
440
|
-
description: (
|
|
446
|
+
description: ( localize(2144, "Show variable type in variable pane during debug session")),
|
|
441
447
|
default: false
|
|
442
448
|
},
|
|
443
449
|
'debug.allowBreakpointsEverywhere': {
|
|
444
450
|
type: 'boolean',
|
|
445
|
-
description: (
|
|
451
|
+
description: ( localize(2145, "Allow setting breakpoints in any file.")),
|
|
446
452
|
default: false
|
|
447
453
|
},
|
|
448
454
|
'debug.gutterMiddleClickAction': {
|
|
449
455
|
type: 'string',
|
|
450
456
|
enum: ['logpoint', 'conditionalBreakpoint', 'triggeredBreakpoint', 'none'],
|
|
451
|
-
description: (
|
|
452
|
-
|
|
453
|
-
48,
|
|
457
|
+
description: ( localize(
|
|
458
|
+
2146,
|
|
454
459
|
'Controls the action to perform when clicking the editor gutter with the middle mouse button.'
|
|
455
460
|
)),
|
|
456
461
|
enumDescriptions: [
|
|
457
|
-
(
|
|
458
|
-
(
|
|
459
|
-
(
|
|
460
|
-
(
|
|
462
|
+
( localize(2147, "Add Logpoint.")),
|
|
463
|
+
( localize(2148, "Add Conditional Breakpoint.")),
|
|
464
|
+
( localize(2149, "Add Triggered Breakpoint.")),
|
|
465
|
+
( localize(2150, "Don't perform any action.")),
|
|
461
466
|
],
|
|
462
467
|
default: 'logpoint',
|
|
463
468
|
},
|
|
464
469
|
'debug.openExplorerOnEnd': {
|
|
465
470
|
type: 'boolean',
|
|
466
|
-
description: (
|
|
467
|
-
|
|
468
|
-
53,
|
|
471
|
+
description: ( localize(
|
|
472
|
+
2151,
|
|
469
473
|
"Automatically open the explorer view at the end of a debug session."
|
|
470
474
|
)),
|
|
471
475
|
default: false
|
|
472
476
|
},
|
|
473
477
|
'debug.closeReadonlyTabsOnEnd': {
|
|
474
478
|
type: 'boolean',
|
|
475
|
-
description: (
|
|
476
|
-
|
|
477
|
-
54,
|
|
479
|
+
description: ( localize(
|
|
480
|
+
2152,
|
|
478
481
|
"At the end of a debug session, all the read-only tabs associated with that session will be closed"
|
|
479
482
|
)),
|
|
480
483
|
default: false
|
|
@@ -482,21 +485,12 @@ configurationRegistry.registerConfiguration({
|
|
|
482
485
|
'debug.inlineValues': {
|
|
483
486
|
type: 'string',
|
|
484
487
|
'enum': ['on', 'off', 'auto'],
|
|
485
|
-
description: (
|
|
488
|
+
description: ( localize(2153, "Show variable values inline in editor while debugging.")),
|
|
486
489
|
'enumDescriptions': [
|
|
487
|
-
(
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
)),
|
|
492
|
-
( localizeWithPath(
|
|
493
|
-
_moduleId,
|
|
494
|
-
57,
|
|
495
|
-
"Never show variable values inline in editor while debugging."
|
|
496
|
-
)),
|
|
497
|
-
( localizeWithPath(
|
|
498
|
-
_moduleId,
|
|
499
|
-
58,
|
|
490
|
+
( localize(2154, "Always show variable values inline in editor while debugging.")),
|
|
491
|
+
( localize(2155, "Never show variable values inline in editor while debugging.")),
|
|
492
|
+
( localize(
|
|
493
|
+
2156,
|
|
500
494
|
"Show variable values inline in editor while debugging when the language supports inline value locations."
|
|
501
495
|
)),
|
|
502
496
|
],
|
|
@@ -504,49 +498,41 @@ configurationRegistry.registerConfiguration({
|
|
|
504
498
|
},
|
|
505
499
|
'debug.toolBarLocation': {
|
|
506
500
|
enum: ['floating', 'docked', 'commandCenter', 'hidden'],
|
|
507
|
-
markdownDescription: (
|
|
508
|
-
|
|
509
|
-
59,
|
|
501
|
+
markdownDescription: ( localize(
|
|
502
|
+
2157,
|
|
510
503
|
"Controls the location of the debug toolbar. Either `floating` in all views, `docked` in the debug view, `commandCenter` (requires {0}), or `hidden`.",
|
|
511
504
|
'`#window.commandCenter#`'
|
|
512
505
|
)),
|
|
513
506
|
default: 'floating',
|
|
514
507
|
markdownEnumDescriptions: [
|
|
515
|
-
(
|
|
516
|
-
(
|
|
517
|
-
(
|
|
518
|
-
|
|
519
|
-
62,
|
|
520
|
-
"`(Experimental)` Show debug toolbar in the command center."
|
|
521
|
-
)),
|
|
522
|
-
( localizeWithPath(_moduleId, 63, "Do not show debug toolbar.")),
|
|
508
|
+
( localize(2158, "Show debug toolbar in all views.")),
|
|
509
|
+
( localize(2159, "Show debug toolbar only in debug views.")),
|
|
510
|
+
( localize(2160, "`(Experimental)` Show debug toolbar in the command center.")),
|
|
511
|
+
( localize(2161, "Do not show debug toolbar.")),
|
|
523
512
|
]
|
|
524
513
|
},
|
|
525
514
|
'debug.showInStatusBar': {
|
|
526
515
|
enum: ['never', 'always', 'onFirstSessionStart'],
|
|
527
|
-
enumDescriptions: [(
|
|
528
|
-
|
|
529
|
-
66,
|
|
516
|
+
enumDescriptions: [( localize(2162, "Never show debug in Status bar")), ( localize(2163, "Always show debug in Status bar")), ( localize(
|
|
517
|
+
2164,
|
|
530
518
|
"Show debug in Status bar only after debug was started for the first time"
|
|
531
519
|
))],
|
|
532
|
-
description: (
|
|
520
|
+
description: ( localize(2165, "Controls when the debug Status bar should be visible.")),
|
|
533
521
|
default: 'onFirstSessionStart'
|
|
534
522
|
},
|
|
535
523
|
'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
536
524
|
'debug.console.closeOnEnd': {
|
|
537
525
|
type: 'boolean',
|
|
538
|
-
description: (
|
|
539
|
-
|
|
540
|
-
68,
|
|
526
|
+
description: ( localize(
|
|
527
|
+
2166,
|
|
541
528
|
"Controls if the Debug Console should be automatically closed when the debug session ends."
|
|
542
529
|
)),
|
|
543
530
|
default: false
|
|
544
531
|
},
|
|
545
532
|
'debug.terminal.clearBeforeReusing': {
|
|
546
533
|
type: 'boolean',
|
|
547
|
-
description: (
|
|
548
|
-
|
|
549
|
-
69,
|
|
534
|
+
description: ( localize(
|
|
535
|
+
2167,
|
|
550
536
|
"Before starting a new debug session in an integrated or external terminal, clear the terminal."
|
|
551
537
|
)),
|
|
552
538
|
default: false
|
|
@@ -554,185 +540,175 @@ configurationRegistry.registerConfiguration({
|
|
|
554
540
|
'debug.openDebug': {
|
|
555
541
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
|
|
556
542
|
default: 'openOnDebugBreak',
|
|
557
|
-
description: (
|
|
543
|
+
description: ( localize(2168, "Controls when the debug view should open."))
|
|
558
544
|
},
|
|
559
545
|
'debug.showSubSessionsInToolBar': {
|
|
560
546
|
type: 'boolean',
|
|
561
|
-
description: (
|
|
562
|
-
|
|
563
|
-
71,
|
|
547
|
+
description: ( localize(
|
|
548
|
+
2169,
|
|
564
549
|
"Controls whether the debug sub-sessions are shown in the debug tool bar. When this setting is false the stop command on a sub-session will also stop the parent session."
|
|
565
550
|
)),
|
|
566
551
|
default: false
|
|
567
552
|
},
|
|
568
553
|
'debug.console.fontSize': {
|
|
569
554
|
type: 'number',
|
|
570
|
-
description: (
|
|
555
|
+
description: ( localize(2170, "Controls the font size in pixels in the Debug Console.")),
|
|
571
556
|
default: isMacintosh ? 12 : 14,
|
|
572
557
|
},
|
|
573
558
|
'debug.console.fontFamily': {
|
|
574
559
|
type: 'string',
|
|
575
|
-
description: (
|
|
560
|
+
description: ( localize(2171, "Controls the font family in the Debug Console.")),
|
|
576
561
|
default: 'default'
|
|
577
562
|
},
|
|
578
563
|
'debug.console.lineHeight': {
|
|
579
564
|
type: 'number',
|
|
580
|
-
description: (
|
|
581
|
-
|
|
582
|
-
74,
|
|
565
|
+
description: ( localize(
|
|
566
|
+
2172,
|
|
583
567
|
"Controls the line height in pixels in the Debug Console. Use 0 to compute the line height from the font size."
|
|
584
568
|
)),
|
|
585
569
|
default: 0
|
|
586
570
|
},
|
|
587
571
|
'debug.console.wordWrap': {
|
|
588
572
|
type: 'boolean',
|
|
589
|
-
description: (
|
|
573
|
+
description: ( localize(2173, "Controls if the lines should wrap in the Debug Console.")),
|
|
590
574
|
default: true
|
|
591
575
|
},
|
|
592
576
|
'debug.console.historySuggestions': {
|
|
593
577
|
type: 'boolean',
|
|
594
|
-
description: (
|
|
595
|
-
|
|
596
|
-
76,
|
|
578
|
+
description: ( localize(
|
|
579
|
+
2174,
|
|
597
580
|
"Controls if the Debug Console should suggest previously typed input."
|
|
598
581
|
)),
|
|
599
582
|
default: true
|
|
600
583
|
},
|
|
601
584
|
'debug.console.collapseIdenticalLines': {
|
|
602
585
|
type: 'boolean',
|
|
603
|
-
description: (
|
|
604
|
-
|
|
605
|
-
77,
|
|
586
|
+
description: ( localize(
|
|
587
|
+
2175,
|
|
606
588
|
"Controls if the Debug Console should collapse identical lines and show a number of occurrences with a badge."
|
|
607
589
|
)),
|
|
608
590
|
default: true
|
|
609
591
|
},
|
|
610
592
|
'debug.console.acceptSuggestionOnEnter': {
|
|
611
593
|
enum: ['off', 'on'],
|
|
612
|
-
description: (
|
|
613
|
-
|
|
614
|
-
78,
|
|
594
|
+
description: ( localize(
|
|
595
|
+
2176,
|
|
615
596
|
"Controls whether suggestions should be accepted on Enter in the Debug Console. Enter is also used to evaluate whatever is typed in the Debug Console."
|
|
616
597
|
)),
|
|
617
598
|
default: 'off'
|
|
618
599
|
},
|
|
619
600
|
'launch': {
|
|
620
601
|
type: 'object',
|
|
621
|
-
description: (
|
|
622
|
-
|
|
623
|
-
79,
|
|
602
|
+
description: ( localize(
|
|
603
|
+
2177,
|
|
624
604
|
"Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."
|
|
625
605
|
)),
|
|
626
606
|
default: { configurations: [], compounds: [] },
|
|
627
|
-
$ref: launchSchemaId
|
|
607
|
+
$ref: launchSchemaId,
|
|
608
|
+
disallowConfigurationDefault: true
|
|
628
609
|
},
|
|
629
610
|
'debug.focusWindowOnBreak': {
|
|
630
611
|
type: 'boolean',
|
|
631
|
-
description: (
|
|
632
|
-
|
|
633
|
-
80,
|
|
612
|
+
description: ( localize(
|
|
613
|
+
2178,
|
|
634
614
|
"Controls whether the workbench window should be focused when the debugger breaks."
|
|
635
615
|
)),
|
|
636
616
|
default: true
|
|
637
617
|
},
|
|
638
618
|
'debug.focusEditorOnBreak': {
|
|
639
619
|
type: 'boolean',
|
|
640
|
-
description: (
|
|
641
|
-
|
|
642
|
-
81,
|
|
620
|
+
description: ( localize(
|
|
621
|
+
2179,
|
|
643
622
|
"Controls whether the editor should be focused when the debugger breaks."
|
|
644
623
|
)),
|
|
645
624
|
default: true
|
|
646
625
|
},
|
|
647
626
|
'debug.onTaskErrors': {
|
|
648
627
|
enum: ['debugAnyway', 'showErrors', 'prompt', 'abort'],
|
|
649
|
-
enumDescriptions: [(
|
|
650
|
-
description: (
|
|
651
|
-
|
|
652
|
-
86,
|
|
628
|
+
enumDescriptions: [( localize(2180, "Ignore task errors and start debugging.")), ( localize(2181, "Show the Problems view and do not start debugging.")), ( localize(2182, "Prompt user.")), ( localize(2183, "Cancel debugging."))],
|
|
629
|
+
description: ( localize(
|
|
630
|
+
2184,
|
|
653
631
|
"Controls what to do when errors are encountered after running a preLaunchTask."
|
|
654
632
|
)),
|
|
655
633
|
default: 'prompt'
|
|
656
634
|
},
|
|
657
635
|
'debug.showBreakpointsInOverviewRuler': {
|
|
658
636
|
type: 'boolean',
|
|
659
|
-
description: (
|
|
660
|
-
|
|
661
|
-
87,
|
|
637
|
+
description: ( localize(
|
|
638
|
+
2185,
|
|
662
639
|
"Controls whether breakpoints should be shown in the overview ruler."
|
|
663
640
|
)),
|
|
664
641
|
default: false
|
|
665
642
|
},
|
|
666
643
|
'debug.showInlineBreakpointCandidates': {
|
|
667
644
|
type: 'boolean',
|
|
668
|
-
description: (
|
|
669
|
-
|
|
670
|
-
88,
|
|
645
|
+
description: ( localize(
|
|
646
|
+
2186,
|
|
671
647
|
"Controls whether inline breakpoints candidate decorations should be shown in the editor while debugging."
|
|
672
648
|
)),
|
|
673
649
|
default: true
|
|
674
650
|
},
|
|
675
651
|
'debug.saveBeforeStart': {
|
|
676
|
-
description: (
|
|
677
|
-
_moduleId,
|
|
678
|
-
89,
|
|
679
|
-
"Controls what editors to save before starting a debug session."
|
|
680
|
-
)),
|
|
652
|
+
description: ( localize(2187, "Controls what editors to save before starting a debug session.")),
|
|
681
653
|
enum: ['allEditorsInActiveGroup', 'nonUntitledEditorsInActiveGroup', 'none'],
|
|
682
654
|
enumDescriptions: [
|
|
683
|
-
(
|
|
684
|
-
|
|
685
|
-
90,
|
|
655
|
+
( localize(
|
|
656
|
+
2188,
|
|
686
657
|
"Save all editors in the active group before starting a debug session."
|
|
687
658
|
)),
|
|
688
|
-
(
|
|
689
|
-
|
|
690
|
-
91,
|
|
659
|
+
( localize(
|
|
660
|
+
2189,
|
|
691
661
|
"Save all editors in the active group except untitled ones before starting a debug session."
|
|
692
662
|
)),
|
|
693
|
-
(
|
|
663
|
+
( localize(2190, "Don't save any editors before starting a debug session.")),
|
|
694
664
|
],
|
|
695
665
|
default: 'allEditorsInActiveGroup',
|
|
696
666
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE
|
|
697
667
|
},
|
|
698
668
|
'debug.confirmOnExit': {
|
|
699
|
-
description: (
|
|
700
|
-
|
|
701
|
-
93,
|
|
669
|
+
description: ( localize(
|
|
670
|
+
2191,
|
|
702
671
|
"Controls whether to confirm when the window closes if there are active debug sessions."
|
|
703
672
|
)),
|
|
704
673
|
type: 'string',
|
|
705
674
|
enum: ['never', 'always'],
|
|
706
675
|
enumDescriptions: [
|
|
707
|
-
(
|
|
708
|
-
(
|
|
676
|
+
( localize(2192, "Never confirm.")),
|
|
677
|
+
( localize(2193, "Always confirm if there are debug sessions.")),
|
|
709
678
|
],
|
|
710
679
|
default: 'never'
|
|
711
680
|
},
|
|
712
681
|
'debug.disassemblyView.showSourceCode': {
|
|
713
682
|
type: 'boolean',
|
|
714
683
|
default: true,
|
|
715
|
-
description: (
|
|
684
|
+
description: ( localize(2194, "Show Source Code in Disassembly View."))
|
|
716
685
|
},
|
|
717
686
|
'debug.autoExpandLazyVariables': {
|
|
718
|
-
type: '
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
687
|
+
type: 'string',
|
|
688
|
+
enum: ['auto', 'on', 'off'],
|
|
689
|
+
default: 'auto',
|
|
690
|
+
enumDescriptions: [
|
|
691
|
+
( localize(
|
|
692
|
+
2195,
|
|
693
|
+
"When in screen reader optimized mode, automatically expand lazy variables."
|
|
694
|
+
)),
|
|
695
|
+
( localize(2196, "Always automatically expand lazy variables.")),
|
|
696
|
+
( localize(2197, "Never automatically expand lazy variables."))
|
|
697
|
+
],
|
|
698
|
+
description: ( localize(
|
|
699
|
+
2198,
|
|
700
|
+
"Controls whether variables that are lazily resolved, such as getters, are automatically resolved and expanded by the debugger."
|
|
724
701
|
))
|
|
725
702
|
},
|
|
726
703
|
'debug.enableStatusBarColor': {
|
|
727
704
|
type: 'boolean',
|
|
728
|
-
description: (
|
|
705
|
+
description: ( localize(2199, "Color of the Status bar when debugger is active.")),
|
|
729
706
|
default: true
|
|
730
707
|
},
|
|
731
708
|
'debug.hideLauncherWhileDebugging': {
|
|
732
709
|
type: 'boolean',
|
|
733
|
-
markdownDescription: (
|
|
734
|
-
|
|
735
|
-
99,
|
|
710
|
+
markdownDescription: ( localize(
|
|
711
|
+
2200,
|
|
736
712
|
"Hide 'Start Debugging' control in title bar of 'Run and Debug' view while debugging is active. Only relevant when {0} is not `docked`.",
|
|
737
713
|
'`#debug.toolBarLocation#`'
|
|
738
714
|
)),
|
|
@@ -740,3 +716,8 @@ configurationRegistry.registerConfiguration({
|
|
|
740
716
|
}
|
|
741
717
|
}
|
|
742
718
|
});
|
|
719
|
+
AccessibleViewRegistry.register(( (new ReplAccessibleView())));
|
|
720
|
+
AccessibleViewRegistry.register(( (new ReplAccessibilityHelp())));
|
|
721
|
+
AccessibleViewRegistry.register(( (new RunAndDebugAccessibilityHelp())));
|
|
722
|
+
registerWorkbenchContribution2(ReplAccessibilityAnnouncer.ID, ReplAccessibilityAnnouncer, WorkbenchPhase.AfterRestored);
|
|
723
|
+
registerWorkbenchContribution2(DebugWatchAccessibilityAnnouncer.ID, DebugWatchAccessibilityAnnouncer, WorkbenchPhase.AfterRestored);
|