@theia/debug 1.18.0 → 1.19.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 (143) hide show
  1. package/lib/browser/console/debug-console-contribution.d.ts +2 -0
  2. package/lib/browser/console/debug-console-contribution.d.ts.map +1 -1
  3. package/lib/browser/console/debug-console-contribution.js +9 -6
  4. package/lib/browser/console/debug-console-contribution.js.map +1 -1
  5. package/lib/browser/console/debug-console-session.d.ts +1 -1
  6. package/lib/browser/debug-configuration-manager.d.ts.map +1 -1
  7. package/lib/browser/debug-configuration-manager.js +8 -7
  8. package/lib/browser/debug-configuration-manager.js.map +1 -1
  9. package/lib/browser/debug-frontend-application-contribution.d.ts +5 -12
  10. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -1
  11. package/lib/browser/debug-frontend-application-contribution.js +131 -105
  12. package/lib/browser/debug-frontend-application-contribution.js.map +1 -1
  13. package/lib/browser/debug-preferences.d.ts +1 -0
  14. package/lib/browser/debug-preferences.d.ts.map +1 -1
  15. package/lib/browser/debug-preferences.js +22 -6
  16. package/lib/browser/debug-preferences.js.map +1 -1
  17. package/lib/browser/debug-prefix-configuration.d.ts.map +1 -1
  18. package/lib/browser/debug-prefix-configuration.js +3 -3
  19. package/lib/browser/debug-prefix-configuration.js.map +1 -1
  20. package/lib/browser/debug-session-connection.d.ts +1 -1
  21. package/lib/browser/debug-session-connection.d.ts.map +1 -1
  22. package/lib/browser/debug-session-contribution.d.ts +1 -1
  23. package/lib/browser/debug-session-contribution.d.ts.map +1 -1
  24. package/lib/browser/debug-session-contribution.js +1 -1
  25. package/lib/browser/debug-session-contribution.js.map +1 -1
  26. package/lib/browser/preferences/launch-preferences.d.ts.map +1 -1
  27. package/lib/browser/preferences/launch-preferences.js +2 -1
  28. package/lib/browser/preferences/launch-preferences.js.map +1 -1
  29. package/lib/browser/view/debug-breakpoints-source.d.ts +0 -1
  30. package/lib/browser/view/debug-breakpoints-source.d.ts.map +1 -1
  31. package/lib/browser/view/debug-breakpoints-source.js +1 -7
  32. package/lib/browser/view/debug-breakpoints-source.js.map +1 -1
  33. package/lib/browser/view/debug-breakpoints-widget.d.ts.map +1 -1
  34. package/lib/browser/view/debug-breakpoints-widget.js +2 -1
  35. package/lib/browser/view/debug-breakpoints-widget.js.map +1 -1
  36. package/lib/browser/view/debug-configuration-widget.d.ts +1 -1
  37. package/lib/browser/view/debug-configuration-widget.d.ts.map +1 -1
  38. package/lib/browser/view/debug-configuration-widget.js +8 -8
  39. package/lib/browser/view/debug-configuration-widget.js.map +1 -1
  40. package/lib/browser/view/debug-session-widget.d.ts +2 -1
  41. package/lib/browser/view/debug-session-widget.d.ts.map +1 -1
  42. package/lib/browser/view/debug-session-widget.js +12 -6
  43. package/lib/browser/view/debug-session-widget.js.map +1 -1
  44. package/lib/browser/view/debug-stack-frames-source.d.ts +0 -1
  45. package/lib/browser/view/debug-stack-frames-source.d.ts.map +1 -1
  46. package/lib/browser/view/debug-stack-frames-source.js +2 -5
  47. package/lib/browser/view/debug-stack-frames-source.js.map +1 -1
  48. package/lib/browser/view/debug-stack-frames-widget.d.ts.map +1 -1
  49. package/lib/browser/view/debug-stack-frames-widget.js +2 -1
  50. package/lib/browser/view/debug-stack-frames-widget.js.map +1 -1
  51. package/lib/browser/view/debug-threads-source.d.ts +0 -1
  52. package/lib/browser/view/debug-threads-source.d.ts.map +1 -1
  53. package/lib/browser/view/debug-threads-source.js +1 -7
  54. package/lib/browser/view/debug-threads-source.js.map +1 -1
  55. package/lib/browser/view/debug-threads-widget.d.ts.map +1 -1
  56. package/lib/browser/view/debug-threads-widget.js +2 -1
  57. package/lib/browser/view/debug-threads-widget.js.map +1 -1
  58. package/lib/browser/view/debug-toolbar-widget.d.ts.map +1 -1
  59. package/lib/browser/view/debug-toolbar-widget.js +9 -8
  60. package/lib/browser/view/debug-toolbar-widget.js.map +1 -1
  61. package/lib/browser/view/debug-variables-source.d.ts +0 -1
  62. package/lib/browser/view/debug-variables-source.d.ts.map +1 -1
  63. package/lib/browser/view/debug-variables-source.js +2 -5
  64. package/lib/browser/view/debug-variables-source.js.map +1 -1
  65. package/lib/browser/view/debug-variables-widget.d.ts.map +1 -1
  66. package/lib/browser/view/debug-variables-widget.js +2 -1
  67. package/lib/browser/view/debug-variables-widget.js.map +1 -1
  68. package/lib/browser/view/debug-watch-source.d.ts +0 -1
  69. package/lib/browser/view/debug-watch-source.d.ts.map +1 -1
  70. package/lib/browser/view/debug-watch-source.js +2 -5
  71. package/lib/browser/view/debug-watch-source.js.map +1 -1
  72. package/lib/browser/view/debug-watch-widget.d.ts.map +1 -1
  73. package/lib/browser/view/debug-watch-widget.js +2 -1
  74. package/lib/browser/view/debug-watch-widget.js.map +1 -1
  75. package/lib/browser/view/debug-widget.d.ts.map +1 -1
  76. package/lib/browser/view/debug-widget.js +2 -1
  77. package/lib/browser/view/debug-widget.js.map +1 -1
  78. package/lib/node/debug-adapter-contribution-registry.d.ts +1 -1
  79. package/lib/node/debug-adapter-contribution-registry.d.ts.map +1 -1
  80. package/lib/node/debug-adapter-contribution-registry.js +1 -1
  81. package/lib/node/debug-adapter-contribution-registry.js.map +1 -1
  82. package/lib/node/debug-adapter-factory.d.ts +1 -1
  83. package/lib/node/debug-adapter-factory.d.ts.map +1 -1
  84. package/lib/node/debug-adapter-factory.js +8 -10
  85. package/lib/node/debug-adapter-factory.js.map +1 -1
  86. package/lib/node/debug-adapter-session-manager.d.ts +1 -1
  87. package/lib/node/debug-adapter-session-manager.d.ts.map +1 -1
  88. package/lib/node/debug-adapter-session-manager.js +1 -1
  89. package/lib/node/debug-adapter-session-manager.js.map +1 -1
  90. package/lib/node/debug-adapter-session.d.ts +1 -7
  91. package/lib/node/debug-adapter-session.d.ts.map +1 -1
  92. package/lib/node/debug-adapter-session.js +4 -48
  93. package/lib/node/debug-adapter-session.js.map +1 -1
  94. package/lib/node/debug-backend-module.js +1 -1
  95. package/lib/node/debug-backend-module.js.map +1 -1
  96. package/lib/{common → node}/debug-model.d.ts +6 -5
  97. package/lib/node/debug-model.d.ts.map +1 -0
  98. package/lib/{common → node}/debug-model.js +0 -0
  99. package/lib/node/debug-model.js.map +1 -0
  100. package/lib/node/inline-communication-provider.d.ts +33 -0
  101. package/lib/node/inline-communication-provider.d.ts.map +1 -0
  102. package/lib/node/inline-communication-provider.js +43 -0
  103. package/lib/node/inline-communication-provider.js.map +1 -0
  104. package/lib/node/stream-communication-provider.d.ts +38 -0
  105. package/lib/node/stream-communication-provider.d.ts.map +1 -0
  106. package/lib/node/stream-communication-provider.js +88 -0
  107. package/lib/node/stream-communication-provider.js.map +1 -0
  108. package/lib/node/vscode/vscode-debug-adapter-contribution.d.ts +1 -1
  109. package/lib/node/vscode/vscode-debug-adapter-contribution.d.ts.map +1 -1
  110. package/package.json +17 -17
  111. package/src/browser/console/debug-console-contribution.tsx +10 -6
  112. package/src/browser/debug-configuration-manager.ts +10 -8
  113. package/src/browser/debug-frontend-application-contribution.ts +152 -118
  114. package/src/browser/debug-preferences.ts +23 -6
  115. package/src/browser/debug-prefix-configuration.ts +3 -3
  116. package/src/browser/debug-session-connection.ts +1 -1
  117. package/src/browser/debug-session-contribution.ts +1 -1
  118. package/src/browser/preferences/launch-preferences.ts +5 -1
  119. package/src/browser/view/debug-breakpoints-source.tsx +0 -6
  120. package/src/browser/view/debug-breakpoints-widget.ts +2 -1
  121. package/src/browser/view/debug-configuration-widget.tsx +8 -7
  122. package/src/browser/view/debug-session-widget.ts +12 -6
  123. package/src/browser/view/debug-stack-frames-source.tsx +0 -6
  124. package/src/browser/view/debug-stack-frames-widget.ts +2 -1
  125. package/src/browser/view/debug-threads-source.tsx +0 -6
  126. package/src/browser/view/debug-threads-widget.ts +2 -1
  127. package/src/browser/view/debug-toolbar-widget.tsx +13 -8
  128. package/src/browser/view/debug-variables-source.ts +0 -6
  129. package/src/browser/view/debug-variables-widget.ts +2 -1
  130. package/src/browser/view/debug-watch-source.ts +0 -6
  131. package/src/browser/view/debug-watch-widget.ts +2 -1
  132. package/src/browser/view/debug-widget.ts +2 -1
  133. package/src/node/debug-adapter-contribution-registry.ts +1 -1
  134. package/src/node/debug-adapter-factory.ts +10 -11
  135. package/src/node/debug-adapter-session-manager.ts +1 -1
  136. package/src/node/debug-adapter-session.ts +8 -57
  137. package/src/node/debug-backend-module.ts +1 -1
  138. package/src/{common → node}/debug-model.ts +6 -4
  139. package/src/node/inline-communication-provider.ts +44 -0
  140. package/src/node/stream-communication-provider.ts +93 -0
  141. package/src/node/vscode/vscode-debug-adapter-contribution.ts +1 -1
  142. package/lib/common/debug-model.d.ts.map +0 -1
  143. package/lib/common/debug-model.js.map +0 -1
@@ -57,6 +57,7 @@ const debug_watch_expression_1 = require("./view/debug-watch-expression");
57
57
  const debug_watch_manager_1 = require("./debug-watch-manager");
58
58
  const debug_function_breakpoint_1 = require("./model/debug-function-breakpoint");
59
59
  const debug_breakpoint_1 = require("./model/debug-breakpoint");
60
+ const nls_1 = require("@theia/core/lib/common/nls");
60
61
  var DebugMenus;
61
62
  (function (DebugMenus) {
62
63
  DebugMenus.DEBUG = [...common_1.MAIN_MENU_BAR, '6_debug'];
@@ -68,207 +69,227 @@ var DebugMenus;
68
69
  DebugMenus.DEBUG_NEW_BREAKPOINT = [...DebugMenus.DEBUG_BREAKPOINT, 'a_new_breakpoint'];
69
70
  DebugMenus.DEBUG_BREAKPOINTS = [...DebugMenus.DEBUG, 'f_breakpoints'];
70
71
  })(DebugMenus = exports.DebugMenus || (exports.DebugMenus = {}));
72
+ function nlsEditBreakpoint(breakpointKey, breakpoint) {
73
+ return nls_1.nls.localize('vscode/breakpointEditorContribution/editBreakpoint', 'Edit {0}...', nls_1.nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
74
+ }
75
+ function nlsRemoveBreakpoint(breakpointKey, breakpoint) {
76
+ return nls_1.nls.localize('vscode/breakpointEditorContribution/removeBreakpoint', 'Remove {0}', nls_1.nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
77
+ }
78
+ function nlsEnableBreakpoint(breakpointKey, breakpoint) {
79
+ return nls_1.nls.localize('vscode/breakpointEditorContribution/enableBreakpoint', 'Enable {0}', nls_1.nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
80
+ }
81
+ function nlsDisableBreakpoint(breakpointKey, breakpoint) {
82
+ return nls_1.nls.localize('vscode/breakpointEditorContribution/disableBreakpoint', 'Disable {0}', nls_1.nls.localize(`vscode/breakpointEditorContribution/${breakpointKey}`, breakpoint));
83
+ }
71
84
  var DebugCommands;
72
85
  (function (DebugCommands) {
86
+ DebugCommands.DEBUG_CATEGORY_KEY = 'vscode/debugCommands/debug';
73
87
  DebugCommands.DEBUG_CATEGORY = 'Debug';
74
- DebugCommands.START = {
88
+ DebugCommands.START = common_1.Command.toLocalizedCommand({
75
89
  id: 'workbench.action.debug.start',
76
90
  category: DebugCommands.DEBUG_CATEGORY,
77
91
  label: 'Start Debugging',
78
92
  iconClass: browser_1.codicon('debug-alt')
79
- };
80
- DebugCommands.START_NO_DEBUG = {
93
+ }, 'vscode/debugCommands/startDebug', DebugCommands.DEBUG_CATEGORY_KEY);
94
+ DebugCommands.START_NO_DEBUG = common_1.Command.toLocalizedCommand({
81
95
  id: 'workbench.action.debug.run',
82
96
  label: 'Debug: Start Without Debugging'
83
- };
84
- DebugCommands.STOP = {
97
+ }, 'vscode/debugCommands/startWithoutDebugging');
98
+ DebugCommands.STOP = common_1.Command.toLocalizedCommand({
85
99
  id: 'workbench.action.debug.stop',
86
100
  category: DebugCommands.DEBUG_CATEGORY,
87
- label: 'Stop Debugging',
101
+ label: 'Stop',
88
102
  iconClass: browser_1.codicon('debug-stop')
89
- };
90
- DebugCommands.RESTART = {
103
+ }, 'vscode/debugCommands/stop', DebugCommands.DEBUG_CATEGORY_KEY);
104
+ DebugCommands.RESTART = common_1.Command.toLocalizedCommand({
91
105
  id: 'workbench.action.debug.restart',
92
106
  category: DebugCommands.DEBUG_CATEGORY,
93
- label: 'Restart Debugging',
94
- };
95
- DebugCommands.OPEN_CONFIGURATIONS = {
107
+ label: 'Restart',
108
+ }, 'vscode/debugCommands/restartDebug', DebugCommands.DEBUG_CATEGORY_KEY);
109
+ DebugCommands.OPEN_CONFIGURATIONS = common_1.Command.toLocalizedCommand({
96
110
  id: 'debug.configurations.open',
97
- label: 'Debug: Open Configurations'
98
- };
99
- DebugCommands.ADD_CONFIGURATION = {
111
+ category: DebugCommands.DEBUG_CATEGORY,
112
+ label: 'Open Configurations'
113
+ }, 'vscode/debugViewlet/miOpenConfigurations', DebugCommands.DEBUG_CATEGORY_KEY);
114
+ DebugCommands.ADD_CONFIGURATION = common_1.Command.toLocalizedCommand({
100
115
  id: 'debug.configurations.add',
101
- label: 'Debug: Add Configuration...'
102
- };
103
- DebugCommands.STEP_OVER = {
116
+ category: DebugCommands.DEBUG_CATEGORY,
117
+ label: 'Add Configuration...'
118
+ }, 'vscode/debugActionViewItems/addConfiguration', DebugCommands.DEBUG_CATEGORY_KEY);
119
+ DebugCommands.STEP_OVER = common_1.Command.toLocalizedCommand({
104
120
  id: 'workbench.action.debug.stepOver',
105
121
  category: DebugCommands.DEBUG_CATEGORY,
106
122
  label: 'Step Over',
107
123
  iconClass: browser_1.codicon('debug-step-over')
108
- };
109
- DebugCommands.STEP_INTO = {
124
+ }, 'vscode/debugCommands/stepOverDebug', DebugCommands.DEBUG_CATEGORY_KEY);
125
+ DebugCommands.STEP_INTO = common_1.Command.toLocalizedCommand({
110
126
  id: 'workbench.action.debug.stepInto',
111
127
  category: DebugCommands.DEBUG_CATEGORY,
112
128
  label: 'Step Into',
113
129
  iconClass: browser_1.codicon('debug-step-into')
114
- };
115
- DebugCommands.STEP_OUT = {
130
+ }, 'vscode/debugCommands/stepIntoDebug', DebugCommands.DEBUG_CATEGORY_KEY);
131
+ DebugCommands.STEP_OUT = common_1.Command.toLocalizedCommand({
116
132
  id: 'workbench.action.debug.stepOut',
117
133
  category: DebugCommands.DEBUG_CATEGORY,
118
134
  label: 'Step Out',
119
135
  iconClass: browser_1.codicon('debug-step-out')
120
- };
121
- DebugCommands.CONTINUE = {
136
+ }, 'vscode/debugCommands/stepOutDebug', DebugCommands.DEBUG_CATEGORY_KEY);
137
+ DebugCommands.CONTINUE = common_1.Command.toLocalizedCommand({
122
138
  id: 'workbench.action.debug.continue',
123
139
  category: DebugCommands.DEBUG_CATEGORY,
124
140
  label: 'Continue',
125
141
  iconClass: browser_1.codicon('debug-continue')
126
- };
127
- DebugCommands.PAUSE = {
142
+ }, 'vscode/debugCommands/continueDebug', DebugCommands.DEBUG_CATEGORY_KEY);
143
+ DebugCommands.PAUSE = common_1.Command.toLocalizedCommand({
128
144
  id: 'workbench.action.debug.pause',
129
145
  category: DebugCommands.DEBUG_CATEGORY,
130
146
  label: 'Pause',
131
147
  iconClass: browser_1.codicon('debug-pause')
132
- };
133
- DebugCommands.CONTINUE_ALL = {
148
+ }, 'vscode/debugCommands/pauseDebug', DebugCommands.DEBUG_CATEGORY_KEY);
149
+ DebugCommands.CONTINUE_ALL = common_1.Command.toLocalizedCommand({
134
150
  id: 'debug.thread.continue.all',
135
151
  category: DebugCommands.DEBUG_CATEGORY,
136
152
  label: 'Continue All',
137
153
  iconClass: browser_1.codicon('debug-continue')
138
- };
139
- DebugCommands.PAUSE_ALL = {
154
+ }, 'theia/debug/continueAll', DebugCommands.DEBUG_CATEGORY_KEY);
155
+ DebugCommands.PAUSE_ALL = common_1.Command.toLocalizedCommand({
140
156
  id: 'debug.thread.pause.all',
141
157
  category: DebugCommands.DEBUG_CATEGORY,
142
158
  label: 'Pause All',
143
159
  iconClass: browser_1.codicon('debug-pause')
144
- };
145
- DebugCommands.TOGGLE_BREAKPOINT = {
160
+ }, 'theia/debug/pauseAll', DebugCommands.DEBUG_CATEGORY_KEY);
161
+ DebugCommands.TOGGLE_BREAKPOINT = common_1.Command.toLocalizedCommand({
146
162
  id: 'editor.debug.action.toggleBreakpoint',
147
163
  category: DebugCommands.DEBUG_CATEGORY,
148
164
  label: 'Toggle Breakpoint',
149
- };
150
- DebugCommands.INLINE_BREAKPOINT = {
165
+ }, 'vscode/debugEditorActions/miToggleBreakpoint', DebugCommands.DEBUG_CATEGORY_KEY);
166
+ DebugCommands.INLINE_BREAKPOINT = common_1.Command.toLocalizedCommand({
151
167
  id: 'editor.debug.action.inlineBreakpoint',
152
168
  category: DebugCommands.DEBUG_CATEGORY,
153
169
  label: 'Inline Breakpoint',
154
- };
155
- DebugCommands.ADD_CONDITIONAL_BREAKPOINT = {
170
+ }, 'vscode/debug.contribution/inlineBreakpoint', DebugCommands.DEBUG_CATEGORY_KEY);
171
+ DebugCommands.ADD_CONDITIONAL_BREAKPOINT = common_1.Command.toLocalizedCommand({
156
172
  id: 'debug.breakpoint.add.conditional',
157
173
  category: DebugCommands.DEBUG_CATEGORY,
158
174
  label: 'Add Conditional Breakpoint...',
159
- };
160
- DebugCommands.ADD_LOGPOINT = {
175
+ }, 'vscode/breakpointEditorContribution/addConditionalBreakpoint', DebugCommands.DEBUG_CATEGORY_KEY);
176
+ DebugCommands.ADD_LOGPOINT = common_1.Command.toLocalizedCommand({
161
177
  id: 'debug.breakpoint.add.logpoint',
162
178
  category: DebugCommands.DEBUG_CATEGORY,
163
179
  label: 'Add Logpoint...',
164
- };
165
- DebugCommands.ADD_FUNCTION_BREAKPOINT = {
180
+ }, 'vscode/breakpointEditorContribution/addLogPoint', DebugCommands.DEBUG_CATEGORY_KEY);
181
+ DebugCommands.ADD_FUNCTION_BREAKPOINT = common_1.Command.toLocalizedCommand({
166
182
  id: 'debug.breakpoint.add.function',
167
183
  category: DebugCommands.DEBUG_CATEGORY,
168
184
  label: 'Add Function Breakpoint...',
169
- };
170
- DebugCommands.ENABLE_ALL_BREAKPOINTS = {
185
+ }, 'vscode/breakpointsView/addFunctionBreakpoint', DebugCommands.DEBUG_CATEGORY_KEY);
186
+ DebugCommands.ENABLE_ALL_BREAKPOINTS = common_1.Command.toLocalizedCommand({
171
187
  id: 'debug.breakpoint.enableAll',
172
188
  category: DebugCommands.DEBUG_CATEGORY,
173
189
  label: 'Enable All Breakpoints',
174
- };
175
- DebugCommands.DISABLE_ALL_BREAKPOINTS = {
190
+ }, 'vscode/breakpointsView/enableAllBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
191
+ DebugCommands.DISABLE_ALL_BREAKPOINTS = common_1.Command.toLocalizedCommand({
176
192
  id: 'debug.breakpoint.disableAll',
177
193
  category: DebugCommands.DEBUG_CATEGORY,
178
194
  label: 'Disable All Breakpoints',
179
- };
180
- DebugCommands.EDIT_BREAKPOINT = {
195
+ }, 'vscode/breakpointsView/disableAllBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
196
+ DebugCommands.EDIT_BREAKPOINT = common_1.Command.toLocalizedCommand({
181
197
  id: 'debug.breakpoint.edit',
182
198
  category: DebugCommands.DEBUG_CATEGORY,
183
- label: 'Edit Breakpoint...',
184
- };
185
- DebugCommands.EDIT_LOGPOINT = {
199
+ originalLabel: 'Edit Breakpoint...',
200
+ label: nlsEditBreakpoint('breakpoint', 'Breakpoint')
201
+ }, '', DebugCommands.DEBUG_CATEGORY_KEY);
202
+ DebugCommands.EDIT_LOGPOINT = common_1.Command.toLocalizedCommand({
186
203
  id: 'debug.logpoint.edit',
187
204
  category: DebugCommands.DEBUG_CATEGORY,
188
- label: 'Edit Logpoint...',
189
- };
190
- DebugCommands.REMOVE_BREAKPOINT = {
205
+ originalLabel: 'Edit Logpoint...',
206
+ label: nlsEditBreakpoint('logPoint', 'Logpoint')
207
+ }, '', DebugCommands.DEBUG_CATEGORY_KEY);
208
+ DebugCommands.REMOVE_BREAKPOINT = common_1.Command.toLocalizedCommand({
191
209
  id: 'debug.breakpoint.remove',
192
210
  category: DebugCommands.DEBUG_CATEGORY,
193
- label: 'Remove Breakpoint',
194
- };
195
- DebugCommands.REMOVE_LOGPOINT = {
211
+ originalLabel: 'Remove Breakpoint',
212
+ label: nlsRemoveBreakpoint('breakpoint', 'Breakpoint')
213
+ }, '', DebugCommands.DEBUG_CATEGORY_KEY);
214
+ DebugCommands.REMOVE_LOGPOINT = common_1.Command.toLocalizedCommand({
196
215
  id: 'debug.logpoint.remove',
197
216
  category: DebugCommands.DEBUG_CATEGORY,
198
- label: 'Remove Logpoint',
199
- };
200
- DebugCommands.REMOVE_ALL_BREAKPOINTS = {
217
+ originalLabel: 'Remove Logpoint',
218
+ label: nlsRemoveBreakpoint('logPoint', 'Logpoint')
219
+ }, '', DebugCommands.DEBUG_CATEGORY_KEY);
220
+ DebugCommands.REMOVE_ALL_BREAKPOINTS = common_1.Command.toLocalizedCommand({
201
221
  id: 'debug.breakpoint.removeAll',
202
222
  category: DebugCommands.DEBUG_CATEGORY,
203
223
  label: 'Remove All Breakpoints',
204
- };
205
- DebugCommands.TOGGLE_BREAKPOINTS_ENABLED = {
224
+ }, 'vscode/breakpointsView/removeAllBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
225
+ DebugCommands.TOGGLE_BREAKPOINTS_ENABLED = common_1.Command.toLocalizedCommand({
206
226
  id: 'debug.breakpoint.toggleEnabled'
207
- };
208
- DebugCommands.SHOW_HOVER = {
227
+ });
228
+ DebugCommands.SHOW_HOVER = common_1.Command.toLocalizedCommand({
209
229
  id: 'editor.debug.action.showDebugHover',
210
- label: 'Debug: Show Hover'
211
- };
212
- DebugCommands.RESTART_FRAME = {
230
+ category: DebugCommands.DEBUG_CATEGORY,
231
+ label: 'Show Hover'
232
+ }, 'vscode/hover/showHover', DebugCommands.DEBUG_CATEGORY_KEY);
233
+ DebugCommands.RESTART_FRAME = common_1.Command.toLocalizedCommand({
213
234
  id: 'debug.frame.restart',
214
235
  category: DebugCommands.DEBUG_CATEGORY,
215
236
  label: 'Restart Frame',
216
- };
217
- DebugCommands.COPY_CALL_STACK = {
237
+ }, 'vscode/debug.contribution/restartFrame', DebugCommands.DEBUG_CATEGORY_KEY);
238
+ DebugCommands.COPY_CALL_STACK = common_1.Command.toLocalizedCommand({
218
239
  id: 'debug.callStack.copy',
219
240
  category: DebugCommands.DEBUG_CATEGORY,
220
241
  label: 'Copy Call Stack',
221
- };
222
- DebugCommands.SET_VARIABLE_VALUE = {
242
+ }, 'vscode/debug.contribution/copyStackTrace', DebugCommands.DEBUG_CATEGORY_KEY);
243
+ DebugCommands.SET_VARIABLE_VALUE = common_1.Command.toLocalizedCommand({
223
244
  id: 'debug.variable.setValue',
224
245
  category: DebugCommands.DEBUG_CATEGORY,
225
246
  label: 'Set Value',
226
- };
227
- DebugCommands.COPY_VARIABLE_VALUE = {
247
+ }, 'vscode/debug.contribution/setValue', DebugCommands.DEBUG_CATEGORY_KEY);
248
+ DebugCommands.COPY_VARIABLE_VALUE = common_1.Command.toLocalizedCommand({
228
249
  id: 'debug.variable.copyValue',
229
250
  category: DebugCommands.DEBUG_CATEGORY,
230
251
  label: 'Copy Value',
231
- };
232
- DebugCommands.COPY_VARIABLE_AS_EXPRESSION = {
252
+ }, 'vscode/debug.contribution/copyValue', DebugCommands.DEBUG_CATEGORY_KEY);
253
+ DebugCommands.COPY_VARIABLE_AS_EXPRESSION = common_1.Command.toLocalizedCommand({
233
254
  id: 'debug.variable.copyAsExpression',
234
255
  category: DebugCommands.DEBUG_CATEGORY,
235
256
  label: 'Copy As Expression',
236
- };
237
- DebugCommands.WATCH_VARIABLE = {
257
+ }, 'vscode/debug.contribution/copyAsExpression', DebugCommands.DEBUG_CATEGORY_KEY);
258
+ DebugCommands.WATCH_VARIABLE = common_1.Command.toLocalizedCommand({
238
259
  id: 'debug.variable.watch',
239
260
  category: DebugCommands.DEBUG_CATEGORY,
240
261
  label: 'Add to Watch',
241
- };
242
- DebugCommands.ADD_WATCH_EXPRESSION = {
262
+ }, 'vscode/debug.contribution/addToWatchExpressions', DebugCommands.DEBUG_CATEGORY_KEY);
263
+ DebugCommands.ADD_WATCH_EXPRESSION = common_1.Command.toLocalizedCommand({
243
264
  id: 'debug.watch.addExpression',
244
265
  category: DebugCommands.DEBUG_CATEGORY,
245
- label: 'Add Watch Expression'
246
- };
247
- DebugCommands.EDIT_WATCH_EXPRESSION = {
266
+ label: 'Add Expression'
267
+ }, 'vscode/watchExpressionsView/addWatchExpression', DebugCommands.DEBUG_CATEGORY_KEY);
268
+ DebugCommands.EDIT_WATCH_EXPRESSION = common_1.Command.toLocalizedCommand({
248
269
  id: 'debug.watch.editExpression',
249
270
  category: DebugCommands.DEBUG_CATEGORY,
250
- label: 'Edit Watch Expression'
251
- };
252
- DebugCommands.COPY_WATCH_EXPRESSION_VALUE = {
271
+ label: 'Edit Expression'
272
+ }, 'vscode/debug.contribution/editWatchExpression', DebugCommands.DEBUG_CATEGORY_KEY);
273
+ DebugCommands.COPY_WATCH_EXPRESSION_VALUE = common_1.Command.toLocalizedCommand({
253
274
  id: 'debug.watch.copyExpressionValue',
254
275
  category: DebugCommands.DEBUG_CATEGORY,
255
- label: 'Copy Watch Expression Value'
256
- };
257
- DebugCommands.REMOVE_WATCH_EXPRESSION = {
276
+ label: 'Copy Expression Value'
277
+ }, 'theia/debug/copyExpressionValue', DebugCommands.DEBUG_CATEGORY_KEY);
278
+ DebugCommands.REMOVE_WATCH_EXPRESSION = common_1.Command.toLocalizedCommand({
258
279
  id: 'debug.watch.removeExpression',
259
280
  category: DebugCommands.DEBUG_CATEGORY,
260
- label: 'Remove Watch Expression'
261
- };
262
- DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS = {
281
+ label: 'Remove Expression'
282
+ }, 'vscode/debug.contribution/removeWatchExpression', DebugCommands.DEBUG_CATEGORY_KEY);
283
+ DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS = common_1.Command.toLocalizedCommand({
263
284
  id: 'debug.watch.collapseAllExpressions',
264
285
  category: DebugCommands.DEBUG_CATEGORY,
265
- label: 'Collapse All Watch Expressions'
266
- };
267
- DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS = {
286
+ label: 'Collapse All Expressions'
287
+ }, 'vscode/watchExpressionsView/collapse', DebugCommands.DEBUG_CATEGORY_KEY);
288
+ DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS = common_1.Command.toLocalizedCommand({
268
289
  id: 'debug.watch.removeAllExpressions',
269
290
  category: DebugCommands.DEBUG_CATEGORY,
270
- label: 'Remove All Watch Expressions'
271
- };
291
+ label: 'Remove All Expressions'
292
+ }, 'vscode/watchExpressionsView/removeAllWatchExpressions', DebugCommands.DEBUG_CATEGORY_KEY);
272
293
  })(DebugCommands = exports.DebugCommands || (exports.DebugCommands = {}));
273
294
  var DebugThreadContextCommands;
274
295
  (function (DebugThreadContextCommands) {
@@ -432,6 +453,9 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
432
453
  this.breakpointManager.save();
433
454
  this.watchManager.save();
434
455
  }
456
+ onWillStop() {
457
+ return this.preference['debug.confirmOnExit'] === 'always' && !!this.manager.currentSession;
458
+ }
435
459
  registerMenus(menus) {
436
460
  super.registerMenus(menus);
437
461
  const registerMenuActions = (menuPath, ...commands) => {
@@ -446,27 +470,27 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
446
470
  });
447
471
  }
448
472
  };
449
- menus.registerSubmenu(DebugMenus.DEBUG, 'Run');
473
+ menus.registerSubmenu(DebugMenus.DEBUG, nls_1.nls.localize('vscode/debug.contribution/run', 'Run'));
450
474
  registerMenuActions(DebugMenus.DEBUG_CONTROLS, DebugCommands.START, DebugCommands.START_NO_DEBUG, DebugCommands.STOP, DebugCommands.RESTART);
451
475
  registerMenuActions(DebugMenus.DEBUG_CONFIGURATION, DebugCommands.OPEN_CONFIGURATIONS, DebugCommands.ADD_CONFIGURATION);
452
476
  registerMenuActions(DebugMenus.DEBUG_THREADS, DebugCommands.CONTINUE, DebugCommands.STEP_OVER, DebugCommands.STEP_INTO, DebugCommands.STEP_OUT, DebugCommands.PAUSE);
453
477
  registerMenuActions(DebugMenus.DEBUG_SESSIONS, DebugCommands.CONTINUE_ALL, DebugCommands.PAUSE_ALL);
454
478
  registerMenuActions(DebugMenus.DEBUG_BREAKPOINT, DebugCommands.TOGGLE_BREAKPOINT);
455
- menus.registerSubmenu(DebugMenus.DEBUG_NEW_BREAKPOINT, 'New Breakpoint');
479
+ menus.registerSubmenu(DebugMenus.DEBUG_NEW_BREAKPOINT, nls_1.nls.localize('vscode/debug.contribution/miNewBreakpoint', 'New Breakpoint'));
456
480
  registerMenuActions(DebugMenus.DEBUG_NEW_BREAKPOINT, DebugCommands.ADD_CONDITIONAL_BREAKPOINT, DebugCommands.INLINE_BREAKPOINT, DebugCommands.ADD_FUNCTION_BREAKPOINT, DebugCommands.ADD_LOGPOINT);
457
481
  registerMenuActions(DebugMenus.DEBUG_BREAKPOINTS, DebugCommands.ENABLE_ALL_BREAKPOINTS, DebugCommands.DISABLE_ALL_BREAKPOINTS, DebugCommands.REMOVE_ALL_BREAKPOINTS);
458
482
  registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.CONTROL_MENU, Object.assign(Object.assign({}, DebugCommands.PAUSE), DebugThreadContextCommands.PAUSE), Object.assign(Object.assign({}, DebugCommands.CONTINUE), DebugThreadContextCommands.CONTINUE), Object.assign(Object.assign({}, DebugCommands.STEP_OVER), DebugThreadContextCommands.STEP_OVER), Object.assign(Object.assign({}, DebugCommands.STEP_INTO), DebugThreadContextCommands.STEP_INTO), Object.assign(Object.assign({}, DebugCommands.STEP_OUT), DebugThreadContextCommands.STEP_OUT), Object.assign(Object.assign({}, DebugCommands.PAUSE_ALL), DebugSessionContextCommands.PAUSE_ALL), Object.assign(Object.assign({}, DebugCommands.CONTINUE_ALL), DebugSessionContextCommands.CONTINUE_ALL));
459
- registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.TERMINATE_MENU, Object.assign(Object.assign(Object.assign({}, DebugCommands.RESTART), DebugSessionContextCommands.RESTART), { label: 'Restart' }), Object.assign(Object.assign(Object.assign({}, DebugCommands.STOP), DebugSessionContextCommands.STOP), { label: 'Stop' }), Object.assign(Object.assign({}, DebugThreadContextCommands.TERMINATE), { label: 'Terminate Thread' }));
460
- registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.OPEN_MENU, Object.assign(Object.assign({}, DebugSessionContextCommands.REVEAL), { label: 'Reveal' }), Object.assign(Object.assign({}, DebugSessionContextCommands.OPEN_LEFT), { label: 'Open Left' }), Object.assign(Object.assign({}, DebugSessionContextCommands.OPEN_RIGHT), { label: 'Open Right' }), Object.assign(Object.assign({}, DebugSessionContextCommands.OPEN_BOTTOM), { label: 'Open Bottom' }));
483
+ registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.TERMINATE_MENU, Object.assign(Object.assign({}, DebugCommands.RESTART), DebugSessionContextCommands.RESTART), Object.assign(Object.assign({}, DebugCommands.STOP), DebugSessionContextCommands.STOP), Object.assign(Object.assign({}, DebugThreadContextCommands.TERMINATE), { label: nls_1.nls.localize('vscode/debug.contribution/terminateThread', 'Terminate Thread') }));
484
+ registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.OPEN_MENU, Object.assign(Object.assign({}, DebugSessionContextCommands.REVEAL), { label: nls_1.nls.localize('theia/debug/reveal', 'Reveal') }), Object.assign(Object.assign({}, DebugSessionContextCommands.OPEN_LEFT), { label: nls_1.nls.localize('theia/debug/openLeft', 'Open Left') }), Object.assign(Object.assign({}, DebugSessionContextCommands.OPEN_RIGHT), { label: nls_1.nls.localize('theia/debug/openRight', 'Open Right') }), Object.assign(Object.assign({}, DebugSessionContextCommands.OPEN_BOTTOM), { label: nls_1.nls.localize('theia/debug/openBottom', 'Open Bottom') }));
461
485
  registerMenuActions(debug_stack_frames_widget_1.DebugStackFramesWidget.CONTEXT_MENU, DebugCommands.RESTART_FRAME, DebugCommands.COPY_CALL_STACK);
462
486
  registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.EDIT_MENU, DebugCommands.SET_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_AS_EXPRESSION);
463
487
  registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.WATCH_MENU, DebugCommands.WATCH_VARIABLE);
464
- registerMenuActions(debug_watch_widget_1.DebugWatchWidget.EDIT_MENU, Object.assign(Object.assign({}, DebugCommands.EDIT_WATCH_EXPRESSION), { label: 'Edit Expression' }), Object.assign(Object.assign({}, DebugCommands.COPY_WATCH_EXPRESSION_VALUE), { label: 'Copy Value' }));
465
- registerMenuActions(debug_watch_widget_1.DebugWatchWidget.REMOVE_MENU, Object.assign(Object.assign({}, DebugCommands.REMOVE_WATCH_EXPRESSION), { label: 'Remove Expression' }), Object.assign(Object.assign({}, DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS), { label: 'Remove All Expressions' }));
488
+ registerMenuActions(debug_watch_widget_1.DebugWatchWidget.EDIT_MENU, DebugCommands.EDIT_WATCH_EXPRESSION, DebugCommands.COPY_WATCH_EXPRESSION_VALUE);
489
+ registerMenuActions(debug_watch_widget_1.DebugWatchWidget.REMOVE_MENU, DebugCommands.REMOVE_WATCH_EXPRESSION, DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS);
466
490
  registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.EDIT_MENU, DebugCommands.EDIT_BREAKPOINT, DebugCommands.EDIT_LOGPOINT);
467
491
  registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.REMOVE_MENU, DebugCommands.REMOVE_BREAKPOINT, DebugCommands.REMOVE_LOGPOINT, DebugCommands.REMOVE_ALL_BREAKPOINTS);
468
492
  registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.ENABLE_MENU, DebugCommands.ENABLE_ALL_BREAKPOINTS, DebugCommands.DISABLE_ALL_BREAKPOINTS);
469
- registerMenuActions(debug_editor_model_1.DebugEditorModel.CONTEXT_MENU, Object.assign(Object.assign({}, DebugEditorContextCommands.ADD_BREAKPOINT), { label: 'Add Breakpoint' }), Object.assign(Object.assign({}, DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT), { label: DebugCommands.ADD_CONDITIONAL_BREAKPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.ADD_LOGPOINT), { label: DebugCommands.ADD_LOGPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.REMOVE_BREAKPOINT), { label: DebugCommands.REMOVE_BREAKPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.EDIT_BREAKPOINT), { label: DebugCommands.EDIT_BREAKPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.ENABLE_BREAKPOINT), { label: 'Enable Breakpoint' }), Object.assign(Object.assign({}, DebugEditorContextCommands.DISABLE_BREAKPOINT), { label: 'Disable Breakpoint' }), Object.assign(Object.assign({}, DebugEditorContextCommands.REMOVE_LOGPOINT), { label: DebugCommands.REMOVE_LOGPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.EDIT_LOGPOINT), { label: DebugCommands.EDIT_LOGPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.ENABLE_LOGPOINT), { label: 'Enable Logpoint' }), Object.assign(Object.assign({}, DebugEditorContextCommands.DISABLE_LOGPOINT), { label: 'Disable Logpoint' }));
493
+ registerMenuActions(debug_editor_model_1.DebugEditorModel.CONTEXT_MENU, Object.assign(Object.assign({}, DebugEditorContextCommands.ADD_BREAKPOINT), { label: nls_1.nls.localize('vscode/breakpointEditorContribution/addBreakpoint', 'Add Breakpoint') }), Object.assign(Object.assign({}, DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT), { label: DebugCommands.ADD_CONDITIONAL_BREAKPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.ADD_LOGPOINT), { label: DebugCommands.ADD_LOGPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.REMOVE_BREAKPOINT), { label: DebugCommands.REMOVE_BREAKPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.EDIT_BREAKPOINT), { label: DebugCommands.EDIT_BREAKPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.ENABLE_BREAKPOINT), { label: nlsEnableBreakpoint('breakpoint', 'Breakpoint') }), Object.assign(Object.assign({}, DebugEditorContextCommands.DISABLE_BREAKPOINT), { label: nlsDisableBreakpoint('breakpoint', 'Breakpoint') }), Object.assign(Object.assign({}, DebugEditorContextCommands.REMOVE_LOGPOINT), { label: DebugCommands.REMOVE_LOGPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.EDIT_LOGPOINT), { label: DebugCommands.EDIT_LOGPOINT.label }), Object.assign(Object.assign({}, DebugEditorContextCommands.ENABLE_LOGPOINT), { label: nlsEnableBreakpoint('logPoint', 'Logpoint') }), Object.assign(Object.assign({}, DebugEditorContextCommands.DISABLE_LOGPOINT), { label: nlsDisableBreakpoint('logPoint', 'Logpoint') }));
470
494
  }
471
495
  registerCommands(registry) {
472
496
  super.registerCommands(registry);
@@ -926,7 +950,9 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
926
950
  priority: 1
927
951
  };
928
952
  const updateToggleBreakpointsEnabled = () => {
929
- const tooltip = this.breakpointManager.breakpointsEnabled ? 'Deactivate Breakpoints' : 'Activate Breakpoints';
953
+ const activateBreakpoints = nls_1.nls.localize('vscode/breakpointsView/enableAllBreakpoints', 'Enable Breakpoints');
954
+ const deactivateBreakpoints = nls_1.nls.localize('vscode/breakpointsView/disableAllBreakpoints', 'Disable Breakpoints');
955
+ const tooltip = this.breakpointManager.breakpointsEnabled ? deactivateBreakpoints : activateBreakpoints;
930
956
  if (toggleBreakpointsEnabled.tooltip !== tooltip) {
931
957
  toggleBreakpointsEnabled.tooltip = tooltip;
932
958
  onDidChangeToggleBreakpointsEnabled.fire(undefined);
@@ -936,7 +962,7 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
936
962
  id: DebugCommands.ADD_FUNCTION_BREAKPOINT.id,
937
963
  command: DebugCommands.ADD_FUNCTION_BREAKPOINT.id,
938
964
  icon: browser_1.codicon('add'),
939
- tooltip: 'Add Function Breakpoint'
965
+ tooltip: DebugCommands.ADD_FUNCTION_BREAKPOINT.label
940
966
  });
941
967
  updateToggleBreakpointsEnabled();
942
968
  this.breakpointManager.onDidChangeBreakpoints(updateToggleBreakpointsEnabled);
@@ -951,20 +977,20 @@ let DebugFrontendApplicationContribution = class DebugFrontendApplicationContrib
951
977
  id: DebugCommands.ADD_WATCH_EXPRESSION.id,
952
978
  command: DebugCommands.ADD_WATCH_EXPRESSION.id,
953
979
  icon: browser_1.codicon('add'),
954
- tooltip: 'Add Expression'
980
+ tooltip: DebugCommands.ADD_WATCH_EXPRESSION.label
955
981
  });
956
982
  toolbar.registerItem({
957
983
  id: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.id,
958
984
  command: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.id,
959
985
  icon: browser_1.codicon('collapse-all'),
960
- tooltip: 'Collapse All',
986
+ tooltip: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.label,
961
987
  priority: 1
962
988
  });
963
989
  toolbar.registerItem({
964
990
  id: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.id,
965
991
  command: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.id,
966
992
  icon: browser_1.codicon('close-all'),
967
- tooltip: 'Remove All Expressions',
993
+ tooltip: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.label,
968
994
  priority: 2
969
995
  });
970
996
  }