@opensumi/ide-debug 2.12.1-next-079c1930

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 (438) hide show
  1. package/lib/browser/assets/breakpoint-conditional-disabled.svg +4 -0
  2. package/lib/browser/assets/breakpoint-conditional-unverified.svg +4 -0
  3. package/lib/browser/assets/breakpoint-conditional.svg +4 -0
  4. package/lib/browser/assets/breakpoint-disabled.svg +4 -0
  5. package/lib/browser/assets/breakpoint-hint.svg +4 -0
  6. package/lib/browser/assets/breakpoint-log-disabled.svg +4 -0
  7. package/lib/browser/assets/breakpoint-log-unverified.svg +4 -0
  8. package/lib/browser/assets/breakpoint-log.svg +4 -0
  9. package/lib/browser/assets/breakpoint-unsupported.svg +4 -0
  10. package/lib/browser/assets/breakpoint-unverified.svg +4 -0
  11. package/lib/browser/assets/breakpoint.svg +4 -0
  12. package/lib/browser/assets/breakpoints-activate-inverse.svg +4 -0
  13. package/lib/browser/assets/breakpoints-activate.svg +4 -0
  14. package/lib/browser/assets/configure-inverse.svg +4 -0
  15. package/lib/browser/assets/configure.svg +4 -0
  16. package/lib/browser/assets/continue-inverse.svg +4 -0
  17. package/lib/browser/assets/current-and-breakpoint.svg +4 -0
  18. package/lib/browser/assets/current-arrow.svg +4 -0
  19. package/lib/browser/assets/remove-all-inverse.svg +4 -0
  20. package/lib/browser/assets/remove-all.svg +4 -0
  21. package/lib/browser/assets/repl-inverse.svg +4 -0
  22. package/lib/browser/assets/repl.svg +4 -0
  23. package/lib/browser/assets/restart-inverse.svg +4 -0
  24. package/lib/browser/assets/stackframe-and-breakpoint.svg +4 -0
  25. package/lib/browser/assets/stackframe-arrow.svg +4 -0
  26. package/lib/browser/assets/start-inverse.svg +4 -0
  27. package/lib/browser/breakpoint/breakpoint-decoration.d.ts +12 -0
  28. package/lib/browser/breakpoint/breakpoint-decoration.d.ts.map +1 -0
  29. package/lib/browser/breakpoint/breakpoint-decoration.js +53 -0
  30. package/lib/browser/breakpoint/breakpoint-decoration.js.map +1 -0
  31. package/lib/browser/breakpoint/breakpoint-manager.d.ts +87 -0
  32. package/lib/browser/breakpoint/breakpoint-manager.d.ts.map +1 -0
  33. package/lib/browser/breakpoint/breakpoint-manager.js +287 -0
  34. package/lib/browser/breakpoint/breakpoint-manager.js.map +1 -0
  35. package/lib/browser/breakpoint/breakpoint-marker.d.ts +37 -0
  36. package/lib/browser/breakpoint/breakpoint-marker.d.ts.map +1 -0
  37. package/lib/browser/breakpoint/breakpoint-marker.js +46 -0
  38. package/lib/browser/breakpoint/breakpoint-marker.js.map +1 -0
  39. package/lib/browser/breakpoint/index.d.ts +4 -0
  40. package/lib/browser/breakpoint/index.d.ts.map +1 -0
  41. package/lib/browser/breakpoint/index.js +7 -0
  42. package/lib/browser/breakpoint/index.js.map +1 -0
  43. package/lib/browser/components/debug-action/index.d.ts +11 -0
  44. package/lib/browser/components/debug-action/index.d.ts.map +1 -0
  45. package/lib/browser/components/debug-action/index.js +15 -0
  46. package/lib/browser/components/debug-action/index.js.map +1 -0
  47. package/lib/browser/components/debug-action/index.module.less +73 -0
  48. package/lib/browser/components/floating-click-widget/index.d.ts +3 -0
  49. package/lib/browser/components/floating-click-widget/index.d.ts.map +1 -0
  50. package/lib/browser/components/floating-click-widget/index.js +17 -0
  51. package/lib/browser/components/floating-click-widget/index.js.map +1 -0
  52. package/lib/browser/components/floating-click-widget/index.module.less +5 -0
  53. package/lib/browser/components/index.d.ts +2 -0
  54. package/lib/browser/components/index.d.ts.map +1 -0
  55. package/lib/browser/components/index.js +5 -0
  56. package/lib/browser/components/index.js.map +1 -0
  57. package/lib/browser/contextkeys/debug-call-stack-item-type-key.d.ts +4 -0
  58. package/lib/browser/contextkeys/debug-call-stack-item-type-key.d.ts.map +1 -0
  59. package/lib/browser/contextkeys/debug-call-stack-item-type-key.js +5 -0
  60. package/lib/browser/contextkeys/debug-call-stack-item-type-key.js.map +1 -0
  61. package/lib/browser/contextkeys/debug-contextkey.service.d.ts +16 -0
  62. package/lib/browser/contextkeys/debug-contextkey.service.d.ts.map +1 -0
  63. package/lib/browser/contextkeys/debug-contextkey.service.js +33 -0
  64. package/lib/browser/contextkeys/debug-contextkey.service.js.map +1 -0
  65. package/lib/browser/contextkeys/index.d.ts +2 -0
  66. package/lib/browser/contextkeys/index.d.ts.map +1 -0
  67. package/lib/browser/contextkeys/index.js +5 -0
  68. package/lib/browser/contextkeys/index.js.map +1 -0
  69. package/lib/browser/debug-configuration-manager.d.ts +86 -0
  70. package/lib/browser/debug-configuration-manager.d.ts.map +1 -0
  71. package/lib/browser/debug-configuration-manager.js +456 -0
  72. package/lib/browser/debug-configuration-manager.js.map +1 -0
  73. package/lib/browser/debug-configuration-model.d.ts +24 -0
  74. package/lib/browser/debug-configuration-model.d.ts.map +1 -0
  75. package/lib/browser/debug-configuration-model.js +55 -0
  76. package/lib/browser/debug-configuration-model.js.map +1 -0
  77. package/lib/browser/debug-contribution.d.ts +207 -0
  78. package/lib/browser/debug-contribution.d.ts.map +1 -0
  79. package/lib/browser/debug-contribution.js +764 -0
  80. package/lib/browser/debug-contribution.js.map +1 -0
  81. package/lib/browser/debug-link-detector.d.ts +13 -0
  82. package/lib/browser/debug-link-detector.d.ts.map +1 -0
  83. package/lib/browser/debug-link-detector.js +196 -0
  84. package/lib/browser/debug-link-detector.js.map +1 -0
  85. package/lib/browser/debug-preferences.d.ts +15 -0
  86. package/lib/browser/debug-preferences.d.ts.map +1 -0
  87. package/lib/browser/debug-preferences.js +57 -0
  88. package/lib/browser/debug-preferences.js.map +1 -0
  89. package/lib/browser/debug-progress.service.d.ts +13 -0
  90. package/lib/browser/debug-progress.service.d.ts.map +1 -0
  91. package/lib/browser/debug-progress.service.js +97 -0
  92. package/lib/browser/debug-progress.service.js.map +1 -0
  93. package/lib/browser/debug-schema-updater.d.ts +10 -0
  94. package/lib/browser/debug-schema-updater.d.ts.map +1 -0
  95. package/lib/browser/debug-schema-updater.js +74 -0
  96. package/lib/browser/debug-schema-updater.js.map +1 -0
  97. package/lib/browser/debug-service.d.ts +11 -0
  98. package/lib/browser/debug-service.d.ts.map +1 -0
  99. package/lib/browser/debug-service.js +43 -0
  100. package/lib/browser/debug-service.js.map +1 -0
  101. package/lib/browser/debug-session-connection.d.ts +107 -0
  102. package/lib/browser/debug-session-connection.d.ts.map +1 -0
  103. package/lib/browser/debug-session-connection.js +267 -0
  104. package/lib/browser/debug-session-connection.js.map +1 -0
  105. package/lib/browser/debug-session-contribution.d.ts +61 -0
  106. package/lib/browser/debug-session-contribution.d.ts.map +1 -0
  107. package/lib/browser/debug-session-contribution.js +116 -0
  108. package/lib/browser/debug-session-contribution.js.map +1 -0
  109. package/lib/browser/debug-session-manager.d.ts +130 -0
  110. package/lib/browser/debug-session-manager.d.ts.map +1 -0
  111. package/lib/browser/debug-session-manager.js +488 -0
  112. package/lib/browser/debug-session-manager.js.map +1 -0
  113. package/lib/browser/debug-session.d.ts +181 -0
  114. package/lib/browser/debug-session.d.ts.map +1 -0
  115. package/lib/browser/debug-session.js +898 -0
  116. package/lib/browser/debug-session.js.map +1 -0
  117. package/lib/browser/debug-style.less +125 -0
  118. package/lib/browser/debugUtils.d.ts +18 -0
  119. package/lib/browser/debugUtils.d.ts.map +1 -0
  120. package/lib/browser/debugUtils.js +91 -0
  121. package/lib/browser/debugUtils.js.map +1 -0
  122. package/lib/browser/editor/debug-breakpoint-widget.d.ts +29 -0
  123. package/lib/browser/editor/debug-breakpoint-widget.d.ts.map +1 -0
  124. package/lib/browser/editor/debug-breakpoint-widget.js +82 -0
  125. package/lib/browser/editor/debug-breakpoint-widget.js.map +1 -0
  126. package/lib/browser/editor/debug-breakpoint-zone-widget.d.ts +60 -0
  127. package/lib/browser/editor/debug-breakpoint-zone-widget.d.ts.map +1 -0
  128. package/lib/browser/editor/debug-breakpoint-zone-widget.js +198 -0
  129. package/lib/browser/editor/debug-breakpoint-zone-widget.js.map +1 -0
  130. package/lib/browser/editor/debug-breakpoint.module.less +29 -0
  131. package/lib/browser/editor/debug-editor-contribution.d.ts +27 -0
  132. package/lib/browser/editor/debug-editor-contribution.d.ts.map +1 -0
  133. package/lib/browser/editor/debug-editor-contribution.js +354 -0
  134. package/lib/browser/editor/debug-editor-contribution.js.map +1 -0
  135. package/lib/browser/editor/debug-expression-provider.d.ts +12 -0
  136. package/lib/browser/editor/debug-expression-provider.d.ts.map +1 -0
  137. package/lib/browser/editor/debug-expression-provider.js +88 -0
  138. package/lib/browser/editor/debug-expression-provider.js.map +1 -0
  139. package/lib/browser/editor/debug-hover-model.d.ts +12 -0
  140. package/lib/browser/editor/debug-hover-model.d.ts.map +1 -0
  141. package/lib/browser/editor/debug-hover-model.js +43 -0
  142. package/lib/browser/editor/debug-hover-model.js.map +1 -0
  143. package/lib/browser/editor/debug-hover-source.d.ts +18 -0
  144. package/lib/browser/editor/debug-hover-source.d.ts.map +1 -0
  145. package/lib/browser/editor/debug-hover-source.js +94 -0
  146. package/lib/browser/editor/debug-hover-source.js.map +1 -0
  147. package/lib/browser/editor/debug-hover-tree.model.service.d.ts +62 -0
  148. package/lib/browser/editor/debug-hover-tree.model.service.d.ts.map +1 -0
  149. package/lib/browser/editor/debug-hover-tree.model.service.js +284 -0
  150. package/lib/browser/editor/debug-hover-tree.model.service.js.map +1 -0
  151. package/lib/browser/editor/debug-hover-widget.d.ts +58 -0
  152. package/lib/browser/editor/debug-hover-widget.d.ts.map +1 -0
  153. package/lib/browser/editor/debug-hover-widget.js +152 -0
  154. package/lib/browser/editor/debug-hover-widget.js.map +1 -0
  155. package/lib/browser/editor/debug-hover.module.less +30 -0
  156. package/lib/browser/editor/debug-hover.view.d.ts +3 -0
  157. package/lib/browser/editor/debug-hover.view.d.ts.map +1 -0
  158. package/lib/browser/editor/debug-hover.view.js +86 -0
  159. package/lib/browser/editor/debug-hover.view.js.map +1 -0
  160. package/lib/browser/editor/debug-model-manager.d.ts +41 -0
  161. package/lib/browser/editor/debug-model-manager.d.ts.map +1 -0
  162. package/lib/browser/editor/debug-model-manager.js +191 -0
  163. package/lib/browser/editor/debug-model-manager.js.map +1 -0
  164. package/lib/browser/editor/debug-model.d.ts +181 -0
  165. package/lib/browser/editor/debug-model.d.ts.map +1 -0
  166. package/lib/browser/editor/debug-model.js +673 -0
  167. package/lib/browser/editor/debug-model.js.map +1 -0
  168. package/lib/browser/editor/debug-run-to-cursor.service.d.ts +19 -0
  169. package/lib/browser/editor/debug-run-to-cursor.service.d.ts.map +1 -0
  170. package/lib/browser/editor/debug-run-to-cursor.service.js +145 -0
  171. package/lib/browser/editor/debug-run-to-cursor.service.js.map +1 -0
  172. package/lib/browser/editor/debug-styles.d.ts +13 -0
  173. package/lib/browser/editor/debug-styles.d.ts.map +1 -0
  174. package/lib/browser/editor/debug-styles.js +60 -0
  175. package/lib/browser/editor/debug-styles.js.map +1 -0
  176. package/lib/browser/editor/evaluatable-expression.d.ts +22 -0
  177. package/lib/browser/editor/evaluatable-expression.d.ts.map +1 -0
  178. package/lib/browser/editor/evaluatable-expression.js +24 -0
  179. package/lib/browser/editor/evaluatable-expression.js.map +1 -0
  180. package/lib/browser/editor/index.d.ts +7 -0
  181. package/lib/browser/editor/index.d.ts.map +1 -0
  182. package/lib/browser/editor/index.js +10 -0
  183. package/lib/browser/editor/index.js.map +1 -0
  184. package/lib/browser/editor/inline-values.d.ts +4 -0
  185. package/lib/browser/editor/inline-values.d.ts.map +1 -0
  186. package/lib/browser/editor/inline-values.js +6 -0
  187. package/lib/browser/editor/inline-values.js.map +1 -0
  188. package/lib/browser/index.d.ts +27 -0
  189. package/lib/browser/index.d.ts.map +1 -0
  190. package/lib/browser/index.js +135 -0
  191. package/lib/browser/index.js.map +1 -0
  192. package/lib/browser/markers/index.d.ts +3 -0
  193. package/lib/browser/markers/index.d.ts.map +1 -0
  194. package/lib/browser/markers/index.js +6 -0
  195. package/lib/browser/markers/index.js.map +1 -0
  196. package/lib/browser/markers/marker-manager.d.ts +62 -0
  197. package/lib/browser/markers/marker-manager.d.ts.map +1 -0
  198. package/lib/browser/markers/marker-manager.js +175 -0
  199. package/lib/browser/markers/marker-manager.js.map +1 -0
  200. package/lib/browser/markers/marker.d.ts +13 -0
  201. package/lib/browser/markers/marker.d.ts.map +1 -0
  202. package/lib/browser/markers/marker.js +3 -0
  203. package/lib/browser/markers/marker.js.map +1 -0
  204. package/lib/browser/model/debug-source.d.ts +46 -0
  205. package/lib/browser/model/debug-source.d.ts.map +1 -0
  206. package/lib/browser/model/debug-source.js +113 -0
  207. package/lib/browser/model/debug-source.js.map +1 -0
  208. package/lib/browser/model/debug-stack-frame.d.ts +30 -0
  209. package/lib/browser/model/debug-stack-frame.d.ts.map +1 -0
  210. package/lib/browser/model/debug-stack-frame.js +85 -0
  211. package/lib/browser/model/debug-stack-frame.js.map +1 -0
  212. package/lib/browser/model/debug-thread.d.ts +46 -0
  213. package/lib/browser/model/debug-thread.d.ts.map +1 -0
  214. package/lib/browser/model/debug-thread.js +140 -0
  215. package/lib/browser/model/debug-thread.js.map +1 -0
  216. package/lib/browser/model/debug-watch.d.ts +39 -0
  217. package/lib/browser/model/debug-watch.d.ts.map +1 -0
  218. package/lib/browser/model/debug-watch.js +97 -0
  219. package/lib/browser/model/debug-watch.js.map +1 -0
  220. package/lib/browser/model/index.d.ts +5 -0
  221. package/lib/browser/model/index.d.ts.map +1 -0
  222. package/lib/browser/model/index.js +8 -0
  223. package/lib/browser/model/index.js.map +1 -0
  224. package/lib/browser/preferences/launch-folder-preference-provider.d.ts +6 -0
  225. package/lib/browser/preferences/launch-folder-preference-provider.d.ts.map +1 -0
  226. package/lib/browser/preferences/launch-folder-preference-provider.js +29 -0
  227. package/lib/browser/preferences/launch-folder-preference-provider.js.map +1 -0
  228. package/lib/browser/preferences/launch-preferences-contribution.d.ts +6 -0
  229. package/lib/browser/preferences/launch-preferences-contribution.d.ts.map +1 -0
  230. package/lib/browser/preferences/launch-preferences-contribution.js +17 -0
  231. package/lib/browser/preferences/launch-preferences-contribution.js.map +1 -0
  232. package/lib/browser/preferences/launch-preferences.d.ts +3 -0
  233. package/lib/browser/preferences/launch-preferences.d.ts.map +1 -0
  234. package/lib/browser/preferences/launch-preferences.js +16 -0
  235. package/lib/browser/preferences/launch-preferences.js.map +1 -0
  236. package/lib/browser/tree/debug-console-tree-node.define.d.ts +29 -0
  237. package/lib/browser/tree/debug-console-tree-node.define.d.ts.map +1 -0
  238. package/lib/browser/tree/debug-console-tree-node.define.js +68 -0
  239. package/lib/browser/tree/debug-console-tree-node.define.js.map +1 -0
  240. package/lib/browser/tree/debug-tree-node.define.d.ts +199 -0
  241. package/lib/browser/tree/debug-tree-node.define.d.ts.map +1 -0
  242. package/lib/browser/tree/debug-tree-node.define.js +583 -0
  243. package/lib/browser/tree/debug-tree-node.define.js.map +1 -0
  244. package/lib/browser/tree/index.d.ts +3 -0
  245. package/lib/browser/tree/index.d.ts.map +1 -0
  246. package/lib/browser/tree/index.js +6 -0
  247. package/lib/browser/tree/index.js.map +1 -0
  248. package/lib/browser/view/breakpoints/debug-breakpoints.module.less +71 -0
  249. package/lib/browser/view/breakpoints/debug-breakpoints.service.d.ts +42 -0
  250. package/lib/browser/view/breakpoints/debug-breakpoints.service.d.ts.map +1 -0
  251. package/lib/browser/view/breakpoints/debug-breakpoints.service.js +228 -0
  252. package/lib/browser/view/breakpoints/debug-breakpoints.service.js.map +1 -0
  253. package/lib/browser/view/breakpoints/debug-breakpoints.view.d.ts +19 -0
  254. package/lib/browser/view/breakpoints/debug-breakpoints.view.d.ts.map +1 -0
  255. package/lib/browser/view/breakpoints/debug-breakpoints.view.js +108 -0
  256. package/lib/browser/view/breakpoints/debug-breakpoints.view.js.map +1 -0
  257. package/lib/browser/view/configuration/debug-configuration.module.less +101 -0
  258. package/lib/browser/view/configuration/debug-configuration.service.d.ts +36 -0
  259. package/lib/browser/view/configuration/debug-configuration.service.d.ts.map +1 -0
  260. package/lib/browser/view/configuration/debug-configuration.service.js +186 -0
  261. package/lib/browser/view/configuration/debug-configuration.service.js.map +1 -0
  262. package/lib/browser/view/configuration/debug-configuration.view.d.ts +3 -0
  263. package/lib/browser/view/configuration/debug-configuration.view.d.ts.map +1 -0
  264. package/lib/browser/view/configuration/debug-configuration.view.js +106 -0
  265. package/lib/browser/view/configuration/debug-configuration.view.js.map +1 -0
  266. package/lib/browser/view/configuration/debug-toolbar.service.d.ts +30 -0
  267. package/lib/browser/view/configuration/debug-toolbar.service.d.ts.map +1 -0
  268. package/lib/browser/view/configuration/debug-toolbar.service.js +173 -0
  269. package/lib/browser/view/configuration/debug-toolbar.service.js.map +1 -0
  270. package/lib/browser/view/configuration/debug-toolbar.view.d.ts +7 -0
  271. package/lib/browser/view/configuration/debug-toolbar.view.d.ts.map +1 -0
  272. package/lib/browser/view/configuration/debug-toolbar.view.js +171 -0
  273. package/lib/browser/view/configuration/debug-toolbar.view.js.map +1 -0
  274. package/lib/browser/view/console/debug-console-filter.model.d.ts +8 -0
  275. package/lib/browser/view/console/debug-console-filter.model.d.ts.map +1 -0
  276. package/lib/browser/view/console/debug-console-filter.model.js +53 -0
  277. package/lib/browser/view/console/debug-console-filter.model.js.map +1 -0
  278. package/lib/browser/view/console/debug-console-filter.service.d.ts +23 -0
  279. package/lib/browser/view/console/debug-console-filter.service.d.ts.map +1 -0
  280. package/lib/browser/view/console/debug-console-filter.service.js +66 -0
  281. package/lib/browser/view/console/debug-console-filter.service.js.map +1 -0
  282. package/lib/browser/view/console/debug-console-filter.view.d.ts +6 -0
  283. package/lib/browser/view/console/debug-console-filter.view.d.ts.map +1 -0
  284. package/lib/browser/view/console/debug-console-filter.view.js +63 -0
  285. package/lib/browser/view/console/debug-console-filter.view.js.map +1 -0
  286. package/lib/browser/view/console/debug-console-model.d.ts +18 -0
  287. package/lib/browser/view/console/debug-console-model.d.ts.map +1 -0
  288. package/lib/browser/view/console/debug-console-model.js +52 -0
  289. package/lib/browser/view/console/debug-console-model.js.map +1 -0
  290. package/lib/browser/view/console/debug-console-session.d.ts +32 -0
  291. package/lib/browser/view/console/debug-console-session.d.ts.map +1 -0
  292. package/lib/browser/view/console/debug-console-session.js +113 -0
  293. package/lib/browser/view/console/debug-console-session.js.map +1 -0
  294. package/lib/browser/view/console/debug-console-toolbar.view.d.ts +3 -0
  295. package/lib/browser/view/console/debug-console-toolbar.view.d.ts.map +1 -0
  296. package/lib/browser/view/console/debug-console-toolbar.view.js +20 -0
  297. package/lib/browser/view/console/debug-console-toolbar.view.js.map +1 -0
  298. package/lib/browser/view/console/debug-console-tree.model.service.d.ts +90 -0
  299. package/lib/browser/view/console/debug-console-tree.model.service.d.ts.map +1 -0
  300. package/lib/browser/view/console/debug-console-tree.model.service.js +460 -0
  301. package/lib/browser/view/console/debug-console-tree.model.service.js.map +1 -0
  302. package/lib/browser/view/console/debug-console.contribution.d.ts +20 -0
  303. package/lib/browser/view/console/debug-console.contribution.d.ts.map +1 -0
  304. package/lib/browser/view/console/debug-console.contribution.js +164 -0
  305. package/lib/browser/view/console/debug-console.contribution.js.map +1 -0
  306. package/lib/browser/view/console/debug-console.module.less +321 -0
  307. package/lib/browser/view/console/debug-console.service.d.ts +67 -0
  308. package/lib/browser/view/console/debug-console.service.d.ts.map +1 -0
  309. package/lib/browser/view/console/debug-console.service.js +397 -0
  310. package/lib/browser/view/console/debug-console.service.js.map +1 -0
  311. package/lib/browser/view/console/debug-console.view.d.ts +25 -0
  312. package/lib/browser/view/console/debug-console.view.d.ts.map +1 -0
  313. package/lib/browser/view/console/debug-console.view.js +299 -0
  314. package/lib/browser/view/console/debug-console.view.js.map +1 -0
  315. package/lib/browser/view/debug-view-model.d.ts +54 -0
  316. package/lib/browser/view/debug-view-model.d.ts.map +1 -0
  317. package/lib/browser/view/debug-view-model.js +161 -0
  318. package/lib/browser/view/debug-view-model.js.map +1 -0
  319. package/lib/browser/view/frames/debug-call-stack-frame.view.d.ts +14 -0
  320. package/lib/browser/view/frames/debug-call-stack-frame.view.d.ts.map +1 -0
  321. package/lib/browser/view/frames/debug-call-stack-frame.view.js +143 -0
  322. package/lib/browser/view/frames/debug-call-stack-frame.view.js.map +1 -0
  323. package/lib/browser/view/frames/debug-call-stack-session.view.d.ts +10 -0
  324. package/lib/browser/view/frames/debug-call-stack-session.view.d.ts.map +1 -0
  325. package/lib/browser/view/frames/debug-call-stack-session.view.js +148 -0
  326. package/lib/browser/view/frames/debug-call-stack-session.view.js.map +1 -0
  327. package/lib/browser/view/frames/debug-call-stack-thread.view.d.ts +12 -0
  328. package/lib/browser/view/frames/debug-call-stack-thread.view.d.ts.map +1 -0
  329. package/lib/browser/view/frames/debug-call-stack-thread.view.js +52 -0
  330. package/lib/browser/view/frames/debug-call-stack-thread.view.js.map +1 -0
  331. package/lib/browser/view/frames/debug-call-stack.contribution.d.ts +10 -0
  332. package/lib/browser/view/frames/debug-call-stack.contribution.d.ts.map +1 -0
  333. package/lib/browser/view/frames/debug-call-stack.contribution.js +81 -0
  334. package/lib/browser/view/frames/debug-call-stack.contribution.js.map +1 -0
  335. package/lib/browser/view/frames/debug-call-stack.module.less +195 -0
  336. package/lib/browser/view/frames/debug-call-stack.operation.d.ts +9 -0
  337. package/lib/browser/view/frames/debug-call-stack.operation.d.ts.map +1 -0
  338. package/lib/browser/view/frames/debug-call-stack.operation.js +43 -0
  339. package/lib/browser/view/frames/debug-call-stack.operation.js.map +1 -0
  340. package/lib/browser/view/frames/debug-call-stack.service.d.ts +12 -0
  341. package/lib/browser/view/frames/debug-call-stack.service.d.ts.map +1 -0
  342. package/lib/browser/view/frames/debug-call-stack.service.js +94 -0
  343. package/lib/browser/view/frames/debug-call-stack.service.js.map +1 -0
  344. package/lib/browser/view/frames/debug-call-stack.view.d.ts +6 -0
  345. package/lib/browser/view/frames/debug-call-stack.view.d.ts.map +1 -0
  346. package/lib/browser/view/frames/debug-call-stack.view.js +32 -0
  347. package/lib/browser/view/frames/debug-call-stack.view.js.map +1 -0
  348. package/lib/browser/view/variables/debug-variables-model.d.ts +12 -0
  349. package/lib/browser/view/variables/debug-variables-model.d.ts.map +1 -0
  350. package/lib/browser/view/variables/debug-variables-model.js +43 -0
  351. package/lib/browser/view/variables/debug-variables-model.js.map +1 -0
  352. package/lib/browser/view/variables/debug-variables-tree.model.service.d.ts +65 -0
  353. package/lib/browser/view/variables/debug-variables-tree.model.service.d.ts.map +1 -0
  354. package/lib/browser/view/variables/debug-variables-tree.model.service.js +376 -0
  355. package/lib/browser/view/variables/debug-variables-tree.model.service.js.map +1 -0
  356. package/lib/browser/view/variables/debug-variables.contribution.d.ts +14 -0
  357. package/lib/browser/view/variables/debug-variables.contribution.d.ts.map +1 -0
  358. package/lib/browser/view/variables/debug-variables.contribution.js +155 -0
  359. package/lib/browser/view/variables/debug-variables.contribution.js.map +1 -0
  360. package/lib/browser/view/variables/debug-variables.module.less +176 -0
  361. package/lib/browser/view/variables/debug-variables.view.d.ts +21 -0
  362. package/lib/browser/view/variables/debug-variables.view.d.ts.map +1 -0
  363. package/lib/browser/view/variables/debug-variables.view.js +151 -0
  364. package/lib/browser/view/variables/debug-variables.view.js.map +1 -0
  365. package/lib/browser/view/watch/debug-watch-model.d.ts +12 -0
  366. package/lib/browser/view/watch/debug-watch-model.d.ts.map +1 -0
  367. package/lib/browser/view/watch/debug-watch-model.js +43 -0
  368. package/lib/browser/view/watch/debug-watch-model.js.map +1 -0
  369. package/lib/browser/view/watch/debug-watch-tree.model.service.d.ts +91 -0
  370. package/lib/browser/view/watch/debug-watch-tree.model.service.d.ts.map +1 -0
  371. package/lib/browser/view/watch/debug-watch-tree.model.service.js +480 -0
  372. package/lib/browser/view/watch/debug-watch-tree.model.service.js.map +1 -0
  373. package/lib/browser/view/watch/debug-watch.contribution.d.ts +12 -0
  374. package/lib/browser/view/watch/debug-watch.contribution.d.ts.map +1 -0
  375. package/lib/browser/view/watch/debug-watch.contribution.js +143 -0
  376. package/lib/browser/view/watch/debug-watch.contribution.js.map +1 -0
  377. package/lib/browser/view/watch/debug-watch.module.less +214 -0
  378. package/lib/browser/view/watch/debug-watch.view.d.ts +21 -0
  379. package/lib/browser/view/watch/debug-watch.view.d.ts.map +1 -0
  380. package/lib/browser/view/watch/debug-watch.view.js +194 -0
  381. package/lib/browser/view/watch/debug-watch.view.js.map +1 -0
  382. package/lib/common/constants.d.ts +57 -0
  383. package/lib/common/constants.d.ts.map +1 -0
  384. package/lib/common/constants.js +61 -0
  385. package/lib/common/constants.js.map +1 -0
  386. package/lib/common/debug-configuration.d.ts +56 -0
  387. package/lib/common/debug-configuration.d.ts.map +1 -0
  388. package/lib/common/debug-configuration.js +15 -0
  389. package/lib/common/debug-configuration.js.map +1 -0
  390. package/lib/common/debug-editor.d.ts +4 -0
  391. package/lib/common/debug-editor.d.ts.map +1 -0
  392. package/lib/common/debug-editor.js +5 -0
  393. package/lib/common/debug-editor.js.map +1 -0
  394. package/lib/common/debug-model.d.ts +104 -0
  395. package/lib/common/debug-model.d.ts.map +1 -0
  396. package/lib/common/debug-model.js +10 -0
  397. package/lib/common/debug-model.js.map +1 -0
  398. package/lib/common/debug-progress.d.ts +7 -0
  399. package/lib/common/debug-progress.d.ts.map +1 -0
  400. package/lib/common/debug-progress.js +5 -0
  401. package/lib/common/debug-progress.js.map +1 -0
  402. package/lib/common/debug-schema-updater.d.ts +2 -0
  403. package/lib/common/debug-schema-updater.d.ts.map +1 -0
  404. package/lib/common/debug-schema-updater.js +5 -0
  405. package/lib/common/debug-schema-updater.js.map +1 -0
  406. package/lib/common/debug-service.d.ts +76 -0
  407. package/lib/common/debug-service.d.ts.map +1 -0
  408. package/lib/common/debug-service.js +16 -0
  409. package/lib/common/debug-service.js.map +1 -0
  410. package/lib/common/debug-session-options.d.ts +14 -0
  411. package/lib/common/debug-session-options.d.ts.map +1 -0
  412. package/lib/common/debug-session-options.js +11 -0
  413. package/lib/common/debug-session-options.js.map +1 -0
  414. package/lib/common/debug-session.d.ts +81 -0
  415. package/lib/common/debug-session.d.ts.map +1 -0
  416. package/lib/common/debug-session.js +19 -0
  417. package/lib/common/debug-session.js.map +1 -0
  418. package/lib/common/evaluatable-expression.d.ts +38 -0
  419. package/lib/common/evaluatable-expression.d.ts.map +1 -0
  420. package/lib/common/evaluatable-expression.js +3 -0
  421. package/lib/common/evaluatable-expression.js.map +1 -0
  422. package/lib/common/index.d.ts +12 -0
  423. package/lib/common/index.d.ts.map +1 -0
  424. package/lib/common/index.js +15 -0
  425. package/lib/common/index.js.map +1 -0
  426. package/lib/common/inline-values.d.ts +65 -0
  427. package/lib/common/inline-values.d.ts.map +1 -0
  428. package/lib/common/inline-values.js +4 -0
  429. package/lib/common/inline-values.js.map +1 -0
  430. package/lib/common/types.d.ts +80 -0
  431. package/lib/common/types.d.ts.map +1 -0
  432. package/lib/common/types.js +51 -0
  433. package/lib/common/types.js.map +1 -0
  434. package/lib/index.d.ts +2 -0
  435. package/lib/index.d.ts.map +1 -0
  436. package/lib/index.js +5 -0
  437. package/lib/index.js.map +1 -0
  438. package/package.json +48 -0
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DebugThread = exports.DebugThreadData = void 0;
4
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
5
+ const debug_stack_frame_1 = require("./debug-stack-frame");
6
+ const common_1 = require("../../common");
7
+ class DebugThreadData {
8
+ }
9
+ exports.DebugThreadData = DebugThreadData;
10
+ class DebugThread extends DebugThreadData {
11
+ constructor(session) {
12
+ super();
13
+ this.session = session;
14
+ this._onDidChanged = new ide_core_browser_1.Emitter();
15
+ this.onDidChanged = this._onDidChanged.event;
16
+ this._frames = new Map();
17
+ this.pendingFetch = Promise.resolve([]);
18
+ }
19
+ get id() {
20
+ return this.session.id + ':' + this.raw.id;
21
+ }
22
+ get currentFrame() {
23
+ return this._currentFrame;
24
+ }
25
+ set currentFrame(frame) {
26
+ this._currentFrame = frame;
27
+ this._onDidChanged.fire();
28
+ }
29
+ get stopped() {
30
+ return !!this.stoppedDetails;
31
+ }
32
+ update(data) {
33
+ Object.assign(this, data);
34
+ if ('stoppedDetails' in data) {
35
+ this.clearFrames();
36
+ }
37
+ }
38
+ clear() {
39
+ this.update({
40
+ raw: this.raw,
41
+ stoppedDetails: undefined,
42
+ });
43
+ }
44
+ continue() {
45
+ return this.session.sendRequest('continue', this.toArgs());
46
+ }
47
+ stepOver() {
48
+ return this.session.sendRequest('next', this.toArgs());
49
+ }
50
+ stepIn() {
51
+ return this.session.sendRequest('stepIn', this.toArgs());
52
+ }
53
+ stepOut() {
54
+ return this.session.sendRequest('stepOut', this.toArgs());
55
+ }
56
+ pause() {
57
+ return this.session.sendRequest('pause', this.toArgs());
58
+ }
59
+ terminate() {
60
+ return this.session.sendRequest('terminateThreads', { threadIds: [this.raw.id] });
61
+ }
62
+ get frames() {
63
+ return Array.from(this._frames.values());
64
+ }
65
+ get topFrame() {
66
+ return this.frames[0];
67
+ }
68
+ get frameCount() {
69
+ return this._frames.size;
70
+ }
71
+ async rawFetchFrames(levels = 20) {
72
+ return this.pendingFetch = this.pendingFetch.then(async () => {
73
+ try {
74
+ const start = this.frameCount;
75
+ const frames = await this.doFetchFrames(start, levels);
76
+ const newframes = this.doUpdateFrames(frames);
77
+ return newframes;
78
+ }
79
+ catch (e) {
80
+ return [];
81
+ }
82
+ });
83
+ }
84
+ async fetchFrames(levels = 20) {
85
+ const frames = await this.rawFetchFrames(levels);
86
+ this.updateCurrentFrame();
87
+ return frames;
88
+ }
89
+ async doFetchFrames(startFrame, levels) {
90
+ try {
91
+ const response = await this.session.sendRequest('stackTrace', this.toArgs({ startFrame, levels }));
92
+ if (this.stoppedDetails) {
93
+ this.stoppedDetails.totalFrames = response.body.totalFrames;
94
+ }
95
+ return response.body.stackFrames;
96
+ }
97
+ catch (e) {
98
+ if (this.stoppedDetails) {
99
+ this.stoppedDetails.framesErrorMessage = e.message;
100
+ }
101
+ return [];
102
+ }
103
+ }
104
+ doUpdateFrames(frames) {
105
+ const frontEndTime = this.session.reportTime(common_1.DEBUG_REPORT_NAME.DEBUG_UI_FRONTEND_TIME, {
106
+ sessionId: this.session.id,
107
+ threadId: this.raw.id,
108
+ threadAmount: this.session.threadCount,
109
+ });
110
+ const result = new Map(this._frames);
111
+ for (const raw of frames) {
112
+ const id = raw.id;
113
+ const frame = this._frames.get(id) || new debug_stack_frame_1.DebugStackFrame(this, this.session);
114
+ this._frames.set(id, frame);
115
+ frame.update({ raw });
116
+ result.set(id, frame);
117
+ }
118
+ const values = [...result.values()];
119
+ frontEndTime('doUpdateFrames');
120
+ return values;
121
+ }
122
+ clearFrames() {
123
+ this._frames.clear();
124
+ this.updateCurrentFrame();
125
+ }
126
+ updateCurrentFrame() {
127
+ const { currentFrame } = this;
128
+ const frameId = currentFrame && currentFrame.raw.id;
129
+ this.currentFrame = typeof frameId === 'number' &&
130
+ this._frames.get(frameId) ||
131
+ this._frames.values().next().value;
132
+ }
133
+ toArgs(arg) {
134
+ return Object.assign({}, arg, {
135
+ threadId: this.raw.id,
136
+ });
137
+ }
138
+ }
139
+ exports.DebugThread = DebugThread;
140
+ //# sourceMappingURL=debug-thread.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-thread.js","sourceRoot":"","sources":["../../../src/browser/model/debug-thread.ts"],"names":[],"mappings":";;;AACA,iEAA4D;AAE5D,2DAAsD;AACtD,yCAAiD;AAOjD,MAAa,eAAe;CAG3B;AAHD,0CAGC;AAED,MAAa,WAAY,SAAQ,eAAe;IAI9C,YACW,OAAqB;QAE9B,KAAK,EAAE,CAAC;QAFC,YAAO,GAAP,OAAO,CAAc;QAJb,kBAAa,GAAG,IAAI,0BAAO,EAAQ,CAAC;QAC9C,iBAAY,GAAgB,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;QA+D3C,YAAO,GAAG,IAAI,GAAG,EAA2B,CAAC;QAWtD,iBAAY,GAAG,OAAO,CAAC,OAAO,CAAoB,EAAE,CAAC,CAAC;IApEhE,CAAC;IAED,IAAI,EAAE;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,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,MAAM,EAAE,CAAC,CAAC;QACpC,YAAY,CAAC,gBAAgB,CAAC,CAAC;QAC/B,OAAO,MAAM,CAAC;IAEhB,CAAC;IACS,WAAW;QACnB,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IACS,kBAAkB;QAC1B,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;QAC9B,MAAM,OAAO,GAAG,YAAY,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;QACpD,IAAI,CAAC,YAAY,GAAG,OAAO,OAAO,KAAK,QAAQ;YAC7C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;YACzB,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;IACvC,CAAC;IAES,MAAM,CAAmB,GAAO;QACxC,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE;YAC5B,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE;SACtB,CAAC,CAAC;IACL,CAAC;CACF;AApJD,kCAoJC"}
@@ -0,0 +1,39 @@
1
+ import { DebugSessionManager } from '../debug-session-manager';
2
+ import { DisposableCollection, Event, IReporterService } from '@opensumi/ide-core-browser';
3
+ import { DebugWatchRoot } from '../tree/debug-tree-node.define';
4
+ export declare const IDebugWatchData: unique symbol;
5
+ export interface IDebugWatchData {
6
+ getRoot: () => Promise<DebugWatchRoot | void>;
7
+ updateWatchExpressions: (data: string[]) => Promise<void>;
8
+ addWatchExpression: (value: string) => void;
9
+ clear: () => Promise<void>;
10
+ onDidChange: Event<void>;
11
+ onDidVariableChange: Event<void>;
12
+ onDidExpressionChange: Event<string[]>;
13
+ }
14
+ export declare class DebugWatch implements IDebugWatchData {
15
+ private readonly manager;
16
+ private readonly reporterService;
17
+ protected readonly toDispose: DisposableCollection;
18
+ protected fireDidChange: () => void;
19
+ protected fireVariableChange: () => void;
20
+ protected fireExpressionChange: (expressions: string[]) => void;
21
+ private _expressions;
22
+ private _root;
23
+ whenReady: Promise<any>;
24
+ private onDidChangeEmitter;
25
+ private onDidVariableChangeEmitter;
26
+ private onDidExExpressionChangeEmitter;
27
+ constructor(manager: DebugSessionManager, reporterService: IReporterService);
28
+ get onDidChange(): Event<void>;
29
+ get onDidVariableChange(): Event<void>;
30
+ get onDidExpressionChange(): Event<string[]>;
31
+ getRoot(): Promise<DebugWatchRoot>;
32
+ init(): Promise<void>;
33
+ clear(): Promise<void>;
34
+ updateWatchExpressions(data: string[]): Promise<void>;
35
+ addWatchExpression(value: string): void;
36
+ renameWatchExpression(value: string, newValue: string): void;
37
+ removeWatchExpression(value: string): void;
38
+ }
39
+ //# sourceMappingURL=debug-watch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-watch.d.ts","sourceRoot":"","sources":["../../../src/browser/model/debug-watch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAW,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEpG,OAAO,EAAE,cAAc,EAAkB,MAAM,gCAAgC,CAAC;AAGhF,eAAO,MAAM,eAAe,eAA4B,CAAC;AACzD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC9C,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACjC,qBAAqB,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;CACxC;AAED,qBAAa,UAAW,YAAW,eAAe;IAiB9C,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAjBlC,SAAS,CAAC,QAAQ,CAAC,SAAS,uBAA8B;IAE1D,SAAS,CAAC,aAAa,EAAE,MAAM,IAAI,CAAsD;IACzF,SAAS,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAA8D;IACtG,SAAS,CAAC,oBAAoB,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAkG;IAEjK,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,KAAK,CAAiB;IAE9B,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAExB,OAAO,CAAC,kBAAkB,CAAgC;IAC1D,OAAO,CAAC,0BAA0B,CAAgC;IAClE,OAAO,CAAC,8BAA8B,CAAoC;gBAGvD,OAAO,EAAE,mBAAmB,EAC5B,eAAe,EAAE,gBAAgB;IAKpD,IAAI,WAAW,IAAI,KAAK,CAAC,IAAI,CAAC,CAE7B;IAED,IAAI,mBAAmB,IAAI,KAAK,CAAC,IAAI,CAAC,CAErC;IAED,IAAI,qBAAqB,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC,CAE3C;IAEK,OAAO;IAcP,IAAI;IAoBJ,KAAK;IAML,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE;IAI3C,kBAAkB,CAAC,KAAK,EAAE,MAAM;IAShC,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQrD,qBAAqB,CAAC,KAAK,EAAE,MAAM;CAOpC"}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DebugWatch = exports.IDebugWatchData = void 0;
4
+ const common_1 = require("../../common");
5
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
6
+ const throttle = require("lodash.throttle");
7
+ const debug_tree_node_define_1 = require("../tree/debug-tree-node.define");
8
+ const debug_contribution_1 = require("../debug-contribution");
9
+ exports.IDebugWatchData = Symbol('IDebugWatchData');
10
+ class DebugWatch {
11
+ constructor(manager, reporterService) {
12
+ this.manager = manager;
13
+ this.reporterService = reporterService;
14
+ this.toDispose = new ide_core_browser_1.DisposableCollection();
15
+ this.fireDidChange = throttle(() => this.onDidChangeEmitter.fire(), 50);
16
+ this.fireVariableChange = throttle(() => this.onDidVariableChangeEmitter.fire(), 50);
17
+ this.fireExpressionChange = throttle((expressions) => this.onDidExExpressionChangeEmitter.fire(expressions), 50);
18
+ this._expressions = [];
19
+ this.onDidChangeEmitter = new ide_core_browser_1.Emitter();
20
+ this.onDidVariableChangeEmitter = new ide_core_browser_1.Emitter();
21
+ this.onDidExExpressionChangeEmitter = new ide_core_browser_1.Emitter();
22
+ this.whenReady = this.init();
23
+ }
24
+ get onDidChange() {
25
+ return this.onDidChangeEmitter.event;
26
+ }
27
+ get onDidVariableChange() {
28
+ return this.onDidVariableChangeEmitter.event;
29
+ }
30
+ get onDidExpressionChange() {
31
+ return this.onDidExExpressionChangeEmitter.event;
32
+ }
33
+ async getRoot() {
34
+ const presets = [];
35
+ const root = new debug_tree_node_define_1.DebugWatchRoot(this.manager.currentSession);
36
+ for (const expression of this._expressions) {
37
+ const node = new debug_tree_node_define_1.DebugWatchNode(this.manager.currentSession, expression, root);
38
+ // 执行运算以获取节点信息
39
+ await node.evaluate();
40
+ presets.push(node);
41
+ }
42
+ root.updatePresetChildren(presets);
43
+ this._root = root;
44
+ return this._root;
45
+ }
46
+ async init() {
47
+ this.toDispose.push(this.manager.onDidStopDebugSession(() => {
48
+ this.fireDidChange();
49
+ }));
50
+ this.toDispose.push(this.manager.onDidDestroyDebugSession(() => {
51
+ this.fireDidChange();
52
+ }));
53
+ this.toDispose.push(this.manager.onDidChangeActiveDebugSession(() => {
54
+ const session = this.manager.currentSession;
55
+ if (session) {
56
+ session.onVariableChange(() => {
57
+ this.fireVariableChange();
58
+ });
59
+ session.onDidChangeCallStack(() => {
60
+ this.fireVariableChange();
61
+ });
62
+ }
63
+ }));
64
+ }
65
+ async clear() {
66
+ this.updateWatchExpressions([]);
67
+ this.fireExpressionChange([]);
68
+ this.fireDidChange();
69
+ }
70
+ async updateWatchExpressions(data) {
71
+ this._expressions = data;
72
+ }
73
+ addWatchExpression(value) {
74
+ this.reporterService.point(common_1.DEBUG_REPORT_NAME === null || common_1.DEBUG_REPORT_NAME === void 0 ? void 0 : common_1.DEBUG_REPORT_NAME.DEBUG_WATCH, debug_contribution_1.DEBUG_COMMANDS.ADD_WATCHER.id, { value });
75
+ const index = this._expressions.indexOf(value);
76
+ if (index === -1) {
77
+ this._expressions.push(value);
78
+ this.fireExpressionChange(this._expressions);
79
+ }
80
+ }
81
+ renameWatchExpression(value, newValue) {
82
+ const index = this._expressions.indexOf(value);
83
+ if (index >= 0) {
84
+ this._expressions.splice(index, 1, newValue);
85
+ }
86
+ this.fireExpressionChange(this._expressions);
87
+ }
88
+ removeWatchExpression(value) {
89
+ const index = this._expressions.indexOf(value);
90
+ if (index >= 0) {
91
+ this._expressions.splice(index, 1);
92
+ }
93
+ this.fireExpressionChange(this._expressions);
94
+ }
95
+ }
96
+ exports.DebugWatch = DebugWatch;
97
+ //# sourceMappingURL=debug-watch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-watch.js","sourceRoot":"","sources":["../../../src/browser/model/debug-watch.ts"],"names":[],"mappings":";;;AAAA,yCAAiD;AAEjD,iEAAoG;AACpG,4CAA6C;AAC7C,2EAAgF;AAChF,8DAAuD;AAE1C,QAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAWzD,MAAa,UAAU;IAgBrB,YACmB,OAA4B,EAC5B,eAAiC;QADjC,YAAO,GAAP,OAAO,CAAqB;QAC5B,oBAAe,GAAf,eAAe,CAAkB;QAjBjC,cAAS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ch';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ (0, tslib_1.__exportStar)(require("./debug-source"), exports);
5
+ (0, tslib_1.__exportStar)(require("./debug-stack-frame"), exports);
6
+ (0, tslib_1.__exportStar)(require("./debug-thread"), exports);
7
+ (0, tslib_1.__exportStar)(require("./debug-watch"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/model/index.ts"],"names":[],"mappings":";;;AAAA,8DAA+B;AAC/B,mEAAoC;AACpC,8DAA+B;AAC/B,6DAA8B"}
@@ -0,0 +1,6 @@
1
+ import { FolderPreferenceProvider } from '@opensumi/ide-preferences/lib/browser/folder-preference-provider';
2
+ export declare class LaunchFolderPreferenceProvider extends FolderPreferenceProvider {
3
+ protected parse(content: string): any;
4
+ protected getPath(preferenceName: string): string[] | undefined;
5
+ }
6
+ //# sourceMappingURL=launch-folder-preference-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-folder-preference-provider.d.ts","sourceRoot":"","sources":["../../../src/browser/preferences/launch-folder-preference-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAE5G,qBACa,8BAA+B,SAAQ,wBAAwB;IAE1E,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG;IAQrC,SAAS,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;CAUhE"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LaunchFolderPreferenceProvider = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const di_1 = require("@opensumi/di");
6
+ const folder_preference_provider_1 = require("@opensumi/ide-preferences/lib/browser/folder-preference-provider");
7
+ let LaunchFolderPreferenceProvider = class LaunchFolderPreferenceProvider extends folder_preference_provider_1.FolderPreferenceProvider {
8
+ parse(content) {
9
+ const launch = super.parse(content);
10
+ if (launch === undefined) {
11
+ return undefined;
12
+ }
13
+ return { launch: Object.assign({}, launch) };
14
+ }
15
+ getPath(preferenceName) {
16
+ if (preferenceName === 'launch') {
17
+ return [];
18
+ }
19
+ if (preferenceName.startsWith('launch.')) {
20
+ return [preferenceName.substr('launch.'.length)];
21
+ }
22
+ return undefined;
23
+ }
24
+ };
25
+ LaunchFolderPreferenceProvider = (0, tslib_1.__decorate)([
26
+ (0, di_1.Injectable)()
27
+ ], LaunchFolderPreferenceProvider);
28
+ exports.LaunchFolderPreferenceProvider = LaunchFolderPreferenceProvider;
29
+ //# sourceMappingURL=launch-folder-preference-provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-folder-preference-provider.js","sourceRoot":"","sources":["../../../src/browser/preferences/launch-folder-preference-provider.ts"],"names":[],"mappings":";;;;AAAA,qCAA0C;AAC1C,iHAA4G;AAG5G,IAAa,8BAA8B,GAA3C,MAAa,8BAA+B,SAAQ,qDAAwB;IAEhE,KAAK,CAAC,OAAe;QAC7B,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,MAAM,KAAK,SAAS,EAAE;YACxB,OAAO,SAAS,CAAC;SAClB;QACD,OAAO,EAAE,MAAM,oBAAO,MAAM,CAAE,EAAE,CAAC;IACnC,CAAC;IAES,OAAO,CAAC,cAAsB;QACtC,IAAI,cAAc,KAAK,QAAQ,EAAE;YAC/B,OAAO,EAAE,CAAC;SACX;QACD,IAAI,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YACxC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;SAClD;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CAEF,CAAA;AApBY,8BAA8B;IAD1C,IAAA,eAAU,GAAE;GACA,8BAA8B,CAoB1C;AApBY,wEAA8B"}
@@ -0,0 +1,6 @@
1
+ import { PreferenceContribution, PreferenceSchema, PreferenceConfiguration } from '@opensumi/ide-core-browser';
2
+ export declare class LaunchPreferencesContribution implements PreferenceContribution, PreferenceConfiguration {
3
+ schema: PreferenceSchema;
4
+ name: string;
5
+ }
6
+ //# sourceMappingURL=launch-preferences-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-preferences-contribution.d.ts","sourceRoot":"","sources":["../../../src/browser/preferences/launch-preferences-contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAU,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAGvH,qBACa,6BAA8B,YAAW,sBAAsB,EAAE,uBAAuB;IACnG,MAAM,EAAE,gBAAgB,CAA2B;IACnD,IAAI,SAAY;CACjB"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LaunchPreferencesContribution = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
6
+ const launch_preferences_1 = require("./launch-preferences");
7
+ let LaunchPreferencesContribution = class LaunchPreferencesContribution {
8
+ constructor() {
9
+ this.schema = launch_preferences_1.launchPreferencesSchema;
10
+ this.name = 'launch';
11
+ }
12
+ };
13
+ LaunchPreferencesContribution = (0, tslib_1.__decorate)([
14
+ (0, ide_core_browser_1.Domain)(ide_core_browser_1.PreferenceContribution, ide_core_browser_1.PreferenceConfiguration)
15
+ ], LaunchPreferencesContribution);
16
+ exports.LaunchPreferencesContribution = LaunchPreferencesContribution;
17
+ //# sourceMappingURL=launch-preferences-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-preferences-contribution.js","sourceRoot":"","sources":["../../../src/browser/preferences/launch-preferences-contribution.ts"],"names":[],"mappings":";;;;AAAA,iEAAuH;AACvH,6DAA+D;AAG/D,IAAa,6BAA6B,GAA1C,MAAa,6BAA6B;IAA1C;QACE,WAAM,GAAqB,4CAAuB,CAAC;QACnD,SAAI,GAAG,QAAQ,CAAC;IAClB,CAAC;CAAA,CAAA;AAHY,6BAA6B;IADzC,IAAA,yBAAM,EAAC,yCAAsB,EAAE,0CAAuB,CAAC;GAC3C,6BAA6B,CAGzC;AAHY,sEAA6B"}
@@ -0,0 +1,3 @@
1
+ import { PreferenceSchema } from '@opensumi/ide-core-browser';
2
+ export declare const launchPreferencesSchema: PreferenceSchema;
3
+ //# sourceMappingURL=launch-preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-preferences.d.ts","sourceRoot":"","sources":["../../../src/browser/preferences/launch-preferences.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D,eAAO,MAAM,uBAAuB,EAAE,gBAUrC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.launchPreferencesSchema = void 0;
4
+ const common_1 = require("../../common");
5
+ exports.launchPreferencesSchema = {
6
+ type: 'object',
7
+ scope: 'resource',
8
+ properties: {
9
+ 'launch': {
10
+ $ref: common_1.launchSchemaUri,
11
+ description: "Global debug launch configuration. Should be used as an alternative to 'launch.json' that is shared across workspaces",
12
+ defaultValue: { configurations: [], compounds: [] },
13
+ },
14
+ },
15
+ };
16
+ //# sourceMappingURL=launch-preferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch-preferences.js","sourceRoot":"","sources":["../../../src/browser/preferences/launch-preferences.ts"],"names":[],"mappings":";;;AACA,yCAA+C;AAElC,QAAA,uBAAuB,GAAqB;IACvD,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,UAAU;IACjB,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,wBAAe;YACrB,WAAW,EAAE,uHAAuH;YACpI,YAAY,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;SACpD;KACF;CACF,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { DebugProtocol } from '@opensumi/vscode-debugprotocol/lib/debugProtocol';
2
+ import { MessageType } from '@opensumi/ide-core-browser';
3
+ import { TreeNode, CompositeTreeNode } from '@opensumi/ide-components';
4
+ import React from 'react';
5
+ import { LinkDetector } from '../debug-link-detector';
6
+ export declare class TreeWithLinkWrapper extends React.Component<{
7
+ html: HTMLElement;
8
+ className?: string;
9
+ }> {
10
+ componentDidMount(): void;
11
+ render(): JSX.Element;
12
+ }
13
+ export declare class AnsiConsoleNode extends TreeNode {
14
+ readonly description: string;
15
+ private readonly _compositeTreeNode;
16
+ readonly linkDetector: LinkDetector;
17
+ readonly severity?: MessageType | undefined;
18
+ readonly source?: DebugProtocol.Source | undefined;
19
+ readonly line?: string | number | undefined;
20
+ get parent(): CompositeTreeNode;
21
+ static is(node?: TreeNode): node is AnsiConsoleNode;
22
+ private linkDetectorHTML;
23
+ constructor(description: string, _compositeTreeNode: CompositeTreeNode, linkDetector: LinkDetector, severity?: MessageType | undefined, source?: DebugProtocol.Source | undefined, line?: string | number | undefined);
24
+ get name(): string;
25
+ getColor(severity?: MessageType): string;
26
+ get el(): HTMLElement;
27
+ get template(): any;
28
+ }
29
+ //# sourceMappingURL=debug-console-tree-node.define.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-console-tree-node.define.d.ts","sourceRoot":"","sources":["../../../src/browser/tree/debug-console-tree-node.define.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAS,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,qBAAa,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;IACjG,iBAAiB;IAKjB,MAAM;CAGP;AAED,qBAAa,eAAgB,SAAQ,QAAQ;aAWzB,WAAW,EAAE,MAAM;IAEnC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;aACnB,YAAY,EAAE,YAAY;aAC1B,QAAQ,CAAC;aACT,MAAM,CAAC;aACP,IAAI,CAAC;IAhBvB,IAAW,MAAM,IAAI,iBAAiB,CAErC;IACD,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,IAAI,eAAe;IAInD,OAAO,CAAC,gBAAgB,CAAc;gBAGpB,WAAW,EAAE,MAAM,EAElB,kBAAkB,EAAE,iBAAiB,EACtC,YAAY,EAAE,YAAY,EAC1B,QAAQ,CAAC,yBAAa,EACtB,MAAM,CAAC,kCAAsB,EAC7B,IAAI,CAAC,6BAAiB;IAMxC,IAAI,IAAI,WAEP;IAED,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,GAAG,MAAM;IAgBxC,IAAI,EAAE,IAAI,WAAW,CAEpB;IAED,IAAI,QAAQ,IAAI,GAAG,CAIlB;CACF"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnsiConsoleNode = exports.TreeWithLinkWrapper = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
6
+ const ide_components_1 = require("@opensumi/ide-components");
7
+ const debug_console_module_less_1 = (0, tslib_1.__importDefault)(require("../view/console/debug-console.module.less"));
8
+ const react_1 = (0, tslib_1.__importDefault)(require("react"));
9
+ const react_dom_1 = (0, tslib_1.__importDefault)(require("react-dom"));
10
+ const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
11
+ class TreeWithLinkWrapper extends react_1.default.Component {
12
+ componentDidMount() {
13
+ const container = react_dom_1.default.findDOMNode(this);
14
+ container.appendChild(this.props.html);
15
+ }
16
+ render() {
17
+ return react_1.default.createElement("code", { className: this.props.className });
18
+ }
19
+ }
20
+ exports.TreeWithLinkWrapper = TreeWithLinkWrapper;
21
+ class AnsiConsoleNode extends ide_components_1.TreeNode {
22
+ constructor(description,
23
+ // 该节点默认只存在于根节点下
24
+ _compositeTreeNode, linkDetector, severity, source, line) {
25
+ super({}, _compositeTreeNode);
26
+ this.description = description;
27
+ this._compositeTreeNode = _compositeTreeNode;
28
+ this.linkDetector = linkDetector;
29
+ this.severity = severity;
30
+ this.source = source;
31
+ this.line = line;
32
+ this.linkDetectorHTML = this.linkDetector.linkify(this.description);
33
+ }
34
+ get parent() {
35
+ return this._compositeTreeNode;
36
+ }
37
+ static is(node) {
38
+ return !!node && !!node.template;
39
+ }
40
+ get name() {
41
+ return `log_${this.id}`;
42
+ }
43
+ getColor(severity) {
44
+ if (typeof severity === 'undefined') {
45
+ return (0, classnames_1.default)(debug_console_module_less_1.default.variable_repl_text, debug_console_module_less_1.default.info);
46
+ }
47
+ switch (severity) {
48
+ case ide_core_browser_1.MessageType.Error:
49
+ return (0, classnames_1.default)(debug_console_module_less_1.default.variable_repl_text, debug_console_module_less_1.default.error);
50
+ case ide_core_browser_1.MessageType.Warning:
51
+ return (0, classnames_1.default)(debug_console_module_less_1.default.variable_repl_text, debug_console_module_less_1.default.warn);
52
+ case ide_core_browser_1.MessageType.Info:
53
+ return (0, classnames_1.default)(debug_console_module_less_1.default.variable_repl_text, debug_console_module_less_1.default.info);
54
+ default:
55
+ return (0, classnames_1.default)(debug_console_module_less_1.default.variable_repl_text, debug_console_module_less_1.default.info);
56
+ }
57
+ }
58
+ get el() {
59
+ return this.linkDetectorHTML;
60
+ }
61
+ get template() {
62
+ return () => {
63
+ return react_1.default.createElement(TreeWithLinkWrapper, { className: this.getColor(this.severity), html: this.linkDetectorHTML });
64
+ };
65
+ }
66
+ }
67
+ exports.AnsiConsoleNode = AnsiConsoleNode;
68
+ //# sourceMappingURL=debug-console-tree-node.define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-console-tree-node.define.js","sourceRoot":"","sources":["../../../src/browser/tree/debug-console-tree-node.define.tsx"],"names":[],"mappings":";;;;AACA,iEAAyD;AACzD,6DAA8E;AAC9E,uHAA2E;AAC3E,+DAA0B;AAC1B,uEAAiC;AACjC,yEAA6B;AAG7B,MAAa,mBAAoB,SAAQ,eAAK,CAAC,SAAoD;IACjG,iBAAiB;QACf,MAAM,SAAS,GAAG,mBAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC7C,SAAU,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM;QACJ,OAAO,wCAAM,SAAS,EAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAU,CAAC;IAC1D,CAAC;CACF;AATD,kDASC;AAED,MAAa,eAAgB,SAAQ,yBAAQ;IAU3C,YACkB,WAAmB;IACnC,gBAAgB;IACC,kBAAqC,EACtC,YAA0B,EAC1B,QAAsB,EACtB,MAA6B,EAC7B,IAAsB;QAEtC,KAAK,CAAC,EAAW,EAAE,kBAAkB,CAAC,CAAC;QARvB,gBAAW,GAAX,WAAW,CAAQ;QAElB,uBAAkB,GAAlB,kBAAkB,CAAmB;QACtC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,aAAQ,GAAR,QAAQ,CAAc;QACtB,WAAM,GAAN,MAAM,CAAuB;QAC7B,SAAI,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