@codingame/monaco-vscode-debug-service-override 13.1.6 → 14.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 +16 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +17 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +121 -114
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +42 -30
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +23 -23
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +43 -43
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +18 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +11 -9
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +41 -36
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.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.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +65 -41
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibilityHelp.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/replAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/runAndDebugAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +38 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +14 -11
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +7 -7
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +8 -5
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +46 -46
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.d.ts +0 -79
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -162
|
@@ -14,8 +14,8 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
14
14
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
15
15
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickAccess';
|
|
16
16
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
17
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
18
|
-
import { ViewPaneContainer } from '@codingame/monaco-vscode-
|
|
17
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common/vscode/vs/workbench/browser/editor';
|
|
18
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
19
19
|
import { Extensions, registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
20
20
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
21
21
|
import { Extensions as Extensions$2, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
@@ -25,7 +25,7 @@ import { CallStackEditorContribution } from '@codingame/monaco-vscode-0b087f42-a
|
|
|
25
25
|
import { CallStackView } from './callStackView.js';
|
|
26
26
|
import { ReplAccessibleView } from './replAccessibleView.js';
|
|
27
27
|
import { registerColors } from '@codingame/monaco-vscode-fc42f049-7883-579d-bb0b-2aa1010a19a8-common/vscode/vs/workbench/contrib/debug/browser/debugColors';
|
|
28
|
-
import { SELECT_AND_START_ID, DEBUG_QUICK_ACCESS_PREFIX, SELECT_DEBUG_CONSOLE_ID, DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, 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,
|
|
28
|
+
import { SELECT_AND_START_ID, DEBUG_QUICK_ACCESS_PREFIX, SELECT_DEBUG_CONSOLE_ID, DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, 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, 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 '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/debugCommands';
|
|
29
29
|
import { DebugConsoleQuickAccess } from './debugConsoleQuickAccess.js';
|
|
30
30
|
import { RunToCursorAction, SelectionToReplAction, SelectionToWatchExpressionsAction } from './debugEditorActions.js';
|
|
31
31
|
import { DebugEditorContribution } from './debugEditorContribution.js';
|
|
@@ -44,22 +44,24 @@ import { StatusBarColorProvider } from './statusbarColorProvider.js';
|
|
|
44
44
|
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';
|
|
45
45
|
import { ADD_WATCH_ID, ADD_WATCH_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, WatchExpressionsView } from './watchExpressionsView.js';
|
|
46
46
|
import { WelcomeView } from './welcomeView.js';
|
|
47
|
-
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, State, 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, CONTEXT_DEBUG_UX,
|
|
47
|
+
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, State, 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, WATCH_VIEW_ID, VARIABLES_VIEW_ID, DEBUG_PANEL_ID, REPL_VIEW_ID, VIEWLET_ID, CONTEXT_DEBUG_UX, 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 '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
48
48
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
49
49
|
import { DebugContentProvider } from '../common/debugContentProvider.js';
|
|
50
50
|
import { DebugLifecycle } from '../common/debugLifecycle.js';
|
|
51
51
|
import '../common/debugVisualizers.js';
|
|
52
52
|
import { DisassemblyViewInput } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
53
53
|
import { COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL } from '../../notebook/browser/contrib/notebookVariables/notebookVariableCommands.js';
|
|
54
|
-
import { launchSchemaId } from '@codingame/monaco-vscode-
|
|
54
|
+
import { launchSchemaId } from '@codingame/monaco-vscode-b1249c5b-1339-5278-b002-746f08105c6d-common/vscode/vs/workbench/services/configuration/common/configuration';
|
|
55
55
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
56
56
|
import './debugSettingMigration.js';
|
|
57
57
|
import { ReplAccessibilityHelp } from './replAccessibilityHelp.js';
|
|
58
58
|
import { ReplAccessibilityAnnouncer } from '../common/replAccessibilityAnnouncer.js';
|
|
59
59
|
import { RunAndDebugAccessibilityHelp } from './runAndDebugAccessibilityHelp.js';
|
|
60
60
|
import { DebugWatchAccessibilityAnnouncer } from '../common/debugAccessibilityAnnouncer.js';
|
|
61
|
+
import { KeybindingsRegistry, KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
62
|
+
import { FocusedViewContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
61
63
|
|
|
62
|
-
const debugCategory = ( localize(
|
|
64
|
+
const debugCategory = ( localize(5232, "Debug"));
|
|
63
65
|
registerColors();
|
|
64
66
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugStatusContribution, LifecyclePhase.Eventually);
|
|
65
67
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugProgressContribution, LifecyclePhase.Eventually);
|
|
@@ -75,9 +77,9 @@ if (isWeb) {
|
|
|
75
77
|
ctor: StartDebugQuickAccessProvider,
|
|
76
78
|
prefix: DEBUG_QUICK_ACCESS_PREFIX,
|
|
77
79
|
contextKey: 'inLaunchConfigurationsPicker',
|
|
78
|
-
placeholder: ( localize(
|
|
80
|
+
placeholder: ( localize(5233, "Type the name of a launch configuration to run.")),
|
|
79
81
|
helpEntries: [{
|
|
80
|
-
description: ( localize(
|
|
82
|
+
description: ( localize(5234, "Start Debugging")),
|
|
81
83
|
commandId: SELECT_AND_START_ID,
|
|
82
84
|
commandCenterOrder: 50
|
|
83
85
|
}]
|
|
@@ -86,8 +88,8 @@ if (isWeb) {
|
|
|
86
88
|
ctor: DebugConsoleQuickAccess,
|
|
87
89
|
prefix: DEBUG_CONSOLE_QUICK_ACCESS_PREFIX,
|
|
88
90
|
contextKey: 'inDebugConsolePicker',
|
|
89
|
-
placeholder: ( localize(
|
|
90
|
-
helpEntries: [{ description: ( localize(
|
|
91
|
+
placeholder: ( localize(5235, "Type the name of a debug console to open.")),
|
|
92
|
+
helpEntries: [{ description: ( localize(5236, "Show All Debug Consoles")), commandId: SELECT_DEBUG_CONSOLE_ID }]
|
|
91
93
|
});
|
|
92
94
|
registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, EditorContributionInstantiation.AfterFirstRender);
|
|
93
95
|
registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, EditorContributionInstantiation.AfterFirstRender);
|
|
@@ -105,7 +107,7 @@ const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
|
|
|
105
107
|
});
|
|
106
108
|
};
|
|
107
109
|
registerDebugCommandPaletteItem(RESTART_SESSION_ID, RESTART_LABEL);
|
|
108
|
-
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2(
|
|
110
|
+
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2(5237, "Terminate Thread")), CONTEXT_IN_DEBUG_MODE);
|
|
109
111
|
registerDebugCommandPaletteItem(STEP_OVER_ID, STEP_OVER_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
110
112
|
registerDebugCommandPaletteItem(STEP_INTO_ID, STEP_INTO_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
111
113
|
registerDebugCommandPaletteItem(STEP_INTO_TARGET_ID, STEP_INTO_TARGET_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.and(CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')))));
|
|
@@ -115,13 +117,12 @@ registerDebugCommandPaletteItem(DISCONNECT_ID, DISCONNECT_LABEL, CONTEXT_IN_DEBU
|
|
|
115
117
|
registerDebugCommandPaletteItem(DISCONNECT_AND_SUSPEND_ID, DISCONNECT_AND_SUSPEND_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.or(CONTEXT_FOCUSED_SESSION_IS_ATTACH, ( ContextKeyExpr.and(CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)))));
|
|
116
118
|
registerDebugCommandPaletteItem(STOP_ID, STOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.or(( CONTEXT_FOCUSED_SESSION_IS_ATTACH.toNegated()), CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)));
|
|
117
119
|
registerDebugCommandPaletteItem(CONTINUE_ID, CONTINUE_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
118
|
-
registerDebugCommandPaletteItem(
|
|
119
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(
|
|
120
|
-
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(5097, "Set Next Statement")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
120
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(5238, "Jump to Cursor")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
121
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2(5239, "Set Next Statement")), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
121
122
|
registerDebugCommandPaletteItem(RunToCursorAction.ID, RunToCursorAction.LABEL, CONTEXT_DEBUGGERS_AVAILABLE);
|
|
122
123
|
registerDebugCommandPaletteItem(SelectionToReplAction.ID, SelectionToReplAction.LABEL, CONTEXT_IN_DEBUG_MODE);
|
|
123
124
|
registerDebugCommandPaletteItem(SelectionToWatchExpressionsAction.ID, SelectionToWatchExpressionsAction.LABEL);
|
|
124
|
-
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2(
|
|
125
|
+
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2(5240, "Inline Breakpoint")));
|
|
125
126
|
registerDebugCommandPaletteItem(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Initializing))))));
|
|
126
127
|
registerDebugCommandPaletteItem(DEBUG_RUN_COMMAND_ID, DEBUG_RUN_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Initializing))))));
|
|
127
128
|
registerDebugCommandPaletteItem(SELECT_AND_START_ID, SELECT_AND_START_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Initializing))))));
|
|
@@ -157,32 +158,38 @@ registerDebugViewMenuItem(MenuId.DebugCallStackContext, CONTINUE_ID, CONTINUE_LA
|
|
|
157
158
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OVER_ID, STEP_OVER_LABEL, 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
158
159
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_INTO_ID, STEP_INTO_LABEL, 30, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
159
160
|
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OUT_ID, STEP_OUT_LABEL, 40, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
160
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localize(
|
|
161
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(
|
|
162
|
-
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localize(
|
|
163
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(
|
|
164
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(
|
|
161
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localize(5237, "Terminate Thread")), 10, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), undefined, 'termination');
|
|
162
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localize(5241, "Restart Frame")), 10, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')), CONTEXT_RESTART_FRAME_SUPPORTED)), CONTEXT_STACK_FRAME_SUPPORTS_RESTART);
|
|
163
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localize(5242, "Copy Call Stack")), 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')), undefined, '3_modification');
|
|
164
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localize(5243, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
165
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localize(5244, "Set Value")), 10, ( ContextKeyExpr.or(CONTEXT_SET_VARIABLE_SUPPORTED, ( ContextKeyExpr.and(CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED)))), ( CONTEXT_VARIABLE_IS_READONLY.toNegated()), '3_modification');
|
|
165
166
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
166
167
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
167
168
|
registerDebugViewMenuItem(MenuId.DebugVariablesContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
168
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(
|
|
169
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(
|
|
170
|
-
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(
|
|
171
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(
|
|
169
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(5245, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
170
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(5246, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
171
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(5247, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
172
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localize(5243, "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
172
173
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_VALUE_ID, COPY_VALUE_LABEL, 10, undefined, undefined, '5_cutcopypaste');
|
|
173
174
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_EVALUATE_PATH_ID, COPY_EVALUATE_PATH_LABEL, 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
174
175
|
registerDebugViewMenuItem(MenuId.DebugHoverContext, ADD_TO_WATCH_ID, ADD_TO_WATCH_LABEL, 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
175
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(
|
|
176
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(
|
|
177
|
-
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(
|
|
176
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localize(5245, "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
177
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localize(5246, "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
178
|
+
registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localize(5247, "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
178
179
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, ADD_WATCH_ID, ADD_WATCH_LABEL, 10, undefined, undefined, '3_modification');
|
|
179
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localize(
|
|
180
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(
|
|
181
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localize(
|
|
182
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localize(
|
|
183
|
-
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(
|
|
180
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localize(5248, "Edit Expression")), 20, ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), undefined, '3_modification');
|
|
181
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localize(5244, "Set Value")), 30, ( ContextKeyExpr.or(( ContextKeyExpr.and(( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), CONTEXT_SET_EXPRESSION_SUPPORTED)), ( ContextKeyExpr.and(( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable')), CONTEXT_SET_VARIABLE_SUPPORTED)))), ( CONTEXT_VARIABLE_IS_READONLY.toNegated()), '3_modification');
|
|
182
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localize(5249, "Copy Value")), 40, ( ContextKeyExpr.or(( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable')))), CONTEXT_IN_DEBUG_MODE, '3_modification');
|
|
183
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localize(5243, "View Binary Data")), 10, CONTEXT_CAN_VIEW_MEMORY, undefined, 'inline', debugInspectMemory);
|
|
184
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localize(5250, "Remove Expression")), 20, ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), undefined, 'inline', watchExpressionRemove);
|
|
184
185
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, 20, undefined, undefined, 'z_commands');
|
|
185
186
|
registerDebugViewMenuItem(MenuId.NotebookVariablesContext, COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, 20, CONTEXT_VARIABLE_VALUE);
|
|
187
|
+
KeybindingsRegistry.registerKeybindingRule({
|
|
188
|
+
id: COPY_VALUE_ID,
|
|
189
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
190
|
+
when: ( ContextKeyExpr.or(( FocusedViewContext.isEqualTo(WATCH_VIEW_ID)), ( FocusedViewContext.isEqualTo(VARIABLES_VIEW_ID)))),
|
|
191
|
+
primary: KeyMod.CtrlCmd | KeyCode.KeyC
|
|
192
|
+
});
|
|
186
193
|
if (isMacintosh) {
|
|
187
194
|
const registerTouchBarEntry = (id, title, order, when, iconUri) => {
|
|
188
195
|
MenuRegistry.appendMenuItem(MenuId.TouchBarContext, {
|
|
@@ -206,12 +213,12 @@ if (isMacintosh) {
|
|
|
206
213
|
registerTouchBarEntry(RESTART_SESSION_ID, RESTART_LABEL, 5, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/restart-tb.png')));
|
|
207
214
|
registerTouchBarEntry(STOP_ID, STOP_LABEL, 6, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stop-tb.png')));
|
|
208
215
|
}
|
|
209
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2(
|
|
216
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2(5251, "Run or Debug...")), icon: debugRun, group: 'navigation', order: -1 });
|
|
210
217
|
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
211
218
|
submenu: MenuId.MenubarDebugMenu,
|
|
212
219
|
title: {
|
|
213
|
-
...( localize2(
|
|
214
|
-
mnemonicTitle: ( localize(
|
|
220
|
+
...( localize2(5252, "Run")),
|
|
221
|
+
mnemonicTitle: ( localize(5253, "&&Run"))
|
|
215
222
|
},
|
|
216
223
|
order: 6
|
|
217
224
|
});
|
|
@@ -219,7 +226,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
219
226
|
group: '1_debug',
|
|
220
227
|
command: {
|
|
221
228
|
id: DEBUG_START_COMMAND_ID,
|
|
222
|
-
title: ( localize(
|
|
229
|
+
title: ( localize(5254, "&&Start Debugging"))
|
|
223
230
|
},
|
|
224
231
|
order: 1,
|
|
225
232
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -228,7 +235,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
228
235
|
group: '1_debug',
|
|
229
236
|
command: {
|
|
230
237
|
id: DEBUG_RUN_COMMAND_ID,
|
|
231
|
-
title: ( localize(
|
|
238
|
+
title: ( localize(5255, "Run &&Without Debugging"))
|
|
232
239
|
},
|
|
233
240
|
order: 2,
|
|
234
241
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -237,7 +244,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
237
244
|
group: '1_debug',
|
|
238
245
|
command: {
|
|
239
246
|
id: STOP_ID,
|
|
240
|
-
title: ( localize(
|
|
247
|
+
title: ( localize(5256, "&&Stop Debugging")),
|
|
241
248
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
242
249
|
},
|
|
243
250
|
order: 3,
|
|
@@ -247,7 +254,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
247
254
|
group: '1_debug',
|
|
248
255
|
command: {
|
|
249
256
|
id: RESTART_SESSION_ID,
|
|
250
|
-
title: ( localize(
|
|
257
|
+
title: ( localize(5257, "&&Restart Debugging")),
|
|
251
258
|
precondition: CONTEXT_IN_DEBUG_MODE
|
|
252
259
|
},
|
|
253
260
|
order: 4,
|
|
@@ -257,7 +264,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
257
264
|
group: '2_configuration',
|
|
258
265
|
command: {
|
|
259
266
|
id: ADD_CONFIGURATION_ID,
|
|
260
|
-
title: ( localize(
|
|
267
|
+
title: ( localize(5258, "A&&dd Configuration..."))
|
|
261
268
|
},
|
|
262
269
|
order: 2,
|
|
263
270
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -266,7 +273,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
266
273
|
group: '3_step',
|
|
267
274
|
command: {
|
|
268
275
|
id: STEP_OVER_ID,
|
|
269
|
-
title: ( localize(
|
|
276
|
+
title: ( localize(5259, "Step &&Over")),
|
|
270
277
|
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
271
278
|
},
|
|
272
279
|
order: 1,
|
|
@@ -276,7 +283,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
276
283
|
group: '3_step',
|
|
277
284
|
command: {
|
|
278
285
|
id: STEP_INTO_ID,
|
|
279
|
-
title: ( localize(
|
|
286
|
+
title: ( localize(5260, "Step &&Into")),
|
|
280
287
|
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
281
288
|
},
|
|
282
289
|
order: 2,
|
|
@@ -286,7 +293,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
286
293
|
group: '3_step',
|
|
287
294
|
command: {
|
|
288
295
|
id: STEP_OUT_ID,
|
|
289
|
-
title: ( localize(
|
|
296
|
+
title: ( localize(5261, "Step O&&ut")),
|
|
290
297
|
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
291
298
|
},
|
|
292
299
|
order: 3,
|
|
@@ -296,7 +303,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
296
303
|
group: '3_step',
|
|
297
304
|
command: {
|
|
298
305
|
id: CONTINUE_ID,
|
|
299
|
-
title: ( localize(
|
|
306
|
+
title: ( localize(5262, "&&Continue")),
|
|
300
307
|
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
301
308
|
},
|
|
302
309
|
order: 4,
|
|
@@ -306,14 +313,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
|
|
|
306
313
|
group: '1_breakpoints',
|
|
307
314
|
command: {
|
|
308
315
|
id: TOGGLE_INLINE_BREAKPOINT_ID,
|
|
309
|
-
title: ( localize(
|
|
316
|
+
title: ( localize(5263, "Inline Breakp&&oint"))
|
|
310
317
|
},
|
|
311
318
|
order: 2,
|
|
312
319
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
313
320
|
});
|
|
314
321
|
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
315
322
|
group: '4_new_breakpoint',
|
|
316
|
-
title: ( localize(
|
|
323
|
+
title: ( localize(5264, "&&New Breakpoint")),
|
|
317
324
|
submenu: MenuId.MenubarNewBreakpointMenu,
|
|
318
325
|
order: 2,
|
|
319
326
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
@@ -322,13 +329,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
|
322
329
|
group: 'z_install',
|
|
323
330
|
command: {
|
|
324
331
|
id: 'debug.installAdditionalDebuggers',
|
|
325
|
-
title: ( localize(
|
|
332
|
+
title: ( localize(5265, "&&Install Additional Debuggers..."))
|
|
326
333
|
},
|
|
327
334
|
order: 1
|
|
328
335
|
});
|
|
329
336
|
const VIEW_CONTAINER = ( Registry.as(Extensions$2.ViewContainersRegistry)).registerViewContainer({
|
|
330
337
|
id: DEBUG_PANEL_ID,
|
|
331
|
-
title: ( localize2(
|
|
338
|
+
title: ( localize2(5266, "Debug Console")),
|
|
332
339
|
icon: debugConsoleViewIcon,
|
|
333
340
|
ctorDescriptor: ( new SyncDescriptor(
|
|
334
341
|
ViewPaneContainer,
|
|
@@ -340,25 +347,25 @@ const VIEW_CONTAINER = ( Registry.as(Extensions$2.ViewContainersRegistry)).regis
|
|
|
340
347
|
}, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
|
|
341
348
|
( Registry.as(Extensions$2.ViewsRegistry)).registerViews([{
|
|
342
349
|
id: REPL_VIEW_ID,
|
|
343
|
-
name: ( localize2(
|
|
350
|
+
name: ( localize2(5266, "Debug Console")),
|
|
344
351
|
containerIcon: debugConsoleViewIcon,
|
|
345
|
-
canToggleVisibility:
|
|
352
|
+
canToggleVisibility: true,
|
|
346
353
|
canMoveView: true,
|
|
347
354
|
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
348
355
|
ctorDescriptor: ( new SyncDescriptor(Repl)),
|
|
349
356
|
openCommandActionDescriptor: {
|
|
350
357
|
id: 'workbench.debug.action.toggleRepl',
|
|
351
|
-
mnemonicTitle: ( localize(
|
|
358
|
+
mnemonicTitle: ( localize(5267, "De&&bug Console")),
|
|
352
359
|
keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyY },
|
|
353
360
|
order: 2
|
|
354
361
|
}
|
|
355
362
|
}], VIEW_CONTAINER);
|
|
356
363
|
const viewContainer = ( Registry.as(Extensions$2.ViewContainersRegistry)).registerViewContainer({
|
|
357
364
|
id: VIEWLET_ID,
|
|
358
|
-
title: ( localize2(
|
|
365
|
+
title: ( localize2(5268, "Run and Debug")),
|
|
359
366
|
openCommandActionDescriptor: {
|
|
360
367
|
id: VIEWLET_ID,
|
|
361
|
-
mnemonicTitle: ( localize(
|
|
368
|
+
mnemonicTitle: ( localize(5269, "&&Run")),
|
|
362
369
|
keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyD },
|
|
363
370
|
order: 3
|
|
364
371
|
},
|
|
@@ -368,49 +375,49 @@ const viewContainer = ( Registry.as(Extensions$2.ViewContainersRegistry)).regist
|
|
|
368
375
|
order: 3,
|
|
369
376
|
}, ViewContainerLocation.Sidebar);
|
|
370
377
|
const viewsRegistry = ( Registry.as(Extensions$2.ViewsRegistry));
|
|
371
|
-
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2(
|
|
372
|
-
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2(
|
|
373
|
-
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2(
|
|
374
|
-
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2(
|
|
378
|
+
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2(5270, "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);
|
|
379
|
+
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2(5271, "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);
|
|
380
|
+
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2(5272, "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);
|
|
381
|
+
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2(5273, "Breakpoints")), containerIcon: breakpointsViewIcon, ctorDescriptor: ( new SyncDescriptor(BreakpointsView)), order: 40, weight: 20, canToggleVisibility: true, canMoveView: true, focusCommand: { id: 'workbench.debug.action.focusBreakpointsView' }, when: ( ContextKeyExpr.or(CONTEXT_BREAKPOINTS_EXIST, ( CONTEXT_DEBUG_UX.isEqualTo('default')), CONTEXT_HAS_DEBUGGED)) }], viewContainer);
|
|
375
382
|
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);
|
|
376
|
-
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2(
|
|
377
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localize(
|
|
383
|
+
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2(5274, "Loaded Scripts")), containerIcon: loadedScriptsViewIcon, ctorDescriptor: ( new SyncDescriptor(LoadedScriptsView)), order: 35, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: true, when: ( ContextKeyExpr.and(CONTEXT_LOADED_SCRIPTS_SUPPORTED, ( CONTEXT_DEBUG_UX.isEqualTo('default')))) }], viewContainer);
|
|
384
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localize(5275, "Disassembly"))), [( new SyncDescriptor(DisassemblyViewInput))]);
|
|
378
385
|
const configurationRegistry = ( Registry.as(Extensions$3.Configuration));
|
|
379
386
|
configurationRegistry.registerConfiguration({
|
|
380
387
|
id: 'debug',
|
|
381
388
|
order: 20,
|
|
382
|
-
title: ( localize(
|
|
389
|
+
title: ( localize(5276, "Debug")),
|
|
383
390
|
type: 'object',
|
|
384
391
|
properties: {
|
|
385
392
|
'debug.showVariableTypes': {
|
|
386
393
|
type: 'boolean',
|
|
387
|
-
description: ( localize(
|
|
394
|
+
description: ( localize(5277, "Show variable type in variable pane during debug session")),
|
|
388
395
|
default: false
|
|
389
396
|
},
|
|
390
397
|
'debug.allowBreakpointsEverywhere': {
|
|
391
398
|
type: 'boolean',
|
|
392
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(5278, "Allow setting breakpoints in any file.")),
|
|
393
400
|
default: false
|
|
394
401
|
},
|
|
395
402
|
'debug.gutterMiddleClickAction': {
|
|
396
403
|
type: 'string',
|
|
397
404
|
enum: ['logpoint', 'conditionalBreakpoint', 'triggeredBreakpoint', 'none'],
|
|
398
405
|
description: ( localize(
|
|
399
|
-
|
|
406
|
+
5279,
|
|
400
407
|
'Controls the action to perform when clicking the editor gutter with the middle mouse button.'
|
|
401
408
|
)),
|
|
402
409
|
enumDescriptions: [
|
|
403
|
-
( localize(
|
|
404
|
-
( localize(
|
|
405
|
-
( localize(
|
|
406
|
-
( localize(
|
|
410
|
+
( localize(5280, "Add Logpoint.")),
|
|
411
|
+
( localize(5281, "Add Conditional Breakpoint.")),
|
|
412
|
+
( localize(5282, "Add Triggered Breakpoint.")),
|
|
413
|
+
( localize(5283, "Don't perform any action.")),
|
|
407
414
|
],
|
|
408
415
|
default: 'logpoint',
|
|
409
416
|
},
|
|
410
417
|
'debug.openExplorerOnEnd': {
|
|
411
418
|
type: 'boolean',
|
|
412
419
|
description: ( localize(
|
|
413
|
-
|
|
420
|
+
5284,
|
|
414
421
|
"Automatically open the explorer view at the end of a debug session."
|
|
415
422
|
)),
|
|
416
423
|
default: false
|
|
@@ -418,7 +425,7 @@ configurationRegistry.registerConfiguration({
|
|
|
418
425
|
'debug.closeReadonlyTabsOnEnd': {
|
|
419
426
|
type: 'boolean',
|
|
420
427
|
description: ( localize(
|
|
421
|
-
|
|
428
|
+
5285,
|
|
422
429
|
"At the end of a debug session, all the read-only tabs associated with that session will be closed"
|
|
423
430
|
)),
|
|
424
431
|
default: false
|
|
@@ -426,12 +433,12 @@ configurationRegistry.registerConfiguration({
|
|
|
426
433
|
'debug.inlineValues': {
|
|
427
434
|
type: 'string',
|
|
428
435
|
'enum': ['on', 'off', 'auto'],
|
|
429
|
-
description: ( localize(
|
|
436
|
+
description: ( localize(5286, "Show variable values inline in editor while debugging.")),
|
|
430
437
|
'enumDescriptions': [
|
|
431
|
-
( localize(
|
|
432
|
-
( localize(
|
|
438
|
+
( localize(5287, "Always show variable values inline in editor while debugging.")),
|
|
439
|
+
( localize(5288, "Never show variable values inline in editor while debugging.")),
|
|
433
440
|
( localize(
|
|
434
|
-
|
|
441
|
+
5289,
|
|
435
442
|
"Show variable values inline in editor while debugging when the language supports inline value locations."
|
|
436
443
|
)),
|
|
437
444
|
],
|
|
@@ -440,32 +447,32 @@ configurationRegistry.registerConfiguration({
|
|
|
440
447
|
'debug.toolBarLocation': {
|
|
441
448
|
enum: ['floating', 'docked', 'commandCenter', 'hidden'],
|
|
442
449
|
markdownDescription: ( localize(
|
|
443
|
-
|
|
450
|
+
5290,
|
|
444
451
|
"Controls the location of the debug toolbar. Either `floating` in all views, `docked` in the debug view, `commandCenter` (requires {0}), or `hidden`.",
|
|
445
452
|
'`#window.commandCenter#`'
|
|
446
453
|
)),
|
|
447
454
|
default: 'floating',
|
|
448
455
|
markdownEnumDescriptions: [
|
|
449
|
-
( localize(
|
|
450
|
-
( localize(
|
|
451
|
-
( localize(
|
|
452
|
-
( localize(
|
|
456
|
+
( localize(5291, "Show debug toolbar in all views.")),
|
|
457
|
+
( localize(5292, "Show debug toolbar only in debug views.")),
|
|
458
|
+
( localize(5293, "`(Experimental)` Show debug toolbar in the command center.")),
|
|
459
|
+
( localize(5294, "Do not show debug toolbar.")),
|
|
453
460
|
]
|
|
454
461
|
},
|
|
455
462
|
'debug.showInStatusBar': {
|
|
456
463
|
enum: ['never', 'always', 'onFirstSessionStart'],
|
|
457
|
-
enumDescriptions: [( localize(
|
|
458
|
-
|
|
464
|
+
enumDescriptions: [( localize(5295, "Never show debug in Status bar")), ( localize(5296, "Always show debug in Status bar")), ( localize(
|
|
465
|
+
5297,
|
|
459
466
|
"Show debug in Status bar only after debug was started for the first time"
|
|
460
467
|
))],
|
|
461
|
-
description: ( localize(
|
|
468
|
+
description: ( localize(5298, "Controls when the debug Status bar should be visible.")),
|
|
462
469
|
default: 'onFirstSessionStart'
|
|
463
470
|
},
|
|
464
471
|
'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
465
472
|
'debug.console.closeOnEnd': {
|
|
466
473
|
type: 'boolean',
|
|
467
474
|
description: ( localize(
|
|
468
|
-
|
|
475
|
+
5299,
|
|
469
476
|
"Controls if the Debug Console should be automatically closed when the debug session ends."
|
|
470
477
|
)),
|
|
471
478
|
default: false
|
|
@@ -473,7 +480,7 @@ configurationRegistry.registerConfiguration({
|
|
|
473
480
|
'debug.terminal.clearBeforeReusing': {
|
|
474
481
|
type: 'boolean',
|
|
475
482
|
description: ( localize(
|
|
476
|
-
|
|
483
|
+
5300,
|
|
477
484
|
"Before starting a new debug session in an integrated or external terminal, clear the terminal."
|
|
478
485
|
)),
|
|
479
486
|
default: false
|
|
@@ -481,43 +488,43 @@ configurationRegistry.registerConfiguration({
|
|
|
481
488
|
'debug.openDebug': {
|
|
482
489
|
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
|
|
483
490
|
default: 'openOnDebugBreak',
|
|
484
|
-
description: ( localize(
|
|
491
|
+
description: ( localize(5301, "Controls when the debug view should open."))
|
|
485
492
|
},
|
|
486
493
|
'debug.showSubSessionsInToolBar': {
|
|
487
494
|
type: 'boolean',
|
|
488
495
|
description: ( localize(
|
|
489
|
-
|
|
496
|
+
5302,
|
|
490
497
|
"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."
|
|
491
498
|
)),
|
|
492
499
|
default: false
|
|
493
500
|
},
|
|
494
501
|
'debug.console.fontSize': {
|
|
495
502
|
type: 'number',
|
|
496
|
-
description: ( localize(
|
|
503
|
+
description: ( localize(5303, "Controls the font size in pixels in the Debug Console.")),
|
|
497
504
|
default: isMacintosh ? 12 : 14,
|
|
498
505
|
},
|
|
499
506
|
'debug.console.fontFamily': {
|
|
500
507
|
type: 'string',
|
|
501
|
-
description: ( localize(
|
|
508
|
+
description: ( localize(5304, "Controls the font family in the Debug Console.")),
|
|
502
509
|
default: 'default'
|
|
503
510
|
},
|
|
504
511
|
'debug.console.lineHeight': {
|
|
505
512
|
type: 'number',
|
|
506
513
|
description: ( localize(
|
|
507
|
-
|
|
514
|
+
5305,
|
|
508
515
|
"Controls the line height in pixels in the Debug Console. Use 0 to compute the line height from the font size."
|
|
509
516
|
)),
|
|
510
517
|
default: 0
|
|
511
518
|
},
|
|
512
519
|
'debug.console.wordWrap': {
|
|
513
520
|
type: 'boolean',
|
|
514
|
-
description: ( localize(
|
|
521
|
+
description: ( localize(5306, "Controls if the lines should wrap in the Debug Console.")),
|
|
515
522
|
default: true
|
|
516
523
|
},
|
|
517
524
|
'debug.console.historySuggestions': {
|
|
518
525
|
type: 'boolean',
|
|
519
526
|
description: ( localize(
|
|
520
|
-
|
|
527
|
+
5307,
|
|
521
528
|
"Controls if the Debug Console should suggest previously typed input."
|
|
522
529
|
)),
|
|
523
530
|
default: true
|
|
@@ -525,7 +532,7 @@ configurationRegistry.registerConfiguration({
|
|
|
525
532
|
'debug.console.collapseIdenticalLines': {
|
|
526
533
|
type: 'boolean',
|
|
527
534
|
description: ( localize(
|
|
528
|
-
|
|
535
|
+
5308,
|
|
529
536
|
"Controls if the Debug Console should collapse identical lines and show a number of occurrences with a badge."
|
|
530
537
|
)),
|
|
531
538
|
default: true
|
|
@@ -533,7 +540,7 @@ configurationRegistry.registerConfiguration({
|
|
|
533
540
|
'debug.console.acceptSuggestionOnEnter': {
|
|
534
541
|
enum: ['off', 'on'],
|
|
535
542
|
description: ( localize(
|
|
536
|
-
|
|
543
|
+
5309,
|
|
537
544
|
"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."
|
|
538
545
|
)),
|
|
539
546
|
default: 'off'
|
|
@@ -541,7 +548,7 @@ configurationRegistry.registerConfiguration({
|
|
|
541
548
|
'launch': {
|
|
542
549
|
type: 'object',
|
|
543
550
|
description: ( localize(
|
|
544
|
-
|
|
551
|
+
5310,
|
|
545
552
|
"Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."
|
|
546
553
|
)),
|
|
547
554
|
default: { configurations: [], compounds: [] },
|
|
@@ -551,7 +558,7 @@ configurationRegistry.registerConfiguration({
|
|
|
551
558
|
'debug.focusWindowOnBreak': {
|
|
552
559
|
type: 'boolean',
|
|
553
560
|
description: ( localize(
|
|
554
|
-
|
|
561
|
+
5311,
|
|
555
562
|
"Controls whether the workbench window should be focused when the debugger breaks."
|
|
556
563
|
)),
|
|
557
564
|
default: true
|
|
@@ -559,16 +566,16 @@ configurationRegistry.registerConfiguration({
|
|
|
559
566
|
'debug.focusEditorOnBreak': {
|
|
560
567
|
type: 'boolean',
|
|
561
568
|
description: ( localize(
|
|
562
|
-
|
|
569
|
+
5312,
|
|
563
570
|
"Controls whether the editor should be focused when the debugger breaks."
|
|
564
571
|
)),
|
|
565
572
|
default: true
|
|
566
573
|
},
|
|
567
574
|
'debug.onTaskErrors': {
|
|
568
575
|
enum: ['debugAnyway', 'showErrors', 'prompt', 'abort'],
|
|
569
|
-
enumDescriptions: [( localize(
|
|
576
|
+
enumDescriptions: [( localize(5313, "Ignore task errors and start debugging.")), ( localize(5314, "Show the Problems view and do not start debugging.")), ( localize(5315, "Prompt user.")), ( localize(5316, "Cancel debugging."))],
|
|
570
577
|
description: ( localize(
|
|
571
|
-
|
|
578
|
+
5317,
|
|
572
579
|
"Controls what to do when errors are encountered after running a preLaunchTask."
|
|
573
580
|
)),
|
|
574
581
|
default: 'prompt'
|
|
@@ -576,7 +583,7 @@ configurationRegistry.registerConfiguration({
|
|
|
576
583
|
'debug.showBreakpointsInOverviewRuler': {
|
|
577
584
|
type: 'boolean',
|
|
578
585
|
description: ( localize(
|
|
579
|
-
|
|
586
|
+
5318,
|
|
580
587
|
"Controls whether breakpoints should be shown in the overview ruler."
|
|
581
588
|
)),
|
|
582
589
|
default: false
|
|
@@ -584,45 +591,45 @@ configurationRegistry.registerConfiguration({
|
|
|
584
591
|
'debug.showInlineBreakpointCandidates': {
|
|
585
592
|
type: 'boolean',
|
|
586
593
|
description: ( localize(
|
|
587
|
-
|
|
594
|
+
5319,
|
|
588
595
|
"Controls whether inline breakpoints candidate decorations should be shown in the editor while debugging."
|
|
589
596
|
)),
|
|
590
597
|
default: true
|
|
591
598
|
},
|
|
592
599
|
'debug.saveBeforeStart': {
|
|
593
|
-
description: ( localize(
|
|
600
|
+
description: ( localize(5320, "Controls what editors to save before starting a debug session.")),
|
|
594
601
|
enum: ['allEditorsInActiveGroup', 'nonUntitledEditorsInActiveGroup', 'none'],
|
|
595
602
|
enumDescriptions: [
|
|
596
603
|
( localize(
|
|
597
|
-
|
|
604
|
+
5321,
|
|
598
605
|
"Save all editors in the active group before starting a debug session."
|
|
599
606
|
)),
|
|
600
607
|
( localize(
|
|
601
|
-
|
|
608
|
+
5322,
|
|
602
609
|
"Save all editors in the active group except untitled ones before starting a debug session."
|
|
603
610
|
)),
|
|
604
|
-
( localize(
|
|
611
|
+
( localize(5323, "Don't save any editors before starting a debug session.")),
|
|
605
612
|
],
|
|
606
613
|
default: 'allEditorsInActiveGroup',
|
|
607
614
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE
|
|
608
615
|
},
|
|
609
616
|
'debug.confirmOnExit': {
|
|
610
617
|
description: ( localize(
|
|
611
|
-
|
|
618
|
+
5324,
|
|
612
619
|
"Controls whether to confirm when the window closes if there are active debug sessions."
|
|
613
620
|
)),
|
|
614
621
|
type: 'string',
|
|
615
622
|
enum: ['never', 'always'],
|
|
616
623
|
enumDescriptions: [
|
|
617
|
-
( localize(
|
|
618
|
-
( localize(
|
|
624
|
+
( localize(5325, "Never confirm.")),
|
|
625
|
+
( localize(5326, "Always confirm if there are debug sessions.")),
|
|
619
626
|
],
|
|
620
627
|
default: 'never'
|
|
621
628
|
},
|
|
622
629
|
'debug.disassemblyView.showSourceCode': {
|
|
623
630
|
type: 'boolean',
|
|
624
631
|
default: true,
|
|
625
|
-
description: ( localize(
|
|
632
|
+
description: ( localize(5327, "Show Source Code in Disassembly View."))
|
|
626
633
|
},
|
|
627
634
|
'debug.autoExpandLazyVariables': {
|
|
628
635
|
type: 'string',
|
|
@@ -630,26 +637,26 @@ configurationRegistry.registerConfiguration({
|
|
|
630
637
|
default: 'auto',
|
|
631
638
|
enumDescriptions: [
|
|
632
639
|
( localize(
|
|
633
|
-
|
|
640
|
+
5328,
|
|
634
641
|
"When in screen reader optimized mode, automatically expand lazy variables."
|
|
635
642
|
)),
|
|
636
|
-
( localize(
|
|
637
|
-
( localize(
|
|
643
|
+
( localize(5329, "Always automatically expand lazy variables.")),
|
|
644
|
+
( localize(5330, "Never automatically expand lazy variables."))
|
|
638
645
|
],
|
|
639
646
|
description: ( localize(
|
|
640
|
-
|
|
647
|
+
5331,
|
|
641
648
|
"Controls whether variables that are lazily resolved, such as getters, are automatically resolved and expanded by the debugger."
|
|
642
649
|
))
|
|
643
650
|
},
|
|
644
651
|
'debug.enableStatusBarColor': {
|
|
645
652
|
type: 'boolean',
|
|
646
|
-
description: ( localize(
|
|
653
|
+
description: ( localize(5332, "Color of the Status bar when debugger is active.")),
|
|
647
654
|
default: true
|
|
648
655
|
},
|
|
649
656
|
'debug.hideLauncherWhileDebugging': {
|
|
650
657
|
type: 'boolean',
|
|
651
658
|
markdownDescription: ( localize(
|
|
652
|
-
|
|
659
|
+
5333,
|
|
653
660
|
"Hide 'Start Debugging' control in title bar of 'Run and Debug' view while debugging is active. Only relevant when {0} is not `docked`.",
|
|
654
661
|
'`#debug.toolBarLocation#`'
|
|
655
662
|
)),
|
|
@@ -658,7 +665,7 @@ configurationRegistry.registerConfiguration({
|
|
|
658
665
|
'debug.hideSlowPreLaunchWarning': {
|
|
659
666
|
type: 'boolean',
|
|
660
667
|
markdownDescription: ( localize(
|
|
661
|
-
|
|
668
|
+
5334,
|
|
662
669
|
"Hide the warning shown when a `preLaunchTask` has been running for a while."
|
|
663
670
|
)),
|
|
664
671
|
default: false
|