@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,460 @@
1
+ "use strict";
2
+ var DebugConsoleModelService_1;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DebugConsoleModelService = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const di_1 = require("@opensumi/di");
7
+ const ide_components_1 = require("@opensumi/ide-components");
8
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
9
+ const next_1 = require("@opensumi/ide-core-browser/lib/menu/next");
10
+ const debug_console_model_1 = require("./debug-console-model");
11
+ const path_1 = require("@opensumi/ide-core-common/lib/path");
12
+ const debug_tree_node_define_1 = require("../../tree/debug-tree-node.define");
13
+ const debug_view_model_1 = require("../debug-view-model");
14
+ const debug_console_session_1 = require("./debug-console-session");
15
+ const p_series_1 = (0, tslib_1.__importDefault)(require("p-series"));
16
+ const debug_console_module_less_1 = (0, tslib_1.__importDefault)(require("./debug-console.module.less"));
17
+ const common_1 = require("../../../common");
18
+ const tree_1 = require("../../tree");
19
+ const debug_link_detector_1 = require("../../debug-link-detector");
20
+ let DebugConsoleModelService = DebugConsoleModelService_1 = class DebugConsoleModelService {
21
+ constructor() {
22
+ this.debugSessionModelMap = new Map();
23
+ this._changeEventDispatchQueue = [];
24
+ // 装饰器
25
+ this.selectedDecoration = new ide_components_1.Decoration(debug_console_module_less_1.default.mod_selected); // 选中态
26
+ this.contextMenuDecoration = new ide_components_1.Decoration(debug_console_module_less_1.default.mod_actived); // 右键菜单激活态
27
+ this.loadingDecoration = new ide_components_1.Decoration(debug_console_module_less_1.default.mod_loading); // 加载态
28
+ // 选中态的节点
29
+ this._selectedNodes = [];
30
+ this.onDidRefreshedEmitter = new ide_core_browser_1.Emitter();
31
+ this.onDidUpdateTreeModelEmitter = new ide_core_browser_1.Emitter();
32
+ this.treeModelDisposableCollection = new ide_core_browser_1.DisposableCollection();
33
+ this.debugConsoleDisposableCollection = new ide_core_browser_1.DisposableCollection();
34
+ this.clear = () => {
35
+ // 重新初始化Console中渲染的TreeModel
36
+ this.initTreeModel(this.manager.currentSession, true);
37
+ };
38
+ this.collapseAll = () => {
39
+ var _a;
40
+ (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.root.collapsedAll();
41
+ };
42
+ this.copyAll = () => {
43
+ var _a;
44
+ let text = '';
45
+ if (!((_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.root) || !this.treeModel.root.children) {
46
+ return;
47
+ }
48
+ for (const child of this.treeModel.root.children) {
49
+ text += this.getValidText(child) + '\n';
50
+ }
51
+ this.clipboardService.writeText(text.slice(0, -('\n'.length)));
52
+ };
53
+ this.copy = (node) => {
54
+ if (!!node) {
55
+ this.clipboardService.writeText(this.getValidText(node));
56
+ }
57
+ };
58
+ // 清空其他选中/焦点态节点,更新当前焦点节点
59
+ this.activeNodeDecoration = (target, dispatchChange = true) => {
60
+ var _a;
61
+ if (this.contextMenuNode) {
62
+ this.contextMenuDecoration.removeTarget(this.contextMenuNode);
63
+ this._contextMenuNode = undefined;
64
+ }
65
+ if (target) {
66
+ if (this.selectedNodes.length > 0) {
67
+ // 因为选择装饰器可能通过其他方式添加而不能及时在selectedNodes上更新
68
+ // 故这里遍历所有选中装饰器的节点进行一次统一清理
69
+ for (const target of this.selectedDecoration.appliedTargets.keys()) {
70
+ this.selectedDecoration.removeTarget(target);
71
+ }
72
+ }
73
+ if (this.focusedNode) {
74
+ }
75
+ this.selectedDecoration.addTarget(target);
76
+ this._focusedNode = target;
77
+ this._selectedNodes = [target];
78
+ if (dispatchChange) {
79
+ // 通知视图更新
80
+ (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.dispatchChange();
81
+ }
82
+ }
83
+ };
84
+ // 右键菜单焦点态切换
85
+ this.activeNodeActivedDecoration = (target) => {
86
+ var _a;
87
+ if (this.contextMenuNode) {
88
+ this.contextMenuDecoration.removeTarget(this.contextMenuNode);
89
+ }
90
+ if (this.focusedNode) {
91
+ this._focusedNode = undefined;
92
+ }
93
+ this.contextMenuDecoration.addTarget(target);
94
+ this._contextMenuNode = target;
95
+ (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.dispatchChange();
96
+ };
97
+ // 取消选中节点焦点
98
+ this.enactiveNodeDecoration = () => {
99
+ var _a;
100
+ if (this.focusedNode) {
101
+ this._focusedNode = undefined;
102
+ }
103
+ if (this.contextMenuNode) {
104
+ this.contextMenuDecoration.removeTarget(this.contextMenuNode);
105
+ }
106
+ (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.dispatchChange();
107
+ };
108
+ this.handleContextMenu = (ev, expression) => {
109
+ var _a;
110
+ ev.stopPropagation();
111
+ ev.preventDefault();
112
+ const { x, y } = ev.nativeEvent;
113
+ if (expression) {
114
+ this.activeNodeActivedDecoration(expression);
115
+ }
116
+ else {
117
+ this.enactiveNodeDecoration();
118
+ }
119
+ let node;
120
+ if (!expression) {
121
+ // 空白区域右键菜单
122
+ node = (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.root;
123
+ }
124
+ else {
125
+ node = expression;
126
+ }
127
+ const menus = this.contextMenuService.createMenu({ id: next_1.MenuId.DebugConsoleContext, contextKeyService: this.contextMenuContextKeyService });
128
+ const menuNodes = menus.getMergedMenuNodes();
129
+ menus.dispose();
130
+ this.ctxMenuRenderer.show({
131
+ anchor: { x, y },
132
+ menuNodes,
133
+ args: [node],
134
+ });
135
+ };
136
+ this.handleTreeBlur = () => {
137
+ // 清空焦点状态
138
+ this.enactiveNodeDecoration();
139
+ };
140
+ this.handleItemClick = (item) => {
141
+ // 单选操作默认先更新选中状态
142
+ this.activeNodeDecoration(item);
143
+ };
144
+ this.handleTwistierClick = (item, type) => {
145
+ if (type === ide_components_1.TreeNodeType.CompositeTreeNode) {
146
+ if (debug_tree_node_define_1.DebugConsoleNode.is(item) && item.available) {
147
+ this.activeNodeDecoration(item, false);
148
+ this.toggleDirectory(item);
149
+ return;
150
+ }
151
+ else {
152
+ if (item.variablesReference) {
153
+ this.activeNodeDecoration(item, false);
154
+ this.toggleDirectory(item);
155
+ return;
156
+ }
157
+ }
158
+ }
159
+ this.activeNodeDecoration(item);
160
+ };
161
+ this.toggleDirectory = async (item) => {
162
+ if (item.expanded) {
163
+ this.treeHandle.collapseNode(item);
164
+ }
165
+ else {
166
+ this.treeHandle.expandNode(item);
167
+ }
168
+ };
169
+ this.flushEventQueue = () => {
170
+ let promise;
171
+ if (!this._changeEventDispatchQueue || this._changeEventDispatchQueue.length === 0) {
172
+ return;
173
+ }
174
+ this._changeEventDispatchQueue.sort((pathA, pathB) => {
175
+ const pathADepth = path_1.Path.pathDepth(pathA);
176
+ const pathBDepth = path_1.Path.pathDepth(pathB);
177
+ return pathADepth - pathBDepth;
178
+ });
179
+ const roots = [this._changeEventDispatchQueue[0]];
180
+ for (const path of this._changeEventDispatchQueue) {
181
+ if (roots.some((root) => path.indexOf(root) === 0)) {
182
+ continue;
183
+ }
184
+ else {
185
+ roots.push(path);
186
+ }
187
+ }
188
+ promise = (0, p_series_1.default)(roots.map((path) => async () => {
189
+ var _a, _b;
190
+ const node = (_b = (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.root) === null || _b === void 0 ? void 0 : _b.getTreeNodeByPath(path);
191
+ if (node && ide_components_1.CompositeTreeNode.is(node)) {
192
+ await node.refresh();
193
+ }
194
+ return null;
195
+ }));
196
+ // 重置更新队列
197
+ this._changeEventDispatchQueue = [];
198
+ return promise;
199
+ };
200
+ this.init();
201
+ }
202
+ get flushEventQueuePromise() {
203
+ return this.flushEventQueueDeferred && this.flushEventQueueDeferred.promise;
204
+ }
205
+ get contextMenuContextKeyService() {
206
+ if (!this._contextMenuContextKeyService) {
207
+ this._contextMenuContextKeyService = this.contextKeyService.createScoped();
208
+ }
209
+ return this._contextMenuContextKeyService;
210
+ }
211
+ get treeHandle() {
212
+ return this._debugWatchTreeHandle;
213
+ }
214
+ get decorations() {
215
+ return this._decorations;
216
+ }
217
+ get treeModel() {
218
+ var _a;
219
+ return (_a = this._activeDebugSessionModel) === null || _a === void 0 ? void 0 : _a.treeModel;
220
+ }
221
+ get debugConsoleSession() {
222
+ var _a;
223
+ return (_a = this._activeDebugSessionModel) === null || _a === void 0 ? void 0 : _a.debugConsoleSession;
224
+ }
225
+ // 既是选中态,也是焦点态节点
226
+ get focusedNode() {
227
+ return this._focusedNode;
228
+ }
229
+ // 是选中态,非焦点态节点
230
+ get selectedNodes() {
231
+ return this._selectedNodes;
232
+ }
233
+ // 右键菜单激活态的节点
234
+ get contextMenuNode() {
235
+ return this._contextMenuNode;
236
+ }
237
+ get onDidUpdateTreeModel() {
238
+ return this.onDidUpdateTreeModelEmitter.event;
239
+ }
240
+ get onDidRefreshed() {
241
+ return this.onDidRefreshedEmitter.event;
242
+ }
243
+ getValidText(node) {
244
+ return node.description;
245
+ }
246
+ getConsoleModel(id) {
247
+ return this.debugSessionModelMap.get(id);
248
+ }
249
+ dispose() {
250
+ this.disposeTreeModel();
251
+ this.disposeDebugConsole();
252
+ }
253
+ disposeTreeModel() {
254
+ if (!this.treeModelDisposableCollection.disposed) {
255
+ this.treeModelDisposableCollection.dispose();
256
+ }
257
+ }
258
+ disposeDebugConsole() {
259
+ if (!this.debugConsoleDisposableCollection.disposed) {
260
+ this.debugConsoleDisposableCollection.dispose();
261
+ }
262
+ }
263
+ async init() {
264
+ this.debugConsoleDisposableCollection.push(this.manager.onDidDestroyDebugSession((session) => {
265
+ this.debugSessionModelMap.delete(session.id);
266
+ if (this.debugSessionModelMap.size > 0) {
267
+ this.initTreeModel(this.manager.currentSession);
268
+ }
269
+ }));
270
+ this.debugConsoleDisposableCollection.push(this.manager.onDidChangeActiveDebugSession((state) => {
271
+ if (state.current) {
272
+ this.initTreeModel(state.current);
273
+ }
274
+ }));
275
+ }
276
+ listenTreeViewChange() {
277
+ var _a, _b;
278
+ this.disposeTreeModel();
279
+ this.treeModelDisposableCollection.push((_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.root.watcher.on(ide_components_1.TreeNodeEvent.WillResolveChildren, (target) => {
280
+ this.loadingDecoration.addTarget(target);
281
+ }));
282
+ this.treeModelDisposableCollection.push((_b = this.treeModel) === null || _b === void 0 ? void 0 : _b.root.watcher.on(ide_components_1.TreeNodeEvent.DidResolveChildren, (target) => {
283
+ this.loadingDecoration.removeTarget(target);
284
+ }));
285
+ this.treeModelDisposableCollection.push(this.treeModel.onWillUpdate(() => {
286
+ var _a;
287
+ // 更新树前更新下选中节点
288
+ if (this.selectedNodes.length !== 0) {
289
+ // 仅处理一下单选情况
290
+ const node = (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.root.getTreeNodeByPath(this.selectedNodes[0].path);
291
+ this.selectedDecoration.addTarget(node);
292
+ }
293
+ }));
294
+ }
295
+ async initTreeModel(session, force) {
296
+ if (!session) {
297
+ this._activeDebugSessionModel = undefined;
298
+ this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel);
299
+ return;
300
+ }
301
+ // 根据 IDebugSessionReplMode 判断子 session 是否要共享父 session 的 repl
302
+ const sessionId = session.hasSeparateRepl() ? session.id : session.parentSession.id;
303
+ if (this.debugSessionModelMap.has(sessionId) && !force) {
304
+ const model = this.debugSessionModelMap.get(sessionId);
305
+ this._activeDebugSessionModel = model;
306
+ }
307
+ else {
308
+ // 根据是否为多工作区创建不同根节点
309
+ const root = new debug_tree_node_define_1.DebugConsoleRoot({});
310
+ if (!root) {
311
+ return;
312
+ }
313
+ const treeModel = this.injector.get(debug_console_model_1.DebugConsoleTreeModel, [root]);
314
+ const debugConsoleSession = this.injector.get(debug_console_session_1.DebugConsoleSession, [session, treeModel]);
315
+ this._activeDebugSessionModel = {
316
+ treeModel,
317
+ debugConsoleSession,
318
+ };
319
+ debugConsoleSession.onDidChange(async () => {
320
+ if (!treeModel) {
321
+ return;
322
+ }
323
+ const branchSize = treeModel.root.branchSize;
324
+ const children = debugConsoleSession.resolveChildren();
325
+ treeModel.root.updatePresetChildren(children);
326
+ if (branchSize === children.length) {
327
+ return;
328
+ }
329
+ else {
330
+ this.refresh();
331
+ }
332
+ if (treeModel.isScrollBottom) {
333
+ await this.treeHandle.ensureVisible(children[children.length - 1]);
334
+ }
335
+ treeModel === null || treeModel === void 0 ? void 0 : treeModel.dispatchChange();
336
+ });
337
+ this.debugSessionModelMap.set(sessionId, this._activeDebugSessionModel);
338
+ this.initDecorations(root);
339
+ this.listenTreeViewChange();
340
+ }
341
+ this.onDidUpdateTreeModelEmitter.fire(this._activeDebugSessionModel);
342
+ return this._activeDebugSessionModel;
343
+ }
344
+ initDecorations(root) {
345
+ this._decorations = new ide_components_1.DecorationsManager(root);
346
+ this._decorations.addDecoration(this.selectedDecoration);
347
+ this._decorations.addDecoration(this.contextMenuDecoration);
348
+ this._decorations.addDecoration(this.loadingDecoration);
349
+ }
350
+ removeNodeDecoration() {
351
+ if (!this.decorations) {
352
+ return;
353
+ }
354
+ this.decorations.removeDecoration(this.selectedDecoration);
355
+ this.decorations.removeDecoration(this.contextMenuDecoration);
356
+ this.decorations.removeDecoration(this.loadingDecoration);
357
+ }
358
+ handleTreeHandler(handle) {
359
+ this._debugWatchTreeHandle = handle;
360
+ }
361
+ dispatchWatchEvent(root, path, event) {
362
+ const watcher = root.watchEvents.get(path);
363
+ if (watcher && watcher.callback) {
364
+ watcher.callback(event);
365
+ }
366
+ }
367
+ collapsedAll() {
368
+ var _a;
369
+ (_a = this.treeModel) === null || _a === void 0 ? void 0 : _a.root.collapsedAll();
370
+ }
371
+ /**
372
+ * 刷新指定下的所有子节点
373
+ */
374
+ async refresh(node) {
375
+ if (!node) {
376
+ if (!!this.treeModel) {
377
+ node = this.treeModel.root;
378
+ }
379
+ else {
380
+ return;
381
+ }
382
+ }
383
+ if (!debug_tree_node_define_1.ExpressionContainer.is(node) && node.parent) {
384
+ node = node.parent;
385
+ }
386
+ // 这里也可以直接调用node.refresh,但由于文件树刷新事件可能会较多
387
+ // 队列化刷新动作减少更新成本
388
+ this.queueChangeEvent(node.path, () => {
389
+ this.onDidRefreshedEmitter.fire();
390
+ });
391
+ }
392
+ // 队列化Changed事件
393
+ queueChangeEvent(path, callback) {
394
+ if (!this.flushEventQueueDeferred) {
395
+ this.flushEventQueueDeferred = new ide_core_browser_1.Deferred();
396
+ clearTimeout(this._eventFlushTimeout);
397
+ this._eventFlushTimeout = setTimeout(async () => {
398
+ var _a;
399
+ await this.flushEventQueue();
400
+ (_a = this.flushEventQueueDeferred) === null || _a === void 0 ? void 0 : _a.resolve();
401
+ this.flushEventQueueDeferred = null;
402
+ callback();
403
+ }, DebugConsoleModelService_1.DEFAULT_REFRESH_DELAY);
404
+ }
405
+ if (this._changeEventDispatchQueue.indexOf(path) === -1) {
406
+ this._changeEventDispatchQueue.push(path);
407
+ }
408
+ }
409
+ async execute(value) {
410
+ if (!this.treeModel) {
411
+ return;
412
+ }
413
+ const parent = this.treeModel.root;
414
+ const textNode = new tree_1.AnsiConsoleNode(value, parent, this.linkDetector);
415
+ this.dispatchWatchEvent(parent, parent.path, { type: ide_components_1.WatchEvent.Added, node: textNode, id: parent.id });
416
+ const expressionNode = new debug_tree_node_define_1.DebugConsoleNode(this.manager.currentSession, value, parent);
417
+ await expressionNode.evaluate();
418
+ this.dispatchWatchEvent(parent, parent.path, { type: ide_components_1.WatchEvent.Added, node: expressionNode, id: parent.id });
419
+ this.treeHandle.ensureVisible(expressionNode, 'end', true);
420
+ }
421
+ };
422
+ DebugConsoleModelService.DEFAULT_REFRESH_DELAY = 200;
423
+ (0, tslib_1.__decorate)([
424
+ (0, di_1.Autowired)(di_1.INJECTOR_TOKEN),
425
+ (0, tslib_1.__metadata)("design:type", di_1.Injector)
426
+ ], DebugConsoleModelService.prototype, "injector", void 0);
427
+ (0, tslib_1.__decorate)([
428
+ (0, di_1.Autowired)(next_1.ICtxMenuRenderer),
429
+ (0, tslib_1.__metadata)("design:type", next_1.ICtxMenuRenderer)
430
+ ], DebugConsoleModelService.prototype, "ctxMenuRenderer", void 0);
431
+ (0, tslib_1.__decorate)([
432
+ (0, di_1.Autowired)(next_1.AbstractContextMenuService),
433
+ (0, tslib_1.__metadata)("design:type", next_1.AbstractContextMenuService)
434
+ ], DebugConsoleModelService.prototype, "contextMenuService", void 0);
435
+ (0, tslib_1.__decorate)([
436
+ (0, di_1.Autowired)(debug_view_model_1.DebugViewModel),
437
+ (0, tslib_1.__metadata)("design:type", debug_view_model_1.DebugViewModel)
438
+ ], DebugConsoleModelService.prototype, "viewModel", void 0);
439
+ (0, tslib_1.__decorate)([
440
+ (0, di_1.Autowired)(ide_core_browser_1.IContextKeyService),
441
+ (0, tslib_1.__metadata)("design:type", Object)
442
+ ], DebugConsoleModelService.prototype, "contextKeyService", void 0);
443
+ (0, tslib_1.__decorate)([
444
+ (0, di_1.Autowired)(common_1.IDebugSessionManager),
445
+ (0, tslib_1.__metadata)("design:type", Object)
446
+ ], DebugConsoleModelService.prototype, "manager", void 0);
447
+ (0, tslib_1.__decorate)([
448
+ (0, di_1.Autowired)(ide_core_browser_1.IClipboardService),
449
+ (0, tslib_1.__metadata)("design:type", Object)
450
+ ], DebugConsoleModelService.prototype, "clipboardService", void 0);
451
+ (0, tslib_1.__decorate)([
452
+ (0, di_1.Autowired)(debug_link_detector_1.LinkDetector),
453
+ (0, tslib_1.__metadata)("design:type", debug_link_detector_1.LinkDetector)
454
+ ], DebugConsoleModelService.prototype, "linkDetector", void 0);
455
+ DebugConsoleModelService = DebugConsoleModelService_1 = (0, tslib_1.__decorate)([
456
+ (0, di_1.Injectable)(),
457
+ (0, tslib_1.__metadata)("design:paramtypes", [])
458
+ ], DebugConsoleModelService);
459
+ exports.DebugConsoleModelService = DebugConsoleModelService;
460
+ //# sourceMappingURL=debug-console-tree.model.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-console-tree.model.service.js","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console-tree.model.service.ts"],"names":[],"mappings":";;;;;AAAA,qCAA+E;AAC/E,6DAAyK;AACzK,iEAAmI;AACnI,mEAAgH;AAChH,+DAA8D;AAC9D,6DAA0D;AAC1D,8EAA4H;AAC5H,0DAAqD;AACrD,mEAA8D;AAC9D,qEAA+B;AAC/B,yGAAiD;AAEjD,4CAAuD;AACvD,qCAA6C;AAE7C,mEAAyD;AAYzD,IAAa,wBAAwB,gCAArC,MAAa,wBAAwB;IAyDnC;QA7BQ,yBAAoB,GAAoC,IAAI,GAAG,EAAE,CAAC;QAOlE,8BAAyB,GAAa,EAAE,CAAC;QAEjD,MAAM;QACE,uBAAkB,GAAe,IAAI,2BAAU,CAAC,mCAAM,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM;QAC5E,0BAAqB,GAAe,IAAI,2BAAU,CAAC,mCAAM,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU;QAClF,sBAAiB,GAAe,IAAI,2BAAU,CAAC,mCAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM;QAGlF,SAAS;QACD,mBAAc,GAA2C,EAAE,CAAC;QAI5D,0BAAqB,GAAkB,IAAI,0BAAO,EAAE,CAAC;QACrD,gCAA2B,GAAuC,IAAI,0BAAO,EAAE,CAAC;QAKhF,kCAA6B,GAAyB,IAAI,uCAAoB,EAAE,CAAC;QACjF,qCAAgC,GAAyB,IAAI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EACwB;AAGrD;IADC,IAAA,cAAS,EAAC,kCAAY,CAAC;2CACO,kCAAY;8DAAC;AAzBjC,wBAAwB;IADpC,IAAA,eAAU,GAAE;;GACA,wBAAwB,CAsdpC;AAtdY,4DAAwB"}
@@ -0,0 +1,20 @@
1
+ import { DebugConsoleFilterService } from './debug-console-filter.service';
2
+ import { CommandContribution, CommandRegistry, ComponentContribution, ComponentRegistry, TabBarToolbarContribution, ToolbarRegistry, KeybindingContribution, KeybindingRegistry, IContextKeyService } from '@opensumi/ide-core-browser';
3
+ import { DebugConsoleService } from './debug-console.service';
4
+ import { BrowserEditorContribution, IEditorDocumentModelContentRegistry } from '@opensumi/ide-editor/lib/browser';
5
+ import { IMenuRegistry, MenuContribution } from '@opensumi/ide-core-browser/lib/menu/next';
6
+ export declare const DEBUG_CONSOLE_VIEW_ID = "debug-console-view";
7
+ export declare class DebugConsoleContribution implements ComponentContribution, BrowserEditorContribution, TabBarToolbarContribution, CommandContribution, MenuContribution, KeybindingContribution {
8
+ private readonly debugConsoleModelService;
9
+ private debugConsoleInputDocumentProvider;
10
+ protected readonly contextKeyService: IContextKeyService;
11
+ protected readonly debugConsoleService: DebugConsoleService;
12
+ protected readonly debugConsoleFilterService: DebugConsoleFilterService;
13
+ registerComponent(registry: ComponentRegistry): void;
14
+ registerToolbarItems(registry: ToolbarRegistry): void;
15
+ registerEditorDocumentModelContentProvider(registry: IEditorDocumentModelContentRegistry): void;
16
+ registerCommands(registry: CommandRegistry): void;
17
+ registerMenus(registry: IMenuRegistry): void;
18
+ registerKeybindings(bindings: KeybindingRegistry): void;
19
+ }
20
+ //# sourceMappingURL=debug-console.contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-console.contribution.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/console/debug-console.contribution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAG3E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAqB,yBAAyB,EAAE,eAAe,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAI3P,OAAO,EAAqC,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACjG,OAAO,EAAE,yBAAyB,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAC;AAIlH,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAU,MAAM,0CAA0C,CAAC;AAGnG,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAE1D,qBACa,wBAAyB,YAAW,qBAAqB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,sBAAsB;IAGzL,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAA2B;IAGpE,OAAO,CAAC,iCAAiC,CAAoC;IAG7E,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAGzD,SAAS,CAAC,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAG5D,SAAS,CAAC,QAAQ,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;IAExE,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB;IAa7C,oBAAoB,CAAC,QAAQ,EAAE,eAAe;IAU9C,0CAA0C,CAAC,QAAQ,EAAE,mCAAmC;IAIxF,gBAAgB,CAAC,QAAQ,EAAE,eAAe;IA2C1C,aAAa,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IA+B5C,mBAAmB,CAAC,QAAQ,EAAE,kBAAkB;CAuBjD"}