@theia/debug 1.67.0-next.3 → 1.67.0-next.56

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 (346) hide show
  1. package/README.md +1 -1
  2. package/package.json +15 -15
  3. package/src/browser/breakpoint/breakpoint-manager.ts +69 -16
  4. package/src/browser/breakpoint/breakpoint-marker.ts +38 -0
  5. package/src/browser/breakpoint/debug-data-breakpoint-actions.ts +170 -0
  6. package/src/browser/console/debug-console-items.tsx +5 -1
  7. package/src/browser/debug-frontend-application-contribution.ts +52 -0
  8. package/src/browser/debug-frontend-module.ts +4 -0
  9. package/src/browser/debug-session-manager.ts +18 -0
  10. package/src/browser/debug-session.tsx +31 -0
  11. package/src/browser/editor/debug-expression-provider.ts +49 -4
  12. package/src/browser/editor/debug-hover-widget.ts +7 -52
  13. package/src/browser/model/debug-data-breakpoint.tsx +79 -0
  14. package/src/browser/style/index.css +4 -0
  15. package/src/browser/view/debug-breakpoints-source.tsx +4 -10
  16. package/src/browser/view/debug-stack-frames-widget.ts +6 -2
  17. package/src/browser/view/debug-variables-widget.ts +99 -2
  18. package/src/browser/view/debug-view-model.ts +5 -0
  19. package/lib/browser/breakpoint/breakpoint-manager.d.ts +0 -71
  20. package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +0 -1
  21. package/lib/browser/breakpoint/breakpoint-manager.js +0 -321
  22. package/lib/browser/breakpoint/breakpoint-manager.js.map +0 -1
  23. package/lib/browser/breakpoint/breakpoint-marker.d.ts +0 -42
  24. package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +0 -1
  25. package/lib/browser/breakpoint/breakpoint-marker.js +0 -88
  26. package/lib/browser/breakpoint/breakpoint-marker.js.map +0 -1
  27. package/lib/browser/console/debug-console-contribution.d.ts +0 -45
  28. package/lib/browser/console/debug-console-contribution.d.ts.map +0 -1
  29. package/lib/browser/console/debug-console-contribution.js +0 -233
  30. package/lib/browser/console/debug-console-contribution.js.map +0 -1
  31. package/lib/browser/console/debug-console-items.d.ts +0 -97
  32. package/lib/browser/console/debug-console-items.d.ts.map +0 -1
  33. package/lib/browser/console/debug-console-items.js +0 -343
  34. package/lib/browser/console/debug-console-items.js.map +0 -1
  35. package/lib/browser/console/debug-console-session.d.ts +0 -32
  36. package/lib/browser/console/debug-console-session.d.ts.map +0 -1
  37. package/lib/browser/console/debug-console-session.js +0 -192
  38. package/lib/browser/console/debug-console-session.js.map +0 -1
  39. package/lib/browser/debug-call-stack-item-type-key.d.ts +0 -4
  40. package/lib/browser/debug-call-stack-item-type-key.d.ts.map +0 -1
  41. package/lib/browser/debug-call-stack-item-type-key.js +0 -20
  42. package/lib/browser/debug-call-stack-item-type-key.js.map +0 -1
  43. package/lib/browser/debug-configuration-manager.d.ts +0 -103
  44. package/lib/browser/debug-configuration-manager.d.ts.map +0 -1
  45. package/lib/browser/debug-configuration-manager.js +0 -545
  46. package/lib/browser/debug-configuration-manager.js.map +0 -1
  47. package/lib/browser/debug-configuration-model.d.ts +0 -30
  48. package/lib/browser/debug-configuration-model.d.ts.map +0 -1
  49. package/lib/browser/debug-configuration-model.js +0 -80
  50. package/lib/browser/debug-configuration-model.js.map +0 -1
  51. package/lib/browser/debug-contribution.d.ts +0 -23
  52. package/lib/browser/debug-contribution.d.ts.map +0 -1
  53. package/lib/browser/debug-contribution.js +0 -20
  54. package/lib/browser/debug-contribution.js.map +0 -1
  55. package/lib/browser/debug-frontend-application-contribution.d.ts +0 -246
  56. package/lib/browser/debug-frontend-application-contribution.d.ts.map +0 -1
  57. package/lib/browser/debug-frontend-application-contribution.js +0 -1645
  58. package/lib/browser/debug-frontend-application-contribution.js.map +0 -1
  59. package/lib/browser/debug-frontend-module.d.ts +0 -5
  60. package/lib/browser/debug-frontend-module.d.ts.map +0 -1
  61. package/lib/browser/debug-frontend-module.js +0 -108
  62. package/lib/browser/debug-frontend-module.js.map +0 -1
  63. package/lib/browser/debug-package.spec.d.ts +0 -1
  64. package/lib/browser/debug-package.spec.d.ts.map +0 -1
  65. package/lib/browser/debug-package.spec.js +0 -19
  66. package/lib/browser/debug-package.spec.js.map +0 -1
  67. package/lib/browser/debug-prefix-configuration.d.ts +0 -52
  68. package/lib/browser/debug-prefix-configuration.d.ts.map +0 -1
  69. package/lib/browser/debug-prefix-configuration.js +0 -202
  70. package/lib/browser/debug-prefix-configuration.js.map +0 -1
  71. package/lib/browser/debug-resource.d.ts +0 -15
  72. package/lib/browser/debug-resource.d.ts.map +0 -1
  73. package/lib/browser/debug-resource.js +0 -58
  74. package/lib/browser/debug-resource.js.map +0 -1
  75. package/lib/browser/debug-schema-updater.d.ts +0 -14
  76. package/lib/browser/debug-schema-updater.d.ts.map +0 -1
  77. package/lib/browser/debug-schema-updater.js +0 -161
  78. package/lib/browser/debug-schema-updater.js.map +0 -1
  79. package/lib/browser/debug-session-configuration-label-provider.d.ts +0 -11
  80. package/lib/browser/debug-session-configuration-label-provider.d.ts.map +0 -1
  81. package/lib/browser/debug-session-configuration-label-provider.js +0 -48
  82. package/lib/browser/debug-session-configuration-label-provider.js.map +0 -1
  83. package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +0 -2
  84. package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +0 -1
  85. package/lib/browser/debug-session-configuration-label-provider.spec.js +0 -84
  86. package/lib/browser/debug-session-configuration-label-provider.spec.js.map +0 -1
  87. package/lib/browser/debug-session-connection.d.ts +0 -111
  88. package/lib/browser/debug-session-connection.d.ts.map +0 -1
  89. package/lib/browser/debug-session-connection.js +0 -259
  90. package/lib/browser/debug-session-connection.js.map +0 -1
  91. package/lib/browser/debug-session-contribution.d.ts +0 -77
  92. package/lib/browser/debug-session-contribution.d.ts.map +0 -1
  93. package/lib/browser/debug-session-contribution.js +0 -143
  94. package/lib/browser/debug-session-contribution.js.map +0 -1
  95. package/lib/browser/debug-session-manager.d.ts +0 -138
  96. package/lib/browser/debug-session-manager.d.ts.map +0 -1
  97. package/lib/browser/debug-session-manager.js +0 -620
  98. package/lib/browser/debug-session-manager.js.map +0 -1
  99. package/lib/browser/debug-session-options.d.ts +0 -56
  100. package/lib/browser/debug-session-options.d.ts.map +0 -1
  101. package/lib/browser/debug-session-options.js +0 -92
  102. package/lib/browser/debug-session-options.js.map +0 -1
  103. package/lib/browser/debug-session.d.ts +0 -192
  104. package/lib/browser/debug-session.d.ts.map +0 -1
  105. package/lib/browser/debug-session.js +0 -913
  106. package/lib/browser/debug-session.js.map +0 -1
  107. package/lib/browser/debug-tab-bar-decorator.d.ts +0 -17
  108. package/lib/browser/debug-tab-bar-decorator.d.ts.map +0 -1
  109. package/lib/browser/debug-tab-bar-decorator.js +0 -63
  110. package/lib/browser/debug-tab-bar-decorator.js.map +0 -1
  111. package/lib/browser/debug-watch-manager.d.ts +0 -22
  112. package/lib/browser/debug-watch-manager.d.ts.map +0 -1
  113. package/lib/browser/debug-watch-manager.js +0 -86
  114. package/lib/browser/debug-watch-manager.js.map +0 -1
  115. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +0 -7
  116. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +0 -1
  117. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +0 -39
  118. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +0 -1
  119. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +0 -20
  120. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +0 -1
  121. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +0 -111
  122. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +0 -1
  123. package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +0 -25
  124. package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +0 -1
  125. package/lib/browser/disassembly-view/disassembly-view-contribution.js +0 -124
  126. package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +0 -1
  127. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +0 -39
  128. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +0 -1
  129. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +0 -213
  130. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +0 -1
  131. package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +0 -16
  132. package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +0 -1
  133. package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +0 -39
  134. package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +0 -1
  135. package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +0 -38
  136. package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +0 -1
  137. package/lib/browser/disassembly-view/disassembly-view-utilities.js +0 -18
  138. package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +0 -1
  139. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +0 -61
  140. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +0 -1
  141. package/lib/browser/disassembly-view/disassembly-view-widget.js +0 -446
  142. package/lib/browser/disassembly-view/disassembly-view-widget.js.map +0 -1
  143. package/lib/browser/editor/debug-breakpoint-widget.d.ts +0 -58
  144. package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +0 -1
  145. package/lib/browser/editor/debug-breakpoint-widget.js +0 -270
  146. package/lib/browser/editor/debug-breakpoint-widget.js.map +0 -1
  147. package/lib/browser/editor/debug-editor-model.d.ts +0 -87
  148. package/lib/browser/editor/debug-editor-model.d.ts.map +0 -1
  149. package/lib/browser/editor/debug-editor-model.js +0 -499
  150. package/lib/browser/editor/debug-editor-model.js.map +0 -1
  151. package/lib/browser/editor/debug-editor-service.d.ts +0 -38
  152. package/lib/browser/editor/debug-editor-service.d.ts.map +0 -1
  153. package/lib/browser/editor/debug-editor-service.js +0 -183
  154. package/lib/browser/editor/debug-editor-service.js.map +0 -1
  155. package/lib/browser/editor/debug-editor.d.ts +0 -4
  156. package/lib/browser/editor/debug-editor.d.ts.map +0 -1
  157. package/lib/browser/editor/debug-editor.js +0 -20
  158. package/lib/browser/editor/debug-editor.js.map +0 -1
  159. package/lib/browser/editor/debug-exception-widget.d.ts +0 -30
  160. package/lib/browser/editor/debug-exception-widget.d.ts.map +0 -1
  161. package/lib/browser/editor/debug-exception-widget.js +0 -107
  162. package/lib/browser/editor/debug-exception-widget.js.map +0 -1
  163. package/lib/browser/editor/debug-expression-provider.d.ts +0 -12
  164. package/lib/browser/editor/debug-expression-provider.d.ts.map +0 -1
  165. package/lib/browser/editor/debug-expression-provider.js +0 -77
  166. package/lib/browser/editor/debug-expression-provider.js.map +0 -1
  167. package/lib/browser/editor/debug-hover-source.d.ts +0 -19
  168. package/lib/browser/editor/debug-hover-source.d.ts.map +0 -1
  169. package/lib/browser/editor/debug-hover-source.js +0 -110
  170. package/lib/browser/editor/debug-hover-source.js.map +0 -1
  171. package/lib/browser/editor/debug-hover-widget.d.ts +0 -61
  172. package/lib/browser/editor/debug-hover-widget.d.ts.map +0 -1
  173. package/lib/browser/editor/debug-hover-widget.js +0 -304
  174. package/lib/browser/editor/debug-hover-widget.js.map +0 -1
  175. package/lib/browser/editor/debug-inline-value-decorator.d.ts +0 -20
  176. package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +0 -1
  177. package/lib/browser/editor/debug-inline-value-decorator.js +0 -326
  178. package/lib/browser/editor/debug-inline-value-decorator.js.map +0 -1
  179. package/lib/browser/model/debug-breakpoint.d.ts +0 -48
  180. package/lib/browser/model/debug-breakpoint.d.ts.map +0 -1
  181. package/lib/browser/model/debug-breakpoint.js +0 -111
  182. package/lib/browser/model/debug-breakpoint.js.map +0 -1
  183. package/lib/browser/model/debug-function-breakpoint.d.ts +0 -19
  184. package/lib/browser/model/debug-function-breakpoint.d.ts.map +0 -1
  185. package/lib/browser/model/debug-function-breakpoint.js +0 -93
  186. package/lib/browser/model/debug-function-breakpoint.js.map +0 -1
  187. package/lib/browser/model/debug-instruction-breakpoint.d.ts +0 -15
  188. package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +0 -1
  189. package/lib/browser/model/debug-instruction-breakpoint.js +0 -66
  190. package/lib/browser/model/debug-instruction-breakpoint.js.map +0 -1
  191. package/lib/browser/model/debug-source-breakpoint.d.ts +0 -39
  192. package/lib/browser/model/debug-source-breakpoint.d.ts.map +0 -1
  193. package/lib/browser/model/debug-source-breakpoint.js +0 -219
  194. package/lib/browser/model/debug-source-breakpoint.js.map +0 -1
  195. package/lib/browser/model/debug-source.d.ts +0 -25
  196. package/lib/browser/model/debug-source.d.ts.map +0 -1
  197. package/lib/browser/model/debug-source.js +0 -81
  198. package/lib/browser/model/debug-source.js.map +0 -1
  199. package/lib/browser/model/debug-stack-frame.d.ts +0 -45
  200. package/lib/browser/model/debug-stack-frame.d.ts.map +0 -1
  201. package/lib/browser/model/debug-stack-frame.js +0 -157
  202. package/lib/browser/model/debug-stack-frame.js.map +0 -1
  203. package/lib/browser/model/debug-thread.d.ts +0 -68
  204. package/lib/browser/model/debug-thread.d.ts.map +0 -1
  205. package/lib/browser/model/debug-thread.js +0 -262
  206. package/lib/browser/model/debug-thread.js.map +0 -1
  207. package/lib/browser/view/debug-action.d.ts +0 -18
  208. package/lib/browser/view/debug-action.d.ts.map +0 -1
  209. package/lib/browser/view/debug-action.js +0 -44
  210. package/lib/browser/view/debug-action.js.map +0 -1
  211. package/lib/browser/view/debug-breakpoints-source.d.ts +0 -10
  212. package/lib/browser/view/debug-breakpoints-source.d.ts.map +0 -1
  213. package/lib/browser/view/debug-breakpoints-source.js +0 -63
  214. package/lib/browser/view/debug-breakpoints-source.js.map +0 -1
  215. package/lib/browser/view/debug-breakpoints-widget.d.ts +0 -23
  216. package/lib/browser/view/debug-breakpoints-widget.d.ts.map +0 -1
  217. package/lib/browser/view/debug-breakpoints-widget.js +0 -81
  218. package/lib/browser/view/debug-breakpoints-widget.js.map +0 -1
  219. package/lib/browser/view/debug-configuration-select.d.ts +0 -67
  220. package/lib/browser/view/debug-configuration-select.d.ts.map +0 -1
  221. package/lib/browser/view/debug-configuration-select.js +0 -212
  222. package/lib/browser/view/debug-configuration-select.js.map +0 -1
  223. package/lib/browser/view/debug-configuration-widget.d.ts +0 -33
  224. package/lib/browser/view/debug-configuration-widget.d.ts.map +0 -1
  225. package/lib/browser/view/debug-configuration-widget.js +0 -137
  226. package/lib/browser/view/debug-configuration-widget.js.map +0 -1
  227. package/lib/browser/view/debug-exception-breakpoint.d.ts +0 -15
  228. package/lib/browser/view/debug-exception-breakpoint.d.ts.map +0 -1
  229. package/lib/browser/view/debug-exception-breakpoint.js +0 -62
  230. package/lib/browser/view/debug-exception-breakpoint.js.map +0 -1
  231. package/lib/browser/view/debug-session-widget.d.ts +0 -29
  232. package/lib/browser/view/debug-session-widget.d.ts.map +0 -1
  233. package/lib/browser/view/debug-session-widget.js +0 -127
  234. package/lib/browser/view/debug-session-widget.js.map +0 -1
  235. package/lib/browser/view/debug-stack-frames-source.d.ts +0 -18
  236. package/lib/browser/view/debug-stack-frames-source.d.ts.map +0 -1
  237. package/lib/browser/view/debug-stack-frames-source.js +0 -83
  238. package/lib/browser/view/debug-stack-frames-source.js.map +0 -1
  239. package/lib/browser/view/debug-stack-frames-widget.d.ts +0 -25
  240. package/lib/browser/view/debug-stack-frames-widget.d.ts.map +0 -1
  241. package/lib/browser/view/debug-stack-frames-widget.js +0 -147
  242. package/lib/browser/view/debug-stack-frames-widget.js.map +0 -1
  243. package/lib/browser/view/debug-threads-source.d.ts +0 -9
  244. package/lib/browser/view/debug-threads-source.d.ts.map +0 -1
  245. package/lib/browser/view/debug-threads-source.js +0 -56
  246. package/lib/browser/view/debug-threads-source.js.map +0 -1
  247. package/lib/browser/view/debug-threads-widget.d.ts +0 -27
  248. package/lib/browser/view/debug-threads-widget.d.ts.map +0 -1
  249. package/lib/browser/view/debug-threads-widget.js +0 -139
  250. package/lib/browser/view/debug-threads-widget.js.map +0 -1
  251. package/lib/browser/view/debug-toolbar-widget.d.ts +0 -34
  252. package/lib/browser/view/debug-toolbar-widget.d.ts.map +0 -1
  253. package/lib/browser/view/debug-toolbar-widget.js +0 -139
  254. package/lib/browser/view/debug-toolbar-widget.js.map +0 -1
  255. package/lib/browser/view/debug-variables-source.d.ts +0 -10
  256. package/lib/browser/view/debug-variables-source.d.ts.map +0 -1
  257. package/lib/browser/view/debug-variables-source.js +0 -53
  258. package/lib/browser/view/debug-variables-source.js.map +0 -1
  259. package/lib/browser/view/debug-variables-widget.d.ts +0 -17
  260. package/lib/browser/view/debug-variables-widget.d.ts.map +0 -1
  261. package/lib/browser/view/debug-variables-widget.js +0 -71
  262. package/lib/browser/view/debug-variables-widget.js.map +0 -1
  263. package/lib/browser/view/debug-view-model.d.ts +0 -53
  264. package/lib/browser/view/debug-view-model.d.ts.map +0 -1
  265. package/lib/browser/view/debug-view-model.js +0 -212
  266. package/lib/browser/view/debug-view-model.js.map +0 -1
  267. package/lib/browser/view/debug-watch-expression.d.ts +0 -33
  268. package/lib/browser/view/debug-watch-expression.d.ts.map +0 -1
  269. package/lib/browser/view/debug-watch-expression.js +0 -93
  270. package/lib/browser/view/debug-watch-expression.js.map +0 -1
  271. package/lib/browser/view/debug-watch-source.d.ts +0 -10
  272. package/lib/browser/view/debug-watch-source.d.ts.map +0 -1
  273. package/lib/browser/view/debug-watch-source.js +0 -51
  274. package/lib/browser/view/debug-watch-source.js.map +0 -1
  275. package/lib/browser/view/debug-watch-widget.d.ts +0 -17
  276. package/lib/browser/view/debug-watch-widget.d.ts.map +0 -1
  277. package/lib/browser/view/debug-watch-widget.js +0 -71
  278. package/lib/browser/view/debug-watch-widget.js.map +0 -1
  279. package/lib/browser/view/debug-widget.d.ts +0 -24
  280. package/lib/browser/view/debug-widget.d.ts.map +0 -1
  281. package/lib/browser/view/debug-widget.js +0 -101
  282. package/lib/browser/view/debug-widget.js.map +0 -1
  283. package/lib/common/debug-adapter-contribution-registry.d.ts +0 -60
  284. package/lib/common/debug-adapter-contribution-registry.d.ts.map +0 -1
  285. package/lib/common/debug-adapter-contribution-registry.js +0 -205
  286. package/lib/common/debug-adapter-contribution-registry.js.map +0 -1
  287. package/lib/common/debug-adapter-session.d.ts +0 -19
  288. package/lib/common/debug-adapter-session.d.ts.map +0 -1
  289. package/lib/common/debug-adapter-session.js +0 -79
  290. package/lib/common/debug-adapter-session.js.map +0 -1
  291. package/lib/common/debug-common.d.ts +0 -2
  292. package/lib/common/debug-common.d.ts.map +0 -1
  293. package/lib/common/debug-common.js +0 -21
  294. package/lib/common/debug-common.js.map +0 -1
  295. package/lib/common/debug-compound.d.ts +0 -15
  296. package/lib/common/debug-compound.d.ts.map +0 -1
  297. package/lib/common/debug-compound.js +0 -28
  298. package/lib/common/debug-compound.js.map +0 -1
  299. package/lib/common/debug-configuration.d.ts +0 -77
  300. package/lib/common/debug-configuration.d.ts.map +0 -1
  301. package/lib/common/debug-configuration.js +0 -32
  302. package/lib/common/debug-configuration.js.map +0 -1
  303. package/lib/common/debug-model.d.ts +0 -153
  304. package/lib/common/debug-model.d.ts.map +0 -1
  305. package/lib/common/debug-model.js +0 -36
  306. package/lib/common/debug-model.js.map +0 -1
  307. package/lib/common/debug-preferences.d.ts +0 -18
  308. package/lib/common/debug-preferences.d.ts.map +0 -1
  309. package/lib/common/debug-preferences.js +0 -89
  310. package/lib/common/debug-preferences.js.map +0 -1
  311. package/lib/common/debug-service.d.ts +0 -124
  312. package/lib/common/debug-service.d.ts.map +0 -1
  313. package/lib/common/debug-service.js +0 -67
  314. package/lib/common/debug-service.js.map +0 -1
  315. package/lib/common/debug-uri-utils.d.ts +0 -24
  316. package/lib/common/debug-uri-utils.d.ts.map +0 -1
  317. package/lib/common/debug-uri-utils.js +0 -27
  318. package/lib/common/debug-uri-utils.js.map +0 -1
  319. package/lib/common/inline-debug-adapter.d.ts +0 -19
  320. package/lib/common/inline-debug-adapter.d.ts.map +0 -1
  321. package/lib/common/inline-debug-adapter.js +0 -45
  322. package/lib/common/inline-debug-adapter.js.map +0 -1
  323. package/lib/common/launch-preferences.d.ts +0 -6
  324. package/lib/common/launch-preferences.d.ts.map +0 -1
  325. package/lib/common/launch-preferences.js +0 -37
  326. package/lib/common/launch-preferences.js.map +0 -1
  327. package/lib/node/debug-adapter-factory.d.ts +0 -20
  328. package/lib/node/debug-adapter-factory.d.ts.map +0 -1
  329. package/lib/node/debug-adapter-factory.js +0 -89
  330. package/lib/node/debug-adapter-factory.js.map +0 -1
  331. package/lib/node/debug-adapter-session-manager.d.ts +0 -38
  332. package/lib/node/debug-adapter-session-manager.d.ts.map +0 -1
  333. package/lib/node/debug-adapter-session-manager.js +0 -104
  334. package/lib/node/debug-adapter-session-manager.js.map +0 -1
  335. package/lib/node/debug-backend-module.d.ts +0 -4
  336. package/lib/node/debug-backend-module.d.ts.map +0 -1
  337. package/lib/node/debug-backend-module.js +0 -45
  338. package/lib/node/debug-backend-module.js.map +0 -1
  339. package/lib/node/debug-service-impl.d.ts +0 -31
  340. package/lib/node/debug-service-impl.d.ts.map +0 -1
  341. package/lib/node/debug-service-impl.js +0 -117
  342. package/lib/node/debug-service-impl.js.map +0 -1
  343. package/lib/node/stream-debug-adapter.d.ts +0 -41
  344. package/lib/node/stream-debug-adapter.d.ts.map +0 -1
  345. package/lib/node/stream-debug-adapter.js +0 -113
  346. package/lib/node/stream-debug-adapter.js.map +0 -1
@@ -1,1645 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2018 TypeFox and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DebugFrontendApplicationContribution = exports.DebugBreakpointWidgetCommands = exports.DebugEditorContextCommands = exports.DebugSessionContextCommands = exports.DebugThreadContextCommands = exports.DebugCommands = exports.DebugMenus = void 0;
19
- const tslib_1 = require("tslib");
20
- const browser_1 = require("@theia/core/lib/browser");
21
- const source_tree_1 = require("@theia/core/lib/browser/source-tree");
22
- const inversify_1 = require("@theia/core/shared/inversify");
23
- const monaco = require("@theia/monaco-editor-core");
24
- const common_1 = require("@theia/core/lib/common");
25
- const promise_util_1 = require("@theia/core/lib/common/promise-util");
26
- const browser_2 = require("@theia/editor/lib/browser");
27
- const debug_session_manager_1 = require("./debug-session-manager");
28
- const debug_widget_1 = require("./view/debug-widget");
29
- const breakpoint_marker_1 = require("./breakpoint/breakpoint-marker");
30
- const breakpoint_manager_1 = require("./breakpoint/breakpoint-manager");
31
- const debug_configuration_manager_1 = require("./debug-configuration-manager");
32
- const debug_session_1 = require("./debug-session");
33
- const debug_breakpoints_widget_1 = require("./view/debug-breakpoints-widget");
34
- const debug_source_breakpoint_1 = require("./model/debug-source-breakpoint");
35
- const debug_threads_widget_1 = require("./view/debug-threads-widget");
36
- const debug_thread_1 = require("./model/debug-thread");
37
- const debug_stack_frames_widget_1 = require("./view/debug-stack-frames-widget");
38
- const debug_stack_frame_1 = require("./model/debug-stack-frame");
39
- const debug_variables_widget_1 = require("./view/debug-variables-widget");
40
- const debug_console_items_1 = require("./console/debug-console-items");
41
- const debug_editor_model_1 = require("./editor/debug-editor-model");
42
- const debug_editor_service_1 = require("./editor/debug-editor-service");
43
- const debug_console_contribution_1 = require("./console/debug-console-contribution");
44
- const debug_service_1 = require("../common/debug-service");
45
- const debug_schema_updater_1 = require("./debug-schema-updater");
46
- const debug_preferences_1 = require("../common/debug-preferences");
47
- const debug_watch_widget_1 = require("./view/debug-watch-widget");
48
- const debug_watch_expression_1 = require("./view/debug-watch-expression");
49
- const debug_watch_manager_1 = require("./debug-watch-manager");
50
- const debug_session_options_1 = require("./debug-session-options");
51
- const debug_function_breakpoint_1 = require("./model/debug-function-breakpoint");
52
- const debug_breakpoint_1 = require("./model/debug-breakpoint");
53
- const nls_1 = require("@theia/core/lib/common/nls");
54
- const debug_instruction_breakpoint_1 = require("./model/debug-instruction-breakpoint");
55
- const debug_exception_breakpoint_1 = require("./view/debug-exception-breakpoint");
56
- const debug_toolbar_widget_1 = require("./view/debug-toolbar-widget");
57
- const console_widget_1 = require("@theia/console/lib/browser/console-widget");
58
- const console_contribution_1 = require("@theia/console/lib/browser/console-contribution");
59
- const debug_hover_widget_1 = require("./editor/debug-hover-widget");
60
- var DebugMenus;
61
- (function (DebugMenus) {
62
- DebugMenus.DEBUG = [...common_1.MAIN_MENU_BAR, '6_debug'];
63
- DebugMenus.DEBUG_CONTROLS = [...DebugMenus.DEBUG, 'a_controls'];
64
- DebugMenus.DEBUG_CONFIGURATION = [...DebugMenus.DEBUG, 'b_configuration'];
65
- DebugMenus.DEBUG_THREADS = [...DebugMenus.DEBUG, 'c_threads'];
66
- DebugMenus.DEBUG_SESSIONS = [...DebugMenus.DEBUG, 'd_sessions'];
67
- DebugMenus.DEBUG_BREAKPOINT = [...DebugMenus.DEBUG, 'e_breakpoint'];
68
- DebugMenus.DEBUG_NEW_BREAKPOINT = [...DebugMenus.DEBUG_BREAKPOINT, 'a_new_breakpoint'];
69
- DebugMenus.DEBUG_BREAKPOINTS = [...DebugMenus.DEBUG, 'f_breakpoints'];
70
- })(DebugMenus || (exports.DebugMenus = DebugMenus = {}));
71
- function nlsEditBreakpoint(breakpoint) {
72
- return nls_1.nls.localizeByDefault('Edit {0}...', nls_1.nls.localizeByDefault(breakpoint));
73
- }
74
- function nlsRemoveBreakpoint(breakpoint) {
75
- return nls_1.nls.localizeByDefault('Remove {0}', nls_1.nls.localizeByDefault(breakpoint));
76
- }
77
- function nlsEnableBreakpoint(breakpoint) {
78
- return nls_1.nls.localizeByDefault('Enable {0}', nls_1.nls.localizeByDefault(breakpoint));
79
- }
80
- function nlsDisableBreakpoint(breakpoint) {
81
- return nls_1.nls.localizeByDefault('Disable {0}', nls_1.nls.localizeByDefault(breakpoint));
82
- }
83
- var DebugCommands;
84
- (function (DebugCommands) {
85
- DebugCommands.DEBUG_CATEGORY = 'Debug';
86
- DebugCommands.DEBUG_CATEGORY_KEY = nls_1.nls.getDefaultKey(DebugCommands.DEBUG_CATEGORY);
87
- DebugCommands.START = common_1.Command.toDefaultLocalizedCommand({
88
- id: 'workbench.action.debug.start',
89
- category: DebugCommands.DEBUG_CATEGORY,
90
- label: 'Start Debugging',
91
- iconClass: (0, browser_1.codicon)('debug-alt')
92
- });
93
- DebugCommands.START_NO_DEBUG = common_1.Command.toDefaultLocalizedCommand({
94
- id: 'workbench.action.debug.run',
95
- category: DebugCommands.DEBUG_CATEGORY,
96
- label: 'Start Without Debugging'
97
- });
98
- DebugCommands.STOP = common_1.Command.toDefaultLocalizedCommand({
99
- id: 'workbench.action.debug.stop',
100
- category: DebugCommands.DEBUG_CATEGORY,
101
- label: 'Stop',
102
- iconClass: (0, browser_1.codicon)('debug-stop')
103
- });
104
- DebugCommands.RESTART = common_1.Command.toDefaultLocalizedCommand({
105
- id: 'workbench.action.debug.restart',
106
- category: DebugCommands.DEBUG_CATEGORY,
107
- label: 'Restart',
108
- });
109
- DebugCommands.OPEN_CONFIGURATIONS = common_1.Command.toDefaultLocalizedCommand({
110
- id: 'debug.configurations.open',
111
- category: DebugCommands.DEBUG_CATEGORY,
112
- label: 'Open Configurations'
113
- });
114
- DebugCommands.ADD_CONFIGURATION = common_1.Command.toDefaultLocalizedCommand({
115
- id: 'debug.configurations.add',
116
- category: DebugCommands.DEBUG_CATEGORY,
117
- label: 'Add Configuration...'
118
- });
119
- DebugCommands.STEP_OVER = common_1.Command.toDefaultLocalizedCommand({
120
- id: 'workbench.action.debug.stepOver',
121
- category: DebugCommands.DEBUG_CATEGORY,
122
- label: 'Step Over',
123
- iconClass: (0, browser_1.codicon)('debug-step-over')
124
- });
125
- DebugCommands.STEP_INTO = common_1.Command.toDefaultLocalizedCommand({
126
- id: 'workbench.action.debug.stepInto',
127
- category: DebugCommands.DEBUG_CATEGORY,
128
- label: 'Step Into',
129
- iconClass: (0, browser_1.codicon)('debug-step-into')
130
- });
131
- DebugCommands.STEP_OUT = common_1.Command.toDefaultLocalizedCommand({
132
- id: 'workbench.action.debug.stepOut',
133
- category: DebugCommands.DEBUG_CATEGORY,
134
- label: 'Step Out',
135
- iconClass: (0, browser_1.codicon)('debug-step-out')
136
- });
137
- DebugCommands.CONTINUE = common_1.Command.toDefaultLocalizedCommand({
138
- id: 'workbench.action.debug.continue',
139
- category: DebugCommands.DEBUG_CATEGORY,
140
- label: 'Continue',
141
- iconClass: (0, browser_1.codicon)('debug-continue')
142
- });
143
- DebugCommands.PAUSE = common_1.Command.toDefaultLocalizedCommand({
144
- id: 'workbench.action.debug.pause',
145
- category: DebugCommands.DEBUG_CATEGORY,
146
- label: 'Pause',
147
- iconClass: (0, browser_1.codicon)('debug-pause')
148
- });
149
- DebugCommands.CONTINUE_ALL = common_1.Command.toLocalizedCommand({
150
- id: 'debug.thread.continue.all',
151
- category: DebugCommands.DEBUG_CATEGORY,
152
- label: 'Continue All',
153
- iconClass: (0, browser_1.codicon)('debug-continue')
154
- }, 'theia/debug/continueAll', DebugCommands.DEBUG_CATEGORY_KEY);
155
- DebugCommands.PAUSE_ALL = common_1.Command.toLocalizedCommand({
156
- id: 'debug.thread.pause.all',
157
- category: DebugCommands.DEBUG_CATEGORY,
158
- label: 'Pause All',
159
- iconClass: (0, browser_1.codicon)('debug-pause')
160
- }, 'theia/debug/pauseAll', DebugCommands.DEBUG_CATEGORY_KEY);
161
- DebugCommands.TOGGLE_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
162
- id: 'editor.debug.action.toggleBreakpoint',
163
- category: DebugCommands.DEBUG_CATEGORY,
164
- label: 'Toggle Breakpoint',
165
- });
166
- DebugCommands.INLINE_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
167
- id: 'editor.debug.action.inlineBreakpoint',
168
- category: DebugCommands.DEBUG_CATEGORY,
169
- label: 'Inline Breakpoint',
170
- });
171
- DebugCommands.ADD_CONDITIONAL_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
172
- id: 'debug.breakpoint.add.conditional',
173
- category: DebugCommands.DEBUG_CATEGORY,
174
- label: 'Add Conditional Breakpoint...',
175
- });
176
- DebugCommands.ADD_LOGPOINT = common_1.Command.toDefaultLocalizedCommand({
177
- id: 'debug.breakpoint.add.logpoint',
178
- category: DebugCommands.DEBUG_CATEGORY,
179
- label: 'Add Logpoint...',
180
- });
181
- DebugCommands.ADD_FUNCTION_BREAKPOINT = common_1.Command.toDefaultLocalizedCommand({
182
- id: 'debug.breakpoint.add.function',
183
- category: DebugCommands.DEBUG_CATEGORY,
184
- label: 'Add Function Breakpoint',
185
- });
186
- DebugCommands.ENABLE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
187
- id: 'debug.breakpoint.enableSelected',
188
- category: DebugCommands.DEBUG_CATEGORY,
189
- label: 'Enable Selected Breakpoints',
190
- }, 'theia/debug/enableSelectedBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
191
- DebugCommands.ENABLE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
192
- id: 'debug.breakpoint.enableAll',
193
- category: DebugCommands.DEBUG_CATEGORY,
194
- label: 'Enable All Breakpoints',
195
- });
196
- DebugCommands.DISABLE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
197
- id: 'debug.breakpoint.disableSelected',
198
- category: DebugCommands.DEBUG_CATEGORY,
199
- label: 'Disable Selected Breakpoints',
200
- }, 'theia/debug/disableSelectedBreakpoints', DebugCommands.DEBUG_CATEGORY_KEY);
201
- DebugCommands.DISABLE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
202
- id: 'debug.breakpoint.disableAll',
203
- category: DebugCommands.DEBUG_CATEGORY,
204
- label: 'Disable All Breakpoints',
205
- });
206
- DebugCommands.EDIT_BREAKPOINT = common_1.Command.toLocalizedCommand({
207
- id: 'debug.breakpoint.edit',
208
- category: DebugCommands.DEBUG_CATEGORY,
209
- originalLabel: 'Edit Breakpoint...',
210
- label: nlsEditBreakpoint('Breakpoint')
211
- }, '', DebugCommands.DEBUG_CATEGORY_KEY);
212
- DebugCommands.EDIT_LOGPOINT = common_1.Command.toLocalizedCommand({
213
- id: 'debug.logpoint.edit',
214
- category: DebugCommands.DEBUG_CATEGORY,
215
- originalLabel: 'Edit Logpoint...',
216
- label: nlsEditBreakpoint('Logpoint')
217
- }, '', DebugCommands.DEBUG_CATEGORY_KEY);
218
- DebugCommands.EDIT_BREAKPOINT_CONDITION = common_1.Command.toLocalizedCommand({
219
- id: 'debug.breakpoint.editCondition',
220
- category: DebugCommands.DEBUG_CATEGORY,
221
- label: 'Edit Condition...'
222
- }, '', DebugCommands.DEBUG_CATEGORY_KEY);
223
- DebugCommands.REMOVE_BREAKPOINT = common_1.Command.toLocalizedCommand({
224
- id: 'debug.breakpoint.remove',
225
- category: DebugCommands.DEBUG_CATEGORY,
226
- originalLabel: 'Remove Breakpoint',
227
- label: nlsRemoveBreakpoint('Breakpoint')
228
- }, '', DebugCommands.DEBUG_CATEGORY_KEY);
229
- DebugCommands.REMOVE_LOGPOINT = common_1.Command.toLocalizedCommand({
230
- id: 'debug.logpoint.remove',
231
- category: DebugCommands.DEBUG_CATEGORY,
232
- originalLabel: 'Remove Logpoint',
233
- label: nlsRemoveBreakpoint('Logpoint')
234
- }, '', DebugCommands.DEBUG_CATEGORY_KEY);
235
- DebugCommands.REMOVE_SELECTED_BREAKPOINTS = common_1.Command.toLocalizedCommand({
236
- id: 'debug.breakpoint.removeSelected',
237
- category: DebugCommands.DEBUG_CATEGORY,
238
- label: 'Remove Selected Breakpoints',
239
- }, '', DebugCommands.DEBUG_CATEGORY_KEY);
240
- DebugCommands.REMOVE_ALL_BREAKPOINTS = common_1.Command.toDefaultLocalizedCommand({
241
- id: 'debug.breakpoint.removeAll',
242
- category: DebugCommands.DEBUG_CATEGORY,
243
- label: 'Remove All Breakpoints',
244
- });
245
- DebugCommands.TOGGLE_BREAKPOINTS_ENABLED = common_1.Command.toLocalizedCommand({
246
- id: 'debug.breakpoint.toggleEnabled'
247
- });
248
- DebugCommands.SHOW_HOVER = common_1.Command.toDefaultLocalizedCommand({
249
- id: 'editor.debug.action.showDebugHover',
250
- label: 'Debug: Show Hover'
251
- });
252
- DebugCommands.EVALUATE_IN_DEBUG_CONSOLE = common_1.Command.toDefaultLocalizedCommand({
253
- id: 'editor.debug.action.selectionToRepl',
254
- category: DebugCommands.DEBUG_CATEGORY,
255
- label: 'Evaluate in Debug Console'
256
- });
257
- DebugCommands.JUMP_TO_CURSOR = common_1.Command.toDefaultLocalizedCommand({
258
- id: 'editor.debug.action.jumpToCursor',
259
- category: DebugCommands.DEBUG_CATEGORY,
260
- label: 'Jump to Cursor'
261
- });
262
- DebugCommands.RUN_TO_CURSOR = common_1.Command.toDefaultLocalizedCommand({
263
- id: 'editor.debug.action.runToCursor',
264
- category: DebugCommands.DEBUG_CATEGORY,
265
- label: 'Run to Cursor'
266
- });
267
- DebugCommands.RUN_TO_LINE = common_1.Command.toDefaultLocalizedCommand({
268
- id: 'editor.debug.action.runToLine',
269
- category: DebugCommands.DEBUG_CATEGORY,
270
- label: 'Run to Line'
271
- });
272
- DebugCommands.RESTART_FRAME = common_1.Command.toDefaultLocalizedCommand({
273
- id: 'debug.frame.restart',
274
- category: DebugCommands.DEBUG_CATEGORY,
275
- label: 'Restart Frame',
276
- });
277
- DebugCommands.COPY_CALL_STACK = common_1.Command.toDefaultLocalizedCommand({
278
- id: 'debug.callStack.copy',
279
- category: DebugCommands.DEBUG_CATEGORY,
280
- label: 'Copy Call Stack',
281
- });
282
- DebugCommands.SET_VARIABLE_VALUE = common_1.Command.toDefaultLocalizedCommand({
283
- id: 'debug.variable.setValue',
284
- category: DebugCommands.DEBUG_CATEGORY,
285
- label: 'Set Value',
286
- });
287
- DebugCommands.COPY_VARIABLE_VALUE = common_1.Command.toDefaultLocalizedCommand({
288
- id: 'debug.variable.copyValue',
289
- category: DebugCommands.DEBUG_CATEGORY,
290
- label: 'Copy Value',
291
- });
292
- DebugCommands.COPY_VARIABLE_AS_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
293
- id: 'debug.variable.copyAsExpression',
294
- category: DebugCommands.DEBUG_CATEGORY,
295
- label: 'Copy as Expression',
296
- });
297
- DebugCommands.WATCH_VARIABLE = common_1.Command.toDefaultLocalizedCommand({
298
- id: 'debug.variable.watch',
299
- category: DebugCommands.DEBUG_CATEGORY,
300
- label: 'Add to Watch',
301
- });
302
- DebugCommands.ADD_WATCH_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
303
- id: 'debug.watch.addExpression',
304
- category: DebugCommands.DEBUG_CATEGORY,
305
- label: 'Add Expression'
306
- });
307
- DebugCommands.EDIT_WATCH_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
308
- id: 'debug.watch.editExpression',
309
- category: DebugCommands.DEBUG_CATEGORY,
310
- label: 'Edit Expression'
311
- });
312
- DebugCommands.COPY_WATCH_EXPRESSION_VALUE = common_1.Command.toLocalizedCommand({
313
- id: 'debug.watch.copyExpressionValue',
314
- category: DebugCommands.DEBUG_CATEGORY,
315
- label: 'Copy Expression Value'
316
- }, 'theia/debug/copyExpressionValue', DebugCommands.DEBUG_CATEGORY_KEY);
317
- DebugCommands.REMOVE_WATCH_EXPRESSION = common_1.Command.toDefaultLocalizedCommand({
318
- id: 'debug.watch.removeExpression',
319
- category: DebugCommands.DEBUG_CATEGORY,
320
- label: 'Remove Expression'
321
- });
322
- DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS = common_1.Command.toDefaultLocalizedCommand({
323
- id: 'debug.watch.collapseAllExpressions',
324
- category: DebugCommands.DEBUG_CATEGORY,
325
- label: 'Collapse All'
326
- });
327
- DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS = common_1.Command.toDefaultLocalizedCommand({
328
- id: 'debug.watch.removeAllExpressions',
329
- category: DebugCommands.DEBUG_CATEGORY,
330
- label: 'Remove All Expressions'
331
- });
332
- })(DebugCommands || (exports.DebugCommands = DebugCommands = {}));
333
- var DebugThreadContextCommands;
334
- (function (DebugThreadContextCommands) {
335
- DebugThreadContextCommands.STEP_OVER = {
336
- id: 'debug.thread.context.context.next'
337
- };
338
- DebugThreadContextCommands.STEP_INTO = {
339
- id: 'debug.thread.context.stepin'
340
- };
341
- DebugThreadContextCommands.STEP_OUT = {
342
- id: 'debug.thread.context.stepout'
343
- };
344
- DebugThreadContextCommands.CONTINUE = {
345
- id: 'debug.thread.context.continue'
346
- };
347
- DebugThreadContextCommands.PAUSE = {
348
- id: 'debug.thread.context.pause'
349
- };
350
- DebugThreadContextCommands.TERMINATE = {
351
- id: 'debug.thread.context.terminate'
352
- };
353
- })(DebugThreadContextCommands || (exports.DebugThreadContextCommands = DebugThreadContextCommands = {}));
354
- var DebugSessionContextCommands;
355
- (function (DebugSessionContextCommands) {
356
- DebugSessionContextCommands.STOP = {
357
- id: 'debug.session.context.stop'
358
- };
359
- DebugSessionContextCommands.RESTART = {
360
- id: 'debug.session.context.restart'
361
- };
362
- DebugSessionContextCommands.PAUSE_ALL = {
363
- id: 'debug.session.context.pauseAll'
364
- };
365
- DebugSessionContextCommands.CONTINUE_ALL = {
366
- id: 'debug.session.context.continueAll'
367
- };
368
- DebugSessionContextCommands.REVEAL = {
369
- id: 'debug.session.context.reveal'
370
- };
371
- })(DebugSessionContextCommands || (exports.DebugSessionContextCommands = DebugSessionContextCommands = {}));
372
- var DebugEditorContextCommands;
373
- (function (DebugEditorContextCommands) {
374
- DebugEditorContextCommands.ADD_BREAKPOINT = {
375
- id: 'debug.editor.context.addBreakpoint'
376
- };
377
- DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT = {
378
- id: 'debug.editor.context.addBreakpoint.conditional'
379
- };
380
- DebugEditorContextCommands.ADD_LOGPOINT = {
381
- id: 'debug.editor.context.add.logpoint'
382
- };
383
- DebugEditorContextCommands.REMOVE_BREAKPOINT = {
384
- id: 'debug.editor.context.removeBreakpoint'
385
- };
386
- DebugEditorContextCommands.EDIT_BREAKPOINT = {
387
- id: 'debug.editor.context.edit.breakpoint'
388
- };
389
- DebugEditorContextCommands.ENABLE_BREAKPOINT = {
390
- id: 'debug.editor.context.enableBreakpoint'
391
- };
392
- DebugEditorContextCommands.DISABLE_BREAKPOINT = {
393
- id: 'debug.editor.context.disableBreakpoint'
394
- };
395
- DebugEditorContextCommands.REMOVE_LOGPOINT = {
396
- id: 'debug.editor.context.logpoint.remove'
397
- };
398
- DebugEditorContextCommands.EDIT_LOGPOINT = {
399
- id: 'debug.editor.context.logpoint.edit'
400
- };
401
- DebugEditorContextCommands.ENABLE_LOGPOINT = {
402
- id: 'debug.editor.context.logpoint.enable'
403
- };
404
- DebugEditorContextCommands.DISABLE_LOGPOINT = {
405
- id: 'debug.editor.context.logpoint.disable'
406
- };
407
- DebugEditorContextCommands.JUMP_TO_CURSOR = {
408
- id: 'debug.editor.context.jumpToCursor'
409
- };
410
- DebugEditorContextCommands.RUN_TO_LINE = {
411
- id: 'debug.editor.context.runToLine'
412
- };
413
- })(DebugEditorContextCommands || (exports.DebugEditorContextCommands = DebugEditorContextCommands = {}));
414
- var DebugBreakpointWidgetCommands;
415
- (function (DebugBreakpointWidgetCommands) {
416
- DebugBreakpointWidgetCommands.ACCEPT = {
417
- id: 'debug.breakpointWidget.accept'
418
- };
419
- DebugBreakpointWidgetCommands.CLOSE = {
420
- id: 'debug.breakpointWidget.close'
421
- };
422
- })(DebugBreakpointWidgetCommands || (exports.DebugBreakpointWidgetCommands = DebugBreakpointWidgetCommands = {}));
423
- let DebugFrontendApplicationContribution = class DebugFrontendApplicationContribution extends browser_1.AbstractViewContribution {
424
- constructor() {
425
- super({
426
- widgetId: debug_widget_1.DebugWidget.ID,
427
- widgetName: debug_widget_1.DebugWidget.LABEL,
428
- defaultWidgetOptions: {
429
- area: 'left',
430
- rank: 400
431
- },
432
- toggleCommandId: 'debug:toggle',
433
- toggleKeybinding: 'ctrlcmd+shift+d'
434
- });
435
- this.firstSessionStart = true;
436
- }
437
- async initializeLayout() {
438
- await this.openView();
439
- }
440
- async onStart() {
441
- this.manager.onDidCreateDebugSession(session => this.openSession(session, { reveal: false }));
442
- this.manager.onDidStartDebugSession(session => {
443
- const { noDebug } = session.configuration;
444
- const openDebug = session.configuration.openDebug || this.preference['debug.openDebug'];
445
- const internalConsoleOptions = session.configuration.internalConsoleOptions || this.preference['debug.internalConsoleOptions'];
446
- if (internalConsoleOptions === 'openOnSessionStart' ||
447
- (internalConsoleOptions === 'openOnFirstSessionStart' && this.firstSessionStart)) {
448
- this.console.openView({
449
- reveal: true,
450
- activate: false,
451
- });
452
- }
453
- const shouldOpenDebug = openDebug === 'openOnSessionStart' || (openDebug === 'openOnFirstSessionStart' && this.firstSessionStart);
454
- // Do not open debug view when suppressed via configuration
455
- if (!noDebug && !this.getOption(session, 'suppressDebugView') && shouldOpenDebug) {
456
- this.openSession(session);
457
- }
458
- this.firstSessionStart = false;
459
- });
460
- this.manager.onDidStopDebugSession(session => {
461
- const { openDebug } = session.configuration;
462
- if (!this.getOption(session, 'suppressDebugView') && openDebug === 'openOnDebugBreak') {
463
- this.openSession(session);
464
- }
465
- });
466
- this.updateStatusBar();
467
- this.manager.onDidChange(() => this.updateStatusBar());
468
- this.schemaUpdater.update();
469
- this.configurations.load();
470
- this.breakpointManager.load();
471
- this.watchManager.load();
472
- }
473
- onStop() {
474
- this.configurations.save();
475
- this.breakpointManager.save();
476
- this.watchManager.save();
477
- }
478
- onWillStop() {
479
- if (this.preference['debug.confirmOnExit'] === 'always' && this.manager.currentSession) {
480
- return {
481
- reason: 'active-debug-sessions',
482
- action: async () => {
483
- if (this.manager.currentSession) {
484
- const msg = this.manager.sessions.length === 1
485
- ? nls_1.nls.localizeByDefault('There is an active debug session, are you sure you want to stop it?')
486
- : nls_1.nls.localizeByDefault('There are active debug sessions, are you sure you want to stop them?');
487
- const safeToExit = await new browser_1.ConfirmDialog({
488
- title: '',
489
- msg,
490
- ok: nls_1.nls.localizeByDefault('Stop Debugging'),
491
- cancel: browser_1.Dialog.CANCEL,
492
- }).open();
493
- return safeToExit === true;
494
- }
495
- return true;
496
- },
497
- };
498
- }
499
- }
500
- registerMenus(menus) {
501
- super.registerMenus(menus);
502
- const registerMenuActions = (menuPath, ...commands) => {
503
- for (const [index, command] of commands.entries()) {
504
- const label = command.label;
505
- const debug = `${DebugCommands.DEBUG_CATEGORY}:`;
506
- menus.registerMenuAction(menuPath, {
507
- commandId: command.id,
508
- label: label && label.startsWith(debug) && label.slice(debug.length).trimStart() || label,
509
- icon: command.iconClass,
510
- order: command.order || String.fromCharCode('a'.charCodeAt(0) + index)
511
- });
512
- }
513
- };
514
- menus.registerSubmenu(DebugMenus.DEBUG, nls_1.nls.localizeByDefault('Run'));
515
- registerMenuActions(DebugMenus.DEBUG_CONTROLS, DebugCommands.START, DebugCommands.START_NO_DEBUG, DebugCommands.STOP, DebugCommands.RESTART);
516
- registerMenuActions(DebugMenus.DEBUG_CONFIGURATION, DebugCommands.OPEN_CONFIGURATIONS, DebugCommands.ADD_CONFIGURATION);
517
- registerMenuActions(DebugMenus.DEBUG_THREADS, DebugCommands.CONTINUE, DebugCommands.STEP_OVER, DebugCommands.STEP_INTO, DebugCommands.STEP_OUT, DebugCommands.PAUSE);
518
- registerMenuActions(DebugMenus.DEBUG_SESSIONS, DebugCommands.CONTINUE_ALL, DebugCommands.PAUSE_ALL);
519
- registerMenuActions(DebugMenus.DEBUG_BREAKPOINT, DebugCommands.TOGGLE_BREAKPOINT);
520
- menus.registerSubmenu(DebugMenus.DEBUG_NEW_BREAKPOINT, nls_1.nls.localizeByDefault('New Breakpoint'));
521
- registerMenuActions(DebugMenus.DEBUG_NEW_BREAKPOINT, DebugCommands.ADD_CONDITIONAL_BREAKPOINT, DebugCommands.INLINE_BREAKPOINT, DebugCommands.ADD_FUNCTION_BREAKPOINT, DebugCommands.ADD_LOGPOINT);
522
- registerMenuActions(DebugMenus.DEBUG_BREAKPOINTS, DebugCommands.ENABLE_ALL_BREAKPOINTS, DebugCommands.DISABLE_ALL_BREAKPOINTS, DebugCommands.REMOVE_ALL_BREAKPOINTS);
523
- registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.CONTROL_MENU, { ...DebugCommands.PAUSE, ...DebugThreadContextCommands.PAUSE }, { ...DebugCommands.CONTINUE, ...DebugThreadContextCommands.CONTINUE }, { ...DebugCommands.STEP_OVER, ...DebugThreadContextCommands.STEP_OVER }, { ...DebugCommands.STEP_INTO, ...DebugThreadContextCommands.STEP_INTO }, { ...DebugCommands.STEP_OUT, ...DebugThreadContextCommands.STEP_OUT }, { ...DebugCommands.PAUSE_ALL, ...DebugSessionContextCommands.PAUSE_ALL }, { ...DebugCommands.CONTINUE_ALL, ...DebugSessionContextCommands.CONTINUE_ALL });
524
- 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') });
525
- registerMenuActions(debug_threads_widget_1.DebugThreadsWidget.OPEN_MENU, { ...DebugSessionContextCommands.REVEAL, label: nls_1.nls.localize('theia/debug/reveal', 'Reveal') });
526
- registerMenuActions(debug_stack_frames_widget_1.DebugStackFramesWidget.CONTEXT_MENU, DebugCommands.RESTART_FRAME, DebugCommands.COPY_CALL_STACK);
527
- registerMenuActions(console_contribution_1.ConsoleContextMenu.CLIPBOARD, { ...DebugCommands.COPY_VARIABLE_VALUE, order: 'a1a' }, { ...DebugCommands.COPY_VARIABLE_AS_EXPRESSION, order: 'a1b' });
528
- registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.EDIT_MENU, DebugCommands.SET_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_AS_EXPRESSION);
529
- registerMenuActions(debug_variables_widget_1.DebugVariablesWidget.WATCH_MENU, DebugCommands.WATCH_VARIABLE);
530
- registerMenuActions(debug_hover_widget_1.DebugHoverWidget.EDIT_MENU, DebugCommands.COPY_VARIABLE_VALUE, DebugCommands.COPY_VARIABLE_AS_EXPRESSION);
531
- registerMenuActions(debug_hover_widget_1.DebugHoverWidget.WATCH_MENU, DebugCommands.WATCH_VARIABLE);
532
- registerMenuActions(debug_watch_widget_1.DebugWatchWidget.EDIT_MENU, DebugCommands.EDIT_WATCH_EXPRESSION, DebugCommands.COPY_WATCH_EXPRESSION_VALUE);
533
- registerMenuActions(debug_watch_widget_1.DebugWatchWidget.REMOVE_MENU, DebugCommands.REMOVE_WATCH_EXPRESSION, DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS);
534
- registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.EDIT_MENU, DebugCommands.EDIT_BREAKPOINT, DebugCommands.EDIT_LOGPOINT, DebugCommands.EDIT_BREAKPOINT_CONDITION);
535
- registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.REMOVE_MENU, DebugCommands.REMOVE_BREAKPOINT, DebugCommands.REMOVE_LOGPOINT, DebugCommands.REMOVE_SELECTED_BREAKPOINTS, DebugCommands.REMOVE_ALL_BREAKPOINTS);
536
- registerMenuActions(debug_breakpoints_widget_1.DebugBreakpointsWidget.ENABLE_MENU, DebugCommands.ENABLE_SELECTED_BREAKPOINTS, DebugCommands.DISABLE_SELECTED_BREAKPOINTS, DebugCommands.ENABLE_ALL_BREAKPOINTS, DebugCommands.DISABLE_ALL_BREAKPOINTS);
537
- const DEBUG_EDITOR_CONTEXT_MENU_GROUP = [...browser_2.EDITOR_CONTEXT_MENU, '2_debug'];
538
- registerMenuActions(DEBUG_EDITOR_CONTEXT_MENU_GROUP, DebugCommands.EVALUATE_IN_DEBUG_CONSOLE, DebugCommands.JUMP_TO_CURSOR, DebugCommands.RUN_TO_CURSOR, DebugCommands.RUN_TO_LINE);
539
- 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') });
540
- 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 });
541
- menus.linkCompoundMenuNode({ newParentPath: browser_2.EDITOR_LINENUMBER_CONTEXT_MENU, submenuPath: debug_editor_model_1.DebugEditorModel.CONTEXT_MENU });
542
- menus.registerSubmenu(debug_toolbar_widget_1.DebugToolBar.MENU, nls_1.nls.localize('theia/debug/debugToolbarMenu', 'Debug Toolbar Menu'));
543
- }
544
- registerCommands(registry) {
545
- super.registerCommands(registry);
546
- registry.registerCommand(DebugCommands.START, {
547
- execute: (config) => {
548
- const validConfig = debug_session_options_1.DebugSessionOptions.is(config) ? config : undefined;
549
- return this.start(false, validConfig);
550
- }
551
- });
552
- registry.registerCommand(DebugCommands.START_NO_DEBUG, {
553
- execute: (config) => {
554
- const validConfig = debug_session_options_1.DebugSessionOptions.is(config) ? config : undefined;
555
- return this.start(true, validConfig);
556
- }
557
- });
558
- registry.registerCommand(DebugCommands.STOP, {
559
- execute: () => this.manager.terminateSession(),
560
- isEnabled: () => this.manager.state !== debug_session_1.DebugState.Inactive
561
- });
562
- registry.registerCommand(DebugCommands.RESTART, {
563
- execute: () => this.manager.restartSession(),
564
- isEnabled: () => this.manager.state !== debug_session_1.DebugState.Inactive
565
- });
566
- registry.registerCommand(DebugCommands.OPEN_CONFIGURATIONS, {
567
- execute: () => this.configurations.openConfiguration()
568
- });
569
- registry.registerCommand(DebugCommands.ADD_CONFIGURATION, {
570
- execute: () => this.configurations.addConfiguration()
571
- });
572
- registry.registerCommand(DebugCommands.STEP_OVER, {
573
- execute: () => this.manager.currentThread && this.manager.currentThread.stepOver(),
574
- isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
575
- });
576
- registry.registerCommand(DebugCommands.STEP_INTO, {
577
- execute: () => this.manager.currentThread && this.manager.currentThread.stepIn(),
578
- isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
579
- });
580
- registry.registerCommand(DebugCommands.STEP_OUT, {
581
- execute: () => this.manager.currentThread && this.manager.currentThread.stepOut(),
582
- isEnabled: () => this.manager.state === debug_session_1.DebugState.Stopped
583
- });
584
- registry.registerCommand(DebugCommands.CONTINUE, {
585
- execute: () => {
586
- if (this.manager.state === debug_session_1.DebugState.Stopped && this.manager.currentThread) {
587
- this.manager.currentThread.continue();
588
- }
589
- },
590
- // When there is a debug session, F5 should always be captured by this command
591
- isEnabled: () => this.manager.state !== debug_session_1.DebugState.Inactive
592
- });
593
- registry.registerCommand(DebugCommands.PAUSE, {
594
- execute: () => this.manager.currentThread && this.manager.currentThread.pause(),
595
- isEnabled: () => this.manager.state === debug_session_1.DebugState.Running
596
- });
597
- registry.registerCommand(DebugCommands.PAUSE_ALL, {
598
- execute: () => this.manager.currentSession && this.manager.currentSession.pauseAll(),
599
- isEnabled: () => !!this.manager.currentSession && !!this.manager.currentSession.runningThreads.next().value
600
- });
601
- registry.registerCommand(DebugCommands.CONTINUE_ALL, {
602
- execute: () => this.manager.currentSession && this.manager.currentSession.continueAll(),
603
- isEnabled: () => !!this.manager.currentSession && !!this.manager.currentSession.stoppedThreads.next().value
604
- });
605
- registry.registerCommand(DebugThreadContextCommands.STEP_OVER, {
606
- execute: () => this.selectedThread && this.selectedThread.stepOver(),
607
- isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
608
- isVisible: () => !!this.selectedThread
609
- });
610
- registry.registerCommand(DebugThreadContextCommands.STEP_INTO, {
611
- execute: () => this.selectedThread && this.selectedThread.stepIn(),
612
- isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
613
- isVisible: () => !!this.selectedThread
614
- });
615
- registry.registerCommand(DebugThreadContextCommands.STEP_OUT, {
616
- execute: () => this.selectedThread && this.selectedThread.stepOut(),
617
- isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
618
- isVisible: () => !!this.selectedThread
619
- });
620
- registry.registerCommand(DebugThreadContextCommands.CONTINUE, {
621
- execute: () => this.selectedThread && this.selectedThread.continue(),
622
- isEnabled: () => !!this.selectedThread && this.selectedThread.stopped,
623
- isVisible: () => !!this.selectedThread && this.selectedThread.stopped,
624
- });
625
- registry.registerCommand(DebugThreadContextCommands.PAUSE, {
626
- execute: () => this.selectedThread && this.selectedThread.pause(),
627
- isEnabled: () => !!this.selectedThread && !this.selectedThread.stopped,
628
- isVisible: () => !!this.selectedThread && !this.selectedThread.stopped,
629
- });
630
- registry.registerCommand(DebugThreadContextCommands.TERMINATE, {
631
- execute: () => this.selectedThread && this.selectedThread.terminate(),
632
- isEnabled: () => !!this.selectedThread && this.selectedThread.supportsTerminate,
633
- isVisible: () => !!this.selectedThread && this.selectedThread.supportsTerminate
634
- });
635
- registry.registerCommand(DebugSessionContextCommands.STOP, {
636
- execute: () => this.selectedSession && this.manager.terminateSession(this.selectedSession),
637
- isEnabled: () => !!this.selectedSession && this.selectedSession.state !== debug_session_1.DebugState.Inactive,
638
- isVisible: () => !this.selectedThread
639
- });
640
- registry.registerCommand(DebugSessionContextCommands.RESTART, {
641
- execute: () => this.selectedSession && this.manager.restartSession(this.selectedSession),
642
- isEnabled: () => !!this.selectedSession && this.selectedSession.state !== debug_session_1.DebugState.Inactive,
643
- isVisible: () => !this.selectedThread
644
- });
645
- registry.registerCommand(DebugSessionContextCommands.CONTINUE_ALL, {
646
- execute: () => this.selectedSession && this.selectedSession.continueAll(),
647
- isEnabled: () => !!this.selectedSession && !!this.selectedSession.stoppedThreads.next().value,
648
- isVisible: () => !this.selectedThread
649
- });
650
- registry.registerCommand(DebugSessionContextCommands.PAUSE_ALL, {
651
- execute: () => this.selectedSession && this.selectedSession.pauseAll(),
652
- isEnabled: () => !!this.selectedSession && !!this.selectedSession.runningThreads.next().value,
653
- isVisible: () => !this.selectedThread
654
- });
655
- registry.registerCommand(DebugSessionContextCommands.REVEAL, {
656
- execute: () => this.selectedSession && this.revealSession(this.selectedSession),
657
- isEnabled: () => Boolean(this.selectedSession),
658
- isVisible: () => !this.selectedThread && Boolean(this.selectedSession)
659
- });
660
- registry.registerCommand(DebugCommands.TOGGLE_BREAKPOINT, {
661
- execute: () => this.editors.toggleBreakpoint(),
662
- isEnabled: () => !!this.editors.model
663
- });
664
- registry.registerCommand(DebugCommands.INLINE_BREAKPOINT, {
665
- execute: () => this.editors.addInlineBreakpoint(),
666
- isEnabled: () => !!this.editors.model && !this.editors.getInlineBreakpoint()
667
- });
668
- registry.registerCommand(DebugCommands.ADD_CONDITIONAL_BREAKPOINT, {
669
- execute: () => this.editors.addBreakpoint('condition'),
670
- isEnabled: () => !!this.editors.model && !this.editors.anyBreakpoint()
671
- });
672
- registry.registerCommand(DebugCommands.ADD_LOGPOINT, {
673
- execute: () => this.editors.addBreakpoint('logMessage'),
674
- isEnabled: () => !!this.editors.model && !this.editors.anyBreakpoint()
675
- });
676
- registry.registerCommand(DebugCommands.ADD_FUNCTION_BREAKPOINT, {
677
- execute: async () => {
678
- const { labelProvider, breakpointManager, editorManager } = this;
679
- const options = { labelProvider, breakpoints: breakpointManager, editorManager };
680
- await new debug_function_breakpoint_1.DebugFunctionBreakpoint(breakpoint_marker_1.FunctionBreakpoint.create({ name: '' }), options).open();
681
- },
682
- isEnabled: widget => !(widget instanceof browser_1.Widget) || widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget,
683
- isVisible: widget => !(widget instanceof browser_1.Widget) || widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget
684
- });
685
- registry.registerCommand(DebugCommands.ENABLE_ALL_BREAKPOINTS, {
686
- execute: () => this.breakpointManager.enableAllBreakpoints(true),
687
- isEnabled: () => this.breakpointManager.hasBreakpoints()
688
- });
689
- registry.registerCommand(DebugCommands.ENABLE_SELECTED_BREAKPOINTS, {
690
- execute: () => this.selectedBreakpoints.forEach(breakpoint => breakpoint.setEnabled(true)),
691
- isVisible: () => this.selectedBreakpoints.some(breakpoint => !breakpoint.enabled),
692
- isEnabled: () => this.selectedBreakpoints.some(breakpoint => !breakpoint.enabled)
693
- });
694
- registry.registerCommand(DebugCommands.DISABLE_ALL_BREAKPOINTS, {
695
- execute: () => this.breakpointManager.enableAllBreakpoints(false),
696
- isEnabled: () => this.breakpointManager.hasBreakpoints()
697
- });
698
- registry.registerCommand(DebugCommands.DISABLE_SELECTED_BREAKPOINTS, {
699
- execute: () => this.selectedBreakpoints.forEach(breakpoint => breakpoint.setEnabled(false)),
700
- isVisible: () => this.selectedBreakpoints.some(breakpoint => breakpoint.enabled),
701
- isEnabled: () => this.selectedBreakpoints.some(breakpoint => breakpoint.enabled)
702
- });
703
- registry.registerCommand(DebugCommands.EDIT_BREAKPOINT, {
704
- execute: async () => {
705
- const { selectedBreakpoint, selectedFunctionBreakpoint } = this;
706
- if (selectedBreakpoint) {
707
- await this.editors.editBreakpoint(selectedBreakpoint);
708
- }
709
- else if (selectedFunctionBreakpoint) {
710
- await selectedFunctionBreakpoint.open();
711
- }
712
- },
713
- isEnabled: () => this.selectedBreakpoints.length === 1 && (!!this.selectedBreakpoint || !!this.selectedFunctionBreakpoint),
714
- isVisible: () => this.selectedBreakpoints.length === 1 && (!!this.selectedBreakpoint || !!this.selectedFunctionBreakpoint)
715
- });
716
- registry.registerCommand(DebugCommands.EDIT_LOGPOINT, {
717
- execute: async () => {
718
- const { selectedLogpoint } = this;
719
- if (selectedLogpoint) {
720
- await this.editors.editBreakpoint(selectedLogpoint);
721
- }
722
- },
723
- isEnabled: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint,
724
- isVisible: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint
725
- });
726
- registry.registerCommand(DebugCommands.EDIT_BREAKPOINT_CONDITION, {
727
- execute: async () => {
728
- const { selectedExceptionBreakpoint } = this;
729
- if (selectedExceptionBreakpoint) {
730
- await selectedExceptionBreakpoint.editCondition();
731
- }
732
- },
733
- isEnabled: () => { var _a; return this.selectedBreakpoints.length === 1 && !!((_a = this.selectedExceptionBreakpoint) === null || _a === void 0 ? void 0 : _a.data.raw.supportsCondition); },
734
- isVisible: () => { var _a; return this.selectedBreakpoints.length === 1 && !!((_a = this.selectedExceptionBreakpoint) === null || _a === void 0 ? void 0 : _a.data.raw.supportsCondition); }
735
- });
736
- registry.registerCommand(DebugCommands.REMOVE_BREAKPOINT, {
737
- execute: () => {
738
- const selectedBreakpoint = this.selectedSettableBreakpoint;
739
- if (selectedBreakpoint) {
740
- selectedBreakpoint.remove();
741
- }
742
- },
743
- isEnabled: () => this.selectedBreakpoints.length === 1 && Boolean(this.selectedSettableBreakpoint),
744
- isVisible: () => this.selectedBreakpoints.length === 1 && Boolean(this.selectedSettableBreakpoint),
745
- });
746
- registry.registerCommand(DebugCommands.REMOVE_LOGPOINT, {
747
- execute: () => {
748
- const { selectedLogpoint } = this;
749
- if (selectedLogpoint) {
750
- selectedLogpoint.remove();
751
- }
752
- },
753
- isEnabled: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint,
754
- isVisible: () => this.selectedBreakpoints.length === 1 && !!this.selectedLogpoint
755
- });
756
- registry.registerCommand(DebugCommands.REMOVE_ALL_BREAKPOINTS, {
757
- execute: () => this.breakpointManager.removeBreakpoints(),
758
- isEnabled: () => this.breakpointManager.hasBreakpoints(),
759
- isVisible: widget => !(widget instanceof browser_1.Widget) || (widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget)
760
- });
761
- registry.registerCommand(DebugCommands.REMOVE_SELECTED_BREAKPOINTS, {
762
- execute: () => this.selectedBreakpoints.forEach(breakpoint => breakpoint.remove()),
763
- isEnabled: () => this.selectedBreakpoints.length > 1,
764
- isVisible: widget => (!(widget instanceof browser_1.Widget) || (widget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget)) && this.selectedBreakpoints.length > 1
765
- });
766
- registry.registerCommand(DebugCommands.TOGGLE_BREAKPOINTS_ENABLED, {
767
- execute: () => this.breakpointManager.breakpointsEnabled = !this.breakpointManager.breakpointsEnabled,
768
- isVisible: arg => arg instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget
769
- });
770
- registry.registerCommand(DebugCommands.SHOW_HOVER, {
771
- execute: () => this.editors.showHover(),
772
- isEnabled: () => this.editors.canShowHover()
773
- });
774
- registry.registerCommand(DebugCommands.EVALUATE_IN_DEBUG_CONSOLE, {
775
- execute: async () => {
776
- const { model } = this.editors;
777
- if (model) {
778
- const { editor } = model;
779
- const { selection, document } = editor;
780
- const value = document.getText(selection) || document.getLineContent(selection.start.line + 1).trim();
781
- const consoleWidget = await this.console.openView({ reveal: true, activate: false });
782
- await consoleWidget.execute(value);
783
- }
784
- },
785
- isEnabled: () => !!this.editors.model && !!this.manager.currentFrame,
786
- isVisible: () => !!this.editors.model && !!this.manager.currentFrame
787
- });
788
- registry.registerCommand(DebugCommands.JUMP_TO_CURSOR, {
789
- execute: () => {
790
- const model = this.editors.model;
791
- if (model && this.manager.currentThread) {
792
- this.manager.currentThread.jumpToCursor(model.editor.getResourceUri(), model.position);
793
- }
794
- },
795
- isEnabled: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto,
796
- isVisible: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto
797
- });
798
- registry.registerCommand(DebugCommands.RUN_TO_CURSOR, {
799
- execute: async () => {
800
- const { model } = this.editors;
801
- if (model) {
802
- const { editor, position } = model;
803
- await this.runTo(editor.getResourceUri(), position.lineNumber, position.column);
804
- }
805
- },
806
- isEnabled: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
807
- isVisible: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
808
- });
809
- registry.registerCommand(DebugCommands.RUN_TO_LINE, {
810
- execute: async () => {
811
- const { model } = this.editors;
812
- if (model) {
813
- const { editor, position } = model;
814
- await this.runTo(editor.getResourceUri(), position.lineNumber);
815
- }
816
- },
817
- isEnabled: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
818
- isVisible: () => { var _a; return !!this.editors.model && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
819
- });
820
- registry.registerCommand(DebugCommands.RESTART_FRAME, {
821
- execute: () => this.selectedFrame && this.selectedFrame.restart(),
822
- isEnabled: () => !!this.selectedFrame
823
- });
824
- registry.registerCommand(DebugCommands.COPY_CALL_STACK, {
825
- execute: () => {
826
- const { frames } = this;
827
- const selection = document.getSelection();
828
- if (frames && selection) {
829
- selection.selectAllChildren(frames.node);
830
- document.execCommand('copy');
831
- }
832
- },
833
- isEnabled: () => document.queryCommandSupported('copy'),
834
- isVisible: () => document.queryCommandSupported('copy')
835
- });
836
- registry.registerCommand(DebugCommands.SET_VARIABLE_VALUE, {
837
- execute: () => this.selectedVariable && this.selectedVariable.open(),
838
- isEnabled: () => !!this.selectedVariable && this.selectedVariable.supportSetVariable && !this.selectedVariable.readOnly,
839
- isVisible: () => !!this.selectedVariable && this.selectedVariable.supportSetVariable
840
- });
841
- registry.registerCommand(DebugCommands.COPY_VARIABLE_VALUE, {
842
- execute: () => this.selectedVariable && this.selectedVariable.copyValue(),
843
- isEnabled: () => !!this.selectedVariable && this.selectedVariable.supportCopyValue,
844
- isVisible: () => !!this.selectedVariable && this.selectedVariable.supportCopyValue
845
- });
846
- registry.registerCommand(DebugCommands.COPY_VARIABLE_AS_EXPRESSION, {
847
- execute: () => this.selectedVariable && this.selectedVariable.copyAsExpression(),
848
- isEnabled: () => !!this.selectedVariable && this.selectedVariable.supportCopyAsExpression,
849
- isVisible: () => !!this.selectedVariable && this.selectedVariable.supportCopyAsExpression
850
- });
851
- registry.registerCommand(DebugCommands.WATCH_VARIABLE, {
852
- execute: () => {
853
- var _a;
854
- const evaluateName = (_a = this.selectedVariable) === null || _a === void 0 ? void 0 : _a.evaluateName;
855
- if (evaluateName) {
856
- this.watchManager.addWatchExpression(evaluateName);
857
- }
858
- },
859
- isEnabled: () => { var _a; return !!((_a = this.selectedVariable) === null || _a === void 0 ? void 0 : _a.evaluateName); },
860
- isVisible: () => { var _a; return !!((_a = this.selectedVariable) === null || _a === void 0 ? void 0 : _a.evaluateName); },
861
- });
862
- // Debug context menu commands
863
- registry.registerCommand(DebugEditorContextCommands.ADD_BREAKPOINT, {
864
- execute: position => this.isPosition(position) && this.editors.toggleBreakpoint(this.asPosition(position)),
865
- isEnabled: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position)),
866
- isVisible: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position))
867
- });
868
- registry.registerCommand(DebugEditorContextCommands.ADD_CONDITIONAL_BREAKPOINT, {
869
- execute: position => this.isPosition(position) && this.editors.addBreakpoint('condition', this.asPosition(position)),
870
- isEnabled: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position)),
871
- isVisible: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position))
872
- });
873
- registry.registerCommand(DebugEditorContextCommands.ADD_LOGPOINT, {
874
- execute: position => this.isPosition(position) && this.editors.addBreakpoint('logMessage', this.asPosition(position)),
875
- isEnabled: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position)),
876
- isVisible: position => this.isPosition(position) && !this.editors.anyBreakpoint(this.asPosition(position))
877
- });
878
- registry.registerCommand(DebugEditorContextCommands.REMOVE_BREAKPOINT, {
879
- execute: position => this.isPosition(position) && this.editors.toggleBreakpoint(this.asPosition(position)),
880
- isEnabled: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position)),
881
- isVisible: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position))
882
- });
883
- registry.registerCommand(DebugEditorContextCommands.EDIT_BREAKPOINT, {
884
- execute: position => this.isPosition(position) && this.editors.editBreakpoint(this.asPosition(position)),
885
- isEnabled: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position)),
886
- isVisible: position => this.isPosition(position) && !!this.editors.getBreakpoint(this.asPosition(position))
887
- });
888
- registry.registerCommand(DebugEditorContextCommands.ENABLE_BREAKPOINT, {
889
- execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), true),
890
- isEnabled: position => this.isPosition(position) && this.editors.getBreakpointEnabled(this.asPosition(position)) === false,
891
- isVisible: position => this.isPosition(position) && this.editors.getBreakpointEnabled(this.asPosition(position)) === false
892
- });
893
- registry.registerCommand(DebugEditorContextCommands.DISABLE_BREAKPOINT, {
894
- execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), false),
895
- isEnabled: position => this.isPosition(position) && !!this.editors.getBreakpointEnabled(this.asPosition(position)),
896
- isVisible: position => this.isPosition(position) && !!this.editors.getBreakpointEnabled(this.asPosition(position))
897
- });
898
- registry.registerCommand(DebugEditorContextCommands.REMOVE_LOGPOINT, {
899
- execute: position => this.isPosition(position) && this.editors.toggleBreakpoint(this.asPosition(position)),
900
- isEnabled: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position)),
901
- isVisible: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position))
902
- });
903
- registry.registerCommand(DebugEditorContextCommands.EDIT_LOGPOINT, {
904
- execute: position => this.isPosition(position) && this.editors.editBreakpoint(this.asPosition(position)),
905
- isEnabled: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position)),
906
- isVisible: position => this.isPosition(position) && !!this.editors.getLogpoint(this.asPosition(position))
907
- });
908
- registry.registerCommand(DebugEditorContextCommands.ENABLE_LOGPOINT, {
909
- execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), true),
910
- isEnabled: position => this.isPosition(position) && this.editors.getLogpointEnabled(this.asPosition(position)) === false,
911
- isVisible: position => this.isPosition(position) && this.editors.getLogpointEnabled(this.asPosition(position)) === false
912
- });
913
- registry.registerCommand(DebugEditorContextCommands.DISABLE_LOGPOINT, {
914
- execute: position => this.isPosition(position) && this.editors.setBreakpointEnabled(this.asPosition(position), false),
915
- isEnabled: position => this.isPosition(position) && !!this.editors.getLogpointEnabled(this.asPosition(position)),
916
- isVisible: position => this.isPosition(position) && !!this.editors.getLogpointEnabled(this.asPosition(position))
917
- });
918
- registry.registerCommand(DebugEditorContextCommands.JUMP_TO_CURSOR, {
919
- execute: position => {
920
- if (this.isPosition(position) && this.editors.currentUri && this.manager.currentThread) {
921
- this.manager.currentThread.jumpToCursor(this.editors.currentUri, this.asPosition(position));
922
- }
923
- },
924
- isEnabled: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto,
925
- isVisible: () => !!this.manager.currentThread && this.manager.currentThread.supportsGoto
926
- });
927
- registry.registerCommand(DebugEditorContextCommands.RUN_TO_LINE, {
928
- execute: async (position) => {
929
- if (this.isPosition(position)) {
930
- const { currentUri } = this.editors;
931
- if (currentUri) {
932
- await this.runTo(currentUri, position.lineNumber);
933
- }
934
- }
935
- },
936
- isEnabled: position => { var _a; return this.isPosition(position) && !!this.editors.currentUri && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); },
937
- isVisible: position => { var _a; return this.isPosition(position) && !!this.editors.currentUri && !!((_a = this.manager.currentThread) === null || _a === void 0 ? void 0 : _a.stopped); }
938
- });
939
- registry.registerCommand(DebugBreakpointWidgetCommands.ACCEPT, {
940
- execute: () => this.editors.acceptBreakpoint()
941
- });
942
- registry.registerCommand(DebugBreakpointWidgetCommands.CLOSE, {
943
- execute: () => this.editors.closeBreakpoint()
944
- });
945
- registry.registerCommand(DebugCommands.ADD_WATCH_EXPRESSION, {
946
- execute: widget => {
947
- if (widget instanceof browser_1.Widget) {
948
- if (widget instanceof debug_watch_widget_1.DebugWatchWidget) {
949
- widget.viewModel.addWatchExpression();
950
- }
951
- }
952
- else if (this.watch) {
953
- this.watch.viewModel.addWatchExpression();
954
- }
955
- },
956
- isEnabled: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch,
957
- isVisible: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch
958
- });
959
- registry.registerCommand(DebugCommands.EDIT_WATCH_EXPRESSION, {
960
- execute: () => {
961
- const { watchExpression } = this;
962
- if (watchExpression) {
963
- watchExpression.open();
964
- }
965
- },
966
- isEnabled: () => !!this.watchExpression,
967
- isVisible: () => !!this.watchExpression
968
- });
969
- registry.registerCommand(DebugCommands.COPY_WATCH_EXPRESSION_VALUE, {
970
- execute: () => this.watchExpression && this.watchExpression.copyValue(),
971
- isEnabled: () => !!this.watchExpression && this.watchExpression.supportCopyValue,
972
- isVisible: () => !!this.watchExpression && this.watchExpression.supportCopyValue
973
- });
974
- registry.registerCommand(DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS, {
975
- execute: widget => {
976
- if (widget instanceof debug_watch_widget_1.DebugWatchWidget) {
977
- const root = widget.model.root;
978
- widget.model.collapseAll(browser_1.CompositeTreeNode.is(root) ? root : undefined);
979
- }
980
- },
981
- isEnabled: widget => widget instanceof debug_watch_widget_1.DebugWatchWidget,
982
- isVisible: widget => widget instanceof debug_watch_widget_1.DebugWatchWidget
983
- });
984
- registry.registerCommand(DebugCommands.REMOVE_WATCH_EXPRESSION, {
985
- execute: () => {
986
- const { watch, watchExpression } = this;
987
- if (watch && watchExpression) {
988
- watch.viewModel.removeWatchExpression(watchExpression);
989
- }
990
- },
991
- isEnabled: () => !!this.watchExpression,
992
- isVisible: () => !!this.watchExpression
993
- });
994
- registry.registerCommand(DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS, {
995
- execute: widget => {
996
- if (widget instanceof browser_1.Widget) {
997
- if (widget instanceof debug_watch_widget_1.DebugWatchWidget) {
998
- widget.viewModel.removeWatchExpressions();
999
- }
1000
- }
1001
- else if (this.watch) {
1002
- this.watch.viewModel.removeWatchExpressions();
1003
- }
1004
- },
1005
- isEnabled: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch,
1006
- isVisible: widget => widget instanceof browser_1.Widget ? widget instanceof debug_watch_widget_1.DebugWatchWidget : !!this.watch
1007
- });
1008
- }
1009
- registerKeybindings(keybindings) {
1010
- super.registerKeybindings(keybindings);
1011
- keybindings.registerKeybinding({
1012
- command: DebugCommands.START.id,
1013
- keybinding: 'f5',
1014
- when: '!inDebugMode'
1015
- });
1016
- keybindings.registerKeybinding({
1017
- command: DebugCommands.START_NO_DEBUG.id,
1018
- keybinding: 'ctrl+f5',
1019
- when: '!inDebugMode'
1020
- });
1021
- keybindings.registerKeybinding({
1022
- command: DebugCommands.STOP.id,
1023
- keybinding: 'shift+f5',
1024
- when: 'inDebugMode'
1025
- });
1026
- keybindings.registerKeybinding({
1027
- command: DebugCommands.RESTART.id,
1028
- keybinding: 'shift+ctrlcmd+f5',
1029
- when: 'inDebugMode'
1030
- });
1031
- keybindings.registerKeybinding({
1032
- command: DebugCommands.STEP_OVER.id,
1033
- keybinding: 'f10',
1034
- when: 'inDebugMode'
1035
- });
1036
- keybindings.registerKeybinding({
1037
- command: DebugCommands.STEP_INTO.id,
1038
- keybinding: 'f11',
1039
- when: 'inDebugMode'
1040
- });
1041
- keybindings.registerKeybinding({
1042
- command: DebugCommands.STEP_OUT.id,
1043
- keybinding: 'shift+f11',
1044
- when: 'inDebugMode'
1045
- });
1046
- keybindings.registerKeybinding({
1047
- command: DebugCommands.CONTINUE.id,
1048
- keybinding: 'f5',
1049
- when: 'inDebugMode'
1050
- });
1051
- keybindings.registerKeybinding({
1052
- command: DebugCommands.PAUSE.id,
1053
- keybinding: 'f6',
1054
- when: 'inDebugMode'
1055
- });
1056
- keybindings.registerKeybinding({
1057
- command: DebugCommands.TOGGLE_BREAKPOINT.id,
1058
- keybinding: 'f9',
1059
- when: 'editorTextFocus'
1060
- });
1061
- keybindings.registerKeybinding({
1062
- command: DebugCommands.INLINE_BREAKPOINT.id,
1063
- keybinding: 'shift+f9',
1064
- when: 'editorTextFocus'
1065
- });
1066
- keybindings.registerKeybinding({
1067
- command: DebugBreakpointWidgetCommands.ACCEPT.id,
1068
- keybinding: 'enter',
1069
- when: 'breakpointWidgetFocus && !suggestWidgetVisible'
1070
- });
1071
- keybindings.registerKeybinding({
1072
- command: DebugBreakpointWidgetCommands.CLOSE.id,
1073
- keybinding: 'esc',
1074
- when: 'isBreakpointWidgetVisible || (breakpointWidgetFocus && !suggestWidgetVisible)'
1075
- });
1076
- }
1077
- registerToolbarItems(toolbar) {
1078
- const onDidChangeToggleBreakpointsEnabled = new common_1.Emitter();
1079
- const toggleBreakpointsEnabled = {
1080
- id: DebugCommands.TOGGLE_BREAKPOINTS_ENABLED.id,
1081
- command: DebugCommands.TOGGLE_BREAKPOINTS_ENABLED.id,
1082
- icon: (0, browser_1.codicon)('activate-breakpoints'),
1083
- onDidChange: onDidChangeToggleBreakpointsEnabled.event,
1084
- priority: 1
1085
- };
1086
- const updateToggleBreakpointsEnabled = () => {
1087
- const activateBreakpoints = nls_1.nls.localizeByDefault('Enable All Breakpoints');
1088
- const deactivateBreakpoints = nls_1.nls.localizeByDefault('Disable All Breakpoints');
1089
- const tooltip = this.breakpointManager.breakpointsEnabled ? deactivateBreakpoints : activateBreakpoints;
1090
- if (toggleBreakpointsEnabled.tooltip !== tooltip) {
1091
- toggleBreakpointsEnabled.tooltip = tooltip;
1092
- onDidChangeToggleBreakpointsEnabled.fire(undefined);
1093
- }
1094
- };
1095
- toolbar.registerItem({
1096
- id: DebugCommands.ADD_FUNCTION_BREAKPOINT.id,
1097
- command: DebugCommands.ADD_FUNCTION_BREAKPOINT.id,
1098
- icon: (0, browser_1.codicon)('add'),
1099
- tooltip: DebugCommands.ADD_FUNCTION_BREAKPOINT.label
1100
- });
1101
- updateToggleBreakpointsEnabled();
1102
- this.breakpointManager.onDidChangeBreakpoints(updateToggleBreakpointsEnabled);
1103
- toolbar.registerItem(toggleBreakpointsEnabled);
1104
- toolbar.registerItem({
1105
- id: DebugCommands.REMOVE_ALL_BREAKPOINTS.id,
1106
- command: DebugCommands.REMOVE_ALL_BREAKPOINTS.id,
1107
- icon: (0, browser_1.codicon)('close-all'),
1108
- priority: 2
1109
- });
1110
- toolbar.registerItem({
1111
- id: DebugCommands.ADD_WATCH_EXPRESSION.id,
1112
- command: DebugCommands.ADD_WATCH_EXPRESSION.id,
1113
- icon: (0, browser_1.codicon)('add'),
1114
- tooltip: DebugCommands.ADD_WATCH_EXPRESSION.label
1115
- });
1116
- toolbar.registerItem({
1117
- id: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.id,
1118
- command: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.id,
1119
- icon: (0, browser_1.codicon)('collapse-all'),
1120
- tooltip: DebugCommands.COLLAPSE_ALL_WATCH_EXPRESSIONS.label,
1121
- priority: 1
1122
- });
1123
- toolbar.registerItem({
1124
- id: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.id,
1125
- command: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.id,
1126
- icon: (0, browser_1.codicon)('close-all'),
1127
- tooltip: DebugCommands.REMOVE_ALL_WATCH_EXPRESSIONS.label,
1128
- priority: 2
1129
- });
1130
- }
1131
- async openSession(session, options) {
1132
- const { reveal } = {
1133
- reveal: true,
1134
- ...options
1135
- };
1136
- const debugWidget = await this.openView({ reveal });
1137
- debugWidget.sessionManager.currentSession = session;
1138
- return debugWidget['sessionWidget'];
1139
- }
1140
- revealSession(session) {
1141
- var _a;
1142
- const widget = (_a = this.tryGetWidget()) === null || _a === void 0 ? void 0 : _a['sessionWidget'];
1143
- if (widget) {
1144
- this.shell.revealWidget(widget.id);
1145
- }
1146
- return widget;
1147
- }
1148
- async start(noDebug, debugSessionOptions) {
1149
- let current = debugSessionOptions || this.configurations.current;
1150
- // If no configurations are currently present, create the `launch.json` and prompt users to select the config.
1151
- if (!current) {
1152
- await this.configurations.addConfiguration();
1153
- return;
1154
- }
1155
- if (noDebug !== undefined) {
1156
- if (current.configuration) {
1157
- current = {
1158
- ...current,
1159
- configuration: {
1160
- ...current.configuration,
1161
- noDebug
1162
- }
1163
- };
1164
- }
1165
- else {
1166
- current = {
1167
- ...current,
1168
- noDebug
1169
- };
1170
- }
1171
- }
1172
- await this.manager.start(current);
1173
- }
1174
- async runTo(uri, line, column) {
1175
- const thread = this.manager.currentThread;
1176
- if (!thread) {
1177
- return;
1178
- }
1179
- const checkThread = () => {
1180
- if (thread.stopped && thread === this.manager.currentThread) {
1181
- return true;
1182
- }
1183
- console.warn('Cannot run to the specified location. The current thread has changed or is not stopped.');
1184
- return false;
1185
- };
1186
- if (!checkThread()) {
1187
- return;
1188
- }
1189
- const breakpoint = breakpoint_marker_1.SourceBreakpoint.create(uri, { line, column });
1190
- let shouldRemoveBreakpoint = this.breakpointManager.addBreakpoint(breakpoint);
1191
- const removeBreakpoint = () => {
1192
- const breakpoints = this.breakpointManager.getBreakpoints(uri);
1193
- const newBreakpoints = breakpoints.filter(bp => bp.id !== breakpoint.id);
1194
- if (breakpoints.length !== newBreakpoints.length) {
1195
- this.breakpointManager.setBreakpoints(uri, newBreakpoints);
1196
- }
1197
- };
1198
- try {
1199
- const sessionBreakpoint = await this.verifyBreakpoint(breakpoint, thread.session);
1200
- if (!checkThread()) {
1201
- return;
1202
- }
1203
- if (!sessionBreakpoint || !sessionBreakpoint.installed || !sessionBreakpoint.verified) {
1204
- this.messageService.warn(nls_1.nls.localize('theia/debug/cannotRunToThisLocation', 'Could not run the current thread to the specified location.'));
1205
- return;
1206
- }
1207
- const rawBreakpoint = sessionBreakpoint.raw; // an installed breakpoint always has the underlying raw breakpoint
1208
- if (rawBreakpoint.line !== line || (column && rawBreakpoint.column !== column)) {
1209
- const shouldRun = await new browser_1.ConfirmDialog({
1210
- title: nls_1.nls.localize('theia/debug/confirmRunToShiftedPosition_title', 'Cannot run the current thread to exactly the specified location'),
1211
- 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),
1212
- ok: browser_1.Dialog.YES,
1213
- cancel: browser_1.Dialog.NO
1214
- }).open();
1215
- if (!shouldRun || !checkThread()) {
1216
- return;
1217
- }
1218
- }
1219
- if (shouldRemoveBreakpoint) {
1220
- common_1.Event.toPromise(common_1.Event.filter(common_1.Event.any(this.manager.onDidStopDebugSession, this.manager.onDidDestroyDebugSession), session => session === thread.session)).then(removeBreakpoint);
1221
- }
1222
- await thread.continue();
1223
- shouldRemoveBreakpoint = false;
1224
- }
1225
- finally {
1226
- if (shouldRemoveBreakpoint) {
1227
- removeBreakpoint();
1228
- }
1229
- }
1230
- }
1231
- async verifyBreakpoint(breakpoint, session, timeout = 2000) {
1232
- let sessionBreakpoint = session.getBreakpoint(breakpoint.id);
1233
- if (!sessionBreakpoint || !sessionBreakpoint.installed || !sessionBreakpoint.verified) {
1234
- try {
1235
- await (0, promise_util_1.waitForEvent)(common_1.Event.filter(session.onDidChangeBreakpoints, () => {
1236
- sessionBreakpoint = session.getBreakpoint(breakpoint.id);
1237
- return !!sessionBreakpoint && sessionBreakpoint.installed && sessionBreakpoint.verified;
1238
- }), timeout); // wait up to `timeout` ms for the breakpoint to become installed and verified
1239
- }
1240
- catch (e) {
1241
- if (!(e instanceof common_1.CancellationError)) { // ignore the `CancellationError` on timeout
1242
- throw e;
1243
- }
1244
- }
1245
- }
1246
- return sessionBreakpoint;
1247
- }
1248
- get threads() {
1249
- const { currentWidget } = this.shell;
1250
- return currentWidget instanceof debug_threads_widget_1.DebugThreadsWidget && currentWidget || undefined;
1251
- }
1252
- get selectedSession() {
1253
- const { threads } = this;
1254
- return threads && threads.selectedElement instanceof debug_session_1.DebugSession && threads.selectedElement || undefined;
1255
- }
1256
- get selectedThread() {
1257
- const { threads } = this;
1258
- return threads && threads.selectedElement instanceof debug_thread_1.DebugThread && threads.selectedElement || undefined;
1259
- }
1260
- get frames() {
1261
- const { currentWidget } = this.shell;
1262
- return currentWidget instanceof debug_stack_frames_widget_1.DebugStackFramesWidget && currentWidget || undefined;
1263
- }
1264
- get selectedFrame() {
1265
- const { frames } = this;
1266
- return frames && frames.selectedElement instanceof debug_stack_frame_1.DebugStackFrame && frames.selectedElement || undefined;
1267
- }
1268
- get breakpoints() {
1269
- const { currentWidget } = this.shell;
1270
- return currentWidget instanceof debug_breakpoints_widget_1.DebugBreakpointsWidget && currentWidget || undefined;
1271
- }
1272
- get selectedAnyBreakpoint() {
1273
- const { breakpoints } = this;
1274
- const selectedElement = breakpoints && breakpoints.selectedElement;
1275
- return selectedElement instanceof debug_breakpoint_1.DebugBreakpoint ? selectedElement : undefined;
1276
- }
1277
- get selectedBreakpoint() {
1278
- const breakpoint = this.selectedAnyBreakpoint;
1279
- return breakpoint && breakpoint instanceof debug_source_breakpoint_1.DebugSourceBreakpoint && !breakpoint.logMessage ? breakpoint : undefined;
1280
- }
1281
- get selectedBreakpoints() {
1282
- const { breakpoints } = this;
1283
- return breakpoints && breakpoints.model.selectedNodes
1284
- .filter(source_tree_1.TreeElementNode.is)
1285
- .map(node => node.element)
1286
- .filter(element => element instanceof debug_breakpoint_1.DebugBreakpoint) || [];
1287
- }
1288
- get selectedLogpoint() {
1289
- const breakpoint = this.selectedAnyBreakpoint;
1290
- return breakpoint && breakpoint instanceof debug_source_breakpoint_1.DebugSourceBreakpoint && !!breakpoint.logMessage ? breakpoint : undefined;
1291
- }
1292
- get selectedFunctionBreakpoint() {
1293
- const breakpoint = this.selectedAnyBreakpoint;
1294
- return breakpoint && breakpoint instanceof debug_function_breakpoint_1.DebugFunctionBreakpoint ? breakpoint : undefined;
1295
- }
1296
- get selectedInstructionBreakpoint() {
1297
- if (this.selectedAnyBreakpoint instanceof debug_instruction_breakpoint_1.DebugInstructionBreakpoint) {
1298
- return this.selectedAnyBreakpoint;
1299
- }
1300
- }
1301
- get selectedExceptionBreakpoint() {
1302
- const { breakpoints } = this;
1303
- const selectedElement = breakpoints && breakpoints.selectedElement;
1304
- return selectedElement instanceof debug_exception_breakpoint_1.DebugExceptionBreakpoint ? selectedElement : undefined;
1305
- }
1306
- get selectedSettableBreakpoint() {
1307
- const selected = this.selectedAnyBreakpoint;
1308
- if (selected instanceof debug_function_breakpoint_1.DebugFunctionBreakpoint || selected instanceof debug_instruction_breakpoint_1.DebugInstructionBreakpoint || selected instanceof debug_source_breakpoint_1.DebugSourceBreakpoint) {
1309
- return selected;
1310
- }
1311
- }
1312
- get consoleWidget() {
1313
- const { currentWidget } = this.shell;
1314
- return currentWidget instanceof console_widget_1.ConsoleWidget && currentWidget.id === debug_console_contribution_1.DebugConsoleContribution.options.id && currentWidget || undefined;
1315
- }
1316
- get variables() {
1317
- const { currentWidget } = this.shell;
1318
- return currentWidget instanceof debug_variables_widget_1.DebugVariablesWidget && currentWidget || undefined;
1319
- }
1320
- get variablesSource() {
1321
- var _a, _b, _c;
1322
- const hover = (_a = this.editors.model) === null || _a === void 0 ? void 0 : _a.hover;
1323
- if (hover === null || hover === void 0 ? void 0 : hover.isVisible) {
1324
- return hover;
1325
- }
1326
- return (_b = this.variables) !== null && _b !== void 0 ? _b : (_c = this.consoleWidget) === null || _c === void 0 ? void 0 : _c.content;
1327
- }
1328
- get selectedVariable() {
1329
- const { variablesSource } = this;
1330
- return variablesSource && variablesSource.selectedElement instanceof debug_console_items_1.DebugVariable && variablesSource.selectedElement || undefined;
1331
- }
1332
- get watch() {
1333
- const { currentWidget } = this.shell;
1334
- return currentWidget instanceof debug_watch_widget_1.DebugWatchWidget && currentWidget || undefined;
1335
- }
1336
- get watchExpression() {
1337
- const { watch } = this;
1338
- return watch && watch.selectedElement instanceof debug_watch_expression_1.DebugWatchExpression && watch.selectedElement || undefined;
1339
- }
1340
- isPosition(position) {
1341
- return monaco.Position.isIPosition(position);
1342
- }
1343
- asPosition(position) {
1344
- return monaco.Position.lift(position);
1345
- }
1346
- registerColors(colors) {
1347
- colors.register(
1348
- // Debug colors should be aligned with https://code.visualstudio.com/api/references/theme-color#debug-colors
1349
- {
1350
- id: 'editor.stackFrameHighlightBackground',
1351
- defaults: {
1352
- dark: '#ffff0033',
1353
- light: '#ffff6673',
1354
- hcDark: '#fff600',
1355
- hcLight: '#ffff6673'
1356
- }, description: nls_1.nls.localizeByDefault('Background color for the highlight of line at the top stack frame position.')
1357
- }, {
1358
- id: 'editor.focusedStackFrameHighlightBackground',
1359
- defaults: {
1360
- dark: '#7abd7a4d',
1361
- light: '#cee7ce73',
1362
- hcDark: '#cee7ce',
1363
- hcLight: '#cee7ce73'
1364
- }, description: nls_1.nls.localizeByDefault('Background color for the highlight of line at focused stack frame position.')
1365
- },
1366
- // Status bar colors should be aligned with debugging colors from https://code.visualstudio.com/api/references/theme-color#status-bar-colors
1367
- {
1368
- id: 'statusBar.debuggingBackground', defaults: {
1369
- dark: '#CC6633',
1370
- light: '#CC6633',
1371
- hcDark: '#CC6633',
1372
- hcLight: '#B5200D'
1373
- }, 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')
1374
- }, {
1375
- id: 'statusBar.debuggingForeground', defaults: {
1376
- dark: 'statusBar.foreground',
1377
- light: 'statusBar.foreground',
1378
- hcDark: 'statusBar.foreground',
1379
- hcLight: 'statusBar.foreground'
1380
- }, 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')
1381
- }, {
1382
- id: 'statusBar.debuggingBorder', defaults: {
1383
- dark: 'statusBar.border',
1384
- light: 'statusBar.border',
1385
- hcDark: 'statusBar.border',
1386
- hcLight: 'statusBar.border'
1387
- }, 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')
1388
- },
1389
- // Debug Exception Widget colors should be aligned with
1390
- // https://github.com/microsoft/vscode/blob/ff5f581425da6230b6f9216ecf19abf6c9d285a6/src/vs/workbench/contrib/debug/browser/exceptionWidget.ts#L23
1391
- {
1392
- id: 'debugExceptionWidget.border', defaults: {
1393
- dark: '#a31515',
1394
- light: '#a31515',
1395
- hcDark: '#a31515',
1396
- hcLight: '#a31515'
1397
- }, description: nls_1.nls.localizeByDefault('Exception widget border color.'),
1398
- }, {
1399
- id: 'debugExceptionWidget.background', defaults: {
1400
- dark: '#420b0d',
1401
- light: '#f1dfde',
1402
- hcDark: '#420b0d',
1403
- hcLight: '#f1dfde'
1404
- }, description: nls_1.nls.localizeByDefault('Exception widget background color.')
1405
- },
1406
- // Debug Icon colors should be aligned with
1407
- // https://code.visualstudio.com/api/references/theme-color#debug-icons-colors
1408
- {
1409
- id: 'debugIcon.breakpointForeground', defaults: {
1410
- dark: '#E51400',
1411
- light: '#E51400',
1412
- hcDark: '#E51400',
1413
- hcLight: '#E51400'
1414
- },
1415
- description: nls_1.nls.localizeByDefault('Icon color for breakpoints.')
1416
- }, {
1417
- id: 'debugIcon.breakpointDisabledForeground', defaults: {
1418
- dark: '#848484',
1419
- light: '#848484',
1420
- hcDark: '#848484',
1421
- hcLight: '#848484'
1422
- },
1423
- description: nls_1.nls.localizeByDefault('Icon color for disabled breakpoints.')
1424
- }, {
1425
- id: 'debugIcon.breakpointUnverifiedForeground', defaults: {
1426
- dark: '#848484',
1427
- light: '#848484',
1428
- hcDark: '#848484',
1429
- hcLight: '#848484'
1430
- },
1431
- description: nls_1.nls.localizeByDefault('Icon color for unverified breakpoints.')
1432
- }, {
1433
- id: 'debugIcon.breakpointCurrentStackframeForeground', defaults: {
1434
- dark: '#FFCC00',
1435
- light: '#BE8700',
1436
- hcDark: '#FFCC00',
1437
- hcLight: '#BE8700'
1438
- },
1439
- description: nls_1.nls.localizeByDefault('Icon color for the current breakpoint stack frame.')
1440
- }, {
1441
- id: 'debugIcon.breakpointStackframeForeground', defaults: {
1442
- dark: '#89D185',
1443
- light: '#89D185',
1444
- hcDark: '#89D185',
1445
- hcLight: '#89D185'
1446
- },
1447
- description: nls_1.nls.localizeByDefault('Icon color for all breakpoint stack frames.')
1448
- }, {
1449
- id: 'debugIcon.startForeground', defaults: {
1450
- dark: '#89D185',
1451
- light: '#388A34',
1452
- hcDark: '#89D185',
1453
- hcLight: '#388A34'
1454
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for start debugging.')
1455
- }, {
1456
- id: 'debugIcon.pauseForeground', defaults: {
1457
- dark: '#75BEFF',
1458
- light: '#007ACC',
1459
- hcDark: '#75BEFF',
1460
- hcLight: '#007ACC'
1461
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for pause.')
1462
- }, {
1463
- id: 'debugIcon.stopForeground', defaults: {
1464
- dark: '#F48771',
1465
- light: '#A1260D',
1466
- hcDark: '#F48771',
1467
- hcLight: '#A1260D'
1468
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for stop.')
1469
- }, {
1470
- id: 'debugIcon.disconnectForeground', defaults: {
1471
- dark: '#F48771',
1472
- light: '#A1260D',
1473
- hcDark: '#F48771',
1474
- hcLight: '#A1260D'
1475
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for disconnect.')
1476
- }, {
1477
- id: 'debugIcon.restartForeground', defaults: {
1478
- dark: '#89D185',
1479
- light: '#388A34',
1480
- hcDark: '#89D185',
1481
- hcLight: '#388A34'
1482
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for restart.')
1483
- }, {
1484
- id: 'debugIcon.stepOverForeground', defaults: {
1485
- dark: '#75BEFF',
1486
- light: '#007ACC',
1487
- hcDark: '#75BEFF',
1488
- hcLight: '#007ACC',
1489
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step over.')
1490
- }, {
1491
- id: 'debugIcon.stepIntoForeground', defaults: {
1492
- dark: '#75BEFF',
1493
- light: '#007ACC',
1494
- hcDark: '#75BEFF',
1495
- hcLight: '#007ACC'
1496
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step into.')
1497
- }, {
1498
- id: 'debugIcon.stepOutForeground', defaults: {
1499
- dark: '#75BEFF',
1500
- light: '#007ACC',
1501
- hcDark: '#75BEFF',
1502
- hcLight: '#007ACC',
1503
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step over.')
1504
- }, {
1505
- id: 'debugIcon.continueForeground', defaults: {
1506
- dark: '#75BEFF',
1507
- light: '#007ACC',
1508
- hcDark: '#75BEFF',
1509
- hcLight: '#007ACC'
1510
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for continue.')
1511
- }, {
1512
- id: 'debugIcon.stepBackForeground', defaults: {
1513
- dark: '#75BEFF',
1514
- light: '#007ACC',
1515
- hcDark: '#75BEFF',
1516
- hcLight: '#007ACC'
1517
- }, description: nls_1.nls.localizeByDefault('Debug toolbar icon for step back.')
1518
- }, {
1519
- id: 'debugConsole.infoForeground', defaults: {
1520
- dark: 'editorInfo.foreground',
1521
- light: 'editorInfo.foreground',
1522
- hcDark: 'foreground',
1523
- hcLight: 'foreground'
1524
- }, description: 'Foreground color for info messages in debug REPL console.' // this description is present in VS Code, but is not currently localized there
1525
- }, {
1526
- id: 'debugConsole.warningForeground', defaults: {
1527
- dark: 'editorWarning.foreground',
1528
- light: 'editorWarning.foreground',
1529
- hcDark: '#008000',
1530
- hcLight: 'editorWarning.foreground'
1531
- },
1532
- description: 'Foreground color for warning messages in debug REPL console.' // this description is present in VS Code, but is not currently localized there
1533
- }, {
1534
- id: 'debugConsole.errorForeground', defaults: {
1535
- dark: 'errorForeground',
1536
- light: 'errorForeground',
1537
- hcDark: 'errorForeground',
1538
- hcLight: 'errorForeground'
1539
- },
1540
- description: 'Foreground color for error messages in debug REPL console.', // this description is present in VS Code, but is not currently localized there
1541
- }, {
1542
- id: 'debugConsole.sourceForeground', defaults: {
1543
- dark: 'foreground',
1544
- light: 'foreground',
1545
- hcDark: 'foreground',
1546
- hcLight: 'foreground'
1547
- },
1548
- description: 'Foreground color for source filenames in debug REPL console.', // this description is present in VS Code, but is not currently localized there
1549
- }, {
1550
- id: 'debugConsoleInputIcon.foreground', defaults: {
1551
- dark: 'foreground',
1552
- light: 'foreground',
1553
- hcDark: 'foreground',
1554
- hcLight: 'foreground'
1555
- },
1556
- description: 'Foreground color for debug console input marker icon.' // this description is present in VS Code, but is not currently localized there
1557
- });
1558
- }
1559
- updateStatusBar() {
1560
- if (this.debuggingStatusBar === document.body.classList.contains('theia-mod-debugging')) {
1561
- return;
1562
- }
1563
- document.body.classList.toggle('theia-mod-debugging');
1564
- }
1565
- get debuggingStatusBar() {
1566
- if (this.manager.state < debug_session_1.DebugState.Running) {
1567
- return false;
1568
- }
1569
- const session = this.manager.currentSession;
1570
- if (session) {
1571
- if (session.configuration.noDebug) {
1572
- return false;
1573
- }
1574
- if (this.getOption(session, 'suppressDebugStatusbar')) {
1575
- return false;
1576
- }
1577
- }
1578
- return true;
1579
- }
1580
- getOption(session, option) {
1581
- // If session is undefined there will be no option
1582
- if (!session) {
1583
- return false;
1584
- }
1585
- // If undefined take the value of the parent
1586
- if (option in session.configuration && session.configuration[option] !== undefined) {
1587
- return session.configuration[option];
1588
- }
1589
- return this.getOption(session.parentSession, option);
1590
- }
1591
- };
1592
- exports.DebugFrontendApplicationContribution = DebugFrontendApplicationContribution;
1593
- tslib_1.__decorate([
1594
- (0, inversify_1.inject)(debug_service_1.DebugService),
1595
- tslib_1.__metadata("design:type", Object)
1596
- ], DebugFrontendApplicationContribution.prototype, "debug", void 0);
1597
- tslib_1.__decorate([
1598
- (0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
1599
- tslib_1.__metadata("design:type", debug_session_manager_1.DebugSessionManager)
1600
- ], DebugFrontendApplicationContribution.prototype, "manager", void 0);
1601
- tslib_1.__decorate([
1602
- (0, inversify_1.inject)(debug_configuration_manager_1.DebugConfigurationManager),
1603
- tslib_1.__metadata("design:type", debug_configuration_manager_1.DebugConfigurationManager)
1604
- ], DebugFrontendApplicationContribution.prototype, "configurations", void 0);
1605
- tslib_1.__decorate([
1606
- (0, inversify_1.inject)(breakpoint_manager_1.BreakpointManager),
1607
- tslib_1.__metadata("design:type", breakpoint_manager_1.BreakpointManager)
1608
- ], DebugFrontendApplicationContribution.prototype, "breakpointManager", void 0);
1609
- tslib_1.__decorate([
1610
- (0, inversify_1.inject)(debug_editor_service_1.DebugEditorService),
1611
- tslib_1.__metadata("design:type", debug_editor_service_1.DebugEditorService)
1612
- ], DebugFrontendApplicationContribution.prototype, "editors", void 0);
1613
- tslib_1.__decorate([
1614
- (0, inversify_1.inject)(debug_console_contribution_1.DebugConsoleContribution),
1615
- tslib_1.__metadata("design:type", debug_console_contribution_1.DebugConsoleContribution)
1616
- ], DebugFrontendApplicationContribution.prototype, "console", void 0);
1617
- tslib_1.__decorate([
1618
- (0, inversify_1.inject)(debug_schema_updater_1.DebugSchemaUpdater),
1619
- tslib_1.__metadata("design:type", debug_schema_updater_1.DebugSchemaUpdater)
1620
- ], DebugFrontendApplicationContribution.prototype, "schemaUpdater", void 0);
1621
- tslib_1.__decorate([
1622
- (0, inversify_1.inject)(debug_preferences_1.DebugPreferences),
1623
- tslib_1.__metadata("design:type", Object)
1624
- ], DebugFrontendApplicationContribution.prototype, "preference", void 0);
1625
- tslib_1.__decorate([
1626
- (0, inversify_1.inject)(debug_watch_manager_1.DebugWatchManager),
1627
- tslib_1.__metadata("design:type", debug_watch_manager_1.DebugWatchManager)
1628
- ], DebugFrontendApplicationContribution.prototype, "watchManager", void 0);
1629
- tslib_1.__decorate([
1630
- (0, inversify_1.inject)(browser_1.LabelProvider),
1631
- tslib_1.__metadata("design:type", browser_1.LabelProvider)
1632
- ], DebugFrontendApplicationContribution.prototype, "labelProvider", void 0);
1633
- tslib_1.__decorate([
1634
- (0, inversify_1.inject)(browser_2.EditorManager),
1635
- tslib_1.__metadata("design:type", browser_2.EditorManager)
1636
- ], DebugFrontendApplicationContribution.prototype, "editorManager", void 0);
1637
- tslib_1.__decorate([
1638
- (0, inversify_1.inject)(common_1.MessageService),
1639
- tslib_1.__metadata("design:type", common_1.MessageService)
1640
- ], DebugFrontendApplicationContribution.prototype, "messageService", void 0);
1641
- exports.DebugFrontendApplicationContribution = DebugFrontendApplicationContribution = tslib_1.__decorate([
1642
- (0, inversify_1.injectable)(),
1643
- tslib_1.__metadata("design:paramtypes", [])
1644
- ], DebugFrontendApplicationContribution);
1645
- //# sourceMappingURL=debug-frontend-application-contribution.js.map