@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,183 @@
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.DebugEditorService = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const monaco = require("@theia/monaco-editor-core");
22
+ const browser_1 = require("@theia/editor/lib/browser");
23
+ const browser_2 = require("@theia/core/lib/browser");
24
+ const monaco_editor_1 = require("@theia/monaco/lib/browser/monaco-editor");
25
+ const debug_session_manager_1 = require("../debug-session-manager");
26
+ const debug_editor_model_1 = require("./debug-editor-model");
27
+ const breakpoint_manager_1 = require("../breakpoint/breakpoint-manager");
28
+ let DebugEditorService = class DebugEditorService {
29
+ constructor() {
30
+ this.models = new Map();
31
+ }
32
+ init() {
33
+ this.editors.all.forEach(widget => this.push(widget));
34
+ this.editors.onCreated(widget => this.push(widget));
35
+ }
36
+ push(widget) {
37
+ const editor = monaco_editor_1.MonacoEditor.get(widget);
38
+ if (!editor) {
39
+ return;
40
+ }
41
+ const debugModel = this.factory(editor);
42
+ this.models.set(editor, debugModel);
43
+ widget.onDispose(() => {
44
+ debugModel.dispose();
45
+ this.models.delete(editor);
46
+ });
47
+ }
48
+ get model() {
49
+ const { currentEditor } = this.editors;
50
+ return currentEditor && this.models.get(currentEditor.editor);
51
+ }
52
+ get currentUri() {
53
+ const { currentEditor } = this.editors;
54
+ return currentEditor && currentEditor.getResourceUri();
55
+ }
56
+ getLogpoint(position) {
57
+ const logpoint = this.anyBreakpoint(position);
58
+ return logpoint && logpoint.logMessage ? logpoint : undefined;
59
+ }
60
+ getLogpointEnabled(position) {
61
+ const logpoint = this.getLogpoint(position);
62
+ return logpoint && logpoint.enabled;
63
+ }
64
+ getBreakpoint(position) {
65
+ const breakpoint = this.anyBreakpoint(position);
66
+ return breakpoint && breakpoint.logMessage ? undefined : breakpoint;
67
+ }
68
+ getBreakpointEnabled(position) {
69
+ const breakpoint = this.getBreakpoint(position);
70
+ return breakpoint && breakpoint.enabled;
71
+ }
72
+ anyBreakpoint(position) {
73
+ return this.model && this.model.getBreakpoint(position);
74
+ }
75
+ getInlineBreakpoint(position) {
76
+ return this.model && this.model.getInlineBreakpoint(position);
77
+ }
78
+ toggleBreakpoint(position) {
79
+ const { model } = this;
80
+ if (model) {
81
+ model.toggleBreakpoint(position);
82
+ }
83
+ }
84
+ setBreakpointEnabled(position, enabled) {
85
+ const breakpoint = this.anyBreakpoint(position);
86
+ if (breakpoint) {
87
+ breakpoint.setEnabled(enabled);
88
+ }
89
+ }
90
+ addInlineBreakpoint() {
91
+ const { model } = this;
92
+ if (model) {
93
+ model.addInlineBreakpoint();
94
+ }
95
+ }
96
+ showHover() {
97
+ const { model } = this;
98
+ if (model) {
99
+ const selection = model.editor.getControl().getSelection();
100
+ model.hover.show({ selection, focus: true });
101
+ }
102
+ }
103
+ canShowHover() {
104
+ var _a;
105
+ const { model } = this;
106
+ if (model) {
107
+ const selection = model.editor.getControl().getSelection();
108
+ return !!((_a = model.editor.getControl().getModel()) === null || _a === void 0 ? void 0 : _a.getWordAtPosition(selection.getStartPosition()));
109
+ }
110
+ return false;
111
+ }
112
+ addBreakpoint(context, position) {
113
+ const { model } = this;
114
+ if (model) {
115
+ position = position || model.position;
116
+ const breakpoint = model.getBreakpoint(position);
117
+ if (breakpoint) {
118
+ model.breakpointWidget.show({ breakpoint, context });
119
+ }
120
+ else {
121
+ model.breakpointWidget.show({
122
+ position,
123
+ context
124
+ });
125
+ }
126
+ }
127
+ }
128
+ async editBreakpoint(breakpointOrPosition) {
129
+ if (breakpointOrPosition instanceof monaco.Position) {
130
+ breakpointOrPosition = this.anyBreakpoint(breakpointOrPosition);
131
+ }
132
+ if (breakpointOrPosition) {
133
+ const editor = await breakpointOrPosition.open();
134
+ const model = this.models.get(editor.editor);
135
+ if (model) {
136
+ model.breakpointWidget.show(breakpointOrPosition);
137
+ }
138
+ }
139
+ }
140
+ closeBreakpoint() {
141
+ const { model } = this;
142
+ if (model) {
143
+ model.breakpointWidget.hide();
144
+ }
145
+ }
146
+ acceptBreakpoint() {
147
+ const { model } = this;
148
+ if (model) {
149
+ model.acceptBreakpoint();
150
+ }
151
+ }
152
+ };
153
+ exports.DebugEditorService = DebugEditorService;
154
+ tslib_1.__decorate([
155
+ (0, inversify_1.inject)(browser_1.EditorManager),
156
+ tslib_1.__metadata("design:type", browser_1.EditorManager)
157
+ ], DebugEditorService.prototype, "editors", void 0);
158
+ tslib_1.__decorate([
159
+ (0, inversify_1.inject)(breakpoint_manager_1.BreakpointManager),
160
+ tslib_1.__metadata("design:type", breakpoint_manager_1.BreakpointManager)
161
+ ], DebugEditorService.prototype, "breakpoints", void 0);
162
+ tslib_1.__decorate([
163
+ (0, inversify_1.inject)(debug_session_manager_1.DebugSessionManager),
164
+ tslib_1.__metadata("design:type", debug_session_manager_1.DebugSessionManager)
165
+ ], DebugEditorService.prototype, "sessionManager", void 0);
166
+ tslib_1.__decorate([
167
+ (0, inversify_1.inject)(browser_2.ContextMenuRenderer),
168
+ tslib_1.__metadata("design:type", browser_2.ContextMenuRenderer)
169
+ ], DebugEditorService.prototype, "contextMenu", void 0);
170
+ tslib_1.__decorate([
171
+ (0, inversify_1.inject)(debug_editor_model_1.DebugEditorModelFactory),
172
+ tslib_1.__metadata("design:type", Function)
173
+ ], DebugEditorService.prototype, "factory", void 0);
174
+ tslib_1.__decorate([
175
+ (0, inversify_1.postConstruct)(),
176
+ tslib_1.__metadata("design:type", Function),
177
+ tslib_1.__metadata("design:paramtypes", []),
178
+ tslib_1.__metadata("design:returntype", void 0)
179
+ ], DebugEditorService.prototype, "init", null);
180
+ exports.DebugEditorService = DebugEditorService = tslib_1.__decorate([
181
+ (0, inversify_1.injectable)()
182
+ ], DebugEditorService);
183
+ //# sourceMappingURL=debug-editor-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-editor-service.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-editor-service.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,oDAAoD;AACpD,uDAAwE;AACxE,qDAA8D;AAC9D,2EAAuE;AACvE,oEAA+D;AAC/D,6DAAiF;AACjF,yEAAqE;AAM9D,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAAxB;QAiBgB,WAAM,GAAG,IAAI,GAAG,EAAkC,CAAC;IAqI1E,CAAC;IAlIa,IAAI;QACV,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,CAAC;IAES,IAAI,CAAC,MAAoB;QAC/B,MAAM,MAAM,GAAG,4BAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO;QACX,CAAC;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,CAAC,GAAG,CA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CAAC;IACL,CAAC;IACD,eAAe;QACX,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QACvB,IAAI,KAAK,EAAE,CAAC;YACR,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC;QAClC,CAAC;IACL,CAAC;IACD,gBAAgB;QACZ,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QACvB,IAAI,KAAK,EAAE,CAAC;YACR,KAAK,CAAC,gBAAgB,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;CACJ,CAAA;AAtJY,gDAAkB;AAGR;IADlB,IAAA,kBAAM,EAAC,uBAAa,CAAC;sCACM,uBAAa;mDAAC;AAGvB;IADlB,IAAA,kBAAM,EAAC,sCAAiB,CAAC;sCACM,sCAAiB;uDAAC;AAG/B;IADlB,IAAA,kBAAM,EAAC,2CAAmB,CAAC;sCACO,2CAAmB;0DAAC;AAGpC;IADlB,IAAA,kBAAM,EAAC,6BAAmB,CAAC;sCACI,6BAAmB;uDAAC;AAGjC;IADlB,IAAA,kBAAM,EAAC,4CAAuB,CAAC;;mDACoB;AAK1C;IADT,IAAA,yBAAa,GAAE;;;;8CAIf;6BAvBQ,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAsJ9B"}
@@ -0,0 +1,4 @@
1
+ import { MonacoEditor } from '@theia/monaco/lib/browser/monaco-editor';
2
+ export declare const DebugEditor: unique symbol;
3
+ export type DebugEditor = MonacoEditor;
4
+ //# sourceMappingURL=debug-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-editor.d.ts","sourceRoot":"","sources":["../../../src/browser/editor/debug-editor.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,eAAO,MAAM,WAAW,eAAwB,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC"}
@@ -0,0 +1,20 @@
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.DebugEditor = void 0;
19
+ exports.DebugEditor = Symbol('DebugEditor');
20
+ //# sourceMappingURL=debug-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-editor.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-editor.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;;;AAInE,QAAA,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { Root } from '@theia/core/shared/react-dom/client';
2
+ import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
3
+ import { MonacoEditorZoneWidget } from '@theia/monaco/lib/browser/monaco-editor-zone-widget';
4
+ import { DebugEditor } from './debug-editor';
5
+ import { DebugExceptionInfo } from '../model/debug-thread';
6
+ export interface ShowDebugExceptionParams {
7
+ info: DebugExceptionInfo;
8
+ lineNumber: number;
9
+ column: number;
10
+ }
11
+ export declare class DebugExceptionMonacoEditorZoneWidget extends MonacoEditorZoneWidget {
12
+ protected computeContainerHeight(zoneHeight: number): {
13
+ height: number;
14
+ frameWidth: number;
15
+ };
16
+ }
17
+ export declare class DebugExceptionWidget implements Disposable {
18
+ readonly editor: DebugEditor;
19
+ protected zone: MonacoEditorZoneWidget;
20
+ protected containerNodeRoot: Root;
21
+ protected readonly toDispose: DisposableCollection;
22
+ protected init(): void;
23
+ protected doInit(): Promise<void>;
24
+ dispose(): void;
25
+ show({ info, lineNumber, column }: ShowDebugExceptionParams): void;
26
+ hide(): void;
27
+ protected render(info: DebugExceptionInfo, cb: () => void): void;
28
+ protected layout(): void;
29
+ }
30
+ //# sourceMappingURL=debug-exception-widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-exception-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/editor/debug-exception-widget.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAc,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAGvE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI3D,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,kBAAkB,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,qBAAa,oCAAqC,SAAQ,sBAAsB;cAEzD,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG;QAC3D,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAA;KACrB;CASJ;AAED,qBACa,oBAAqB,YAAW,UAAU;IAGnD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAE7B,SAAS,CAAC,IAAI,EAAE,sBAAsB,CAAC;IACvC,SAAS,CAAC,iBAAiB,EAAE,IAAI,CAAC;IAElC,SAAS,CAAC,QAAQ,CAAC,SAAS,uBAA8B;IAG1D,SAAS,CAAC,IAAI,IAAI,IAAI;cAIN,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAQvC,OAAO,IAAI,IAAI;IAIf,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,wBAAwB,GAAG,IAAI;IAgBlE,IAAI,IAAI,IAAI;IAIZ,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAehE,SAAS,CAAC,MAAM,IAAI,IAAI;CAS3B"}
@@ -0,0 +1,107 @@
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.DebugExceptionWidget = exports.DebugExceptionMonacoEditorZoneWidget = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const React = require("@theia/core/shared/react");
21
+ const client_1 = require("@theia/core/shared/react-dom/client");
22
+ const monaco = require("@theia/monaco-editor-core");
23
+ const inversify_1 = require("@theia/core/shared/inversify");
24
+ const disposable_1 = require("@theia/core/lib/common/disposable");
25
+ const monaco_editor_zone_widget_1 = require("@theia/monaco/lib/browser/monaco-editor-zone-widget");
26
+ const debug_editor_1 = require("./debug-editor");
27
+ const nls_1 = require("@theia/core/lib/common/nls");
28
+ const widgets_1 = require("@theia/core/lib/browser/widgets");
29
+ class DebugExceptionMonacoEditorZoneWidget extends monaco_editor_zone_widget_1.MonacoEditorZoneWidget {
30
+ computeContainerHeight(zoneHeight) {
31
+ // reset height to match it to the content
32
+ this.containerNode.style.height = 'initial';
33
+ const height = this.containerNode.offsetHeight;
34
+ const result = super.computeContainerHeight(zoneHeight);
35
+ result.height = height;
36
+ return result;
37
+ }
38
+ }
39
+ exports.DebugExceptionMonacoEditorZoneWidget = DebugExceptionMonacoEditorZoneWidget;
40
+ let DebugExceptionWidget = class DebugExceptionWidget {
41
+ constructor() {
42
+ this.toDispose = new disposable_1.DisposableCollection();
43
+ }
44
+ init() {
45
+ this.doInit();
46
+ }
47
+ async doInit() {
48
+ this.toDispose.push(this.zone = new DebugExceptionMonacoEditorZoneWidget(this.editor.getControl()));
49
+ this.zone.containerNode.classList.add('theia-debug-exception-widget');
50
+ this.containerNodeRoot = (0, client_1.createRoot)(this.zone.containerNode);
51
+ this.toDispose.push(disposable_1.Disposable.create(() => this.containerNodeRoot.unmount()));
52
+ this.toDispose.push(this.editor.getControl().onDidLayoutChange(() => this.layout()));
53
+ }
54
+ dispose() {
55
+ this.toDispose.dispose();
56
+ }
57
+ show({ info, lineNumber, column }) {
58
+ this.render(info, () => {
59
+ const fontInfo = this.editor.getControl().getOption(monaco.editor.EditorOption.fontInfo);
60
+ this.zone.containerNode.style.fontSize = `${fontInfo.fontSize}px`;
61
+ this.zone.containerNode.style.lineHeight = `${fontInfo.lineHeight}px`;
62
+ if (lineNumber !== undefined && column !== undefined) {
63
+ const afterLineNumber = lineNumber;
64
+ const afterColumn = column;
65
+ this.zone.show({ showFrame: true, afterLineNumber, afterColumn, heightInLines: 0, frameWidth: 1 });
66
+ }
67
+ this.layout();
68
+ });
69
+ }
70
+ hide() {
71
+ this.zone.hide();
72
+ }
73
+ render(info, cb) {
74
+ const stackTrace = info.details && info.details.stackTrace;
75
+ const exceptionTitle = info.id ?
76
+ nls_1.nls.localizeByDefault('Exception has occurred: {0}', info.id) :
77
+ nls_1.nls.localizeByDefault('Exception has occurred.');
78
+ this.containerNodeRoot.render(React.createElement(React.Fragment, null,
79
+ React.createElement("div", { className: 'title', ref: cb },
80
+ exceptionTitle,
81
+ React.createElement("span", { id: "exception-close", className: (0, widgets_1.codicon)('close', true), onClick: () => this.hide(), title: nls_1.nls.localizeByDefault('Close') })),
82
+ info.description && React.createElement("div", { className: 'description' }, info.description),
83
+ stackTrace && React.createElement("div", { className: 'stack-trace' }, stackTrace)));
84
+ }
85
+ layout() {
86
+ // reset height to match it to the content
87
+ this.zone.containerNode.style.height = 'initial';
88
+ const lineHeight = this.editor.getControl().getOption(monaco.editor.EditorOption.lineHeight);
89
+ const heightInLines = Math.ceil(this.zone.containerNode.offsetHeight / lineHeight);
90
+ this.zone.layout(heightInLines);
91
+ }
92
+ };
93
+ exports.DebugExceptionWidget = DebugExceptionWidget;
94
+ tslib_1.__decorate([
95
+ (0, inversify_1.inject)(debug_editor_1.DebugEditor),
96
+ tslib_1.__metadata("design:type", Object)
97
+ ], DebugExceptionWidget.prototype, "editor", void 0);
98
+ tslib_1.__decorate([
99
+ (0, inversify_1.postConstruct)(),
100
+ tslib_1.__metadata("design:type", Function),
101
+ tslib_1.__metadata("design:paramtypes", []),
102
+ tslib_1.__metadata("design:returntype", void 0)
103
+ ], DebugExceptionWidget.prototype, "init", null);
104
+ exports.DebugExceptionWidget = DebugExceptionWidget = tslib_1.__decorate([
105
+ (0, inversify_1.injectable)()
106
+ ], DebugExceptionWidget);
107
+ //# sourceMappingURL=debug-exception-widget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-exception-widget.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-exception-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E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Y,oDAAoB;AAGpB;IADR,IAAA,kBAAM,EAAC,0BAAW,CAAC;;oDACS;AAQnB;IADT,IAAA,yBAAa,GAAE;;;;gDAGf;+BAbQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAuEhC"}
@@ -0,0 +1,17 @@
1
+ import * as monaco from '@theia/monaco-editor-core';
2
+ import { DebugEditor } from './debug-editor';
3
+ /**
4
+ * TODO: introduce a new request to LSP to look up an expression range: https://github.com/Microsoft/language-server-protocol/issues/462
5
+ */
6
+ export declare class DebugExpressionProvider {
7
+ getEvaluatableExpression(editor: DebugEditor, selection: monaco.IRange): Promise<{
8
+ matchingExpression: string;
9
+ range: monaco.IRange;
10
+ } | undefined>;
11
+ get(model: monaco.editor.IModel, selection: monaco.IRange): string;
12
+ protected getExactExpressionStartAndEnd(lineContent: string, looseStart: number, looseEnd: number): {
13
+ start: number;
14
+ end: number;
15
+ };
16
+ }
17
+ //# sourceMappingURL=debug-expression-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-expression-provider.d.ts","sourceRoot":"","sources":["../../../src/browser/editor/debug-expression-provider.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,qBACa,uBAAuB;IAE1B,wBAAwB,CAC1B,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,MAAM,CAAC,MAAM,GACzB,OAAO,CAAC;QAAE,kBAAkB,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAoC5E,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM;IAKlE,SAAS,CAAC,6BAA6B,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;CA4CrI"}
@@ -0,0 +1,107 @@
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
+ /*---------------------------------------------------------------------------------------------
18
+ * Copyright (c) Microsoft Corporation and others. All rights reserved.
19
+ * Licensed under the MIT License. See https://github.com/Microsoft/vscode/blob/master/LICENSE.txt for license information.
20
+ *--------------------------------------------------------------------------------------------*/
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.DebugExpressionProvider = void 0;
23
+ const tslib_1 = require("tslib");
24
+ const inversify_1 = require("@theia/core/shared/inversify");
25
+ const core_1 = require("@theia/core");
26
+ const monaco = require("@theia/monaco-editor-core");
27
+ const cancellation_1 = require("@theia/monaco-editor-core/esm/vs/base/common/cancellation");
28
+ const languageFeatures_1 = require("@theia/monaco-editor-core/esm/vs/editor/common/services/languageFeatures");
29
+ const standaloneServices_1 = require("@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices");
30
+ /**
31
+ * TODO: introduce a new request to LSP to look up an expression range: https://github.com/Microsoft/language-server-protocol/issues/462
32
+ */
33
+ let DebugExpressionProvider = class DebugExpressionProvider {
34
+ async getEvaluatableExpression(editor, selection) {
35
+ const pluginExpressionProvider = standaloneServices_1.StandaloneServices.get(languageFeatures_1.ILanguageFeaturesService).evaluatableExpressionProvider;
36
+ const textEditorModel = editor.document.textEditorModel;
37
+ if (pluginExpressionProvider && pluginExpressionProvider.has(textEditorModel)) {
38
+ const registeredProviders = pluginExpressionProvider.ordered(textEditorModel);
39
+ const position = new monaco.Position(selection.startLineNumber, selection.startColumn);
40
+ const promises = registeredProviders.map(support => Promise.resolve(support.provideEvaluatableExpression(textEditorModel, position, cancellation_1.CancellationToken.None)));
41
+ const results = await Promise.all(promises).then(core_1.ArrayUtils.coalesce);
42
+ if (results.length > 0) {
43
+ const range = results[0].range;
44
+ const matchingExpression = results[0].expression || textEditorModel.getValueInRange(range);
45
+ return { matchingExpression, range };
46
+ }
47
+ }
48
+ else { // use fallback if no provider was registered
49
+ const model = editor.getControl().getModel();
50
+ if (model) {
51
+ const lineContent = model.getLineContent(selection.startLineNumber);
52
+ const { start, end } = this.getExactExpressionStartAndEnd(lineContent, selection.startColumn, selection.endColumn);
53
+ const matchingExpression = lineContent.substring(start - 1, end - 1);
54
+ const range = new monaco.Range(selection.startLineNumber, start, selection.startLineNumber, end);
55
+ return { matchingExpression, range };
56
+ }
57
+ }
58
+ }
59
+ get(model, selection) {
60
+ const lineContent = model.getLineContent(selection.startLineNumber);
61
+ const { start, end } = this.getExactExpressionStartAndEnd(lineContent, selection.startColumn, selection.endColumn);
62
+ return lineContent.substring(start - 1, end - 1);
63
+ }
64
+ getExactExpressionStartAndEnd(lineContent, looseStart, looseEnd) {
65
+ let matchingExpression = undefined;
66
+ let startOffset = 1;
67
+ // Some example supported expressions: myVar.prop, a.b.c.d, myVar?.prop, myVar->prop, MyClass::StaticProp, *myVar
68
+ // Match any character except a set of characters which often break interesting sub-expressions
69
+ const expression = /([^()\[\]{}<>\s+\-/%~#^;=|,`!]|\->)+/g;
70
+ // eslint-disable-next-line no-null/no-null
71
+ let result = null;
72
+ // First find the full expression under the cursor
73
+ while (result = expression.exec(lineContent)) {
74
+ const start = result.index + 1;
75
+ const end = start + result[0].length;
76
+ if (start <= looseStart && end >= looseEnd) {
77
+ matchingExpression = result[0];
78
+ startOffset = start;
79
+ break;
80
+ }
81
+ }
82
+ // If there are non-word characters after the cursor, we want to truncate the expression then.
83
+ // For example in expression 'a.b.c.d', if the focus was under 'b', 'a.b' would be evaluated.
84
+ if (matchingExpression) {
85
+ const subExpression = /\w+/g;
86
+ // eslint-disable-next-line no-null/no-null
87
+ let subExpressionResult = null;
88
+ while (subExpressionResult = subExpression.exec(matchingExpression)) {
89
+ const subEnd = subExpressionResult.index + 1 + startOffset + subExpressionResult[0].length;
90
+ if (subEnd >= looseEnd) {
91
+ break;
92
+ }
93
+ }
94
+ if (subExpressionResult) {
95
+ matchingExpression = matchingExpression.substring(0, subExpression.lastIndex);
96
+ }
97
+ }
98
+ return matchingExpression ?
99
+ { start: startOffset, end: startOffset + matchingExpression.length } :
100
+ { start: 1, end: 1 };
101
+ }
102
+ };
103
+ exports.DebugExpressionProvider = DebugExpressionProvider;
104
+ exports.DebugExpressionProvider = DebugExpressionProvider = tslib_1.__decorate([
105
+ (0, inversify_1.injectable)()
106
+ ], DebugExpressionProvider);
107
+ //# sourceMappingURL=debug-expression-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-expression-provider.js","sourceRoot":"","sources":["../../../src/browser/editor/debug-expression-provider.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;AAChF;;;gGAGgG;;;;AAEhG,4DAA0D;AAC1D,sCAAyC;AACzC,oDAAoD;AACpD,4FAA8F;AAC9F,+GAAoH;AACpH,sHAAmH;AAGnH;;GAEG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAEhC,KAAK,CAAC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2
+ import * as React from '@theia/core/shared/react';
3
+ import { TreeSource, TreeElement } from '@theia/core/lib/browser/source-tree';
4
+ import { ExpressionContainer, ExpressionItem, DebugVariable } from '../console/debug-console-items';
5
+ import { DebugSessionManager } from '../debug-session-manager';
6
+ export declare class DebugHoverSource extends TreeSource {
7
+ protected readonly sessions: DebugSessionManager;
8
+ protected _expression: ExpressionItem | DebugVariable | undefined;
9
+ get expression(): ExpressionItem | DebugVariable | undefined;
10
+ protected elements: TreeElement[];
11
+ getElements(): IterableIterator<TreeElement>;
12
+ init(): void;
13
+ protected renderTitle(element: ExpressionItem | DebugVariable): React.ReactNode;
14
+ reset(): void;
15
+ evaluate(expression: string): Promise<ExpressionItem | DebugVariable | undefined>;
16
+ protected doEvaluate(expression: string): Promise<ExpressionItem | DebugVariable | undefined>;
17
+ protected findVariable(namesToFind: string[]): Promise<DebugVariable | undefined>;
18
+ protected doFindVariable(owner: ExpressionContainer, namesToFind: string[]): Promise<DebugVariable | undefined>;
19
+ }
20
+ //# sourceMappingURL=debug-hover-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-hover-source.d.ts","sourceRoot":"","sources":["../../../src/browser/editor/debug-hover-source.tsx"],"names":[],"mappings":";AAgBA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,qBACa,gBAAiB,SAAQ,UAAU;IAG5C,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IAEjD,SAAS,CAAC,WAAW,EAAE,cAAc,GAAG,aAAa,GAAG,SAAS,CAAC;IAClE,IAAI,UAAU,IAAI,cAAc,GAAG,aAAa,GAAG,SAAS,CAE3D;IAED,SAAS,CAAC,QAAQ,EAAE,WAAW,EAAE,CAAM;IACvC,WAAW,IAAI,gBAAgB,CAAC,WAAW,CAAC;IAK5C,IAAI,IAAI,IAAI;IAIZ,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,GAAG,KAAK,CAAC,SAAS;IAI/E,KAAK,IAAI,IAAI;IAMP,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,aAAa,GAAG,SAAS,CAAC;cAQvE,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,aAAa,GAAG,SAAS,CAAC;cAYnF,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;cAkBvE,cAAc,CAAC,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;CAiBxH"}