@theia/debug 1.65.0-next.6 → 1.65.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 (105) hide show
  1. package/lib/browser/console/debug-console-items.d.ts.map +1 -1
  2. package/lib/browser/console/debug-console-items.js +34 -20
  3. package/lib/browser/console/debug-console-items.js.map +1 -1
  4. package/lib/browser/debug-configuration-manager.d.ts +2 -2
  5. package/lib/browser/debug-configuration-manager.d.ts.map +1 -1
  6. package/lib/browser/debug-configuration-manager.js +8 -9
  7. package/lib/browser/debug-configuration-manager.js.map +1 -1
  8. package/lib/browser/debug-configuration-model.d.ts +1 -1
  9. package/lib/browser/debug-configuration-model.d.ts.map +1 -1
  10. package/lib/browser/debug-configuration-model.js.map +1 -1
  11. package/lib/browser/debug-frontend-application-contribution.d.ts +17 -3
  12. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  13. package/lib/browser/debug-frontend-application-contribution.js +208 -44
  14. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  15. package/lib/browser/debug-frontend-module.js +2 -2
  16. package/lib/browser/debug-frontend-module.js.map +1 -1
  17. package/lib/browser/debug-prefix-configuration.d.ts +1 -1
  18. package/lib/browser/debug-prefix-configuration.d.ts.map +1 -1
  19. package/lib/browser/debug-prefix-configuration.js +3 -2
  20. package/lib/browser/debug-prefix-configuration.js.map +1 -1
  21. package/lib/browser/debug-schema-updater.d.ts +0 -1
  22. package/lib/browser/debug-schema-updater.d.ts.map +1 -1
  23. package/lib/browser/debug-schema-updater.js +5 -5
  24. package/lib/browser/debug-schema-updater.js.map +1 -1
  25. package/lib/browser/debug-session-contribution.d.ts +1 -1
  26. package/lib/browser/debug-session-contribution.d.ts.map +1 -1
  27. package/lib/browser/debug-session-contribution.js +1 -1
  28. package/lib/browser/debug-session-contribution.js.map +1 -1
  29. package/lib/browser/debug-session-manager.d.ts.map +1 -1
  30. package/lib/browser/debug-session-manager.js +14 -8
  31. package/lib/browser/debug-session-manager.js.map +1 -1
  32. package/lib/browser/debug-session.d.ts +8 -0
  33. package/lib/browser/debug-session.d.ts.map +1 -1
  34. package/lib/browser/debug-session.js +13 -3
  35. package/lib/browser/debug-session.js.map +1 -1
  36. package/lib/browser/disassembly-view/disassembly-view-contribution.js +1 -1
  37. package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +1 -1
  38. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +2 -2
  39. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +1 -1
  40. package/lib/browser/disassembly-view/disassembly-view-widget.js +3 -3
  41. package/lib/browser/disassembly-view/disassembly-view-widget.js.map +1 -1
  42. package/lib/browser/editor/debug-editor-model.d.ts.map +1 -1
  43. package/lib/browser/editor/debug-editor-model.js +16 -10
  44. package/lib/browser/editor/debug-editor-model.js.map +1 -1
  45. package/lib/browser/editor/debug-inline-value-decorator.d.ts +1 -1
  46. package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +1 -1
  47. package/lib/browser/editor/debug-inline-value-decorator.js +1 -1
  48. package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -1
  49. package/lib/browser/model/debug-breakpoint.d.ts.map +1 -1
  50. package/lib/browser/model/debug-breakpoint.js +3 -2
  51. package/lib/browser/model/debug-breakpoint.js.map +1 -1
  52. package/lib/browser/model/debug-instruction-breakpoint.js +1 -1
  53. package/lib/browser/model/debug-instruction-breakpoint.js.map +1 -1
  54. package/lib/browser/model/debug-source-breakpoint.d.ts.map +1 -1
  55. package/lib/browser/model/debug-source-breakpoint.js +10 -9
  56. package/lib/browser/model/debug-source-breakpoint.js.map +1 -1
  57. package/lib/browser/model/debug-thread.js +1 -1
  58. package/lib/browser/model/debug-thread.js.map +1 -1
  59. package/lib/browser/view/debug-stack-frames-source.d.ts.map +1 -1
  60. package/lib/browser/view/debug-stack-frames-source.js +2 -1
  61. package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
  62. package/lib/browser/view/debug-view-model.d.ts.map +1 -1
  63. package/lib/browser/view/debug-view-model.js +1 -1
  64. package/lib/browser/view/debug-view-model.js.map +1 -1
  65. package/lib/{browser → common}/debug-preferences.d.ts +1 -1
  66. package/lib/{browser → common}/debug-preferences.d.ts.map +1 -1
  67. package/lib/{browser → common}/debug-preferences.js +4 -5
  68. package/lib/common/debug-preferences.js.map +1 -0
  69. package/lib/common/inline-debug-adapter.d.ts +3 -0
  70. package/lib/common/inline-debug-adapter.d.ts.map +1 -1
  71. package/lib/{browser/preferences → common}/launch-preferences.d.ts +2 -1
  72. package/lib/common/launch-preferences.d.ts.map +1 -0
  73. package/lib/{browser/preferences → common}/launch-preferences.js +8 -10
  74. package/lib/common/launch-preferences.js.map +1 -0
  75. package/lib/node/debug-backend-module.d.ts.map +1 -1
  76. package/lib/node/debug-backend-module.js +4 -0
  77. package/lib/node/debug-backend-module.js.map +1 -1
  78. package/package.json +16 -16
  79. package/src/browser/console/debug-console-items.tsx +32 -20
  80. package/src/browser/debug-configuration-manager.ts +5 -6
  81. package/src/browser/debug-configuration-model.ts +1 -2
  82. package/src/browser/debug-frontend-application-contribution.ts +231 -50
  83. package/src/browser/debug-frontend-module.ts +2 -2
  84. package/src/browser/debug-prefix-configuration.ts +3 -3
  85. package/src/browser/debug-schema-updater.ts +2 -2
  86. package/src/browser/debug-session-contribution.ts +1 -1
  87. package/src/browser/debug-session-manager.ts +14 -8
  88. package/src/browser/debug-session.tsx +14 -2
  89. package/src/browser/disassembly-view/disassembly-view-contribution.ts +1 -1
  90. package/src/browser/disassembly-view/disassembly-view-widget.ts +2 -2
  91. package/src/browser/editor/debug-editor-model.ts +15 -10
  92. package/src/browser/editor/debug-inline-value-decorator.ts +1 -1
  93. package/src/browser/model/debug-breakpoint.tsx +3 -2
  94. package/src/browser/model/debug-instruction-breakpoint.tsx +1 -1
  95. package/src/browser/model/debug-source-breakpoint.tsx +13 -10
  96. package/src/browser/model/debug-thread.tsx +1 -1
  97. package/src/browser/style/index.css +6 -2
  98. package/src/browser/view/debug-stack-frames-source.tsx +2 -1
  99. package/src/browser/view/debug-view-model.ts +2 -2
  100. package/src/{browser → common}/debug-preferences.ts +4 -5
  101. package/src/{browser/preferences → common}/launch-preferences.ts +5 -6
  102. package/src/node/debug-backend-module.ts +4 -0
  103. package/lib/browser/debug-preferences.js.map +0 -1
  104. package/lib/browser/preferences/launch-preferences.d.ts.map +0 -1
  105. package/lib/browser/preferences/launch-preferences.js.map +0 -1
@@ -22,6 +22,7 @@ const source_tree_1 = require("@theia/core/lib/browser/source-tree");
22
22
  const inversify_1 = require("@theia/core/shared/inversify");
23
23
  const monaco = require("@theia/monaco-editor-core");
24
24
  const common_1 = require("@theia/core/lib/common");
25
+ const promise_util_1 = require("@theia/core/lib/common/promise-util");
25
26
  const browser_2 = require("@theia/editor/lib/browser");
26
27
  const debug_session_manager_1 = require("./debug-session-manager");
27
28
  const debug_widget_1 = require("./view/debug-widget");
@@ -42,7 +43,7 @@ const debug_editor_service_1 = require("./editor/debug-editor-service");
42
43
  const debug_console_contribution_1 = require("./console/debug-console-contribution");
43
44
  const debug_service_1 = require("../common/debug-service");
44
45
  const debug_schema_updater_1 = require("./debug-schema-updater");
45
- const debug_preferences_1 = require("./debug-preferences");
46
+ const debug_preferences_1 = require("../common/debug-preferences");
46
47
  const debug_watch_widget_1 = require("./view/debug-watch-widget");
47
48
  const debug_watch_expression_1 = require("./view/debug-watch-expression");
48
49
  const debug_watch_manager_1 = require("./debug-watch-manager");
@@ -52,6 +53,8 @@ const nls_1 = require("@theia/core/lib/common/nls");
52
53
  const debug_instruction_breakpoint_1 = require("./model/debug-instruction-breakpoint");
53
54
  const debug_exception_breakpoint_1 = require("./view/debug-exception-breakpoint");
54
55
  const debug_toolbar_widget_1 = require("./view/debug-toolbar-widget");
56
+ const console_widget_1 = require("@theia/console/lib/browser/console-widget");
57
+ const console_contribution_1 = require("@theia/console/lib/browser/console-contribution");
55
58
  var DebugMenus;
56
59
  (function (DebugMenus) {
57
60
  DebugMenus.DEBUG = [...common_1.MAIN_MENU_BAR, '6_debug'];
@@ -178,21 +181,21 @@ var DebugCommands;
178
181
  category: DebugCommands.DEBUG_CATEGORY,
179
182
  label: 'Add Function Breakpoint',
180
183
  });
181
- DebugCommands.ENABLE_SELECTED_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
184
+ DebugCommands.ENABLE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
182
185
  id: 'debug.breakpoint.enableSelected',
183
186
  category: DebugCommands.DEBUG_CATEGORY,
184
187
  label: 'Enable Selected Breakpoints',
185
- });
188
+ }, 'theia/debug/enableSelectedBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
186
189
  DebugCommands.ENABLE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
187
190
  id: 'debug.breakpoint.enableAll',
188
191
  category: DebugCommands.DEBUG_CATEGORY,
189
192
  label: 'Enable All Breakpoints',
190
193
  });
191
- DebugCommands.DISABLE_SELECTED_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
194
+ DebugCommands.DISABLE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
192
195
  id: 'debug.breakpoint.disableSelected',
193
196
  category: DebugCommands.DEBUG_CATEGORY,
194
197
  label: 'Disable Selected Breakpoints',
195
- });
198
+ }, 'theia/debug/disableSelectedBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
196
199
  DebugCommands.DISABLE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
197
200
  id: 'debug.breakpoint.disableAll',
198
201
  category: DebugCommands.DEBUG_CATEGORY,
@@ -244,11 +247,26 @@ var DebugCommands;
244
247
  id: 'editor.debug.action.showDebugHover',
245
248
  label: 'Debug: Show Hover'
246
249
  });
250
+ DebugCommands.EVALUATE_IN_DEBUG_CONSOLE = common_1.Command.toDefaultLocalizedCommand({
251
+ id: 'editor.debug.action.selectionToRepl',
252
+ category: DebugCommands.DEBUG_CATEGORY,
253
+ label: 'Evaluate in Debug Console'
254
+ });
247
255
  DebugCommands.JUMP_TO_CURSOR = common_1.Command.toDefaultLocalizedCommand({
248
256
  id: 'editor.debug.action.jumpToCursor',
249
257
  category: DebugCommands.DEBUG_CATEGORY,
250
258
  label: 'Jump to Cursor'
251
259
  });
260
+ DebugCommands.RUN_TO_CURSOR = common_1.Command.toDefaultLocalizedCommand({
261
+ id: 'editor.debug.action.runToCursor',
262
+ category: DebugCommands.DEBUG_CATEGORY,
263
+ label: 'Run to Cursor'
264
+ });
265
+ DebugCommands.RUN_TO_LINE = common_1.Command.toDefaultLocalizedCommand({
266
+ id: 'editor.debug.action.runToLine',
267
+ category: DebugCommands.DEBUG_CATEGORY,
268
+ label: 'Run to Line'
269
+ });
252
270
  DebugCommands.RESTART_FRAME = common_1.Command.toDefaultLocalizedCommand({
253
271
  id: 'debug.frame.restart',
254
272
  category: DebugCommands.DEBUG_CATEGORY,
@@ -387,6 +405,9 @@ var DebugEditorContextCommands;
387
405
  DebugEditorContextCommands.JUMP_TO_CURSOR = {
388
406
  id: 'debug.editor.context.jumpToCursor'
389
407
  };
408
+ DebugEditorContextCommands.RUN_TO_LINE = {
409
+ id: 'debug.editor.context.runToLine'
410
+ };
390
411
  })(DebugEditorContextCommands || (exports.DebugEditorContextCommands = DebugEditorContextCommands = {}));
391
412
  var DebugBreakpointWidgetCommands;
392
413
  (function (DebugBreakpointWidgetCommands) {
@@ -484,7 +505,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
484
505
  commandId: command.id,
485
506
  label: label && label.startsWith(debug) && label.slice(debug.length).trimStart() || label,
486
507
  icon: command.iconClass,
487
- order: String.fromCharCode('a'.charCodeAt(0) + index)
508
+ order: command.order || String.fromCharCode('a'.charCodeAt(0) + index)
488
509
  });
489
510
  }
490
511
  };
@@ -501,6 +522,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
501
522
  registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.TERMINATE_MENU, { ...DebugCommands.RESTART, ...DebugSessionContextCommands.RESTART }, { ...DebugCommands.STOP, ...DebugSessionContextCommands.STOP }, { ...DebugThreadContextCommands.TERMINATE, label: nls_1.nls.localizeByDefault('Terminate Thread') });
502
523
  registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.OPEN_MENU, { ...DebugSessionContextCommands.REVEAL, label: nls_1.nls.localize('theia/debug/reveal', 'Reveal') });
503
524
  registerMenuActions(debug_stack_frames_widget_1.DebugStackFramesWidget.CONTEXT_MENU, DebugCommands.RESTART_FRAME, DebugCommands.COPY_CALL_STACK);
525
+ registerMenuActions(console_contribution_1.ConsoleContextMenu.CLIPBOARD, { ...DebugCommands.COPY_VARIABLE_VALUE, order: 'a1a' }, { ...DebugCommands.COPY_VARIABLE_AS_EXPRESSION, order: 'a1b' });
504
526
  registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.EDIT_MENU, DebugCommands.SET_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_AS_EXPRESSION);
505
527
  registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.WATCH_MENU, DebugCommands.WATCH_VARIABLE);
506
528
  registerMenuActions(debug_watch_widget_1.DebugWatchWidget.EDIT_MENU, DebugCommands.EDIT_WATCH_EXPRESSION, DebugCommands.COPY_WATCH_EXPRESSION_VALUE);
@@ -509,10 +531,11 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
509
531
  registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.REMOVE_MENU, DebugCommands.REMOVE_BREAKPOINT, DebugCommands.REMOVE_LOGPOINT, DebugCommands.REMOVE_SELECTED_BREAKPOINTS, DebugCommands.REMOVE_ALL_BREAKPOINTS);
510
532
  registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.ENABLE_MENU, DebugCommands.ENABLE_SELECTED_BREAKPOINTS, DebugCommands.DISABLE_SELECTED_BREAKPOINTS, DebugCommands.ENABLE_ALL_BREAKPOINTS, DebugCommands.DISABLE_ALL_BREAKPOINTS);
511
533
  const DEBUG_EDITOR_CONTEXT_MENU_GROUP = [...browser_2.EDITOR_CONTEXT_MENU, '2_debug'];
512
- registerMenuActions(DEBUG_EDITOR_CONTEXT_MENU_GROUP, DebugCommands.JUMP_TO_CURSOR);
513
- registerMenuActions(debug_editor_model_1.DebugEditorModel.CONTEXT_MENU, { ...DebugEditorContextCommands.ADD_BREAKPOINT, label: nls_1.nls.localizeByDefault('Add Breakpoint') }, { ...DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT, label: DebugCommands.ADD_CONDITIONAL_BREAKPOINT.label }, { ...DebugEditorContextCommands.ADD_LOGPOINT, label: DebugCommands.ADD_LOGPOINT.label }, { ...DebugEditorContextCommands.REMOVE_BREAKPOINT, label: DebugCommands.REMOVE_BREAKPOINT.label }, { ...DebugEditorContextCommands.EDIT_BREAKPOINT, label: DebugCommands.EDIT_BREAKPOINT.label }, { ...DebugEditorContextCommands.ENABLE_BREAKPOINT, label: nlsEnableBreakpoint('Breakpoint') }, { ...DebugEditorContextCommands.DISABLE_BREAKPOINT, label: nlsDisableBreakpoint('Breakpoint') }, { ...DebugEditorContextCommands.REMOVE_LOGPOINT, label: DebugCommands.REMOVE_LOGPOINT.label }, { ...DebugEditorContextCommands.EDIT_LOGPOINT, label: DebugCommands.EDIT_LOGPOINT.label }, { ...DebugEditorContextCommands.ENABLE_LOGPOINT, label: nlsEnableBreakpoint('Logpoint') }, { ...DebugEditorContextCommands.DISABLE_LOGPOINT, label: nlsDisableBreakpoint('Logpoint') }, { ...DebugEditorContextCommands.JUMP_TO_CURSOR, label: nls_1.nls.localizeByDefault('Jump to Cursor') });
534
+ registerMenuActions(DEBUG_EDITOR_CONTEXT_MENU_GROUP, DebugCommands.EVALUATE_IN_DEBUG_CONSOLE, DebugCommands.JUMP_TO_CURSOR, DebugCommands.RUN_TO_CURSOR, DebugCommands.RUN_TO_LINE);
535
+ registerMenuActions([...debug_editor_model_1.DebugEditorModel.CONTEXT_MENU, '1_breakpoint'], { ...DebugEditorContextCommands.ADD_BREAKPOINT, label: nls_1.nls.localizeByDefault('Add Breakpoint') }, { ...DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT, label: DebugCommands.ADD_CONDITIONAL_BREAKPOINT.label }, { ...DebugEditorContextCommands.ADD_LOGPOINT, label: DebugCommands.ADD_LOGPOINT.label }, { ...DebugEditorContextCommands.REMOVE_BREAKPOINT, label: DebugCommands.REMOVE_BREAKPOINT.label }, { ...DebugEditorContextCommands.EDIT_BREAKPOINT, label: DebugCommands.EDIT_BREAKPOINT.label }, { ...DebugEditorContextCommands.ENABLE_BREAKPOINT, label: nlsEnableBreakpoint('Breakpoint') }, { ...DebugEditorContextCommands.DISABLE_BREAKPOINT, label: nlsDisableBreakpoint('Breakpoint') }, { ...DebugEditorContextCommands.REMOVE_LOGPOINT, label: DebugCommands.REMOVE_LOGPOINT.label }, { ...DebugEditorContextCommands.EDIT_LOGPOINT, label: DebugCommands.EDIT_LOGPOINT.label }, { ...DebugEditorContextCommands.ENABLE_LOGPOINT, label: nlsEnableBreakpoint('Logpoint') }, { ...DebugEditorContextCommands.DISABLE_LOGPOINT, label: nlsDisableBreakpoint('Logpoint') });
536
+ registerMenuActions([...debug_editor_model_1.DebugEditorModel.CONTEXT_MENU, '2_control'], { ...DebugEditorContextCommands.JUMP_TO_CURSOR, label: nls_1.nls.localizeByDefault('Jump to Cursor') }, { ...DebugEditorContextCommands.RUN_TO_LINE, label: DebugCommands.RUN_TO_LINE.label });
514
537
  menus.linkCompoundMenuNode({ newParentPath: browser_2.EDITOR_LINENUMBER_CONTEXT_MENU, submenuPath: debug_editor_model_1.DebugEditorModel.CONTEXT_MENU });
515
- menus.registerSubmenu(debug_toolbar_widget_1.DebugToolBar.MENU, 'Debug Toolbar Menu');
538
+ menus.registerSubmenu(debug_toolbar_widget_1.DebugToolBar.MENU, nls_1.nls.localize('theia/debug/debugToolbarMenu', 'Debug Toolbar Menu'));
516
539
  }
517
540
  registerCommands(registry) {
518
541
  super.registerCommands(registry);
@@ -549,8 +572,13 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
549
572
  isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
550
573
  });
551
574
  registry.registerCommand(DebugCommands.CONTINUE, {
552
- execute: () => this.manager.currentThread && this.manager.currentThread.continue(),
553
- isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
575
+ execute: () => {
576
+ if (this.manager.state === debug_session_1.DebugState.Stopped && this.manager.currentThread) {
577
+ this.manager.currentThread.continue();
578
+ }
579
+ },
580
+ // When there is a debug session, F5 should always be captured by this command
581
+ isEnabled: () => this.manager.state !== debug_session_1.DebugState.Inactive
554
582
  });
555
583
  registry.registerCommand(DebugCommands.PAUSE, {
556
584
  execute: () => this.manager.currentThread && this.manager.currentThread.pause(),
@@ -733,6 +761,20 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
733
761
  execute: () => this.editors.showHover(),
734
762
  isEnabled: () => this.editors.canShowHover()
735
763
  });
764
+ registry.registerCommand(DebugCommands.EVALUATE_IN_DEBUG_CONSOLE, {
765
+ execute: async () => {
766
+ const { model } = this.editors;
767
+ if (model) {
768
+ const { editor } = model;
769
+ const { selection, document } = editor;
770
+ const value = document.getText(selection) || document.getLineContent(selection.start.line + 1).trim();
771
+ const consoleWidget = await this.console.openView({ reveal: true, activate: false });
772
+ await consoleWidget.execute(value);
773
+ }
774
+ },
775
+ isEnabled: () => !!this.editors.model && !!this.manager.currentFrame,
776
+ isVisible: () => !!this.editors.model && !!this.manager.currentFrame
777
+ });
736
778
  registry.registerCommand(DebugCommands.JUMP_TO_CURSOR, {
737
779
  execute: () => {
738
780
  const model = this.editors.model;
@@ -743,6 +785,28 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
743
785
  isEnabled: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto,
744
786
  isVisible: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto
745
787
  });
788
+ registry.registerCommand(DebugCommands.RUN_TO_CURSOR, {
789
+ execute: async () => {
790
+ const { model } = this.editors;
791
+ if (model) {
792
+ const { editor, position } = model;
793
+ await this.runTo(editor.getResourceUri(), position.lineNumber, position.column);
794
+ }
795
+ },
796
+ isEnabled: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
797
+ isVisible: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
798
+ });
799
+ registry.registerCommand(DebugCommands.RUN_TO_LINE, {
800
+ execute: async () => {
801
+ const { model } = this.editors;
802
+ if (model) {
803
+ const { editor, position } = model;
804
+ await this.runTo(editor.getResourceUri(), position.lineNumber);
805
+ }
806
+ },
807
+ isEnabled: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
808
+ isVisible: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
809
+ });
746
810
  registry.registerCommand(DebugCommands.RESTART_FRAME, {
747
811
  execute: () => this.selectedFrame && this.selectedFrame.restart(),
748
812
  isEnabled: () => !!this.selectedFrame
@@ -849,6 +913,18 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
849
913
  isEnabled: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto,
850
914
  isVisible: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto
851
915
  });
916
+ registry.registerCommand(DebugEditorContextCommands.RUN_TO_LINE, {
917
+ execute: async (position) => {
918
+ if (this.isPosition(position)) {
919
+ const { currentUri } = this.editors;
920
+ if (currentUri) {
921
+ await this.runTo(currentUri, position.lineNumber);
922
+ }
923
+ }
924
+ },
925
+ isEnabled: position => { var _a; return this.isPosition(position) && !!this.editors.currentUri && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
926
+ isVisible: position => { var _a; return this.isPosition(position) && !!this.editors.currentUri && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
927
+ });
852
928
  registry.registerCommand(DebugBreakpointWidgetCommands.ACCEPT, {
853
929
  execute: () => this.editors.acceptBreakpoint()
854
930
  });
@@ -923,11 +999,13 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
923
999
  super.registerKeybindings(keybindings);
924
1000
  keybindings.registerKeybinding({
925
1001
  command: DebugCommands.START.id,
926
- keybinding: 'f5'
1002
+ keybinding: 'f5',
1003
+ when: '!inDebugMode'
927
1004
  });
928
1005
  keybindings.registerKeybinding({
929
1006
  command: DebugCommands.START_NO_DEBUG.id,
930
- keybinding: 'ctrl+f5'
1007
+ keybinding: 'ctrl+f5',
1008
+ when: '!inDebugMode'
931
1009
  });
932
1010
  keybindings.registerKeybinding({
933
1011
  command: DebugCommands.STOP.id,
@@ -977,12 +1055,12 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
977
1055
  keybindings.registerKeybinding({
978
1056
  command: DebugBreakpointWidgetCommands.ACCEPT.id,
979
1057
  keybinding: 'enter',
980
- when: 'breakpointWidgetFocus'
1058
+ when: 'breakpointWidgetFocus && !suggestWidgetVisible'
981
1059
  });
982
1060
  keybindings.registerKeybinding({
983
1061
  command: DebugBreakpointWidgetCommands.CLOSE.id,
984
1062
  keybinding: 'esc',
985
- when: 'isBreakpointWidgetVisible || breakpointWidgetFocus'
1063
+ when: 'isBreakpointWidgetVisible || (breakpointWidgetFocus && !suggestWidgetVisible)'
986
1064
  });
987
1065
  }
988
1066
  registerToolbarItems(toolbar) {
@@ -1082,6 +1160,80 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1082
1160
  }
1083
1161
  await this.manager.start(current);
1084
1162
  }
1163
+ async runTo(uri, line, column) {
1164
+ const thread = this.manager.currentThread;
1165
+ if (!thread) {
1166
+ return;
1167
+ }
1168
+ const checkThread = () => {
1169
+ if (thread.stopped && thread === this.manager.currentThread) {
1170
+ return true;
1171
+ }
1172
+ console.warn('Cannot run to the specified location. The current thread has changed or is not stopped.');
1173
+ return false;
1174
+ };
1175
+ if (!checkThread()) {
1176
+ return;
1177
+ }
1178
+ const breakpoint = breakpoint_marker_1.SourceBreakpoint.create(uri, { line, column });
1179
+ let shouldRemoveBreakpoint = this.breakpointManager.addBreakpoint(breakpoint);
1180
+ const removeBreakpoint = () => {
1181
+ const breakpoints = this.breakpointManager.getBreakpoints(uri);
1182
+ const newBreakpoints = breakpoints.filter(bp => bp.id !== breakpoint.id);
1183
+ if (breakpoints.length !== newBreakpoints.length) {
1184
+ this.breakpointManager.setBreakpoints(uri, newBreakpoints);
1185
+ }
1186
+ };
1187
+ try {
1188
+ const sessionBreakpoint = await this.verifyBreakpoint(breakpoint, thread.session);
1189
+ if (!checkThread()) {
1190
+ return;
1191
+ }
1192
+ if (!sessionBreakpoint || !sessionBreakpoint.installed || !sessionBreakpoint.verified) {
1193
+ this.messageService.warn(nls_1.nls.localize('theia/debug/cannotRunToThisLocation', 'Could not run the current thread to the specified location.'));
1194
+ return;
1195
+ }
1196
+ const rawBreakpoint = sessionBreakpoint.raw; // an installed breakpoint always has the underlying raw breakpoint
1197
+ if (rawBreakpoint.line !== line || (column && rawBreakpoint.column !== column)) {
1198
+ const shouldRun = await new browser_1.ConfirmDialog({
1199
+ title: nls_1.nls.localize('theia/debug/confirmRunToShiftedPosition_title', 'Cannot run the current thread to exactly the specified location'),
1200
+ msg: nls_1.nls.localize('theia/debug/confirmRunToShiftedPosition_msg', 'The target position will be shifted to Ln {0}, Col {1}. Run anyway?', rawBreakpoint.line, rawBreakpoint.column || 1),
1201
+ ok: browser_1.Dialog.YES,
1202
+ cancel: browser_1.Dialog.NO
1203
+ }).open();
1204
+ if (!shouldRun || !checkThread()) {
1205
+ return;
1206
+ }
1207
+ }
1208
+ if (shouldRemoveBreakpoint) {
1209
+ common_1.Event.toPromise(common_1.Event.filter(common_1.Event.any(this.manager.onDidStopDebugSession, this.manager.onDidDestroyDebugSession), session => session === thread.session)).then(removeBreakpoint);
1210
+ }
1211
+ await thread.continue();
1212
+ shouldRemoveBreakpoint = false;
1213
+ }
1214
+ finally {
1215
+ if (shouldRemoveBreakpoint) {
1216
+ removeBreakpoint();
1217
+ }
1218
+ }
1219
+ }
1220
+ async verifyBreakpoint(breakpoint, session, timeout = 2000) {
1221
+ let sessionBreakpoint = session.getBreakpoint(breakpoint.id);
1222
+ if (!sessionBreakpoint || !sessionBreakpoint.installed || !sessionBreakpoint.verified) {
1223
+ try {
1224
+ await (0, promise_util_1.waitForEvent)(common_1.Event.filter(session.onDidChangeBreakpoints, () => {
1225
+ sessionBreakpoint = session.getBreakpoint(breakpoint.id);
1226
+ return !!sessionBreakpoint && sessionBreakpoint.installed && sessionBreakpoint.verified;
1227
+ }), timeout); // wait up to `timeout` ms for the breakpoint to become installed and verified
1228
+ }
1229
+ catch (e) {
1230
+ if (!(e instanceof common_1.CancellationError)) { // ignore the `CancellationError` on timeout
1231
+ throw e;
1232
+ }
1233
+ }
1234
+ }
1235
+ return sessionBreakpoint;
1236
+ }
1085
1237
  get threads() {
1086
1238
  const { currentWidget } = this.shell;
1087
1239
  return currentWidget instanceof debug_threads_widget_1.DebugThreadsWidget && currentWidget || undefined;
@@ -1146,13 +1298,21 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1146
1298
  return selected;
1147
1299
  }
1148
1300
  }
1301
+ get consoleWidget() {
1302
+ const { currentWidget } = this.shell;
1303
+ return currentWidget instanceof console_widget_1.ConsoleWidget && currentWidget.id === debug_console_contribution_1.DebugConsoleContribution.options.id && currentWidget || undefined;
1304
+ }
1149
1305
  get variables() {
1150
1306
  const { currentWidget } = this.shell;
1151
1307
  return currentWidget instanceof debug_variables_widget_1.DebugVariablesWidget && currentWidget || undefined;
1152
1308
  }
1309
+ get variablesSource() {
1310
+ var _a, _b;
1311
+ return (_a = this.variables) !== null && _a !== void 0 ? _a : (_b = this.consoleWidget) === null || _b === void 0 ? void 0 : _b.content;
1312
+ }
1153
1313
  get selectedVariable() {
1154
- const { variables } = this;
1155
- return variables && variables.selectedElement instanceof debug_console_items_1.DebugVariable && variables.selectedElement || undefined;
1314
+ const { variablesSource } = this;
1315
+ return variablesSource && variablesSource.selectedElement instanceof debug_console_items_1.DebugVariable && variablesSource.selectedElement || undefined;
1156
1316
  }
1157
1317
  get watch() {
1158
1318
  const { currentWidget } = this.shell;
@@ -1178,7 +1338,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1178
1338
  light: '#ffff6673',
1179
1339
  hcDark: '#fff600',
1180
1340
  hcLight: '#ffff6673'
1181
- }, description: 'Background color for the highlight of line at the top stack frame position.'
1341
+ }, description: nls_1.nls.localizeByDefault('Background color for the highlight of line at the top stack frame position.')
1182
1342
  }, {
1183
1343
  id: 'editor.focusedStackFrameHighlightBackground',
1184
1344
  defaults: {
@@ -1186,7 +1346,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1186
1346
  light: '#cee7ce73',
1187
1347
  hcDark: '#cee7ce',
1188
1348
  hcLight: '#cee7ce73'
1189
- }, description: 'Background color for the highlight of line at focused stack frame position.'
1349
+ }, description: nls_1.nls.localizeByDefault('Background color for the highlight of line at focused stack frame position.')
1190
1350
  },
1191
1351
  // Status bar colors should be aligned with debugging colors from https://code.visualstudio.com/api/references/theme-color#status-bar-colors
1192
1352
  {
@@ -1195,21 +1355,21 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1195
1355
  light: '#CC6633',
1196
1356
  hcDark: '#CC6633',
1197
1357
  hcLight: '#B5200D'
1198
- }, description: 'Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window'
1358
+ }, description: nls_1.nls.localizeByDefault('Status bar background color when a program is being debugged. The status bar is shown in the bottom of the window')
1199
1359
  }, {
1200
1360
  id: 'statusBar.debuggingForeground', defaults: {
1201
1361
  dark: 'statusBar.foreground',
1202
1362
  light: 'statusBar.foreground',
1203
1363
  hcDark: 'statusBar.foreground',
1204
1364
  hcLight: 'statusBar.foreground'
1205
- }, description: 'Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window'
1365
+ }, description: nls_1.nls.localizeByDefault('Status bar foreground color when a program is being debugged. The status bar is shown in the bottom of the window')
1206
1366
  }, {
1207
1367
  id: 'statusBar.debuggingBorder', defaults: {
1208
1368
  dark: 'statusBar.border',
1209
1369
  light: 'statusBar.border',
1210
1370
  hcDark: 'statusBar.border',
1211
1371
  hcLight: 'statusBar.border'
1212
- }, description: 'Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window'
1372
+ }, description: nls_1.nls.localizeByDefault('Status bar border color separating to the sidebar and editor when a program is being debugged. The status bar is shown in the bottom of the window')
1213
1373
  },
1214
1374
  // Debug Exception Widget colors should be aligned with
1215
1375
  // https://github.com/microsoft/vscode/blob/ff5f581425da6230b6f9216ecf19abf6c9d285a6/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts#L23
@@ -1219,14 +1379,14 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1219
1379
  light: '#a31515',
1220
1380
  hcDark: '#a31515',
1221
1381
  hcLight: '#a31515'
1222
- }, description: 'Exception widget border color.',
1382
+ }, description: nls_1.nls.localizeByDefault('Exception widget border color.'),
1223
1383
  }, {
1224
1384
  id: 'debugExceptionWidget.background', defaults: {
1225
1385
  dark: '#420b0d',
1226
1386
  light: '#f1dfde',
1227
1387
  hcDark: '#420b0d',
1228
1388
  hcLight: '#f1dfde'
1229
- }, description: 'Exception widget background color.'
1389
+ }, description: nls_1.nls.localizeByDefault('Exception widget background color.')
1230
1390
  },
1231
1391
  // Debug Icon colors should be aligned with
1232
1392
  // https://code.visualstudio.com/api/references/theme-color#debug-icons-colors
@@ -1237,7 +1397,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1237
1397
  hcDark: '#E51400',
1238
1398
  hcLight: '#E51400'
1239
1399
  },
1240
- description: 'Icon color for breakpoints.'
1400
+ description: nls_1.nls.localizeByDefault('Icon color for breakpoints.')
1241
1401
  }, {
1242
1402
  id: 'debugIcon.breakpointDisabledForeground', defaults: {
1243
1403
  dark: '#848484',
@@ -1245,7 +1405,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1245
1405
  hcDark: '#848484',
1246
1406
  hcLight: '#848484'
1247
1407
  },
1248
- description: 'Icon color for disabled breakpoints.'
1408
+ description: nls_1.nls.localizeByDefault('Icon color for disabled breakpoints.')
1249
1409
  }, {
1250
1410
  id: 'debugIcon.breakpointUnverifiedForeground', defaults: {
1251
1411
  dark: '#848484',
@@ -1253,7 +1413,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1253
1413
  hcDark: '#848484',
1254
1414
  hcLight: '#848484'
1255
1415
  },
1256
- description: 'Icon color for unverified breakpoints.'
1416
+ description: nls_1.nls.localizeByDefault('Icon color for unverified breakpoints.')
1257
1417
  }, {
1258
1418
  id: 'debugIcon.breakpointCurrentStackframeForeground', defaults: {
1259
1419
  dark: '#FFCC00',
@@ -1261,7 +1421,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1261
1421
  hcDark: '#FFCC00',
1262
1422
  hcLight: '#BE8700'
1263
1423
  },
1264
- description: 'Icon color for the current breakpoint stack frame.'
1424
+ description: nls_1.nls.localizeByDefault('Icon color for the current breakpoint stack frame.')
1265
1425
  }, {
1266
1426
  id: 'debugIcon.breakpointStackframeForeground', defaults: {
1267
1427
  dark: '#89D185',
@@ -1269,84 +1429,84 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1269
1429
  hcDark: '#89D185',
1270
1430
  hcLight: '#89D185'
1271
1431
  },
1272
- description: 'Icon color for all breakpoint stack frames.'
1432
+ description: nls_1.nls.localizeByDefault('Icon color for all breakpoint stack frames.')
1273
1433
  }, {
1274
1434
  id: 'debugIcon.startForeground', defaults: {
1275
1435
  dark: '#89D185',
1276
1436
  light: '#388A34',
1277
1437
  hcDark: '#89D185',
1278
1438
  hcLight: '#388A34'
1279
- }, description: 'Debug toolbar icon for start debugging.'
1439
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for start debugging.')
1280
1440
  }, {
1281
1441
  id: 'debugIcon.pauseForeground', defaults: {
1282
1442
  dark: '#75BEFF',
1283
1443
  light: '#007ACC',
1284
1444
  hcDark: '#75BEFF',
1285
1445
  hcLight: '#007ACC'
1286
- }, description: 'Debug toolbar icon for pause.'
1446
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for pause.')
1287
1447
  }, {
1288
1448
  id: 'debugIcon.stopForeground', defaults: {
1289
1449
  dark: '#F48771',
1290
1450
  light: '#A1260D',
1291
1451
  hcDark: '#F48771',
1292
1452
  hcLight: '#A1260D'
1293
- }, description: 'Debug toolbar icon for stop.'
1453
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for stop.')
1294
1454
  }, {
1295
1455
  id: 'debugIcon.disconnectForeground', defaults: {
1296
1456
  dark: '#F48771',
1297
1457
  light: '#A1260D',
1298
1458
  hcDark: '#F48771',
1299
1459
  hcLight: '#A1260D'
1300
- }, description: 'Debug toolbar icon for disconnect.'
1460
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for disconnect.')
1301
1461
  }, {
1302
1462
  id: 'debugIcon.restartForeground', defaults: {
1303
1463
  dark: '#89D185',
1304
1464
  light: '#388A34',
1305
1465
  hcDark: '#89D185',
1306
1466
  hcLight: '#388A34'
1307
- }, description: 'Debug toolbar icon for restart.'
1467
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for restart.')
1308
1468
  }, {
1309
1469
  id: 'debugIcon.stepOverForeground', defaults: {
1310
1470
  dark: '#75BEFF',
1311
1471
  light: '#007ACC',
1312
1472
  hcDark: '#75BEFF',
1313
1473
  hcLight: '#007ACC',
1314
- }, description: 'Debug toolbar icon for step over.'
1474
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step over.')
1315
1475
  }, {
1316
1476
  id: 'debugIcon.stepIntoForeground', defaults: {
1317
1477
  dark: '#75BEFF',
1318
1478
  light: '#007ACC',
1319
1479
  hcDark: '#75BEFF',
1320
1480
  hcLight: '#007ACC'
1321
- }, description: 'Debug toolbar icon for step into.'
1481
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step into.')
1322
1482
  }, {
1323
1483
  id: 'debugIcon.stepOutForeground', defaults: {
1324
1484
  dark: '#75BEFF',
1325
1485
  light: '#007ACC',
1326
1486
  hcDark: '#75BEFF',
1327
1487
  hcLight: '#007ACC',
1328
- }, description: 'Debug toolbar icon for step over.'
1488
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step over.')
1329
1489
  }, {
1330
1490
  id: 'debugIcon.continueForeground', defaults: {
1331
1491
  dark: '#75BEFF',
1332
1492
  light: '#007ACC',
1333
1493
  hcDark: '#75BEFF',
1334
1494
  hcLight: '#007ACC'
1335
- }, description: 'Debug toolbar icon for continue.'
1495
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for continue.')
1336
1496
  }, {
1337
1497
  id: 'debugIcon.stepBackForeground', defaults: {
1338
1498
  dark: '#75BEFF',
1339
1499
  light: '#007ACC',
1340
1500
  hcDark: '#75BEFF',
1341
1501
  hcLight: '#007ACC'
1342
- }, description: 'Debug toolbar icon for step back.'
1502
+ }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step back.')
1343
1503
  }, {
1344
1504
  id: 'debugConsole.infoForeground', defaults: {
1345
1505
  dark: 'editorInfo.foreground',
1346
1506
  light: 'editorInfo.foreground',
1347
1507
  hcDark: 'foreground',
1348
1508
  hcLight: 'foreground'
1349
- }, description: 'Foreground color for info messages in debug REPL console.'
1509
+ }, description: 'Foreground color for info messages in debug REPL console.' // this description is present in VS Code, but is not currently localized there
1350
1510
  }, {
1351
1511
  id: 'debugConsole.warningForeground', defaults: {
1352
1512
  dark: 'editorWarning.foreground',
@@ -1354,7 +1514,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1354
1514
  hcDark: '#008000',
1355
1515
  hcLight: 'editorWarning.foreground'
1356
1516
  },
1357
- description: 'Foreground color for warning messages in debug REPL console.'
1517
+ description: 'Foreground color for warning messages in debug REPL console.' // this description is present in VS Code, but is not currently localized there
1358
1518
  }, {
1359
1519
  id: 'debugConsole.errorForeground', defaults: {
1360
1520
  dark: 'errorForeground',
@@ -1362,7 +1522,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1362
1522
  hcDark: 'errorForeground',
1363
1523
  hcLight: 'errorForeground'
1364
1524
  },
1365
- description: 'Foreground color for error messages in debug REPL console.',
1525
+ description: 'Foreground color for error messages in debug REPL console.', // this description is present in VS Code, but is not currently localized there
1366
1526
  }, {
1367
1527
  id: 'debugConsole.sourceForeground', defaults: {
1368
1528
  dark: 'foreground',
@@ -1370,7 +1530,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1370
1530
  hcDark: 'foreground',
1371
1531
  hcLight: 'foreground'
1372
1532
  },
1373
- description: 'Foreground color for source filenames in debug REPL console.',
1533
+ description: 'Foreground color for source filenames in debug REPL console.', // this description is present in VS Code, but is not currently localized there
1374
1534
  }, {
1375
1535
  id: 'debugConsoleInputIcon.foreground', defaults: {
1376
1536
  dark: 'foreground',
@@ -1378,7 +1538,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
1378
1538
  hcDark: 'foreground',
1379
1539
  hcLight: 'foreground'
1380
1540
  },
1381
- description: 'Foreground color for debug console input marker icon.'
1541
+ description: 'Foreground color for debug console input marker icon.' // this description is present in VS Code, but is not currently localized there
1382
1542
  });
1383
1543
  }
1384
1544
  updateStatusBar() {
@@ -1459,6 +1619,10 @@ tslib_1.__decorate([
1459
1619
  (0, inversify_1.inject)(browser_2.EditorManager),
1460
1620
  tslib_1.__metadata("design:type", browser_2.EditorManager)
1461
1621
  ], DebugFrontendApplicationContribution.prototype, "editorManager", void 0);
1622
+ tslib_1.__decorate([
1623
+ (0, inversify_1.inject)(common_1.MessageService),
1624
+ tslib_1.__metadata("design:type", common_1.MessageService)
1625
+ ], DebugFrontendApplicationContribution.prototype, "messageService", void 0);
1462
1626
  exports.DebugFrontendApplicationContribution = DebugFrontendApplicationContribution = tslib_1.__decorate([
1463
1627
  (0, inversify_1.injectable)(),
1464
1628
  tslib_1.__metadata("design:paramtypes", [])