@theia/debug 1.67.0-next.13 → 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 (344) 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 +19 -0
  8. package/src/browser/debug-frontend-module.ts +2 -0
  9. package/src/browser/debug-session-manager.ts +18 -0
  10. package/src/browser/debug-session.tsx +31 -0
  11. package/src/browser/model/debug-data-breakpoint.tsx +79 -0
  12. package/src/browser/style/index.css +4 -0
  13. package/src/browser/view/debug-breakpoints-source.tsx +4 -10
  14. package/src/browser/view/debug-stack-frames-widget.ts +6 -2
  15. package/src/browser/view/debug-variables-widget.ts +99 -2
  16. package/src/browser/view/debug-view-model.ts +5 -0
  17. package/lib/browser/breakpoint/breakpoint-manager.d.ts +0 -71
  18. package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +0 -1
  19. package/lib/browser/breakpoint/breakpoint-manager.js +0 -321
  20. package/lib/browser/breakpoint/breakpoint-manager.js.map +0 -1
  21. package/lib/browser/breakpoint/breakpoint-marker.d.ts +0 -42
  22. package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +0 -1
  23. package/lib/browser/breakpoint/breakpoint-marker.js +0 -88
  24. package/lib/browser/breakpoint/breakpoint-marker.js.map +0 -1
  25. package/lib/browser/console/debug-console-contribution.d.ts +0 -45
  26. package/lib/browser/console/debug-console-contribution.d.ts.map +0 -1
  27. package/lib/browser/console/debug-console-contribution.js +0 -233
  28. package/lib/browser/console/debug-console-contribution.js.map +0 -1
  29. package/lib/browser/console/debug-console-items.d.ts +0 -97
  30. package/lib/browser/console/debug-console-items.d.ts.map +0 -1
  31. package/lib/browser/console/debug-console-items.js +0 -343
  32. package/lib/browser/console/debug-console-items.js.map +0 -1
  33. package/lib/browser/console/debug-console-session.d.ts +0 -32
  34. package/lib/browser/console/debug-console-session.d.ts.map +0 -1
  35. package/lib/browser/console/debug-console-session.js +0 -192
  36. package/lib/browser/console/debug-console-session.js.map +0 -1
  37. package/lib/browser/debug-call-stack-item-type-key.d.ts +0 -4
  38. package/lib/browser/debug-call-stack-item-type-key.d.ts.map +0 -1
  39. package/lib/browser/debug-call-stack-item-type-key.js +0 -20
  40. package/lib/browser/debug-call-stack-item-type-key.js.map +0 -1
  41. package/lib/browser/debug-configuration-manager.d.ts +0 -103
  42. package/lib/browser/debug-configuration-manager.d.ts.map +0 -1
  43. package/lib/browser/debug-configuration-manager.js +0 -545
  44. package/lib/browser/debug-configuration-manager.js.map +0 -1
  45. package/lib/browser/debug-configuration-model.d.ts +0 -30
  46. package/lib/browser/debug-configuration-model.d.ts.map +0 -1
  47. package/lib/browser/debug-configuration-model.js +0 -80
  48. package/lib/browser/debug-configuration-model.js.map +0 -1
  49. package/lib/browser/debug-contribution.d.ts +0 -23
  50. package/lib/browser/debug-contribution.d.ts.map +0 -1
  51. package/lib/browser/debug-contribution.js +0 -20
  52. package/lib/browser/debug-contribution.js.map +0 -1
  53. package/lib/browser/debug-frontend-application-contribution.d.ts +0 -249
  54. package/lib/browser/debug-frontend-application-contribution.d.ts.map +0 -1
  55. package/lib/browser/debug-frontend-application-contribution.js +0 -1678
  56. package/lib/browser/debug-frontend-application-contribution.js.map +0 -1
  57. package/lib/browser/debug-frontend-module.d.ts +0 -5
  58. package/lib/browser/debug-frontend-module.d.ts.map +0 -1
  59. package/lib/browser/debug-frontend-module.js +0 -110
  60. package/lib/browser/debug-frontend-module.js.map +0 -1
  61. package/lib/browser/debug-package.spec.d.ts +0 -1
  62. package/lib/browser/debug-package.spec.d.ts.map +0 -1
  63. package/lib/browser/debug-package.spec.js +0 -19
  64. package/lib/browser/debug-package.spec.js.map +0 -1
  65. package/lib/browser/debug-prefix-configuration.d.ts +0 -52
  66. package/lib/browser/debug-prefix-configuration.d.ts.map +0 -1
  67. package/lib/browser/debug-prefix-configuration.js +0 -202
  68. package/lib/browser/debug-prefix-configuration.js.map +0 -1
  69. package/lib/browser/debug-resource.d.ts +0 -15
  70. package/lib/browser/debug-resource.d.ts.map +0 -1
  71. package/lib/browser/debug-resource.js +0 -58
  72. package/lib/browser/debug-resource.js.map +0 -1
  73. package/lib/browser/debug-schema-updater.d.ts +0 -14
  74. package/lib/browser/debug-schema-updater.d.ts.map +0 -1
  75. package/lib/browser/debug-schema-updater.js +0 -161
  76. package/lib/browser/debug-schema-updater.js.map +0 -1
  77. package/lib/browser/debug-session-configuration-label-provider.d.ts +0 -11
  78. package/lib/browser/debug-session-configuration-label-provider.d.ts.map +0 -1
  79. package/lib/browser/debug-session-configuration-label-provider.js +0 -48
  80. package/lib/browser/debug-session-configuration-label-provider.js.map +0 -1
  81. package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +0 -2
  82. package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +0 -1
  83. package/lib/browser/debug-session-configuration-label-provider.spec.js +0 -84
  84. package/lib/browser/debug-session-configuration-label-provider.spec.js.map +0 -1
  85. package/lib/browser/debug-session-connection.d.ts +0 -111
  86. package/lib/browser/debug-session-connection.d.ts.map +0 -1
  87. package/lib/browser/debug-session-connection.js +0 -259
  88. package/lib/browser/debug-session-connection.js.map +0 -1
  89. package/lib/browser/debug-session-contribution.d.ts +0 -77
  90. package/lib/browser/debug-session-contribution.d.ts.map +0 -1
  91. package/lib/browser/debug-session-contribution.js +0 -143
  92. package/lib/browser/debug-session-contribution.js.map +0 -1
  93. package/lib/browser/debug-session-manager.d.ts +0 -138
  94. package/lib/browser/debug-session-manager.d.ts.map +0 -1
  95. package/lib/browser/debug-session-manager.js +0 -620
  96. package/lib/browser/debug-session-manager.js.map +0 -1
  97. package/lib/browser/debug-session-options.d.ts +0 -56
  98. package/lib/browser/debug-session-options.d.ts.map +0 -1
  99. package/lib/browser/debug-session-options.js +0 -92
  100. package/lib/browser/debug-session-options.js.map +0 -1
  101. package/lib/browser/debug-session.d.ts +0 -192
  102. package/lib/browser/debug-session.d.ts.map +0 -1
  103. package/lib/browser/debug-session.js +0 -913
  104. package/lib/browser/debug-session.js.map +0 -1
  105. package/lib/browser/debug-tab-bar-decorator.d.ts +0 -17
  106. package/lib/browser/debug-tab-bar-decorator.d.ts.map +0 -1
  107. package/lib/browser/debug-tab-bar-decorator.js +0 -63
  108. package/lib/browser/debug-tab-bar-decorator.js.map +0 -1
  109. package/lib/browser/debug-watch-manager.d.ts +0 -22
  110. package/lib/browser/debug-watch-manager.d.ts.map +0 -1
  111. package/lib/browser/debug-watch-manager.js +0 -86
  112. package/lib/browser/debug-watch-manager.js.map +0 -1
  113. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +0 -7
  114. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +0 -1
  115. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +0 -39
  116. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +0 -1
  117. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +0 -20
  118. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +0 -1
  119. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +0 -111
  120. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +0 -1
  121. package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +0 -25
  122. package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +0 -1
  123. package/lib/browser/disassembly-view/disassembly-view-contribution.js +0 -124
  124. package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +0 -1
  125. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +0 -39
  126. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +0 -1
  127. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +0 -213
  128. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +0 -1
  129. package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +0 -16
  130. package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +0 -1
  131. package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +0 -39
  132. package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +0 -1
  133. package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +0 -38
  134. package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +0 -1
  135. package/lib/browser/disassembly-view/disassembly-view-utilities.js +0 -18
  136. package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +0 -1
  137. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +0 -61
  138. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +0 -1
  139. package/lib/browser/disassembly-view/disassembly-view-widget.js +0 -446
  140. package/lib/browser/disassembly-view/disassembly-view-widget.js.map +0 -1
  141. package/lib/browser/editor/debug-breakpoint-widget.d.ts +0 -58
  142. package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +0 -1
  143. package/lib/browser/editor/debug-breakpoint-widget.js +0 -270
  144. package/lib/browser/editor/debug-breakpoint-widget.js.map +0 -1
  145. package/lib/browser/editor/debug-editor-model.d.ts +0 -87
  146. package/lib/browser/editor/debug-editor-model.d.ts.map +0 -1
  147. package/lib/browser/editor/debug-editor-model.js +0 -499
  148. package/lib/browser/editor/debug-editor-model.js.map +0 -1
  149. package/lib/browser/editor/debug-editor-service.d.ts +0 -38
  150. package/lib/browser/editor/debug-editor-service.d.ts.map +0 -1
  151. package/lib/browser/editor/debug-editor-service.js +0 -183
  152. package/lib/browser/editor/debug-editor-service.js.map +0 -1
  153. package/lib/browser/editor/debug-editor.d.ts +0 -4
  154. package/lib/browser/editor/debug-editor.d.ts.map +0 -1
  155. package/lib/browser/editor/debug-editor.js +0 -20
  156. package/lib/browser/editor/debug-editor.js.map +0 -1
  157. package/lib/browser/editor/debug-exception-widget.d.ts +0 -30
  158. package/lib/browser/editor/debug-exception-widget.d.ts.map +0 -1
  159. package/lib/browser/editor/debug-exception-widget.js +0 -107
  160. package/lib/browser/editor/debug-exception-widget.js.map +0 -1
  161. package/lib/browser/editor/debug-expression-provider.d.ts +0 -17
  162. package/lib/browser/editor/debug-expression-provider.d.ts.map +0 -1
  163. package/lib/browser/editor/debug-expression-provider.js +0 -107
  164. package/lib/browser/editor/debug-expression-provider.js.map +0 -1
  165. package/lib/browser/editor/debug-hover-source.d.ts +0 -19
  166. package/lib/browser/editor/debug-hover-source.d.ts.map +0 -1
  167. package/lib/browser/editor/debug-hover-source.js +0 -110
  168. package/lib/browser/editor/debug-hover-source.js.map +0 -1
  169. package/lib/browser/editor/debug-hover-widget.d.ts +0 -61
  170. package/lib/browser/editor/debug-hover-widget.d.ts.map +0 -1
  171. package/lib/browser/editor/debug-hover-widget.js +0 -271
  172. package/lib/browser/editor/debug-hover-widget.js.map +0 -1
  173. package/lib/browser/editor/debug-inline-value-decorator.d.ts +0 -20
  174. package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +0 -1
  175. package/lib/browser/editor/debug-inline-value-decorator.js +0 -326
  176. package/lib/browser/editor/debug-inline-value-decorator.js.map +0 -1
  177. package/lib/browser/model/debug-breakpoint.d.ts +0 -48
  178. package/lib/browser/model/debug-breakpoint.d.ts.map +0 -1
  179. package/lib/browser/model/debug-breakpoint.js +0 -111
  180. package/lib/browser/model/debug-breakpoint.js.map +0 -1
  181. package/lib/browser/model/debug-function-breakpoint.d.ts +0 -19
  182. package/lib/browser/model/debug-function-breakpoint.d.ts.map +0 -1
  183. package/lib/browser/model/debug-function-breakpoint.js +0 -93
  184. package/lib/browser/model/debug-function-breakpoint.js.map +0 -1
  185. package/lib/browser/model/debug-instruction-breakpoint.d.ts +0 -15
  186. package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +0 -1
  187. package/lib/browser/model/debug-instruction-breakpoint.js +0 -66
  188. package/lib/browser/model/debug-instruction-breakpoint.js.map +0 -1
  189. package/lib/browser/model/debug-source-breakpoint.d.ts +0 -39
  190. package/lib/browser/model/debug-source-breakpoint.d.ts.map +0 -1
  191. package/lib/browser/model/debug-source-breakpoint.js +0 -219
  192. package/lib/browser/model/debug-source-breakpoint.js.map +0 -1
  193. package/lib/browser/model/debug-source.d.ts +0 -25
  194. package/lib/browser/model/debug-source.d.ts.map +0 -1
  195. package/lib/browser/model/debug-source.js +0 -81
  196. package/lib/browser/model/debug-source.js.map +0 -1
  197. package/lib/browser/model/debug-stack-frame.d.ts +0 -45
  198. package/lib/browser/model/debug-stack-frame.d.ts.map +0 -1
  199. package/lib/browser/model/debug-stack-frame.js +0 -157
  200. package/lib/browser/model/debug-stack-frame.js.map +0 -1
  201. package/lib/browser/model/debug-thread.d.ts +0 -68
  202. package/lib/browser/model/debug-thread.d.ts.map +0 -1
  203. package/lib/browser/model/debug-thread.js +0 -262
  204. package/lib/browser/model/debug-thread.js.map +0 -1
  205. package/lib/browser/view/debug-action.d.ts +0 -18
  206. package/lib/browser/view/debug-action.d.ts.map +0 -1
  207. package/lib/browser/view/debug-action.js +0 -44
  208. package/lib/browser/view/debug-action.js.map +0 -1
  209. package/lib/browser/view/debug-breakpoints-source.d.ts +0 -10
  210. package/lib/browser/view/debug-breakpoints-source.d.ts.map +0 -1
  211. package/lib/browser/view/debug-breakpoints-source.js +0 -63
  212. package/lib/browser/view/debug-breakpoints-source.js.map +0 -1
  213. package/lib/browser/view/debug-breakpoints-widget.d.ts +0 -23
  214. package/lib/browser/view/debug-breakpoints-widget.d.ts.map +0 -1
  215. package/lib/browser/view/debug-breakpoints-widget.js +0 -81
  216. package/lib/browser/view/debug-breakpoints-widget.js.map +0 -1
  217. package/lib/browser/view/debug-configuration-select.d.ts +0 -67
  218. package/lib/browser/view/debug-configuration-select.d.ts.map +0 -1
  219. package/lib/browser/view/debug-configuration-select.js +0 -212
  220. package/lib/browser/view/debug-configuration-select.js.map +0 -1
  221. package/lib/browser/view/debug-configuration-widget.d.ts +0 -33
  222. package/lib/browser/view/debug-configuration-widget.d.ts.map +0 -1
  223. package/lib/browser/view/debug-configuration-widget.js +0 -137
  224. package/lib/browser/view/debug-configuration-widget.js.map +0 -1
  225. package/lib/browser/view/debug-exception-breakpoint.d.ts +0 -15
  226. package/lib/browser/view/debug-exception-breakpoint.d.ts.map +0 -1
  227. package/lib/browser/view/debug-exception-breakpoint.js +0 -62
  228. package/lib/browser/view/debug-exception-breakpoint.js.map +0 -1
  229. package/lib/browser/view/debug-session-widget.d.ts +0 -29
  230. package/lib/browser/view/debug-session-widget.d.ts.map +0 -1
  231. package/lib/browser/view/debug-session-widget.js +0 -127
  232. package/lib/browser/view/debug-session-widget.js.map +0 -1
  233. package/lib/browser/view/debug-stack-frames-source.d.ts +0 -18
  234. package/lib/browser/view/debug-stack-frames-source.d.ts.map +0 -1
  235. package/lib/browser/view/debug-stack-frames-source.js +0 -83
  236. package/lib/browser/view/debug-stack-frames-source.js.map +0 -1
  237. package/lib/browser/view/debug-stack-frames-widget.d.ts +0 -25
  238. package/lib/browser/view/debug-stack-frames-widget.d.ts.map +0 -1
  239. package/lib/browser/view/debug-stack-frames-widget.js +0 -147
  240. package/lib/browser/view/debug-stack-frames-widget.js.map +0 -1
  241. package/lib/browser/view/debug-threads-source.d.ts +0 -9
  242. package/lib/browser/view/debug-threads-source.d.ts.map +0 -1
  243. package/lib/browser/view/debug-threads-source.js +0 -56
  244. package/lib/browser/view/debug-threads-source.js.map +0 -1
  245. package/lib/browser/view/debug-threads-widget.d.ts +0 -27
  246. package/lib/browser/view/debug-threads-widget.d.ts.map +0 -1
  247. package/lib/browser/view/debug-threads-widget.js +0 -139
  248. package/lib/browser/view/debug-threads-widget.js.map +0 -1
  249. package/lib/browser/view/debug-toolbar-widget.d.ts +0 -34
  250. package/lib/browser/view/debug-toolbar-widget.d.ts.map +0 -1
  251. package/lib/browser/view/debug-toolbar-widget.js +0 -139
  252. package/lib/browser/view/debug-toolbar-widget.js.map +0 -1
  253. package/lib/browser/view/debug-variables-source.d.ts +0 -10
  254. package/lib/browser/view/debug-variables-source.d.ts.map +0 -1
  255. package/lib/browser/view/debug-variables-source.js +0 -53
  256. package/lib/browser/view/debug-variables-source.js.map +0 -1
  257. package/lib/browser/view/debug-variables-widget.d.ts +0 -17
  258. package/lib/browser/view/debug-variables-widget.d.ts.map +0 -1
  259. package/lib/browser/view/debug-variables-widget.js +0 -71
  260. package/lib/browser/view/debug-variables-widget.js.map +0 -1
  261. package/lib/browser/view/debug-view-model.d.ts +0 -53
  262. package/lib/browser/view/debug-view-model.d.ts.map +0 -1
  263. package/lib/browser/view/debug-view-model.js +0 -212
  264. package/lib/browser/view/debug-view-model.js.map +0 -1
  265. package/lib/browser/view/debug-watch-expression.d.ts +0 -33
  266. package/lib/browser/view/debug-watch-expression.d.ts.map +0 -1
  267. package/lib/browser/view/debug-watch-expression.js +0 -93
  268. package/lib/browser/view/debug-watch-expression.js.map +0 -1
  269. package/lib/browser/view/debug-watch-source.d.ts +0 -10
  270. package/lib/browser/view/debug-watch-source.d.ts.map +0 -1
  271. package/lib/browser/view/debug-watch-source.js +0 -51
  272. package/lib/browser/view/debug-watch-source.js.map +0 -1
  273. package/lib/browser/view/debug-watch-widget.d.ts +0 -17
  274. package/lib/browser/view/debug-watch-widget.d.ts.map +0 -1
  275. package/lib/browser/view/debug-watch-widget.js +0 -71
  276. package/lib/browser/view/debug-watch-widget.js.map +0 -1
  277. package/lib/browser/view/debug-widget.d.ts +0 -24
  278. package/lib/browser/view/debug-widget.d.ts.map +0 -1
  279. package/lib/browser/view/debug-widget.js +0 -101
  280. package/lib/browser/view/debug-widget.js.map +0 -1
  281. package/lib/common/debug-adapter-contribution-registry.d.ts +0 -60
  282. package/lib/common/debug-adapter-contribution-registry.d.ts.map +0 -1
  283. package/lib/common/debug-adapter-contribution-registry.js +0 -205
  284. package/lib/common/debug-adapter-contribution-registry.js.map +0 -1
  285. package/lib/common/debug-adapter-session.d.ts +0 -19
  286. package/lib/common/debug-adapter-session.d.ts.map +0 -1
  287. package/lib/common/debug-adapter-session.js +0 -79
  288. package/lib/common/debug-adapter-session.js.map +0 -1
  289. package/lib/common/debug-common.d.ts +0 -2
  290. package/lib/common/debug-common.d.ts.map +0 -1
  291. package/lib/common/debug-common.js +0 -21
  292. package/lib/common/debug-common.js.map +0 -1
  293. package/lib/common/debug-compound.d.ts +0 -15
  294. package/lib/common/debug-compound.d.ts.map +0 -1
  295. package/lib/common/debug-compound.js +0 -28
  296. package/lib/common/debug-compound.js.map +0 -1
  297. package/lib/common/debug-configuration.d.ts +0 -77
  298. package/lib/common/debug-configuration.d.ts.map +0 -1
  299. package/lib/common/debug-configuration.js +0 -32
  300. package/lib/common/debug-configuration.js.map +0 -1
  301. package/lib/common/debug-model.d.ts +0 -153
  302. package/lib/common/debug-model.d.ts.map +0 -1
  303. package/lib/common/debug-model.js +0 -36
  304. package/lib/common/debug-model.js.map +0 -1
  305. package/lib/common/debug-preferences.d.ts +0 -18
  306. package/lib/common/debug-preferences.d.ts.map +0 -1
  307. package/lib/common/debug-preferences.js +0 -89
  308. package/lib/common/debug-preferences.js.map +0 -1
  309. package/lib/common/debug-service.d.ts +0 -124
  310. package/lib/common/debug-service.d.ts.map +0 -1
  311. package/lib/common/debug-service.js +0 -67
  312. package/lib/common/debug-service.js.map +0 -1
  313. package/lib/common/debug-uri-utils.d.ts +0 -24
  314. package/lib/common/debug-uri-utils.d.ts.map +0 -1
  315. package/lib/common/debug-uri-utils.js +0 -27
  316. package/lib/common/debug-uri-utils.js.map +0 -1
  317. package/lib/common/inline-debug-adapter.d.ts +0 -19
  318. package/lib/common/inline-debug-adapter.d.ts.map +0 -1
  319. package/lib/common/inline-debug-adapter.js +0 -45
  320. package/lib/common/inline-debug-adapter.js.map +0 -1
  321. package/lib/common/launch-preferences.d.ts +0 -6
  322. package/lib/common/launch-preferences.d.ts.map +0 -1
  323. package/lib/common/launch-preferences.js +0 -37
  324. package/lib/common/launch-preferences.js.map +0 -1
  325. package/lib/node/debug-adapter-factory.d.ts +0 -20
  326. package/lib/node/debug-adapter-factory.d.ts.map +0 -1
  327. package/lib/node/debug-adapter-factory.js +0 -89
  328. package/lib/node/debug-adapter-factory.js.map +0 -1
  329. package/lib/node/debug-adapter-session-manager.d.ts +0 -38
  330. package/lib/node/debug-adapter-session-manager.d.ts.map +0 -1
  331. package/lib/node/debug-adapter-session-manager.js +0 -104
  332. package/lib/node/debug-adapter-session-manager.js.map +0 -1
  333. package/lib/node/debug-backend-module.d.ts +0 -4
  334. package/lib/node/debug-backend-module.d.ts.map +0 -1
  335. package/lib/node/debug-backend-module.js +0 -45
  336. package/lib/node/debug-backend-module.js.map +0 -1
  337. package/lib/node/debug-service-impl.d.ts +0 -31
  338. package/lib/node/debug-service-impl.d.ts.map +0 -1
  339. package/lib/node/debug-service-impl.js +0 -117
  340. package/lib/node/debug-service-impl.js.map +0 -1
  341. package/lib/node/stream-debug-adapter.d.ts +0 -41
  342. package/lib/node/stream-debug-adapter.d.ts.map +0 -1
  343. package/lib/node/stream-debug-adapter.js +0 -113
  344. package/lib/node/stream-debug-adapter.js.map +0 -1
@@ -1,53 +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.DebugVariablesSource = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const source_tree_1 = require("@theia/core/lib/browser/source-tree");
22
- const debug_view_model_1 = require("./debug-view-model");
23
- const debounce = require("p-debounce");
24
- let DebugVariablesSource = class DebugVariablesSource extends source_tree_1.TreeSource {
25
- constructor() {
26
- super(...arguments);
27
- this.refresh = debounce(() => this.fireDidChange(), 400);
28
- }
29
- init() {
30
- this.refresh();
31
- this.toDispose.push(this.model.onDidChange(() => this.refresh()));
32
- }
33
- async getElements() {
34
- const { currentSession } = this.model;
35
- const scopes = currentSession ? await currentSession.getScopes() : [];
36
- return scopes[Symbol.iterator]();
37
- }
38
- };
39
- exports.DebugVariablesSource = DebugVariablesSource;
40
- tslib_1.__decorate([
41
- (0, inversify_1.inject)(debug_view_model_1.DebugViewModel),
42
- tslib_1.__metadata("design:type", debug_view_model_1.DebugViewModel)
43
- ], DebugVariablesSource.prototype, "model", void 0);
44
- tslib_1.__decorate([
45
- (0, inversify_1.postConstruct)(),
46
- tslib_1.__metadata("design:type", Function),
47
- tslib_1.__metadata("design:paramtypes", []),
48
- tslib_1.__metadata("design:returntype", void 0)
49
- ], DebugVariablesSource.prototype, "init", null);
50
- exports.DebugVariablesSource = DebugVariablesSource = tslib_1.__decorate([
51
- (0, inversify_1.injectable)()
52
- ], DebugVariablesSource);
53
- //# sourceMappingURL=debug-variables-source.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-variables-source.js","sourceRoot":"","sources":["../../../src/browser/view/debug-variables-source.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAiF;AACjF,qEAAiE;AAEjE,yDAAoD;AACpD,uCAAwC;AAGjC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,wBAAU;IAA7C;;QAWgB,YAAO,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,GAAG,CAAC,CAAC;IAQ3E,CAAC;IAba,IAAI;QACV,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAID,KAAK,CAAC,WAAW;QACb,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QACtC,MAAM,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtE,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IACrC,CAAC;CAEJ,CAAA;AAnBY,oDAAoB;AAGV;IADlB,IAAA,kBAAM,EAAC,iCAAc,CAAC;sCACG,iCAAc;mDAAC;AAG/B;IADT,IAAA,yBAAa,GAAE;;;;gDAIf;+BATQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAmBhC"}
@@ -1,17 +0,0 @@
1
- import { interfaces, Container } from '@theia/core/shared/inversify';
2
- import { MenuPath } from '@theia/core/lib/common';
3
- import { SourceTreeWidget } from '@theia/core/lib/browser/source-tree';
4
- import { DebugVariablesSource } from './debug-variables-source';
5
- import { DebugViewModel } from './debug-view-model';
6
- export declare class DebugVariablesWidget extends SourceTreeWidget {
7
- static CONTEXT_MENU: MenuPath;
8
- static EDIT_MENU: MenuPath;
9
- static WATCH_MENU: MenuPath;
10
- static FACTORY_ID: string;
11
- static createContainer(parent: interfaces.Container): Container;
12
- static createWidget(parent: interfaces.Container): DebugVariablesWidget;
13
- protected readonly viewModel: DebugViewModel;
14
- protected readonly variables: DebugVariablesSource;
15
- protected init(): void;
16
- }
17
- //# sourceMappingURL=debug-variables-widget.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-variables-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/view/debug-variables-widget.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqC,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACxG,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBACa,oBAAqB,SAAQ,gBAAgB;IAEtD,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAoC;IACjE,MAAM,CAAC,SAAS,EAAE,QAAQ,CAAoD;IAC9E,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAqD;IAChF,MAAM,CAAC,UAAU,SAAqB;WACtB,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,SAAS;IAWxE,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,SAAS,GAAG,oBAAoB;IAKvE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IAG7C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;cAGhC,IAAI,IAAI,IAAI;CAQlC"}
@@ -1,71 +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
- var DebugVariablesWidget_1;
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DebugVariablesWidget = void 0;
20
- const tslib_1 = require("tslib");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const source_tree_1 = require("@theia/core/lib/browser/source-tree");
23
- const debug_variables_source_1 = require("./debug-variables-source");
24
- const debug_view_model_1 = require("./debug-view-model");
25
- const nls_1 = require("@theia/core/lib/common/nls");
26
- let DebugVariablesWidget = DebugVariablesWidget_1 = class DebugVariablesWidget extends source_tree_1.SourceTreeWidget {
27
- static createContainer(parent) {
28
- const child = source_tree_1.SourceTreeWidget.createContainer(parent, {
29
- contextMenuPath: DebugVariablesWidget_1.CONTEXT_MENU,
30
- virtualized: false,
31
- scrollIfActive: true
32
- });
33
- child.bind(debug_variables_source_1.DebugVariablesSource).toSelf();
34
- child.unbind(source_tree_1.SourceTreeWidget);
35
- child.bind(DebugVariablesWidget_1).toSelf();
36
- return child;
37
- }
38
- static createWidget(parent) {
39
- return DebugVariablesWidget_1.createContainer(parent).get(DebugVariablesWidget_1);
40
- }
41
- init() {
42
- super.init();
43
- this.id = DebugVariablesWidget_1.FACTORY_ID + ':' + this.viewModel.id;
44
- this.title.label = nls_1.nls.localizeByDefault('Variables');
45
- this.toDispose.push(this.variables);
46
- this.source = this.variables;
47
- }
48
- };
49
- exports.DebugVariablesWidget = DebugVariablesWidget;
50
- DebugVariablesWidget.CONTEXT_MENU = ['debug-variables-context-menu'];
51
- DebugVariablesWidget.EDIT_MENU = [...DebugVariablesWidget_1.CONTEXT_MENU, 'a_edit'];
52
- DebugVariablesWidget.WATCH_MENU = [...DebugVariablesWidget_1.CONTEXT_MENU, 'b_watch'];
53
- DebugVariablesWidget.FACTORY_ID = 'debug:variables';
54
- tslib_1.__decorate([
55
- (0, inversify_1.inject)(debug_view_model_1.DebugViewModel),
56
- tslib_1.__metadata("design:type", debug_view_model_1.DebugViewModel)
57
- ], DebugVariablesWidget.prototype, "viewModel", void 0);
58
- tslib_1.__decorate([
59
- (0, inversify_1.inject)(debug_variables_source_1.DebugVariablesSource),
60
- tslib_1.__metadata("design:type", debug_variables_source_1.DebugVariablesSource)
61
- ], DebugVariablesWidget.prototype, "variables", void 0);
62
- tslib_1.__decorate([
63
- (0, inversify_1.postConstruct)(),
64
- tslib_1.__metadata("design:type", Function),
65
- tslib_1.__metadata("design:paramtypes", []),
66
- tslib_1.__metadata("design:returntype", void 0)
67
- ], DebugVariablesWidget.prototype, "init", null);
68
- exports.DebugVariablesWidget = DebugVariablesWidget = DebugVariablesWidget_1 = tslib_1.__decorate([
69
- (0, inversify_1.injectable)()
70
- ], DebugVariablesWidget);
71
- //# sourceMappingURL=debug-variables-widget.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-variables-widget.js","sourceRoot":"","sources":["../../../src/browser/view/debug-variables-widget.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEhF,4DAAwG;AAExG,qEAAuE;AACvE,qEAAgE;AAChE,yDAAoD;AACpD,oDAAiD;AAG1C,IAAM,oBAAoB,4BAA1B,MAAM,oBAAqB,SAAQ,8BAAgB;IAMtD,MAAM,CAAU,eAAe,CAAC,MAA4B;QACxD,MAAM,KAAK,GAAG,8BAAgB,CAAC,eAAe,CAAC,MAAM,EAAE;YACnD,eAAe,EAAE,sBAAoB,CAAC,YAAY;YAClD,WAAW,EAAE,KAAK;YAClB,cAAc,EAAE,IAAI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,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAoChC"}
@@ -1,53 +0,0 @@
1
- import { Disposable, DisposableCollection, Event, Emitter } from '@theia/core/lib/common';
2
- import URI from '@theia/core/lib/common/uri';
3
- import { DebugSession, DebugState } from '../debug-session';
4
- import { DebugSessionManager } from '../debug-session-manager';
5
- import { DebugThread } from '../model/debug-thread';
6
- import { DebugStackFrame } from '../model/debug-stack-frame';
7
- import { DebugSourceBreakpoint } from '../model/debug-source-breakpoint';
8
- import { DebugWatchExpression } from './debug-watch-expression';
9
- import { DebugWatchManager } from '../debug-watch-manager';
10
- import { DebugFunctionBreakpoint } from '../model/debug-function-breakpoint';
11
- import { DebugInstructionBreakpoint } from '../model/debug-instruction-breakpoint';
12
- import { DebugSessionOptionsBase } from '../debug-session-options';
13
- export declare class DebugViewModel implements Disposable {
14
- protected readonly onDidChangeEmitter: Emitter<void>;
15
- readonly onDidChange: Event<void>;
16
- protected fireDidChange(): void;
17
- protected readonly onDidChangeBreakpointsEmitter: Emitter<URI>;
18
- readonly onDidChangeBreakpoints: Event<URI>;
19
- protected fireDidChangeBreakpoints(uri: URI): void;
20
- protected readonly _watchExpressions: Map<number, DebugWatchExpression>;
21
- protected readonly onDidChangeWatchExpressionsEmitter: Emitter<void>;
22
- readonly onDidChangeWatchExpressions: Event<void>;
23
- protected fireDidChangeWatchExpressions(): void;
24
- protected readonly toDispose: DisposableCollection;
25
- protected readonly manager: DebugSessionManager;
26
- protected readonly watch: DebugWatchManager;
27
- get sessions(): IterableIterator<DebugSession>;
28
- get sessionCount(): number;
29
- get session(): DebugSession | undefined;
30
- get id(): string;
31
- get label(): string;
32
- protected init(): void;
33
- dispose(): void;
34
- get currentSession(): DebugSession | undefined;
35
- set currentSession(currentSession: DebugSession | undefined);
36
- get state(): DebugState;
37
- get currentThread(): DebugThread | undefined;
38
- get currentFrame(): DebugStackFrame | undefined;
39
- get breakpoints(): DebugSourceBreakpoint[];
40
- get functionBreakpoints(): DebugFunctionBreakpoint[];
41
- get instructionBreakpoints(): DebugInstructionBreakpoint[];
42
- start(options?: Partial<Pick<DebugSessionOptionsBase, 'startedByUser'>>): Promise<void>;
43
- restart(): Promise<void>;
44
- terminate(): Promise<void>;
45
- get watchExpressions(): IterableIterator<DebugWatchExpression>;
46
- addWatchExpression(expression?: string): Promise<DebugWatchExpression | undefined>;
47
- removeWatchExpressions(): void;
48
- removeWatchExpression(expression: DebugWatchExpression): void;
49
- protected updateWatchExpressions(): void;
50
- protected refreshWatchExpressionsQueue: Promise<void>;
51
- protected refreshWatchExpressions: () => Promise<void>;
52
- }
53
- //# sourceMappingURL=debug-view-model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-view-model.d.ts","sourceRoot":"","sources":["../../../src/browser/view/debug-view-model.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,KAAK,EAAE,OAAO,EAAkB,MAAM,wBAAwB,CAAC;AAC1G,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,qBACa,cAAe,YAAW,UAAU;IAE7C,SAA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,IAAI,uBAAuB,EAAE,CAEnD;IAED,IAAI,sBAAsB,IAAI,0BAA0B,EAAE,CAEzD;IAEK,KAAK,CAAC,OAAO,GAAE,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,eAAe,CAAC,CAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAY3F,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IASxB,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAIhC,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,oBAAoB,CAAC,CAE7D;IAEK,kBAAkB,CAAC,UAAU,GAAE,MAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAgB5F,sBAAsB,IAAI,IAAI;IAI9B,qBAAqB,CAAC,UAAU,EAAE,oBAAoB,GAAG,IAAI;IAI7D,SAAS,CAAC,sBAAsB,IAAI,IAAI;IA0BxC,SAAS,CAAC,4BAA4B,gBAAqB;IAC3D,SAAS,CAAC,uBAAuB,sBAQ1B;CAEV"}
@@ -1,212 +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.DebugViewModel = void 0;
19
- const tslib_1 = require("tslib");
20
- const p_debounce_1 = require("p-debounce");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const common_1 = require("@theia/core/lib/common");
23
- const debug_session_1 = require("../debug-session");
24
- const debug_session_manager_1 = require("../debug-session-manager");
25
- const debug_watch_expression_1 = require("./debug-watch-expression");
26
- const debug_watch_manager_1 = require("../debug-watch-manager");
27
- let DebugViewModel = class DebugViewModel {
28
- constructor() {
29
- this.onDidChangeEmitter = new common_1.Emitter();
30
- this.onDidChange = this.onDidChangeEmitter.event;
31
- this.onDidChangeBreakpointsEmitter = new common_1.Emitter();
32
- this.onDidChangeBreakpoints = this.onDidChangeBreakpointsEmitter.event;
33
- this._watchExpressions = new Map();
34
- this.onDidChangeWatchExpressionsEmitter = new common_1.Emitter();
35
- this.onDidChangeWatchExpressions = this.onDidChangeWatchExpressionsEmitter.event;
36
- this.toDispose = new common_1.DisposableCollection(this.onDidChangeEmitter, this.onDidChangeBreakpointsEmitter, this.onDidChangeWatchExpressionsEmitter);
37
- this.refreshWatchExpressionsQueue = Promise.resolve();
38
- this.refreshWatchExpressions = (0, p_debounce_1.default)(() => {
39
- this.refreshWatchExpressionsQueue = this.refreshWatchExpressionsQueue.then(async () => {
40
- try {
41
- await Promise.all(Array.from(this.watchExpressions).map(expr => expr.evaluate()));
42
- }
43
- catch (e) {
44
- console.error('Failed to refresh watch expressions: ', e);
45
- }
46
- });
47
- }, 50);
48
- }
49
- fireDidChange() {
50
- this.refreshWatchExpressions();
51
- this.onDidChangeEmitter.fire(undefined);
52
- }
53
- fireDidChangeBreakpoints(uri) {
54
- this.onDidChangeBreakpointsEmitter.fire(uri);
55
- }
56
- fireDidChangeWatchExpressions() {
57
- this.onDidChangeWatchExpressionsEmitter.fire(undefined);
58
- }
59
- get sessions() {
60
- return this.manager.sessions[Symbol.iterator]();
61
- }
62
- get sessionCount() {
63
- return this.manager.sessions.length;
64
- }
65
- get session() {
66
- return this.currentSession;
67
- }
68
- get id() {
69
- return this.session && this.session.id || '-1';
70
- }
71
- get label() {
72
- return this.session && this.session.label || common_1.nls.localize('theia/debug/unknownSession', 'Unknown Session');
73
- }
74
- init() {
75
- this.toDispose.push(this.manager.onDidChangeActiveDebugSession(() => {
76
- this.fireDidChange();
77
- }));
78
- this.toDispose.push(this.manager.onDidChange(current => {
79
- if (current === this.currentSession) {
80
- this.fireDidChange();
81
- }
82
- }));
83
- this.toDispose.push(this.manager.onDidChangeBreakpoints(({ session, uri }) => {
84
- if (!session || session === this.currentSession) {
85
- this.fireDidChangeBreakpoints(uri);
86
- }
87
- }));
88
- this.updateWatchExpressions();
89
- this.toDispose.push(this.watch.onDidChange(() => this.updateWatchExpressions()));
90
- }
91
- dispose() {
92
- this.toDispose.dispose();
93
- }
94
- get currentSession() {
95
- const { currentSession } = this.manager;
96
- return currentSession;
97
- }
98
- set currentSession(currentSession) {
99
- this.manager.currentSession = currentSession;
100
- }
101
- get state() {
102
- const { currentSession } = this;
103
- return currentSession && currentSession.state || debug_session_1.DebugState.Inactive;
104
- }
105
- get currentThread() {
106
- const { currentSession } = this;
107
- return currentSession && currentSession.currentThread;
108
- }
109
- get currentFrame() {
110
- const { currentThread } = this;
111
- return currentThread && currentThread.currentFrame;
112
- }
113
- get breakpoints() {
114
- return this.manager.getBreakpoints(this.currentSession);
115
- }
116
- get functionBreakpoints() {
117
- return this.manager.getFunctionBreakpoints(this.currentSession);
118
- }
119
- get instructionBreakpoints() {
120
- return this.manager.getInstructionBreakpoints(this.currentSession);
121
- }
122
- async start(options = {}) {
123
- const { session } = this;
124
- if (!session) {
125
- return;
126
- }
127
- const optionsCopy = (0, common_1.deepClone)(session.options);
128
- const newSession = await this.manager.start(Object.assign(optionsCopy, options));
129
- if (newSession) {
130
- this.fireDidChange();
131
- }
132
- }
133
- async restart() {
134
- const { session } = this;
135
- if (!session) {
136
- return;
137
- }
138
- await this.manager.restartSession(session);
139
- this.fireDidChange();
140
- }
141
- async terminate() {
142
- this.manager.terminateSession();
143
- }
144
- get watchExpressions() {
145
- return this._watchExpressions.values();
146
- }
147
- async addWatchExpression(expression = '') {
148
- const watchExpression = new debug_watch_expression_1.DebugWatchExpression({
149
- id: Number.MAX_SAFE_INTEGER,
150
- expression,
151
- session: () => this.currentSession,
152
- remove: () => this.removeWatchExpression(watchExpression),
153
- onDidChange: () => { },
154
- });
155
- await watchExpression.open();
156
- if (!watchExpression.expression) {
157
- return undefined;
158
- }
159
- const id = this.watch.addWatchExpression(watchExpression.expression);
160
- return this._watchExpressions.get(id);
161
- }
162
- removeWatchExpressions() {
163
- this.watch.removeWatchExpressions();
164
- }
165
- removeWatchExpression(expression) {
166
- this.watch.removeWatchExpression(expression.id);
167
- }
168
- updateWatchExpressions() {
169
- let added = false;
170
- const toRemove = new Set(this._watchExpressions.keys());
171
- for (const [id, expression] of this.watch.watchExpressions) {
172
- toRemove.delete(id);
173
- if (!this._watchExpressions.has(id)) {
174
- added = true;
175
- const watchExpression = new debug_watch_expression_1.DebugWatchExpression({
176
- id,
177
- expression,
178
- session: () => this.currentSession,
179
- remove: () => this.removeWatchExpression(watchExpression),
180
- onDidChange: () => this.fireDidChangeWatchExpressions()
181
- });
182
- this._watchExpressions.set(id, watchExpression);
183
- watchExpression.evaluate();
184
- }
185
- }
186
- for (const id of toRemove) {
187
- this._watchExpressions.delete(id);
188
- }
189
- if (added || toRemove.size) {
190
- this.fireDidChangeWatchExpressions();
191
- }
192
- }
193
- };
194
- exports.DebugViewModel = DebugViewModel;
195
- tslib_1.__decorate([
196
- (0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
197
- tslib_1.__metadata("design:type", debug_session_manager_1.DebugSessionManager)
198
- ], DebugViewModel.prototype, "manager", void 0);
199
- tslib_1.__decorate([
200
- (0, inversify_1.inject)(debug_watch_manager_1.DebugWatchManager),
201
- tslib_1.__metadata("design:type", debug_watch_manager_1.DebugWatchManager)
202
- ], DebugViewModel.prototype, "watch", void 0);
203
- tslib_1.__decorate([
204
- (0, inversify_1.postConstruct)(),
205
- tslib_1.__metadata("design:type", Function),
206
- tslib_1.__metadata("design:paramtypes", []),
207
- tslib_1.__metadata("design:returntype", void 0)
208
- ], DebugViewModel.prototype, "init", null);
209
- exports.DebugViewModel = DebugViewModel = tslib_1.__decorate([
210
- (0, inversify_1.injectable)()
211
- ], DebugViewModel);
212
- //# sourceMappingURL=debug-view-model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-view-model.js","sourceRoot":"","sources":["../../../src/browser/view/debug-view-model.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,2CAAkC;AAClC,4DAAiF;AACjF,mDAA0G;AAE1G,oDAA4D;AAC5D,oEAA+D;AAI/D,qEAAgE;AAChE,gEAA2D;AAMpD,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QAEgB,uBAAkB,GAAG,IAAI,gBAAO,EAAQ,CAAC;QACnD,gBAAW,GAAgB,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;QAM/C,kCAA6B,GAAG,IAAI,gBAAO,EAAO,CAAC;QAC7D,2BAAsB,GAAe,IAAI,CAAC,6BAA6B,CAAC,KAAK,CAAC;QAKpE,sBAAiB,GAAG,IAAI,GAAG,EAAgC,CAAC;QAE5D,uCAAkC,GAAG,IAAI,gBAAO,EAAQ,CAAC;QACnE,gCAA2B,GAAG,IAAI,CAAC,kCAAkC,CAAC,KAAK,CAAC;QAKlE,cAAS,GAAG,IAAI,6BAAoB,CACnD,IAAI,CAAC,kBAAkB,EACvB,IAAI,CAAC,6BAA6B,EAClC,IAAI,CAAC,kCAAkC,CAC1C,CAAC;QA+JQ,iCAA4B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;QACjD,4BAAuB,GAAG,IAAA,oBAAQ,EAAC,GAAG,EAAE;YAC9C,IAAI,CAAC,4BAA4B,GAAG,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,KAAK,I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M1B"}
@@ -1,33 +0,0 @@
1
- /// <reference types="react" />
2
- import * as React from '@theia/core/shared/react';
3
- import { ExpressionItem, DebugSessionProvider } from '../console/debug-console-items';
4
- import { DebugProtocol } from '@vscode/debugprotocol';
5
- export declare class DebugWatchExpression extends ExpressionItem {
6
- protected readonly options: {
7
- id: number;
8
- expression: string;
9
- session: DebugSessionProvider;
10
- remove: () => void;
11
- onDidChange: () => void;
12
- };
13
- readonly id: number;
14
- protected isError: boolean;
15
- protected isNotAvailable: boolean;
16
- constructor(options: {
17
- id: number;
18
- expression: string;
19
- session: DebugSessionProvider;
20
- remove: () => void;
21
- onDidChange: () => void;
22
- });
23
- evaluate(): Promise<void>;
24
- protected setResult(body?: DebugProtocol.EvaluateResponse['body'], error?: string): void;
25
- render(): React.ReactNode;
26
- protected valueClass(): string;
27
- open(): Promise<void>;
28
- get supportCopyValue(): boolean;
29
- copyValue(): void;
30
- protected valueRef: HTMLSpanElement | undefined;
31
- protected setValueRef: (valueRef: HTMLSpanElement | null) => HTMLSpanElement | undefined;
32
- }
33
- //# sourceMappingURL=debug-watch-expression.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-watch-expression.d.ts","sourceRoot":"","sources":["../../../src/browser/view/debug-watch-expression.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAItD,qBAAa,oBAAqB,SAAQ,cAAc;IAMxC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE;QACpC,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,oBAAoB,CAAC;QAC9B,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,WAAW,EAAE,MAAM,IAAI,CAAA;KAC1B;IAVD,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC;gBAEH,OAAO,EAAE;QACpC,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,oBAAoB,CAAC;QAC9B,MAAM,EAAE,MAAM,IAAI,CAAC;QACnB,WAAW,EAAE,MAAM,IAAI,CAAA;KAC1B;IAKc,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;cAIrB,SAAS,CAAC,IAAI,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAiBxF,MAAM,IAAI,KAAK,CAAC,SAAS;IAWlC,SAAS,CAAC,UAAU,IAAI,MAAM;IAUxB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAa3B,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IACD,SAAS,IAAI,IAAI;IAOjB,SAAS,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IAChD,SAAS,CAAC,WAAW,aAAc,eAAe,GAAG,IAAI,iCAA2C;CAEvG"}
@@ -1,93 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2019 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.DebugWatchExpression = void 0;
19
- const React = require("@theia/core/shared/react");
20
- const dialogs_1 = require("@theia/core/lib/browser/dialogs");
21
- const debug_console_items_1 = require("../console/debug-console-items");
22
- const browser_1 = require("@theia/core/lib/browser");
23
- const core_1 = require("@theia/core");
24
- class DebugWatchExpression extends debug_console_items_1.ExpressionItem {
25
- constructor(options) {
26
- super(options.expression, options.session);
27
- this.options = options;
28
- this.setValueRef = (valueRef) => this.valueRef = valueRef || undefined;
29
- this.id = options.id;
30
- }
31
- async evaluate() {
32
- await super.evaluate('watch');
33
- }
34
- setResult(body, error) {
35
- const session = this.options.session();
36
- this.isNotAvailable = false;
37
- this.isError = false;
38
- // not available must be set regardless of the session's availability.
39
- // not available is used when there is no session or the current stack frame is not available.
40
- if (error === debug_console_items_1.ExpressionItem.notAvailable) {
41
- super.setResult(undefined, error);
42
- this.isNotAvailable = true;
43
- }
44
- else if (session) {
45
- super.setResult(body, error);
46
- this.isError = !!error;
47
- }
48
- this.options.onDidChange();
49
- }
50
- render() {
51
- const valueClass = this.valueClass();
52
- return React.createElement("div", { className: 'theia-debug-console-variable theia-debug-watch-expression' },
53
- React.createElement("div", { className: browser_1.TREE_NODE_SEGMENT_GROW_CLASS },
54
- React.createElement("span", { title: this.type || this._expression, className: 'name' },
55
- this._expression,
56
- ": "),
57
- React.createElement("span", { title: this._value, ref: this.setValueRef, className: valueClass }, this._value)),
58
- React.createElement("div", { className: (0, browser_1.codicon)('close', true), title: core_1.nls.localizeByDefault('Remove Expression'), onClick: this.options.remove }));
59
- }
60
- valueClass() {
61
- if (this.isError) {
62
- return 'watch-error';
63
- }
64
- if (this.isNotAvailable) {
65
- return 'watch-not-available';
66
- }
67
- return '';
68
- }
69
- async open() {
70
- const input = new dialogs_1.SingleTextInputDialog({
71
- title: core_1.nls.localizeByDefault('Edit Expression'),
72
- initialValue: this.expression,
73
- placeholder: core_1.nls.localizeByDefault('Expression to watch')
74
- });
75
- const newValue = await input.open();
76
- if (newValue !== undefined) {
77
- this._expression = newValue;
78
- await this.evaluate();
79
- }
80
- }
81
- get supportCopyValue() {
82
- return !!this.valueRef && document.queryCommandSupported('copy');
83
- }
84
- copyValue() {
85
- const selection = document.getSelection();
86
- if (this.valueRef && selection) {
87
- selection.selectAllChildren(this.valueRef);
88
- document.execCommand('copy');
89
- }
90
- }
91
- }
92
- exports.DebugWatchExpression = DebugWatchExpression;
93
- //# sourceMappingURL=debug-watch-expression.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-watch-expression.js","sourceRoot":"","sources":["../../../src/browser/view/debug-watch-expression.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,kDAAkD;AAClD,6DAAwE;AACxE,wEAAsF;AAEtF,qDAAgF;AAChF,sCAAkC;AAElC,MAAa,oBAAqB,SAAQ,oCAAc;IAMpD,YAA+B,OAM9B;QACG,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAPhB,YAAO,GAAP,OAAO,CAMrC;QAuES,gBAAW,GAAG,CAAC,QAAgC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI,SAAS,CAAC;QArEhG,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;IACzB,CAAC;IAEQ,KAAK,CAAC,QAAQ;QACnB,MAAM,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAEkB,SAAS,CAAC,IAA6C,EAAE,KAAc;QACtF,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAC5B,IAAI,CA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OAAO,EAAE,CAAC;IACd,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,KAAK,GAAG,IAAI,+BAAqB,CAAC;YACpC,KAAK,EAAE,UAAG,CAAC,iBAAiB,CAAC,iBAAiB,CAAC;YAC/C,YAAY,EAAE,IAAI,CAAC,UAAU;YAC7B,WAAW,EAAE,UAAG,CAAC,iBAAiB,CAAC,qBAAqB,CAAC;SAC5D,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACpC,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;YACzB,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;YAC5B,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC1B,CAAC;IACL,CAAC;IAED,IAAI,gBAAgB;QAChB,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACrE,CAAC;IACD,SAAS;QACL,MAAM,SAAS,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAC1C,IAAI,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE,CAAC;YAC7B,SAAS,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC3C,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;IACL,CAAC;CAIJ;AArFD,oDAqFC"}
@@ -1,10 +0,0 @@
1
- import { TreeSource } from '@theia/core/lib/browser/source-tree';
2
- import { DebugViewModel } from './debug-view-model';
3
- import { DebugWatchExpression } from './debug-watch-expression';
4
- export declare class DebugWatchSource extends TreeSource {
5
- protected readonly model: DebugViewModel;
6
- protected init(): void;
7
- protected readonly refresh: () => Promise<void>;
8
- getElements(): Promise<IterableIterator<DebugWatchExpression>>;
9
- }
10
- //# sourceMappingURL=debug-watch-source.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-watch-source.d.ts","sourceRoot":"","sources":["../../../src/browser/view/debug-watch-source.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGhE,qBACa,gBAAiB,SAAQ,UAAU;IAG5C,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAGzC,SAAS,CAAC,IAAI,IAAI,IAAI;IAKtB,SAAS,CAAC,QAAQ,CAAC,OAAO,sBAA6C;IAEjE,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;CAIvE"}