@theia/filesystem 1.67.0-next.56 → 1.67.0-next.59

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 (345) hide show
  1. package/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts +16 -0
  2. package/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts.map +1 -0
  3. package/lib/browser/breadcrumbs/filepath-breadcrumb.js +42 -0
  4. package/lib/browser/breadcrumbs/filepath-breadcrumb.js.map +1 -0
  5. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts +13 -0
  6. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts.map +1 -0
  7. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js +67 -0
  8. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js.map +1 -0
  9. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts +28 -0
  10. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts.map +1 -0
  11. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js +119 -0
  12. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js.map +1 -0
  13. package/lib/browser/download/file-download-command-contribution.d.ts +19 -0
  14. package/lib/browser/download/file-download-command-contribution.d.ts.map +1 -0
  15. package/lib/browser/download/file-download-command-contribution.js +76 -0
  16. package/lib/browser/download/file-download-command-contribution.js.map +1 -0
  17. package/lib/browser/download/file-download-frontend-module.d.ts +4 -0
  18. package/lib/browser/download/file-download-frontend-module.d.ts.map +1 -0
  19. package/lib/browser/download/file-download-frontend-module.js +27 -0
  20. package/lib/browser/download/file-download-frontend-module.js.map +1 -0
  21. package/lib/browser/download/file-download-service.d.ts +21 -0
  22. package/lib/browser/download/file-download-service.d.ts.map +1 -0
  23. package/lib/browser/download/file-download-service.js +169 -0
  24. package/lib/browser/download/file-download-service.js.map +1 -0
  25. package/lib/browser/file-dialog/file-dialog-container.d.ts +6 -0
  26. package/lib/browser/file-dialog/file-dialog-container.d.ts.map +1 -0
  27. package/lib/browser/file-dialog/file-dialog-container.js +61 -0
  28. package/lib/browser/file-dialog/file-dialog-container.js.map +1 -0
  29. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts +16 -0
  30. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts.map +1 -0
  31. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js +60 -0
  32. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js.map +1 -0
  33. package/lib/browser/file-dialog/file-dialog-model.d.ts +26 -0
  34. package/lib/browser/file-dialog/file-dialog-model.d.ts.map +1 -0
  35. package/lib/browser/file-dialog/file-dialog-model.js +101 -0
  36. package/lib/browser/file-dialog/file-dialog-model.js.map +1 -0
  37. package/lib/browser/file-dialog/file-dialog-module.d.ts +4 -0
  38. package/lib/browser/file-dialog/file-dialog-module.d.ts.map +1 -0
  39. package/lib/browser/file-dialog/file-dialog-module.js +46 -0
  40. package/lib/browser/file-dialog/file-dialog-module.js.map +1 -0
  41. package/lib/browser/file-dialog/file-dialog-service.d.ts +33 -0
  42. package/lib/browser/file-dialog/file-dialog-service.d.ts.map +1 -0
  43. package/lib/browser/file-dialog/file-dialog-service.js +102 -0
  44. package/lib/browser/file-dialog/file-dialog-service.js.map +1 -0
  45. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts +40 -0
  46. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts.map +1 -0
  47. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js +82 -0
  48. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js.map +1 -0
  49. package/lib/browser/file-dialog/file-dialog-tree.d.ts +27 -0
  50. package/lib/browser/file-dialog/file-dialog-tree.d.ts.map +1 -0
  51. package/lib/browser/file-dialog/file-dialog-tree.js +84 -0
  52. package/lib/browser/file-dialog/file-dialog-tree.js.map +1 -0
  53. package/lib/browser/file-dialog/file-dialog-widget.d.ts +18 -0
  54. package/lib/browser/file-dialog/file-dialog-widget.d.ts.map +1 -0
  55. package/lib/browser/file-dialog/file-dialog-widget.js +85 -0
  56. package/lib/browser/file-dialog/file-dialog-widget.js.map +1 -0
  57. package/lib/browser/file-dialog/file-dialog.d.ts +130 -0
  58. package/lib/browser/file-dialog/file-dialog.d.ts.map +1 -0
  59. package/lib/browser/file-dialog/file-dialog.js +352 -0
  60. package/lib/browser/file-dialog/file-dialog.js.map +1 -0
  61. package/lib/browser/file-dialog/index.d.ts +5 -0
  62. package/lib/browser/file-dialog/index.d.ts.map +1 -0
  63. package/lib/browser/file-dialog/index.js +23 -0
  64. package/lib/browser/file-dialog/index.js.map +1 -0
  65. package/lib/browser/file-resource.d.ts +72 -0
  66. package/lib/browser/file-resource.d.ts.map +1 -0
  67. package/lib/browser/file-resource.js +385 -0
  68. package/lib/browser/file-resource.js.map +1 -0
  69. package/lib/browser/file-resource.spec.d.ts +2 -0
  70. package/lib/browser/file-resource.spec.d.ts.map +1 -0
  71. package/lib/browser/file-resource.spec.js +191 -0
  72. package/lib/browser/file-resource.spec.js.map +1 -0
  73. package/lib/browser/file-selection.d.ts +15 -0
  74. package/lib/browser/file-selection.d.ts.map +1 -0
  75. package/lib/browser/file-selection.js +37 -0
  76. package/lib/browser/file-selection.js.map +1 -0
  77. package/lib/browser/file-service.d.ts +427 -0
  78. package/lib/browser/file-service.d.ts.map +1 -0
  79. package/lib/browser/file-service.js +1370 -0
  80. package/lib/browser/file-service.js.map +1 -0
  81. package/lib/browser/file-tree/file-tree-container.d.ts +4 -0
  82. package/lib/browser/file-tree/file-tree-container.d.ts.map +1 -0
  83. package/lib/browser/file-tree/file-tree-container.js +36 -0
  84. package/lib/browser/file-tree/file-tree-container.js.map +1 -0
  85. package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts +31 -0
  86. package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts.map +1 -0
  87. package/lib/browser/file-tree/file-tree-decorator-adapter.js +170 -0
  88. package/lib/browser/file-tree/file-tree-decorator-adapter.js.map +1 -0
  89. package/lib/browser/file-tree/file-tree-label-provider.d.ts +13 -0
  90. package/lib/browser/file-tree/file-tree-label-provider.d.ts.map +1 -0
  91. package/lib/browser/file-tree/file-tree-label-provider.js +55 -0
  92. package/lib/browser/file-tree/file-tree-label-provider.js.map +1 -0
  93. package/lib/browser/file-tree/file-tree-model.d.ts +34 -0
  94. package/lib/browser/file-tree/file-tree-model.d.ts.map +1 -0
  95. package/lib/browser/file-tree/file-tree-model.js +201 -0
  96. package/lib/browser/file-tree/file-tree-model.js.map +1 -0
  97. package/lib/browser/file-tree/file-tree-widget.d.ts +45 -0
  98. package/lib/browser/file-tree/file-tree-widget.d.ts.map +1 -0
  99. package/lib/browser/file-tree/file-tree-widget.js +318 -0
  100. package/lib/browser/file-tree/file-tree-widget.js.map +1 -0
  101. package/lib/browser/file-tree/file-tree.d.ts +47 -0
  102. package/lib/browser/file-tree/file-tree.d.ts.map +1 -0
  103. package/lib/browser/file-tree/file-tree.js +177 -0
  104. package/lib/browser/file-tree/file-tree.js.map +1 -0
  105. package/lib/browser/file-tree/index.d.ts +7 -0
  106. package/lib/browser/file-tree/index.d.ts.map +1 -0
  107. package/lib/browser/file-tree/index.js +25 -0
  108. package/lib/browser/file-tree/index.js.map +1 -0
  109. package/lib/browser/filesystem-frontend-contribution.d.ts +76 -0
  110. package/lib/browser/filesystem-frontend-contribution.d.ts.map +1 -0
  111. package/lib/browser/filesystem-frontend-contribution.js +372 -0
  112. package/lib/browser/filesystem-frontend-contribution.js.map +1 -0
  113. package/lib/browser/filesystem-frontend-module.d.ts +6 -0
  114. package/lib/browser/filesystem-frontend-module.d.ts.map +1 -0
  115. package/lib/browser/filesystem-frontend-module.js +70 -0
  116. package/lib/browser/filesystem-frontend-module.js.map +1 -0
  117. package/lib/browser/filesystem-saveable-service.d.ts +36 -0
  118. package/lib/browser/filesystem-saveable-service.d.ts.map +1 -0
  119. package/lib/browser/filesystem-saveable-service.js +164 -0
  120. package/lib/browser/filesystem-saveable-service.js.map +1 -0
  121. package/lib/browser/filesystem-watcher-error-handler.d.ts +11 -0
  122. package/lib/browser/filesystem-watcher-error-handler.d.ts.map +1 -0
  123. package/lib/browser/filesystem-watcher-error-handler.js +62 -0
  124. package/lib/browser/filesystem-watcher-error-handler.js.map +1 -0
  125. package/lib/browser/index.d.ts +5 -0
  126. package/lib/browser/index.d.ts.map +1 -0
  127. package/lib/browser/index.js +23 -0
  128. package/lib/browser/index.js.map +1 -0
  129. package/lib/browser/location/index.d.ts +3 -0
  130. package/lib/browser/location/index.d.ts.map +1 -0
  131. package/lib/browser/location/index.js +21 -0
  132. package/lib/browser/location/index.js.map +1 -0
  133. package/lib/browser/location/location-renderer.d.ts +101 -0
  134. package/lib/browser/location/location-renderer.d.ts.map +1 -0
  135. package/lib/browser/location/location-renderer.js +345 -0
  136. package/lib/browser/location/location-renderer.js.map +1 -0
  137. package/lib/browser/location/location-service.d.ts +6 -0
  138. package/lib/browser/location/location-service.d.ts.map +1 -0
  139. package/lib/browser/location/location-service.js +18 -0
  140. package/lib/browser/location/location-service.js.map +1 -0
  141. package/lib/browser/remote-file-service-contribution.d.ts +7 -0
  142. package/lib/browser/remote-file-service-contribution.d.ts.map +1 -0
  143. package/lib/browser/remote-file-service-contribution.js +40 -0
  144. package/lib/browser/remote-file-service-contribution.js.map +1 -0
  145. package/lib/browser/upload/file-upload-service-impl.d.ts +77 -0
  146. package/lib/browser/upload/file-upload-service-impl.d.ts.map +1 -0
  147. package/lib/browser/upload/file-upload-service-impl.js +449 -0
  148. package/lib/browser/upload/file-upload-service-impl.js.map +1 -0
  149. package/lib/browser/vscode-file-service-contribution.d.ts +25 -0
  150. package/lib/browser/vscode-file-service-contribution.d.ts.map +1 -0
  151. package/lib/browser/vscode-file-service-contribution.js +99 -0
  152. package/lib/browser/vscode-file-service-contribution.js.map +1 -0
  153. package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts +4 -0
  154. package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts.map +1 -0
  155. package/lib/browser-only/browser-only-filesystem-frontend-module.js +49 -0
  156. package/lib/browser-only/browser-only-filesystem-frontend-module.js.map +1 -0
  157. package/lib/browser-only/browser-only-filesystem-provider-server.d.ts +12 -0
  158. package/lib/browser-only/browser-only-filesystem-provider-server.d.ts.map +1 -0
  159. package/lib/browser-only/browser-only-filesystem-provider-server.js +40 -0
  160. package/lib/browser-only/browser-only-filesystem-provider-server.js.map +1 -0
  161. package/lib/browser-only/download/file-download-command-contribution.d.ts +15 -0
  162. package/lib/browser-only/download/file-download-command-contribution.d.ts.map +1 -0
  163. package/lib/browser-only/download/file-download-command-contribution.js +55 -0
  164. package/lib/browser-only/download/file-download-command-contribution.js.map +1 -0
  165. package/lib/browser-only/download/file-download-frontend-module.d.ts +4 -0
  166. package/lib/browser-only/download/file-download-frontend-module.d.ts.map +1 -0
  167. package/lib/browser-only/download/file-download-frontend-module.js +27 -0
  168. package/lib/browser-only/download/file-download-frontend-module.js.map +1 -0
  169. package/lib/browser-only/download/file-download-service.d.ts +86 -0
  170. package/lib/browser-only/download/file-download-service.d.ts.map +1 -0
  171. package/lib/browser-only/download/file-download-service.js +551 -0
  172. package/lib/browser-only/download/file-download-service.js.map +1 -0
  173. package/lib/browser-only/file-search.d.ts +38 -0
  174. package/lib/browser-only/file-search.d.ts.map +1 -0
  175. package/lib/browser-only/file-search.js +153 -0
  176. package/lib/browser-only/file-search.js.map +1 -0
  177. package/lib/browser-only/opfs-filesystem-initialization.d.ts +13 -0
  178. package/lib/browser-only/opfs-filesystem-initialization.d.ts.map +1 -0
  179. package/lib/browser-only/opfs-filesystem-initialization.js +36 -0
  180. package/lib/browser-only/opfs-filesystem-initialization.js.map +1 -0
  181. package/lib/browser-only/opfs-filesystem-provider.d.ts +108 -0
  182. package/lib/browser-only/opfs-filesystem-provider.d.ts.map +1 -0
  183. package/lib/browser-only/opfs-filesystem-provider.js +487 -0
  184. package/lib/browser-only/opfs-filesystem-provider.js.map +1 -0
  185. package/lib/browser-only/upload/file-upload-service-impl.d.ts +67 -0
  186. package/lib/browser-only/upload/file-upload-service-impl.d.ts.map +1 -0
  187. package/lib/browser-only/upload/file-upload-service-impl.js +328 -0
  188. package/lib/browser-only/upload/file-upload-service-impl.js.map +1 -0
  189. package/lib/common/delegating-file-system-provider.d.ts +77 -0
  190. package/lib/common/delegating-file-system-provider.d.ts.map +1 -0
  191. package/lib/common/delegating-file-system-provider.js +169 -0
  192. package/lib/common/delegating-file-system-provider.js.map +1 -0
  193. package/lib/common/download/file-download.d.ts +17 -0
  194. package/lib/common/download/file-download.d.ts.map +1 -0
  195. package/lib/common/download/file-download.js +28 -0
  196. package/lib/common/download/file-download.js.map +1 -0
  197. package/lib/common/file-upload.d.ts +2 -0
  198. package/lib/common/file-upload.d.ts.map +1 -0
  199. package/lib/common/file-upload.js +20 -0
  200. package/lib/common/file-upload.js.map +1 -0
  201. package/lib/common/files.d.ts +668 -0
  202. package/lib/common/files.d.ts.map +1 -0
  203. package/lib/common/files.js +390 -0
  204. package/lib/common/files.js.map +1 -0
  205. package/lib/common/files.spec.d.ts +2 -0
  206. package/lib/common/files.spec.d.ts.map +1 -0
  207. package/lib/common/files.spec.js +52 -0
  208. package/lib/common/files.spec.js.map +1 -0
  209. package/lib/common/filesystem-preferences.d.ts +33 -0
  210. package/lib/common/filesystem-preferences.d.ts.map +1 -0
  211. package/lib/common/filesystem-preferences.js +122 -0
  212. package/lib/common/filesystem-preferences.js.map +1 -0
  213. package/lib/common/filesystem-utils.d.ts +15 -0
  214. package/lib/common/filesystem-utils.d.ts.map +1 -0
  215. package/lib/common/filesystem-utils.js +64 -0
  216. package/lib/common/filesystem-utils.js.map +1 -0
  217. package/lib/common/filesystem-utils.spec.d.ts +2 -0
  218. package/lib/common/filesystem-utils.spec.d.ts.map +1 -0
  219. package/lib/common/filesystem-utils.spec.js +379 -0
  220. package/lib/common/filesystem-utils.spec.js.map +1 -0
  221. package/lib/common/filesystem-watcher-protocol.d.ts +72 -0
  222. package/lib/common/filesystem-watcher-protocol.d.ts.map +1 -0
  223. package/lib/common/filesystem-watcher-protocol.js +21 -0
  224. package/lib/common/filesystem-watcher-protocol.js.map +1 -0
  225. package/lib/common/filesystem.d.ts +23 -0
  226. package/lib/common/filesystem.d.ts.map +1 -0
  227. package/lib/common/filesystem.js +43 -0
  228. package/lib/common/filesystem.js.map +1 -0
  229. package/lib/common/index.d.ts +4 -0
  230. package/lib/common/index.d.ts.map +1 -0
  231. package/lib/common/index.js +22 -0
  232. package/lib/common/index.js.map +1 -0
  233. package/lib/common/io.d.ts +20 -0
  234. package/lib/common/io.d.ts.map +1 -0
  235. package/lib/common/io.js +117 -0
  236. package/lib/common/io.js.map +1 -0
  237. package/lib/common/remote-file-system-provider.d.ts +174 -0
  238. package/lib/common/remote-file-system-provider.d.ts.map +1 -0
  239. package/lib/common/remote-file-system-provider.js +435 -0
  240. package/lib/common/remote-file-system-provider.js.map +1 -0
  241. package/lib/common/upload/file-upload.d.ts +45 -0
  242. package/lib/common/upload/file-upload.d.ts.map +1 -0
  243. package/lib/common/upload/file-upload.js +20 -0
  244. package/lib/common/upload/file-upload.js.map +1 -0
  245. package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts +4 -0
  246. package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts.map +1 -0
  247. package/lib/electron-browser/file-dialog/electron-file-dialog-module.js +25 -0
  248. package/lib/electron-browser/file-dialog/electron-file-dialog-module.js.map +1 -0
  249. package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts +20 -0
  250. package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts.map +1 -0
  251. package/lib/electron-browser/file-dialog/electron-file-dialog-service.js +149 -0
  252. package/lib/electron-browser/file-dialog/electron-file-dialog-service.js.map +1 -0
  253. package/lib/electron-browser/preload.d.ts +2 -0
  254. package/lib/electron-browser/preload.d.ts.map +1 -0
  255. package/lib/electron-browser/preload.js +31 -0
  256. package/lib/electron-browser/preload.js.map +1 -0
  257. package/lib/electron-common/electron-api.d.ts +35 -0
  258. package/lib/electron-common/electron-api.d.ts.map +1 -0
  259. package/lib/electron-common/electron-api.js +21 -0
  260. package/lib/electron-common/electron-api.js.map +1 -0
  261. package/lib/electron-main/electron-api-main.d.ts +6 -0
  262. package/lib/electron-main/electron-api-main.d.ts.map +1 -0
  263. package/lib/electron-main/electron-api-main.js +74 -0
  264. package/lib/electron-main/electron-api-main.js.map +1 -0
  265. package/lib/electron-main/electron-main-module.d.ts +4 -0
  266. package/lib/electron-main/electron-main-module.d.ts.map +1 -0
  267. package/lib/electron-main/electron-main-module.js +25 -0
  268. package/lib/electron-main/electron-main-module.js.map +1 -0
  269. package/lib/node/disk-file-system-provider.d.ts +73 -0
  270. package/lib/node/disk-file-system-provider.d.ts.map +1 -0
  271. package/lib/node/disk-file-system-provider.js +786 -0
  272. package/lib/node/disk-file-system-provider.js.map +1 -0
  273. package/lib/node/disk-file-system-provider.spec.d.ts +2 -0
  274. package/lib/node/disk-file-system-provider.spec.d.ts.map +1 -0
  275. package/lib/node/disk-file-system-provider.spec.js +123 -0
  276. package/lib/node/disk-file-system-provider.spec.js.map +1 -0
  277. package/lib/node/download/directory-archiver.d.ts +10 -0
  278. package/lib/node/download/directory-archiver.d.ts.map +1 -0
  279. package/lib/node/download/directory-archiver.js +128 -0
  280. package/lib/node/download/directory-archiver.js.map +1 -0
  281. package/lib/node/download/directory-archiver.spec.d.ts +2 -0
  282. package/lib/node/download/directory-archiver.spec.d.ts.map +1 -0
  283. package/lib/node/download/directory-archiver.spec.js +98 -0
  284. package/lib/node/download/directory-archiver.spec.js.map +1 -0
  285. package/lib/node/download/file-download-backend-module.d.ts +4 -0
  286. package/lib/node/download/file-download-backend-module.d.ts.map +1 -0
  287. package/lib/node/download/file-download-backend-module.js +33 -0
  288. package/lib/node/download/file-download-backend-module.js.map +1 -0
  289. package/lib/node/download/file-download-cache.d.ts +22 -0
  290. package/lib/node/download/file-download-cache.d.ts.map +1 -0
  291. package/lib/node/download/file-download-cache.js +81 -0
  292. package/lib/node/download/file-download-cache.js.map +1 -0
  293. package/lib/node/download/file-download-endpoint.d.ts +12 -0
  294. package/lib/node/download/file-download-endpoint.d.ts.map +1 -0
  295. package/lib/node/download/file-download-endpoint.js +68 -0
  296. package/lib/node/download/file-download-endpoint.js.map +1 -0
  297. package/lib/node/download/file-download-handler.d.ts +51 -0
  298. package/lib/node/download/file-download-handler.d.ts.map +1 -0
  299. package/lib/node/download/file-download-handler.js +307 -0
  300. package/lib/node/download/file-download-handler.js.map +1 -0
  301. package/lib/node/download/test/mock-directory-archiver.d.ts +8 -0
  302. package/lib/node/download/test/mock-directory-archiver.d.ts.map +1 -0
  303. package/lib/node/download/test/mock-directory-archiver.js +30 -0
  304. package/lib/node/download/test/mock-directory-archiver.js.map +1 -0
  305. package/lib/node/file-change-collection.d.ts +23 -0
  306. package/lib/node/file-change-collection.d.ts.map +1 -0
  307. package/lib/node/file-change-collection.js +78 -0
  308. package/lib/node/file-change-collection.js.map +1 -0
  309. package/lib/node/file-change-collection.spec.d.ts +2 -0
  310. package/lib/node/file-change-collection.spec.d.ts.map +1 -0
  311. package/lib/node/file-change-collection.spec.js +91 -0
  312. package/lib/node/file-change-collection.spec.js.map +1 -0
  313. package/lib/node/filesystem-backend-module.d.ts +27 -0
  314. package/lib/node/filesystem-backend-module.d.ts.map +1 -0
  315. package/lib/node/filesystem-backend-module.js +123 -0
  316. package/lib/node/filesystem-backend-module.js.map +1 -0
  317. package/lib/node/filesystem-watcher-client.d.ts +23 -0
  318. package/lib/node/filesystem-watcher-client.d.ts.map +1 -0
  319. package/lib/node/filesystem-watcher-client.js +75 -0
  320. package/lib/node/filesystem-watcher-client.js.map +1 -0
  321. package/lib/node/filesystem-watcher-dispatcher.d.ts +24 -0
  322. package/lib/node/filesystem-watcher-dispatcher.d.ts.map +1 -0
  323. package/lib/node/filesystem-watcher-dispatcher.js +81 -0
  324. package/lib/node/filesystem-watcher-dispatcher.js.map +1 -0
  325. package/lib/node/parcel-watcher/index.d.ts +4 -0
  326. package/lib/node/parcel-watcher/index.d.ts.map +1 -0
  327. package/lib/node/parcel-watcher/index.js +40 -0
  328. package/lib/node/parcel-watcher/index.js.map +1 -0
  329. package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts +193 -0
  330. package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts.map +1 -0
  331. package/lib/node/parcel-watcher/parcel-filesystem-service.js +406 -0
  332. package/lib/node/parcel-watcher/parcel-filesystem-service.js.map +1 -0
  333. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts +2 -0
  334. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts.map +1 -0
  335. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js +145 -0
  336. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js.map +1 -0
  337. package/lib/node/parcel-watcher/parcel-options.d.ts +7 -0
  338. package/lib/node/parcel-watcher/parcel-options.d.ts.map +1 -0
  339. package/lib/node/parcel-watcher/parcel-options.js +23 -0
  340. package/lib/node/parcel-watcher/parcel-options.js.map +1 -0
  341. package/lib/node/upload/node-file-upload-service.d.ts +17 -0
  342. package/lib/node/upload/node-file-upload-service.d.ts.map +1 -0
  343. package/lib/node/upload/node-file-upload-service.js +87 -0
  344. package/lib/node/upload/node-file-upload-service.js.map +1 -0
  345. package/package.json +3 -3
@@ -0,0 +1,345 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2017 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ var LocationListRenderer_1;
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.LocationListRenderer = exports.LocationListRendererOptions = exports.LocationListRendererFactory = void 0;
20
+ const tslib_1 = require("tslib");
21
+ const uri_1 = require("@theia/core/lib/common/uri");
22
+ const React = require("@theia/core/shared/react");
23
+ const file_service_1 = require("../file-service");
24
+ const common_1 = require("@theia/core/lib/common");
25
+ const inversify_1 = require("@theia/core/shared/inversify");
26
+ const env_variables_1 = require("@theia/core/lib/common/env-variables");
27
+ const react_renderer_1 = require("@theia/core/lib/browser/widgets/react-renderer");
28
+ const browser_1 = require("@theia/core/lib/browser");
29
+ class ResolvedDirectoryCache {
30
+ constructor(fileService) {
31
+ this.fileService = fileService;
32
+ this.pendingResolvedDirectories = new Map();
33
+ this.cachedDirectories = new Map();
34
+ this.directoryResolvedEmitter = new common_1.Emitter();
35
+ this.onDirectoryDidResolve = this.directoryResolvedEmitter.event;
36
+ }
37
+ tryResolveChildDirectories(inputAsURI) {
38
+ const parentDirectory = inputAsURI.path.dir.toString();
39
+ const cachedDirectories = this.cachedDirectories.get(parentDirectory);
40
+ const pendingDirectories = this.pendingResolvedDirectories.get(parentDirectory);
41
+ if (cachedDirectories) {
42
+ return cachedDirectories;
43
+ }
44
+ else if (!pendingDirectories) {
45
+ this.pendingResolvedDirectories.set(parentDirectory, this.createResolutionPromise(parentDirectory));
46
+ }
47
+ return undefined;
48
+ }
49
+ async createResolutionPromise(directoryToResolve) {
50
+ return this.fileService.resolve(new uri_1.default(directoryToResolve)).then(({ children }) => {
51
+ if (children) {
52
+ const childDirectories = children.filter(child => child.isDirectory)
53
+ .map(directory => `${directory.resource.path}/`);
54
+ this.cachedDirectories.set(directoryToResolve, childDirectories);
55
+ this.directoryResolvedEmitter.fire({ parent: directoryToResolve, children: childDirectories });
56
+ }
57
+ }).catch(e => {
58
+ // no-op
59
+ });
60
+ }
61
+ }
62
+ exports.LocationListRendererFactory = Symbol('LocationListRendererFactory');
63
+ exports.LocationListRendererOptions = Symbol('LocationListRendererOptions');
64
+ let LocationListRenderer = LocationListRenderer_1 = class LocationListRenderer extends react_renderer_1.ReactRenderer {
65
+ get doShowTextInput() {
66
+ return this._doShowTextInput;
67
+ }
68
+ set doShowTextInput(doShow) {
69
+ this._doShowTextInput = doShow;
70
+ if (doShow) {
71
+ this.initResolveDirectoryCache();
72
+ }
73
+ }
74
+ constructor(options) {
75
+ super(options.host);
76
+ this.options = options;
77
+ this.toDisposeOnNewCache = new common_1.DisposableCollection();
78
+ this._doShowTextInput = false;
79
+ this.doAttemptAutocomplete = true;
80
+ this.doAfterRender = () => {
81
+ const locationList = this.locationList;
82
+ const locationListTextInput = this.locationTextInput;
83
+ if (locationList) {
84
+ const currentLocation = this.service.location;
85
+ locationList.value = currentLocation ? currentLocation.toString() : '';
86
+ }
87
+ else if (locationListTextInput) {
88
+ locationListTextInput.focus();
89
+ }
90
+ };
91
+ this.handleLocationChanged = (e) => this.onLocationChanged(e);
92
+ this.handleTextInputOnChange = (e) => this.trySuggestDirectory(e);
93
+ this.handleTextInputKeyDown = (e) => this.handleControlKeys(e);
94
+ this.handleIconKeyDown = (e) => this.toggleInputOnKeyDown(e);
95
+ this.handleTextInputOnBlur = () => this.toggleToSelectInput();
96
+ this.handleTextInputMouseDown = (e) => this.toggleToTextInputOnMouseDown(e);
97
+ this.service = options.model;
98
+ this.doLoadDrives();
99
+ this.doAfterRender = this.doAfterRender.bind(this);
100
+ }
101
+ init() {
102
+ this.doInit();
103
+ }
104
+ async doInit() {
105
+ const homeDirWithPrefix = await this.variablesServer.getHomeDirUri();
106
+ this.homeDir = (new uri_1.default(homeDirWithPrefix)).path.toString();
107
+ }
108
+ render() {
109
+ if (!this.toDispose.disposed) {
110
+ this.hostRoot.render(this.doRender());
111
+ }
112
+ }
113
+ initResolveDirectoryCache() {
114
+ this.toDisposeOnNewCache.dispose();
115
+ this.directoryCache = new ResolvedDirectoryCache(this.fileService);
116
+ this.toDisposeOnNewCache.push(this.directoryCache.onDirectoryDidResolve(({ parent, children }) => {
117
+ if (this.locationTextInput) {
118
+ const expandedPath = common_1.Path.untildify(this.locationTextInput.value, this.homeDir);
119
+ const inputParent = (new uri_1.default(expandedPath)).path.dir.toString();
120
+ if (inputParent === parent) {
121
+ this.tryRenderFirstMatch(this.locationTextInput, children);
122
+ }
123
+ }
124
+ }));
125
+ }
126
+ doRender() {
127
+ return (React.createElement(React.Fragment, null,
128
+ this.renderInputIcon(),
129
+ this.doShowTextInput
130
+ ? this.renderTextInput()
131
+ : this.renderSelectInput()));
132
+ }
133
+ renderInputIcon() {
134
+ return (React.createElement("span", {
135
+ // onMouseDown is used since it will fire before 'onBlur'. This prevents
136
+ // a re-render when textinput is in focus and user clicks toggle icon
137
+ onMouseDown: this.handleTextInputMouseDown, onKeyDown: this.handleIconKeyDown, className: LocationListRenderer_1.Styles.LOCATION_INPUT_TOGGLE_CLASS, tabIndex: 0, id: `${this.doShowTextInput ? 'text-input' : 'select-input'}`, title: this.doShowTextInput
138
+ ? LocationListRenderer_1.Tooltips.TOGGLE_SELECT_INPUT
139
+ : LocationListRenderer_1.Tooltips.TOGGLE_TEXT_INPUT, ref: this.doAfterRender },
140
+ React.createElement("i", { className: (0, browser_1.codicon)(this.doShowTextInput ? 'folder-opened' : 'edit') })));
141
+ }
142
+ renderTextInput() {
143
+ var _a;
144
+ return (React.createElement("input", { className: 'theia-select ' + LocationListRenderer_1.Styles.LOCATION_TEXT_INPUT_CLASS, defaultValue: (_a = this.service.location) === null || _a === void 0 ? void 0 : _a.path.fsPath(), onBlur: this.handleTextInputOnBlur, onChange: this.handleTextInputOnChange, onKeyDown: this.handleTextInputKeyDown, spellCheck: false }));
145
+ }
146
+ renderSelectInput() {
147
+ const options = this.collectLocations().map(value => this.renderLocation(value));
148
+ return (React.createElement("select", { className: `theia-select ${LocationListRenderer_1.Styles.LOCATION_LIST_CLASS}`, onChange: this.handleLocationChanged }, ...options));
149
+ }
150
+ toggleInputOnKeyDown(e) {
151
+ if (e.key === 'Enter') {
152
+ this.doShowTextInput = true;
153
+ this.render();
154
+ }
155
+ }
156
+ toggleToTextInputOnMouseDown(e) {
157
+ if (e.currentTarget.id === 'select-input') {
158
+ e.preventDefault();
159
+ this.doShowTextInput = true;
160
+ this.render();
161
+ }
162
+ }
163
+ toggleToSelectInput() {
164
+ if (this.doShowTextInput) {
165
+ this.doShowTextInput = false;
166
+ this.render();
167
+ }
168
+ }
169
+ /**
170
+ * Collects the available locations based on the currently selected, and appends the available drives to it.
171
+ */
172
+ collectLocations() {
173
+ const location = this.service.location;
174
+ const locations = (!!location ? location.allLocations : []).map(uri => ({ uri }));
175
+ if (this._drives) {
176
+ const drives = this._drives.map(uri => ({ uri, isDrive: true }));
177
+ // `URI.allLocations` returns with the URI without the trailing slash unlike `FileUri.create(fsPath)`.
178
+ // to be able to compare file:///path/to/resource with file:///path/to/resource/.
179
+ const toUriString = (uri) => {
180
+ const toString = uri.toString();
181
+ return toString.endsWith('/') ? toString.slice(0, -1) : toString;
182
+ };
183
+ drives.forEach(drive => {
184
+ const index = locations.findIndex(loc => toUriString(loc.uri) === toUriString(drive.uri));
185
+ // Ignore drives which are already discovered as a location based on the current model root URI.
186
+ if (index === -1) {
187
+ // Make sure, it does not have the trailing slash.
188
+ locations.push({ uri: new uri_1.default(toUriString(drive.uri)), isDrive: true });
189
+ }
190
+ else {
191
+ // This is necessary for Windows to be able to show `/e:/` as a drive and `c:` as "non-drive" in the same way.
192
+ // `URI.path.toString()` Vs. `URI.displayName` behaves a bit differently on Windows.
193
+ // https://github.com/eclipse-theia/theia/pull/3038#issuecomment-425944189
194
+ locations[index].isDrive = true;
195
+ }
196
+ });
197
+ }
198
+ this.doLoadDrives();
199
+ return locations;
200
+ }
201
+ /**
202
+ * Asynchronously loads the drives (if not yet available) and triggers a UI update on success with the new values.
203
+ */
204
+ doLoadDrives() {
205
+ if (!this._drives) {
206
+ this.service.drives().then(drives => {
207
+ // If the `drives` are empty, something already went wrong.
208
+ if (drives.length > 0) {
209
+ this._drives = drives;
210
+ this.render();
211
+ }
212
+ });
213
+ }
214
+ }
215
+ renderLocation(location) {
216
+ const { uri, isDrive } = location;
217
+ const value = uri.toString();
218
+ return React.createElement("option", { value: value, key: uri.toString() }, isDrive ? uri.path.fsPath() : uri.displayName);
219
+ }
220
+ onLocationChanged(e) {
221
+ const locationList = this.locationList;
222
+ if (locationList) {
223
+ const value = locationList.value;
224
+ const uri = new uri_1.default(value);
225
+ this.trySetNewLocation(uri);
226
+ e.preventDefault();
227
+ e.stopPropagation();
228
+ }
229
+ }
230
+ trySetNewLocation(newLocation) {
231
+ var _a;
232
+ if (this.lastUniqueTextInputLocation === undefined) {
233
+ this.lastUniqueTextInputLocation = this.service.location;
234
+ }
235
+ // prevent consecutive repeated locations from being added to location history
236
+ if (((_a = this.lastUniqueTextInputLocation) === null || _a === void 0 ? void 0 : _a.path.toString()) !== newLocation.path.toString()) {
237
+ this.lastUniqueTextInputLocation = newLocation;
238
+ this.service.location = newLocation;
239
+ }
240
+ }
241
+ trySuggestDirectory(e) {
242
+ if (this.doAttemptAutocomplete) {
243
+ const inputElement = e.currentTarget;
244
+ const { value } = inputElement;
245
+ if ((value.startsWith('/') || value.startsWith('~/')) && value.slice(-1) !== '/') {
246
+ const expandedPath = common_1.Path.untildify(value, this.homeDir);
247
+ const valueAsURI = new uri_1.default(expandedPath);
248
+ const autocompleteDirectories = this.directoryCache.tryResolveChildDirectories(valueAsURI);
249
+ if (autocompleteDirectories) {
250
+ this.tryRenderFirstMatch(inputElement, autocompleteDirectories);
251
+ }
252
+ }
253
+ }
254
+ }
255
+ tryRenderFirstMatch(inputElement, children) {
256
+ const { value, selectionStart } = inputElement;
257
+ if (this.locationTextInput) {
258
+ const expandedPath = common_1.Path.untildify(value, this.homeDir);
259
+ const firstMatch = children === null || children === void 0 ? void 0 : children.find(child => child.includes(expandedPath));
260
+ if (firstMatch) {
261
+ const contractedPath = value.startsWith('~') ? common_1.Path.tildify(firstMatch, this.homeDir) : firstMatch;
262
+ this.locationTextInput.value = contractedPath;
263
+ this.locationTextInput.selectionStart = selectionStart;
264
+ this.locationTextInput.selectionEnd = firstMatch.length;
265
+ }
266
+ }
267
+ }
268
+ handleControlKeys(e) {
269
+ this.doAttemptAutocomplete = e.key !== 'Backspace';
270
+ if (e.key === 'Enter') {
271
+ const locationTextInput = this.locationTextInput;
272
+ if (locationTextInput) {
273
+ // expand '~' if present and remove extra whitespace and any trailing slashes or periods.
274
+ const sanitizedInput = locationTextInput.value.trim().replace(/[\/\\.]*$/, '');
275
+ const untildifiedInput = common_1.Path.untildify(sanitizedInput, this.homeDir);
276
+ const uri = new uri_1.default(untildifiedInput);
277
+ this.trySetNewLocation(uri);
278
+ this.toggleToSelectInput();
279
+ }
280
+ }
281
+ else if (e.key === 'Escape') {
282
+ this.toggleToSelectInput();
283
+ }
284
+ else if (e.key === 'Tab') {
285
+ e.preventDefault();
286
+ const textInput = this.locationTextInput;
287
+ if (textInput) {
288
+ textInput.selectionStart = textInput.value.length;
289
+ }
290
+ }
291
+ e.stopPropagation();
292
+ }
293
+ get locationList() {
294
+ const locationList = this.host.getElementsByClassName(LocationListRenderer_1.Styles.LOCATION_LIST_CLASS)[0];
295
+ if (locationList instanceof HTMLSelectElement) {
296
+ return locationList;
297
+ }
298
+ return undefined;
299
+ }
300
+ get locationTextInput() {
301
+ const locationTextInput = this.host.getElementsByClassName(LocationListRenderer_1.Styles.LOCATION_TEXT_INPUT_CLASS)[0];
302
+ if (locationTextInput instanceof HTMLInputElement) {
303
+ return locationTextInput;
304
+ }
305
+ return undefined;
306
+ }
307
+ dispose() {
308
+ super.dispose();
309
+ this.toDisposeOnNewCache.dispose();
310
+ }
311
+ };
312
+ exports.LocationListRenderer = LocationListRenderer;
313
+ tslib_1.__decorate([
314
+ (0, inversify_1.inject)(file_service_1.FileService),
315
+ tslib_1.__metadata("design:type", file_service_1.FileService)
316
+ ], LocationListRenderer.prototype, "fileService", void 0);
317
+ tslib_1.__decorate([
318
+ (0, inversify_1.inject)(env_variables_1.EnvVariablesServer),
319
+ tslib_1.__metadata("design:type", Object)
320
+ ], LocationListRenderer.prototype, "variablesServer", void 0);
321
+ tslib_1.__decorate([
322
+ (0, inversify_1.postConstruct)(),
323
+ tslib_1.__metadata("design:type", Function),
324
+ tslib_1.__metadata("design:paramtypes", []),
325
+ tslib_1.__metadata("design:returntype", void 0)
326
+ ], LocationListRenderer.prototype, "init", null);
327
+ exports.LocationListRenderer = LocationListRenderer = LocationListRenderer_1 = tslib_1.__decorate([
328
+ (0, inversify_1.injectable)(),
329
+ tslib_1.__param(0, (0, inversify_1.inject)(exports.LocationListRendererOptions)),
330
+ tslib_1.__metadata("design:paramtypes", [Object])
331
+ ], LocationListRenderer);
332
+ (function (LocationListRenderer) {
333
+ let Styles;
334
+ (function (Styles) {
335
+ Styles.LOCATION_LIST_CLASS = 'theia-LocationList';
336
+ Styles.LOCATION_INPUT_TOGGLE_CLASS = 'theia-LocationInputToggle';
337
+ Styles.LOCATION_TEXT_INPUT_CLASS = 'theia-LocationTextInput';
338
+ })(Styles = LocationListRenderer.Styles || (LocationListRenderer.Styles = {}));
339
+ let Tooltips;
340
+ (function (Tooltips) {
341
+ Tooltips.TOGGLE_TEXT_INPUT = 'Switch to text-based input';
342
+ Tooltips.TOGGLE_SELECT_INPUT = 'Switch to location list';
343
+ })(Tooltips = LocationListRenderer.Tooltips || (LocationListRenderer.Tooltips = {}));
344
+ })(LocationListRenderer || (exports.LocationListRenderer = LocationListRenderer = {}));
345
+ //# sourceMappingURL=location-renderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-renderer.js","sourceRoot":"","sources":["../../../src/browser/location/location-renderer.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AAC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MAAM;QACN,0BAAmB,GAAG,oBAAoB,CAAC;QAC3C,kCAA2B,GAAG,2BAA2B,CAAC;QAC1D,gCAAyB,GAAG,yBAAyB,CAAC;IACvE,CAAC,EAJgB,MAAM,GAAN,2BAAM,KAAN,2BAAM,QAItB;IAED,IAAiB,QAAQ,CAGxB;IAHD,WAAiB,QAAQ;QACR,0BAAiB,GAAG,4BAA4B,CAAC;QACjD,4BAAmB,GAAG,yBAAyB,CAAC;IACjE,CAAC,EAHgB,QAAQ,GAAR,6BAAQ,KAAR,6BAAQ,QAGxB;AAOL,CAAC,EAlBgB,oBAAoB,oCAApB,oBAAoB,QAkBpC"}
@@ -0,0 +1,6 @@
1
+ import URI from '@theia/core/lib/common/uri';
2
+ export interface LocationService {
3
+ location: URI | undefined;
4
+ drives(): Promise<URI[]>;
5
+ }
6
+ //# sourceMappingURL=location-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-service.d.ts","sourceRoot":"","sources":["../../../src/browser/location/location-service.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,GAAG,GAAG,SAAS,CAAC;IAC1B,MAAM,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;CAC5B"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2017 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ //# sourceMappingURL=location-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location-service.js","sourceRoot":"","sources":["../../../src/browser/location/location-service.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF"}
@@ -0,0 +1,7 @@
1
+ import { FileServiceContribution, FileService } from './file-service';
2
+ import { RemoteFileSystemProvider } from '../common/remote-file-system-provider';
3
+ export declare class RemoteFileServiceContribution implements FileServiceContribution {
4
+ protected readonly provider: RemoteFileSystemProvider;
5
+ registerFileSystemProviders(service: FileService): void;
6
+ }
7
+ //# sourceMappingURL=remote-file-service-contribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-file-service-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/remote-file-service-contribution.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF,qBACa,6BAA8B,YAAW,uBAAuB;IAGzE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAEtD,2BAA2B,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;CAW1D"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2020 TypeFox and others.
4
+ //
5
+ // This program and the accompanying materials are made available under the
6
+ // terms of the Eclipse Public License v. 2.0 which is available at
7
+ // http://www.eclipse.org/legal/epl-2.0.
8
+ //
9
+ // This Source Code may also be made available under the following Secondary
10
+ // Licenses when the conditions for such availability set forth in the Eclipse
11
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
+ // with the GNU Classpath Exception which is available at
13
+ // https://www.gnu.org/software/classpath/license.html.
14
+ //
15
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
+ // *****************************************************************************
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.RemoteFileServiceContribution = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const remote_file_system_provider_1 = require("../common/remote-file-system-provider");
22
+ let RemoteFileServiceContribution = class RemoteFileServiceContribution {
23
+ registerFileSystemProviders(service) {
24
+ const registering = this.provider.ready.then(() => service.registerProvider('file', this.provider));
25
+ service.onWillActivateFileSystemProvider(event => {
26
+ if (event.scheme === 'file') {
27
+ event.waitUntil(registering);
28
+ }
29
+ });
30
+ }
31
+ };
32
+ exports.RemoteFileServiceContribution = RemoteFileServiceContribution;
33
+ tslib_1.__decorate([
34
+ (0, inversify_1.inject)(remote_file_system_provider_1.RemoteFileSystemProvider),
35
+ tslib_1.__metadata("design:type", remote_file_system_provider_1.RemoteFileSystemProvider)
36
+ ], RemoteFileServiceContribution.prototype, "provider", void 0);
37
+ exports.RemoteFileServiceContribution = RemoteFileServiceContribution = tslib_1.__decorate([
38
+ (0, inversify_1.injectable)()
39
+ ], RemoteFileServiceContribution);
40
+ //# sourceMappingURL=remote-file-service-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-file-service-contribution.js","sourceRoot":"","sources":["../../src/browser/remote-file-service-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAkE;AAElE,uFAAiF;AAG1E,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAKtC,2BAA2B,CAAC,OAAoB;QAC5C,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAC9C,OAAO,CAAC,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAClD,CAAC;QACF,OAAO,CAAC,gCAAgC,CAAC,KAAK,CAAC,EAAE;YAC7C,IAAI,KAAK,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;gBAC1B,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;YACjC,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CAEJ,CAAA;AAhBY,sEAA6B;AAGnB;IADlB,IAAA,kBAAM,EAAC,sDAAwB,CAAC;sCACJ,sDAAwB;+DAAC;wCAH7C,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAgBzC"}
@@ -0,0 +1,77 @@
1
+ import URI from '@theia/core/lib/common/uri';
2
+ import { CancellationToken } from '@theia/core/lib/common/cancellation';
3
+ import { Deferred } from '@theia/core/lib/common/promise-util';
4
+ import { MessageService } from '@theia/core/lib/common/message-service';
5
+ import { Progress } from '@theia/core/lib/common/message-service-protocol';
6
+ import { FileSystemPreferences } from '../../common/filesystem-preferences';
7
+ import { FileService } from '../file-service';
8
+ import { Emitter, Event } from '@theia/core/lib/common/event';
9
+ import type { CustomDataTransfer, FileUploadService } from '../../common/upload/file-upload';
10
+ interface UploadFilesParams {
11
+ source: FileUploadService.Source;
12
+ progress: Progress;
13
+ token: CancellationToken;
14
+ leaveInTemp?: boolean;
15
+ onDidUpload?: (uri: string) => void;
16
+ }
17
+ export declare const HTTP_UPLOAD_URL: string;
18
+ export declare class FileUploadServiceImpl implements FileUploadService {
19
+ static TARGET: string;
20
+ static UPLOAD: string;
21
+ protected readonly onDidUploadEmitter: Emitter<string[]>;
22
+ get onDidUpload(): Event<string[]>;
23
+ protected uploadForm: FileUploadService.Form;
24
+ protected deferredUpload?: Deferred<FileUploadService.UploadResult>;
25
+ protected readonly messageService: MessageService;
26
+ protected fileSystemPreferences: FileSystemPreferences;
27
+ protected fileService: FileService;
28
+ get maxConcurrentUploads(): number;
29
+ protected init(): void;
30
+ protected createUploadForm(): FileUploadService.Form;
31
+ upload(targetUri: string | URI, params?: FileUploadService.UploadParams): Promise<FileUploadService.UploadResult>;
32
+ protected getUploadUrl(): string;
33
+ protected uploadAll(targetUri: URI, params: UploadFilesParams): Promise<FileUploadService.UploadResult>;
34
+ protected confirmOverwrite(fileUri: URI): Promise<boolean>;
35
+ protected uploadFile(file: File, targetUri: URI, token: CancellationToken, leaveInTemp: boolean | undefined, onProgress: (total: number, done: number) => void): {
36
+ /**
37
+ * Promise that resolves once the uploading is finished.
38
+ *
39
+ * Rejects on network error.
40
+ * Rejects if status is not OK (200).
41
+ * Rejects if cancelled.
42
+ */
43
+ upload: Promise<void>;
44
+ /**
45
+ * Promise that resolves after the uploading step, once the server answers back.
46
+ *
47
+ * Rejects on network error.
48
+ * Rejects if status is not OK (200).
49
+ * Rejects if cancelled.
50
+ */
51
+ response: Promise<void>;
52
+ };
53
+ /**
54
+ * Utility function to attach events and get a callback to unregister those.
55
+ *
56
+ * You may not call `unregister` in the same tick as `register` is invoked.
57
+ */
58
+ protected registerEvents(target: EventTarget, register: (unregister: () => void) => Record<string, EventListenerOrEventListenerObject>): void;
59
+ protected withProgress<T>(cb: (progress: Progress, token: CancellationToken) => Promise<T>): Promise<T>;
60
+ protected index(targetUri: URI, source: FileUploadService.Source, context: FileUploadService.Context): Promise<void>;
61
+ protected indexFormData(targetUri: URI, formData: FormData, context: FileUploadService.Context): Promise<void>;
62
+ protected indexDataTransfer(targetUri: URI, dataTransfer: DataTransfer, context: FileUploadService.Context): Promise<void>;
63
+ protected indexCustomDataTransfer(targetUri: URI, dataTransfer: CustomDataTransfer, context: FileUploadService.Context): Promise<void>;
64
+ protected indexFileList(targetUri: URI, files: FileList, context: FileUploadService.Context): Promise<void>;
65
+ protected indexFile(targetUri: URI, file: File, context: FileUploadService.Context): Promise<void>;
66
+ protected indexDataTransferItemList(targetUri: URI, items: DataTransferItemList, context: FileUploadService.Context): Promise<void>;
67
+ protected indexEntry(targetUri: URI, entry: WebKitEntry | null, context: FileUploadService.Context): Promise<void>;
68
+ /**
69
+ * Read all entries within a folder by block of 100 files or folders until the
70
+ * whole folder has been read.
71
+ */
72
+ protected indexDirectoryEntry(targetUri: URI, entry: WebKitDirectoryEntry, context: FileUploadService.Context): Promise<void>;
73
+ protected indexEntries(targetUri: URI, entries: WebKitEntry[], context: FileUploadService.Context): Promise<void>;
74
+ protected indexFileEntry(targetUri: URI, entry: WebKitFileEntry, context: FileUploadService.Context): Promise<void>;
75
+ }
76
+ export {};
77
+ //# sourceMappingURL=file-upload-service-impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-service-impl.d.ts","sourceRoot":"","sources":["../../../src/browser/upload/file-upload-service-impl.ts"],"names":[],"mappings":"AAmBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAA2B,iBAAiB,EAA0C,MAAM,qCAAqC,CAAC;AACzI,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAK3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAE7F,UAAU,iBAAiB;IACvB,MAAM,EAAE,iBAAiB,CA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