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

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 (353) hide show
  1. package/lib/browser/breakpoint/breakpoint-manager.d.ts +91 -0
  2. package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +1 -0
  3. package/lib/browser/breakpoint/breakpoint-manager.js +367 -0
  4. package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -0
  5. package/lib/browser/breakpoint/breakpoint-marker.d.ts +65 -0
  6. package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +1 -0
  7. package/lib/browser/breakpoint/breakpoint-marker.js +102 -0
  8. package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -0
  9. package/lib/browser/breakpoint/debug-data-breakpoint-actions.d.ts +17 -0
  10. package/lib/browser/breakpoint/debug-data-breakpoint-actions.d.ts.map +1 -0
  11. package/lib/browser/breakpoint/debug-data-breakpoint-actions.js +166 -0
  12. package/lib/browser/breakpoint/debug-data-breakpoint-actions.js.map +1 -0
  13. package/lib/browser/console/debug-console-contribution.d.ts +45 -0
  14. package/lib/browser/console/debug-console-contribution.d.ts.map +1 -0
  15. package/lib/browser/console/debug-console-contribution.js +233 -0
  16. package/lib/browser/console/debug-console-contribution.js.map +1 -0
  17. package/lib/browser/console/debug-console-items.d.ts +108 -0
  18. package/lib/browser/console/debug-console-items.d.ts.map +1 -0
  19. package/lib/browser/console/debug-console-items.js +407 -0
  20. package/lib/browser/console/debug-console-items.js.map +1 -0
  21. package/lib/browser/console/debug-console-session.d.ts +32 -0
  22. package/lib/browser/console/debug-console-session.d.ts.map +1 -0
  23. package/lib/browser/console/debug-console-session.js +193 -0
  24. package/lib/browser/console/debug-console-session.js.map +1 -0
  25. package/lib/browser/debug-call-stack-item-type-key.d.ts +4 -0
  26. package/lib/browser/debug-call-stack-item-type-key.d.ts.map +1 -0
  27. package/lib/browser/debug-call-stack-item-type-key.js +20 -0
  28. package/lib/browser/debug-call-stack-item-type-key.js.map +1 -0
  29. package/lib/browser/debug-configuration-manager.d.ts +103 -0
  30. package/lib/browser/debug-configuration-manager.d.ts.map +1 -0
  31. package/lib/browser/debug-configuration-manager.js +545 -0
  32. package/lib/browser/debug-configuration-manager.js.map +1 -0
  33. package/lib/browser/debug-configuration-model.d.ts +30 -0
  34. package/lib/browser/debug-configuration-model.d.ts.map +1 -0
  35. package/lib/browser/debug-configuration-model.js +80 -0
  36. package/lib/browser/debug-configuration-model.js.map +1 -0
  37. package/lib/browser/debug-contribution.d.ts +23 -0
  38. package/lib/browser/debug-contribution.d.ts.map +1 -0
  39. package/lib/browser/debug-contribution.js +20 -0
  40. package/lib/browser/debug-contribution.js.map +1 -0
  41. package/lib/browser/debug-frontend-application-contribution.d.ts +252 -0
  42. package/lib/browser/debug-frontend-application-contribution.d.ts.map +1 -0
  43. package/lib/browser/debug-frontend-application-contribution.js +1696 -0
  44. package/lib/browser/debug-frontend-application-contribution.js.map +1 -0
  45. package/lib/browser/debug-frontend-module.d.ts +5 -0
  46. package/lib/browser/debug-frontend-module.d.ts.map +1 -0
  47. package/lib/browser/debug-frontend-module.js +112 -0
  48. package/lib/browser/debug-frontend-module.js.map +1 -0
  49. package/lib/browser/debug-package.spec.d.ts +1 -0
  50. package/lib/browser/debug-package.spec.d.ts.map +1 -0
  51. package/lib/browser/debug-package.spec.js +19 -0
  52. package/lib/browser/debug-package.spec.js.map +1 -0
  53. package/lib/browser/debug-prefix-configuration.d.ts +52 -0
  54. package/lib/browser/debug-prefix-configuration.d.ts.map +1 -0
  55. package/lib/browser/debug-prefix-configuration.js +202 -0
  56. package/lib/browser/debug-prefix-configuration.js.map +1 -0
  57. package/lib/browser/debug-resource.d.ts +15 -0
  58. package/lib/browser/debug-resource.d.ts.map +1 -0
  59. package/lib/browser/debug-resource.js +58 -0
  60. package/lib/browser/debug-resource.js.map +1 -0
  61. package/lib/browser/debug-schema-updater.d.ts +14 -0
  62. package/lib/browser/debug-schema-updater.d.ts.map +1 -0
  63. package/lib/browser/debug-schema-updater.js +161 -0
  64. package/lib/browser/debug-schema-updater.js.map +1 -0
  65. package/lib/browser/debug-session-configuration-label-provider.d.ts +11 -0
  66. package/lib/browser/debug-session-configuration-label-provider.d.ts.map +1 -0
  67. package/lib/browser/debug-session-configuration-label-provider.js +48 -0
  68. package/lib/browser/debug-session-configuration-label-provider.js.map +1 -0
  69. package/lib/browser/debug-session-configuration-label-provider.spec.d.ts +2 -0
  70. package/lib/browser/debug-session-configuration-label-provider.spec.d.ts.map +1 -0
  71. package/lib/browser/debug-session-configuration-label-provider.spec.js +84 -0
  72. package/lib/browser/debug-session-configuration-label-provider.spec.js.map +1 -0
  73. package/lib/browser/debug-session-connection.d.ts +111 -0
  74. package/lib/browser/debug-session-connection.d.ts.map +1 -0
  75. package/lib/browser/debug-session-connection.js +259 -0
  76. package/lib/browser/debug-session-connection.js.map +1 -0
  77. package/lib/browser/debug-session-contribution.d.ts +77 -0
  78. package/lib/browser/debug-session-contribution.d.ts.map +1 -0
  79. package/lib/browser/debug-session-contribution.js +143 -0
  80. package/lib/browser/debug-session-contribution.js.map +1 -0
  81. package/lib/browser/debug-session-manager.d.ts +147 -0
  82. package/lib/browser/debug-session-manager.d.ts.map +1 -0
  83. package/lib/browser/debug-session-manager.js +640 -0
  84. package/lib/browser/debug-session-manager.js.map +1 -0
  85. package/lib/browser/debug-session-options.d.ts +56 -0
  86. package/lib/browser/debug-session-options.d.ts.map +1 -0
  87. package/lib/browser/debug-session-options.js +92 -0
  88. package/lib/browser/debug-session-options.js.map +1 -0
  89. package/lib/browser/debug-session.d.ts +200 -0
  90. package/lib/browser/debug-session.d.ts.map +1 -0
  91. package/lib/browser/debug-session.js +955 -0
  92. package/lib/browser/debug-session.js.map +1 -0
  93. package/lib/browser/debug-tab-bar-decorator.d.ts +17 -0
  94. package/lib/browser/debug-tab-bar-decorator.d.ts.map +1 -0
  95. package/lib/browser/debug-tab-bar-decorator.js +63 -0
  96. package/lib/browser/debug-tab-bar-decorator.js.map +1 -0
  97. package/lib/browser/debug-watch-manager.d.ts +22 -0
  98. package/lib/browser/debug-watch-manager.d.ts.map +1 -0
  99. package/lib/browser/debug-watch-manager.js +86 -0
  100. package/lib/browser/debug-watch-manager.js.map +1 -0
  101. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts +7 -0
  102. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.d.ts.map +1 -0
  103. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js +39 -0
  104. package/lib/browser/disassembly-view/disassembly-view-accessibility-provider.js.map +1 -0
  105. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts +20 -0
  106. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.d.ts.map +1 -0
  107. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js +111 -0
  108. package/lib/browser/disassembly-view/disassembly-view-breakpoint-renderer.js.map +1 -0
  109. package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts +25 -0
  110. package/lib/browser/disassembly-view/disassembly-view-contribution.d.ts.map +1 -0
  111. package/lib/browser/disassembly-view/disassembly-view-contribution.js +124 -0
  112. package/lib/browser/disassembly-view/disassembly-view-contribution.js.map +1 -0
  113. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts +39 -0
  114. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.d.ts.map +1 -0
  115. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js +213 -0
  116. package/lib/browser/disassembly-view/disassembly-view-instruction-renderer.js.map +1 -0
  117. package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts +16 -0
  118. package/lib/browser/disassembly-view/disassembly-view-table-delegate.d.ts.map +1 -0
  119. package/lib/browser/disassembly-view/disassembly-view-table-delegate.js +39 -0
  120. package/lib/browser/disassembly-view/disassembly-view-table-delegate.js.map +1 -0
  121. package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts +38 -0
  122. package/lib/browser/disassembly-view/disassembly-view-utilities.d.ts.map +1 -0
  123. package/lib/browser/disassembly-view/disassembly-view-utilities.js +18 -0
  124. package/lib/browser/disassembly-view/disassembly-view-utilities.js.map +1 -0
  125. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts +61 -0
  126. package/lib/browser/disassembly-view/disassembly-view-widget.d.ts.map +1 -0
  127. package/lib/browser/disassembly-view/disassembly-view-widget.js +446 -0
  128. package/lib/browser/disassembly-view/disassembly-view-widget.js.map +1 -0
  129. package/lib/browser/editor/debug-breakpoint-widget.d.ts +58 -0
  130. package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -0
  131. package/lib/browser/editor/debug-breakpoint-widget.js +270 -0
  132. package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -0
  133. package/lib/browser/editor/debug-editor-model.d.ts +87 -0
  134. package/lib/browser/editor/debug-editor-model.d.ts.map +1 -0
  135. package/lib/browser/editor/debug-editor-model.js +499 -0
  136. package/lib/browser/editor/debug-editor-model.js.map +1 -0
  137. package/lib/browser/editor/debug-editor-service.d.ts +38 -0
  138. package/lib/browser/editor/debug-editor-service.d.ts.map +1 -0
  139. package/lib/browser/editor/debug-editor-service.js +183 -0
  140. package/lib/browser/editor/debug-editor-service.js.map +1 -0
  141. package/lib/browser/editor/debug-editor.d.ts +4 -0
  142. package/lib/browser/editor/debug-editor.d.ts.map +1 -0
  143. package/lib/browser/editor/debug-editor.js +20 -0
  144. package/lib/browser/editor/debug-editor.js.map +1 -0
  145. package/lib/browser/editor/debug-exception-widget.d.ts +30 -0
  146. package/lib/browser/editor/debug-exception-widget.d.ts.map +1 -0
  147. package/lib/browser/editor/debug-exception-widget.js +107 -0
  148. package/lib/browser/editor/debug-exception-widget.js.map +1 -0
  149. package/lib/browser/editor/debug-expression-provider.d.ts +17 -0
  150. package/lib/browser/editor/debug-expression-provider.d.ts.map +1 -0
  151. package/lib/browser/editor/debug-expression-provider.js +107 -0
  152. package/lib/browser/editor/debug-expression-provider.js.map +1 -0
  153. package/lib/browser/editor/debug-hover-source.d.ts +20 -0
  154. package/lib/browser/editor/debug-hover-source.d.ts.map +1 -0
  155. package/lib/browser/editor/debug-hover-source.js +119 -0
  156. package/lib/browser/editor/debug-hover-source.js.map +1 -0
  157. package/lib/browser/editor/debug-hover-widget.d.ts +61 -0
  158. package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -0
  159. package/lib/browser/editor/debug-hover-widget.js +271 -0
  160. package/lib/browser/editor/debug-hover-widget.js.map +1 -0
  161. package/lib/browser/editor/debug-inline-value-decorator.d.ts +20 -0
  162. package/lib/browser/editor/debug-inline-value-decorator.d.ts.map +1 -0
  163. package/lib/browser/editor/debug-inline-value-decorator.js +326 -0
  164. package/lib/browser/editor/debug-inline-value-decorator.js.map +1 -0
  165. package/lib/browser/model/debug-breakpoint.d.ts +48 -0
  166. package/lib/browser/model/debug-breakpoint.d.ts.map +1 -0
  167. package/lib/browser/model/debug-breakpoint.js +111 -0
  168. package/lib/browser/model/debug-breakpoint.js.map +1 -0
  169. package/lib/browser/model/debug-data-breakpoint.d.ts +16 -0
  170. package/lib/browser/model/debug-data-breakpoint.d.ts.map +1 -0
  171. package/lib/browser/model/debug-data-breakpoint.js +75 -0
  172. package/lib/browser/model/debug-data-breakpoint.js.map +1 -0
  173. package/lib/browser/model/debug-function-breakpoint.d.ts +19 -0
  174. package/lib/browser/model/debug-function-breakpoint.d.ts.map +1 -0
  175. package/lib/browser/model/debug-function-breakpoint.js +93 -0
  176. package/lib/browser/model/debug-function-breakpoint.js.map +1 -0
  177. package/lib/browser/model/debug-instruction-breakpoint.d.ts +15 -0
  178. package/lib/browser/model/debug-instruction-breakpoint.d.ts.map +1 -0
  179. package/lib/browser/model/debug-instruction-breakpoint.js +66 -0
  180. package/lib/browser/model/debug-instruction-breakpoint.js.map +1 -0
  181. package/lib/browser/model/debug-source-breakpoint.d.ts +39 -0
  182. package/lib/browser/model/debug-source-breakpoint.d.ts.map +1 -0
  183. package/lib/browser/model/debug-source-breakpoint.js +219 -0
  184. package/lib/browser/model/debug-source-breakpoint.js.map +1 -0
  185. package/lib/browser/model/debug-source.d.ts +25 -0
  186. package/lib/browser/model/debug-source.d.ts.map +1 -0
  187. package/lib/browser/model/debug-source.js +81 -0
  188. package/lib/browser/model/debug-source.js.map +1 -0
  189. package/lib/browser/model/debug-stack-frame.d.ts +45 -0
  190. package/lib/browser/model/debug-stack-frame.d.ts.map +1 -0
  191. package/lib/browser/model/debug-stack-frame.js +165 -0
  192. package/lib/browser/model/debug-stack-frame.js.map +1 -0
  193. package/lib/browser/model/debug-thread.d.ts +68 -0
  194. package/lib/browser/model/debug-thread.d.ts.map +1 -0
  195. package/lib/browser/model/debug-thread.js +266 -0
  196. package/lib/browser/model/debug-thread.js.map +1 -0
  197. package/lib/browser/view/debug-action.d.ts +18 -0
  198. package/lib/browser/view/debug-action.d.ts.map +1 -0
  199. package/lib/browser/view/debug-action.js +44 -0
  200. package/lib/browser/view/debug-action.js.map +1 -0
  201. package/lib/browser/view/debug-breakpoints-source.d.ts +10 -0
  202. package/lib/browser/view/debug-breakpoints-source.d.ts.map +1 -0
  203. package/lib/browser/view/debug-breakpoints-source.js +58 -0
  204. package/lib/browser/view/debug-breakpoints-source.js.map +1 -0
  205. package/lib/browser/view/debug-breakpoints-widget.d.ts +23 -0
  206. package/lib/browser/view/debug-breakpoints-widget.d.ts.map +1 -0
  207. package/lib/browser/view/debug-breakpoints-widget.js +81 -0
  208. package/lib/browser/view/debug-breakpoints-widget.js.map +1 -0
  209. package/lib/browser/view/debug-configuration-select.d.ts +67 -0
  210. package/lib/browser/view/debug-configuration-select.d.ts.map +1 -0
  211. package/lib/browser/view/debug-configuration-select.js +212 -0
  212. package/lib/browser/view/debug-configuration-select.js.map +1 -0
  213. package/lib/browser/view/debug-configuration-widget.d.ts +33 -0
  214. package/lib/browser/view/debug-configuration-widget.d.ts.map +1 -0
  215. package/lib/browser/view/debug-configuration-widget.js +137 -0
  216. package/lib/browser/view/debug-configuration-widget.js.map +1 -0
  217. package/lib/browser/view/debug-exception-breakpoint.d.ts +15 -0
  218. package/lib/browser/view/debug-exception-breakpoint.d.ts.map +1 -0
  219. package/lib/browser/view/debug-exception-breakpoint.js +62 -0
  220. package/lib/browser/view/debug-exception-breakpoint.js.map +1 -0
  221. package/lib/browser/view/debug-session-widget.d.ts +29 -0
  222. package/lib/browser/view/debug-session-widget.d.ts.map +1 -0
  223. package/lib/browser/view/debug-session-widget.js +127 -0
  224. package/lib/browser/view/debug-session-widget.js.map +1 -0
  225. package/lib/browser/view/debug-stack-frames-source.d.ts +18 -0
  226. package/lib/browser/view/debug-stack-frames-source.d.ts.map +1 -0
  227. package/lib/browser/view/debug-stack-frames-source.js +83 -0
  228. package/lib/browser/view/debug-stack-frames-source.js.map +1 -0
  229. package/lib/browser/view/debug-stack-frames-widget.d.ts +25 -0
  230. package/lib/browser/view/debug-stack-frames-widget.d.ts.map +1 -0
  231. package/lib/browser/view/debug-stack-frames-widget.js +152 -0
  232. package/lib/browser/view/debug-stack-frames-widget.js.map +1 -0
  233. package/lib/browser/view/debug-threads-source.d.ts +9 -0
  234. package/lib/browser/view/debug-threads-source.d.ts.map +1 -0
  235. package/lib/browser/view/debug-threads-source.js +56 -0
  236. package/lib/browser/view/debug-threads-source.js.map +1 -0
  237. package/lib/browser/view/debug-threads-widget.d.ts +27 -0
  238. package/lib/browser/view/debug-threads-widget.d.ts.map +1 -0
  239. package/lib/browser/view/debug-threads-widget.js +139 -0
  240. package/lib/browser/view/debug-threads-widget.js.map +1 -0
  241. package/lib/browser/view/debug-toolbar-widget.d.ts +34 -0
  242. package/lib/browser/view/debug-toolbar-widget.d.ts.map +1 -0
  243. package/lib/browser/view/debug-toolbar-widget.js +139 -0
  244. package/lib/browser/view/debug-toolbar-widget.js.map +1 -0
  245. package/lib/browser/view/debug-variables-source.d.ts +10 -0
  246. package/lib/browser/view/debug-variables-source.d.ts.map +1 -0
  247. package/lib/browser/view/debug-variables-source.js +54 -0
  248. package/lib/browser/view/debug-variables-source.js.map +1 -0
  249. package/lib/browser/view/debug-variables-widget.d.ts +43 -0
  250. package/lib/browser/view/debug-variables-widget.d.ts.map +1 -0
  251. package/lib/browser/view/debug-variables-widget.js +207 -0
  252. package/lib/browser/view/debug-variables-widget.js.map +1 -0
  253. package/lib/browser/view/debug-view-model.d.ts +59 -0
  254. package/lib/browser/view/debug-view-model.d.ts.map +1 -0
  255. package/lib/browser/view/debug-view-model.js +225 -0
  256. package/lib/browser/view/debug-view-model.js.map +1 -0
  257. package/lib/browser/view/debug-watch-expression.d.ts +33 -0
  258. package/lib/browser/view/debug-watch-expression.d.ts.map +1 -0
  259. package/lib/browser/view/debug-watch-expression.js +92 -0
  260. package/lib/browser/view/debug-watch-expression.js.map +1 -0
  261. package/lib/browser/view/debug-watch-source.d.ts +10 -0
  262. package/lib/browser/view/debug-watch-source.d.ts.map +1 -0
  263. package/lib/browser/view/debug-watch-source.js +52 -0
  264. package/lib/browser/view/debug-watch-source.js.map +1 -0
  265. package/lib/browser/view/debug-watch-widget.d.ts +17 -0
  266. package/lib/browser/view/debug-watch-widget.d.ts.map +1 -0
  267. package/lib/browser/view/debug-watch-widget.js +71 -0
  268. package/lib/browser/view/debug-watch-widget.js.map +1 -0
  269. package/lib/browser/view/debug-widget.d.ts +24 -0
  270. package/lib/browser/view/debug-widget.d.ts.map +1 -0
  271. package/lib/browser/view/debug-widget.js +101 -0
  272. package/lib/browser/view/debug-widget.js.map +1 -0
  273. package/lib/common/debug-adapter-contribution-registry.d.ts +60 -0
  274. package/lib/common/debug-adapter-contribution-registry.d.ts.map +1 -0
  275. package/lib/common/debug-adapter-contribution-registry.js +205 -0
  276. package/lib/common/debug-adapter-contribution-registry.js.map +1 -0
  277. package/lib/common/debug-adapter-session.d.ts +19 -0
  278. package/lib/common/debug-adapter-session.d.ts.map +1 -0
  279. package/lib/common/debug-adapter-session.js +79 -0
  280. package/lib/common/debug-adapter-session.js.map +1 -0
  281. package/lib/common/debug-common.d.ts +2 -0
  282. package/lib/common/debug-common.d.ts.map +1 -0
  283. package/lib/common/debug-common.js +21 -0
  284. package/lib/common/debug-common.js.map +1 -0
  285. package/lib/common/debug-compound.d.ts +15 -0
  286. package/lib/common/debug-compound.d.ts.map +1 -0
  287. package/lib/common/debug-compound.js +28 -0
  288. package/lib/common/debug-compound.js.map +1 -0
  289. package/lib/common/debug-configuration.d.ts +77 -0
  290. package/lib/common/debug-configuration.d.ts.map +1 -0
  291. package/lib/common/debug-configuration.js +32 -0
  292. package/lib/common/debug-configuration.js.map +1 -0
  293. package/lib/common/debug-model.d.ts +153 -0
  294. package/lib/common/debug-model.d.ts.map +1 -0
  295. package/lib/common/debug-model.js +36 -0
  296. package/lib/common/debug-model.js.map +1 -0
  297. package/lib/common/debug-preferences.d.ts +19 -0
  298. package/lib/common/debug-preferences.d.ts.map +1 -0
  299. package/lib/common/debug-preferences.js +99 -0
  300. package/lib/common/debug-preferences.js.map +1 -0
  301. package/lib/common/debug-service.d.ts +124 -0
  302. package/lib/common/debug-service.d.ts.map +1 -0
  303. package/lib/common/debug-service.js +67 -0
  304. package/lib/common/debug-service.js.map +1 -0
  305. package/lib/common/debug-uri-utils.d.ts +24 -0
  306. package/lib/common/debug-uri-utils.d.ts.map +1 -0
  307. package/lib/common/debug-uri-utils.js +27 -0
  308. package/lib/common/debug-uri-utils.js.map +1 -0
  309. package/lib/common/inline-debug-adapter.d.ts +19 -0
  310. package/lib/common/inline-debug-adapter.d.ts.map +1 -0
  311. package/lib/common/inline-debug-adapter.js +45 -0
  312. package/lib/common/inline-debug-adapter.js.map +1 -0
  313. package/lib/common/launch-preferences.d.ts +6 -0
  314. package/lib/common/launch-preferences.d.ts.map +1 -0
  315. package/lib/common/launch-preferences.js +37 -0
  316. package/lib/common/launch-preferences.js.map +1 -0
  317. package/lib/node/debug-adapter-factory.d.ts +20 -0
  318. package/lib/node/debug-adapter-factory.d.ts.map +1 -0
  319. package/lib/node/debug-adapter-factory.js +89 -0
  320. package/lib/node/debug-adapter-factory.js.map +1 -0
  321. package/lib/node/debug-adapter-session-manager.d.ts +38 -0
  322. package/lib/node/debug-adapter-session-manager.d.ts.map +1 -0
  323. package/lib/node/debug-adapter-session-manager.js +104 -0
  324. package/lib/node/debug-adapter-session-manager.js.map +1 -0
  325. package/lib/node/debug-backend-module.d.ts +4 -0
  326. package/lib/node/debug-backend-module.d.ts.map +1 -0
  327. package/lib/node/debug-backend-module.js +45 -0
  328. package/lib/node/debug-backend-module.js.map +1 -0
  329. package/lib/node/debug-service-impl.d.ts +31 -0
  330. package/lib/node/debug-service-impl.d.ts.map +1 -0
  331. package/lib/node/debug-service-impl.js +117 -0
  332. package/lib/node/debug-service-impl.js.map +1 -0
  333. package/lib/node/stream-debug-adapter.d.ts +41 -0
  334. package/lib/node/stream-debug-adapter.d.ts.map +1 -0
  335. package/lib/node/stream-debug-adapter.js +113 -0
  336. package/lib/node/stream-debug-adapter.js.map +1 -0
  337. package/package.json +15 -15
  338. package/src/browser/console/debug-console-items.tsx +90 -21
  339. package/src/browser/console/debug-console-session.ts +1 -0
  340. package/src/browser/debug-session-contribution.ts +3 -1
  341. package/src/browser/debug-session-manager.ts +10 -0
  342. package/src/browser/debug-session.tsx +13 -1
  343. package/src/browser/editor/debug-hover-source.tsx +6 -2
  344. package/src/browser/editor/debug-inline-value-decorator.ts +1 -1
  345. package/src/browser/model/debug-stack-frame.tsx +13 -6
  346. package/src/browser/model/debug-thread.tsx +14 -10
  347. package/src/browser/style/index.css +17 -0
  348. package/src/browser/view/debug-variables-source.ts +1 -0
  349. package/src/browser/view/debug-variables-widget.ts +59 -0
  350. package/src/browser/view/debug-view-model.ts +13 -0
  351. package/src/browser/view/debug-watch-expression.tsx +5 -6
  352. package/src/browser/view/debug-watch-source.ts +1 -0
  353. package/src/common/debug-preferences.ts +12 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-function-breakpoint.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-function-breakpoint.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAIxG,qBAAa,uBAAwB,SAAQ,eAAe,CAAC,kBAAkB,CAAE,YAAW,WAAW;IAEvF,QAAQ,CAAC,MAAM,EAAE,kBAAkB;gBAA1B,MAAM,EAAE,kBAAkB,EAAE,OAAO,EAAE,sBAAsB;IAIhF,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;cASf,SAAS,IAAI,OAAO;IAIvC,SAAS,CAAC,WAAW,IAAI,OAAO;IAKhC,MAAM,IAAI,IAAI;IAQd,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,SAAS,CAAC,QAAQ,IAAI,KAAK,CAAC,SAAS;cAIlB,eAAe,IAAI,yBAAyB;IAO/D,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,yBAAyB;IAO1E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAsB9B"}
@@ -0,0 +1,93 @@
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.DebugFunctionBreakpoint = void 0;
19
+ const React = require("@theia/core/shared/react");
20
+ const breakpoint_manager_1 = require("../breakpoint/breakpoint-manager");
21
+ const debug_breakpoint_1 = require("./debug-breakpoint");
22
+ const dialogs_1 = require("@theia/core/lib/browser/dialogs");
23
+ const core_1 = require("@theia/core");
24
+ class DebugFunctionBreakpoint extends debug_breakpoint_1.DebugBreakpoint {
25
+ constructor(origin, options) {
26
+ super(breakpoint_manager_1.BreakpointManager.FUNCTION_URI, options);
27
+ this.origin = origin;
28
+ }
29
+ setEnabled(enabled) {
30
+ const breakpoints = this.breakpoints.getFunctionBreakpoints();
31
+ const breakpoint = breakpoints.find(b => b.id === this.id);
32
+ if (breakpoint && breakpoint.enabled !== enabled) {
33
+ breakpoint.enabled = enabled;
34
+ this.breakpoints.setFunctionBreakpoints(breakpoints);
35
+ }
36
+ }
37
+ isEnabled() {
38
+ return super.isEnabled() && this.isSupported();
39
+ }
40
+ isSupported() {
41
+ const { session } = this;
42
+ return !session || !!session.capabilities.supportsFunctionBreakpoints;
43
+ }
44
+ remove() {
45
+ const breakpoints = this.breakpoints.getFunctionBreakpoints();
46
+ const newBreakpoints = breakpoints.filter(b => b.id !== this.id);
47
+ if (breakpoints.length !== newBreakpoints.length) {
48
+ this.breakpoints.setFunctionBreakpoints(newBreakpoints);
49
+ }
50
+ }
51
+ get name() {
52
+ return this.origin.raw.name;
53
+ }
54
+ doRender() {
55
+ return React.createElement("span", { className: 'line-info' }, this.name);
56
+ }
57
+ doGetDecoration() {
58
+ if (!this.isSupported()) {
59
+ return this.getDisabledBreakpointDecoration(core_1.nls.localizeByDefault('Function breakpoints are not supported by this debug type'));
60
+ }
61
+ return super.doGetDecoration();
62
+ }
63
+ getBreakpointDecoration(message) {
64
+ return {
65
+ className: 'codicon-debug-breakpoint-function',
66
+ message: message || [core_1.nls.localizeByDefault('Function Breakpoint')]
67
+ };
68
+ }
69
+ async open() {
70
+ const input = new dialogs_1.SingleTextInputDialog({
71
+ title: core_1.nls.localizeByDefault('Add Function Breakpoint'),
72
+ initialValue: this.name
73
+ });
74
+ const newValue = await input.open();
75
+ if (newValue !== undefined && newValue !== this.name) {
76
+ const breakpoints = this.breakpoints.getFunctionBreakpoints();
77
+ const breakpoint = breakpoints.find(b => b.id === this.id);
78
+ if (breakpoint) {
79
+ if (breakpoint.raw.name !== newValue) {
80
+ breakpoint.raw.name = newValue;
81
+ this.breakpoints.setFunctionBreakpoints(breakpoints);
82
+ }
83
+ }
84
+ else {
85
+ this.origin.raw.name = newValue;
86
+ breakpoints.push(this.origin);
87
+ this.breakpoints.setFunctionBreakpoints(breakpoints);
88
+ }
89
+ }
90
+ }
91
+ }
92
+ exports.DebugFunctionBreakpoint = DebugFunctionBreakpoint;
93
+ //# sourceMappingURL=debug-function-breakpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-function-breakpoint.js","sourceRoot":"","sources":["../../../src/browser/model/debug-function-breakpoint.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;AAGlD,yEAAqE;AACrE,yDAAwG;AACxG,6DAAwE;AACxE,sCAAkC;AAElC,MAAa,uBAAwB,SAAQ,kCAAmC;IAE5E,YAAqB,MAA0B,EAAE,OAA+B;QAC5E,KAAK,CAAC,sCAAiB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAD9B,WAAM,GAAN,MAAM,CAAoB;IAE/C,CAAC;IAED,UAAU,CAAC,OAAgB;QACvB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,sBAAsB,EAAE,CAAC;QAC9D,MAAM,UAAU,GAAG,WAAW,CAAC,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ACL,CAAC;IACL,CAAC;CAEJ;AA5ED,0DA4EC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import * as React from '@theia/core/shared/react';
3
+ import { InstructionBreakpoint } from '../breakpoint/breakpoint-marker';
4
+ import { DebugBreakpoint, DebugBreakpointDecoration, DebugBreakpointOptions } from './debug-breakpoint';
5
+ export declare class DebugInstructionBreakpoint extends DebugBreakpoint<InstructionBreakpoint> {
6
+ readonly origin: InstructionBreakpoint;
7
+ constructor(origin: InstructionBreakpoint, options: DebugBreakpointOptions);
8
+ setEnabled(enabled: boolean): void;
9
+ protected isEnabled(): boolean;
10
+ protected isSupported(): boolean;
11
+ remove(): void;
12
+ protected doRender(): React.ReactNode;
13
+ protected getBreakpointDecoration(message?: string[]): DebugBreakpointDecoration;
14
+ }
15
+ //# sourceMappingURL=debug-instruction-breakpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-instruction-breakpoint.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-instruction-breakpoint.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAExG,qBAAa,0BAA2B,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IACtE,QAAQ,CAAC,MAAM,EAAE,qBAAqB;gBAA7B,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,sBAAsB;IAInF,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;cAMf,SAAS,IAAI,OAAO;IAIvC,SAAS,CAAC,WAAW,IAAI,OAAO;IAIhC,MAAM,IAAI,IAAI;IAId,SAAS,CAAC,QAAQ,IAAI,KAAK,CAAC,SAAS;IAIrC,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,yBAAyB;CAkBnF"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2022 Ericsson 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.DebugInstructionBreakpoint = void 0;
19
+ const core_1 = require("@theia/core");
20
+ const React = require("@theia/core/shared/react");
21
+ const breakpoint_manager_1 = require("../breakpoint/breakpoint-manager");
22
+ const debug_breakpoint_1 = require("./debug-breakpoint");
23
+ class DebugInstructionBreakpoint extends debug_breakpoint_1.DebugBreakpoint {
24
+ constructor(origin, options) {
25
+ super(breakpoint_manager_1.BreakpointManager.INSTRUCTION_URI, options);
26
+ this.origin = origin;
27
+ }
28
+ setEnabled(enabled) {
29
+ if (enabled !== this.origin.enabled) {
30
+ this.breakpoints.updateInstructionBreakpoint(this.origin.id, { enabled });
31
+ }
32
+ }
33
+ isEnabled() {
34
+ return super.isEnabled() && this.isSupported();
35
+ }
36
+ isSupported() {
37
+ var _a;
38
+ return Boolean((_a = this.session) === null || _a === void 0 ? void 0 : _a.capabilities.supportsInstructionBreakpoints);
39
+ }
40
+ remove() {
41
+ this.breakpoints.removeInstructionBreakpoint(this.origin.instructionReference);
42
+ }
43
+ doRender() {
44
+ return React.createElement("span", { className: "line-info" }, this.origin.instructionReference);
45
+ }
46
+ getBreakpointDecoration(message) {
47
+ if (!this.isSupported()) {
48
+ return {
49
+ className: 'codicon-debug-breakpoint-unsupported',
50
+ message: message !== null && message !== void 0 ? message : [core_1.nls.localize('theia/debug/instruction-breakpoint', 'Instruction Breakpoint')],
51
+ };
52
+ }
53
+ if (this.origin.condition || this.origin.hitCondition) {
54
+ return {
55
+ className: 'codicon-debug-breakpoint-conditional',
56
+ message: message || [core_1.nls.localize('theia/debug/conditionalBreakpoint', 'Conditional Breakpoint')]
57
+ };
58
+ }
59
+ return {
60
+ className: 'codicon-debug-breakpoint',
61
+ message: message || [core_1.nls.localize('theia/debug/instruction-breakpoint', 'Instruction Breakpoint')]
62
+ };
63
+ }
64
+ }
65
+ exports.DebugInstructionBreakpoint = DebugInstructionBreakpoint;
66
+ //# sourceMappingURL=debug-instruction-breakpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-instruction-breakpoint.js","sourceRoot":"","sources":["../../../src/browser/model/debug-instruction-breakpoint.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,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,sCAAkC;AAClC,kDAAkD;AAClD,yEAAqE;AAErE,yDAAwG;AAExG,MAAa,0BAA2B,SAAQ,kCAAsC;IAClF,YAAqB,MAA6B,EAAE,OAA+B;QAC/E,KAAK,CAAC,sCAAiB,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QADjC,WAAM,GAAN,MAAM,CAAuB;IAElD,CAAC;IAED,UAAU,CAAC,OAAgB;QACvB,IAAI,OAAO,KAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YAClC,IAAI,CAAC,WAAW,CAAC,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9E,CAAC;IACL,CAAC;IAEkB,SAAS;QACxB,OAAO,KAAK,CAAC,SAAS,EAAE,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;IACnD,CAAC;IAES,WAAW;;QACjB,OAAO,OAAO,CAAC,MAAA,IAAI,CAAC,OAAO,0CAAE,YAAY,CAAC,8BAA8B,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM;QACF,IAAI,CAAC,WAAW,CAAC,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACnF,CAAC;IAES,QAAQ;QACd,OAAO,8BAAM,SAAS,EAAC,WAAW,IAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAQ,CAAC;IACjF,CAAC;IAES,uBAAuB,CAAC,OAAkB;QAChD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACtB,OAAO;gBACH,SAAS,EAAE,sCAAsC;gBACjD,OAAO,EAAE,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,CAAC,UAAG,CAAC,QAAQ,CAAC,oCAAoC,EAAE,wBAAwB,CAAC,CAAC;aACrG,CAAC;QACN,CAAC;QACD,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YACpD,OAAO;gBACH,SAAS,EAAE,sCAAsC;gBACjD,OAAO,EAAE,OAAO,IAAI,CAAC,UAAG,CAAC,QAAQ,CAAC,mCAAmC,EAAE,wBAAwB,CAAC,CAAC;aACpG,CAAC;QACN,CAAC;QACD,OAAO;YACH,SAAS,EAAE,0BAA0B;YACrC,OAAO,EAAE,OAAO,IAAI,CAAC,UAAG,CAAC,QAAQ,CAAC,oCAAoC,EAAE,wBAAwB,CAAC,CAAC;SACrG,CAAC;IACN,CAAC;CACJ;AA7CD,gEA6CC"}
@@ -0,0 +1,39 @@
1
+ /// <reference types="react" />
2
+ import * as React from '@theia/core/shared/react';
3
+ import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol';
4
+ import { EditorWidget } from '@theia/editor/lib/browser';
5
+ import { WidgetOpenerOptions } from '@theia/core/lib/browser';
6
+ import { TreeElement } from '@theia/core/lib/browser/source-tree';
7
+ import { SourceBreakpoint } from '../breakpoint/breakpoint-marker';
8
+ import { DebugSource } from './debug-source';
9
+ import { DebugBreakpoint, DebugBreakpointOptions, DebugBreakpointData, DebugBreakpointDecoration } from './debug-breakpoint';
10
+ export declare class DebugSourceBreakpointData extends DebugBreakpointData {
11
+ readonly origins: SourceBreakpoint[];
12
+ }
13
+ export declare class DebugSourceBreakpoint extends DebugBreakpoint<SourceBreakpoint> implements TreeElement {
14
+ readonly origins: SourceBreakpoint[];
15
+ constructor(origin: SourceBreakpoint, options: DebugBreakpointOptions);
16
+ update(data: Partial<DebugSourceBreakpointData>): void;
17
+ get origin(): SourceBreakpoint;
18
+ setEnabled(enabled: boolean): void;
19
+ updateOrigins(data: Partial<DebugProtocol.SourceBreakpoint>): void;
20
+ /** 1-based */
21
+ get line(): number;
22
+ get column(): number | undefined;
23
+ get endLine(): number | undefined;
24
+ get endColumn(): number | undefined;
25
+ get condition(): string | undefined;
26
+ get hitCondition(): string | undefined;
27
+ get logMessage(): string | undefined;
28
+ get source(): DebugSource | undefined;
29
+ open(options?: WidgetOpenerOptions): Promise<EditorWidget>;
30
+ protected setBreakpointEnabled: (event: React.ChangeEvent<HTMLInputElement>) => void;
31
+ protected doRender(): React.ReactNode;
32
+ renderPosition(): string;
33
+ doGetDecoration(messages?: string[]): DebugBreakpointDecoration;
34
+ protected getUnsupportedBreakpointDecoration(message: string): DebugBreakpointDecoration;
35
+ protected getBreakpointDecoration(message?: string[]): DebugBreakpointDecoration;
36
+ remove(): void;
37
+ protected doRemove(origins: SourceBreakpoint[]): SourceBreakpoint[] | undefined;
38
+ }
39
+ //# sourceMappingURL=debug-source-breakpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-source-breakpoint.d.ts","sourceRoot":"","s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M,GAAG,SAAS,CAElC;IACD,IAAI,YAAY,IAAI,MAAM,GAAG,SAAS,CAErC;IACD,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAI,MAAM,IAAI,WAAW,GAAG,SAAS,CAEpC;IAEK,IAAI,CAAC,OAAO,GAAE,mBAEnB,GAAG,OAAO,CAAC,YAAY,CAAC;IA2BzB,UAAmB,oBAAoB,UAAW,MAAM,WAAW,CAAC,gBAAgB,CAAC,UAEnF;IAEF,SAAS,CAAC,QAAQ,IAAI,KAAK,CAAC,SAAS;IAUrC,cAAc,IAAI,MAAM;IAIf,eAAe,CAAC,QAAQ,GAAE,MAAM,EAAO,GAAG,yBAAyB;IA4B5E,SAAS,CAAC,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,yBAAyB;IAOxF,SAAS,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,yBAAyB;IAmBhF,MAAM,IAAI,IAAI;IAMd,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,GAAG,SAAS;CAmBlF"}
@@ -0,0 +1,219 @@
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.DebugSourceBreakpoint = exports.DebugSourceBreakpointData = void 0;
19
+ const React = require("@theia/core/shared/react");
20
+ const core_1 = require("@theia/core");
21
+ const uri_1 = require("@theia/core/lib/common/uri");
22
+ const browser_1 = require("@theia/core/lib/browser");
23
+ const debug_breakpoint_1 = require("./debug-breakpoint");
24
+ class DebugSourceBreakpointData extends debug_breakpoint_1.DebugBreakpointData {
25
+ }
26
+ exports.DebugSourceBreakpointData = DebugSourceBreakpointData;
27
+ class DebugSourceBreakpoint extends debug_breakpoint_1.DebugBreakpoint {
28
+ constructor(origin, options) {
29
+ super(new uri_1.default(origin.uri), options);
30
+ this.setBreakpointEnabled = (event) => {
31
+ this.setEnabled(event.target.checked);
32
+ };
33
+ this.origins = [origin];
34
+ }
35
+ update(data) {
36
+ super.update(data);
37
+ }
38
+ get origin() {
39
+ return this.origins[0];
40
+ }
41
+ setEnabled(enabled) {
42
+ const { uri, raw } = this;
43
+ let shouldUpdate = false;
44
+ let breakpoints = raw && this.doRemove(this.origins.filter(origin => !(origin.raw.line === raw.line && origin.raw.column === raw.column)));
45
+ // Check for breakpoints array with at least one entry
46
+ if (breakpoints && breakpoints.length) {
47
+ shouldUpdate = true;
48
+ }
49
+ else {
50
+ breakpoints = this.breakpoints.getBreakpoints(uri);
51
+ }
52
+ for (const breakpoint of breakpoints) {
53
+ if (breakpoint.raw.line === this.origin.raw.line && breakpoint.raw.column === this.origin.raw.column && breakpoint.enabled !== enabled) {
54
+ breakpoint.enabled = enabled;
55
+ shouldUpdate = true;
56
+ }
57
+ }
58
+ if (shouldUpdate) {
59
+ this.breakpoints.setBreakpoints(this.uri, breakpoints);
60
+ }
61
+ }
62
+ updateOrigins(data) {
63
+ const breakpoints = this.breakpoints.getBreakpoints(this.uri);
64
+ let shouldUpdate = false;
65
+ const originPositions = new Set();
66
+ this.origins.forEach(origin => originPositions.add(origin.raw.line + ':' + origin.raw.column));
67
+ for (const breakpoint of breakpoints) {
68
+ if (originPositions.has(breakpoint.raw.line + ':' + breakpoint.raw.column)) {
69
+ Object.assign(breakpoint.raw, data);
70
+ shouldUpdate = true;
71
+ }
72
+ }
73
+ if (shouldUpdate) {
74
+ this.breakpoints.setBreakpoints(this.uri, breakpoints);
75
+ }
76
+ }
77
+ /** 1-based */
78
+ get line() {
79
+ return this.raw && this.raw.line || this.origins[0].raw.line;
80
+ }
81
+ get column() {
82
+ return this.raw && this.raw.column || this.origins[0].raw.column;
83
+ }
84
+ get endLine() {
85
+ return this.raw && this.raw.endLine;
86
+ }
87
+ get endColumn() {
88
+ return this.raw && this.raw.endColumn;
89
+ }
90
+ get condition() {
91
+ return this.origin.raw.condition;
92
+ }
93
+ get hitCondition() {
94
+ return this.origin.raw.hitCondition;
95
+ }
96
+ get logMessage() {
97
+ return this.origin.raw.logMessage;
98
+ }
99
+ get source() {
100
+ return this.raw && this.raw.source && this.session && this.session.getSource(this.raw.source);
101
+ }
102
+ async open(options = {
103
+ mode: 'reveal'
104
+ }) {
105
+ const { line, column, endLine, endColumn } = this;
106
+ const selection = {
107
+ start: {
108
+ line: line - 1,
109
+ character: typeof column === 'number' ? column - 1 : undefined
110
+ }
111
+ };
112
+ if (typeof endLine === 'number') {
113
+ selection.end = {
114
+ line: endLine - 1,
115
+ character: typeof endColumn === 'number' ? endColumn - 1 : undefined
116
+ };
117
+ }
118
+ if (this.source) {
119
+ return await this.source.open({
120
+ ...options,
121
+ selection
122
+ });
123
+ }
124
+ else {
125
+ return await this.editorManager.open(this.uri, {
126
+ ...options,
127
+ selection
128
+ });
129
+ }
130
+ }
131
+ doRender() {
132
+ return React.createElement(React.Fragment, null,
133
+ React.createElement("span", { className: 'line-info', title: this.labelProvider.getLongName(this.uri) },
134
+ React.createElement("span", { className: 'name' },
135
+ this.labelProvider.getName(this.uri),
136
+ " "),
137
+ React.createElement("span", { className: 'path ' + browser_1.TREE_NODE_INFO_CLASS },
138
+ this.labelProvider.getLongName(this.uri.parent),
139
+ " ")),
140
+ React.createElement("span", { className: 'line' }, this.renderPosition()));
141
+ }
142
+ renderPosition() {
143
+ return this.line + (typeof this.column === 'number' ? ':' + this.column : '');
144
+ }
145
+ doGetDecoration(messages = []) {
146
+ if (this.logMessage || this.condition || this.hitCondition) {
147
+ const { session } = this;
148
+ if (this.logMessage) {
149
+ if (session && !session.capabilities.supportsLogPoints) {
150
+ return this.getUnsupportedBreakpointDecoration(core_1.nls.localize('theia/debug/logpointsNotSupported', 'Logpoints not supported by this debug type'));
151
+ }
152
+ messages.push(core_1.nls.localizeByDefault('Log Message: {0}', this.logMessage));
153
+ }
154
+ if (this.condition) {
155
+ if (session && !session.capabilities.supportsConditionalBreakpoints) {
156
+ return this.getUnsupportedBreakpointDecoration(core_1.nls.localize('theia/debug/conditionalBreakpointsNotSupported', 'Conditional breakpoints not supported by this debug type'));
157
+ }
158
+ messages.push(core_1.nls.localizeByDefault('Condition: {0}', this.condition));
159
+ }
160
+ if (this.hitCondition) {
161
+ if (session && !session.capabilities.supportsHitConditionalBreakpoints) {
162
+ return this.getUnsupportedBreakpointDecoration(core_1.nls.localize('theia/debug/htiConditionalBreakpointsNotSupported', 'Hit conditional breakpoints not supported by this debug type'));
163
+ }
164
+ messages.push(core_1.nls.localizeByDefault('Hit Count: {0}', this.hitCondition));
165
+ }
166
+ }
167
+ return super.doGetDecoration(messages);
168
+ }
169
+ getUnsupportedBreakpointDecoration(message) {
170
+ return {
171
+ className: 'codicon-debug-breakpoint-unsupported',
172
+ message: [message]
173
+ };
174
+ }
175
+ getBreakpointDecoration(message) {
176
+ if (this.logMessage) {
177
+ return {
178
+ className: 'codicon-debug-breakpoint-log',
179
+ message: message || [core_1.nls.localizeByDefault('Logpoint')]
180
+ };
181
+ }
182
+ if (this.condition || this.hitCondition) {
183
+ return {
184
+ className: 'codicon-debug-breakpoint-conditional',
185
+ message: message || [core_1.nls.localize('theia/debug/conditionalBreakpoint', 'Conditional Breakpoint')]
186
+ };
187
+ }
188
+ return {
189
+ className: 'codicon-debug-breakpoint',
190
+ message: message || [core_1.nls.localizeByDefault('Breakpoint')]
191
+ };
192
+ }
193
+ remove() {
194
+ const breakpoints = this.doRemove(this.origins);
195
+ if (breakpoints) {
196
+ this.breakpoints.setBreakpoints(this.uri, breakpoints);
197
+ }
198
+ }
199
+ doRemove(origins) {
200
+ if (!origins.length) {
201
+ return undefined;
202
+ }
203
+ const { uri } = this;
204
+ const toRemove = new Set();
205
+ origins.forEach(origin => toRemove.add(origin.raw.line + ':' + origin.raw.column));
206
+ let shouldUpdate = false;
207
+ const breakpoints = this.breakpoints.findMarkers({
208
+ uri,
209
+ dataFilter: data => {
210
+ const result = !toRemove.has(data.raw.line + ':' + data.raw.column);
211
+ shouldUpdate = shouldUpdate || !result;
212
+ return result;
213
+ }
214
+ }).map(({ data }) => data);
215
+ return shouldUpdate && breakpoints || undefined;
216
+ }
217
+ }
218
+ exports.DebugSourceBreakpoint = DebugSourceBreakpoint;
219
+ //# sourceMappingURL=debug-source-breakpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-source-breakpoint.js","sourceRoot":"","sources":["../../../src/browser/model/debug-source-breakpoint.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;AAElD,sCAAoD;AACpD,oDAA6C;AAE7C,qDAAoF;AAIpF,yDAA6H;AAE7H,MAAa,yBAA0B,SAAQ,sCAAmB;CAEjE;AAFD,8DAEC;AAED,MAAa,qBAAsB,SAAQ,kCAAiC;IAIxE,YAAY,MAAwB,EAAE,OAA+B;QACjE,KAAK,CAAC,IAAI,aAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;QA0GrB,yBAAoB,GAAG,CAAC,KAA0C,EAAE,EAAE;YACrF,IAAI,CAAC,UAAU,CAAC,KAAK,CAA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CAAC,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;QACnF,IAAI,YAAY,GAAG,KAAK,CAAC;QACzB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC;YAC7C,GAAG;YACH,UAAU,EAAE,IAAI,CAAC,EAAE;gBACf,MAAM,MAAM,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBACpE,YAAY,GAAG,YAAY,IAAI,CAAC,MAAM,CAAC;gBACvC,OAAO,MAAM,CAAC;YAClB,CAAC;SACJ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,YAAY,IAAI,WAAW,IAAI,SAAS,CAAC;IACpD,CAAC;CAEJ;AAhND,sDAgNC"}
@@ -0,0 +1,25 @@
1
+ import { LabelProvider } from '@theia/core/lib/browser';
2
+ import { EditorManager, EditorOpenerOptions, EditorWidget } from '@theia/editor/lib/browser';
3
+ import URI from '@theia/core/lib/common/uri';
4
+ import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol';
5
+ import { DebugSession } from '../debug-session';
6
+ export declare class DebugSourceData {
7
+ readonly raw: DebugProtocol.Source;
8
+ }
9
+ export declare class DebugSource extends DebugSourceData {
10
+ protected readonly session: DebugSession;
11
+ protected readonly editorManager: EditorManager;
12
+ protected readonly labelProvider: LabelProvider;
13
+ constructor(session: DebugSession, editorManager: EditorManager, labelProvider: LabelProvider);
14
+ get uri(): URI;
15
+ update(data: Partial<DebugSourceData>): void;
16
+ open(options?: EditorOpenerOptions): Promise<EditorWidget>;
17
+ load(): Promise<string>;
18
+ get inMemory(): boolean;
19
+ get name(): string;
20
+ get longName(): string;
21
+ static SCHEME: string;
22
+ static SCHEME_PATTERN: RegExp;
23
+ static toUri(raw: DebugProtocol.Source): URI;
24
+ }
25
+ //# sourceMappingURL=debug-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-source.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-source.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,qBAAa,eAAe;IACxB,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC,MAAM,CAAC;CACtC;AAED,qBAAa,WAAY,SAAQ,eAAe;IAGxC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,YAAY;IACxC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;IAC/C,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa;gBAF5B,OAAO,EAAE,YAAY,EACrB,aAAa,EAAE,aAAa,EAC5B,aAAa,EAAE,aAAa;IAKnD,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI;IAI5C,IAAI,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIpD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC;IAU7B,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,IAAI,IAAI,MAAM,CAKjB;IAED,IAAI,QAAQ,IAAI,MAAM,CAKrB;IAED,MAAM,CAAC,MAAM,SAAgB;IAC7B,MAAM,CAAC,cAAc,SAAkB;IACvC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,MAAM,GAAG,GAAG;CAY/C"}
@@ -0,0 +1,81 @@
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.DebugSource = exports.DebugSourceData = void 0;
19
+ const uri_1 = require("@theia/core/lib/common/uri");
20
+ const vscode_uri_1 = require("@theia/core/shared/vscode-uri");
21
+ const debug_uri_utils_1 = require("../../common/debug-uri-utils");
22
+ class DebugSourceData {
23
+ }
24
+ exports.DebugSourceData = DebugSourceData;
25
+ class DebugSource extends DebugSourceData {
26
+ constructor(session, editorManager, labelProvider) {
27
+ super();
28
+ this.session = session;
29
+ this.editorManager = editorManager;
30
+ this.labelProvider = labelProvider;
31
+ }
32
+ get uri() {
33
+ return DebugSource.toUri(this.raw);
34
+ }
35
+ update(data) {
36
+ Object.assign(this, data);
37
+ }
38
+ open(options) {
39
+ return this.editorManager.open(this.uri, options);
40
+ }
41
+ async load() {
42
+ const source = this.raw;
43
+ const sourceReference = source.sourceReference;
44
+ const response = await this.session.sendRequest('source', {
45
+ sourceReference,
46
+ source
47
+ });
48
+ return response.body.content;
49
+ }
50
+ get inMemory() {
51
+ return this.uri.scheme === debug_uri_utils_1.DEBUG_SCHEME;
52
+ }
53
+ get name() {
54
+ if (this.inMemory) {
55
+ return this.raw.name || this.uri.path.base || this.uri.path.fsPath();
56
+ }
57
+ return this.labelProvider.getName(this.uri);
58
+ }
59
+ get longName() {
60
+ if (this.inMemory) {
61
+ return this.name;
62
+ }
63
+ return this.labelProvider.getLongName(this.uri);
64
+ }
65
+ static toUri(raw) {
66
+ if (raw.sourceReference && raw.sourceReference > 0) {
67
+ return new uri_1.default().withScheme(debug_uri_utils_1.DEBUG_SCHEME).withPath(raw.name).withQuery(String(raw.sourceReference));
68
+ }
69
+ if (!raw.path) {
70
+ throw new Error('Unrecognized source type: ' + JSON.stringify(raw));
71
+ }
72
+ if (raw.path.match(debug_uri_utils_1.SCHEME_PATTERN)) {
73
+ return new uri_1.default(raw.path);
74
+ }
75
+ return new uri_1.default(vscode_uri_1.URI.file(raw.path));
76
+ }
77
+ }
78
+ exports.DebugSource = DebugSource;
79
+ DebugSource.SCHEME = debug_uri_utils_1.DEBUG_SCHEME;
80
+ DebugSource.SCHEME_PATTERN = debug_uri_utils_1.SCHEME_PATTERN;
81
+ //# sourceMappingURL=debug-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-source.js","sourceRoot":"","sources":["../../../src/browser/model/debug-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;;;AAIhF,oDAA6C;AAG7C,8DAA2D;AAC3D,kEAA4E;AAE5E,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAY,SAAQ,eAAe;IAE5C,YACuB,OAAqB,EACrB,aAA4B,EAC5B,aAA4B;QAE/C,KAAK,EAAE,CAAC;QAJW,YAAO,GAAP,OAAO,CAAc;QACrB,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAe;IAGnD,CAAC;IAED,IAAI,GAAG;QACH,OA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AClC,IAAI,GAAG,CAAC,eAAe,IAAI,GAAG,CAAC,eAAe,GAAG,CAAC,EAAE,CAAC;YACjD,OAAO,IAAI,aAAG,EAAE,CAAC,UAAU,CAAC,8BAAY,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAK,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;QACzG,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,4BAA4B,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACxE,CAAC;QACD,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,gCAAc,CAAC,EAAE,CAAC;YACjC,OAAO,IAAI,aAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,IAAI,aAAG,CAAC,gBAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IACvC,CAAC;;AA/DL,kCAgEC;AAdU,kBAAM,GAAG,8BAAY,CAAC;AACtB,0BAAc,GAAG,gCAAc,CAAC"}
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ import * as React from '@theia/core/shared/react';
3
+ import { EditorWidget, EditorOpenerOptions } from '@theia/editor/lib/browser';
4
+ import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol';
5
+ import { TreeElement } from '@theia/core/lib/browser/source-tree';
6
+ import { DebugScope } from '../console/debug-console-items';
7
+ import { DebugSource } from './debug-source';
8
+ import { DebugSession } from '../debug-session';
9
+ import { DebugThread } from './debug-thread';
10
+ import * as monaco from '@theia/monaco-editor-core';
11
+ export declare class DebugStackFrameData {
12
+ readonly raw: DebugProtocol.StackFrame;
13
+ }
14
+ export declare class DebugStackFrame extends DebugStackFrameData implements TreeElement {
15
+ readonly thread: DebugThread;
16
+ readonly session: DebugSession;
17
+ readonly id: string;
18
+ constructor(thread: DebugThread, session: DebugSession, id: string);
19
+ /**
20
+ * Returns the frame identifier from the debug protocol.
21
+ */
22
+ get frameId(): number;
23
+ protected _source: DebugSource | undefined;
24
+ get source(): DebugSource | undefined;
25
+ update(data: Partial<DebugStackFrameData>): void;
26
+ restart(): Promise<void>;
27
+ open(options?: EditorOpenerOptions): Promise<EditorWidget | undefined>;
28
+ /**
29
+ * Debugger can send `column: 0` value despite of initializing the debug session with `columnsStartAt1: true`.
30
+ * This method can be used to ensure that neither `column` nor `column` are negative numbers.
31
+ * See https://github.com/microsoft/vscode-mock-debug/issues/85.
32
+ */
33
+ protected clampPositive(value: number): number;
34
+ protected scopes: Promise<DebugScope[]> | undefined;
35
+ getScopes(): Promise<DebugScope[]>;
36
+ protected doGetScopes(): Promise<DebugScope[]>;
37
+ getMostSpecificScopes(range: monaco.IRange): Promise<DebugScope[]>;
38
+ protected toArgs<T extends object>(arg?: T): {
39
+ frameId: number;
40
+ } & T;
41
+ render(): React.ReactNode;
42
+ protected renderFile(): React.ReactNode;
43
+ get range(): monaco.IRange | undefined;
44
+ }
45
+ //# sourceMappingURL=debug-stack-frame.d.ts.map