@codingame/monaco-vscode-debug-service-override 2.2.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/continue-tb.png +0 -0
- package/assets/pause-tb.png +0 -0
- package/assets/restart-tb.png +0 -0
- package/assets/run-with-debugging-tb.png +0 -0
- package/assets/stepinto-tb.png +0 -0
- package/assets/stepout-tb.png +0 -0
- package/assets/stepover-tb.png +0 -0
- package/assets/stop-tb.png +0 -0
- package/debug.js +1 -0
- package/package.json +2 -2
- package/tools/debugAssets.js +4 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +180 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +112 -50
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +7 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +14 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +2 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +8 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +5 -6
- package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +14 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +19 -7
- package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +18 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +33 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/media/all.png.js +12 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +130 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +28 -20
- package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +3 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +48 -4
- package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +11 -24
- package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableCommands.js +64 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/debug.js
CHANGED
|
@@ -8,6 +8,7 @@ import { IConfigurationResolverService } from 'vscode/vscode/vs/workbench/servic
|
|
|
8
8
|
import { IExtensionHostDebugService } from 'vscode/vscode/vs/platform/debug/common/extensionHostDebug';
|
|
9
9
|
import { BrowserExtensionHostDebugService } from './vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js';
|
|
10
10
|
import { IDebugVisualizerService, DebugVisualizerService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugVisualizers';
|
|
11
|
+
import './tools/debugAssets.js';
|
|
11
12
|
import './vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js';
|
|
12
13
|
|
|
13
14
|
const original = DebugService.prototype['showError'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-debug-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@3.0.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -448,10 +448,10 @@ let SessionsRenderer = class SessionsRenderer {
|
|
|
448
448
|
const templateDisposable = ( new DisposableStore());
|
|
449
449
|
const stopActionViewItemDisposables = templateDisposable.add(( new DisposableStore()));
|
|
450
450
|
const actionBar = templateDisposable.add(( new ActionBar(session, {
|
|
451
|
-
actionViewItemProvider: action => {
|
|
451
|
+
actionViewItemProvider: (action, options) => {
|
|
452
452
|
if ((action.id === STOP_ID || action.id === DISCONNECT_ID) && action instanceof MenuItemAction) {
|
|
453
453
|
stopActionViewItemDisposables.clear();
|
|
454
|
-
const item = this.instantiationService.invokeFunction(accessor => createDisconnectMenuItemAction(action, stopActionViewItemDisposables, accessor));
|
|
454
|
+
const item = this.instantiationService.invokeFunction(accessor => createDisconnectMenuItemAction(action, stopActionViewItemDisposables, accessor, options));
|
|
455
455
|
if (item) {
|
|
456
456
|
return item;
|
|
457
457
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FileAccess } from 'vscode/vscode/vs/base/common/network';
|
|
1
2
|
import { isWeb, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
2
3
|
import './media/debug.contribution.css.js';
|
|
3
4
|
import './media/debugHover.css.js';
|
|
@@ -19,7 +20,7 @@ import { BreakpointsView } from 'vscode/vscode/vs/workbench/contrib/debug/browse
|
|
|
19
20
|
import { CallStackEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
20
21
|
import { CallStackView } from './callStackView.js';
|
|
21
22
|
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,
|
|
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';
|
|
23
24
|
import { DebugConsoleQuickAccess } from './debugConsoleQuickAccess.js';
|
|
24
25
|
import { RunToCursorAction, SelectionToReplAction, SelectionToWatchExpressionsAction } from './debugEditorActions.js';
|
|
25
26
|
import { DebugEditorContribution } from './debugEditorContribution.js';
|
|
@@ -37,10 +38,11 @@ import { StatusBarColorProvider } from './statusbarColorProvider.js';
|
|
|
37
38
|
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';
|
|
38
39
|
import { WatchExpressionsView, ADD_WATCH_LABEL, ADD_WATCH_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID } from './watchExpressionsView.js';
|
|
39
40
|
import { WelcomeView } from './welcomeView.js';
|
|
40
|
-
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_DEBUGGERS_AVAILABLE, getStateLabel, CONTEXT_CALLSTACK_ITEM_TYPE,
|
|
41
|
+
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';
|
|
41
42
|
import { DebugContentProvider } from '../common/debugContentProvider.js';
|
|
42
43
|
import { DebugLifecycle } from '../common/debugLifecycle.js';
|
|
43
44
|
import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
|
|
45
|
+
import { COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, COPY_NOTEBOOK_VARIABLE_VALUE_ID } from '../../notebook/browser/contrib/notebookVariables/notebookVariableCommands.js';
|
|
44
46
|
import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
|
|
45
47
|
|
|
46
48
|
const debugCategory = ( localizeWithPath(
|
|
@@ -108,6 +110,7 @@ const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
|
|
|
108
110
|
}
|
|
109
111
|
});
|
|
110
112
|
};
|
|
113
|
+
registerDebugCommandPaletteItem(RESTART_SESSION_ID, RESTART_LABEL);
|
|
111
114
|
registerDebugCommandPaletteItem(TERMINATE_THREAD_ID, ( localize2WithPath(
|
|
112
115
|
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
113
116
|
'terminateThread',
|
|
@@ -118,6 +121,8 @@ registerDebugCommandPaletteItem(STEP_INTO_ID, STEP_INTO_LABEL, CONTEXT_IN_DEBUG_
|
|
|
118
121
|
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')))));
|
|
119
122
|
registerDebugCommandPaletteItem(STEP_OUT_ID, STEP_OUT_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
120
123
|
registerDebugCommandPaletteItem(PAUSE_ID, PAUSE_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.and(( CONTEXT_DEBUG_STATE.isEqualTo('running')), ( CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG.toNegated()))));
|
|
124
|
+
registerDebugCommandPaletteItem(DISCONNECT_ID, DISCONNECT_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.or(CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)));
|
|
125
|
+
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)))));
|
|
121
126
|
registerDebugCommandPaletteItem(STOP_ID, STOP_LABEL, CONTEXT_IN_DEBUG_MODE, ( ContextKeyExpr.or(( CONTEXT_FOCUSED_SESSION_IS_ATTACH.toNegated()), CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED)));
|
|
122
127
|
registerDebugCommandPaletteItem(CONTINUE_ID, CONTINUE_LABEL, CONTEXT_IN_DEBUG_MODE, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')));
|
|
123
128
|
registerDebugCommandPaletteItem(FOCUS_REPL_ID, ( localize2WithPath(
|
|
@@ -143,6 +148,8 @@ registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2WithPath
|
|
|
143
148
|
'inlineBreakpoint',
|
|
144
149
|
"Inline Breakpoint"
|
|
145
150
|
)));
|
|
151
|
+
registerDebugCommandPaletteItem(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 ))))));
|
|
152
|
+
registerDebugCommandPaletteItem(DEBUG_RUN_COMMAND_ID, DEBUG_RUN_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 ))))));
|
|
146
153
|
registerDebugCommandPaletteItem(SELECT_AND_START_ID, SELECT_AND_START_LABEL, ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, ( CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 ))))));
|
|
147
154
|
registerDebugCommandPaletteItem(NEXT_DEBUG_CONSOLE_ID, NEXT_DEBUG_CONSOLE_LABEL);
|
|
148
155
|
registerDebugCommandPaletteItem(PREV_DEBUG_CONSOLE_ID, PREV_DEBUG_CONSOLE_LABEL);
|
|
@@ -293,6 +300,30 @@ registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_EXPRESSION_COMMAND_ID
|
|
|
293
300
|
"Remove Expression"
|
|
294
301
|
)), 20, ( CONTEXT_WATCH_ITEM_TYPE.isEqualTo('expression')), undefined, 'inline', watchExpressionRemove);
|
|
295
302
|
registerDebugViewMenuItem(MenuId.DebugWatchContext, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, 20, undefined, undefined, 'z_commands');
|
|
303
|
+
registerDebugViewMenuItem(MenuId.NotebookVariablesContext, COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL, 20, CONTEXT_VARIABLE_VALUE);
|
|
304
|
+
if (isMacintosh) {
|
|
305
|
+
const registerTouchBarEntry = (id, title, order, when, iconUri) => {
|
|
306
|
+
MenuRegistry.appendMenuItem(MenuId.TouchBarContext, {
|
|
307
|
+
command: {
|
|
308
|
+
id,
|
|
309
|
+
title,
|
|
310
|
+
icon: { dark: iconUri }
|
|
311
|
+
},
|
|
312
|
+
when: ( ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, when)),
|
|
313
|
+
group: '9_debug',
|
|
314
|
+
order
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
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')));
|
|
318
|
+
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')));
|
|
319
|
+
registerTouchBarEntry(CONTINUE_ID, CONTINUE_LABEL, 0, ( CONTEXT_DEBUG_STATE.isEqualTo('stopped')), ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/continue-tb.png')));
|
|
320
|
+
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')));
|
|
321
|
+
registerTouchBarEntry(STEP_OVER_ID, STEP_OVER_LABEL, 2, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stepover-tb.png')));
|
|
322
|
+
registerTouchBarEntry(STEP_INTO_ID, STEP_INTO_LABEL, 3, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stepinto-tb.png')));
|
|
323
|
+
registerTouchBarEntry(STEP_OUT_ID, STEP_OUT_LABEL, 4, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stepout-tb.png')));
|
|
324
|
+
registerTouchBarEntry(RESTART_SESSION_ID, RESTART_LABEL, 5, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/restart-tb.png')));
|
|
325
|
+
registerTouchBarEntry(STOP_ID, STOP_LABEL, 6, CONTEXT_IN_DEBUG_MODE, ( FileAccess.asFileUri('vs/workbench/contrib/debug/browser/media/stop-tb.png')));
|
|
326
|
+
}
|
|
296
327
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun, rememberDefaultAction: true, title: ( localize2WithPath(
|
|
297
328
|
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
298
329
|
'run',
|
|
@@ -301,8 +332,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, { submenu: MenuId.EditorTitleRun
|
|
|
301
332
|
MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
302
333
|
submenu: MenuId.MenubarDebugMenu,
|
|
303
334
|
title: {
|
|
304
|
-
|
|
305
|
-
original: 'Run',
|
|
335
|
+
...( localize2WithPath('vs/workbench/contrib/debug/browser/debug.contribution', 'runMenu', "Run")),
|
|
306
336
|
mnemonicTitle: ( localizeWithPath(
|
|
307
337
|
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
308
338
|
{ key: 'mRun', comment: ['&& denotes a mnemonic'] },
|
|
@@ -311,6 +341,129 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
311
341
|
},
|
|
312
342
|
order: 6
|
|
313
343
|
});
|
|
344
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
345
|
+
group: '1_debug',
|
|
346
|
+
command: {
|
|
347
|
+
id: DEBUG_START_COMMAND_ID,
|
|
348
|
+
title: ( localizeWithPath(
|
|
349
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
350
|
+
{ key: 'miStartDebugging', comment: ['&& denotes a mnemonic'] },
|
|
351
|
+
"&&Start Debugging"
|
|
352
|
+
))
|
|
353
|
+
},
|
|
354
|
+
order: 1,
|
|
355
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
356
|
+
});
|
|
357
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
358
|
+
group: '1_debug',
|
|
359
|
+
command: {
|
|
360
|
+
id: DEBUG_RUN_COMMAND_ID,
|
|
361
|
+
title: ( localizeWithPath(
|
|
362
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
363
|
+
{ key: 'miRun', comment: ['&& denotes a mnemonic'] },
|
|
364
|
+
"Run &&Without Debugging"
|
|
365
|
+
))
|
|
366
|
+
},
|
|
367
|
+
order: 2,
|
|
368
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
369
|
+
});
|
|
370
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
371
|
+
group: '1_debug',
|
|
372
|
+
command: {
|
|
373
|
+
id: STOP_ID,
|
|
374
|
+
title: ( localizeWithPath(
|
|
375
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
376
|
+
{ key: 'miStopDebugging', comment: ['&& denotes a mnemonic'] },
|
|
377
|
+
"&&Stop Debugging"
|
|
378
|
+
)),
|
|
379
|
+
precondition: CONTEXT_IN_DEBUG_MODE
|
|
380
|
+
},
|
|
381
|
+
order: 3,
|
|
382
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
383
|
+
});
|
|
384
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
385
|
+
group: '1_debug',
|
|
386
|
+
command: {
|
|
387
|
+
id: RESTART_SESSION_ID,
|
|
388
|
+
title: ( localizeWithPath(
|
|
389
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
390
|
+
{ key: 'miRestart Debugging', comment: ['&& denotes a mnemonic'] },
|
|
391
|
+
"&&Restart Debugging"
|
|
392
|
+
)),
|
|
393
|
+
precondition: CONTEXT_IN_DEBUG_MODE
|
|
394
|
+
},
|
|
395
|
+
order: 4,
|
|
396
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
397
|
+
});
|
|
398
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
399
|
+
group: '2_configuration',
|
|
400
|
+
command: {
|
|
401
|
+
id: ADD_CONFIGURATION_ID,
|
|
402
|
+
title: ( localizeWithPath(
|
|
403
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
404
|
+
{ key: 'miAddConfiguration', comment: ['&& denotes a mnemonic'] },
|
|
405
|
+
"A&&dd Configuration..."
|
|
406
|
+
))
|
|
407
|
+
},
|
|
408
|
+
order: 2,
|
|
409
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
410
|
+
});
|
|
411
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
412
|
+
group: '3_step',
|
|
413
|
+
command: {
|
|
414
|
+
id: STEP_OVER_ID,
|
|
415
|
+
title: ( localizeWithPath(
|
|
416
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
417
|
+
{ key: 'miStepOver', comment: ['&& denotes a mnemonic'] },
|
|
418
|
+
"Step &&Over"
|
|
419
|
+
)),
|
|
420
|
+
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
421
|
+
},
|
|
422
|
+
order: 1,
|
|
423
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
424
|
+
});
|
|
425
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
426
|
+
group: '3_step',
|
|
427
|
+
command: {
|
|
428
|
+
id: STEP_INTO_ID,
|
|
429
|
+
title: ( localizeWithPath(
|
|
430
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
431
|
+
{ key: 'miStepInto', comment: ['&& denotes a mnemonic'] },
|
|
432
|
+
"Step &&Into"
|
|
433
|
+
)),
|
|
434
|
+
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
435
|
+
},
|
|
436
|
+
order: 2,
|
|
437
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
438
|
+
});
|
|
439
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
440
|
+
group: '3_step',
|
|
441
|
+
command: {
|
|
442
|
+
id: STEP_OUT_ID,
|
|
443
|
+
title: ( localizeWithPath(
|
|
444
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
445
|
+
{ key: 'miStepOut', comment: ['&& denotes a mnemonic'] },
|
|
446
|
+
"Step O&&ut"
|
|
447
|
+
)),
|
|
448
|
+
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
449
|
+
},
|
|
450
|
+
order: 3,
|
|
451
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
452
|
+
});
|
|
453
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
454
|
+
group: '3_step',
|
|
455
|
+
command: {
|
|
456
|
+
id: CONTINUE_ID,
|
|
457
|
+
title: ( localizeWithPath(
|
|
458
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
459
|
+
{ key: 'miContinue', comment: ['&& denotes a mnemonic'] },
|
|
460
|
+
"&&Continue"
|
|
461
|
+
)),
|
|
462
|
+
precondition: ( CONTEXT_DEBUG_STATE.isEqualTo('stopped'))
|
|
463
|
+
},
|
|
464
|
+
order: 4,
|
|
465
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
466
|
+
});
|
|
314
467
|
MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
|
|
315
468
|
group: '1_breakpoints',
|
|
316
469
|
command: {
|
|
@@ -324,6 +477,29 @@ MenuRegistry.appendMenuItem(MenuId.MenubarNewBreakpointMenu, {
|
|
|
324
477
|
order: 2,
|
|
325
478
|
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
326
479
|
});
|
|
480
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
481
|
+
group: '4_new_breakpoint',
|
|
482
|
+
title: ( localizeWithPath(
|
|
483
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
484
|
+
{ key: 'miNewBreakpoint', comment: ['&& denotes a mnemonic'] },
|
|
485
|
+
"&&New Breakpoint"
|
|
486
|
+
)),
|
|
487
|
+
submenu: MenuId.MenubarNewBreakpointMenu,
|
|
488
|
+
order: 2,
|
|
489
|
+
when: CONTEXT_DEBUGGERS_AVAILABLE
|
|
490
|
+
});
|
|
491
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarDebugMenu, {
|
|
492
|
+
group: 'z_install',
|
|
493
|
+
command: {
|
|
494
|
+
id: 'debug.installAdditionalDebuggers',
|
|
495
|
+
title: ( localizeWithPath(
|
|
496
|
+
'vs/workbench/contrib/debug/browser/debug.contribution',
|
|
497
|
+
{ key: 'miInstallAdditionalDebuggers', comment: ['&& denotes a mnemonic'] },
|
|
498
|
+
"&&Install Additional Debuggers..."
|
|
499
|
+
))
|
|
500
|
+
},
|
|
501
|
+
order: 1
|
|
502
|
+
});
|
|
327
503
|
const VIEW_CONTAINER = ( Registry.as(Extensions$2.ViewContainersRegistry)).registerViewContainer({
|
|
328
504
|
id: DEBUG_PANEL_ID,
|
|
329
505
|
title: ( localize2WithPath(
|
|
@@ -22,8 +22,8 @@ const $ = $$1;
|
|
|
22
22
|
let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseActionViewItem {
|
|
23
23
|
static { StartDebugActionViewItem_1 = this; }
|
|
24
24
|
static { this.SEPARATOR = '\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500'; }
|
|
25
|
-
constructor(context, action, debugService, configurationService, commandService, contextService, contextViewService, keybindingService) {
|
|
26
|
-
super(context, action);
|
|
25
|
+
constructor(context, action, options, debugService, configurationService, commandService, contextService, contextViewService, keybindingService) {
|
|
26
|
+
super(context, action, options);
|
|
27
27
|
this.context = context;
|
|
28
28
|
this.debugService = debugService;
|
|
29
29
|
this.configurationService = configurationService;
|
|
@@ -245,12 +245,12 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
|
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
StartDebugActionViewItem = StartDebugActionViewItem_1 = ( __decorate([
|
|
248
|
-
( __param(
|
|
249
|
-
( __param(
|
|
250
|
-
( __param(
|
|
251
|
-
( __param(
|
|
252
|
-
( __param(
|
|
253
|
-
( __param(
|
|
248
|
+
( __param(3, IDebugService)),
|
|
249
|
+
( __param(4, IConfigurationService)),
|
|
250
|
+
( __param(5, ICommandService)),
|
|
251
|
+
( __param(6, IWorkspaceContextService)),
|
|
252
|
+
( __param(7, IContextViewService)),
|
|
253
|
+
( __param(8, IKeybindingService))
|
|
254
254
|
], StartDebugActionViewItem));
|
|
255
255
|
let FocusSessionActionViewItem = class FocusSessionActionViewItem extends SelectActionViewItem {
|
|
256
256
|
constructor(action, session, debugService, contextViewService, configurationService) {
|