@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,71 @@
1
+ .debug_breakpoints {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ }
7
+
8
+ .debug_breakpoints_disabled {
9
+ opacity: .7;
10
+ }
11
+
12
+ .debug_breakpoints_item {
13
+ height: 22px;
14
+ display: flex;
15
+ align-items: center;
16
+ cursor: pointer;
17
+ flex-direction: row;
18
+ &:hover {
19
+ background: var(--list-hoverBackground);
20
+ color: var(--list-hoverForeground);
21
+ .debug_remove_breakpoints_icon {
22
+ display: inline-block;
23
+ pointer-events: all;
24
+ margin-right: 5px;
25
+ }
26
+ .debug_breakpoints_badge {
27
+ display: none;
28
+ }
29
+ }
30
+ &.selected {
31
+ background: var(--list-activeSelectionBackground);
32
+ color: var(--list-activeSelectionForeground);
33
+ }
34
+ }
35
+
36
+ .debug_breakpoints_icon {
37
+ width: 19px;
38
+ height: 19px;
39
+ min-width: 19px;
40
+ }
41
+
42
+ .debug_remove_breakpoints_icon {
43
+ color: #c5c5c5;
44
+ display: none;
45
+ pointer-events: none;
46
+ }
47
+
48
+ .debug_breakpoints_badge {
49
+ display: block;
50
+ }
51
+
52
+ .debug_breakpoints_description {
53
+ display: block;
54
+ transform: scale(.95);
55
+ opacity: .7;
56
+ margin-left: 5px;
57
+ display: inline;
58
+ }
59
+
60
+ .debug_breakpoints_name {
61
+ flex-grow: 0;
62
+ display: inline;
63
+ }
64
+
65
+ .debug_breakpoints_wrapper {
66
+ overflow: hidden;
67
+ text-overflow: ellipsis;
68
+ white-space: nowrap;
69
+ margin-right: 5px;
70
+ flex: 1;
71
+ }
@@ -0,0 +1,42 @@
1
+ import { ICodeEditor, EditorCollectionService } from '@opensumi/ide-editor';
2
+ import { DebugViewModel } from '../debug-view-model';
3
+ import { DebugBreakpoint, DebugExceptionBreakpoint, BreakpointManager } from '../../breakpoint';
4
+ import { IWorkspaceService } from '@opensumi/ide-workspace';
5
+ import { URI, WithEventBus, IContextKeyService, IReporterService } from '@opensumi/ide-core-browser';
6
+ import { BreakpointItem } from './debug-breakpoints.view';
7
+ import { WorkspaceEditDidRenameFileEvent, WorkspaceEditDidDeleteFileEvent } from '@opensumi/ide-workspace-edit';
8
+ import { DebugSessionManager } from '../../debug-session-manager';
9
+ import { LabelService } from '@opensumi/ide-core-browser/lib/services';
10
+ import { IEditorDocumentModelService } from '@opensumi/ide-editor/lib/browser';
11
+ export declare class DebugBreakpointsService extends WithEventBus {
12
+ protected readonly model: DebugViewModel;
13
+ protected readonly workspaceService: IWorkspaceService;
14
+ protected readonly breakpoints: BreakpointManager;
15
+ protected readonly sessions: DebugSessionManager;
16
+ protected readonly labelProvider: LabelService;
17
+ protected readonly contextKeyService: IContextKeyService;
18
+ protected readonly reporterService: IReporterService;
19
+ protected readonly editorService: EditorCollectionService;
20
+ protected readonly documentService: IEditorDocumentModelService;
21
+ private _inputEditor;
22
+ get inputEditor(): ICodeEditor;
23
+ nodes: BreakpointItem[];
24
+ enable: boolean;
25
+ inDebugMode: boolean;
26
+ roots: URI[];
27
+ constructor();
28
+ init(): Promise<void>;
29
+ getBreakpointDecoration(breakpoint: DebugBreakpoint, isDebugMode?: boolean, enabled?: boolean): import("../../breakpoint").DebugBreakpointDecoration;
30
+ onRenameFile(e: WorkspaceEditDidRenameFileEvent): void;
31
+ onDeleteFile(e: WorkspaceEditDidDeleteFileEvent): void;
32
+ private removeBreakpoints;
33
+ updateRoots(): Promise<void>;
34
+ toggleBreakpointEnable(data: DebugBreakpoint | DebugExceptionBreakpoint): void;
35
+ extractNodes(items: (DebugExceptionBreakpoint | DebugBreakpoint)[]): BreakpointItem[];
36
+ private updateBreakpoints;
37
+ removeAllBreakpoints(): void;
38
+ delBreakpoint(bp: DebugBreakpoint): void;
39
+ toggleBreakpoints(): void;
40
+ createBreakpointInput(container: HTMLElement): Promise<ICodeEditor>;
41
+ }
42
+ //# sourceMappingURL=debug-breakpoints.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-breakpoints.service.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/breakpoints/debug-breakpoints.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAA0B,MAAM,sBAAsB,CAAC;AAGpG,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAiD,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AAC/J,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,YAAY,EAAW,kBAAkB,EAAE,gBAAgB,EAAW,MAAM,4BAA4B,CAAC;AACvH,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAEhH,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAEvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC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;IAWJ,qBAAqB,CAAC,SAAS,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;CAkBjF"}
@@ -0,0 +1,228 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DebugBreakpointsService = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ide_editor_1 = require("@opensumi/ide-editor");
6
+ const di_1 = require("@opensumi/di");
7
+ const mobx_1 = require("mobx");
8
+ const debug_view_model_1 = require("../debug-view-model");
9
+ const breakpoint_1 = require("../../breakpoint");
10
+ const ide_workspace_1 = require("@opensumi/ide-workspace");
11
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
12
+ const ide_workspace_edit_1 = require("@opensumi/ide-workspace-edit");
13
+ const debug_session_1 = require("../../../common/debug-session");
14
+ const debug_session_manager_1 = require("../../debug-session-manager");
15
+ const services_1 = require("@opensumi/ide-core-browser/lib/services");
16
+ const common_1 = require("../../../common");
17
+ const browser_1 = require("@opensumi/ide-editor/lib/browser");
18
+ let DebugBreakpointsService = class DebugBreakpointsService extends ide_core_browser_1.WithEventBus {
19
+ constructor() {
20
+ super();
21
+ this.nodes = [];
22
+ this.init();
23
+ }
24
+ get inputEditor() {
25
+ return this._inputEditor;
26
+ }
27
+ async init() {
28
+ await this.updateRoots();
29
+ this.updateBreakpoints();
30
+ this.workspaceService.onWorkspaceChanged(async () => {
31
+ await this.updateRoots();
32
+ this.updateBreakpoints();
33
+ });
34
+ this.breakpoints.onDidChangeBreakpoints(() => {
35
+ this.updateBreakpoints();
36
+ });
37
+ this.breakpoints.onDidChangeExceptionsBreakpoints(() => {
38
+ this.updateBreakpoints();
39
+ });
40
+ this.contextKeyService.onDidChangeContext((e) => {
41
+ if (e.payload.affectsSome(new Set([common_1.CONTEXT_IN_DEBUG_MODE_KEY]))) {
42
+ (0, mobx_1.runInAction)(() => {
43
+ this.inDebugMode = this.contextKeyService.getContextValue(common_1.CONTEXT_IN_DEBUG_MODE_KEY) || false;
44
+ });
45
+ }
46
+ });
47
+ }
48
+ getBreakpointDecoration(breakpoint, isDebugMode = false, enabled = true) {
49
+ return new breakpoint_1.DebugDecorator().getDecoration(breakpoint, isDebugMode, enabled);
50
+ }
51
+ onRenameFile(e) {
52
+ this.removeBreakpoints(e.payload.oldUri);
53
+ }
54
+ onDeleteFile(e) {
55
+ this.removeBreakpoints(e.payload.oldUri);
56
+ }
57
+ removeBreakpoints(uri) {
58
+ this.breakpoints.cleanAllMarkers(uri);
59
+ this.updateBreakpoints();
60
+ }
61
+ async updateRoots() {
62
+ this.enable = this.breakpoints.breakpointsEnabled;
63
+ this.inDebugMode = this.contextKeyService.getContextValue(common_1.CONTEXT_IN_DEBUG_MODE_KEY) || false;
64
+ const roots = await this.workspaceService.roots;
65
+ this.roots = roots.map((file) => new ide_core_browser_1.URI(file.uri));
66
+ }
67
+ toggleBreakpointEnable(data) {
68
+ if ((0, breakpoint_1.isDebugBreakpoint)(data)) {
69
+ const real = this.breakpoints.getBreakpoint(ide_core_browser_1.URI.parse(data.uri), {
70
+ lineNumber: data.raw.line,
71
+ column: data.raw.column,
72
+ });
73
+ if (real) {
74
+ real.enabled = !real.enabled;
75
+ this.breakpoints.updateBreakpoint(real);
76
+ }
77
+ }
78
+ if ((0, breakpoint_1.isDebugExceptionBreakpoint)(data)) {
79
+ this.breakpoints.updateExceptionBreakpoints(data.filter, !data.default);
80
+ }
81
+ }
82
+ extractNodes(items) {
83
+ const nodes = [];
84
+ items.forEach((item) => {
85
+ if ((0, breakpoint_1.isDebugBreakpoint)(item)) {
86
+ const uri = ide_core_browser_1.URI.parse(item.uri);
87
+ const parent = this.roots.filter((root) => root.isEqualOrParent(uri))[0];
88
+ nodes.push({
89
+ id: item.id,
90
+ name: uri.displayName,
91
+ description: parent && parent.relative(uri).toString(),
92
+ breakpoint: item,
93
+ });
94
+ }
95
+ if ((0, breakpoint_1.isDebugExceptionBreakpoint)(item)) {
96
+ nodes.push({
97
+ id: item.filter,
98
+ name: item.label,
99
+ description: '',
100
+ breakpoint: item,
101
+ });
102
+ }
103
+ });
104
+ return nodes;
105
+ }
106
+ updateBreakpoints() {
107
+ this.nodes = this.extractNodes([...this.breakpoints.getExceptionBreakpoints(), ...this.breakpoints.getBreakpoints()]);
108
+ }
109
+ removeAllBreakpoints() {
110
+ this.breakpoints.clearBreakpoints();
111
+ }
112
+ delBreakpoint(bp) {
113
+ this.breakpoints.delBreakpoint(bp);
114
+ this.updateBreakpoints();
115
+ }
116
+ toggleBreakpoints() {
117
+ this.breakpoints.breakpointsEnabled = !this.breakpoints.breakpointsEnabled;
118
+ this.enable = this.breakpoints.breakpointsEnabled;
119
+ if (this.enable) {
120
+ this.reporterService.point(common_1.DEBUG_REPORT_NAME === null || common_1.DEBUG_REPORT_NAME === void 0 ? void 0 : common_1.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT, 'enabled');
121
+ }
122
+ else {
123
+ this.reporterService.point(common_1.DEBUG_REPORT_NAME === null || common_1.DEBUG_REPORT_NAME === void 0 ? void 0 : common_1.DEBUG_REPORT_NAME.DEBUG_BREAKPOINT, 'unenabled');
124
+ }
125
+ }
126
+ async createBreakpointInput(container) {
127
+ this._inputEditor = await this.editorService.createCodeEditor(container, Object.assign(Object.assign({}, (0, ide_editor_1.getSimpleEditorOptions)()), { scrollbar: {
128
+ horizontal: 'hidden',
129
+ vertical: 'hidden',
130
+ handleMouseWheel: false,
131
+ }, acceptSuggestionOnEnter: 'on', renderIndentGuides: false }));
132
+ const docModel = await this.documentService.createModelReference(new ide_core_browser_1.URI('debug/breakpoint/expression/input').withScheme(ide_core_browser_1.Schemas.walkThroughSnippet));
133
+ const model = docModel.instance.getMonacoModel();
134
+ model.updateOptions({ tabSize: 2 });
135
+ this._inputEditor.monacoEditor.setModel(model);
136
+ return Promise.resolve(this.inputEditor);
137
+ }
138
+ };
139
+ (0, tslib_1.__decorate)([
140
+ (0, di_1.Autowired)(debug_view_model_1.DebugViewModel),
141
+ (0, tslib_1.__metadata)("design:type", debug_view_model_1.DebugViewModel)
142
+ ], DebugBreakpointsService.prototype, "model", void 0);
143
+ (0, tslib_1.__decorate)([
144
+ (0, di_1.Autowired)(ide_workspace_1.IWorkspaceService),
145
+ (0, tslib_1.__metadata)("design:type", Object)
146
+ ], DebugBreakpointsService.prototype, "workspaceService", void 0);
147
+ (0, tslib_1.__decorate)([
148
+ (0, di_1.Autowired)(breakpoint_1.BreakpointManager),
149
+ (0, tslib_1.__metadata)("design:type", breakpoint_1.BreakpointManager)
150
+ ], DebugBreakpointsService.prototype, "breakpoints", void 0);
151
+ (0, tslib_1.__decorate)([
152
+ (0, di_1.Autowired)(debug_session_1.IDebugSessionManager),
153
+ (0, tslib_1.__metadata)("design:type", debug_session_manager_1.DebugSessionManager)
154
+ ], DebugBreakpointsService.prototype, "sessions", void 0);
155
+ (0, tslib_1.__decorate)([
156
+ (0, di_1.Autowired)(services_1.LabelService),
157
+ (0, tslib_1.__metadata)("design:type", services_1.LabelService)
158
+ ], DebugBreakpointsService.prototype, "labelProvider", void 0);
159
+ (0, tslib_1.__decorate)([
160
+ (0, di_1.Autowired)(ide_core_browser_1.IContextKeyService),
161
+ (0, tslib_1.__metadata)("design:type", Object)
162
+ ], DebugBreakpointsService.prototype, "contextKeyService", void 0);
163
+ (0, tslib_1.__decorate)([
164
+ (0, di_1.Autowired)(ide_core_browser_1.IReporterService),
165
+ (0, tslib_1.__metadata)("design:type", Object)
166
+ ], DebugBreakpointsService.prototype, "reporterService", void 0);
167
+ (0, tslib_1.__decorate)([
168
+ (0, di_1.Autowired)(ide_editor_1.EditorCollectionService),
169
+ (0, tslib_1.__metadata)("design:type", ide_editor_1.EditorCollectionService)
170
+ ], DebugBreakpointsService.prototype, "editorService", void 0);
171
+ (0, tslib_1.__decorate)([
172
+ (0, di_1.Autowired)(browser_1.IEditorDocumentModelService),
173
+ (0, tslib_1.__metadata)("design:type", Object)
174
+ ], DebugBreakpointsService.prototype, "documentService", void 0);
175
+ (0, tslib_1.__decorate)([
176
+ mobx_1.observable,
177
+ (0, tslib_1.__metadata)("design:type", Array)
178
+ ], DebugBreakpointsService.prototype, "nodes", void 0);
179
+ (0, tslib_1.__decorate)([
180
+ mobx_1.observable,
181
+ (0, tslib_1.__metadata)("design:type", Boolean)
182
+ ], DebugBreakpointsService.prototype, "enable", void 0);
183
+ (0, tslib_1.__decorate)([
184
+ mobx_1.observable,
185
+ (0, tslib_1.__metadata)("design:type", Boolean)
186
+ ], DebugBreakpointsService.prototype, "inDebugMode", void 0);
187
+ (0, tslib_1.__decorate)([
188
+ (0, ide_core_browser_1.OnEvent)(ide_workspace_edit_1.WorkspaceEditDidRenameFileEvent),
189
+ (0, tslib_1.__metadata)("design:type", Function),
190
+ (0, tslib_1.__metadata)("design:paramtypes", [ide_workspace_edit_1.WorkspaceEditDidRenameFileEvent]),
191
+ (0, tslib_1.__metadata)("design:returntype", void 0)
192
+ ], DebugBreakpointsService.prototype, "onRenameFile", null);
193
+ (0, tslib_1.__decorate)([
194
+ (0, ide_core_browser_1.OnEvent)(ide_workspace_edit_1.WorkspaceEditDidDeleteFileEvent),
195
+ (0, tslib_1.__metadata)("design:type", Function),
196
+ (0, tslib_1.__metadata)("design:paramtypes", [ide_workspace_edit_1.WorkspaceEditDidDeleteFileEvent]),
197
+ (0, tslib_1.__metadata)("design:returntype", void 0)
198
+ ], DebugBreakpointsService.prototype, "onDeleteFile", null);
199
+ (0, tslib_1.__decorate)([
200
+ mobx_1.action,
201
+ (0, tslib_1.__metadata)("design:type", Function),
202
+ (0, tslib_1.__metadata)("design:paramtypes", []),
203
+ (0, tslib_1.__metadata)("design:returntype", Promise)
204
+ ], DebugBreakpointsService.prototype, "updateRoots", null);
205
+ (0, tslib_1.__decorate)([
206
+ mobx_1.action.bound,
207
+ (0, tslib_1.__metadata)("design:type", Function),
208
+ (0, tslib_1.__metadata)("design:paramtypes", [Object]),
209
+ (0, tslib_1.__metadata)("design:returntype", void 0)
210
+ ], DebugBreakpointsService.prototype, "toggleBreakpointEnable", null);
211
+ (0, tslib_1.__decorate)([
212
+ mobx_1.action,
213
+ (0, tslib_1.__metadata)("design:type", Function),
214
+ (0, tslib_1.__metadata)("design:paramtypes", []),
215
+ (0, tslib_1.__metadata)("design:returntype", void 0)
216
+ ], DebugBreakpointsService.prototype, "updateBreakpoints", null);
217
+ (0, tslib_1.__decorate)([
218
+ mobx_1.action,
219
+ (0, tslib_1.__metadata)("design:type", Function),
220
+ (0, tslib_1.__metadata)("design:paramtypes", []),
221
+ (0, tslib_1.__metadata)("design:returntype", void 0)
222
+ ], DebugBreakpointsService.prototype, "toggleBreakpoints", null);
223
+ DebugBreakpointsService = (0, tslib_1.__decorate)([
224
+ (0, di_1.Injectable)(),
225
+ (0, tslib_1.__metadata)("design:paramtypes", [])
226
+ ], DebugBreakpointsService);
227
+ exports.DebugBreakpointsService = DebugBreakpointsService;
228
+ //# sourceMappingURL=debug-breakpoints.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-breakpoints.service.js","sourceRoot":"","sources":["../../../../src/browser/view/breakpoints/debug-breakpoints.service.ts"],"names":[],"mappings":";;;;AAAA,qDAAoG;AACpG,qCAAqD;AACrD,+BAAuD;AACvD,0DAAqD;AACrD,iDAA+J;AAC/J,2DAA4D;AAC5D,iEAAuH;AAEvH,qEAAgH;AAChH,iEAAqE;AACrE,uEAAkE;AAClE,sEAAuE;AACvE,4CAA+E;AAC/E,8DAA+E;AAG/E,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,+BAAY;IA8CvD;QACE,KAAK,EAAE,CAAC;QAXH,UAAK,GAAqB,EAAE,CAAC;QAYlC,IAAI,CAAC,IAAI,EAAE,CAAC;IACd,CAAC;IAlBD,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAkBD,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QACzB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACzB,IAAI,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C,IAAI,CAAC,WAAW,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AAvLC;IADC,IAAA,cAAS,EAAC,iCAAc,CAAC;2CACA,iCAAc;sDAAC;AAGzC;IADC,IAAA,cAAS,EAAC,iCAAiB,CAAC;;iEAC0B;AAGvD;IADC,IAAA,cAAS,EAAC,8BAAiB,CAAC;2CACG,8BAAiB;4DAAC;AAGlD;IADC,IAAA,cAAS,EAAC,oCAAoB,CAAC;2CACH,2CAAmB;yDAAC;AAGjD;IADC,IAAA,cAAS,EAAC,uBAAY,CAAC;2CACU,uBAAY;8DAAC;AAG/C;IADC,IAAA,cAAS,EAAC,qCAAkB,CAAC;;kEAC2B;AAGzD;IADC,IAAA,cAAS,EAAC,mCAAgB,CAAC;;gEACyB;AAGrD;IADC,IAAA,cAAS,EAAC,oCAAuB,CAAC;2CACD,oCAAuB;8DAAC;AAG1D;IADC,IAAA,cAAS,EAAC,qCAA2B,CAAC;;gEACyB;AAShE;IADC,iBAAU;;sDACyB;AAGpC;IADC,iBAAU;;uDACY;AAGvB;IADC,iBAAU;;4DACiB;AAoC5B;IADC,IAAA,0BAAO,EAAC,oDAA+B,CAAC;;kDACzB,oDAA+B;;2DAE9C;AAGD;IADC,IAAA,0BAAO,EAAC,oDAA+B,CAAC;;kDACzB,oDAA+B;;2DAE9C;AAQD;IADC,aAAM;;;;0DAMN;AAGD;IADC,aAAM,CAAC,KAAK;;;;qEAeZ;AA4BD;IADC,aAAM;;;;gEAGN;AAYD;IADC,aAAM;;;;gEAUN;AAtKU,uBAAuB;IADnC,IAAA,eAAU,GAAE;;GACA,uBAAuB,CA0LnC;AA1LY,0DAAuB"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { ViewState } from '@opensumi/ide-core-browser';
3
+ import { DebugBreakpoint, DebugExceptionBreakpoint } from '../../breakpoint';
4
+ export interface BreakpointItem {
5
+ name: string;
6
+ id: string;
7
+ description: string;
8
+ breakpoint: DebugBreakpoint | DebugExceptionBreakpoint;
9
+ }
10
+ export declare const DebugBreakpointView: React.FunctionComponent<{
11
+ viewState: ViewState;
12
+ }>;
13
+ export declare const BreakpointItem: ({ data, toggle, isDebugMode, breakpointEnabled, }: {
14
+ data: BreakpointItem;
15
+ toggle: () => void;
16
+ isDebugMode: boolean;
17
+ breakpointEnabled: boolean;
18
+ }) => JSX.Element;
19
+ //# sourceMappingURL=debug-breakpoints.view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-breakpoints.view.d.ts","sourceRoot":"","sources":["../../../../src/browser/view/breakpoints/debug-breakpoints.view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAiB,SAAS,EAAiD,MAAM,4BAA4B,CAAC;AAKrH,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAwE,MAAM,kBAAkB,CAAC;AAKnJ,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,eAAe,GAAG,wBAAwB,CAAC;CACxD;AAED,eAAO,MAAM,mBAAmB;eAEQ,SAAS;EA0B/C,CAAC;AAEH,eAAO,MAAM,cAAc;UAMnB,cAAc;YACZ,MAAM,IAAI;iBACL,OAAO;uBACD,OAAO;iBAuG3B,CAAC"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BreakpointItem = exports.DebugBreakpointView = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = (0, tslib_1.__importDefault)(require("react"));
6
+ const debug_breakpoints_service_1 = require("./debug-breakpoints.service");
7
+ const ide_core_browser_1 = require("@opensumi/ide-core-browser");
8
+ const debug_breakpoints_module_less_1 = (0, tslib_1.__importDefault)(require("./debug-breakpoints.module.less"));
9
+ const classnames_1 = (0, tslib_1.__importDefault)(require("classnames"));
10
+ const ide_components_1 = require("@opensumi/ide-components");
11
+ const mobx_react_lite_1 = require("mobx-react-lite");
12
+ const breakpoint_1 = require("../../breakpoint");
13
+ const ide_components_2 = require("@opensumi/ide-components");
14
+ const common_1 = require("../../../common");
15
+ exports.DebugBreakpointView = (0, mobx_react_lite_1.observer)(({ viewState, }) => {
16
+ const { nodes, enable, inDebugMode, toggleBreakpointEnable, } = (0, ide_core_browser_1.useInjectable)(debug_breakpoints_service_1.DebugBreakpointsService);
17
+ const template = ({ data }) => {
18
+ return react_1.default.createElement(exports.BreakpointItem, { toggle: () => toggleBreakpointEnable(data.breakpoint), breakpointEnabled: enable, data: data, isDebugMode: inDebugMode });
19
+ };
20
+ const containerStyle = {
21
+ height: viewState.height,
22
+ width: viewState.width,
23
+ };
24
+ return react_1.default.createElement("div", { className: (0, classnames_1.default)(debug_breakpoints_module_less_1.default.debug_breakpoints, !enable && debug_breakpoints_module_less_1.default.debug_breakpoints_disabled) },
25
+ react_1.default.createElement(ide_components_2.RecycleList, { data: nodes, itemHeight: 22, template: template, style: containerStyle }));
26
+ });
27
+ const BreakpointItem = ({ data, toggle, isDebugMode, breakpointEnabled, }) => {
28
+ const defaultValue = (0, breakpoint_1.isDebugBreakpoint)(data.breakpoint) ? data.breakpoint.enabled : !!(data.breakpoint.default);
29
+ const manager = (0, ide_core_browser_1.useInjectable)(common_1.IDebugSessionManager);
30
+ const commandService = (0, ide_core_browser_1.useInjectable)(ide_core_browser_1.CommandService);
31
+ const debugBreakpointsService = (0, ide_core_browser_1.useInjectable)(debug_breakpoints_service_1.DebugBreakpointsService);
32
+ const [enabled, setEnabled] = react_1.default.useState(defaultValue);
33
+ const [status, setStatus] = react_1.default.useState(undefined);
34
+ const handleBreakpointChange = () => {
35
+ toggle();
36
+ setEnabled(!enabled);
37
+ };
38
+ const handleBreakpointClick = () => {
39
+ if (data.breakpoint.uri) {
40
+ const options = {
41
+ preview: true,
42
+ focus: true,
43
+ };
44
+ if (!!status) {
45
+ options['range'] = {
46
+ startColumn: status.column || 0,
47
+ endColumn: status.column || 0,
48
+ startLineNumber: status.line,
49
+ endLineNumber: status.line,
50
+ };
51
+ }
52
+ else {
53
+ options['range'] = {
54
+ startColumn: data.breakpoint.raw.column || 0,
55
+ endColumn: data.breakpoint.raw.column || 0,
56
+ startLineNumber: data.breakpoint.raw.line,
57
+ endLineNumber: data.breakpoint.raw.line,
58
+ };
59
+ }
60
+ commandService.executeCommand(ide_core_browser_1.EDITOR_COMMANDS.OPEN_RESOURCE.id, new ide_core_browser_1.URI(data.breakpoint.uri), options);
61
+ }
62
+ };
63
+ react_1.default.useEffect(() => {
64
+ const exec = () => {
65
+ if ((0, breakpoint_1.isDebugBreakpoint)(data.breakpoint) && (0, breakpoint_1.isRuntimeBreakpoint)(data.breakpoint)) {
66
+ const status = (0, breakpoint_1.getStatus)(data.breakpoint);
67
+ setStatus(status);
68
+ }
69
+ };
70
+ const disposable = manager.onDidChangeActiveDebugSession(() => exec());
71
+ exec();
72
+ return () => {
73
+ setStatus(undefined);
74
+ disposable.dispose();
75
+ };
76
+ }, []);
77
+ const verified = !isDebugMode ? true : ((0, breakpoint_1.isDebugBreakpoint)(data.breakpoint) && (0, breakpoint_1.isRuntimeBreakpoint)(data.breakpoint));
78
+ const getBreakpointIcon = () => {
79
+ const { className } = debugBreakpointsService.getBreakpointDecoration(data.breakpoint, isDebugMode, breakpointEnabled && enabled);
80
+ return className;
81
+ };
82
+ const converBreakpointClsState = () => {
83
+ if ((0, breakpoint_1.isDebugBreakpoint)(data.breakpoint)) {
84
+ if (!verified) {
85
+ return 'sumi-debug-breakpoint-unverified';
86
+ }
87
+ return getBreakpointIcon();
88
+ }
89
+ return '';
90
+ };
91
+ const removeBreakpoint = (event) => {
92
+ event.stopPropagation();
93
+ debugBreakpointsService.delBreakpoint(data.breakpoint);
94
+ };
95
+ return react_1.default.createElement("div", { className: (0, classnames_1.default)(debug_breakpoints_module_less_1.default.debug_breakpoints_item) },
96
+ react_1.default.createElement("div", { className: (0, classnames_1.default)(converBreakpointClsState(), debug_breakpoints_module_less_1.default.debug_breakpoints_icon) }),
97
+ react_1.default.createElement(ide_components_1.CheckBox, { id: data.id, onChange: handleBreakpointChange, checked: enabled }),
98
+ react_1.default.createElement("div", { className: debug_breakpoints_module_less_1.default.debug_breakpoints_wrapper, onClick: handleBreakpointClick },
99
+ react_1.default.createElement("span", { className: debug_breakpoints_module_less_1.default.debug_breakpoints_name }, data.name),
100
+ react_1.default.createElement("span", { className: debug_breakpoints_module_less_1.default.debug_breakpoints_description }, data.description)),
101
+ (0, breakpoint_1.isDebugBreakpoint)(data.breakpoint) ? (react_1.default.createElement(react_1.default.Fragment, null,
102
+ react_1.default.createElement("a", { title: '\u5220\u9664\u65AD\u70B9', onClick: (event) => removeBreakpoint(event), className: (0, classnames_1.default)(debug_breakpoints_module_less_1.default.debug_remove_breakpoints_icon, (0, ide_core_browser_1.getIcon)('close')) }),
103
+ react_1.default.createElement(ide_components_2.Badge, { className: debug_breakpoints_module_less_1.default.debug_breakpoints_badge },
104
+ data.breakpoint.raw.line,
105
+ !!data.breakpoint.raw.column && `:${data.breakpoint.raw.column}`))) : null);
106
+ };
107
+ exports.BreakpointItem = BreakpointItem;
108
+ //# sourceMappingURL=debug-breakpoints.view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug-breakpoints.view.js","sourceRoot":"","sources":["../../../../src/browser/view/breakpoints/debug-breakpoints.view.tsx"],"names":[],"mappings":";;;;AAAA,+DAA0B;AAE1B,2EAAsE;AACtE,iEAAqH;AACrH,iHAAqD;AACrD,yEAA6B;AAC7B,6DAAoD;AACpD,qDAA2C;AAC3C,iDAAmJ;AACnJ,6DAA8D;AAE9D,4CAAuD;AAS1C,QAAA,mBAAmB,GAAG,IAAA,0BAAQ,EAAC,CAAC,EAC3C,SAAS,GACyC,EAAE,EAAE;IACtD,MAAM,EACJ,KAAK,EACL,MAAM,EACN,WAAW,EACX,sBAAsB,GACvB,GAA4B,IAAA,gCAAa,EAAC,mDAAuB,C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I,CAEN,CAAC;AACT,CAAC,CAAC;AAhHW,QAAA,cAAc,kBAgHzB"}
@@ -0,0 +1,101 @@
1
+ @import '~@opensumi/ide-components/lib/style/mixins.less';
2
+
3
+ .kt_debug_action_bar {
4
+ height: 28px;
5
+ display: flex;
6
+ align-items: center;
7
+ padding: 0px 8px;
8
+ margin-bottom: 8px;
9
+ justify-content: flex-start;
10
+ pointer-events: all;
11
+ overflow: hidden;
12
+
13
+ .kt_debug_actions {
14
+ display: flex;
15
+ justify-content: space-between;
16
+ align-items: center;
17
+ min-width: 124px;
18
+ & > *:not(:first-child) {
19
+ margin-left: 6px;
20
+ }
21
+ }
22
+
23
+ .debug_selection {
24
+ width: 100%;
25
+ min-width: 50px;
26
+ margin-right: 10px;
27
+ max-width: 200px;
28
+
29
+ :global(.kt-select-value) {
30
+ & > option {
31
+ min-width: 22px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ .debug_configuration_toolbar {
38
+ display: flex;
39
+ height: 28px;
40
+ padding-right: 8px;
41
+ margin-bottom: 8px;
42
+ align-items: center;
43
+
44
+ .kt_debug_actions {
45
+ display: flex;
46
+ flex: 1;
47
+ justify-content: space-between;
48
+ align-items: center;
49
+ min-width: 58px;
50
+ max-width: 66px;
51
+ }
52
+
53
+ .debug_selection {
54
+ width: 100%;
55
+ min-width: 50px;
56
+ margin-left: 8px;
57
+ margin-right: 6px;
58
+
59
+ :global(.kt-select-value) {
60
+ & > option {
61
+ min-width: 22px;
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ .debug_toolbar_container {
68
+ position: absolute;
69
+ width: 100%;
70
+ height: 100%;
71
+ display: flex;
72
+ align-content: center;
73
+ justify-content: center;
74
+ z-index: 999;
75
+ user-select: none;
76
+
77
+ .kt_debug_action_bar {
78
+ height: 100%;
79
+ padding: 0px 12px;
80
+ }
81
+ }
82
+
83
+ .debug_toolbar_wrapper {
84
+ display: flex;
85
+ height: 28px;
86
+ padding-left: 5px;
87
+ background-color: var(--debugToolBar-background);
88
+ border: 1px solid var(--debugToolBar-border);
89
+ .modal-shadow();
90
+ }
91
+
92
+ .debug_toolbar_drag {
93
+ pointer-events: all;
94
+ cursor: pointer;
95
+ }
96
+
97
+ .debug_toolbar_drag_wrapper {
98
+ display: flex;
99
+ height: 100%;
100
+ align-items: center;
101
+ }
@@ -0,0 +1,36 @@
1
+ /// <reference types="react" />
2
+ import { IWorkspaceService } from '@opensumi/ide-workspace';
3
+ import { DebugConfigurationManager } from '../../debug-configuration-manager';
4
+ import { DebugSessionOptions } from '../../../common';
5
+ import { DebugSessionManager } from '../../debug-session-manager';
6
+ import { DebugViewModel } from '../debug-view-model';
7
+ import { DebugConsoleService } from '../console/debug-console.service';
8
+ export declare class DebugConfigurationService {
9
+ protected workspaceService: IWorkspaceService;
10
+ protected debugConfigurationManager: DebugConfigurationManager;
11
+ protected debugSessionManager: DebugSessionManager;
12
+ protected debugViewModel: DebugViewModel;
13
+ protected debugConsoleService: DebugConsoleService;
14
+ private readonly preferenceService;
15
+ private _whenReady;
16
+ constructor();
17
+ currentValue: string;
18
+ float: boolean;
19
+ isMultiRootWorkspace: boolean;
20
+ workspaceRoots: string[];
21
+ configurationOptions: DebugSessionOptions[];
22
+ get whenReady(): Promise<void>;
23
+ init(): Promise<void>;
24
+ updateWorkspaceState(): Promise<void>;
25
+ updateFloat(value: boolean): void;
26
+ updateCurrentValue(value: string): void;
27
+ updateConfigurationOptions(): void;
28
+ start: () => Promise<void>;
29
+ openConfiguration: () => void;
30
+ openDebugConsole: () => void;
31
+ addConfiguration: (eventOrUri?: string | import("react").MouseEvent<HTMLElement, MouseEvent> | undefined) => void;
32
+ updateConfiguration: (name: string, workspaceFolderUri: string, index: number) => void;
33
+ toValue({ configuration, workspaceFolderUri, index }: DebugSessionOptions): any;
34
+ toName: ({ configuration, workspaceFolderUri }: DebugSessionOptions) => string;
35
+ }
36
+ //# sourceMappingURL=debug-configuration.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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