@codingame/monaco-vscode-debug-service-override 9.0.3 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +160 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +22 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +133 -136
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +12 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +23 -26
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +35 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +21 -28
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +29 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +11 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +55 -67
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +58 -58
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSettingMigration.js +3 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +5 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +35 -42
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +17 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +13 -15
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +8 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +3 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +12 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +66 -71
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +12 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.js +4 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +2 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +40 -45
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +20 -22
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +5 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +39 -48
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +34 -35
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +9 -10
- 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/debugStorage.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +5 -4
- 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
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -347
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
2
1
|
import { FileAccess } from 'vscode/vscode/vs/base/common/network';
|
|
3
2
|
import { isWeb, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
4
3
|
import './media/debug.contribution.css.js';
|
|
5
4
|
import './media/debugHover.css.js';
|
|
6
|
-
import { registerEditorContribution
|
|
5
|
+
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
7
6
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
8
7
|
import { AccessibleViewRegistry } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
9
8
|
import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
10
|
-
import { Extensions as Extensions$3
|
|
9
|
+
import { Extensions as Extensions$3 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
11
10
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
11
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
13
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
14
12
|
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
15
13
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
16
14
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
17
15
|
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
18
|
-
import { Extensions, registerWorkbenchContribution2
|
|
16
|
+
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
19
17
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
20
|
-
import { Extensions as Extensions$2
|
|
18
|
+
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/views';
|
|
21
19
|
import { BreakpointEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
|
|
22
20
|
import { BreakpointsView } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
|
|
23
21
|
import { CallStackEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
@@ -43,7 +41,7 @@ import { StatusBarColorProvider } from './statusbarColorProvider.js';
|
|
|
43
41
|
import { VIEW_MEMORY_ID, SET_VARIABLE_ID, BREAK_WHEN_VALUE_IS_READ_ID, BREAK_WHEN_VALUE_CHANGES_ID, BREAK_WHEN_VALUE_IS_ACCESSED_ID, VariablesView } from './variablesView.js';
|
|
44
42
|
import { ADD_WATCH_ID, ADD_WATCH_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, WatchExpressionsView } from './watchExpressionsView.js';
|
|
45
43
|
import { WelcomeView } from './welcomeView.js';
|
|
46
|
-
import { BREAKPOINT_EDITOR_CONTRIBUTION_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_JUMP_TO_CURSOR_SUPPORTED, getStateLabel,
|
|
44
|
+
import { BREAKPOINT_EDITOR_CONTRIBUTION_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_JUMP_TO_CURSOR_SUPPORTED, getStateLabel, CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_RESTART_FRAME_SUPPORTED, CONTEXT_STACK_FRAME_SUPPORTS_RESTART, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_SET_VARIABLE_SUPPORTED, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED, CONTEXT_VARIABLE_IS_READONLY, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, CONTEXT_WATCH_ITEM_TYPE, CONTEXT_VARIABLE_VALUE, DEBUG_PANEL_ID, REPL_VIEW_ID, VIEWLET_ID, VARIABLES_VIEW_ID, CONTEXT_DEBUG_UX, WATCH_VIEW_ID, CALLSTACK_VIEW_ID, BREAKPOINTS_VIEW_ID, CONTEXT_BREAKPOINTS_EXIST, CONTEXT_HAS_DEBUGGED, LOADED_SCRIPTS_VIEW_ID, CONTEXT_LOADED_SCRIPTS_SUPPORTED, DISASSEMBLY_VIEW_ID, INTERNAL_CONSOLE_OPTIONS_SCHEMA } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
47
45
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
48
46
|
import { DebugContentProvider } from '../common/debugContentProvider.js';
|
|
49
47
|
import { DebugLifecycle } from '../common/debugLifecycle.js';
|
|
@@ -51,32 +49,31 @@ import '../common/debugVisualizers.js';
|
|
|
51
49
|
import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
52
50
|
import { COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL } from '../../notebook/browser/contrib/notebookVariables/notebookVariableCommands.js';
|
|
53
51
|
import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
54
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
55
52
|
import './debugSettingMigration.js';
|
|
56
53
|
import { ReplAccessibilityHelp } from './replAccessibilityHelp.js';
|
|
57
54
|
import { ReplAccessibilityAnnouncer } from '../common/replAccessibilityAnnouncer.js';
|
|
58
55
|
import { RunAndDebugAccessibilityHelp } from './runAndDebugAccessibilityHelp.js';
|
|
59
56
|
import { DebugWatchAccessibilityAnnouncer } from '../common/debugAccessibilityAnnouncer.js';
|
|
60
57
|
|
|
61
|
-
const debugCategory = ( localize(
|
|
58
|
+
const debugCategory = ( localize(2600, "Debug"));
|
|
62
59
|
registerColors();
|
|
63
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugStatusContribution,
|
|
64
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugProgressContribution,
|
|
60
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugStatusContribution, 4 );
|
|
61
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugProgressContribution, 4 );
|
|
65
62
|
if (isWeb) {
|
|
66
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugTitleContribution,
|
|
63
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugTitleContribution, 4 );
|
|
67
64
|
}
|
|
68
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugToolBar,
|
|
69
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugContentProvider,
|
|
70
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(StatusBarColorProvider,
|
|
71
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DisassemblyViewContribution,
|
|
72
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugLifecycle,
|
|
65
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugToolBar, 3 );
|
|
66
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugContentProvider, 4 );
|
|
67
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(StatusBarColorProvider, 4 );
|
|
68
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DisassemblyViewContribution, 4 );
|
|
69
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugLifecycle, 4 );
|
|
73
70
|
( (Registry.as(Extensions$1.Quickaccess))).registerQuickAccessProvider({
|
|
74
71
|
ctor: StartDebugQuickAccessProvider,
|
|
75
72
|
prefix: DEBUG_QUICK_ACCESS_PREFIX,
|
|
76
73
|
contextKey: 'inLaunchConfigurationsPicker',
|
|
77
|
-
placeholder: ( localize(
|
|
74
|
+
placeholder: ( localize(2601, "Type the name of a launch configuration to run.")),
|
|
78
75
|
helpEntries: [{
|
|
79
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(2602, "Start Debugging")),
|
|
80
77
|
commandId: SELECT_AND_START_ID,
|
|
81
78
|
commandCenterOrder: 50
|
|
82
79
|
}]
|
|
@@ -85,12 +82,12 @@ if (isWeb) {
|
|
|
85
82
|
ctor: DebugConsoleQuickAccess,
|
|
86
83
|
prefix: DEBUG_CONSOLE_QUICK_ACCESS_PREFIX,
|
|
87
84
|
contextKey: 'inDebugConsolePicker',
|
|
88
|
-
placeholder: ( localize(
|
|
89
|
-
helpEntries: [{ description: ( localize(
|
|
85
|
+
placeholder: ( localize(2603, "Type the name of a debug console to open.")),
|
|
86
|
+
helpEntries: [{ description: ( localize(2604, "Show All Debug Consoles")), commandId: SELECT_DEBUG_CONSOLE_ID }]
|
|
90
87
|
});
|
|
91
|
-
registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution,
|
|
92
|
-
registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution,
|
|
93
|
-
registerEditorContribution(EDITOR_CONTRIBUTION_ID, DebugEditorContribution,
|
|
88
|
+
registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, 1 );
|
|
89
|
+
registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, 1 );
|
|
90
|
+
registerEditorContribution(EDITOR_CONTRIBUTION_ID, DebugEditorContribution, 2 );
|
|
94
91
|
const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
|
|
95
92
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
96
93
|
when: ( (ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, when))),
|
|
@@ -104,7 +101,7 @@ const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
|
|
|
104
101
|
});
|
|
105
102
|
};
|
|
106
103
|
registerDebugCommandPaletteItem(RESTART_SESSION_ID, RESTART_LABEL);
|
|
107
|
-
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2(
|
|
104
|
+
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2(2605, "Terminate Thread")), CONTEXT_IN_DEBUG_MODE);
|
|
108
105
|
registerDebugCommandPaletteItem(STEP_OVER_ID, STEP_OVER_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
109
106
|
registerDebugCommandPaletteItem(STEP_INTO_ID, STEP_INTO_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
110
107
|
registerDebugCommandPaletteItem(STEP_INTO_TARGET_ID, STEP_INTO_TARGET_LABEL, CONTEXT_IN_DEBUG_MODE, ( (ContextKeyExpr.and(
|
|
@@ -127,24 +124,24 @@ registerDebugCommandPaletteItem(STOP_ID, STOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( (C
|
|
|
127
124
|
CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED
|
|
128
125
|
))));
|
|
129
126
|
registerDebugCommandPaletteItem(CONTINUE_ID, CONTINUE_LABEL, CONTEXT_IN_DEBUG_MODE, ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
130
|
-
registerDebugCommandPaletteItem(FOCUS_REPL_ID, ( localize2(
|
|
131
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(
|
|
132
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(
|
|
127
|
+
registerDebugCommandPaletteItem(FOCUS_REPL_ID, ( localize2(2606, "Focus on Debug Console View")));
|
|
128
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2607, "Jump to Cursor")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
129
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(2608, "Set Next Statement")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
133
130
|
registerDebugCommandPaletteItem(RunToCursorAction.ID, RunToCursorAction.LABEL, CONTEXT_DEBUGGERS_AVAILABLE);
|
|
134
131
|
registerDebugCommandPaletteItem(SelectionToReplAction.ID, SelectionToReplAction.LABEL, CONTEXT_IN_DEBUG_MODE);
|
|
135
132
|
registerDebugCommandPaletteItem(SelectionToWatchExpressionsAction.ID, SelectionToWatchExpressionsAction.LABEL);
|
|
136
|
-
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2(
|
|
133
|
+
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2(2609, "Inline Breakpoint")));
|
|
137
134
|
registerDebugCommandPaletteItem(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, ( (ContextKeyExpr.and(
|
|
138
135
|
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
139
|
-
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(
|
|
136
|
+
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 )))
|
|
140
137
|
))));
|
|
141
138
|
registerDebugCommandPaletteItem(DEBUG_RUN_COMMAND_ID, DEBUG_RUN_LABEL, ( (ContextKeyExpr.and(
|
|
142
139
|
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
143
|
-
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(
|
|
140
|
+
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 )))
|
|
144
141
|
))));
|
|
145
142
|
registerDebugCommandPaletteItem(SELECT_AND_START_ID, SELECT_AND_START_LABEL, ( (ContextKeyExpr.and(
|
|
146
143
|
CONTEXT_DEBUGGERS_AVAILABLE,
|
|
147
|
-
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(
|
|
144
|
+
(CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 )))
|
|
148
145
|
))));
|
|
149
146
|
registerDebugCommandPaletteItem(NEXT_DEBUG_CONSOLE_ID, NEXT_DEBUG_CONSOLE_LABEL);
|
|
150
147
|
registerDebugCommandPaletteItem(PREV_DEBUG_CONSOLE_ID, PREV_DEBUG_CONSOLE_LABEL);
|
|
@@ -191,45 +188,45 @@ registerDebugViewMenuItem(MenuId.DebugCallStackContext, CONTINUE_ID, CONTINUE_LA
|
|
|
191
188
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OVER_ID, STEP_OVER_LABEL, 20, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
192
189
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_INTO_ID, STEP_INTO_LABEL, 30, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
193
190
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OUT_ID, STEP_OUT_LABEL, 40, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped'))));
|
|
194
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localize(
|
|
195
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(
|
|
191
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localize(2605, "Terminate Thread")), 10, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread'))), undefined, 'termination');
|
|
192
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(2610, "Restart Frame")), 10, ( (ContextKeyExpr.and(
|
|
196
193
|
(CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')),
|
|
197
194
|
CONTEXT_RESTART_FRAME_SUPPORTED
|
|
198
195
|
))), CONTEXT_STACK_FRAME_SUPPORTS_RESTART);
|
|
199
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localize(
|
|
200
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(
|
|
201
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(
|
|
196
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localize(2611, "Copy Call Stack")), 20, ( (CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame'))), undefined, '3_modification');
|
|
197
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(2612, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
198
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(2613, "Set Value")), 10, ( (ContextKeyExpr.or(
|
|
202
199
|
CONTEXT_SET_VARIABLE_SUPPORTED,
|
|
203
200
|
(ContextKeyExpr.and(CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED))
|
|
204
201
|
))), ( (CONTEXT_VARIABLE_IS_READONLY.toNegated())), '3_modification');
|
|
205
202
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
206
203
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
207
204
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
208
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(
|
|
209
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(
|
|
210
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(
|
|
211
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(
|
|
205
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(2614, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
206
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(2615, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
207
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(2616, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
208
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(2612, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
212
209
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
213
210
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
214
211
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
215
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(
|
|
216
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(
|
|
217
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(
|
|
212
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(2614, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
213
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(2615, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
214
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(2616, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
218
215
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, ADD_WATCH_ID, ADD_WATCH_LABEL, 10, undefined, undefined, '3_modification');
|
|
219
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localize(
|
|
220
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(
|
|
216
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localize(2617, "Edit Expression")), 20, ( (CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))), undefined, '3_modification');
|
|
217
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(2613, "Set Value")), 30, ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|
|
221
218
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')),
|
|
222
219
|
CONTEXT_SET_EXPRESSION_SUPPORTED
|
|
223
220
|
)), (ContextKeyExpr.and(
|
|
224
221
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable')),
|
|
225
222
|
CONTEXT_SET_VARIABLE_SUPPORTED
|
|
226
223
|
))))), ( (CONTEXT_VARIABLE_IS_READONLY.toNegated())), '3_modification');
|
|
227
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localize(
|
|
224
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localize(2618, "Copy Value")), 40, ( (ContextKeyExpr.or(
|
|
228
225
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')),
|
|
229
226
|
(CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable'))
|
|
230
227
|
))), CONTEXT_IN_DEBUG_MODE, '3_modification');
|
|
231
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localize(
|
|
232
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(
|
|
228
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localize(2612, "View Binary Data")), 10, CONTEXT_CAN_VIEW_MEMORY, undefined, 'inline', debugInspectMemory);
|
|
229
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(2619, "Remove Expression")), 20, ( (CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression'))), undefined, 'inline', watchExpressionRemove);
|
|
233
230
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, 20, undefined, undefined, 'z_commands');
|
|
234
231
|
registerDebugViewMenuItem(MenuId.NotebookVariablesContext, COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, 20, CONTEXT_VARIABLE_VALUE);
|
|
235
232
|
if (isMacintosh) {
|
|
@@ -258,12 +255,12 @@ if (isMacintosh) {
|
|
|
258
255
|
registerTouchBarEntry(RESTART_SESSION_ID, RESTART_LABEL, 5, CONTEXT_IN_DEBUG_MODE, ( (FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/restart-tb.png'))));
|
|
259
256
|
registerTouchBarEntry(STOP_ID, STOP_LABEL, 6, CONTEXT_IN_DEBUG_MODE, ( (FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stop-tb.png'))));
|
|
260
257
|
}
|
|
261
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2(
|
|
258
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2(2620, "Run or Debug...")), icon: debugRun, group: 'navigation', order: -1 });
|
|
262
259
|
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
263
260
|
submenu: MenuId.MenubarDebugMenu,
|
|
264
261
|
title: {
|
|
265
|
-
...( localize2(
|
|
266
|
-
mnemonicTitle: ( localize(
|
|
262
|
+
...( localize2(2621, "Run")),
|
|
263
|
+
mnemonicTitle: ( localize(2622, "&&Run"))
|
|
267
264
|
},
|
|
268
265
|
order: 6
|
|
269
266
|
});
|
|
@@ -271,7 +268,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
271
268
|
group: '1_debug',
|
|
272
269
|
command: {
|
|
273
270
|
id: DEBUG_START_COMMAND_ID,
|
|
274
|
-
title: ( localize(
|
|
271
|
+
title: ( localize(2623, "&&Start Debugging"))
|
|
275
272
|
},
|
|
276
273
|
order: 1,
|
|
277
274
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -280,7 +277,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
280
277
|
group: '1_debug',
|
|
281
278
|
command: {
|
|
282
279
|
id: DEBUG_RUN_COMMAND_ID,
|
|
283
|
-
title: ( localize(
|
|
280
|
+
title: ( localize(2624, "Run &&Without Debugging"))
|
|
284
281
|
},
|
|
285
282
|
order: 2,
|
|
286
283
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -289,7 +286,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
289
286
|
group: '1_debug',
|
|
290
287
|
command: {
|
|
291
288
|
id: STOP_ID,
|
|
292
|
-
title: ( localize(
|
|
289
|
+
title: ( localize(2625, "&&Stop Debugging")),
|
|
293
290
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
294
291
|
},
|
|
295
292
|
order: 3,
|
|
@@ -299,7 +296,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
299
296
|
group: '1_debug',
|
|
300
297
|
command: {
|
|
301
298
|
id: RESTART_SESSION_ID,
|
|
302
|
-
title: ( localize(
|
|
299
|
+
title: ( localize(2626, "&&Restart Debugging")),
|
|
303
300
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
304
301
|
},
|
|
305
302
|
order: 4,
|
|
@@ -309,7 +306,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
309
306
|
group: '2_configuration',
|
|
310
307
|
command: {
|
|
311
308
|
id: ADD_CONFIGURATION_ID,
|
|
312
|
-
title: ( localize(
|
|
309
|
+
title: ( localize(2627, "A&&dd Configuration..."))
|
|
313
310
|
},
|
|
314
311
|
order: 2,
|
|
315
312
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -318,7 +315,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
318
315
|
group: '3_step',
|
|
319
316
|
command: {
|
|
320
317
|
id: STEP_OVER_ID,
|
|
321
|
-
title: ( localize(
|
|
318
|
+
title: ( localize(2628, "Step &&Over")),
|
|
322
319
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
323
320
|
},
|
|
324
321
|
order: 1,
|
|
@@ -328,7 +325,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
328
325
|
group: '3_step',
|
|
329
326
|
command: {
|
|
330
327
|
id: STEP_INTO_ID,
|
|
331
|
-
title: ( localize(
|
|
328
|
+
title: ( localize(2629, "Step &&Into")),
|
|
332
329
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
333
330
|
},
|
|
334
331
|
order: 2,
|
|
@@ -338,7 +335,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
338
335
|
group: '3_step',
|
|
339
336
|
command: {
|
|
340
337
|
id: STEP_OUT_ID,
|
|
341
|
-
title: ( localize(
|
|
338
|
+
title: ( localize(2630, "Step O&&ut")),
|
|
342
339
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
343
340
|
},
|
|
344
341
|
order: 3,
|
|
@@ -348,7 +345,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
348
345
|
group: '3_step',
|
|
349
346
|
command: {
|
|
350
347
|
id: CONTINUE_ID,
|
|
351
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(2631, "&&Continue")),
|
|
352
349
|
precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo('stopped')))
|
|
353
350
|
},
|
|
354
351
|
order: 4,
|
|
@@ -358,14 +355,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
|
|
|
358
355
|
group: '1_breakpoints',
|
|
359
356
|
command: {
|
|
360
357
|
id: TOGGLE_INLINE_BREAKPOINT_ID,
|
|
361
|
-
title: ( localize(
|
|
358
|
+
title: ( localize(2632, "Inline Breakp&&oint"))
|
|
362
359
|
},
|
|
363
360
|
order: 2,
|
|
364
361
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
365
362
|
});
|
|
366
363
|
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
367
364
|
group: '4_new_breakpoint',
|
|
368
|
-
title: ( localize(
|
|
365
|
+
title: ( localize(2633, "&&New Breakpoint")),
|
|
369
366
|
submenu: MenuId.MenubarNewBreakpointMenu,
|
|
370
367
|
order: 2,
|
|
371
368
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -374,13 +371,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
374
371
|
group: 'z_install',
|
|
375
372
|
command: {
|
|
376
373
|
id: 'debug.installAdditionalDebuggers',
|
|
377
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(2634, "&&Install Additional Debuggers..."))
|
|
378
375
|
},
|
|
379
376
|
order: 1
|
|
380
377
|
});
|
|
381
378
|
const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).registerViewContainer({
|
|
382
379
|
id: DEBUG_PANEL_ID,
|
|
383
|
-
title: ( localize2(
|
|
380
|
+
title: ( localize2(2635, "Debug Console")),
|
|
384
381
|
icon: debugConsoleViewIcon,
|
|
385
382
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
386
383
|
ViewPaneContainer,
|
|
@@ -389,10 +386,10 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
|
|
|
389
386
|
storageId: DEBUG_PANEL_ID,
|
|
390
387
|
hideIfEmpty: true,
|
|
391
388
|
order: 2,
|
|
392
|
-
},
|
|
389
|
+
}, 1 , { doNotRegisterOpenCommand: true });
|
|
393
390
|
( (Registry.as(Extensions$2.ViewsRegistry))).registerViews([{
|
|
394
391
|
id: REPL_VIEW_ID,
|
|
395
|
-
name: ( localize2(
|
|
392
|
+
name: ( localize2(2635, "Debug Console")),
|
|
396
393
|
containerIcon: debugConsoleViewIcon,
|
|
397
394
|
canToggleVisibility: false,
|
|
398
395
|
canMoveView: true,
|
|
@@ -400,76 +397,76 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
|
|
|
400
397
|
ctorDescriptor: ( (new SyncDescriptor(Repl))),
|
|
401
398
|
openCommandActionDescriptor: {
|
|
402
399
|
id: 'workbench.debug.action.toggleRepl',
|
|
403
|
-
mnemonicTitle: ( localize(
|
|
404
|
-
keybindings: { primary:
|
|
400
|
+
mnemonicTitle: ( localize(2636, "De&&bug Console")),
|
|
401
|
+
keybindings: { primary: 2048 | 1024 | 55 },
|
|
405
402
|
order: 2
|
|
406
403
|
}
|
|
407
404
|
}], VIEW_CONTAINER);
|
|
408
405
|
const viewContainer = ( (Registry.as(Extensions$2.ViewContainersRegistry))).registerViewContainer({
|
|
409
406
|
id: VIEWLET_ID,
|
|
410
|
-
title: ( localize2(
|
|
407
|
+
title: ( localize2(2637, "Run and Debug")),
|
|
411
408
|
openCommandActionDescriptor: {
|
|
412
409
|
id: VIEWLET_ID,
|
|
413
|
-
mnemonicTitle: ( localize(
|
|
414
|
-
keybindings: { primary:
|
|
410
|
+
mnemonicTitle: ( localize(2638, "&&Run")),
|
|
411
|
+
keybindings: { primary: 2048 | 1024 | 34 },
|
|
415
412
|
order: 3
|
|
416
413
|
},
|
|
417
414
|
ctorDescriptor: ( (new SyncDescriptor(DebugViewPaneContainer))),
|
|
418
415
|
icon: runViewIcon,
|
|
419
416
|
alwaysUseContainerInfo: true,
|
|
420
417
|
order: 3,
|
|
421
|
-
},
|
|
418
|
+
}, 0 );
|
|
422
419
|
const viewsRegistry = ( (Registry.as(Extensions$2.ViewsRegistry)));
|
|
423
|
-
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2(
|
|
424
|
-
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2(
|
|
425
|
-
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2(
|
|
426
|
-
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2(
|
|
420
|
+
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2(2639, "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);
|
|
421
|
+
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2(2640, "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);
|
|
422
|
+
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2(2641, "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);
|
|
423
|
+
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2(2642, "Breakpoints")), containerIcon: breakpointsViewIcon, ctorDescriptor: ( (new SyncDescriptor(BreakpointsView))), order: 40, weight: 20, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusBreakpointsView' }, when: ( (ContextKeyExpr.or(
|
|
427
424
|
CONTEXT_BREAKPOINTS_EXIST,
|
|
428
425
|
(CONTEXT_DEBUG_UX.isEqualTo('default')),
|
|
429
426
|
CONTEXT_HAS_DEBUGGED
|
|
430
427
|
))) }], viewContainer);
|
|
431
428
|
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);
|
|
432
|
-
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2(
|
|
429
|
+
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2(2643, "Loaded Scripts")), containerIcon: loadedScriptsViewIcon, ctorDescriptor: ( (new SyncDescriptor(LoadedScriptsView))), order: 35, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: true, when: ( (ContextKeyExpr.and(
|
|
433
430
|
CONTEXT_LOADED_SCRIPTS_SUPPORTED,
|
|
434
431
|
(CONTEXT_DEBUG_UX.isEqualTo('default'))
|
|
435
432
|
))) }], viewContainer);
|
|
436
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localize(
|
|
433
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localize(2644, "Disassembly"))), [( (new SyncDescriptor(DisassemblyViewInput)))]);
|
|
437
434
|
const configurationRegistry = ( (Registry.as(Extensions$3.Configuration)));
|
|
438
435
|
configurationRegistry.registerConfiguration({
|
|
439
436
|
id: 'debug',
|
|
440
437
|
order: 20,
|
|
441
|
-
title: ( localize(
|
|
438
|
+
title: ( localize(2645, "Debug")),
|
|
442
439
|
type: 'object',
|
|
443
440
|
properties: {
|
|
444
441
|
'debug.showVariableTypes': {
|
|
445
442
|
type: 'boolean',
|
|
446
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(2646, "Show variable type in variable pane during debug session")),
|
|
447
444
|
default: false
|
|
448
445
|
},
|
|
449
446
|
'debug.allowBreakpointsEverywhere': {
|
|
450
447
|
type: 'boolean',
|
|
451
|
-
description: ( localize(
|
|
448
|
+
description: ( localize(2647, "Allow setting breakpoints in any file.")),
|
|
452
449
|
default: false
|
|
453
450
|
},
|
|
454
451
|
'debug.gutterMiddleClickAction': {
|
|
455
452
|
type: 'string',
|
|
456
453
|
enum: ['logpoint', 'conditionalBreakpoint', 'triggeredBreakpoint', 'none'],
|
|
457
454
|
description: ( localize(
|
|
458
|
-
|
|
455
|
+
2648,
|
|
459
456
|
'Controls the action to perform when clicking the editor gutter with the middle mouse button.'
|
|
460
457
|
)),
|
|
461
458
|
enumDescriptions: [
|
|
462
|
-
( localize(
|
|
463
|
-
( localize(
|
|
464
|
-
( localize(
|
|
465
|
-
( localize(
|
|
459
|
+
( localize(2649, "Add Logpoint.")),
|
|
460
|
+
( localize(2650, "Add Conditional Breakpoint.")),
|
|
461
|
+
( localize(2651, "Add Triggered Breakpoint.")),
|
|
462
|
+
( localize(2652, "Don't perform any action.")),
|
|
466
463
|
],
|
|
467
464
|
default: 'logpoint',
|
|
468
465
|
},
|
|
469
466
|
'debug.openExplorerOnEnd': {
|
|
470
467
|
type: 'boolean',
|
|
471
468
|
description: ( localize(
|
|
472
|
-
|
|
469
|
+
2653,
|
|
473
470
|
"Automatically open the explorer view at the end of a debug session."
|
|
474
471
|
)),
|
|
475
472
|
default: false
|
|
@@ -477,7 +474,7 @@ configurationRegistry.registerConfiguration({
|
|
|
477
474
|
'debug.closeReadonlyTabsOnEnd': {
|
|
478
475
|
type: 'boolean',
|
|
479
476
|
description: ( localize(
|
|
480
|
-
|
|
477
|
+
2654,
|
|
481
478
|
"At the end of a debug session, all the read-only tabs associated with that session will be closed"
|
|
482
479
|
)),
|
|
483
480
|
default: false
|
|
@@ -485,12 +482,12 @@ configurationRegistry.registerConfiguration({
|
|
|
485
482
|
'debug.inlineValues': {
|
|
486
483
|
type: 'string',
|
|
487
484
|
'enum': ['on', 'off', 'auto'],
|
|
488
|
-
description: ( localize(
|
|
485
|
+
description: ( localize(2655, "Show variable values inline in editor while debugging.")),
|
|
489
486
|
'enumDescriptions': [
|
|
490
|
-
( localize(
|
|
491
|
-
( localize(
|
|
487
|
+
( localize(2656, "Always show variable values inline in editor while debugging.")),
|
|
488
|
+
( localize(2657, "Never show variable values inline in editor while debugging.")),
|
|
492
489
|
( localize(
|
|
493
|
-
|
|
490
|
+
2658,
|
|
494
491
|
"Show variable values inline in editor while debugging when the language supports inline value locations."
|
|
495
492
|
)),
|
|
496
493
|
],
|
|
@@ -499,32 +496,32 @@ configurationRegistry.registerConfiguration({
|
|
|
499
496
|
'debug.toolBarLocation': {
|
|
500
497
|
enum: ['floating', 'docked', 'commandCenter', 'hidden'],
|
|
501
498
|
markdownDescription: ( localize(
|
|
502
|
-
|
|
499
|
+
2659,
|
|
503
500
|
"Controls the location of the debug toolbar. Either `floating` in all views, `docked` in the debug view, `commandCenter` (requires {0}), or `hidden`.",
|
|
504
501
|
'`#window.commandCenter#`'
|
|
505
502
|
)),
|
|
506
503
|
default: 'floating',
|
|
507
504
|
markdownEnumDescriptions: [
|
|
508
|
-
( localize(
|
|
509
|
-
( localize(
|
|
510
|
-
( localize(
|
|
511
|
-
( localize(
|
|
505
|
+
( localize(2660, "Show debug toolbar in all views.")),
|
|
506
|
+
( localize(2661, "Show debug toolbar only in debug views.")),
|
|
507
|
+
( localize(2662, "`(Experimental)` Show debug toolbar in the command center.")),
|
|
508
|
+
( localize(2663, "Do not show debug toolbar.")),
|
|
512
509
|
]
|
|
513
510
|
},
|
|
514
511
|
'debug.showInStatusBar': {
|
|
515
512
|
enum: ['never', 'always', 'onFirstSessionStart'],
|
|
516
|
-
enumDescriptions: [( localize(
|
|
517
|
-
|
|
513
|
+
enumDescriptions: [( localize(2664, "Never show debug in Status bar")), ( localize(2665, "Always show debug in Status bar")), ( localize(
|
|
514
|
+
2666,
|
|
518
515
|
"Show debug in Status bar only after debug was started for the first time"
|
|
519
516
|
))],
|
|
520
|
-
description: ( localize(
|
|
517
|
+
description: ( localize(2667, "Controls when the debug Status bar should be visible.")),
|
|
521
518
|
default: 'onFirstSessionStart'
|
|
522
519
|
},
|
|
523
520
|
'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
524
521
|
'debug.console.closeOnEnd': {
|
|
525
522
|
type: 'boolean',
|
|
526
523
|
description: ( localize(
|
|
527
|
-
|
|
524
|
+
2668,
|
|
528
525
|
"Controls if the Debug Console should be automatically closed when the debug session ends."
|
|
529
526
|
)),
|
|
530
527
|
default: false
|
|
@@ -532,7 +529,7 @@ configurationRegistry.registerConfiguration({
|
|
|
532
529
|
'debug.terminal.clearBeforeReusing': {
|
|
533
530
|
type: 'boolean',
|
|
534
531
|
description: ( localize(
|
|
535
|
-
|
|
532
|
+
2669,
|
|
536
533
|
"Before starting a new debug session in an integrated or external terminal, clear the terminal."
|
|
537
534
|
)),
|
|
538
535
|
default: false
|
|
@@ -540,43 +537,43 @@ configurationRegistry.registerConfiguration({
|
|
|
540
537
|
'debug.openDebug': {
|
|
541
538
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
|
|
542
539
|
default: 'openOnDebugBreak',
|
|
543
|
-
description: ( localize(
|
|
540
|
+
description: ( localize(2670, "Controls when the debug view should open."))
|
|
544
541
|
},
|
|
545
542
|
'debug.showSubSessionsInToolBar': {
|
|
546
543
|
type: 'boolean',
|
|
547
544
|
description: ( localize(
|
|
548
|
-
|
|
545
|
+
2671,
|
|
549
546
|
"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."
|
|
550
547
|
)),
|
|
551
548
|
default: false
|
|
552
549
|
},
|
|
553
550
|
'debug.console.fontSize': {
|
|
554
551
|
type: 'number',
|
|
555
|
-
description: ( localize(
|
|
552
|
+
description: ( localize(2672, "Controls the font size in pixels in the Debug Console.")),
|
|
556
553
|
default: isMacintosh ? 12 : 14,
|
|
557
554
|
},
|
|
558
555
|
'debug.console.fontFamily': {
|
|
559
556
|
type: 'string',
|
|
560
|
-
description: ( localize(
|
|
557
|
+
description: ( localize(2673, "Controls the font family in the Debug Console.")),
|
|
561
558
|
default: 'default'
|
|
562
559
|
},
|
|
563
560
|
'debug.console.lineHeight': {
|
|
564
561
|
type: 'number',
|
|
565
562
|
description: ( localize(
|
|
566
|
-
|
|
563
|
+
2674,
|
|
567
564
|
"Controls the line height in pixels in the Debug Console. Use 0 to compute the line height from the font size."
|
|
568
565
|
)),
|
|
569
566
|
default: 0
|
|
570
567
|
},
|
|
571
568
|
'debug.console.wordWrap': {
|
|
572
569
|
type: 'boolean',
|
|
573
|
-
description: ( localize(
|
|
570
|
+
description: ( localize(2675, "Controls if the lines should wrap in the Debug Console.")),
|
|
574
571
|
default: true
|
|
575
572
|
},
|
|
576
573
|
'debug.console.historySuggestions': {
|
|
577
574
|
type: 'boolean',
|
|
578
575
|
description: ( localize(
|
|
579
|
-
|
|
576
|
+
2676,
|
|
580
577
|
"Controls if the Debug Console should suggest previously typed input."
|
|
581
578
|
)),
|
|
582
579
|
default: true
|
|
@@ -584,7 +581,7 @@ configurationRegistry.registerConfiguration({
|
|
|
584
581
|
'debug.console.collapseIdenticalLines': {
|
|
585
582
|
type: 'boolean',
|
|
586
583
|
description: ( localize(
|
|
587
|
-
|
|
584
|
+
2677,
|
|
588
585
|
"Controls if the Debug Console should collapse identical lines and show a number of occurrences with a badge."
|
|
589
586
|
)),
|
|
590
587
|
default: true
|
|
@@ -592,7 +589,7 @@ configurationRegistry.registerConfiguration({
|
|
|
592
589
|
'debug.console.acceptSuggestionOnEnter': {
|
|
593
590
|
enum: ['off', 'on'],
|
|
594
591
|
description: ( localize(
|
|
595
|
-
|
|
592
|
+
2678,
|
|
596
593
|
"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."
|
|
597
594
|
)),
|
|
598
595
|
default: 'off'
|
|
@@ -600,7 +597,7 @@ configurationRegistry.registerConfiguration({
|
|
|
600
597
|
'launch': {
|
|
601
598
|
type: 'object',
|
|
602
599
|
description: ( localize(
|
|
603
|
-
|
|
600
|
+
2679,
|
|
604
601
|
"Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."
|
|
605
602
|
)),
|
|
606
603
|
default: { configurations: [], compounds: [] },
|
|
@@ -610,7 +607,7 @@ configurationRegistry.registerConfiguration({
|
|
|
610
607
|
'debug.focusWindowOnBreak': {
|
|
611
608
|
type: 'boolean',
|
|
612
609
|
description: ( localize(
|
|
613
|
-
|
|
610
|
+
2680,
|
|
614
611
|
"Controls whether the workbench window should be focused when the debugger breaks."
|
|
615
612
|
)),
|
|
616
613
|
default: true
|
|
@@ -618,16 +615,16 @@ configurationRegistry.registerConfiguration({
|
|
|
618
615
|
'debug.focusEditorOnBreak': {
|
|
619
616
|
type: 'boolean',
|
|
620
617
|
description: ( localize(
|
|
621
|
-
|
|
618
|
+
2681,
|
|
622
619
|
"Controls whether the editor should be focused when the debugger breaks."
|
|
623
620
|
)),
|
|
624
621
|
default: true
|
|
625
622
|
},
|
|
626
623
|
'debug.onTaskErrors': {
|
|
627
624
|
enum: ['debugAnyway', 'showErrors', 'prompt', 'abort'],
|
|
628
|
-
enumDescriptions: [( localize(
|
|
625
|
+
enumDescriptions: [( localize(2682, "Ignore task errors and start debugging.")), ( localize(2683, "Show the Problems view and do not start debugging.")), ( localize(2684, "Prompt user.")), ( localize(2685, "Cancel debugging."))],
|
|
629
626
|
description: ( localize(
|
|
630
|
-
|
|
627
|
+
2686,
|
|
631
628
|
"Controls what to do when errors are encountered after running a preLaunchTask."
|
|
632
629
|
)),
|
|
633
630
|
default: 'prompt'
|
|
@@ -635,7 +632,7 @@ configurationRegistry.registerConfiguration({
|
|
|
635
632
|
'debug.showBreakpointsInOverviewRuler': {
|
|
636
633
|
type: 'boolean',
|
|
637
634
|
description: ( localize(
|
|
638
|
-
|
|
635
|
+
2687,
|
|
639
636
|
"Controls whether breakpoints should be shown in the overview ruler."
|
|
640
637
|
)),
|
|
641
638
|
default: false
|
|
@@ -643,45 +640,45 @@ configurationRegistry.registerConfiguration({
|
|
|
643
640
|
'debug.showInlineBreakpointCandidates': {
|
|
644
641
|
type: 'boolean',
|
|
645
642
|
description: ( localize(
|
|
646
|
-
|
|
643
|
+
2688,
|
|
647
644
|
"Controls whether inline breakpoints candidate decorations should be shown in the editor while debugging."
|
|
648
645
|
)),
|
|
649
646
|
default: true
|
|
650
647
|
},
|
|
651
648
|
'debug.saveBeforeStart': {
|
|
652
|
-
description: ( localize(
|
|
649
|
+
description: ( localize(2689, "Controls what editors to save before starting a debug session.")),
|
|
653
650
|
enum: ['allEditorsInActiveGroup', 'nonUntitledEditorsInActiveGroup', 'none'],
|
|
654
651
|
enumDescriptions: [
|
|
655
652
|
( localize(
|
|
656
|
-
|
|
653
|
+
2690,
|
|
657
654
|
"Save all editors in the active group before starting a debug session."
|
|
658
655
|
)),
|
|
659
656
|
( localize(
|
|
660
|
-
|
|
657
|
+
2691,
|
|
661
658
|
"Save all editors in the active group except untitled ones before starting a debug session."
|
|
662
659
|
)),
|
|
663
|
-
( localize(
|
|
660
|
+
( localize(2692, "Don't save any editors before starting a debug session.")),
|
|
664
661
|
],
|
|
665
662
|
default: 'allEditorsInActiveGroup',
|
|
666
|
-
scope:
|
|
663
|
+
scope: 5
|
|
667
664
|
},
|
|
668
665
|
'debug.confirmOnExit': {
|
|
669
666
|
description: ( localize(
|
|
670
|
-
|
|
667
|
+
2693,
|
|
671
668
|
"Controls whether to confirm when the window closes if there are active debug sessions."
|
|
672
669
|
)),
|
|
673
670
|
type: 'string',
|
|
674
671
|
enum: ['never', 'always'],
|
|
675
672
|
enumDescriptions: [
|
|
676
|
-
( localize(
|
|
677
|
-
( localize(
|
|
673
|
+
( localize(2694, "Never confirm.")),
|
|
674
|
+
( localize(2695, "Always confirm if there are debug sessions.")),
|
|
678
675
|
],
|
|
679
676
|
default: 'never'
|
|
680
677
|
},
|
|
681
678
|
'debug.disassemblyView.showSourceCode': {
|
|
682
679
|
type: 'boolean',
|
|
683
680
|
default: true,
|
|
684
|
-
description: ( localize(
|
|
681
|
+
description: ( localize(2696, "Show Source Code in Disassembly View."))
|
|
685
682
|
},
|
|
686
683
|
'debug.autoExpandLazyVariables': {
|
|
687
684
|
type: 'string',
|
|
@@ -689,26 +686,26 @@ configurationRegistry.registerConfiguration({
|
|
|
689
686
|
default: 'auto',
|
|
690
687
|
enumDescriptions: [
|
|
691
688
|
( localize(
|
|
692
|
-
|
|
689
|
+
2697,
|
|
693
690
|
"When in screen reader optimized mode, automatically expand lazy variables."
|
|
694
691
|
)),
|
|
695
|
-
( localize(
|
|
696
|
-
( localize(
|
|
692
|
+
( localize(2698, "Always automatically expand lazy variables.")),
|
|
693
|
+
( localize(2699, "Never automatically expand lazy variables."))
|
|
697
694
|
],
|
|
698
695
|
description: ( localize(
|
|
699
|
-
|
|
696
|
+
2700,
|
|
700
697
|
"Controls whether variables that are lazily resolved, such as getters, are automatically resolved and expanded by the debugger."
|
|
701
698
|
))
|
|
702
699
|
},
|
|
703
700
|
'debug.enableStatusBarColor': {
|
|
704
701
|
type: 'boolean',
|
|
705
|
-
description: ( localize(
|
|
702
|
+
description: ( localize(2701, "Color of the Status bar when debugger is active.")),
|
|
706
703
|
default: true
|
|
707
704
|
},
|
|
708
705
|
'debug.hideLauncherWhileDebugging': {
|
|
709
706
|
type: 'boolean',
|
|
710
707
|
markdownDescription: ( localize(
|
|
711
|
-
|
|
708
|
+
2702,
|
|
712
709
|
"Hide 'Start Debugging' control in title bar of 'Run and Debug' view while debugging is active. Only relevant when {0} is not `docked`.",
|
|
713
710
|
'`#debug.toolBarLocation#`'
|
|
714
711
|
)),
|
|
@@ -719,5 +716,5 @@ configurationRegistry.registerConfiguration({
|
|
|
719
716
|
AccessibleViewRegistry.register(( (new ReplAccessibleView())));
|
|
720
717
|
AccessibleViewRegistry.register(( (new ReplAccessibilityHelp())));
|
|
721
718
|
AccessibleViewRegistry.register(( (new RunAndDebugAccessibilityHelp())));
|
|
722
|
-
registerWorkbenchContribution2(ReplAccessibilityAnnouncer.ID, ReplAccessibilityAnnouncer,
|
|
723
|
-
registerWorkbenchContribution2(DebugWatchAccessibilityAnnouncer.ID, DebugWatchAccessibilityAnnouncer,
|
|
719
|
+
registerWorkbenchContribution2(ReplAccessibilityAnnouncer.ID, ReplAccessibilityAnnouncer, 3 );
|
|
720
|
+
registerWorkbenchContribution2(DebugWatchAccessibilityAnnouncer.ID, DebugWatchAccessibilityAnnouncer, 3 );
|