@codingame/monaco-vscode-debug-service-override 1.82.4 → 1.82.5-next.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/debug.d.ts +5 -0
- package/debug.js +24 -0
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +3 -0
- package/external/tslib/tslib.es6.js +11 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/override/vs/platform/dialogs/common/dialogs.js +8 -0
- package/package.json +2 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +44 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +200 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +785 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +399 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +1298 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +178 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +960 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +497 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +347 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +299 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +400 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +827 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +621 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +60 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +527 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +681 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +356 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +206 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +82 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +143 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +1174 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +1144 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +106 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +68 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +275 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +314 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +168 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +663 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +105 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +231 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +631 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +695 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +953 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +48 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +336 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +98 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +575 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +415 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +102 -0
- package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +21 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +17 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +100 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +59 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +1482 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +346 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +123 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +175 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +36 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +117 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +260 -0
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +27 -0
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +83 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +283 -0
- package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +305 -0
- package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +28 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +176 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +12 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
import { isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
2
|
+
import './media/debug.contribution.css.js';
|
|
3
|
+
import './media/debugHover.css.js';
|
|
4
|
+
import { registerEditorContribution } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
|
|
5
|
+
import * as nls from 'monaco-editor/esm/vs/nls.js';
|
|
6
|
+
import { MenuId, MenuRegistry } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
7
|
+
import { Extensions as Extensions$3 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
8
|
+
import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
9
|
+
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
10
|
+
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js';
|
|
11
|
+
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
12
|
+
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
13
|
+
import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
14
|
+
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
15
|
+
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
16
|
+
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/views';
|
|
17
|
+
import { BreakpointEditorContribution } from './breakpointEditorContribution.js';
|
|
18
|
+
import { BreakpointsView } from './breakpointsView.js';
|
|
19
|
+
import { CallStackEditorContribution } from './callStackEditorContribution.js';
|
|
20
|
+
import { CallStackView } from './callStackView.js';
|
|
21
|
+
import { registerColors } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugColors';
|
|
22
|
+
import { DEBUG_QUICK_ACCESS_PREFIX, SELECT_AND_START_ID, DEBUG_CONSOLE_QUICK_ACCESS_PREFIX, SELECT_DEBUG_CONSOLE_ID, TERMINATE_THREAD_ID, STEP_OVER_LABEL, STEP_OVER_ID, STEP_INTO_LABEL, STEP_INTO_ID, STEP_INTO_TARGET_LABEL, STEP_INTO_TARGET_ID, STEP_OUT_LABEL, STEP_OUT_ID, PAUSE_LABEL, PAUSE_ID, STOP_LABEL, STOP_ID, CONTINUE_LABEL, CONTINUE_ID, FOCUS_REPL_ID, JUMP_TO_CURSOR_ID, TOGGLE_INLINE_BREAKPOINT_ID, SELECT_AND_START_LABEL, CALLSTACK_TOP_LABEL, CALLSTACK_TOP_ID, CALLSTACK_BOTTOM_LABEL, CALLSTACK_BOTTOM_ID, CALLSTACK_UP_LABEL, CALLSTACK_UP_ID, CALLSTACK_DOWN_LABEL, CALLSTACK_DOWN_ID, RESTART_LABEL, RESTART_SESSION_ID, DISCONNECT_LABEL, DISCONNECT_ID, DISCONNECT_AND_SUSPEND_LABEL, DISCONNECT_AND_SUSPEND_ID, RESTART_FRAME_ID, COPY_STACK_TRACE_ID, EDIT_EXPRESSION_COMMAND_ID, SET_EXPRESSION_COMMAND_ID, REMOVE_EXPRESSION_COMMAND_ID, DEBUG_COMMAND_CATEGORY, NEXT_DEBUG_CONSOLE_LABEL, NEXT_DEBUG_CONSOLE_ID, PREV_DEBUG_CONSOLE_LABEL, PREV_DEBUG_CONSOLE_ID, OPEN_LOADED_SCRIPTS_LABEL, SHOW_LOADED_SCRIPTS_ID, SELECT_DEBUG_CONSOLE_LABEL, SELECT_DEBUG_SESSION_LABEL, SELECT_DEBUG_SESSION_ID } from './debugCommands.js';
|
|
23
|
+
import { DebugConsoleQuickAccess } from './debugConsoleQuickAccess.js';
|
|
24
|
+
import { RunToCursorAction, SelectionToReplAction, SelectionToWatchExpressionsAction } from './debugEditorActions.js';
|
|
25
|
+
import { DebugEditorContribution } from './debugEditorContribution.js';
|
|
26
|
+
import { debugRun, debugConsoleViewIcon, runViewIcon, variablesViewIcon, watchViewIcon, callStackViewIcon, breakpointsViewIcon, loadedScriptsViewIcon, debugInspectMemory, watchExpressionRemove } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
|
|
27
|
+
import { DebugProgressContribution } from './debugProgress.js';
|
|
28
|
+
import { StartDebugQuickAccessProvider } from './debugQuickAccess.js';
|
|
29
|
+
import { DebugStatusContribution } from './debugStatus.js';
|
|
30
|
+
import { DebugToolBar } from './debugToolBar.js';
|
|
31
|
+
import { DebugViewPaneContainer } from './debugViewlet.js';
|
|
32
|
+
import { DisassemblyViewContribution, DisassemblyView } from './disassemblyView.js';
|
|
33
|
+
import { LoadedScriptsView } from './loadedScriptsView.js';
|
|
34
|
+
import { Repl } from './repl.js';
|
|
35
|
+
import { StatusBarColorProvider } from './statusbarColorProvider.js';
|
|
36
|
+
import { VIEW_MEMORY_ID, SET_VARIABLE_ID, COPY_VALUE_ID, COPY_EVALUATE_PATH_ID, ADD_TO_WATCH_ID, BREAK_WHEN_VALUE_IS_READ_ID, BREAK_WHEN_VALUE_CHANGES_ID, BREAK_WHEN_VALUE_IS_ACCESSED_ID, VariablesView } from './variablesView.js';
|
|
37
|
+
import { WatchExpressionsView, ADD_WATCH_LABEL, ADD_WATCH_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID } from './watchExpressionsView.js';
|
|
38
|
+
import { BREAKPOINT_EDITOR_CONTRIBUTION_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_DEBUG_STATE, CONTEXT_IN_DEBUG_MODE, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_DEBUGGERS_AVAILABLE, getStateLabel, CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_RESTART_FRAME_SUPPORTED, CONTEXT_VARIABLE_IS_READONLY, CONTEXT_SET_VARIABLE_SUPPORTED, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED, CONTEXT_WATCH_ITEM_TYPE, 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, CONTEXT_JUMP_TO_CURSOR_SUPPORTED, CONTEXT_STACK_FRAME_SUPPORTS_RESTART, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
39
|
+
import { DebugContentProvider } from '../common/debugContentProvider.js';
|
|
40
|
+
import { DebugLifecycle } from '../common/debugLifecycle.js';
|
|
41
|
+
import { DisassemblyViewInput } from '../common/disassemblyViewInput.js';
|
|
42
|
+
import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
43
|
+
|
|
44
|
+
const debugCategory = ( nls.localize('debugCategory', "Debug"));
|
|
45
|
+
registerColors();
|
|
46
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugStatusContribution, 4 );
|
|
47
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugProgressContribution, 4 );
|
|
48
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugToolBar, 3 );
|
|
49
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugContentProvider, 4 );
|
|
50
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(StatusBarColorProvider, 4 );
|
|
51
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DisassemblyViewContribution, 4 );
|
|
52
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugLifecycle, 4 );
|
|
53
|
+
( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
|
|
54
|
+
ctor: StartDebugQuickAccessProvider,
|
|
55
|
+
prefix: DEBUG_QUICK_ACCESS_PREFIX,
|
|
56
|
+
contextKey: 'inLaunchConfigurationsPicker',
|
|
57
|
+
placeholder: ( nls.localize('startDebugPlaceholder', "Type the name of a launch configuration to run.")),
|
|
58
|
+
helpEntries: [{
|
|
59
|
+
description: ( nls.localize('startDebuggingHelp', "Start Debugging")),
|
|
60
|
+
commandId: SELECT_AND_START_ID,
|
|
61
|
+
commandCenterOrder: 50
|
|
62
|
+
}]
|
|
63
|
+
});
|
|
64
|
+
( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
|
|
65
|
+
ctor: DebugConsoleQuickAccess,
|
|
66
|
+
prefix: DEBUG_CONSOLE_QUICK_ACCESS_PREFIX,
|
|
67
|
+
contextKey: 'inDebugConsolePicker',
|
|
68
|
+
placeholder: ( nls.localize('tasksQuickAccessPlaceholder', "Type the name of a debug console to open.")),
|
|
69
|
+
helpEntries: [{ description: ( nls.localize('tasksQuickAccessHelp', "Show All Debug Consoles")), commandId: SELECT_DEBUG_CONSOLE_ID }]
|
|
70
|
+
});
|
|
71
|
+
registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, 1 );
|
|
72
|
+
registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, 1 );
|
|
73
|
+
registerEditorContribution(EDITOR_CONTRIBUTION_ID, DebugEditorContribution, 2 );
|
|
74
|
+
const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
|
|
75
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
76
|
+
when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, when)),
|
|
77
|
+
group: debugCategory,
|
|
78
|
+
command: {
|
|
79
|
+
id,
|
|
80
|
+
title,
|
|
81
|
+
category: DEBUG_COMMAND_CATEGORY,
|
|
82
|
+
precondition
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, { value: ( nls.localize('terminateThread', "Terminate Thread")), original: 'Terminate Thread' }, CONTEXT_IN_DEBUG_MODE);
|
|
87
|
+
registerDebugCommandPaletteItem(STEP_OVER_ID, STEP_OVER_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
88
|
+
registerDebugCommandPaletteItem(STEP_INTO_ID, STEP_INTO_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
89
|
+
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')))));
|
|
90
|
+
registerDebugCommandPaletteItem(STEP_OUT_ID, STEP_OUT_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
91
|
+
registerDebugCommandPaletteItem(PAUSE_ID, PAUSE_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('running')));
|
|
92
|
+
registerDebugCommandPaletteItem(STOP_ID, STOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.or(( CONTEXT_FOCUSED_SESSION_IS_ATTACH.toNegated()), CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)));
|
|
93
|
+
registerDebugCommandPaletteItem(CONTINUE_ID, CONTINUE_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
94
|
+
registerDebugCommandPaletteItem(FOCUS_REPL_ID, { value: ( nls.localize(
|
|
95
|
+
{ comment: ['Debug is a noun in this context, not a verb.'], key: 'debugFocusConsole' },
|
|
96
|
+
"Focus on Debug Console View"
|
|
97
|
+
)), original: 'Focus on Debug Console View' });
|
|
98
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, { value: ( nls.localize('jumpToCursor', "Jump to Cursor")), original: 'Jump to Cursor' }, CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
99
|
+
registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, { value: ( nls.localize('SetNextStatement', "Set Next Statement")), original: 'Set Next Statement' }, CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
|
|
100
|
+
registerDebugCommandPaletteItem(RunToCursorAction.ID, { value: RunToCursorAction.LABEL, original: 'Run to Cursor' }, CONTEXT_DEBUGGERS_AVAILABLE);
|
|
101
|
+
registerDebugCommandPaletteItem(SelectionToReplAction.ID, { value: SelectionToReplAction.LABEL, original: 'Evaluate in Debug Console' }, CONTEXT_IN_DEBUG_MODE);
|
|
102
|
+
registerDebugCommandPaletteItem(SelectionToWatchExpressionsAction.ID, { value: SelectionToWatchExpressionsAction.LABEL, original: 'Add to Watch' });
|
|
103
|
+
registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, { value: ( nls.localize('inlineBreakpoint', "Inline Breakpoint")), original: 'Inline Breakpoint' });
|
|
104
|
+
registerDebugCommandPaletteItem(SELECT_AND_START_ID, SELECT_AND_START_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 ))))));
|
|
105
|
+
registerDebugCommandPaletteItem(NEXT_DEBUG_CONSOLE_ID, NEXT_DEBUG_CONSOLE_LABEL);
|
|
106
|
+
registerDebugCommandPaletteItem(PREV_DEBUG_CONSOLE_ID, PREV_DEBUG_CONSOLE_LABEL);
|
|
107
|
+
registerDebugCommandPaletteItem(SHOW_LOADED_SCRIPTS_ID, OPEN_LOADED_SCRIPTS_LABEL, CONTEXT_IN_DEBUG_MODE);
|
|
108
|
+
registerDebugCommandPaletteItem(SELECT_DEBUG_CONSOLE_ID, SELECT_DEBUG_CONSOLE_LABEL);
|
|
109
|
+
registerDebugCommandPaletteItem(SELECT_DEBUG_SESSION_ID, SELECT_DEBUG_SESSION_LABEL);
|
|
110
|
+
registerDebugCommandPaletteItem(CALLSTACK_TOP_ID, CALLSTACK_TOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
111
|
+
registerDebugCommandPaletteItem(CALLSTACK_BOTTOM_ID, CALLSTACK_BOTTOM_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
112
|
+
registerDebugCommandPaletteItem(CALLSTACK_UP_ID, CALLSTACK_UP_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
113
|
+
registerDebugCommandPaletteItem(CALLSTACK_DOWN_ID, CALLSTACK_DOWN_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
114
|
+
const registerDebugViewMenuItem = (menuId, id, title, order, when, precondition, group = 'navigation', icon) => {
|
|
115
|
+
MenuRegistry.appendMenuItem(menuId, {
|
|
116
|
+
group,
|
|
117
|
+
when,
|
|
118
|
+
order,
|
|
119
|
+
icon,
|
|
120
|
+
command: {
|
|
121
|
+
id,
|
|
122
|
+
title,
|
|
123
|
+
icon,
|
|
124
|
+
precondition
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_SESSION_ID, RESTART_LABEL, 10, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('session')), undefined, '3_modification');
|
|
129
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, DISCONNECT_ID, DISCONNECT_LABEL, 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('session')), undefined, '3_modification');
|
|
130
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, DISCONNECT_AND_SUSPEND_ID, DISCONNECT_AND_SUSPEND_LABEL, 21, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('session')), CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)), undefined, '3_modification');
|
|
131
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STOP_ID, STOP_LABEL, 30, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('session')), undefined, '3_modification');
|
|
132
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, PAUSE_ID, PAUSE_LABEL, 10, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('running')))));
|
|
133
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, CONTINUE_ID, CONTINUE_LABEL, 10, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')))));
|
|
134
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OVER_ID, STEP_OVER_LABEL, 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
135
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_INTO_ID, STEP_INTO_LABEL, 30, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
136
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OUT_ID, STEP_OUT_LABEL, 40, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
137
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( nls.localize('terminateThread', "Terminate Thread")), 10, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), undefined, 'termination');
|
|
138
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( nls.localize('restartFrame', "Restart Frame")), 10, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')), CONTEXT_RESTART_FRAME_SUPPORTED)), CONTEXT_STACK_FRAME_SUPPORTS_RESTART);
|
|
139
|
+
registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( nls.localize('copyStackTrace', "Copy Call Stack")), 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')), undefined, '3_modification');
|
|
140
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( nls.localize('viewMemory', "View Binary Data")), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
|
|
141
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( nls.localize('setValue', "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');
|
|
142
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_VALUE_ID, ( nls.localize('copyValue', "Copy Value")), 10, undefined, undefined, '5_cutcopypaste');
|
|
143
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_EVALUATE_PATH_ID, ( nls.localize('copyAsExpression', "Copy as Expression")), 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
|
|
144
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, ADD_TO_WATCH_ID, ( nls.localize('addToWatchExpressions', "Add to Watch")), 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
|
|
145
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( nls.localize('breakWhenValueIsRead', "Break on Value Read")), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
|
|
146
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( nls.localize('breakWhenValueChanges', "Break on Value Change")), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
|
|
147
|
+
registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( nls.localize('breakWhenValueIsAccessed', "Break on Value Access")), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
|
|
148
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, ADD_WATCH_ID, ADD_WATCH_LABEL, 10, undefined, undefined, '3_modification');
|
|
149
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( nls.localize('editWatchExpression', "Edit Expression")), 20, ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), undefined, '3_modification');
|
|
150
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( nls.localize('setValue', "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');
|
|
151
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( nls.localize('copyValue', "Copy Value")), 40, ( ContextKeyExpr.or(( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable')))), CONTEXT_IN_DEBUG_MODE, '3_modification');
|
|
152
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( nls.localize('viewMemory', "View Binary Data")), 10, CONTEXT_CAN_VIEW_MEMORY, undefined, 'inline', debugInspectMemory);
|
|
153
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( nls.localize('removeWatchExpression', "Remove Expression")), 20, ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), undefined, 'inline', watchExpressionRemove);
|
|
154
|
+
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, 20, undefined, undefined, 'z_commands');
|
|
155
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: { value: ( nls.localize('run', "Run or Debug...")), original: 'Run or Debug...', }, icon: debugRun, group: 'navigation', order: -1 });
|
|
156
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
157
|
+
submenu: MenuId.MenubarDebugMenu,
|
|
158
|
+
title: {
|
|
159
|
+
value: 'Run',
|
|
160
|
+
original: 'Run',
|
|
161
|
+
mnemonicTitle: ( nls.localize({ key: 'mRun', comment: ['&& denotes a mnemonic'] }, "&&Run"))
|
|
162
|
+
},
|
|
163
|
+
order: 6
|
|
164
|
+
});
|
|
165
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
|
|
166
|
+
group: '1_breakpoints',
|
|
167
|
+
command: {
|
|
168
|
+
id: TOGGLE_INLINE_BREAKPOINT_ID,
|
|
169
|
+
title: ( nls.localize(
|
|
170
|
+
{ key: 'miInlineBreakpoint', comment: ['&& denotes a mnemonic'] },
|
|
171
|
+
"Inline Breakp&&oint"
|
|
172
|
+
))
|
|
173
|
+
},
|
|
174
|
+
order: 2,
|
|
175
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
176
|
+
});
|
|
177
|
+
const VIEW_CONTAINER = ( Registry.as(Extensions$2.ViewContainersRegistry)).registerViewContainer({
|
|
178
|
+
id: DEBUG_PANEL_ID,
|
|
179
|
+
title: ( nls.localize(
|
|
180
|
+
{ comment: ['Debug is a noun in this context, not a verb.'], key: 'debugPanel' },
|
|
181
|
+
"Debug Console"
|
|
182
|
+
)),
|
|
183
|
+
icon: debugConsoleViewIcon,
|
|
184
|
+
ctorDescriptor: ( new SyncDescriptor(
|
|
185
|
+
ViewPaneContainer,
|
|
186
|
+
[DEBUG_PANEL_ID, { mergeViewWithContainerWhenSingleView: true }]
|
|
187
|
+
)),
|
|
188
|
+
storageId: DEBUG_PANEL_ID,
|
|
189
|
+
hideIfEmpty: true,
|
|
190
|
+
order: 2,
|
|
191
|
+
}, 1 , { doNotRegisterOpenCommand: true });
|
|
192
|
+
( Registry.as(Extensions$2.ViewsRegistry)).registerViews([{
|
|
193
|
+
id: REPL_VIEW_ID,
|
|
194
|
+
name: ( nls.localize(
|
|
195
|
+
{ comment: ['Debug is a noun in this context, not a verb.'], key: 'debugPanel' },
|
|
196
|
+
"Debug Console"
|
|
197
|
+
)),
|
|
198
|
+
containerIcon: debugConsoleViewIcon,
|
|
199
|
+
canToggleVisibility: false,
|
|
200
|
+
canMoveView: true,
|
|
201
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE,
|
|
202
|
+
ctorDescriptor: ( new SyncDescriptor(Repl)),
|
|
203
|
+
openCommandActionDescriptor: {
|
|
204
|
+
id: 'workbench.debug.action.toggleRepl',
|
|
205
|
+
mnemonicTitle: ( nls.localize(
|
|
206
|
+
{ key: 'miToggleDebugConsole', comment: ['&& denotes a mnemonic'] },
|
|
207
|
+
"De&&bug Console"
|
|
208
|
+
)),
|
|
209
|
+
keybindings: { primary: 2048 | 1024 | 55 },
|
|
210
|
+
order: 2
|
|
211
|
+
}
|
|
212
|
+
}], VIEW_CONTAINER);
|
|
213
|
+
const viewContainer = ( Registry.as(Extensions$2.ViewContainersRegistry)).registerViewContainer({
|
|
214
|
+
id: VIEWLET_ID,
|
|
215
|
+
title: { value: ( nls.localize('run and debug', "Run and Debug")), original: 'Run and Debug' },
|
|
216
|
+
openCommandActionDescriptor: {
|
|
217
|
+
id: VIEWLET_ID,
|
|
218
|
+
mnemonicTitle: ( nls.localize({ key: 'miViewRun', comment: ['&& denotes a mnemonic'] }, "&&Run")),
|
|
219
|
+
keybindings: { primary: 2048 | 1024 | 34 },
|
|
220
|
+
order: 3
|
|
221
|
+
},
|
|
222
|
+
ctorDescriptor: ( new SyncDescriptor(DebugViewPaneContainer)),
|
|
223
|
+
icon: runViewIcon,
|
|
224
|
+
alwaysUseContainerInfo: true,
|
|
225
|
+
order: 3,
|
|
226
|
+
}, 0 );
|
|
227
|
+
const viewsRegistry = ( Registry.as(Extensions$2.ViewsRegistry));
|
|
228
|
+
viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( nls.localize('variables', "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);
|
|
229
|
+
viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( nls.localize('watch', "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);
|
|
230
|
+
viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( nls.localize('callStack', "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);
|
|
231
|
+
viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( nls.localize('breakpoints', "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);
|
|
232
|
+
viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( nls.localize('loadedScripts', "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);
|
|
233
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( nls.localize('disassembly', "Disassembly"))), [( new SyncDescriptor(DisassemblyViewInput))]);
|
|
234
|
+
const configurationRegistry = ( Registry.as(Extensions$3.Configuration));
|
|
235
|
+
configurationRegistry.registerConfiguration({
|
|
236
|
+
id: 'debug',
|
|
237
|
+
order: 20,
|
|
238
|
+
title: ( nls.localize('debugConfigurationTitle', "Debug")),
|
|
239
|
+
type: 'object',
|
|
240
|
+
properties: {
|
|
241
|
+
'debug.allowBreakpointsEverywhere': {
|
|
242
|
+
type: 'boolean',
|
|
243
|
+
description: ( nls.localize(
|
|
244
|
+
{ comment: ['This is the description for a setting'], key: 'allowBreakpointsEverywhere' },
|
|
245
|
+
"Allow setting breakpoints in any file."
|
|
246
|
+
)),
|
|
247
|
+
default: false
|
|
248
|
+
},
|
|
249
|
+
'debug.openExplorerOnEnd': {
|
|
250
|
+
type: 'boolean',
|
|
251
|
+
description: ( nls.localize(
|
|
252
|
+
{ comment: ['This is the description for a setting'], key: 'openExplorerOnEnd' },
|
|
253
|
+
"Automatically open the explorer view at the end of a debug session."
|
|
254
|
+
)),
|
|
255
|
+
default: false
|
|
256
|
+
},
|
|
257
|
+
'debug.inlineValues': {
|
|
258
|
+
type: 'string',
|
|
259
|
+
'enum': ['on', 'off', 'auto'],
|
|
260
|
+
description: ( nls.localize(
|
|
261
|
+
{ comment: ['This is the description for a setting'], key: 'inlineValues' },
|
|
262
|
+
"Show variable values inline in editor while debugging."
|
|
263
|
+
)),
|
|
264
|
+
'enumDescriptions': [
|
|
265
|
+
( nls.localize(
|
|
266
|
+
'inlineValues.on',
|
|
267
|
+
"Always show variable values inline in editor while debugging."
|
|
268
|
+
)),
|
|
269
|
+
( nls.localize(
|
|
270
|
+
'inlineValues.off',
|
|
271
|
+
"Never show variable values inline in editor while debugging."
|
|
272
|
+
)),
|
|
273
|
+
( nls.localize(
|
|
274
|
+
'inlineValues.focusNoScroll',
|
|
275
|
+
"Show variable values inline in editor while debugging when the language supports inline value locations."
|
|
276
|
+
)),
|
|
277
|
+
],
|
|
278
|
+
default: 'auto'
|
|
279
|
+
},
|
|
280
|
+
'debug.toolBarLocation': {
|
|
281
|
+
enum: ['floating', 'docked', 'hidden'],
|
|
282
|
+
markdownDescription: ( nls.localize(
|
|
283
|
+
{ comment: ['This is the description for a setting'], key: 'toolBarLocation' },
|
|
284
|
+
"Controls the location of the debug toolbar. Either `floating` in all views, `docked` in the debug view, or `hidden`."
|
|
285
|
+
)),
|
|
286
|
+
default: 'floating'
|
|
287
|
+
},
|
|
288
|
+
'debug.showInStatusBar': {
|
|
289
|
+
enum: ['never', 'always', 'onFirstSessionStart'],
|
|
290
|
+
enumDescriptions: [( nls.localize('never', "Never show debug in Status bar")), ( nls.localize('always', "Always show debug in Status bar")), ( nls.localize(
|
|
291
|
+
'onFirstSessionStart',
|
|
292
|
+
"Show debug in Status bar only after debug was started for the first time"
|
|
293
|
+
))],
|
|
294
|
+
description: ( nls.localize(
|
|
295
|
+
{ comment: ['This is the description for a setting'], key: 'showInStatusBar' },
|
|
296
|
+
"Controls when the debug Status bar should be visible."
|
|
297
|
+
)),
|
|
298
|
+
default: 'onFirstSessionStart'
|
|
299
|
+
},
|
|
300
|
+
'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
|
|
301
|
+
'debug.console.closeOnEnd': {
|
|
302
|
+
type: 'boolean',
|
|
303
|
+
description: ( nls.localize(
|
|
304
|
+
'debug.console.closeOnEnd',
|
|
305
|
+
"Controls if the Debug Console should be automatically closed when the debug session ends."
|
|
306
|
+
)),
|
|
307
|
+
default: false
|
|
308
|
+
},
|
|
309
|
+
'debug.terminal.clearBeforeReusing': {
|
|
310
|
+
type: 'boolean',
|
|
311
|
+
description: ( nls.localize(
|
|
312
|
+
{ comment: ['This is the description for a setting'], key: 'debug.terminal.clearBeforeReusing' },
|
|
313
|
+
"Before starting a new debug session in an integrated or external terminal, clear the terminal."
|
|
314
|
+
)),
|
|
315
|
+
default: false
|
|
316
|
+
},
|
|
317
|
+
'debug.openDebug': {
|
|
318
|
+
enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
|
|
319
|
+
default: 'openOnDebugBreak',
|
|
320
|
+
description: ( nls.localize('openDebug', "Controls when the debug view should open."))
|
|
321
|
+
},
|
|
322
|
+
'debug.showSubSessionsInToolBar': {
|
|
323
|
+
type: 'boolean',
|
|
324
|
+
description: ( nls.localize(
|
|
325
|
+
{ comment: ['This is the description for a setting'], key: 'showSubSessionsInToolBar' },
|
|
326
|
+
"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."
|
|
327
|
+
)),
|
|
328
|
+
default: false
|
|
329
|
+
},
|
|
330
|
+
'debug.console.fontSize': {
|
|
331
|
+
type: 'number',
|
|
332
|
+
description: ( nls.localize(
|
|
333
|
+
'debug.console.fontSize',
|
|
334
|
+
"Controls the font size in pixels in the Debug Console."
|
|
335
|
+
)),
|
|
336
|
+
default: isMacintosh ? 12 : 14,
|
|
337
|
+
},
|
|
338
|
+
'debug.console.fontFamily': {
|
|
339
|
+
type: 'string',
|
|
340
|
+
description: ( nls.localize(
|
|
341
|
+
'debug.console.fontFamily',
|
|
342
|
+
"Controls the font family in the Debug Console."
|
|
343
|
+
)),
|
|
344
|
+
default: 'default'
|
|
345
|
+
},
|
|
346
|
+
'debug.console.lineHeight': {
|
|
347
|
+
type: 'number',
|
|
348
|
+
description: ( nls.localize(
|
|
349
|
+
'debug.console.lineHeight',
|
|
350
|
+
"Controls the line height in pixels in the Debug Console. Use 0 to compute the line height from the font size."
|
|
351
|
+
)),
|
|
352
|
+
default: 0
|
|
353
|
+
},
|
|
354
|
+
'debug.console.wordWrap': {
|
|
355
|
+
type: 'boolean',
|
|
356
|
+
description: ( nls.localize(
|
|
357
|
+
'debug.console.wordWrap',
|
|
358
|
+
"Controls if the lines should wrap in the Debug Console."
|
|
359
|
+
)),
|
|
360
|
+
default: true
|
|
361
|
+
},
|
|
362
|
+
'debug.console.historySuggestions': {
|
|
363
|
+
type: 'boolean',
|
|
364
|
+
description: ( nls.localize(
|
|
365
|
+
'debug.console.historySuggestions',
|
|
366
|
+
"Controls if the Debug Console should suggest previously typed input."
|
|
367
|
+
)),
|
|
368
|
+
default: true
|
|
369
|
+
},
|
|
370
|
+
'debug.console.collapseIdenticalLines': {
|
|
371
|
+
type: 'boolean',
|
|
372
|
+
description: ( nls.localize(
|
|
373
|
+
'debug.console.collapseIdenticalLines',
|
|
374
|
+
"Controls if the Debug Console should collapse identical lines and show a number of occurrences with a badge."
|
|
375
|
+
)),
|
|
376
|
+
default: true
|
|
377
|
+
},
|
|
378
|
+
'debug.console.acceptSuggestionOnEnter': {
|
|
379
|
+
enum: ['off', 'on'],
|
|
380
|
+
description: ( nls.localize(
|
|
381
|
+
'debug.console.acceptSuggestionOnEnter',
|
|
382
|
+
"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."
|
|
383
|
+
)),
|
|
384
|
+
default: 'off'
|
|
385
|
+
},
|
|
386
|
+
'launch': {
|
|
387
|
+
type: 'object',
|
|
388
|
+
description: ( nls.localize(
|
|
389
|
+
{ comment: ['This is the description for a setting'], key: 'launch' },
|
|
390
|
+
"Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."
|
|
391
|
+
)),
|
|
392
|
+
default: { configurations: [], compounds: [] },
|
|
393
|
+
$ref: launchSchemaId
|
|
394
|
+
},
|
|
395
|
+
'debug.focusWindowOnBreak': {
|
|
396
|
+
type: 'boolean',
|
|
397
|
+
description: ( nls.localize(
|
|
398
|
+
'debug.focusWindowOnBreak',
|
|
399
|
+
"Controls whether the workbench window should be focused when the debugger breaks."
|
|
400
|
+
)),
|
|
401
|
+
default: true
|
|
402
|
+
},
|
|
403
|
+
'debug.focusEditorOnBreak': {
|
|
404
|
+
type: 'boolean',
|
|
405
|
+
description: ( nls.localize(
|
|
406
|
+
'debug.focusEditorOnBreak',
|
|
407
|
+
"Controls whether the editor should be focused when the debugger breaks."
|
|
408
|
+
)),
|
|
409
|
+
default: true
|
|
410
|
+
},
|
|
411
|
+
'debug.onTaskErrors': {
|
|
412
|
+
enum: ['debugAnyway', 'showErrors', 'prompt', 'abort'],
|
|
413
|
+
enumDescriptions: [( nls.localize('debugAnyway', "Ignore task errors and start debugging.")), ( nls.localize('showErrors', "Show the Problems view and do not start debugging.")), ( nls.localize('prompt', "Prompt user.")), ( nls.localize('cancel', "Cancel debugging."))],
|
|
414
|
+
description: ( nls.localize(
|
|
415
|
+
'debug.onTaskErrors',
|
|
416
|
+
"Controls what to do when errors are encountered after running a preLaunchTask."
|
|
417
|
+
)),
|
|
418
|
+
default: 'prompt'
|
|
419
|
+
},
|
|
420
|
+
'debug.showBreakpointsInOverviewRuler': {
|
|
421
|
+
type: 'boolean',
|
|
422
|
+
description: ( nls.localize(
|
|
423
|
+
{ comment: ['This is the description for a setting'], key: 'showBreakpointsInOverviewRuler' },
|
|
424
|
+
"Controls whether breakpoints should be shown in the overview ruler."
|
|
425
|
+
)),
|
|
426
|
+
default: false
|
|
427
|
+
},
|
|
428
|
+
'debug.showInlineBreakpointCandidates': {
|
|
429
|
+
type: 'boolean',
|
|
430
|
+
description: ( nls.localize(
|
|
431
|
+
{ comment: ['This is the description for a setting'], key: 'showInlineBreakpointCandidates' },
|
|
432
|
+
"Controls whether inline breakpoints candidate decorations should be shown in the editor while debugging."
|
|
433
|
+
)),
|
|
434
|
+
default: true
|
|
435
|
+
},
|
|
436
|
+
'debug.saveBeforeStart': {
|
|
437
|
+
description: ( nls.localize(
|
|
438
|
+
'debug.saveBeforeStart',
|
|
439
|
+
"Controls what editors to save before starting a debug session."
|
|
440
|
+
)),
|
|
441
|
+
enum: ['allEditorsInActiveGroup', 'nonUntitledEditorsInActiveGroup', 'none'],
|
|
442
|
+
enumDescriptions: [
|
|
443
|
+
( nls.localize(
|
|
444
|
+
'debug.saveBeforeStart.allEditorsInActiveGroup',
|
|
445
|
+
"Save all editors in the active group before starting a debug session."
|
|
446
|
+
)),
|
|
447
|
+
( nls.localize(
|
|
448
|
+
'debug.saveBeforeStart.nonUntitledEditorsInActiveGroup',
|
|
449
|
+
"Save all editors in the active group except untitled ones before starting a debug session."
|
|
450
|
+
)),
|
|
451
|
+
( nls.localize(
|
|
452
|
+
'debug.saveBeforeStart.none',
|
|
453
|
+
"Don't save any editors before starting a debug session."
|
|
454
|
+
)),
|
|
455
|
+
],
|
|
456
|
+
default: 'allEditorsInActiveGroup',
|
|
457
|
+
scope: 5
|
|
458
|
+
},
|
|
459
|
+
'debug.confirmOnExit': {
|
|
460
|
+
description: ( nls.localize(
|
|
461
|
+
'debug.confirmOnExit',
|
|
462
|
+
"Controls whether to confirm when the window closes if there are active debug sessions."
|
|
463
|
+
)),
|
|
464
|
+
type: 'string',
|
|
465
|
+
enum: ['never', 'always'],
|
|
466
|
+
enumDescriptions: [
|
|
467
|
+
( nls.localize('debug.confirmOnExit.never', "Never confirm.")),
|
|
468
|
+
( nls.localize(
|
|
469
|
+
'debug.confirmOnExit.always',
|
|
470
|
+
"Always confirm if there are debug sessions."
|
|
471
|
+
)),
|
|
472
|
+
],
|
|
473
|
+
default: 'never'
|
|
474
|
+
},
|
|
475
|
+
'debug.disassemblyView.showSourceCode': {
|
|
476
|
+
type: 'boolean',
|
|
477
|
+
default: true,
|
|
478
|
+
description: ( nls.localize(
|
|
479
|
+
'debug.disassemblyView.showSourceCode',
|
|
480
|
+
"Show Source Code in Disassembly View."
|
|
481
|
+
))
|
|
482
|
+
},
|
|
483
|
+
'debug.autoExpandLazyVariables': {
|
|
484
|
+
type: 'boolean',
|
|
485
|
+
default: false,
|
|
486
|
+
description: ( nls.localize(
|
|
487
|
+
'debug.autoExpandLazyVariables',
|
|
488
|
+
"Automatically show values for variables that are lazily resolved by the debugger, such as getters."
|
|
489
|
+
))
|
|
490
|
+
},
|
|
491
|
+
'debug.enableStatusBarColor': {
|
|
492
|
+
type: 'boolean',
|
|
493
|
+
description: ( nls.localize('debug.enableStatusBarColor', "Color status bar when debugger is active")),
|
|
494
|
+
default: true
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
});
|