@opensumi/ide-core-browser 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 (851) hide show
  1. package/README.md +16 -0
  2. package/lib/application/application-state-service.d.ts +16 -0
  3. package/lib/application/application-state-service.d.ts.map +1 -0
  4. package/lib/application/application-state-service.js +47 -0
  5. package/lib/application/application-state-service.js.map +1 -0
  6. package/lib/application/application.service.d.ts +11 -0
  7. package/lib/application/application.service.d.ts.map +1 -0
  8. package/lib/application/application.service.js +41 -0
  9. package/lib/application/application.service.js.map +1 -0
  10. package/lib/application/index.d.ts +3 -0
  11. package/lib/application/index.d.ts.map +1 -0
  12. package/lib/application/index.js +6 -0
  13. package/lib/application/index.js.map +1 -0
  14. package/lib/authentication/authentication.contribution.d.ts +8 -0
  15. package/lib/authentication/authentication.contribution.d.ts.map +1 -0
  16. package/lib/authentication/authentication.contribution.js +32 -0
  17. package/lib/authentication/authentication.contribution.js.map +1 -0
  18. package/lib/authentication/authentication.service.d.ts +54 -0
  19. package/lib/authentication/authentication.service.d.ts.map +1 -0
  20. package/lib/authentication/authentication.service.js +413 -0
  21. package/lib/authentication/authentication.service.js.map +1 -0
  22. package/lib/bootstrap/app.d.ts +142 -0
  23. package/lib/bootstrap/app.d.ts.map +1 -0
  24. package/lib/bootstrap/app.js +516 -0
  25. package/lib/bootstrap/app.js.map +1 -0
  26. package/lib/bootstrap/app.view.d.ts +11 -0
  27. package/lib/bootstrap/app.view.d.ts.map +1 -0
  28. package/lib/bootstrap/app.view.js +72 -0
  29. package/lib/bootstrap/app.view.js.map +1 -0
  30. package/lib/bootstrap/connection.d.ts +7 -0
  31. package/lib/bootstrap/connection.d.ts.map +1 -0
  32. package/lib/bootstrap/connection.js +78 -0
  33. package/lib/bootstrap/connection.js.map +1 -0
  34. package/lib/bootstrap/index.d.ts +4 -0
  35. package/lib/bootstrap/index.d.ts.map +1 -0
  36. package/lib/bootstrap/index.js +7 -0
  37. package/lib/bootstrap/index.js.map +1 -0
  38. package/lib/bootstrap/inner-providers.d.ts +3 -0
  39. package/lib/bootstrap/inner-providers.d.ts.map +1 -0
  40. package/lib/bootstrap/inner-providers.js +231 -0
  41. package/lib/bootstrap/inner-providers.js.map +1 -0
  42. package/lib/browser-module.d.ts +20 -0
  43. package/lib/browser-module.d.ts.map +1 -0
  44. package/lib/browser-module.js +15 -0
  45. package/lib/browser-module.js.map +1 -0
  46. package/lib/common/common.command.d.ts +156 -0
  47. package/lib/common/common.command.d.ts.map +1 -0
  48. package/lib/common/common.command.js +611 -0
  49. package/lib/common/common.command.js.map +1 -0
  50. package/lib/common/common.contribution.d.ts +22 -0
  51. package/lib/common/common.contribution.d.ts.map +1 -0
  52. package/lib/common/common.contribution.js +241 -0
  53. package/lib/common/common.contribution.js.map +1 -0
  54. package/lib/common/common.define.d.ts +47 -0
  55. package/lib/common/common.define.d.ts.map +1 -0
  56. package/lib/common/common.define.js +5 -0
  57. package/lib/common/common.define.js.map +1 -0
  58. package/lib/common/common.module.d.ts +13 -0
  59. package/lib/common/common.module.d.ts.map +1 -0
  60. package/lib/common/common.module.js +41 -0
  61. package/lib/common/common.module.js.map +1 -0
  62. package/lib/common/common.storage.d.ts +9 -0
  63. package/lib/common/common.storage.d.ts.map +1 -0
  64. package/lib/common/common.storage.js +25 -0
  65. package/lib/common/common.storage.js.map +1 -0
  66. package/lib/common/index.d.ts +5 -0
  67. package/lib/common/index.d.ts.map +1 -0
  68. package/lib/common/index.js +8 -0
  69. package/lib/common/index.js.map +1 -0
  70. package/lib/components/actions/index.d.ts +77 -0
  71. package/lib/components/actions/index.d.ts.map +1 -0
  72. package/lib/components/actions/index.js +201 -0
  73. package/lib/components/actions/index.js.map +1 -0
  74. package/lib/components/actions/placements.d.ts +58 -0
  75. package/lib/components/actions/placements.d.ts.map +1 -0
  76. package/lib/components/actions/placements.js +48 -0
  77. package/lib/components/actions/placements.js.map +1 -0
  78. package/lib/components/actions/styles.module.less +128 -0
  79. package/lib/components/badge/index.d.ts +2 -0
  80. package/lib/components/badge/index.d.ts.map +1 -0
  81. package/lib/components/badge/index.js +6 -0
  82. package/lib/components/badge/index.js.map +1 -0
  83. package/lib/components/click-outside/index.d.ts +6 -0
  84. package/lib/components/click-outside/index.d.ts.map +1 -0
  85. package/lib/components/click-outside/index.js +27 -0
  86. package/lib/components/click-outside/index.js.map +1 -0
  87. package/lib/components/index.d.ts +25 -0
  88. package/lib/components/index.d.ts.map +1 -0
  89. package/lib/components/index.js +30 -0
  90. package/lib/components/index.js.map +1 -0
  91. package/lib/components/layout/box-panel.d.ts +18 -0
  92. package/lib/components/layout/box-panel.d.ts.map +1 -0
  93. package/lib/components/layout/box-panel.js +20 -0
  94. package/lib/components/layout/box-panel.js.map +1 -0
  95. package/lib/components/layout/default-layout.d.ts +15 -0
  96. package/lib/components/layout/default-layout.d.ts.map +1 -0
  97. package/lib/components/layout/default-layout.js +39 -0
  98. package/lib/components/layout/default-layout.js.map +1 -0
  99. package/lib/components/layout/index.d.ts +5 -0
  100. package/lib/components/layout/index.d.ts.map +1 -0
  101. package/lib/components/layout/index.js +8 -0
  102. package/lib/components/layout/index.js.map +1 -0
  103. package/lib/components/layout/layout.d.ts +13 -0
  104. package/lib/components/layout/layout.d.ts.map +1 -0
  105. package/lib/components/layout/layout.js +72 -0
  106. package/lib/components/layout/layout.js.map +1 -0
  107. package/lib/components/layout/split-panel.d.ts +38 -0
  108. package/lib/components/layout/split-panel.d.ts.map +1 -0
  109. package/lib/components/layout/split-panel.js +182 -0
  110. package/lib/components/layout/split-panel.js.map +1 -0
  111. package/lib/components/layout/split-panel.service.d.ts +16 -0
  112. package/lib/components/layout/split-panel.service.d.ts.map +1 -0
  113. package/lib/components/layout/split-panel.service.js +69 -0
  114. package/lib/components/layout/split-panel.service.js.map +1 -0
  115. package/lib/components/layout/styles.module.less +119 -0
  116. package/lib/components/loading/index.d.ts +2 -0
  117. package/lib/components/loading/index.d.ts.map +1 -0
  118. package/lib/components/loading/index.js +5 -0
  119. package/lib/components/loading/index.js.map +1 -0
  120. package/lib/components/loading/loading.less +14 -0
  121. package/lib/components/loading/loading.view.d.ts +4 -0
  122. package/lib/components/loading/loading.view.d.ts.map +1 -0
  123. package/lib/components/loading/loading.view.js +12 -0
  124. package/lib/components/loading/loading.view.js.map +1 -0
  125. package/lib/components/loading/media/loading-dark.svg +52 -0
  126. package/lib/components/loading/media/loading-hc.svg +52 -0
  127. package/lib/components/loading/media/loading.svg +52 -0
  128. package/lib/components/popover/styles.module.less +81 -0
  129. package/lib/components/portal/index.d.ts +6 -0
  130. package/lib/components/portal/index.d.ts.map +1 -0
  131. package/lib/components/portal/index.js +11 -0
  132. package/lib/components/portal/index.js.map +1 -0
  133. package/lib/components/progressbar/index.d.ts +5 -0
  134. package/lib/components/progressbar/index.d.ts.map +1 -0
  135. package/lib/components/progressbar/index.js +15 -0
  136. package/lib/components/progressbar/index.js.map +1 -0
  137. package/lib/components/progressbar/styles.module.less +31 -0
  138. package/lib/components/recycle-tree/index.d.ts +2 -0
  139. package/lib/components/recycle-tree/index.d.ts.map +1 -0
  140. package/lib/components/recycle-tree/index.js +5 -0
  141. package/lib/components/recycle-tree/index.js.map +1 -0
  142. package/lib/components/recycle-tree/recycle-tree.view.d.ts +82 -0
  143. package/lib/components/recycle-tree/recycle-tree.view.d.ts.map +1 -0
  144. package/lib/components/recycle-tree/recycle-tree.view.js +192 -0
  145. package/lib/components/recycle-tree/recycle-tree.view.js.map +1 -0
  146. package/lib/components/resize/resize.d.ts +39 -0
  147. package/lib/components/resize/resize.d.ts.map +1 -0
  148. package/lib/components/resize/resize.js +609 -0
  149. package/lib/components/resize/resize.js.map +1 -0
  150. package/lib/components/resize/resize.module.less +78 -0
  151. package/lib/components/scrollbar/index.d.ts +2 -0
  152. package/lib/components/scrollbar/index.d.ts.map +1 -0
  153. package/lib/components/scrollbar/index.js +5 -0
  154. package/lib/components/scrollbar/index.js.map +1 -0
  155. package/lib/components/scrollbar/scrollbar.less +36 -0
  156. package/lib/components/scrollbar/scrollbar.view.d.ts +7 -0
  157. package/lib/components/scrollbar/scrollbar.view.d.ts.map +1 -0
  158. package/lib/components/scrollbar/scrollbar.view.js +11 -0
  159. package/lib/components/scrollbar/scrollbar.view.js.map +1 -0
  160. package/lib/components/select/index.d.ts +4 -0
  161. package/lib/components/select/index.d.ts.map +1 -0
  162. package/lib/components/select/index.js +14 -0
  163. package/lib/components/select/index.js.map +1 -0
  164. package/lib/components/select/styles.less +8 -0
  165. package/lib/components/tree/index.d.ts +4 -0
  166. package/lib/components/tree/index.d.ts.map +1 -0
  167. package/lib/components/tree/index.js +7 -0
  168. package/lib/components/tree/index.js.map +1 -0
  169. package/lib/components/tree/tree-node.view.d.ts +26 -0
  170. package/lib/components/tree/tree-node.view.d.ts.map +1 -0
  171. package/lib/components/tree/tree-node.view.js +346 -0
  172. package/lib/components/tree/tree-node.view.js.map +1 -0
  173. package/lib/components/tree/tree.module.less +295 -0
  174. package/lib/components/tree/tree.view.d.ts +132 -0
  175. package/lib/components/tree/tree.view.d.ts.map +1 -0
  176. package/lib/components/tree/tree.view.js +246 -0
  177. package/lib/components/tree/tree.view.js.map +1 -0
  178. package/lib/context-key.d.ts +32 -0
  179. package/lib/context-key.d.ts.map +1 -0
  180. package/lib/context-key.js +9 -0
  181. package/lib/context-key.js.map +1 -0
  182. package/lib/contextkey/explorer.d.ts +16 -0
  183. package/lib/contextkey/explorer.d.ts.map +1 -0
  184. package/lib/contextkey/explorer.js +20 -0
  185. package/lib/contextkey/explorer.js.map +1 -0
  186. package/lib/contextkey/index.d.ts +6 -0
  187. package/lib/contextkey/index.d.ts.map +1 -0
  188. package/lib/contextkey/index.js +9 -0
  189. package/lib/contextkey/index.js.map +1 -0
  190. package/lib/contextkey/outline.d.ts +4 -0
  191. package/lib/contextkey/outline.d.ts.map +1 -0
  192. package/lib/contextkey/outline.js +7 -0
  193. package/lib/contextkey/outline.js.map +1 -0
  194. package/lib/contextkey/resource.d.ts +17 -0
  195. package/lib/contextkey/resource.d.ts.map +1 -0
  196. package/lib/contextkey/resource.js +45 -0
  197. package/lib/contextkey/resource.js.map +1 -0
  198. package/lib/contextkey/terminal.d.ts +7 -0
  199. package/lib/contextkey/terminal.d.ts.map +1 -0
  200. package/lib/contextkey/terminal.js +10 -0
  201. package/lib/contextkey/terminal.js.map +1 -0
  202. package/lib/contextkey/workspace.d.ts +7 -0
  203. package/lib/contextkey/workspace.d.ts.map +1 -0
  204. package/lib/contextkey/workspace.js +10 -0
  205. package/lib/contextkey/workspace.js.map +1 -0
  206. package/lib/core-preferences.d.ts +57 -0
  207. package/lib/core-preferences.d.ts.map +1 -0
  208. package/lib/core-preferences.js +328 -0
  209. package/lib/core-preferences.js.map +1 -0
  210. package/lib/dom/index.d.ts +68 -0
  211. package/lib/dom/index.d.ts.map +1 -0
  212. package/lib/dom/index.js +126 -0
  213. package/lib/dom/index.js.map +1 -0
  214. package/lib/encoding-registry.d.ts +31 -0
  215. package/lib/encoding-registry.d.ts.map +1 -0
  216. package/lib/encoding-registry.js +85 -0
  217. package/lib/encoding-registry.js.map +1 -0
  218. package/lib/fs/index.d.ts +12 -0
  219. package/lib/fs/index.d.ts.map +1 -0
  220. package/lib/fs/index.js +9 -0
  221. package/lib/fs/index.js.map +1 -0
  222. package/lib/hash-calculate/hash-calculate.contribution.d.ts +6 -0
  223. package/lib/hash-calculate/hash-calculate.contribution.d.ts.map +1 -0
  224. package/lib/hash-calculate/hash-calculate.contribution.js +27 -0
  225. package/lib/hash-calculate/hash-calculate.contribution.js.map +1 -0
  226. package/lib/index.d.ts +28 -0
  227. package/lib/index.d.ts.map +1 -0
  228. package/lib/index.js +34 -0
  229. package/lib/index.js.map +1 -0
  230. package/lib/keybinding/index.d.ts +2 -0
  231. package/lib/keybinding/index.d.ts.map +1 -0
  232. package/lib/keybinding/index.js +5 -0
  233. package/lib/keybinding/index.js.map +1 -0
  234. package/lib/keybinding/keybinding.d.ts +340 -0
  235. package/lib/keybinding/keybinding.d.ts.map +1 -0
  236. package/lib/keybinding/keybinding.js +720 -0
  237. package/lib/keybinding/keybinding.js.map +1 -0
  238. package/lib/keyboard/index.d.ts +4 -0
  239. package/lib/keyboard/index.d.ts.map +1 -0
  240. package/lib/keyboard/index.js +7 -0
  241. package/lib/keyboard/index.js.map +1 -0
  242. package/lib/keyboard/keyboard-layout-provider.d.ts +92 -0
  243. package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -0
  244. package/lib/keyboard/keyboard-layout-provider.js +344 -0
  245. package/lib/keyboard/keyboard-layout-provider.js.map +1 -0
  246. package/lib/keyboard/keyboard-layout-service.d.ts +65 -0
  247. package/lib/keyboard/keyboard-layout-service.d.ts.map +1 -0
  248. package/lib/keyboard/keyboard-layout-service.js +415 -0
  249. package/lib/keyboard/keyboard-layout-service.js.map +1 -0
  250. package/lib/keyboard/keys.d.ts +294 -0
  251. package/lib/keyboard/keys.d.ts.map +1 -0
  252. package/lib/keyboard/keys.js +699 -0
  253. package/lib/keyboard/keys.js.map +1 -0
  254. package/lib/keyboard/layouts/_.contribution.d.ts +9 -0
  255. package/lib/keyboard/layouts/_.contribution.d.ts.map +1 -0
  256. package/lib/keyboard/layouts/_.contribution.js +21 -0
  257. package/lib/keyboard/layouts/_.contribution.js.map +1 -0
  258. package/lib/keyboard/layouts/cz.win.d.ts +2 -0
  259. package/lib/keyboard/layouts/cz.win.d.ts.map +1 -0
  260. package/lib/keyboard/layouts/cz.win.js +169 -0
  261. package/lib/keyboard/layouts/cz.win.js.map +1 -0
  262. package/lib/keyboard/layouts/de-swiss.win.d.ts +2 -0
  263. package/lib/keyboard/layouts/de-swiss.win.d.ts.map +1 -0
  264. package/lib/keyboard/layouts/de-swiss.win.js +169 -0
  265. package/lib/keyboard/layouts/de-swiss.win.js.map +1 -0
  266. package/lib/keyboard/layouts/de.darwin.d.ts +2 -0
  267. package/lib/keyboard/layouts/de.darwin.d.ts.map +1 -0
  268. package/lib/keyboard/layouts/de.darwin.js +132 -0
  269. package/lib/keyboard/layouts/de.darwin.js.map +1 -0
  270. package/lib/keyboard/layouts/de.linux.d.ts +2 -0
  271. package/lib/keyboard/layouts/de.linux.d.ts.map +1 -0
  272. package/lib/keyboard/layouts/de.linux.js +187 -0
  273. package/lib/keyboard/layouts/de.linux.js.map +1 -0
  274. package/lib/keyboard/layouts/de.win.d.ts +2 -0
  275. package/lib/keyboard/layouts/de.win.d.ts.map +1 -0
  276. package/lib/keyboard/layouts/de.win.js +169 -0
  277. package/lib/keyboard/layouts/de.win.js.map +1 -0
  278. package/lib/keyboard/layouts/dk.win.d.ts +2 -0
  279. package/lib/keyboard/layouts/dk.win.d.ts.map +1 -0
  280. package/lib/keyboard/layouts/dk.win.js +169 -0
  281. package/lib/keyboard/layouts/dk.win.js.map +1 -0
  282. package/lib/keyboard/layouts/dvorak.darwin.d.ts +2 -0
  283. package/lib/keyboard/layouts/dvorak.darwin.d.ts.map +1 -0
  284. package/lib/keyboard/layouts/dvorak.darwin.js +132 -0
  285. package/lib/keyboard/layouts/dvorak.darwin.js.map +1 -0
  286. package/lib/keyboard/layouts/en-belgian.win.d.ts +2 -0
  287. package/lib/keyboard/layouts/en-belgian.win.d.ts.map +1 -0
  288. package/lib/keyboard/layouts/en-belgian.win.js +169 -0
  289. package/lib/keyboard/layouts/en-belgian.win.js.map +1 -0
  290. package/lib/keyboard/layouts/en-ext.darwin.d.ts +2 -0
  291. package/lib/keyboard/layouts/en-ext.darwin.d.ts.map +1 -0
  292. package/lib/keyboard/layouts/en-ext.darwin.js +132 -0
  293. package/lib/keyboard/layouts/en-ext.darwin.js.map +1 -0
  294. package/lib/keyboard/layouts/en-in.win.d.ts +2 -0
  295. package/lib/keyboard/layouts/en-in.win.d.ts.map +1 -0
  296. package/lib/keyboard/layouts/en-in.win.js +169 -0
  297. package/lib/keyboard/layouts/en-in.win.js.map +1 -0
  298. package/lib/keyboard/layouts/en-intl.darwin.d.ts +2 -0
  299. package/lib/keyboard/layouts/en-intl.darwin.d.ts.map +1 -0
  300. package/lib/keyboard/layouts/en-intl.darwin.js +132 -0
  301. package/lib/keyboard/layouts/en-intl.darwin.js.map +1 -0
  302. package/lib/keyboard/layouts/en-intl.win.d.ts +2 -0
  303. package/lib/keyboard/layouts/en-intl.win.d.ts.map +1 -0
  304. package/lib/keyboard/layouts/en-intl.win.js +169 -0
  305. package/lib/keyboard/layouts/en-intl.win.js.map +1 -0
  306. package/lib/keyboard/layouts/en-uk.darwin.d.ts +2 -0
  307. package/lib/keyboard/layouts/en-uk.darwin.d.ts.map +1 -0
  308. package/lib/keyboard/layouts/en-uk.darwin.js +132 -0
  309. package/lib/keyboard/layouts/en-uk.darwin.js.map +1 -0
  310. package/lib/keyboard/layouts/en-uk.win.d.ts +2 -0
  311. package/lib/keyboard/layouts/en-uk.win.d.ts.map +1 -0
  312. package/lib/keyboard/layouts/en-uk.win.js +169 -0
  313. package/lib/keyboard/layouts/en-uk.win.js.map +1 -0
  314. package/lib/keyboard/layouts/en.darwin.d.ts +2 -0
  315. package/lib/keyboard/layouts/en.darwin.d.ts.map +1 -0
  316. package/lib/keyboard/layouts/en.darwin.js +140 -0
  317. package/lib/keyboard/layouts/en.darwin.js.map +1 -0
  318. package/lib/keyboard/layouts/en.linux.d.ts +2 -0
  319. package/lib/keyboard/layouts/en.linux.d.ts.map +1 -0
  320. package/lib/keyboard/layouts/en.linux.js +189 -0
  321. package/lib/keyboard/layouts/en.linux.js.map +1 -0
  322. package/lib/keyboard/layouts/en.win.d.ts +2 -0
  323. package/lib/keyboard/layouts/en.win.d.ts.map +1 -0
  324. package/lib/keyboard/layouts/en.win.js +174 -0
  325. package/lib/keyboard/layouts/en.win.js.map +1 -0
  326. package/lib/keyboard/layouts/es-latin.win.d.ts +2 -0
  327. package/lib/keyboard/layouts/es-latin.win.d.ts.map +1 -0
  328. package/lib/keyboard/layouts/es-latin.win.js +169 -0
  329. package/lib/keyboard/layouts/es-latin.win.js.map +1 -0
  330. package/lib/keyboard/layouts/es.darwin.d.ts +2 -0
  331. package/lib/keyboard/layouts/es.darwin.d.ts.map +1 -0
  332. package/lib/keyboard/layouts/es.darwin.js +132 -0
  333. package/lib/keyboard/layouts/es.darwin.js.map +1 -0
  334. package/lib/keyboard/layouts/es.linux.d.ts +2 -0
  335. package/lib/keyboard/layouts/es.linux.d.ts.map +1 -0
  336. package/lib/keyboard/layouts/es.linux.js +187 -0
  337. package/lib/keyboard/layouts/es.linux.js.map +1 -0
  338. package/lib/keyboard/layouts/es.win.d.ts +2 -0
  339. package/lib/keyboard/layouts/es.win.d.ts.map +1 -0
  340. package/lib/keyboard/layouts/es.win.js +169 -0
  341. package/lib/keyboard/layouts/es.win.js.map +1 -0
  342. package/lib/keyboard/layouts/fr.darwin.d.ts +2 -0
  343. package/lib/keyboard/layouts/fr.darwin.d.ts.map +1 -0
  344. package/lib/keyboard/layouts/fr.darwin.js +132 -0
  345. package/lib/keyboard/layouts/fr.darwin.js.map +1 -0
  346. package/lib/keyboard/layouts/fr.linux.d.ts +2 -0
  347. package/lib/keyboard/layouts/fr.linux.d.ts.map +1 -0
  348. package/lib/keyboard/layouts/fr.linux.js +187 -0
  349. package/lib/keyboard/layouts/fr.linux.js.map +1 -0
  350. package/lib/keyboard/layouts/fr.win.d.ts +2 -0
  351. package/lib/keyboard/layouts/fr.win.d.ts.map +1 -0
  352. package/lib/keyboard/layouts/fr.win.js +169 -0
  353. package/lib/keyboard/layouts/fr.win.js.map +1 -0
  354. package/lib/keyboard/layouts/hu.win.d.ts +2 -0
  355. package/lib/keyboard/layouts/hu.win.d.ts.map +1 -0
  356. package/lib/keyboard/layouts/hu.win.js +169 -0
  357. package/lib/keyboard/layouts/hu.win.js.map +1 -0
  358. package/lib/keyboard/layouts/it.darwin.d.ts +2 -0
  359. package/lib/keyboard/layouts/it.darwin.d.ts.map +1 -0
  360. package/lib/keyboard/layouts/it.darwin.js +132 -0
  361. package/lib/keyboard/layouts/it.darwin.js.map +1 -0
  362. package/lib/keyboard/layouts/it.win.d.ts +2 -0
  363. package/lib/keyboard/layouts/it.win.d.ts.map +1 -0
  364. package/lib/keyboard/layouts/it.win.js +169 -0
  365. package/lib/keyboard/layouts/it.win.js.map +1 -0
  366. package/lib/keyboard/layouts/jp-roman.darwin.d.ts +2 -0
  367. package/lib/keyboard/layouts/jp-roman.darwin.d.ts.map +1 -0
  368. package/lib/keyboard/layouts/jp-roman.darwin.js +132 -0
  369. package/lib/keyboard/layouts/jp-roman.darwin.js.map +1 -0
  370. package/lib/keyboard/layouts/jp.darwin.d.ts +2 -0
  371. package/lib/keyboard/layouts/jp.darwin.d.ts.map +1 -0
  372. package/lib/keyboard/layouts/jp.darwin.js +132 -0
  373. package/lib/keyboard/layouts/jp.darwin.js.map +1 -0
  374. package/lib/keyboard/layouts/ko.darwin.d.ts +2 -0
  375. package/lib/keyboard/layouts/ko.darwin.d.ts.map +1 -0
  376. package/lib/keyboard/layouts/ko.darwin.js +132 -0
  377. package/lib/keyboard/layouts/ko.darwin.js.map +1 -0
  378. package/lib/keyboard/layouts/layout.contribution.d.ts +3 -0
  379. package/lib/keyboard/layouts/layout.contribution.d.ts.map +1 -0
  380. package/lib/keyboard/layouts/layout.contribution.darwin.d.ts +2 -0
  381. package/lib/keyboard/layouts/layout.contribution.darwin.d.ts.map +1 -0
  382. package/lib/keyboard/layouts/layout.contribution.darwin.js +27 -0
  383. package/lib/keyboard/layouts/layout.contribution.darwin.js.map +1 -0
  384. package/lib/keyboard/layouts/layout.contribution.js +11 -0
  385. package/lib/keyboard/layouts/layout.contribution.js.map +1 -0
  386. package/lib/keyboard/layouts/layout.contribution.linux.d.ts +2 -0
  387. package/lib/keyboard/layouts/layout.contribution.linux.d.ts.map +1 -0
  388. package/lib/keyboard/layouts/layout.contribution.linux.js +16 -0
  389. package/lib/keyboard/layouts/layout.contribution.linux.js.map +1 -0
  390. package/lib/keyboard/layouts/layout.contribution.win.d.ts +2 -0
  391. package/lib/keyboard/layouts/layout.contribution.win.d.ts.map +1 -0
  392. package/lib/keyboard/layouts/layout.contribution.win.js +33 -0
  393. package/lib/keyboard/layouts/layout.contribution.win.js.map +1 -0
  394. package/lib/keyboard/layouts/no.win.d.ts +2 -0
  395. package/lib/keyboard/layouts/no.win.d.ts.map +1 -0
  396. package/lib/keyboard/layouts/no.win.js +169 -0
  397. package/lib/keyboard/layouts/no.win.js.map +1 -0
  398. package/lib/keyboard/layouts/pl.darwin.d.ts +2 -0
  399. package/lib/keyboard/layouts/pl.darwin.d.ts.map +1 -0
  400. package/lib/keyboard/layouts/pl.darwin.js +132 -0
  401. package/lib/keyboard/layouts/pl.darwin.js.map +1 -0
  402. package/lib/keyboard/layouts/pl.win.d.ts +2 -0
  403. package/lib/keyboard/layouts/pl.win.d.ts.map +1 -0
  404. package/lib/keyboard/layouts/pl.win.js +169 -0
  405. package/lib/keyboard/layouts/pl.win.js.map +1 -0
  406. package/lib/keyboard/layouts/pt-br.win.d.ts +2 -0
  407. package/lib/keyboard/layouts/pt-br.win.d.ts.map +1 -0
  408. package/lib/keyboard/layouts/pt-br.win.js +169 -0
  409. package/lib/keyboard/layouts/pt-br.win.js.map +1 -0
  410. package/lib/keyboard/layouts/pt.darwin.d.ts +2 -0
  411. package/lib/keyboard/layouts/pt.darwin.d.ts.map +1 -0
  412. package/lib/keyboard/layouts/pt.darwin.js +132 -0
  413. package/lib/keyboard/layouts/pt.darwin.js.map +1 -0
  414. package/lib/keyboard/layouts/pt.win.d.ts +2 -0
  415. package/lib/keyboard/layouts/pt.win.d.ts.map +1 -0
  416. package/lib/keyboard/layouts/pt.win.js +169 -0
  417. package/lib/keyboard/layouts/pt.win.js.map +1 -0
  418. package/lib/keyboard/layouts/ru.darwin.d.ts +2 -0
  419. package/lib/keyboard/layouts/ru.darwin.d.ts.map +1 -0
  420. package/lib/keyboard/layouts/ru.darwin.js +132 -0
  421. package/lib/keyboard/layouts/ru.darwin.js.map +1 -0
  422. package/lib/keyboard/layouts/ru.linux.d.ts +2 -0
  423. package/lib/keyboard/layouts/ru.linux.d.ts.map +1 -0
  424. package/lib/keyboard/layouts/ru.linux.js +187 -0
  425. package/lib/keyboard/layouts/ru.linux.js.map +1 -0
  426. package/lib/keyboard/layouts/ru.win.d.ts +2 -0
  427. package/lib/keyboard/layouts/ru.win.d.ts.map +1 -0
  428. package/lib/keyboard/layouts/ru.win.js +169 -0
  429. package/lib/keyboard/layouts/ru.win.js.map +1 -0
  430. package/lib/keyboard/layouts/sv.darwin.d.ts +2 -0
  431. package/lib/keyboard/layouts/sv.darwin.d.ts.map +1 -0
  432. package/lib/keyboard/layouts/sv.darwin.js +132 -0
  433. package/lib/keyboard/layouts/sv.darwin.js.map +1 -0
  434. package/lib/keyboard/layouts/sv.win.d.ts +2 -0
  435. package/lib/keyboard/layouts/sv.win.d.ts.map +1 -0
  436. package/lib/keyboard/layouts/sv.win.js +171 -0
  437. package/lib/keyboard/layouts/sv.win.js.map +1 -0
  438. package/lib/keyboard/layouts/thai.win.d.ts +2 -0
  439. package/lib/keyboard/layouts/thai.win.d.ts.map +1 -0
  440. package/lib/keyboard/layouts/thai.win.js +169 -0
  441. package/lib/keyboard/layouts/thai.win.js.map +1 -0
  442. package/lib/keyboard/layouts/tr.win.d.ts +2 -0
  443. package/lib/keyboard/layouts/tr.win.d.ts.map +1 -0
  444. package/lib/keyboard/layouts/tr.win.js +169 -0
  445. package/lib/keyboard/layouts/tr.win.js.map +1 -0
  446. package/lib/keyboard/layouts/zh-hans.darwin.d.ts +2 -0
  447. package/lib/keyboard/layouts/zh-hans.darwin.d.ts.map +1 -0
  448. package/lib/keyboard/layouts/zh-hans.darwin.js +132 -0
  449. package/lib/keyboard/layouts/zh-hans.darwin.js.map +1 -0
  450. package/lib/layout/accordion/tab-bar-toolbar.d.ts +25 -0
  451. package/lib/layout/accordion/tab-bar-toolbar.d.ts.map +1 -0
  452. package/lib/layout/accordion/tab-bar-toolbar.js +37 -0
  453. package/lib/layout/accordion/tab-bar-toolbar.js.map +1 -0
  454. package/lib/layout/accordion/view-context-key.registry.d.ts +9 -0
  455. package/lib/layout/accordion/view-context-key.registry.d.ts.map +1 -0
  456. package/lib/layout/accordion/view-context-key.registry.js +38 -0
  457. package/lib/layout/accordion/view-context-key.registry.js.map +1 -0
  458. package/lib/layout/index.d.ts +103 -0
  459. package/lib/layout/index.d.ts.map +1 -0
  460. package/lib/layout/index.js +143 -0
  461. package/lib/layout/index.js.map +1 -0
  462. package/lib/layout/layout-state.d.ts +24 -0
  463. package/lib/layout/layout-state.d.ts.map +1 -0
  464. package/lib/layout/layout-state.js +99 -0
  465. package/lib/layout/layout-state.js.map +1 -0
  466. package/lib/logger/browser-logger.d.ts +17 -0
  467. package/lib/logger/browser-logger.d.ts.map +1 -0
  468. package/lib/logger/browser-logger.js +50 -0
  469. package/lib/logger/browser-logger.js.map +1 -0
  470. package/lib/logger/index.d.ts +2 -0
  471. package/lib/logger/index.d.ts.map +1 -0
  472. package/lib/logger/index.js +5 -0
  473. package/lib/logger/index.js.map +1 -0
  474. package/lib/menu/next/base.d.ts +242 -0
  475. package/lib/menu/next/base.d.ts.map +1 -0
  476. package/lib/menu/next/base.js +267 -0
  477. package/lib/menu/next/base.js.map +1 -0
  478. package/lib/menu/next/ctxmenu-service.d.ts +42 -0
  479. package/lib/menu/next/ctxmenu-service.d.ts.map +1 -0
  480. package/lib/menu/next/ctxmenu-service.js +151 -0
  481. package/lib/menu/next/ctxmenu-service.js.map +1 -0
  482. package/lib/menu/next/index.d.ts +11 -0
  483. package/lib/menu/next/index.d.ts.map +1 -0
  484. package/lib/menu/next/index.js +14 -0
  485. package/lib/menu/next/index.js.map +1 -0
  486. package/lib/menu/next/menu-id.d.ts +59 -0
  487. package/lib/menu/next/menu-id.d.ts.map +1 -0
  488. package/lib/menu/next/menu-id.js +73 -0
  489. package/lib/menu/next/menu-id.js.map +1 -0
  490. package/lib/menu/next/menu-service.d.ts +9 -0
  491. package/lib/menu/next/menu-service.d.ts.map +1 -0
  492. package/lib/menu/next/menu-service.js +205 -0
  493. package/lib/menu/next/menu-service.js.map +1 -0
  494. package/lib/menu/next/menu-util.d.ts +18 -0
  495. package/lib/menu/next/menu-util.d.ts.map +1 -0
  496. package/lib/menu/next/menu-util.js +64 -0
  497. package/lib/menu/next/menu-util.js.map +1 -0
  498. package/lib/menu/next/menu.contrib.interface.d.ts +22 -0
  499. package/lib/menu/next/menu.contrib.interface.d.ts.map +1 -0
  500. package/lib/menu/next/menu.contrib.interface.js +9 -0
  501. package/lib/menu/next/menu.contrib.interface.js.map +1 -0
  502. package/lib/menu/next/menu.interface.d.ts +100 -0
  503. package/lib/menu/next/menu.interface.d.ts.map +1 -0
  504. package/lib/menu/next/menu.interface.js +192 -0
  505. package/lib/menu/next/menu.interface.js.map +1 -0
  506. package/lib/menu/next/menubar-service.d.ts +53 -0
  507. package/lib/menu/next/menubar-service.d.ts.map +1 -0
  508. package/lib/menu/next/menubar-service.js +178 -0
  509. package/lib/menu/next/menubar-service.js.map +1 -0
  510. package/lib/menu/next/renderer/ctxmenu/base.d.ts +19 -0
  511. package/lib/menu/next/renderer/ctxmenu/base.d.ts.map +1 -0
  512. package/lib/menu/next/renderer/ctxmenu/base.js +7 -0
  513. package/lib/menu/next/renderer/ctxmenu/base.js.map +1 -0
  514. package/lib/menu/next/renderer/ctxmenu/browser.d.ts +19 -0
  515. package/lib/menu/next/renderer/ctxmenu/browser.d.ts.map +1 -0
  516. package/lib/menu/next/renderer/ctxmenu/browser.js +40 -0
  517. package/lib/menu/next/renderer/ctxmenu/browser.js.map +1 -0
  518. package/lib/menu/next/renderer/ctxmenu/electron.d.ts +34 -0
  519. package/lib/menu/next/renderer/ctxmenu/electron.d.ts.map +1 -0
  520. package/lib/menu/next/renderer/ctxmenu/electron.js +198 -0
  521. package/lib/menu/next/renderer/ctxmenu/electron.js.map +1 -0
  522. package/lib/menu/next/toolbar-action.service.d.ts +50 -0
  523. package/lib/menu/next/toolbar-action.service.d.ts.map +1 -0
  524. package/lib/menu/next/toolbar-action.service.js +93 -0
  525. package/lib/menu/next/toolbar-action.service.js.map +1 -0
  526. package/lib/monaco/index.d.ts +99 -0
  527. package/lib/monaco/index.d.ts.map +1 -0
  528. package/lib/monaco/index.js +32 -0
  529. package/lib/monaco/index.js.map +1 -0
  530. package/lib/opener/command-opener.d.ts +12 -0
  531. package/lib/opener/command-opener.d.ts.map +1 -0
  532. package/lib/opener/command-opener.js +49 -0
  533. package/lib/opener/command-opener.js.map +1 -0
  534. package/lib/opener/default-opener.d.ts +8 -0
  535. package/lib/opener/default-opener.d.ts.map +1 -0
  536. package/lib/opener/default-opener.js +32 -0
  537. package/lib/opener/default-opener.js.map +1 -0
  538. package/lib/opener/http-opener.d.ts +9 -0
  539. package/lib/opener/http-opener.d.ts.map +1 -0
  540. package/lib/opener/http-opener.js +33 -0
  541. package/lib/opener/http-opener.js.map +1 -0
  542. package/lib/opener/index.d.ts +16 -0
  543. package/lib/opener/index.d.ts.map +1 -0
  544. package/lib/opener/index.js +6 -0
  545. package/lib/opener/index.js.map +1 -0
  546. package/lib/opener/opener.contribution.d.ts +14 -0
  547. package/lib/opener/opener.contribution.d.ts.map +1 -0
  548. package/lib/opener/opener.contribution.js +63 -0
  549. package/lib/opener/opener.contribution.js.map +1 -0
  550. package/lib/opener/opener.service.d.ts +14 -0
  551. package/lib/opener/opener.service.d.ts.map +1 -0
  552. package/lib/opener/opener.service.js +67 -0
  553. package/lib/opener/opener.service.js.map +1 -0
  554. package/lib/preferences/early-preferences.d.ts +24 -0
  555. package/lib/preferences/early-preferences.d.ts.map +1 -0
  556. package/lib/preferences/early-preferences.js +96 -0
  557. package/lib/preferences/early-preferences.js.map +1 -0
  558. package/lib/preferences/index.d.ts +9 -0
  559. package/lib/preferences/index.d.ts.map +1 -0
  560. package/lib/preferences/index.js +12 -0
  561. package/lib/preferences/index.js.map +1 -0
  562. package/lib/preferences/preference-configurations.d.ts +22 -0
  563. package/lib/preferences/preference-configurations.d.ts.map +1 -0
  564. package/lib/preferences/preference-configurations.js +68 -0
  565. package/lib/preferences/preference-configurations.js.map +1 -0
  566. package/lib/preferences/preference-contribution.d.ts +82 -0
  567. package/lib/preferences/preference-contribution.d.ts.map +1 -0
  568. package/lib/preferences/preference-contribution.js +325 -0
  569. package/lib/preferences/preference-contribution.js.map +1 -0
  570. package/lib/preferences/preference-provider.d.ts +117 -0
  571. package/lib/preferences/preference-provider.d.ts.map +1 -0
  572. package/lib/preferences/preference-provider.js +275 -0
  573. package/lib/preferences/preference-provider.js.map +1 -0
  574. package/lib/preferences/preference-proxy.d.ts +45 -0
  575. package/lib/preferences/preference-proxy.d.ts.map +1 -0
  576. package/lib/preferences/preference-proxy.js +195 -0
  577. package/lib/preferences/preference-proxy.js.map +1 -0
  578. package/lib/preferences/preference-scope.d.ts +3 -0
  579. package/lib/preferences/preference-scope.d.ts.map +1 -0
  580. package/lib/preferences/preference-scope.js +6 -0
  581. package/lib/preferences/preference-scope.js.map +1 -0
  582. package/lib/preferences/preference-service.d.ts +194 -0
  583. package/lib/preferences/preference-service.d.ts.map +1 -0
  584. package/lib/preferences/preference-service.js +425 -0
  585. package/lib/preferences/preference-service.js.map +1 -0
  586. package/lib/preferences/settings.d.ts +41 -0
  587. package/lib/preferences/settings.d.ts.map +1 -0
  588. package/lib/preferences/settings.js +5 -0
  589. package/lib/preferences/settings.js.map +1 -0
  590. package/lib/progress/index.d.ts +36 -0
  591. package/lib/progress/index.d.ts.map +1 -0
  592. package/lib/progress/index.js +10 -0
  593. package/lib/progress/index.js.map +1 -0
  594. package/lib/progress/progress-bar.d.ts +7 -0
  595. package/lib/progress/progress-bar.d.ts.map +1 -0
  596. package/lib/progress/progress-bar.js +14 -0
  597. package/lib/progress/progress-bar.js.map +1 -0
  598. package/lib/progress/progress-indicator.d.ts +12 -0
  599. package/lib/progress/progress-indicator.d.ts.map +1 -0
  600. package/lib/progress/progress-indicator.js +106 -0
  601. package/lib/progress/progress-indicator.js.map +1 -0
  602. package/lib/progress/progress.module.less +40 -0
  603. package/lib/progress/progress.service.d.ts +19 -0
  604. package/lib/progress/progress.service.d.ts.map +1 -0
  605. package/lib/progress/progress.service.js +343 -0
  606. package/lib/progress/progress.service.js.map +1 -0
  607. package/lib/quick-open/index.d.ts +467 -0
  608. package/lib/quick-open/index.d.ts.map +1 -0
  609. package/lib/quick-open/index.js +145 -0
  610. package/lib/quick-open/index.js.map +1 -0
  611. package/lib/quick-open/recent-files.d.ts +11 -0
  612. package/lib/quick-open/recent-files.d.ts.map +1 -0
  613. package/lib/quick-open/recent-files.js +73 -0
  614. package/lib/quick-open/recent-files.js.map +1 -0
  615. package/lib/raw-context-key.d.ts +57 -0
  616. package/lib/raw-context-key.d.ts.map +1 -0
  617. package/lib/raw-context-key.js +96 -0
  618. package/lib/raw-context-key.js.map +1 -0
  619. package/lib/react-hooks/event.d.ts +11 -0
  620. package/lib/react-hooks/event.d.ts.map +1 -0
  621. package/lib/react-hooks/event.js +64 -0
  622. package/lib/react-hooks/event.js.map +1 -0
  623. package/lib/react-hooks/hot-key.d.ts +5 -0
  624. package/lib/react-hooks/hot-key.d.ts.map +1 -0
  625. package/lib/react-hooks/hot-key.js +48 -0
  626. package/lib/react-hooks/hot-key.js.map +1 -0
  627. package/lib/react-hooks/index.d.ts +4 -0
  628. package/lib/react-hooks/index.d.ts.map +1 -0
  629. package/lib/react-hooks/index.js +7 -0
  630. package/lib/react-hooks/index.js.map +1 -0
  631. package/lib/react-hooks/injectable-hooks.d.ts +3 -0
  632. package/lib/react-hooks/injectable-hooks.d.ts.map +1 -0
  633. package/lib/react-hooks/injectable-hooks.js +33 -0
  634. package/lib/react-hooks/injectable-hooks.js.map +1 -0
  635. package/lib/react-hooks/portal-hooks.d.ts +2 -0
  636. package/lib/react-hooks/portal-hooks.d.ts.map +1 -0
  637. package/lib/react-hooks/portal-hooks.js +36 -0
  638. package/lib/react-hooks/portal-hooks.js.map +1 -0
  639. package/lib/react-providers/config-provider.d.ts +182 -0
  640. package/lib/react-providers/config-provider.d.ts.map +1 -0
  641. package/lib/react-providers/config-provider.js +24 -0
  642. package/lib/react-providers/config-provider.js.map +1 -0
  643. package/lib/react-providers/index.d.ts +3 -0
  644. package/lib/react-providers/index.d.ts.map +1 -0
  645. package/lib/react-providers/index.js +6 -0
  646. package/lib/react-providers/index.js.map +1 -0
  647. package/lib/react-providers/slot.d.ts +73 -0
  648. package/lib/react-providers/slot.d.ts.map +1 -0
  649. package/lib/react-providers/slot.js +184 -0
  650. package/lib/react-providers/slot.js.map +1 -0
  651. package/lib/services/clipboard.service.d.ts +17 -0
  652. package/lib/services/clipboard.service.d.ts.map +1 -0
  653. package/lib/services/clipboard.service.js +57 -0
  654. package/lib/services/clipboard.service.js.map +1 -0
  655. package/lib/services/credentials-service.d.ts +36 -0
  656. package/lib/services/credentials-service.d.ts.map +1 -0
  657. package/lib/services/credentials-service.js +62 -0
  658. package/lib/services/credentials-service.js.map +1 -0
  659. package/lib/services/cryptr-service.d.ts +11 -0
  660. package/lib/services/cryptr-service.d.ts.map +1 -0
  661. package/lib/services/cryptr-service.js +24 -0
  662. package/lib/services/cryptr-service.js.map +1 -0
  663. package/lib/services/external-uri.service.d.ts +28 -0
  664. package/lib/services/external-uri.service.d.ts.map +1 -0
  665. package/lib/services/external-uri.service.js +58 -0
  666. package/lib/services/external-uri.service.js.map +1 -0
  667. package/lib/services/index.d.ts +8 -0
  668. package/lib/services/index.d.ts.map +1 -0
  669. package/lib/services/index.js +11 -0
  670. package/lib/services/index.js.map +1 -0
  671. package/lib/services/label-service.d.ts +74 -0
  672. package/lib/services/label-service.d.ts.map +1 -0
  673. package/lib/services/label-service.js +306 -0
  674. package/lib/services/label-service.js.map +1 -0
  675. package/lib/services/status-bar-service.d.ts +86 -0
  676. package/lib/services/status-bar-service.d.ts.map +1 -0
  677. package/lib/services/status-bar-service.js +25 -0
  678. package/lib/services/status-bar-service.js.map +1 -0
  679. package/lib/services/storage-service.d.ts +72 -0
  680. package/lib/services/storage-service.d.ts.map +1 -0
  681. package/lib/services/storage-service.js +128 -0
  682. package/lib/services/storage-service.js.map +1 -0
  683. package/lib/style/codicons/README.md +32 -0
  684. package/lib/style/codicons/codicon-animations.css +15 -0
  685. package/lib/style/entry.less +25 -0
  686. package/lib/style/icon/fileicons/file-default.svg +1 -0
  687. package/lib/style/icon/fileicons/folder-default.svg +1 -0
  688. package/lib/style/icon/fileicons.less +9 -0
  689. package/lib/style/icon/icon.d.ts +19 -0
  690. package/lib/style/icon/icon.d.ts.map +1 -0
  691. package/lib/style/icon/icon.js +64 -0
  692. package/lib/style/icon/icon.js.map +1 -0
  693. package/lib/style/icon/ide-iconfont.d.ts +5 -0
  694. package/lib/style/icon/ide-iconfont.d.ts.map +1 -0
  695. package/lib/style/icon/ide-iconfont.js +10 -0
  696. package/lib/style/icon/ide-iconfont.js.map +1 -0
  697. package/lib/style/icon/index.less +54 -0
  698. package/lib/style/icon/seti.woff +0 -0
  699. package/lib/style/icon/symbol-icons/boolean-dark.svg +3 -0
  700. package/lib/style/icon/symbol-icons/boolean-light.svg +3 -0
  701. package/lib/style/icon/symbol-icons/class-dark.svg +3 -0
  702. package/lib/style/icon/symbol-icons/class-light.svg +3 -0
  703. package/lib/style/icon/symbol-icons/constant-dark.svg +4 -0
  704. package/lib/style/icon/symbol-icons/constant-light.svg +4 -0
  705. package/lib/style/icon/symbol-icons/enumerator-dark.svg +3 -0
  706. package/lib/style/icon/symbol-icons/enumerator-item-dark.svg +3 -0
  707. package/lib/style/icon/symbol-icons/enumerator-item-light.svg +3 -0
  708. package/lib/style/icon/symbol-icons/enumerator-light.svg +3 -0
  709. package/lib/style/icon/symbol-icons/event-dark.svg +3 -0
  710. package/lib/style/icon/symbol-icons/event-light.svg +3 -0
  711. package/lib/style/icon/symbol-icons/field-dark.svg +3 -0
  712. package/lib/style/icon/symbol-icons/field-light.svg +3 -0
  713. package/lib/style/icon/symbol-icons/file-dark.svg +3 -0
  714. package/lib/style/icon/symbol-icons/file-light.svg +3 -0
  715. package/lib/style/icon/symbol-icons/indexer-dark.svg +3 -0
  716. package/lib/style/icon/symbol-icons/indexer-light.svg +3 -0
  717. package/lib/style/icon/symbol-icons/interface-dark.svg +3 -0
  718. package/lib/style/icon/symbol-icons/interface-light.svg +3 -0
  719. package/lib/style/icon/symbol-icons/keyword-dark.svg +3 -0
  720. package/lib/style/icon/symbol-icons/keyword-light.svg +3 -0
  721. package/lib/style/icon/symbol-icons/method-dark.svg +3 -0
  722. package/lib/style/icon/symbol-icons/method-light.svg +3 -0
  723. package/lib/style/icon/symbol-icons/namespace-dark.svg +3 -0
  724. package/lib/style/icon/symbol-icons/namespace-light.svg +3 -0
  725. package/lib/style/icon/symbol-icons/numeric-dark.svg +3 -0
  726. package/lib/style/icon/symbol-icons/numeric-light.svg +3 -0
  727. package/lib/style/icon/symbol-icons/operator-dark.svg +3 -0
  728. package/lib/style/icon/symbol-icons/operator-light.svg +3 -0
  729. package/lib/style/icon/symbol-icons/property-dark.svg +3 -0
  730. package/lib/style/icon/symbol-icons/property-light.svg +3 -0
  731. package/lib/style/icon/symbol-icons/snippet-dark.svg +3 -0
  732. package/lib/style/icon/symbol-icons/snippet-light.svg +3 -0
  733. package/lib/style/icon/symbol-icons/string-dark.svg +3 -0
  734. package/lib/style/icon/symbol-icons/string-light.svg +3 -0
  735. package/lib/style/icon/symbol-icons/structure-dark.svg +3 -0
  736. package/lib/style/icon/symbol-icons/structure-light.svg +3 -0
  737. package/lib/style/icon/symbol-icons/symbol-icons.css +284 -0
  738. package/lib/style/icon/symbol-icons/template-dark.svg +3 -0
  739. package/lib/style/icon/symbol-icons/template-light.svg +3 -0
  740. package/lib/style/icon/symbol-icons/variable-dark.svg +3 -0
  741. package/lib/style/icon/symbol-icons/variable-light.svg +3 -0
  742. package/lib/style/icon.less +8 -0
  743. package/lib/style/index.less +14 -0
  744. package/lib/style/monaco-override.less +86 -0
  745. package/lib/style/normalize.less +89 -0
  746. package/lib/style/octicons/octicons-cdn.css +269 -0
  747. package/lib/style/octicons/octicons.css +263 -0
  748. package/lib/style/octicons/octicons.html +1882 -0
  749. package/lib/style/octicons/octicons.svg +582 -0
  750. package/lib/style/octicons/octicons.ttf +0 -0
  751. package/lib/style/override.less +80 -0
  752. package/lib/style/toolbar.less +193 -0
  753. package/lib/style/utilities.less +18 -0
  754. package/lib/style/variable.less +16 -0
  755. package/lib/toolbar/components/auto-complete.d.ts +1 -0
  756. package/lib/toolbar/components/auto-complete.d.ts.map +1 -0
  757. package/lib/toolbar/components/auto-complete.js +2 -0
  758. package/lib/toolbar/components/auto-complete.js.map +1 -0
  759. package/lib/toolbar/components/button.d.ts +11 -0
  760. package/lib/toolbar/components/button.d.ts.map +1 -0
  761. package/lib/toolbar/components/button.js +324 -0
  762. package/lib/toolbar/components/button.js.map +1 -0
  763. package/lib/toolbar/components/index.d.ts +3 -0
  764. package/lib/toolbar/components/index.d.ts.map +1 -0
  765. package/lib/toolbar/components/index.js +6 -0
  766. package/lib/toolbar/components/index.js.map +1 -0
  767. package/lib/toolbar/components/select.d.ts +5 -0
  768. package/lib/toolbar/components/select.d.ts.map +1 -0
  769. package/lib/toolbar/components/select.js +161 -0
  770. package/lib/toolbar/components/select.js.map +1 -0
  771. package/lib/toolbar/index.d.ts +4 -0
  772. package/lib/toolbar/index.d.ts.map +1 -0
  773. package/lib/toolbar/index.js +9 -0
  774. package/lib/toolbar/index.js.map +1 -0
  775. package/lib/toolbar/toolbar.d.ts +17 -0
  776. package/lib/toolbar/toolbar.d.ts.map +1 -0
  777. package/lib/toolbar/toolbar.js +508 -0
  778. package/lib/toolbar/toolbar.js.map +1 -0
  779. package/lib/toolbar/toolbar.popover.registry.d.ts +11 -0
  780. package/lib/toolbar/toolbar.popover.registry.d.ts.map +1 -0
  781. package/lib/toolbar/toolbar.popover.registry.js +36 -0
  782. package/lib/toolbar/toolbar.popover.registry.js.map +1 -0
  783. package/lib/toolbar/toolbar.registry.d.ts +46 -0
  784. package/lib/toolbar/toolbar.registry.d.ts.map +1 -0
  785. package/lib/toolbar/toolbar.registry.js +283 -0
  786. package/lib/toolbar/toolbar.registry.js.map +1 -0
  787. package/lib/toolbar/types.d.ts +286 -0
  788. package/lib/toolbar/types.d.ts.map +1 -0
  789. package/lib/toolbar/types.js +18 -0
  790. package/lib/toolbar/types.js.map +1 -0
  791. package/lib/tree/index.d.ts +4 -0
  792. package/lib/tree/index.d.ts.map +1 -0
  793. package/lib/tree/index.js +7 -0
  794. package/lib/tree/index.js.map +1 -0
  795. package/lib/tree/tree-expansion.d.ts +16 -0
  796. package/lib/tree/tree-expansion.d.ts.map +1 -0
  797. package/lib/tree/tree-expansion.js +20 -0
  798. package/lib/tree/tree-expansion.js.map +1 -0
  799. package/lib/tree/tree-selection.d.ts +48 -0
  800. package/lib/tree/tree-selection.d.ts.map +1 -0
  801. package/lib/tree/tree-selection.js +64 -0
  802. package/lib/tree/tree-selection.js.map +1 -0
  803. package/lib/tree/tree.d.ts +195 -0
  804. package/lib/tree/tree.d.ts.map +1 -0
  805. package/lib/tree/tree.js +108 -0
  806. package/lib/tree/tree.js.map +1 -0
  807. package/lib/utils/create-overlay.d.ts +8 -0
  808. package/lib/utils/create-overlay.d.ts.map +1 -0
  809. package/lib/utils/create-overlay.js +50 -0
  810. package/lib/utils/create-overlay.js.map +1 -0
  811. package/lib/utils/electron.d.ts +23 -0
  812. package/lib/utils/electron.d.ts.map +1 -0
  813. package/lib/utils/electron.js +56 -0
  814. package/lib/utils/electron.js.map +1 -0
  815. package/lib/utils/env.d.ts +4 -0
  816. package/lib/utils/env.d.ts.map +1 -0
  817. package/lib/utils/env.js +31 -0
  818. package/lib/utils/env.js.map +1 -0
  819. package/lib/utils/icon.d.ts +7 -0
  820. package/lib/utils/icon.d.ts.map +1 -0
  821. package/lib/utils/icon.js +18 -0
  822. package/lib/utils/icon.js.map +1 -0
  823. package/lib/utils/index.d.ts +6 -0
  824. package/lib/utils/index.d.ts.map +1 -0
  825. package/lib/utils/index.js +9 -0
  826. package/lib/utils/index.js.map +1 -0
  827. package/lib/utils/parse.d.ts +25 -0
  828. package/lib/utils/parse.d.ts.map +1 -0
  829. package/lib/utils/parse.js +72 -0
  830. package/lib/utils/parse.js.map +1 -0
  831. package/lib/utils/react-hooks.d.ts +12 -0
  832. package/lib/utils/react-hooks.d.ts.map +1 -0
  833. package/lib/utils/react-hooks.js +84 -0
  834. package/lib/utils/react-hooks.js.map +1 -0
  835. package/lib/variable/index.d.ts +2 -0
  836. package/lib/variable/index.d.ts.map +1 -0
  837. package/lib/variable/index.js +5 -0
  838. package/lib/variable/index.js.map +1 -0
  839. package/lib/variable/variable.d.ts +49 -0
  840. package/lib/variable/variable.d.ts.map +1 -0
  841. package/lib/variable/variable.js +56 -0
  842. package/lib/variable/variable.js.map +1 -0
  843. package/lib/window/index.d.ts +25 -0
  844. package/lib/window/index.d.ts.map +1 -0
  845. package/lib/window/index.js +5 -0
  846. package/lib/window/index.js.map +1 -0
  847. package/lib/window/window.service.d.ts +14 -0
  848. package/lib/window/window.service.d.ts.map +1 -0
  849. package/lib/window/window.service.js +103 -0
  850. package/lib/window/window.service.js.map +1 -0
  851. package/package.json +55 -0
@@ -0,0 +1,325 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DefaultPreferenceProvider = exports.PreferenceSchemaProvider = exports.OVERRIDE_PROPERTY_PATTERN = exports.OverridePreferenceName = exports.injectPreferenceSchemaProvider = exports.PreferenceContribution = exports.PreferenceDataProperty = exports.PreferenceSchemaProperties = exports.PreferenceSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ajv_1 = (0, tslib_1.__importDefault)(require("ajv"));
6
+ const di_1 = require("@opensumi/di");
7
+ const ide_core_common_1 = require("@opensumi/ide-core-common");
8
+ const preference_scope_1 = require("./preference-scope");
9
+ const preference_provider_1 = require("./preference-provider");
10
+ const preference_schema_1 = require("@opensumi/ide-core-common/lib/preferences/preference-schema");
11
+ Object.defineProperty(exports, "PreferenceSchema", { enumerable: true, get: function () { return preference_schema_1.PreferenceSchema; } });
12
+ Object.defineProperty(exports, "PreferenceSchemaProperties", { enumerable: true, get: function () { return preference_schema_1.PreferenceSchemaProperties; } });
13
+ Object.defineProperty(exports, "PreferenceDataProperty", { enumerable: true, get: function () { return preference_schema_1.PreferenceDataProperty; } });
14
+ const preference_configurations_1 = require("./preference-configurations");
15
+ const react_providers_1 = require("../react-providers");
16
+ exports.PreferenceContribution = Symbol('PreferenceContribution');
17
+ function injectPreferenceSchemaProvider(injector) {
18
+ (0, preference_configurations_1.injectPreferenceConfigurations)(injector);
19
+ injector.addProviders({
20
+ token: PreferenceSchemaProvider,
21
+ useClass: PreferenceSchemaProvider,
22
+ });
23
+ injector.addProviders({
24
+ token: preference_provider_1.PreferenceProvider,
25
+ tag: preference_scope_1.PreferenceScope.Default,
26
+ useClass: DefaultPreferenceProvider,
27
+ });
28
+ }
29
+ exports.injectPreferenceSchemaProvider = injectPreferenceSchemaProvider;
30
+ var OverridePreferenceName;
31
+ (function (OverridePreferenceName) {
32
+ function is(arg) {
33
+ return !!arg && typeof arg === 'object' && 'preferenceName' in arg && 'overrideIdentifier' in arg;
34
+ }
35
+ OverridePreferenceName.is = is;
36
+ })(OverridePreferenceName = exports.OverridePreferenceName || (exports.OverridePreferenceName = {}));
37
+ const OVERRIDE_PROPERTY = '\\[(.*)\\]$';
38
+ exports.OVERRIDE_PROPERTY_PATTERN = new RegExp(OVERRIDE_PROPERTY);
39
+ let PreferenceSchemaProvider = class PreferenceSchemaProvider extends preference_provider_1.PreferenceProvider {
40
+ constructor() {
41
+ super();
42
+ this.preferences = {};
43
+ this.combinedSchema = { properties: {}, patternProperties: {} };
44
+ this.onDidPreferenceSchemaChangedEmitter = new ide_core_common_1.Emitter();
45
+ this.onDidPreferenceSchemaChanged = this.onDidPreferenceSchemaChangedEmitter.event;
46
+ this.validationFunctions = new Map();
47
+ this.unsupportedPreferences = new Set();
48
+ this.init();
49
+ this.toDispose.push(ide_core_common_1.Disposable.create(() => {
50
+ this.preferences = {};
51
+ this.validationFunctions.clear();
52
+ this.combinedSchema = { properties: {}, patternProperties: {} };
53
+ }));
54
+ this.toDispose.push(this.onDidPreferenceSchemaChangedEmitter);
55
+ }
56
+ fireDidPreferenceSchemaChanged() {
57
+ this.onDidPreferenceSchemaChangedEmitter.fire(undefined);
58
+ }
59
+ get validateFunction() {
60
+ if (!this._validateFunction) {
61
+ this.doUpdateValidate();
62
+ }
63
+ return this._validateFunction;
64
+ }
65
+ init() {
66
+ var _a;
67
+ (_a = this.preferenceContributions) === null || _a === void 0 ? void 0 : _a.getContributions().forEach((contrib) => {
68
+ this.doSetSchema(contrib.schema);
69
+ });
70
+ this.combinedSchema.additionalProperties = false;
71
+ this.updateValidate();
72
+ this.onDidPreferencesChanged(() => this.updateValidate());
73
+ this._ready.resolve();
74
+ }
75
+ doUnsetSchema(changes) {
76
+ const inverseChanges = [];
77
+ for (const change of changes) {
78
+ const preferenceName = change.preferenceName;
79
+ const newValue = change.oldValue;
80
+ const oldValue = change.newValue;
81
+ const { scope, domain } = change;
82
+ const inverseChange = { preferenceName, oldValue, scope, domain };
83
+ delete this.combinedSchema.properties[preferenceName];
84
+ if (typeof newValue === undefined) {
85
+ delete this.preferences[preferenceName];
86
+ }
87
+ else {
88
+ inverseChange.newValue = newValue;
89
+ this.preferences[preferenceName] = newValue;
90
+ }
91
+ inverseChanges.push(inverseChange);
92
+ }
93
+ return inverseChanges;
94
+ }
95
+ doSetSchema(schema, override) {
96
+ const scope = preference_scope_1.PreferenceScope.Default;
97
+ const domain = this.getDomain();
98
+ const changes = [];
99
+ const defaultScope = preference_schema_1.PreferenceSchema.getDefaultScope(schema);
100
+ const overridable = schema.overridable || false;
101
+ for (const preferenceName of Object.keys(schema.properties)) {
102
+ if (this.combinedSchema.properties[preferenceName] && !override) {
103
+ this.logger.error('Preference name collision detected in the schema for property: ' + preferenceName);
104
+ continue;
105
+ }
106
+ else {
107
+ const schemaProps = preference_schema_1.PreferenceDataProperty.fromPreferenceSchemaProperty(schema.properties[preferenceName], defaultScope);
108
+ if (typeof schemaProps.overridable !== 'boolean' && overridable) {
109
+ schemaProps.overridable = true;
110
+ }
111
+ this.combinedSchema.properties[preferenceName] = schemaProps;
112
+ this.unsupportedPreferences.delete(preferenceName);
113
+ const value = schemaProps.defaultValue = this.getDefaultValue(schemaProps, preferenceName);
114
+ changes.push(this.doSetPreferenceValue(preferenceName, value, { scope, domain }));
115
+ }
116
+ }
117
+ return changes;
118
+ }
119
+ doSetPreferenceValue(preferenceName, newValue, { scope, domain }) {
120
+ const oldValue = this.preferences[preferenceName];
121
+ this.preferences[preferenceName] = newValue;
122
+ return { preferenceName, oldValue, newValue, scope, domain };
123
+ }
124
+ getDefaultValue(property, preferenceName) {
125
+ if (preferenceName && this.appConfig.defaultPreferences && preferenceName in this.appConfig.defaultPreferences) {
126
+ return this.appConfig.defaultPreferences[preferenceName];
127
+ }
128
+ if (property.defaultValue !== undefined) {
129
+ return property.defaultValue;
130
+ }
131
+ if (property.default !== undefined) {
132
+ return property.default;
133
+ }
134
+ const type = Array.isArray(property.type) ? property.type[0] : property.type;
135
+ switch (type) {
136
+ case 'boolean':
137
+ return false;
138
+ case 'integer':
139
+ case 'number':
140
+ return 0;
141
+ case 'string':
142
+ return '';
143
+ case 'array':
144
+ return [];
145
+ case 'object':
146
+ return {};
147
+ }
148
+ return null;
149
+ }
150
+ updateValidate() {
151
+ this._validateFunction = undefined;
152
+ }
153
+ doUpdateValidate() {
154
+ const schema = Object.assign(Object.assign({}, this.combinedSchema), { properties: Object.assign({}, this.combinedSchema.properties) });
155
+ for (const sectionName of this.configurations.getSectionNames()) {
156
+ delete schema.properties[sectionName];
157
+ }
158
+ this._validateFunction = new ajv_1.default().compile(schema);
159
+ }
160
+ validate(name, value) {
161
+ if (this.configurations.isSectionName(name)) {
162
+ return { valid: true };
163
+ }
164
+ // 对于不存在的先过
165
+ if (!this.getPreferenceProperty(name)) {
166
+ return { valid: true };
167
+ }
168
+ if (!this.validationFunctions.has(name)) {
169
+ this.validationFunctions.set(name, new ajv_1.default().compile(this.getPreferenceProperty(name)));
170
+ }
171
+ // 验证是否合并schema配置
172
+ const validationFn = this.validationFunctions.get(name);
173
+ const result = validationFn(value);
174
+ if (!result && !(name in this.combinedSchema.properties)) {
175
+ // 避免每次发生变化时重复提示警告
176
+ if (!this.unsupportedPreferences.has(name)) {
177
+ this.unsupportedPreferences.add(name);
178
+ this.logger.warn(`"${name}" preference is not supported`);
179
+ }
180
+ }
181
+ const errorReason = validationFn.errors && validationFn.errors[0] ? normalizeAjvValidationError(validationFn.errors[0]) : undefined;
182
+ return { valid: result, reason: errorReason };
183
+ }
184
+ getCombinedSchema() {
185
+ return this.combinedSchema;
186
+ }
187
+ setSchema(schema, override) {
188
+ const changes = this.doSetSchema(schema, override);
189
+ if (!changes.length) {
190
+ return ide_core_common_1.Disposable.NULL;
191
+ }
192
+ this.fireDidPreferenceSchemaChanged();
193
+ this.emitPreferencesChangedEvent(changes);
194
+ return ide_core_common_1.Disposable.create(() => {
195
+ const inverseChanges = this.doUnsetSchema(changes);
196
+ if (!inverseChanges.length) {
197
+ return;
198
+ }
199
+ this.fireDidPreferenceSchemaChanged();
200
+ this.emitPreferencesChangedEvent(inverseChanges);
201
+ });
202
+ }
203
+ getPreferences() {
204
+ return this.preferences;
205
+ }
206
+ getLanguagePreferences(resourceUri) {
207
+ return {};
208
+ }
209
+ async doSetPreference() {
210
+ return false;
211
+ }
212
+ isValidInScope(preferenceName, scope) {
213
+ const preference = this.getPreferenceProperty(preferenceName);
214
+ if (preference) {
215
+ return preference.scope >= scope;
216
+ }
217
+ return false;
218
+ }
219
+ *getPreferenceNames() {
220
+ // tslint:disable-next-line:forin
221
+ for (const preferenceName in this.combinedSchema.properties) {
222
+ yield preferenceName;
223
+ }
224
+ }
225
+ getPreferenceProperty(preferenceName) {
226
+ return this.combinedSchema.properties[preferenceName];
227
+ }
228
+ };
229
+ (0, tslib_1.__decorate)([
230
+ (0, di_1.Autowired)(exports.PreferenceContribution),
231
+ (0, tslib_1.__metadata)("design:type", Object)
232
+ ], PreferenceSchemaProvider.prototype, "preferenceContributions", void 0);
233
+ (0, tslib_1.__decorate)([
234
+ (0, di_1.Autowired)(preference_configurations_1.PreferenceConfigurations),
235
+ (0, tslib_1.__metadata)("design:type", preference_configurations_1.PreferenceConfigurations)
236
+ ], PreferenceSchemaProvider.prototype, "configurations", void 0);
237
+ (0, tslib_1.__decorate)([
238
+ (0, di_1.Autowired)(ide_core_common_1.ILogger),
239
+ (0, tslib_1.__metadata)("design:type", Object)
240
+ ], PreferenceSchemaProvider.prototype, "logger", void 0);
241
+ (0, tslib_1.__decorate)([
242
+ (0, di_1.Autowired)(react_providers_1.AppConfig),
243
+ (0, tslib_1.__metadata)("design:type", Object)
244
+ ], PreferenceSchemaProvider.prototype, "appConfig", void 0);
245
+ PreferenceSchemaProvider = (0, tslib_1.__decorate)([
246
+ (0, di_1.Injectable)(),
247
+ (0, tslib_1.__metadata)("design:paramtypes", [])
248
+ ], PreferenceSchemaProvider);
249
+ exports.PreferenceSchemaProvider = PreferenceSchemaProvider;
250
+ let DefaultPreferenceProvider = class DefaultPreferenceProvider extends preference_provider_1.PreferenceProvider {
251
+ constructor() {
252
+ super();
253
+ this.preferences = {
254
+ default: {},
255
+ languageSpecific: {},
256
+ };
257
+ this.init();
258
+ }
259
+ async init() {
260
+ this._ready.resolve();
261
+ }
262
+ getPreferences(resourceUri, language) {
263
+ if (!language) {
264
+ return Object.assign(Object.assign({}, this.preferenceSchemaProvider.getPreferences()), this.preferences.default);
265
+ }
266
+ else {
267
+ return this.preferences.languageSpecific[language] || {};
268
+ }
269
+ }
270
+ getLanguagePreferences(resourceUri) {
271
+ return this.preferences.languageSpecific;
272
+ }
273
+ async doSetPreference(key, value, resourceUri, language) {
274
+ if (!language) {
275
+ const oldValue = this.preferences.default[key];
276
+ this.preferences.default[key] = value;
277
+ this.handlePreferenceChanges(key, value, oldValue);
278
+ }
279
+ else {
280
+ if (!this.preferences.languageSpecific[language]) {
281
+ this.preferences.languageSpecific[language] = {};
282
+ }
283
+ const oldValue = this.preferences.languageSpecific[language][key];
284
+ this.preferences.languageSpecific[language][key] = value;
285
+ this.handlePreferenceChanges(key, value, oldValue, language);
286
+ }
287
+ return true;
288
+ }
289
+ handlePreferenceChanges(preferenceName, newValue, oldValue, language) {
290
+ const prefChange = {
291
+ preferenceName,
292
+ newValue,
293
+ oldValue,
294
+ scope: preference_scope_1.PreferenceScope.Default,
295
+ domain: undefined,
296
+ };
297
+ if (language) {
298
+ this.emitPreferencesChangedEvent({
299
+ default: {},
300
+ languageSpecific: {
301
+ [language]: {
302
+ [preferenceName]: prefChange,
303
+ },
304
+ },
305
+ });
306
+ }
307
+ else {
308
+ this.emitPreferencesChangedEvent([prefChange]);
309
+ }
310
+ }
311
+ };
312
+ (0, tslib_1.__decorate)([
313
+ (0, di_1.Autowired)(PreferenceSchemaProvider),
314
+ (0, tslib_1.__metadata)("design:type", PreferenceSchemaProvider)
315
+ ], DefaultPreferenceProvider.prototype, "preferenceSchemaProvider", void 0);
316
+ DefaultPreferenceProvider = (0, tslib_1.__decorate)([
317
+ (0, di_1.Injectable)(),
318
+ (0, tslib_1.__metadata)("design:paramtypes", [])
319
+ ], DefaultPreferenceProvider);
320
+ exports.DefaultPreferenceProvider = DefaultPreferenceProvider;
321
+ function normalizeAjvValidationError(error) {
322
+ // TODO 变成可阅读的错误
323
+ return error.message;
324
+ }
325
+ //# sourceMappingURL=preference-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preference-contribution.js","sourceRoot":"","sources":["../../src/preferences/preference-contribution.ts"],"names":[],"mappings":";;;;AAAA,2DAAsB;AACtB,qCAA+D;AAC/D,+DAA4H;AAC5H,yDAAqD;AACrD,+DAA+G;AAC/G,mGAEqE;AAI5D,iGALP,oCAAgB,OAKO;AAAE,2GALP,8CAA0B,OAKO;AAAkE,uGALP,0CAAsB,OAKO;AAH7I,2EAAuG;AACvG,wDAA+C;AAIlC,QAAA,sBAAsB,GAAG,MAAM,CAAC,wBA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ableCollection, Event, URI, Deferred, JSONValue, FileStat } from '@opensumi/ide-core-common';
2
+ import { PreferenceScope } from '@opensumi/ide-core-common/lib/preferences/preference-scope';
3
+ export interface IResolvedPreferences {
4
+ default: {
5
+ [key: string]: any;
6
+ };
7
+ languageSpecific: {
8
+ [languageId: string]: {
9
+ [key: string]: any;
10
+ };
11
+ };
12
+ }
13
+ export interface PreferenceProviderDataChange {
14
+ readonly preferenceName: string;
15
+ readonly newValue?: any;
16
+ readonly oldValue?: any;
17
+ readonly scope: PreferenceScope;
18
+ readonly domain?: string[];
19
+ }
20
+ export interface PreferenceProviderDataChanges {
21
+ default: {
22
+ [preferenceName: string]: PreferenceProviderDataChange;
23
+ };
24
+ languageSpecific: ILanguagePreferenceProviderDataChanges;
25
+ }
26
+ export interface ILanguagePreferenceProviderDataChanges {
27
+ [languageId: string]: {
28
+ [preferenceName: string]: PreferenceProviderDataChange;
29
+ };
30
+ }
31
+ export interface PreferenceResolveResult<T> {
32
+ configUri?: URI;
33
+ value?: T;
34
+ scope?: PreferenceScope;
35
+ languageSpecific?: boolean;
36
+ }
37
+ export declare abstract class PreferenceProvider implements IDisposable {
38
+ readonly name: string;
39
+ private readonly onDidPreferencesChangedEmitter;
40
+ readonly onDidPreferencesChanged: Event<PreferenceProviderDataChanges>;
41
+ protected readonly toDispose: DisposableCollection;
42
+ protected readonly _ready: Deferred<void>;
43
+ resource: Promise<FileStat | void>;
44
+ private _scope;
45
+ static PreferenceDelegates: {
46
+ [delegated: string]: {
47
+ delegateTo: string;
48
+ transform?: (delegatedValue: any) => any;
49
+ transformFrom?: (delegatedToValue: any) => any;
50
+ };
51
+ };
52
+ static PreferenceDelegatesReverse: {
53
+ [delegated: string]: {
54
+ delegated: string;
55
+ delegateTo: string;
56
+ transform?: (delegatedValue: any) => any;
57
+ transformFrom?: (delegatedToValue: any) => any;
58
+ };
59
+ };
60
+ constructor();
61
+ asScope(scope: PreferenceScope): void;
62
+ dispose(): void;
63
+ /**
64
+ * 处理事件监听中接收到的Event数据对象
65
+ * 以便后续接收到数据后能确认来自那个配置项的值
66
+ */
67
+ protected emitPreferencesChangedEvent(changes: PreferenceProviderDataChanges | PreferenceProviderDataChange[], noFilterExternal?: boolean): boolean;
68
+ get<T>(preferenceName: string, resourceUri?: string, language?: string): T | undefined;
69
+ getWithoutDelegate<T>(preferenceName: string, resourceUri?: string, language?: string): T | undefined;
70
+ private getDelegatedValueFromDelegateTo;
71
+ private getDelegateToValueFromDelegated;
72
+ protected doGet<T>(preferenceName: string, resourceUri?: string, language?: string): T | undefined;
73
+ resolve<T>(preferenceName: string, resourceUri?: string, language?: string): PreferenceResolveResult<T>;
74
+ protected doResolve<T>(preferenceName: string, resourceUri?: string, language?: string): PreferenceResolveResult<T>;
75
+ /**
76
+ * 获取制定资源或语言的所有配置,当返回值为undefined时代表无应资源或语言配置
77
+ *
78
+ * @abstract
79
+ * @param {string} [resourceUri] 资源路径
80
+ * @param {string} [language] 语言标识符
81
+ * @returns {({ [p: string]: any } | undefined)}
82
+ * @memberof PreferenceProvider
83
+ */
84
+ abstract getPreferences(resourceUri?: string, language?: string): {
85
+ [p: string]: any;
86
+ } | undefined;
87
+ /**
88
+ * 获取制定资源或语言的所有语言配置,当返回值为undefined时代表无对应资源或语言配置
89
+ *
90
+ * @abstract
91
+ * @param {string} [resourceUri] 资源路径
92
+ * @param {string} [language] 语言标识符
93
+ * @returns {({ [language: string]: {[p: string]: any} } | undefined)}
94
+ * @memberof PreferenceProvider
95
+ */
96
+ abstract getLanguagePreferences(resourceUri?: string, language?: string): {
97
+ [language: string]: {
98
+ [p: string]: any;
99
+ };
100
+ } | undefined;
101
+ setPreference(preferenceName: string, value: any, resourceUri?: string, language?: string): Promise<boolean>;
102
+ protected abstract doSetPreference(preferenceName: string, value: any, resourceUri?: string, language?: string): Promise<boolean>;
103
+ /**
104
+ * 返回promise,当 preference provider 已经可以提供配置时返回resolved
105
+ */
106
+ get ready(): Promise<void>;
107
+ /**
108
+ * 默认返回undefined
109
+ */
110
+ getDomain(): string[] | undefined;
111
+ /**
112
+ * 默认返回undefined
113
+ */
114
+ getConfigUri(resourceUri?: string): URI | undefined;
115
+ static merge(source: JSONValue | undefined, target: JSONValue): JSONValue;
116
+ }
117
+ //# sourceMappingURL=preference-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preference-provider.d.ts","sourceRoot":"","sources":["../../src/preferences/preference-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAW,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAa,SAAS,EAAiB,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC5J,OAAO,EAAE,eAAe,EAAE,MAAM,4DAA4D,CAAC;AAE7F,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,CAAC;IAC9B,gBAAgB,EAAE;QAChB,CAAC,UAAU,EAAE,MAAM,GAAG;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;SAAC,CAAC;KAC5C,CAAC;CACH;AACD,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE;QACP,CAAC,cAAc,EAAE,MAAM,GAAG,4BAA4B,CAAC;KACxD,CAAC;IACF,gBAAgB,EAAE,sCAAsC,CAAC;CAC1D;AAED,MAAM,WAAW,sCAAsC;IACrD,CAAC,UAAU,EAAE,MAAM,GAAG;QACpB,CAAC,cAAc,EAAE,MAAM,GAAG,4BAA4B,CAAC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