@codingame/monaco-vscode-debug-service-override 5.3.0 → 6.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.
Files changed (33) hide show
  1. package/package.json +2 -2
  2. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +5 -5
  3. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +26 -23
  4. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +8 -5
  5. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +2 -1
  6. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +23 -20
  7. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +12 -11
  8. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +38 -19
  9. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +22 -12
  10. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +10 -10
  11. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +2 -1
  12. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +4 -3
  13. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +76 -57
  14. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +13 -11
  15. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +4 -2
  16. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +23 -16
  17. package/vscode/src/vs/workbench/contrib/debug/browser/debugTitle.js +2 -1
  18. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +15 -13
  19. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +3 -3
  20. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +8 -6
  21. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +3 -2
  22. package/vscode/src/vs/workbench/contrib/debug/browser/extensionHostDebugService.js +5 -3
  23. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +3 -2
  24. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +5 -4
  25. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +29 -26
  26. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +3 -2
  27. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +7 -6
  28. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +7 -6
  29. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +12 -11
  30. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +3 -2
  31. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +21 -20
  32. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +5 -3
  33. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-debug-service-override",
3
- "version": "5.3.0",
3
+ "version": "6.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@5.3.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@6.0.0"
30
30
  }
31
31
  }
@@ -44,7 +44,7 @@ import { renderViewTree } from 'vscode/vscode/vs/workbench/contrib/debug/browser
44
44
  import { STOP_ID, DISCONNECT_ID, PAUSE_ID, PAUSE_LABEL, CONTINUE_ID, CONTINUE_LABEL, STEP_OVER_ID, STEP_OVER_LABEL, STEP_INTO_ID, STEP_INTO_LABEL, STEP_OUT_ID, STEP_OUT_LABEL, RESTART_SESSION_ID, RESTART_LABEL, STOP_LABEL, DISCONNECT_LABEL } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
45
45
  import { callstackViewSession, debugRestartFrame, debugPause, debugContinue, debugStepOver, debugStepInto, debugStepOut, debugRestart, debugStop, debugDisconnect } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
46
46
  import { createDisconnectMenuItemAction } from './debugToolBar.js';
47
- import { CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_CALLSTACK_SESSION_IS_ATTACH, CONTEXT_CALLSTACK_ITEM_STOPPED, CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD, CONTEXT_STACK_FRAME_SUPPORTS_RESTART, isFrameDeemphasized, CALLSTACK_VIEW_ID, CONTEXT_DEBUG_STATE, getStateLabel, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
47
+ import { State, CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_CALLSTACK_SESSION_IS_ATTACH, CONTEXT_CALLSTACK_ITEM_STOPPED, CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD, CONTEXT_STACK_FRAME_SUPPORTS_RESTART, isFrameDeemphasized, CALLSTACK_VIEW_ID, CONTEXT_DEBUG_STATE, getStateLabel, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
48
48
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
49
49
  import { StackFrame, Thread, ThreadAndSessionIds } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugModel';
50
50
  import { isSessionAttach } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
@@ -147,7 +147,7 @@ let CallStackView = class CallStackView extends ViewPane {
147
147
  this.stateMessageLabel.classList.toggle('exception', stoppedDetails.reason === 'exception');
148
148
  this.stateMessage.hidden = false;
149
149
  }
150
- else if (sessions.length === 1 && sessions[0].state === 3 ) {
150
+ else if (sessions.length === 1 && sessions[0].state === State.Running) {
151
151
  this.stateMessageLabel.textContent = ( localizeWithPath(_moduleId, 0, "Running"));
152
152
  this.stateMessageLabelHover.update(sessions[0].getLabel());
153
153
  this.stateMessageLabel.classList.remove('exception');
@@ -313,7 +313,7 @@ let CallStackView = class CallStackView extends ViewPane {
313
313
  await this.updateTreeSelection();
314
314
  }));
315
315
  this._register(this.tree.onContextMenu(e => this.onContextMenu(e)));
316
- if (this.debugService.state === 2 ) {
316
+ if (this.debugService.state === State.Stopped) {
317
317
  this.onCallStackChangeScheduler.schedule(0);
318
318
  }
319
319
  this._register(this.onDidChangeBodyVisibility(visible => {
@@ -435,7 +435,7 @@ function getSessionContextOverlay(session) {
435
435
  return [
436
436
  [CONTEXT_CALLSTACK_ITEM_TYPE.key, 'session'],
437
437
  [CONTEXT_CALLSTACK_SESSION_IS_ATTACH.key, isSessionAttach(session)],
438
- [CONTEXT_CALLSTACK_ITEM_STOPPED.key, session.state === 2 ],
438
+ [CONTEXT_CALLSTACK_ITEM_STOPPED.key, session.state === State.Stopped],
439
439
  [CONTEXT_CALLSTACK_SESSION_HAS_ONE_THREAD.key, session.getAllThreads().length === 1],
440
440
  ];
441
441
  }
@@ -943,7 +943,7 @@ registerAction2(class Collapse extends ViewAction {
943
943
  title: ( localizeWithPath(_moduleId, 13, "Collapse All")),
944
944
  f1: false,
945
945
  icon: Codicon.collapseAll,
946
- precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo(getStateLabel(2 )))),
946
+ precondition: ( (CONTEXT_DEBUG_STATE.isEqualTo(getStateLabel(State.Stopped)))),
947
947
  menu: {
948
948
  id: MenuId.ViewTitle,
949
949
  order: 10,
@@ -1,20 +1,22 @@
1
+ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
1
2
  import { FileAccess } from 'vscode/vscode/vs/base/common/network';
2
3
  import { isWeb, isMacintosh } from 'vscode/vscode/vs/base/common/platform';
3
4
  import './media/debug.contribution.css.js';
4
5
  import './media/debugHover.css.js';
5
- import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
6
+ import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
6
7
  import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
7
8
  import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
8
- import { Extensions as Extensions$3 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
9
+ import { Extensions as Extensions$3, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
9
10
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
10
11
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
12
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
11
13
  import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
12
14
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
13
15
  import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
14
16
  import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
15
17
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
16
18
  import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
17
- import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/common/views';
19
+ import { Extensions as Extensions$2, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
18
20
  import { BreakpointEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
19
21
  import { BreakpointsView } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
20
22
  import { CallStackEditorContribution } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
@@ -39,7 +41,7 @@ import { StatusBarColorProvider } from './statusbarColorProvider.js';
39
41
  import { VIEW_MEMORY_ID, SET_VARIABLE_ID, BREAK_WHEN_VALUE_IS_READ_ID, BREAK_WHEN_VALUE_CHANGES_ID, BREAK_WHEN_VALUE_IS_ACCESSED_ID, VariablesView } from './variablesView.js';
40
42
  import { ADD_WATCH_ID, ADD_WATCH_LABEL, REMOVE_WATCH_EXPRESSIONS_COMMAND_ID, REMOVE_WATCH_EXPRESSIONS_LABEL, WatchExpressionsView } from './watchExpressionsView.js';
41
43
  import { WelcomeView } from './welcomeView.js';
42
- import { BREAKPOINT_EDITOR_CONTRIBUTION_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_JUMP_TO_CURSOR_SUPPORTED, getStateLabel, CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_RESTART_FRAME_SUPPORTED, CONTEXT_STACK_FRAME_SUPPORTS_RESTART, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_SET_VARIABLE_SUPPORTED, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED, CONTEXT_VARIABLE_IS_READONLY, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, CONTEXT_WATCH_ITEM_TYPE, CONTEXT_VARIABLE_VALUE, DEBUG_PANEL_ID, REPL_VIEW_ID, VIEWLET_ID, VARIABLES_VIEW_ID, CONTEXT_DEBUG_UX, WATCH_VIEW_ID, CALLSTACK_VIEW_ID, BREAKPOINTS_VIEW_ID, CONTEXT_BREAKPOINTS_EXIST, CONTEXT_HAS_DEBUGGED, LOADED_SCRIPTS_VIEW_ID, CONTEXT_LOADED_SCRIPTS_SUPPORTED, DISASSEMBLY_VIEW_ID, INTERNAL_CONSOLE_OPTIONS_SCHEMA } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
44
+ import { BREAKPOINT_EDITOR_CONTRIBUTION_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_FOCUSED_SESSION_IS_NO_DEBUG, CONTEXT_FOCUSED_SESSION_IS_ATTACH, CONTEXT_TERMINATE_DEBUGGEE_SUPPORTED, CONTEXT_SUSPEND_DEBUGGEE_SUPPORTED, CONTEXT_JUMP_TO_CURSOR_SUPPORTED, getStateLabel, State, CONTEXT_CALLSTACK_ITEM_TYPE, CONTEXT_RESTART_FRAME_SUPPORTED, CONTEXT_STACK_FRAME_SUPPORTS_RESTART, CONTEXT_CAN_VIEW_MEMORY, CONTEXT_SET_VARIABLE_SUPPORTED, CONTEXT_VARIABLE_EVALUATE_NAME_PRESENT, CONTEXT_SET_EXPRESSION_SUPPORTED, CONTEXT_VARIABLE_IS_READONLY, CONTEXT_BREAK_WHEN_VALUE_IS_READ_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_CHANGES_SUPPORTED, CONTEXT_BREAK_WHEN_VALUE_IS_ACCESSED_SUPPORTED, CONTEXT_WATCH_ITEM_TYPE, CONTEXT_VARIABLE_VALUE, DEBUG_PANEL_ID, REPL_VIEW_ID, VIEWLET_ID, VARIABLES_VIEW_ID, CONTEXT_DEBUG_UX, WATCH_VIEW_ID, CALLSTACK_VIEW_ID, BREAKPOINTS_VIEW_ID, CONTEXT_BREAKPOINTS_EXIST, CONTEXT_HAS_DEBUGGED, LOADED_SCRIPTS_VIEW_ID, CONTEXT_LOADED_SCRIPTS_SUPPORTED, DISASSEMBLY_VIEW_ID, INTERNAL_CONSOLE_OPTIONS_SCHEMA } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
43
45
  import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
44
46
  import { DebugContentProvider } from '../common/debugContentProvider.js';
45
47
  import { DebugLifecycle } from '../common/debugLifecycle.js';
@@ -47,20 +49,21 @@ import '../common/debugVisualizers.js';
47
49
  import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
48
50
  import { COPY_NOTEBOOK_VARIABLE_VALUE_ID, COPY_NOTEBOOK_VARIABLE_VALUE_LABEL } from '../../notebook/browser/contrib/notebookVariables/notebookVariableCommands.js';
49
51
  import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
52
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
50
53
 
51
54
  const _moduleId = "vs/workbench/contrib/debug/browser/debug.contribution";
52
55
  const debugCategory = ( localizeWithPath(_moduleId, 0, "Debug"));
53
56
  registerColors();
54
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugStatusContribution, 4 );
55
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugProgressContribution, 4 );
57
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugStatusContribution, LifecyclePhase.Eventually);
58
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugProgressContribution, LifecyclePhase.Eventually);
56
59
  if (isWeb) {
57
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugTitleContribution, 4 );
60
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugTitleContribution, LifecyclePhase.Eventually);
58
61
  }
59
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugToolBar, 3 );
60
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugContentProvider, 4 );
61
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(StatusBarColorProvider, 4 );
62
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DisassemblyViewContribution, 4 );
63
- ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugLifecycle, 4 );
62
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugToolBar, LifecyclePhase.Restored);
63
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugContentProvider, LifecyclePhase.Eventually);
64
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(StatusBarColorProvider, LifecyclePhase.Eventually);
65
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DisassemblyViewContribution, LifecyclePhase.Eventually);
66
+ ( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(DebugLifecycle, LifecyclePhase.Eventually);
64
67
  ( (Registry.as(Extensions$1.Quickaccess))).registerQuickAccessProvider({
65
68
  ctor: StartDebugQuickAccessProvider,
66
69
  prefix: DEBUG_QUICK_ACCESS_PREFIX,
@@ -79,9 +82,9 @@ if (isWeb) {
79
82
  placeholder: ( localizeWithPath(_moduleId, 3, "Type the name of a debug console to open.")),
80
83
  helpEntries: [{ description: ( localizeWithPath(_moduleId, 4, "Show All Debug Consoles")), commandId: SELECT_DEBUG_CONSOLE_ID }]
81
84
  });
82
- registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, 1 );
83
- registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, 1 );
84
- registerEditorContribution(EDITOR_CONTRIBUTION_ID, DebugEditorContribution, 2 );
85
+ registerEditorContribution('editor.contrib.callStack', CallStackEditorContribution, EditorContributionInstantiation.AfterFirstRender);
86
+ registerEditorContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointEditorContribution, EditorContributionInstantiation.AfterFirstRender);
87
+ registerEditorContribution(EDITOR_CONTRIBUTION_ID, DebugEditorContribution, EditorContributionInstantiation.BeforeFirstInteraction);
85
88
  const registerDebugCommandPaletteItem = (id, title, when, precondition) => {
86
89
  MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
87
90
  when: ( (ContextKeyExpr.and(CONTEXT_DEBUGGERS_AVAILABLE, when))),
@@ -127,15 +130,15 @@ registerDebugCommandPaletteItem(SelectionToWatchExpressionsAction.ID, SelectionT
127
130
  registerDebugCommandPaletteItem(TOGGLE_INLINE_BREAKPOINT_ID, ( localize2WithPath(_moduleId, 9, "Inline Breakpoint")));
128
131
  registerDebugCommandPaletteItem(DEBUG_START_COMMAND_ID, DEBUG_START_LABEL, ( (ContextKeyExpr.and(
129
132
  CONTEXT_DEBUGGERS_AVAILABLE,
130
- (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 )))
133
+ (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Initializing)))
131
134
  ))));
132
135
  registerDebugCommandPaletteItem(DEBUG_RUN_COMMAND_ID, DEBUG_RUN_LABEL, ( (ContextKeyExpr.and(
133
136
  CONTEXT_DEBUGGERS_AVAILABLE,
134
- (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 )))
137
+ (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Initializing)))
135
138
  ))));
136
139
  registerDebugCommandPaletteItem(SELECT_AND_START_ID, SELECT_AND_START_LABEL, ( (ContextKeyExpr.and(
137
140
  CONTEXT_DEBUGGERS_AVAILABLE,
138
- (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(1 )))
141
+ (CONTEXT_DEBUG_STATE.notEqualsTo(getStateLabel(State.Initializing)))
139
142
  ))));
140
143
  registerDebugCommandPaletteItem(NEXT_DEBUG_CONSOLE_ID, NEXT_DEBUG_CONSOLE_LABEL);
141
144
  registerDebugCommandPaletteItem(PREV_DEBUG_CONSOLE_ID, PREV_DEBUG_CONSOLE_LABEL);
@@ -380,7 +383,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
380
383
  storageId: DEBUG_PANEL_ID,
381
384
  hideIfEmpty: true,
382
385
  order: 2,
383
- }, 1 , { doNotRegisterOpenCommand: true });
386
+ }, ViewContainerLocation.Panel, { doNotRegisterOpenCommand: true });
384
387
  ( (Registry.as(Extensions$2.ViewsRegistry))).registerViews([{
385
388
  id: REPL_VIEW_ID,
386
389
  name: ( localize2WithPath(_moduleId, 35, "Debug Console")),
@@ -392,7 +395,7 @@ const VIEW_CONTAINER = ( (Registry.as(Extensions$2.ViewContainersRegistry))).reg
392
395
  openCommandActionDescriptor: {
393
396
  id: 'workbench.debug.action.toggleRepl',
394
397
  mnemonicTitle: ( localizeWithPath(_moduleId, 36, "De&&bug Console")),
395
- keybindings: { primary: 2048 | 1024 | 55 },
398
+ keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyY },
396
399
  order: 2
397
400
  }
398
401
  }], VIEW_CONTAINER);
@@ -402,14 +405,14 @@ const viewContainer = ( (Registry.as(Extensions$2.ViewContainersRegistry))).regi
402
405
  openCommandActionDescriptor: {
403
406
  id: VIEWLET_ID,
404
407
  mnemonicTitle: ( localizeWithPath(_moduleId, 38, "&&Run")),
405
- keybindings: { primary: 2048 | 1024 | 34 },
408
+ keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyD },
406
409
  order: 3
407
410
  },
408
411
  ctorDescriptor: ( (new SyncDescriptor(DebugViewPaneContainer))),
409
412
  icon: runViewIcon,
410
413
  alwaysUseContainerInfo: true,
411
414
  order: 3,
412
- }, 0 );
415
+ }, ViewContainerLocation.Sidebar);
413
416
  const viewsRegistry = ( (Registry.as(Extensions$2.ViewsRegistry)));
414
417
  viewsRegistry.registerViews([{ id: VARIABLES_VIEW_ID, name: ( localize2WithPath(_moduleId, 39, "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);
415
418
  viewsRegistry.registerViews([{ id: WATCH_VIEW_ID, name: ( localize2WithPath(_moduleId, 40, "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);
@@ -685,7 +688,7 @@ configurationRegistry.registerConfiguration({
685
688
  ( localizeWithPath(_moduleId, 91, "Don't save any editors before starting a debug session.")),
686
689
  ],
687
690
  default: 'allEditorsInActiveGroup',
688
- scope: 5
691
+ scope: ConfigurationScope.LANGUAGE_OVERRIDABLE
689
692
  },
690
693
  'debug.confirmOnExit': {
691
694
  description: ( localizeWithPath(
@@ -1,10 +1,12 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
3
4
  import { $ as $$1, append, addDisposableListener, EventType } from 'vscode/vscode/vs/base/browser/dom';
4
5
  import { StandardKeyboardEvent } from 'vscode/vscode/vs/base/browser/keyboardEvent';
5
6
  import { SelectBox } from 'vscode/vscode/vs/base/browser/ui/selectBox/selectBox';
6
7
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
7
8
  import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
9
+ import { State } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
8
10
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
9
11
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
10
12
  import { asCssVariable } from 'vscode/vscode/vs/platform/theme/common/colorUtils';
@@ -19,6 +21,7 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
19
21
  import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
20
22
  import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
21
23
  import { IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
24
+ import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
22
25
  import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
23
26
  import { dispose } from 'vscode/vscode/vs/base/common/lifecycle';
24
27
  import { ADD_CONFIGURATION_ID } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugCommands';
@@ -81,7 +84,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
81
84
  this.start.ariaLabel = title;
82
85
  this.toDispose.push(addDisposableListener(this.start, EventType.CLICK, () => {
83
86
  this.start.blur();
84
- if (this.debugService.state !== 1 ) {
87
+ if (this.debugService.state !== State.Initializing) {
85
88
  this.actionRunner.run(this.action, this.context);
86
89
  }
87
90
  }));
@@ -98,7 +101,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
98
101
  }));
99
102
  this.toDispose.push(addDisposableListener(this.start, EventType.KEY_DOWN, (e) => {
100
103
  const event = ( (new StandardKeyboardEvent(e)));
101
- if (event.equals(17 )) {
104
+ if (event.equals(KeyCode.RightArrow)) {
102
105
  this.start.tabIndex = -1;
103
106
  this.selectBox.focus();
104
107
  event.stopPropagation();
@@ -118,7 +121,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
118
121
  this.selectBox.render(append(container, selectBoxContainer));
119
122
  this.toDispose.push(addDisposableListener(selectBoxContainer, EventType.KEY_DOWN, (e) => {
120
123
  const event = ( (new StandardKeyboardEvent(e)));
121
- if (event.equals(15 )) {
124
+ if (event.equals(KeyCode.LeftArrow)) {
122
125
  this.selectBox.setFocusable(false);
123
126
  this.start.tabIndex = 0;
124
127
  this.start.focus();
@@ -176,7 +179,7 @@ let StartDebugActionViewItem = class StartDebugActionViewItem extends BaseAction
176
179
  this.selected = 0;
177
180
  this.debugOptions = [];
178
181
  const manager = this.debugService.getConfigurationManager();
179
- const inWorkspace = this.contextService.getWorkbenchState() === 3 ;
182
+ const inWorkspace = this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE;
180
183
  let lastGroup;
181
184
  const disabledIdxs = [];
182
185
  manager.getAllConfigurations().forEach(({ launch, name, presentation }) => {
@@ -291,7 +294,7 @@ let FocusSessionActionViewItem = class FocusSessionActionViewItem extends Select
291
294
  }
292
295
  return label;
293
296
  })));
294
- this.setOptions(( (names.map(data => ({ text: data })))), session ? sessions.indexOf(session) : undefined);
297
+ this.setOptions(( (names.map((data) => ({ text: data })))), session ? sessions.indexOf(session) : undefined);
295
298
  }
296
299
  getSelectedSession() {
297
300
  const session = this.debugService.getViewModel().focusedSession;
@@ -22,6 +22,7 @@ import { TaskDefinitionRegistry } from 'vscode/vscode/vs/workbench/contrib/tasks
22
22
  import { launchSchemaId } from 'vscode/vscode/vs/workbench/services/configuration/common/configuration';
23
23
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
24
24
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
25
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
25
26
  import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
26
27
 
27
28
  const _moduleId = "vs/workbench/contrib/debug/browser/debugAdapterManager";
@@ -61,7 +62,7 @@ let AdapterManager = class AdapterManager extends Disposable {
61
62
  this._register(this.onDidDebuggersExtPointRead(() => {
62
63
  this.debugExtensionsAvailable.set(this.debuggers.length > 0);
63
64
  }));
64
- this.lifecycleService.when(4 )
65
+ this.lifecycleService.when(LifecyclePhase.Eventually)
65
66
  .then(() => this.debugExtensionsAvailable.set(this.debuggers.length > 0));
66
67
  this._register(delegate.onDidNewSession(s => {
67
68
  this.usedDebugTypes.add(s.configuration.type);
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
- import { flatten, distinct } from 'vscode/vscode/vs/base/common/arrays';
2
+ import { distinct } from 'vscode/vscode/vs/base/common/arrays';
3
3
  import { sequence } from 'vscode/vscode/vs/base/common/async';
4
4
  import { CancellationTokenSource, CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
5
5
  import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
@@ -10,6 +10,7 @@ import { joinPath } from 'vscode/vscode/vs/base/common/resources';
10
10
  import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
11
11
  import { URI } from 'vscode/vscode/vs/base/common/uri';
12
12
  import { localizeWithPath } from 'vscode/vscode/vs/nls';
13
+ import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
13
14
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
14
15
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
15
16
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
@@ -17,8 +18,10 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
17
18
  import { Extensions } from 'vscode/vscode/vs/platform/jsonschemas/common/jsonContributionRegistry';
18
19
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
19
20
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
21
+ import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
20
22
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
21
23
  import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
24
+ import { WorkbenchState } from 'vscode/vscode/vs/platform/workspace/common/workspace';
22
25
  import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
23
26
  import { debugConfigure } from 'vscode/vscode/vs/workbench/contrib/debug/browser/debugIcons';
24
27
  import { CONTEXT_DEBUG_CONFIGURATION_TYPE, DebugConfigurationProviderTriggerKind } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
@@ -60,10 +63,10 @@ let ConfigurationManager = class ConfigurationManager {
60
63
  this.initLaunches();
61
64
  this.setCompoundSchemaValues();
62
65
  this.registerListeners();
63
- const previousSelectedRoot = this.storageService.get(DEBUG_SELECTED_ROOT, 1 );
64
- const previousSelectedType = this.storageService.get(DEBUG_SELECTED_TYPE, 1 );
66
+ const previousSelectedRoot = this.storageService.get(DEBUG_SELECTED_ROOT, StorageScope.WORKSPACE);
67
+ const previousSelectedType = this.storageService.get(DEBUG_SELECTED_TYPE, StorageScope.WORKSPACE);
65
68
  const previousSelectedLaunch = this.launches.find(l => ( (l.uri.toString())) === previousSelectedRoot);
66
- const previousSelectedName = this.storageService.get(DEBUG_SELECTED_CONFIG_NAME_KEY, 1 );
69
+ const previousSelectedName = this.storageService.get(DEBUG_SELECTED_CONFIG_NAME_KEY, StorageScope.WORKSPACE);
67
70
  this.debugConfigurationTypeContext = CONTEXT_DEBUG_CONFIGURATION_TYPE.bindTo(contextKeyService);
68
71
  const dynamicConfig = previousSelectedType ? { type: previousSelectedType } : undefined;
69
72
  if (previousSelectedLaunch && previousSelectedLaunch.getConfigurationNames().length) {
@@ -212,7 +215,7 @@ let ConfigurationManager = class ConfigurationManager {
212
215
  disposables.add(input.onDidHide(() => resolve(undefined)));
213
216
  })));
214
217
  const nestedPicks = await Promise.all(picks);
215
- const items = flatten(nestedPicks);
218
+ const items = nestedPicks.flat();
216
219
  input.items = items;
217
220
  input.busy = false;
218
221
  input.show();
@@ -242,7 +245,7 @@ let ConfigurationManager = class ConfigurationManager {
242
245
  }
243
246
  removeRecentDynamicConfigurations(name, type) {
244
247
  const remaining = this.getRecentDynamicConfigurations().filter(c => c.name !== name || c.type !== type);
245
- this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(remaining), 1 , 1 );
248
+ this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(remaining), StorageScope.WORKSPACE, StorageTarget.MACHINE);
246
249
  if (this.selectedConfiguration.name === name && this.selectedType === type && this.selectedDynamic) {
247
250
  this.selectConfiguration(undefined, undefined);
248
251
  }
@@ -251,7 +254,7 @@ let ConfigurationManager = class ConfigurationManager {
251
254
  }
252
255
  }
253
256
  getRecentDynamicConfigurations() {
254
- return JSON.parse(this.storageService.get(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, 1 , '[]'));
257
+ return JSON.parse(this.storageService.get(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, StorageScope.WORKSPACE, '[]'));
255
258
  }
256
259
  registerListeners() {
257
260
  this.toDispose.push(Event.any(this.contextService.onDidChangeWorkspaceFolders, this.contextService.onDidChangeWorkbenchState)(() => {
@@ -273,7 +276,7 @@ let ConfigurationManager = class ConfigurationManager {
273
276
  this.launches = ( (this.contextService.getWorkspace().folders.map(
274
277
  folder => this.instantiationService.createInstance(Launch, this, this.adapterManager, folder)
275
278
  )));
276
- if (this.contextService.getWorkbenchState() === 3 ) {
279
+ if (this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
277
280
  this.launches.push(this.instantiationService.createInstance(WorkspaceLaunch, this, this.adapterManager));
278
281
  }
279
282
  this.launches.push(this.instantiationService.createInstance(UserLaunch, this, this.adapterManager));
@@ -311,7 +314,7 @@ let ConfigurationManager = class ConfigurationManager {
311
314
  return this._onDidSelectConfigurationName.event;
312
315
  }
313
316
  getWorkspaceLaunch() {
314
- if (this.contextService.getWorkbenchState() === 3 ) {
317
+ if (this.contextService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
315
318
  return this.launches[this.launches.length - 1];
316
319
  }
317
320
  return undefined;
@@ -329,10 +332,10 @@ let ConfigurationManager = class ConfigurationManager {
329
332
  const previousSelectedDynamic = this.selectedDynamic;
330
333
  this.selectedLaunch = launch;
331
334
  if (this.selectedLaunch) {
332
- this.storageService.store(DEBUG_SELECTED_ROOT, ( (this.selectedLaunch.uri.toString())), 1 , 1 );
335
+ this.storageService.store(DEBUG_SELECTED_ROOT, ( (this.selectedLaunch.uri.toString())), StorageScope.WORKSPACE, StorageTarget.MACHINE);
333
336
  }
334
337
  else {
335
- this.storageService.remove(DEBUG_SELECTED_ROOT, 1 );
338
+ this.storageService.remove(DEBUG_SELECTED_ROOT, StorageScope.WORKSPACE);
336
339
  }
337
340
  const names = launch ? launch.getConfigurationNames() : [];
338
341
  this.getSelectedConfig = () => {
@@ -366,7 +369,7 @@ let ConfigurationManager = class ConfigurationManager {
366
369
  if (name && dynamicConfig.type) {
367
370
  recentDynamicProviders.unshift({ name, type: dynamicConfig.type });
368
371
  recentDynamicProviders = distinct(recentDynamicProviders, t => `${t.name} : ${t.type}`);
369
- this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(recentDynamicProviders), 1 , 1 );
372
+ this.storageService.store(DEBUG_RECENT_DYNAMIC_CONFIGURATIONS, JSON.stringify(recentDynamicProviders), StorageScope.WORKSPACE, StorageTarget.MACHINE);
370
373
  }
371
374
  }
372
375
  else if (!this.selectedName || names.indexOf(this.selectedName) === -1) {
@@ -379,7 +382,7 @@ let ConfigurationManager = class ConfigurationManager {
379
382
  }
380
383
  this.selectedType = dynamicConfig?.type || config?.type;
381
384
  this.selectedDynamic = !!dynamicConfig;
382
- this.storageService.store(DEBUG_SELECTED_TYPE, dynamicConfig ? this.selectedType : undefined, 1 , 1 );
385
+ this.storageService.store(DEBUG_SELECTED_TYPE, dynamicConfig ? this.selectedType : undefined, StorageScope.WORKSPACE, StorageTarget.MACHINE);
383
386
  if (type) {
384
387
  this.debugConfigurationTypeContext.set(type);
385
388
  }
@@ -393,10 +396,10 @@ let ConfigurationManager = class ConfigurationManager {
393
396
  setSelectedLaunchName(selectedName) {
394
397
  this.selectedName = selectedName;
395
398
  if (this.selectedName) {
396
- this.storageService.store(DEBUG_SELECTED_CONFIG_NAME_KEY, this.selectedName, 1 , 1 );
399
+ this.storageService.store(DEBUG_SELECTED_CONFIG_NAME_KEY, this.selectedName, StorageScope.WORKSPACE, StorageTarget.MACHINE);
397
400
  }
398
401
  else {
399
- this.storageService.remove(DEBUG_SELECTED_CONFIG_NAME_KEY, 1 );
402
+ this.storageService.remove(DEBUG_SELECTED_CONFIG_NAME_KEY, StorageScope.WORKSPACE);
400
403
  }
401
404
  }
402
405
  dispose() {
@@ -457,13 +460,13 @@ class AbstractLaunch {
457
460
  const configuration = config.configurations.find(config => config && config.name === name);
458
461
  if (configuration) {
459
462
  if (this instanceof UserLaunch) {
460
- configuration.__configurationTarget = 2 ;
463
+ configuration.__configurationTarget = ConfigurationTarget.USER;
461
464
  }
462
465
  else if (this instanceof WorkspaceLaunch) {
463
- configuration.__configurationTarget = 5 ;
466
+ configuration.__configurationTarget = ConfigurationTarget.WORKSPACE;
464
467
  }
465
468
  else {
466
- configuration.__configurationTarget = 6 ;
469
+ configuration.__configurationTarget = ConfigurationTarget.WORKSPACE_FOLDER;
467
470
  }
468
471
  }
469
472
  return configuration;
@@ -555,7 +558,7 @@ let Launch = class Launch extends AbstractLaunch {
555
558
  fullConfig.configurations = [];
556
559
  }
557
560
  fullConfig.configurations.push(configuration);
558
- await this.configurationService.updateValue('launch', fullConfig, { resource: this.workspace.uri }, 6 );
561
+ await this.configurationService.updateValue('launch', fullConfig, { resource: this.workspace.uri }, ConfigurationTarget.WORKSPACE_FOLDER);
559
562
  }
560
563
  };
561
564
  Launch = ( (__decorate([
@@ -588,7 +591,7 @@ let WorkspaceLaunch = class WorkspaceLaunch extends AbstractLaunch {
588
591
  if (!launchExistInFile) {
589
592
  const content = await this.getInitialConfigurationContent(undefined, type, useInitialConfigs, token);
590
593
  if (content) {
591
- await this.configurationService.updateValue('launch', parse(content), 5 );
594
+ await this.configurationService.updateValue('launch', parse(content), ConfigurationTarget.WORKSPACE);
592
595
  }
593
596
  else {
594
597
  return { editor: null, created: false };
@@ -1,6 +1,6 @@
1
1
  import { getDomNodePagePosition } from 'vscode/vscode/vs/base/browser/dom';
2
2
  import { Action } from 'vscode/vscode/vs/base/common/actions';
3
- import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
3
+ import { KeyCode, KeyChord, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
4
4
  import { EditorAction, registerEditorAction } from 'vscode/vscode/vs/editor/browser/editorExtensions';
5
5
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
6
6
  import { Position } from 'vscode/vscode/vs/editor/common/core/position';
@@ -12,12 +12,13 @@ import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/acti
12
12
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
13
13
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
14
14
  import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
15
+ import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
15
16
  import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
16
17
  import { PanelFocusContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
17
18
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
18
19
  import { openBreakpointSource } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointsView';
19
20
  import { DisassemblyView } from './disassemblyView.js';
20
- import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DISASSEMBLY_VIEW_FOCUS, BREAKPOINT_EDITOR_CONTRIBUTION_ID, CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST, CONTEXT_CALLSTACK_ITEM_TYPE, REPL_VIEW_ID, WATCH_VIEW_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_EXCEPTION_WIDGET_VISIBLE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
21
+ import { CONTEXT_DEBUGGERS_AVAILABLE, CONTEXT_DISASSEMBLY_VIEW_FOCUS, BREAKPOINT_EDITOR_CONTRIBUTION_ID, BreakpointWidgetContext, CONTEXT_FOCUSED_STACK_FRAME_HAS_INSTRUCTION_POINTER_REFERENCE, CONTEXT_IN_DEBUG_MODE, CONTEXT_DEBUG_STATE, CONTEXT_DISASSEMBLE_REQUEST_SUPPORTED, CONTEXT_LANGUAGE_SUPPORTS_DISASSEMBLE_REQUEST, CONTEXT_CALLSTACK_ITEM_TYPE, REPL_VIEW_ID, WATCH_VIEW_ID, EDITOR_CONTRIBUTION_ID, CONTEXT_STEP_INTO_TARGETS_SUPPORTED, CONTEXT_EXCEPTION_WIDGET_VISIBLE } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
21
22
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
22
23
  import { getEvaluatableExpressionAtPosition } from 'vscode/vscode/vs/workbench/contrib/debug/common/debugUtils';
23
24
  import { DisassemblyViewInput } from 'vscode/vscode/vs/workbench/contrib/debug/common/disassemblyViewInput';
@@ -35,8 +36,8 @@ class ToggleBreakpointAction extends Action2 {
35
36
  precondition: CONTEXT_DEBUGGERS_AVAILABLE,
36
37
  keybinding: {
37
38
  when: ( (ContextKeyExpr.or(EditorContextKeys.editorTextFocus, CONTEXT_DISASSEMBLY_VIEW_FOCUS))),
38
- primary: 67 ,
39
- weight: 100
39
+ primary: KeyCode.F9,
40
+ weight: KeybindingWeight.EditorContrib
40
41
  },
41
42
  menu: {
42
43
  id: MenuId.MenubarDebugMenu,
@@ -104,7 +105,7 @@ class ConditionalBreakpointAction extends EditorAction {
104
105
  const debugService = accessor.get(IDebugService);
105
106
  const position = editor.getPosition();
106
107
  if (position && editor.hasModel() && debugService.canSetBreakpointsIn(editor.getModel())) {
107
- editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, undefined, 0 );
108
+ editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, undefined, BreakpointWidgetContext.CONDITION);
108
109
  }
109
110
  }
110
111
  }
@@ -130,7 +131,7 @@ class LogPointAction extends EditorAction {
130
131
  const debugService = accessor.get(IDebugService);
131
132
  const position = editor.getPosition();
132
133
  if (position && editor.hasModel() && debugService.canSetBreakpointsIn(editor.getModel())) {
133
- editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column, 2 );
134
+ editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column, BreakpointWidgetContext.LOG_MESSAGE);
134
135
  }
135
136
  }
136
137
  }
@@ -156,7 +157,7 @@ class TriggerByBreakpointAction extends EditorAction {
156
157
  const debugService = accessor.get(IDebugService);
157
158
  const position = editor.getPosition();
158
159
  if (position && editor.hasModel() && debugService.canSetBreakpointsIn(editor.getModel())) {
159
- editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column, 3 );
160
+ editor.getContribution(BREAKPOINT_EDITOR_CONTRIBUTION_ID)?.showBreakpointWidget(position.lineNumber, position.column, BreakpointWidgetContext.TRIGGER_POINT);
160
161
  }
161
162
  }
162
163
  }
@@ -397,8 +398,8 @@ class ShowDebugHoverAction extends EditorAction {
397
398
  precondition: CONTEXT_IN_DEBUG_MODE,
398
399
  kbOpts: {
399
400
  kbExpr: EditorContextKeys.editorTextFocus,
400
- primary: KeyChord(2048 | 41 , 2048 | 39 ),
401
- weight: 100
401
+ primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyI),
402
+ weight: KeybindingWeight.EditorContrib
402
403
  }
403
404
  });
404
405
  }
@@ -549,8 +550,8 @@ class CloseExceptionWidgetAction extends EditorAction {
549
550
  alias: 'Close Exception Widget',
550
551
  precondition: CONTEXT_EXCEPTION_WIDGET_VISIBLE,
551
552
  kbOpts: {
552
- primary: 9 ,
553
- weight: 100
553
+ primary: KeyCode.Escape,
554
+ weight: KeybindingWeight.EditorContrib
554
555
  }
555
556
  });
556
557
  }