@codingame/monaco-vscode-debug-service-override 4.0.0 → 4.1.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.
Files changed (60) hide show
  1. package/debug.js +4 -4
  2. package/package.json +2 -2
  3. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  4. package/external/tslib/tslib.es6.js +0 -11
  5. package/override/vs/platform/dialogs/common/dialogs.js +0 -10
  6. package/vscode/src/vs/platform/debug/common/extensionHostDebugIpc.js +0 -73
  7. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -1026
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -1004
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -347
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -337
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -432
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -1039
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -649
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -64
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -636
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -740
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -408
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -206
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
  20. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -169
  21. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1271
  22. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1330
  23. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -115
  24. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -77
  25. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -307
  26. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +0 -31
  27. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -387
  28. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -267
  29. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -817
  30. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -131
  31. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +0 -142
  32. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -262
  33. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -669
  34. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -6
  35. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -6
  36. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -6
  37. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -6
  38. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -6
  39. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -6
  40. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -709
  41. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -1002
  42. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -48
  43. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -352
  44. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -129
  45. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -734
  46. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -501
  47. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -162
  48. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -21
  49. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -17
  50. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -110
  51. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -62
  52. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -460
  53. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -166
  54. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -36
  55. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -150
  56. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -289
  57. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -87
  58. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +0 -64
  59. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -311
  60. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -29
@@ -1,1004 +0,0 @@
1
- import { FileAccess } from 'vscode/vscode/vs/base/common/network';
2
- import { isWeb, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
3
- import './media/debug.contribution.css.js';
4
- import './media/debugHover.css.js';
5
- import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
6
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
7
- import { MenuId, MenuRegistry } from 'vscode/vscode/vs/platform/actions/common/actions';
8
- import { Extensions as Extensions$3 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
9
- import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
10
- import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
11
- import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
12
- import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
13
- import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
14
- import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
15
- import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
16
- import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
17
- import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/views';
18
- import { BreakpointEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
19
- import { BreakpointsView } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
20
- import { CallStackEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
21
- import { CallStackView } from './callStackView.js';
22
- import { registerColors } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugColors';
23
- 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, DISCONNECT_LABEL, DISCONNECT_ID, DISCONNECT_AND_SUSPEND_LABEL, DISCONNECT_AND_SUSPEND_ID, STOP_LABEL, STOP_ID, CONTINUE_LABEL, CONTINUE_ID, FOCUS_REPL_ID, JUMP_TO_CURSOR_ID, TOGGLE_INLINE_BREAKPOINT_ID, DEBUG_START_LABEL, DEBUG_START_COMMAND_ID, DEBUG_RUN_LABEL, DEBUG_RUN_COMMAND_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, RESTART_FRAME_ID, COPY_STACK_TRACE_ID, EDIT_EXPRESSION_COMMAND_ID, SET_EXPRESSION_COMMAND_ID, REMOVE_EXPRESSION_COMMAND_ID, ADD_CONFIGURATION_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';
24
- import { DebugConsoleQuickAccess } from './debugConsoleQuickAccess.js';
25
- import { RunToCursorAction, SelectionToReplAction, SelectionToWatchExpressionsAction } from './debugEditorActions.js';
26
- import { DebugEditorContribution } from './debugEditorContribution.js';
27
- import { debugRun, debugConsoleViewIcon, runViewIcon, variablesViewIcon, watchViewIcon, callStackViewIcon, breakpointsViewIcon, loadedScriptsViewIcon, debugInspectMemory, watchExpressionRemove } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
28
- import { DebugProgressContribution } from './debugProgress.js';
29
- import { StartDebugQuickAccessProvider } from './debugQuickAccess.js';
30
- import './debugService.js';
31
- import { DebugStatusContribution } from './debugStatus.js';
32
- import { DebugTitleContribution } from './debugTitle.js';
33
- import { DebugToolBar } from './debugToolBar.js';
34
- import { DebugViewPaneContainer } from './debugViewlet.js';
35
- import { DisassemblyViewContribution, DisassemblyView } from './disassemblyView.js';
36
- import { LoadedScriptsView } from './loadedScriptsView.js';
37
- import { Repl } from './repl.js';
38
- import { StatusBarColorProvider } from './statusbarColorProvider.js';
39
- 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';
40
- import { WatchExpressionsView, ADD_WATCH_LABEL, ADD_WATCH_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID } from './watchExpressionsView.js';
41
- import { WelcomeView } from './welcomeView.js';
42
- import { BREAKPOINT_EDITOR_CONTRIBUTION_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_DEBUG_STATE, CONTEXT_IN_DEBUG_MODE, 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_DEBUGGERS_AVAILABLE, getStateLabel, CONTEXT_CALLSTACK_ITEM_TYPE, 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, CONTEXT_VARIABLE_VALUE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
43
- import { DebugContentProvider } from '../common/debugContentProvider.js';
44
- import { DebugLifecycle } from '../common/debugLifecycle.js';
45
- import 'vscode/vscode/vs/workbench/contrib/debug/common/debugVisualizers';
46
- import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
47
- import { COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, COPY_NOTEBOOK_VARIABLE_VALUE_ID } from '../../notebook/browser/contrib/notebookVariables/notebookVariableCommands.js';
48
- import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
49
-
50
- const debugCategory = ( localizeWithPath(
51
- 'vs/workbench/contrib/debug/browser/debug.contribution',
52
- 'debugCategory',
53
- "Debug"
54
- ));
55
- registerColors();
56
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugStatusContribution, 4 );
57
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugProgressContribution, 4 );
58
- if (isWeb) {
59
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugTitleContribution, 4 );
60
- }
61
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugToolBar, 3 );
62
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugContentProvider, 4 );
63
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(StatusBarColorProvider, 4 );
64
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DisassemblyViewContribution, 4 );
65
- ( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DebugLifecycle, 4 );
66
- ( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
67
- ctor: StartDebugQuickAccessProvider,
68
- prefix: DEBUG_QUICK_ACCESS_PREFIX,
69
- contextKey: 'inLaunchConfigurationsPicker',
70
- placeholder: ( localizeWithPath(
71
- 'vs/workbench/contrib/debug/browser/debug.contribution',
72
- 'startDebugPlaceholder',
73
- "Type the name of a launch configuration to run."
74
- )),
75
- helpEntries: [{
76
- description: ( localizeWithPath(
77
- 'vs/workbench/contrib/debug/browser/debug.contribution',
78
- 'startDebuggingHelp',
79
- "Start Debugging"
80
- )),
81
- commandId: SELECT_AND_START_ID,
82
- commandCenterOrder: 50
83
- }]
84
- });
85
- ( Registry.as(Extensions$1.Quickaccess)).registerQuickAccessProvider({
86
- ctor: DebugConsoleQuickAccess,
87
- prefix: DEBUG_CONSOLE_QUICK_ACCESS_PREFIX,
88
- contextKey: 'inDebugConsolePicker',
89
- placeholder: ( localizeWithPath(
90
- 'vs/workbench/contrib/debug/browser/debug.contribution',
91
- 'tasksQuickAccessPlaceholder',
92
- "Type the name of a debug console to open."
93
- )),
94
- helpEntries: [{ description: ( localizeWithPath(
95
- 'vs/workbench/contrib/debug/browser/debug.contribution',
96
- 'tasksQuickAccessHelp',
97
- "Show All Debug Consoles"
98
- )), commandId: SELECT_DEBUG_CONSOLE_ID }]
99
- });
100
- registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, 1 );
101
- registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, 1 );
102
- registerEditorContribution(EDITOR_CONTRIBUTION_ID, DebugEditorContribution, 2 );
103
- const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
104
- MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
105
- when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, when)),
106
- group: debugCategory,
107
- command: {
108
- id,
109
- title,
110
- category: DEBUG_COMMAND_CATEGORY,
111
- precondition
112
- }
113
- });
114
- };
115
- registerDebugCommandPaletteItem(RESTART_SESSION_ID, RESTART_LABEL);
116
- registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2WithPath(
117
- 'vs/workbench/contrib/debug/browser/debug.contribution',
118
- 'terminateThread',
119
- "Terminate Thread"
120
- )), CONTEXT_IN_DEBUG_MODE);
121
- registerDebugCommandPaletteItem(STEP_OVER_ID, STEP_OVER_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
122
- registerDebugCommandPaletteItem(STEP_INTO_ID, STEP_INTO_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
123
- 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')))));
124
- registerDebugCommandPaletteItem(STEP_OUT_ID, STEP_OUT_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
125
- registerDebugCommandPaletteItem(PAUSE_ID, PAUSE_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.and(( CONTEXT_DEBUG_STATE.isEqualTo('running')), ( CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG.toNegated()))));
126
- registerDebugCommandPaletteItem(DISCONNECT_ID, DISCONNECT_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.or(CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)));
127
- 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)))));
128
- registerDebugCommandPaletteItem(STOP_ID, STOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.or(( CONTEXT_FOCUSED_SESSION_IS_ATTACH.toNegated()), CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)));
129
- registerDebugCommandPaletteItem(CONTINUE_ID, CONTINUE_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
130
- registerDebugCommandPaletteItem(FOCUS_REPL_ID, ( localize2WithPath(
131
- 'vs/workbench/contrib/debug/browser/debug.contribution',
132
- { comment: ['Debug is a noun in this context, not a verb.'], key: 'debugFocusConsole' },
133
- "Focus on Debug Console View"
134
- )));
135
- registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2WithPath(
136
- 'vs/workbench/contrib/debug/browser/debug.contribution',
137
- 'jumpToCursor',
138
- "Jump to Cursor"
139
- )), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
140
- registerDebugCommandPaletteItem(JUMP_TO_CURSOR_ID, ( localize2WithPath(
141
- 'vs/workbench/contrib/debug/browser/debug.contribution',
142
- 'SetNextStatement',
143
- "Set Next Statement"
144
- )), CONTEXT_JUMP_TO_CURSOR_SUPPORTED);
145
- registerDebugCommandPaletteItem(RunToCursorAction.ID, RunToCursorAction.LABEL, CONTEXT_DEBUGGERS_AVAILABLE);
146
- registerDebugCommandPaletteItem(SelectionToReplAction.ID, SelectionToReplAction.LABEL, CONTEXT_IN_DEBUG_MODE);
147
- registerDebugCommandPaletteItem(SelectionToWatchExpressionsAction.ID, SelectionToWatchExpressionsAction.LABEL);
148
- registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2WithPath(
149
- 'vs/workbench/contrib/debug/browser/debug.contribution',
150
- 'inlineBreakpoint',
151
- "Inline Breakpoint"
152
- )));
153
- registerDebugCommandPaletteItem(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 ))))));
154
- registerDebugCommandPaletteItem(DEBUG_RUN_COMMAND_ID, DEBUG_RUN_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 ))))));
155
- registerDebugCommandPaletteItem(SELECT_AND_START_ID, SELECT_AND_START_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 ))))));
156
- registerDebugCommandPaletteItem(NEXT_DEBUG_CONSOLE_ID, NEXT_DEBUG_CONSOLE_LABEL);
157
- registerDebugCommandPaletteItem(PREV_DEBUG_CONSOLE_ID, PREV_DEBUG_CONSOLE_LABEL);
158
- registerDebugCommandPaletteItem(SHOW_LOADED_SCRIPTS_ID, OPEN_LOADED_SCRIPTS_LABEL, CONTEXT_IN_DEBUG_MODE);
159
- registerDebugCommandPaletteItem(SELECT_DEBUG_CONSOLE_ID, SELECT_DEBUG_CONSOLE_LABEL);
160
- registerDebugCommandPaletteItem(SELECT_DEBUG_SESSION_ID, SELECT_DEBUG_SESSION_LABEL);
161
- registerDebugCommandPaletteItem(CALLSTACK_TOP_ID, CALLSTACK_TOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
162
- registerDebugCommandPaletteItem(CALLSTACK_BOTTOM_ID, CALLSTACK_BOTTOM_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
163
- registerDebugCommandPaletteItem(CALLSTACK_UP_ID, CALLSTACK_UP_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
164
- registerDebugCommandPaletteItem(CALLSTACK_DOWN_ID, CALLSTACK_DOWN_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
165
- const registerDebugViewMenuItem = (menuId, id, title, order, when, precondition, group = 'navigation', icon) => {
166
- MenuRegistry.appendMenuItem(menuId, {
167
- group,
168
- when,
169
- order,
170
- icon,
171
- command: {
172
- id,
173
- title,
174
- icon,
175
- precondition
176
- }
177
- });
178
- };
179
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_SESSION_ID, RESTART_LABEL, 10, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('session')), undefined, '3_modification');
180
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, DISCONNECT_ID, DISCONNECT_LABEL, 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('session')), undefined, '3_modification');
181
- 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');
182
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, STOP_ID, STOP_LABEL, 30, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('session')), undefined, '3_modification');
183
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, PAUSE_ID, PAUSE_LABEL, 10, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( ContextKeyExpr.and(( CONTEXT_DEBUG_STATE.isEqualTo('running')), ( CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG.toNegated()))))));
184
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, CONTINUE_ID, CONTINUE_LABEL, 10, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')))));
185
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OVER_ID, STEP_OVER_LABEL, 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
186
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_INTO_ID, STEP_INTO_LABEL, 30, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
187
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, STEP_OUT_ID, STEP_OUT_LABEL, 40, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
188
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, TERMINATE_THREAD_ID, ( localizeWithPath(
189
- 'vs/workbench/contrib/debug/browser/debug.contribution',
190
- 'terminateThread',
191
- "Terminate Thread"
192
- )), 10, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('thread')), undefined, 'termination');
193
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, RESTART_FRAME_ID, ( localizeWithPath(
194
- 'vs/workbench/contrib/debug/browser/debug.contribution',
195
- 'restartFrame',
196
- "Restart Frame"
197
- )), 10, ( ContextKeyExpr.and(( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')), CONTEXT_RESTART_FRAME_SUPPORTED)), CONTEXT_STACK_FRAME_SUPPORTS_RESTART);
198
- registerDebugViewMenuItem(MenuId.DebugCallStackContext, COPY_STACK_TRACE_ID, ( localizeWithPath(
199
- 'vs/workbench/contrib/debug/browser/debug.contribution',
200
- 'copyStackTrace',
201
- "Copy Call Stack"
202
- )), 20, ( CONTEXT_CALLSTACK_ITEM_TYPE.isEqualTo('stackFrame')), undefined, '3_modification');
203
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, VIEW_MEMORY_ID, ( localizeWithPath(
204
- 'vs/workbench/contrib/debug/browser/debug.contribution',
205
- 'viewMemory',
206
- "View Binary Data"
207
- )), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
208
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, SET_VARIABLE_ID, ( localizeWithPath(
209
- 'vs/workbench/contrib/debug/browser/debug.contribution',
210
- 'setValue',
211
- "Set Value"
212
- )), 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');
213
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_VALUE_ID, ( localizeWithPath(
214
- 'vs/workbench/contrib/debug/browser/debug.contribution',
215
- 'copyValue',
216
- "Copy Value"
217
- )), 10, undefined, undefined, '5_cutcopypaste');
218
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, COPY_EVALUATE_PATH_ID, ( localizeWithPath(
219
- 'vs/workbench/contrib/debug/browser/debug.contribution',
220
- 'copyAsExpression',
221
- "Copy as Expression"
222
- )), 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
223
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, ADD_TO_WATCH_ID, ( localizeWithPath(
224
- 'vs/workbench/contrib/debug/browser/debug.contribution',
225
- 'addToWatchExpressions',
226
- "Add to Watch"
227
- )), 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
228
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localizeWithPath(
229
- 'vs/workbench/contrib/debug/browser/debug.contribution',
230
- 'breakWhenValueIsRead',
231
- "Break on Value Read"
232
- )), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
233
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localizeWithPath(
234
- 'vs/workbench/contrib/debug/browser/debug.contribution',
235
- 'breakWhenValueChanges',
236
- "Break on Value Change"
237
- )), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
238
- registerDebugViewMenuItem(MenuId.DebugVariablesContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localizeWithPath(
239
- 'vs/workbench/contrib/debug/browser/debug.contribution',
240
- 'breakWhenValueIsAccessed',
241
- "Break on Value Access"
242
- )), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
243
- registerDebugViewMenuItem(MenuId.DebugHoverContext, VIEW_MEMORY_ID, ( localizeWithPath(
244
- 'vs/workbench/contrib/debug/browser/debug.contribution',
245
- 'viewMemory',
246
- "View Binary Data"
247
- )), 15, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_IN_DEBUG_MODE, 'inline', debugInspectMemory);
248
- registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_VALUE_ID, ( localizeWithPath(
249
- 'vs/workbench/contrib/debug/browser/debug.contribution',
250
- 'copyValue',
251
- "Copy Value"
252
- )), 10, undefined, undefined, '5_cutcopypaste');
253
- registerDebugViewMenuItem(MenuId.DebugHoverContext, COPY_EVALUATE_PATH_ID, ( localizeWithPath(
254
- 'vs/workbench/contrib/debug/browser/debug.contribution',
255
- 'copyAsExpression',
256
- "Copy as Expression"
257
- )), 20, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, '5_cutcopypaste');
258
- registerDebugViewMenuItem(MenuId.DebugHoverContext, ADD_TO_WATCH_ID, ( localizeWithPath(
259
- 'vs/workbench/contrib/debug/browser/debug.contribution',
260
- 'addToWatchExpressions',
261
- "Add to Watch"
262
- )), 100, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, undefined, 'z_commands');
263
- registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_READ_ID, ( localizeWithPath(
264
- 'vs/workbench/contrib/debug/browser/debug.contribution',
265
- 'breakWhenValueIsRead',
266
- "Break on Value Read"
267
- )), 200, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, undefined, 'z_commands');
268
- registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_CHANGES_ID, ( localizeWithPath(
269
- 'vs/workbench/contrib/debug/browser/debug.contribution',
270
- 'breakWhenValueChanges',
271
- "Break on Value Change"
272
- )), 210, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, undefined, 'z_commands');
273
- registerDebugViewMenuItem(MenuId.DebugHoverContext, BREAK_WHEN_VALUE_IS_ACCESSED_ID, ( localizeWithPath(
274
- 'vs/workbench/contrib/debug/browser/debug.contribution',
275
- 'breakWhenValueIsAccessed',
276
- "Break on Value Access"
277
- )), 220, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, undefined, 'z_commands');
278
- registerDebugViewMenuItem(MenuId.DebugWatchContext, ADD_WATCH_ID, ADD_WATCH_LABEL, 10, undefined, undefined, '3_modification');
279
- registerDebugViewMenuItem(MenuId.DebugWatchContext, EDIT_EXPRESSION_COMMAND_ID, ( localizeWithPath(
280
- 'vs/workbench/contrib/debug/browser/debug.contribution',
281
- 'editWatchExpression',
282
- "Edit Expression"
283
- )), 20, ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), undefined, '3_modification');
284
- registerDebugViewMenuItem(MenuId.DebugWatchContext, SET_EXPRESSION_COMMAND_ID, ( localizeWithPath(
285
- 'vs/workbench/contrib/debug/browser/debug.contribution',
286
- 'setValue',
287
- "Set Value"
288
- )), 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');
289
- registerDebugViewMenuItem(MenuId.DebugWatchContext, COPY_VALUE_ID, ( localizeWithPath(
290
- 'vs/workbench/contrib/debug/browser/debug.contribution',
291
- 'copyValue',
292
- "Copy Value"
293
- )), 40, ( ContextKeyExpr.or(( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('variable')))), CONTEXT_IN_DEBUG_MODE, '3_modification');
294
- registerDebugViewMenuItem(MenuId.DebugWatchContext, VIEW_MEMORY_ID, ( localizeWithPath(
295
- 'vs/workbench/contrib/debug/browser/debug.contribution',
296
- 'viewMemory',
297
- "View Binary Data"
298
- )), 10, CONTEXT_CAN_VIEW_MEMORY, undefined, 'inline', debugInspectMemory);
299
- registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID, ( localizeWithPath(
300
- 'vs/workbench/contrib/debug/browser/debug.contribution',
301
- 'removeWatchExpression',
302
- "Remove Expression"
303
- )), 20, ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), undefined, 'inline', watchExpressionRemove);
304
- registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, 20, undefined, undefined, 'z_commands');
305
- registerDebugViewMenuItem(MenuId.NotebookVariablesContext, COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, 20, CONTEXT_VARIABLE_VALUE);
306
- if (isMacintosh) {
307
- const registerTouchBarEntry = (id, title, order, when, iconUri) => {
308
- MenuRegistry.appendMenuItem(MenuId.TouchBarContext, {
309
- command: {
310
- id,
311
- title,
312
- icon: { dark: iconUri }
313
- },
314
- when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, when)),
315
- group: '9_debug',
316
- order
317
- });
318
- };
319
- registerTouchBarEntry(DEBUG_RUN_COMMAND_ID, DEBUG_RUN_LABEL, 0, ( CONTEXT_IN_DEBUG_MODE.toNegated()), ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/continue-tb.png')));
320
- registerTouchBarEntry(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, 1, ( CONTEXT_IN_DEBUG_MODE.toNegated()), ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/run-with-debugging-tb.png')));
321
- registerTouchBarEntry(CONTINUE_ID, CONTINUE_LABEL, 0, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')), ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/continue-tb.png')));
322
- registerTouchBarEntry(PAUSE_ID, PAUSE_LABEL, 1, ( ContextKeyExpr.and(CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.and(( CONTEXT_DEBUG_STATE.isEqualTo('running')), ( CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG.toNegated()))))), ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/pause-tb.png')));
323
- registerTouchBarEntry(STEP_OVER_ID, STEP_OVER_LABEL, 2, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stepover-tb.png')));
324
- registerTouchBarEntry(STEP_INTO_ID, STEP_INTO_LABEL, 3, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stepinto-tb.png')));
325
- registerTouchBarEntry(STEP_OUT_ID, STEP_OUT_LABEL, 4, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stepout-tb.png')));
326
- registerTouchBarEntry(RESTART_SESSION_ID, RESTART_LABEL, 5, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/restart-tb.png')));
327
- registerTouchBarEntry(STOP_ID, STOP_LABEL, 6, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stop-tb.png')));
328
- }
329
- MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2WithPath(
330
- 'vs/workbench/contrib/debug/browser/debug.contribution',
331
- 'run',
332
- "Run or Debug..."
333
- )), icon: debugRun, group: 'navigation', order: -1 });
334
- MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
335
- submenu: MenuId.MenubarDebugMenu,
336
- title: {
337
- ...( localize2WithPath('vs/workbench/contrib/debug/browser/debug.contribution', 'runMenu', "Run")),
338
- mnemonicTitle: ( localizeWithPath(
339
- 'vs/workbench/contrib/debug/browser/debug.contribution',
340
- { key: 'mRun', comment: ['&& denotes a mnemonic'] },
341
- "&&Run"
342
- ))
343
- },
344
- order: 6
345
- });
346
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
347
- group: '1_debug',
348
- command: {
349
- id: DEBUG_START_COMMAND_ID,
350
- title: ( localizeWithPath(
351
- 'vs/workbench/contrib/debug/browser/debug.contribution',
352
- { key: 'miStartDebugging', comment: ['&& denotes a mnemonic'] },
353
- "&&Start Debugging"
354
- ))
355
- },
356
- order: 1,
357
- when: CONTEXT_DEBUGGERS_AVAILABLE
358
- });
359
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
360
- group: '1_debug',
361
- command: {
362
- id: DEBUG_RUN_COMMAND_ID,
363
- title: ( localizeWithPath(
364
- 'vs/workbench/contrib/debug/browser/debug.contribution',
365
- { key: 'miRun', comment: ['&& denotes a mnemonic'] },
366
- "Run &&Without Debugging"
367
- ))
368
- },
369
- order: 2,
370
- when: CONTEXT_DEBUGGERS_AVAILABLE
371
- });
372
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
373
- group: '1_debug',
374
- command: {
375
- id: STOP_ID,
376
- title: ( localizeWithPath(
377
- 'vs/workbench/contrib/debug/browser/debug.contribution',
378
- { key: 'miStopDebugging', comment: ['&& denotes a mnemonic'] },
379
- "&&Stop Debugging"
380
- )),
381
- precondition: CONTEXT_IN_DEBUG_MODE
382
- },
383
- order: 3,
384
- when: CONTEXT_DEBUGGERS_AVAILABLE
385
- });
386
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
387
- group: '1_debug',
388
- command: {
389
- id: RESTART_SESSION_ID,
390
- title: ( localizeWithPath(
391
- 'vs/workbench/contrib/debug/browser/debug.contribution',
392
- { key: 'miRestart Debugging', comment: ['&& denotes a mnemonic'] },
393
- "&&Restart Debugging"
394
- )),
395
- precondition: CONTEXT_IN_DEBUG_MODE
396
- },
397
- order: 4,
398
- when: CONTEXT_DEBUGGERS_AVAILABLE
399
- });
400
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
401
- group: '2_configuration',
402
- command: {
403
- id: ADD_CONFIGURATION_ID,
404
- title: ( localizeWithPath(
405
- 'vs/workbench/contrib/debug/browser/debug.contribution',
406
- { key: 'miAddConfiguration', comment: ['&& denotes a mnemonic'] },
407
- "A&&dd Configuration..."
408
- ))
409
- },
410
- order: 2,
411
- when: CONTEXT_DEBUGGERS_AVAILABLE
412
- });
413
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
414
- group: '3_step',
415
- command: {
416
- id: STEP_OVER_ID,
417
- title: ( localizeWithPath(
418
- 'vs/workbench/contrib/debug/browser/debug.contribution',
419
- { key: 'miStepOver', comment: ['&& denotes a mnemonic'] },
420
- "Step &&Over"
421
- )),
422
- precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
423
- },
424
- order: 1,
425
- when: CONTEXT_DEBUGGERS_AVAILABLE
426
- });
427
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
428
- group: '3_step',
429
- command: {
430
- id: STEP_INTO_ID,
431
- title: ( localizeWithPath(
432
- 'vs/workbench/contrib/debug/browser/debug.contribution',
433
- { key: 'miStepInto', comment: ['&& denotes a mnemonic'] },
434
- "Step &&Into"
435
- )),
436
- precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
437
- },
438
- order: 2,
439
- when: CONTEXT_DEBUGGERS_AVAILABLE
440
- });
441
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
442
- group: '3_step',
443
- command: {
444
- id: STEP_OUT_ID,
445
- title: ( localizeWithPath(
446
- 'vs/workbench/contrib/debug/browser/debug.contribution',
447
- { key: 'miStepOut', comment: ['&& denotes a mnemonic'] },
448
- "Step O&&ut"
449
- )),
450
- precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
451
- },
452
- order: 3,
453
- when: CONTEXT_DEBUGGERS_AVAILABLE
454
- });
455
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
456
- group: '3_step',
457
- command: {
458
- id: CONTINUE_ID,
459
- title: ( localizeWithPath(
460
- 'vs/workbench/contrib/debug/browser/debug.contribution',
461
- { key: 'miContinue', comment: ['&& denotes a mnemonic'] },
462
- "&&Continue"
463
- )),
464
- precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
465
- },
466
- order: 4,
467
- when: CONTEXT_DEBUGGERS_AVAILABLE
468
- });
469
- MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
470
- group: '1_breakpoints',
471
- command: {
472
- id: TOGGLE_INLINE_BREAKPOINT_ID,
473
- title: ( localizeWithPath(
474
- 'vs/workbench/contrib/debug/browser/debug.contribution',
475
- { key: 'miInlineBreakpoint', comment: ['&& denotes a mnemonic'] },
476
- "Inline Breakp&&oint"
477
- ))
478
- },
479
- order: 2,
480
- when: CONTEXT_DEBUGGERS_AVAILABLE
481
- });
482
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
483
- group: '4_new_breakpoint',
484
- title: ( localizeWithPath(
485
- 'vs/workbench/contrib/debug/browser/debug.contribution',
486
- { key: 'miNewBreakpoint', comment: ['&& denotes a mnemonic'] },
487
- "&&New Breakpoint"
488
- )),
489
- submenu: MenuId.MenubarNewBreakpointMenu,
490
- order: 2,
491
- when: CONTEXT_DEBUGGERS_AVAILABLE
492
- });
493
- MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
494
- group: 'z_install',
495
- command: {
496
- id: 'debug.installAdditionalDebuggers',
497
- title: ( localizeWithPath(
498
- 'vs/workbench/contrib/debug/browser/debug.contribution',
499
- { key: 'miInstallAdditionalDebuggers', comment: ['&& denotes a mnemonic'] },
500
- "&&Install Additional Debuggers..."
501
- ))
502
- },
503
- order: 1
504
- });
505
- const VIEW_CONTAINER = ( Registry.as(Extensions$2.ViewContainersRegistry)).registerViewContainer({
506
- id: DEBUG_PANEL_ID,
507
- title: ( localize2WithPath(
508
- 'vs/workbench/contrib/debug/browser/debug.contribution',
509
- { comment: ['Debug is a noun in this context, not a verb.'], key: 'debugPanel' },
510
- "Debug Console"
511
- )),
512
- icon: debugConsoleViewIcon,
513
- ctorDescriptor: ( new SyncDescriptor(
514
- ViewPaneContainer,
515
- [DEBUG_PANEL_ID, { mergeViewWithContainerWhenSingleView: true }]
516
- )),
517
- storageId: DEBUG_PANEL_ID,
518
- hideIfEmpty: true,
519
- order: 2,
520
- }, 1 , { doNotRegisterOpenCommand: true });
521
- ( Registry.as(Extensions$2.ViewsRegistry)).registerViews([{
522
- id: REPL_VIEW_ID,
523
- name: ( localize2WithPath(
524
- 'vs/workbench/contrib/debug/browser/debug.contribution',
525
- { comment: ['Debug is a noun in this context, not a verb.'], key: 'debugPanel' },
526
- "Debug Console"
527
- )),
528
- containerIcon: debugConsoleViewIcon,
529
- canToggleVisibility: false,
530
- canMoveView: true,
531
- when: CONTEXT_DEBUGGERS_AVAILABLE,
532
- ctorDescriptor: ( new SyncDescriptor(Repl)),
533
- openCommandActionDescriptor: {
534
- id: 'workbench.debug.action.toggleRepl',
535
- mnemonicTitle: ( localizeWithPath(
536
- 'vs/workbench/contrib/debug/browser/debug.contribution',
537
- { key: 'miToggleDebugConsole', comment: ['&& denotes a mnemonic'] },
538
- "De&&bug Console"
539
- )),
540
- keybindings: { primary: 2048 | 1024 | 55 },
541
- order: 2
542
- }
543
- }], VIEW_CONTAINER);
544
- const viewContainer = ( Registry.as(Extensions$2.ViewContainersRegistry)).registerViewContainer({
545
- id: VIEWLET_ID,
546
- title: ( localize2WithPath(
547
- 'vs/workbench/contrib/debug/browser/debug.contribution',
548
- 'run and debug',
549
- "Run and Debug"
550
- )),
551
- openCommandActionDescriptor: {
552
- id: VIEWLET_ID,
553
- mnemonicTitle: ( localizeWithPath(
554
- 'vs/workbench/contrib/debug/browser/debug.contribution',
555
- { key: 'miViewRun', comment: ['&& denotes a mnemonic'] },
556
- "&&Run"
557
- )),
558
- keybindings: { primary: 2048 | 1024 | 34 },
559
- order: 3
560
- },
561
- ctorDescriptor: ( new SyncDescriptor(DebugViewPaneContainer)),
562
- icon: runViewIcon,
563
- alwaysUseContainerInfo: true,
564
- order: 3,
565
- }, 0 );
566
- const viewsRegistry = ( Registry.as(Extensions$2.ViewsRegistry));
567
- viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2WithPath(
568
- 'vs/workbench/contrib/debug/browser/debug.contribution',
569
- 'variables',
570
- "Variables"
571
- )), 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);
572
- viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2WithPath('vs/workbench/contrib/debug/browser/debug.contribution', '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);
573
- viewsRegistry.registerViews([{ id: CALLSTACK_VIEW_ID, name: ( localize2WithPath(
574
- 'vs/workbench/contrib/debug/browser/debug.contribution',
575
- 'callStack',
576
- "Call Stack"
577
- )), 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);
578
- viewsRegistry.registerViews([{ id: BREAKPOINTS_VIEW_ID, name: ( localize2WithPath(
579
- 'vs/workbench/contrib/debug/browser/debug.contribution',
580
- 'breakpoints',
581
- "Breakpoints"
582
- )), 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);
583
- 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);
584
- viewsRegistry.registerViews([{ id: LOADED_SCRIPTS_VIEW_ID, name: ( localize2WithPath(
585
- 'vs/workbench/contrib/debug/browser/debug.contribution',
586
- 'loadedScripts',
587
- "Loaded Scripts"
588
- )), 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);
589
- ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(DisassemblyView, DISASSEMBLY_VIEW_ID, ( localizeWithPath(
590
- 'vs/workbench/contrib/debug/browser/debug.contribution',
591
- 'disassembly',
592
- "Disassembly"
593
- ))), [( new SyncDescriptor(DisassemblyViewInput))]);
594
- const configurationRegistry = ( Registry.as(Extensions$3.Configuration));
595
- configurationRegistry.registerConfiguration({
596
- id: 'debug',
597
- order: 20,
598
- title: ( localizeWithPath(
599
- 'vs/workbench/contrib/debug/browser/debug.contribution',
600
- 'debugConfigurationTitle',
601
- "Debug"
602
- )),
603
- type: 'object',
604
- properties: {
605
- 'debug.allowBreakpointsEverywhere': {
606
- type: 'boolean',
607
- description: ( localizeWithPath(
608
- 'vs/workbench/contrib/debug/browser/debug.contribution',
609
- { comment: ['This is the description for a setting'], key: 'allowBreakpointsEverywhere' },
610
- "Allow setting breakpoints in any file."
611
- )),
612
- default: false
613
- },
614
- 'debug.gutterMiddleClickAction': {
615
- type: 'string',
616
- enum: ['logpoint', 'conditionalBreakpoint', 'triggeredBreakpoint', 'none'],
617
- description: ( localizeWithPath(
618
- 'vs/workbench/contrib/debug/browser/debug.contribution',
619
- { comment: ['This is the description for a setting'], key: 'gutterMiddleClickAction' },
620
- 'Controls the action to perform when clicking the editor gutter with the middle mouse button.'
621
- )),
622
- enumDescriptions: [
623
- ( localizeWithPath(
624
- 'vs/workbench/contrib/debug/browser/debug.contribution',
625
- 'debug.gutterMiddleClickAction.logpoint',
626
- "Add Logpoint."
627
- )),
628
- ( localizeWithPath(
629
- 'vs/workbench/contrib/debug/browser/debug.contribution',
630
- 'debug.gutterMiddleClickAction.conditionalBreakpoint',
631
- "Add Conditional Breakpoint."
632
- )),
633
- ( localizeWithPath(
634
- 'vs/workbench/contrib/debug/browser/debug.contribution',
635
- 'debug.gutterMiddleClickAction.triggeredBreakpoint',
636
- "Add Triggered Breakpoint."
637
- )),
638
- ( localizeWithPath(
639
- 'vs/workbench/contrib/debug/browser/debug.contribution',
640
- 'debug.gutterMiddleClickAction.none',
641
- "Don't perform any action."
642
- )),
643
- ],
644
- default: 'logpoint',
645
- },
646
- 'debug.openExplorerOnEnd': {
647
- type: 'boolean',
648
- description: ( localizeWithPath(
649
- 'vs/workbench/contrib/debug/browser/debug.contribution',
650
- { comment: ['This is the description for a setting'], key: 'openExplorerOnEnd' },
651
- "Automatically open the explorer view at the end of a debug session."
652
- )),
653
- default: false
654
- },
655
- 'debug.closeReadonlyTabsOnEnd': {
656
- type: 'boolean',
657
- description: ( localizeWithPath(
658
- 'vs/workbench/contrib/debug/browser/debug.contribution',
659
- { comment: ['This is the description for a setting'], key: 'closeReadonlyTabsOnEnd' },
660
- "At the end of a debug session, all the read-only tabs associated with that session will be closed"
661
- )),
662
- default: false
663
- },
664
- 'debug.inlineValues': {
665
- type: 'string',
666
- 'enum': ['on', 'off', 'auto'],
667
- description: ( localizeWithPath(
668
- 'vs/workbench/contrib/debug/browser/debug.contribution',
669
- { comment: ['This is the description for a setting'], key: 'inlineValues' },
670
- "Show variable values inline in editor while debugging."
671
- )),
672
- 'enumDescriptions': [
673
- ( localizeWithPath(
674
- 'vs/workbench/contrib/debug/browser/debug.contribution',
675
- 'inlineValues.on',
676
- "Always show variable values inline in editor while debugging."
677
- )),
678
- ( localizeWithPath(
679
- 'vs/workbench/contrib/debug/browser/debug.contribution',
680
- 'inlineValues.off',
681
- "Never show variable values inline in editor while debugging."
682
- )),
683
- ( localizeWithPath(
684
- 'vs/workbench/contrib/debug/browser/debug.contribution',
685
- 'inlineValues.focusNoScroll',
686
- "Show variable values inline in editor while debugging when the language supports inline value locations."
687
- )),
688
- ],
689
- default: 'auto'
690
- },
691
- 'debug.toolBarLocation': {
692
- enum: ['floating', 'docked', 'commandCenter', 'hidden'],
693
- markdownDescription: ( localizeWithPath(
694
- 'vs/workbench/contrib/debug/browser/debug.contribution',
695
- { comment: ['This is the description for a setting'], key: 'toolBarLocation' },
696
- "Controls the location of the debug toolbar. Either `floating` in all views, `docked` in the debug view, `commandCenter` (requires `{0}`), or `hidden`.",
697
- '#window.commandCenter#'
698
- )),
699
- default: 'floating',
700
- markdownEnumDescriptions: [
701
- ( localizeWithPath(
702
- 'vs/workbench/contrib/debug/browser/debug.contribution',
703
- 'debugToolBar.floating',
704
- "Show debug toolbar in all views."
705
- )),
706
- ( localizeWithPath(
707
- 'vs/workbench/contrib/debug/browser/debug.contribution',
708
- 'debugToolBar.docked',
709
- "Show debug toolbar only in debug views."
710
- )),
711
- ( localizeWithPath(
712
- 'vs/workbench/contrib/debug/browser/debug.contribution',
713
- 'debugToolBar.commandCenter',
714
- "`(Experimental)` Show debug toolbar in the command center."
715
- )),
716
- ( localizeWithPath(
717
- 'vs/workbench/contrib/debug/browser/debug.contribution',
718
- 'debugToolBar.hidden',
719
- "Do not show debug toolbar."
720
- )),
721
- ]
722
- },
723
- 'debug.showInStatusBar': {
724
- enum: ['never', 'always', 'onFirstSessionStart'],
725
- enumDescriptions: [( localizeWithPath(
726
- 'vs/workbench/contrib/debug/browser/debug.contribution',
727
- 'never',
728
- "Never show debug in Status bar"
729
- )), ( localizeWithPath(
730
- 'vs/workbench/contrib/debug/browser/debug.contribution',
731
- 'always',
732
- "Always show debug in Status bar"
733
- )), ( localizeWithPath(
734
- 'vs/workbench/contrib/debug/browser/debug.contribution',
735
- 'onFirstSessionStart',
736
- "Show debug in Status bar only after debug was started for the first time"
737
- ))],
738
- description: ( localizeWithPath(
739
- 'vs/workbench/contrib/debug/browser/debug.contribution',
740
- { comment: ['This is the description for a setting'], key: 'showInStatusBar' },
741
- "Controls when the debug Status bar should be visible."
742
- )),
743
- default: 'onFirstSessionStart'
744
- },
745
- 'debug.internalConsoleOptions': INTERNAL_CONSOLE_OPTIONS_SCHEMA,
746
- 'debug.console.closeOnEnd': {
747
- type: 'boolean',
748
- description: ( localizeWithPath(
749
- 'vs/workbench/contrib/debug/browser/debug.contribution',
750
- 'debug.console.closeOnEnd',
751
- "Controls if the Debug Console should be automatically closed when the debug session ends."
752
- )),
753
- default: false
754
- },
755
- 'debug.terminal.clearBeforeReusing': {
756
- type: 'boolean',
757
- description: ( localizeWithPath(
758
- 'vs/workbench/contrib/debug/browser/debug.contribution',
759
- { comment: ['This is the description for a setting'], key: 'debug.terminal.clearBeforeReusing' },
760
- "Before starting a new debug session in an integrated or external terminal, clear the terminal."
761
- )),
762
- default: false
763
- },
764
- 'debug.openDebug': {
765
- enum: ['neverOpen', 'openOnSessionStart', 'openOnFirstSessionStart', 'openOnDebugBreak'],
766
- default: 'openOnDebugBreak',
767
- description: ( localizeWithPath(
768
- 'vs/workbench/contrib/debug/browser/debug.contribution',
769
- 'openDebug',
770
- "Controls when the debug view should open."
771
- ))
772
- },
773
- 'debug.showSubSessionsInToolBar': {
774
- type: 'boolean',
775
- description: ( localizeWithPath(
776
- 'vs/workbench/contrib/debug/browser/debug.contribution',
777
- { comment: ['This is the description for a setting'], key: 'showSubSessionsInToolBar' },
778
- "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."
779
- )),
780
- default: false
781
- },
782
- 'debug.console.fontSize': {
783
- type: 'number',
784
- description: ( localizeWithPath(
785
- 'vs/workbench/contrib/debug/browser/debug.contribution',
786
- 'debug.console.fontSize',
787
- "Controls the font size in pixels in the Debug Console."
788
- )),
789
- default: isMacintosh ? 12 : 14,
790
- },
791
- 'debug.console.fontFamily': {
792
- type: 'string',
793
- description: ( localizeWithPath(
794
- 'vs/workbench/contrib/debug/browser/debug.contribution',
795
- 'debug.console.fontFamily',
796
- "Controls the font family in the Debug Console."
797
- )),
798
- default: 'default'
799
- },
800
- 'debug.console.lineHeight': {
801
- type: 'number',
802
- description: ( localizeWithPath(
803
- 'vs/workbench/contrib/debug/browser/debug.contribution',
804
- 'debug.console.lineHeight',
805
- "Controls the line height in pixels in the Debug Console. Use 0 to compute the line height from the font size."
806
- )),
807
- default: 0
808
- },
809
- 'debug.console.wordWrap': {
810
- type: 'boolean',
811
- description: ( localizeWithPath(
812
- 'vs/workbench/contrib/debug/browser/debug.contribution',
813
- 'debug.console.wordWrap',
814
- "Controls if the lines should wrap in the Debug Console."
815
- )),
816
- default: true
817
- },
818
- 'debug.console.historySuggestions': {
819
- type: 'boolean',
820
- description: ( localizeWithPath(
821
- 'vs/workbench/contrib/debug/browser/debug.contribution',
822
- 'debug.console.historySuggestions',
823
- "Controls if the Debug Console should suggest previously typed input."
824
- )),
825
- default: true
826
- },
827
- 'debug.console.collapseIdenticalLines': {
828
- type: 'boolean',
829
- description: ( localizeWithPath(
830
- 'vs/workbench/contrib/debug/browser/debug.contribution',
831
- 'debug.console.collapseIdenticalLines',
832
- "Controls if the Debug Console should collapse identical lines and show a number of occurrences with a badge."
833
- )),
834
- default: true
835
- },
836
- 'debug.console.acceptSuggestionOnEnter': {
837
- enum: ['off', 'on'],
838
- description: ( localizeWithPath(
839
- 'vs/workbench/contrib/debug/browser/debug.contribution',
840
- 'debug.console.acceptSuggestionOnEnter',
841
- "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."
842
- )),
843
- default: 'off'
844
- },
845
- 'launch': {
846
- type: 'object',
847
- description: ( localizeWithPath(
848
- 'vs/workbench/contrib/debug/browser/debug.contribution',
849
- { comment: ['This is the description for a setting'], key: 'launch' },
850
- "Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces."
851
- )),
852
- default: { configurations: [], compounds: [] },
853
- $ref: launchSchemaId
854
- },
855
- 'debug.focusWindowOnBreak': {
856
- type: 'boolean',
857
- description: ( localizeWithPath(
858
- 'vs/workbench/contrib/debug/browser/debug.contribution',
859
- 'debug.focusWindowOnBreak',
860
- "Controls whether the workbench window should be focused when the debugger breaks."
861
- )),
862
- default: true
863
- },
864
- 'debug.focusEditorOnBreak': {
865
- type: 'boolean',
866
- description: ( localizeWithPath(
867
- 'vs/workbench/contrib/debug/browser/debug.contribution',
868
- 'debug.focusEditorOnBreak',
869
- "Controls whether the editor should be focused when the debugger breaks."
870
- )),
871
- default: true
872
- },
873
- 'debug.onTaskErrors': {
874
- enum: ['debugAnyway', 'showErrors', 'prompt', 'abort'],
875
- enumDescriptions: [( localizeWithPath(
876
- 'vs/workbench/contrib/debug/browser/debug.contribution',
877
- 'debugAnyway',
878
- "Ignore task errors and start debugging."
879
- )), ( localizeWithPath(
880
- 'vs/workbench/contrib/debug/browser/debug.contribution',
881
- 'showErrors',
882
- "Show the Problems view and do not start debugging."
883
- )), ( localizeWithPath(
884
- 'vs/workbench/contrib/debug/browser/debug.contribution',
885
- 'prompt',
886
- "Prompt user."
887
- )), ( localizeWithPath(
888
- 'vs/workbench/contrib/debug/browser/debug.contribution',
889
- 'cancel',
890
- "Cancel debugging."
891
- ))],
892
- description: ( localizeWithPath(
893
- 'vs/workbench/contrib/debug/browser/debug.contribution',
894
- 'debug.onTaskErrors',
895
- "Controls what to do when errors are encountered after running a preLaunchTask."
896
- )),
897
- default: 'prompt'
898
- },
899
- 'debug.showBreakpointsInOverviewRuler': {
900
- type: 'boolean',
901
- description: ( localizeWithPath(
902
- 'vs/workbench/contrib/debug/browser/debug.contribution',
903
- { comment: ['This is the description for a setting'], key: 'showBreakpointsInOverviewRuler' },
904
- "Controls whether breakpoints should be shown in the overview ruler."
905
- )),
906
- default: false
907
- },
908
- 'debug.showInlineBreakpointCandidates': {
909
- type: 'boolean',
910
- description: ( localizeWithPath(
911
- 'vs/workbench/contrib/debug/browser/debug.contribution',
912
- { comment: ['This is the description for a setting'], key: 'showInlineBreakpointCandidates' },
913
- "Controls whether inline breakpoints candidate decorations should be shown in the editor while debugging."
914
- )),
915
- default: true
916
- },
917
- 'debug.saveBeforeStart': {
918
- description: ( localizeWithPath(
919
- 'vs/workbench/contrib/debug/browser/debug.contribution',
920
- 'debug.saveBeforeStart',
921
- "Controls what editors to save before starting a debug session."
922
- )),
923
- enum: ['allEditorsInActiveGroup', 'nonUntitledEditorsInActiveGroup', 'none'],
924
- enumDescriptions: [
925
- ( localizeWithPath(
926
- 'vs/workbench/contrib/debug/browser/debug.contribution',
927
- 'debug.saveBeforeStart.allEditorsInActiveGroup',
928
- "Save all editors in the active group before starting a debug session."
929
- )),
930
- ( localizeWithPath(
931
- 'vs/workbench/contrib/debug/browser/debug.contribution',
932
- 'debug.saveBeforeStart.nonUntitledEditorsInActiveGroup',
933
- "Save all editors in the active group except untitled ones before starting a debug session."
934
- )),
935
- ( localizeWithPath(
936
- 'vs/workbench/contrib/debug/browser/debug.contribution',
937
- 'debug.saveBeforeStart.none',
938
- "Don't save any editors before starting a debug session."
939
- )),
940
- ],
941
- default: 'allEditorsInActiveGroup',
942
- scope: 5
943
- },
944
- 'debug.confirmOnExit': {
945
- description: ( localizeWithPath(
946
- 'vs/workbench/contrib/debug/browser/debug.contribution',
947
- 'debug.confirmOnExit',
948
- "Controls whether to confirm when the window closes if there are active debug sessions."
949
- )),
950
- type: 'string',
951
- enum: ['never', 'always'],
952
- enumDescriptions: [
953
- ( localizeWithPath(
954
- 'vs/workbench/contrib/debug/browser/debug.contribution',
955
- 'debug.confirmOnExit.never',
956
- "Never confirm."
957
- )),
958
- ( localizeWithPath(
959
- 'vs/workbench/contrib/debug/browser/debug.contribution',
960
- 'debug.confirmOnExit.always',
961
- "Always confirm if there are debug sessions."
962
- )),
963
- ],
964
- default: 'never'
965
- },
966
- 'debug.disassemblyView.showSourceCode': {
967
- type: 'boolean',
968
- default: true,
969
- description: ( localizeWithPath(
970
- 'vs/workbench/contrib/debug/browser/debug.contribution',
971
- 'debug.disassemblyView.showSourceCode',
972
- "Show Source Code in Disassembly View."
973
- ))
974
- },
975
- 'debug.autoExpandLazyVariables': {
976
- type: 'boolean',
977
- default: false,
978
- description: ( localizeWithPath(
979
- 'vs/workbench/contrib/debug/browser/debug.contribution',
980
- 'debug.autoExpandLazyVariables',
981
- "Automatically show values for variables that are lazily resolved by the debugger, such as getters."
982
- ))
983
- },
984
- 'debug.enableStatusBarColor': {
985
- type: 'boolean',
986
- description: ( localizeWithPath(
987
- 'vs/workbench/contrib/debug/browser/debug.contribution',
988
- 'debug.enableStatusBarColor',
989
- "Color of the Status bar when debugger is active."
990
- )),
991
- default: true
992
- },
993
- 'debug.hideLauncherWhileDebugging': {
994
- type: 'boolean',
995
- markdownDescription: ( localizeWithPath(
996
- 'vs/workbench/contrib/debug/browser/debug.contribution',
997
- { comment: ['This is the description for a setting'], key: 'debug.hideLauncherWhileDebugging' },
998
- "Hide 'Start Debugging' control in title bar of 'Run and Debug' view while debugging is active. Only relevant when `{0}` is not `docked`.",
999
- '#debug.toolBarLocation#'
1000
- )),
1001
- default: false
1002
- }
1003
- }
1004
- });