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

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 (347) hide show
  1. package/README.md +1 -1
  2. package/package.json +3 -3
  3. package/src/browser/upload/file-upload-service-impl.ts +2 -2
  4. package/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts +0 -16
  5. package/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts.map +0 -1
  6. package/lib/browser/breadcrumbs/filepath-breadcrumb.js +0 -42
  7. package/lib/browser/breadcrumbs/filepath-breadcrumb.js.map +0 -1
  8. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts +0 -13
  9. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts.map +0 -1
  10. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js +0 -67
  11. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js.map +0 -1
  12. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts +0 -28
  13. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts.map +0 -1
  14. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js +0 -119
  15. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js.map +0 -1
  16. package/lib/browser/download/file-download-command-contribution.d.ts +0 -19
  17. package/lib/browser/download/file-download-command-contribution.d.ts.map +0 -1
  18. package/lib/browser/download/file-download-command-contribution.js +0 -76
  19. package/lib/browser/download/file-download-command-contribution.js.map +0 -1
  20. package/lib/browser/download/file-download-frontend-module.d.ts +0 -4
  21. package/lib/browser/download/file-download-frontend-module.d.ts.map +0 -1
  22. package/lib/browser/download/file-download-frontend-module.js +0 -27
  23. package/lib/browser/download/file-download-frontend-module.js.map +0 -1
  24. package/lib/browser/download/file-download-service.d.ts +0 -21
  25. package/lib/browser/download/file-download-service.d.ts.map +0 -1
  26. package/lib/browser/download/file-download-service.js +0 -169
  27. package/lib/browser/download/file-download-service.js.map +0 -1
  28. package/lib/browser/file-dialog/file-dialog-container.d.ts +0 -6
  29. package/lib/browser/file-dialog/file-dialog-container.d.ts.map +0 -1
  30. package/lib/browser/file-dialog/file-dialog-container.js +0 -61
  31. package/lib/browser/file-dialog/file-dialog-container.js.map +0 -1
  32. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts +0 -16
  33. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts.map +0 -1
  34. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js +0 -60
  35. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js.map +0 -1
  36. package/lib/browser/file-dialog/file-dialog-model.d.ts +0 -26
  37. package/lib/browser/file-dialog/file-dialog-model.d.ts.map +0 -1
  38. package/lib/browser/file-dialog/file-dialog-model.js +0 -101
  39. package/lib/browser/file-dialog/file-dialog-model.js.map +0 -1
  40. package/lib/browser/file-dialog/file-dialog-module.d.ts +0 -4
  41. package/lib/browser/file-dialog/file-dialog-module.d.ts.map +0 -1
  42. package/lib/browser/file-dialog/file-dialog-module.js +0 -46
  43. package/lib/browser/file-dialog/file-dialog-module.js.map +0 -1
  44. package/lib/browser/file-dialog/file-dialog-service.d.ts +0 -33
  45. package/lib/browser/file-dialog/file-dialog-service.d.ts.map +0 -1
  46. package/lib/browser/file-dialog/file-dialog-service.js +0 -102
  47. package/lib/browser/file-dialog/file-dialog-service.js.map +0 -1
  48. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts +0 -40
  49. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts.map +0 -1
  50. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js +0 -82
  51. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js.map +0 -1
  52. package/lib/browser/file-dialog/file-dialog-tree.d.ts +0 -27
  53. package/lib/browser/file-dialog/file-dialog-tree.d.ts.map +0 -1
  54. package/lib/browser/file-dialog/file-dialog-tree.js +0 -84
  55. package/lib/browser/file-dialog/file-dialog-tree.js.map +0 -1
  56. package/lib/browser/file-dialog/file-dialog-widget.d.ts +0 -18
  57. package/lib/browser/file-dialog/file-dialog-widget.d.ts.map +0 -1
  58. package/lib/browser/file-dialog/file-dialog-widget.js +0 -85
  59. package/lib/browser/file-dialog/file-dialog-widget.js.map +0 -1
  60. package/lib/browser/file-dialog/file-dialog.d.ts +0 -130
  61. package/lib/browser/file-dialog/file-dialog.d.ts.map +0 -1
  62. package/lib/browser/file-dialog/file-dialog.js +0 -352
  63. package/lib/browser/file-dialog/file-dialog.js.map +0 -1
  64. package/lib/browser/file-dialog/index.d.ts +0 -5
  65. package/lib/browser/file-dialog/index.d.ts.map +0 -1
  66. package/lib/browser/file-dialog/index.js +0 -23
  67. package/lib/browser/file-dialog/index.js.map +0 -1
  68. package/lib/browser/file-resource.d.ts +0 -72
  69. package/lib/browser/file-resource.d.ts.map +0 -1
  70. package/lib/browser/file-resource.js +0 -385
  71. package/lib/browser/file-resource.js.map +0 -1
  72. package/lib/browser/file-resource.spec.d.ts +0 -2
  73. package/lib/browser/file-resource.spec.d.ts.map +0 -1
  74. package/lib/browser/file-resource.spec.js +0 -191
  75. package/lib/browser/file-resource.spec.js.map +0 -1
  76. package/lib/browser/file-selection.d.ts +0 -15
  77. package/lib/browser/file-selection.d.ts.map +0 -1
  78. package/lib/browser/file-selection.js +0 -37
  79. package/lib/browser/file-selection.js.map +0 -1
  80. package/lib/browser/file-service.d.ts +0 -427
  81. package/lib/browser/file-service.d.ts.map +0 -1
  82. package/lib/browser/file-service.js +0 -1370
  83. package/lib/browser/file-service.js.map +0 -1
  84. package/lib/browser/file-tree/file-tree-container.d.ts +0 -4
  85. package/lib/browser/file-tree/file-tree-container.d.ts.map +0 -1
  86. package/lib/browser/file-tree/file-tree-container.js +0 -36
  87. package/lib/browser/file-tree/file-tree-container.js.map +0 -1
  88. package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts +0 -31
  89. package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts.map +0 -1
  90. package/lib/browser/file-tree/file-tree-decorator-adapter.js +0 -170
  91. package/lib/browser/file-tree/file-tree-decorator-adapter.js.map +0 -1
  92. package/lib/browser/file-tree/file-tree-label-provider.d.ts +0 -13
  93. package/lib/browser/file-tree/file-tree-label-provider.d.ts.map +0 -1
  94. package/lib/browser/file-tree/file-tree-label-provider.js +0 -55
  95. package/lib/browser/file-tree/file-tree-label-provider.js.map +0 -1
  96. package/lib/browser/file-tree/file-tree-model.d.ts +0 -34
  97. package/lib/browser/file-tree/file-tree-model.d.ts.map +0 -1
  98. package/lib/browser/file-tree/file-tree-model.js +0 -201
  99. package/lib/browser/file-tree/file-tree-model.js.map +0 -1
  100. package/lib/browser/file-tree/file-tree-widget.d.ts +0 -45
  101. package/lib/browser/file-tree/file-tree-widget.d.ts.map +0 -1
  102. package/lib/browser/file-tree/file-tree-widget.js +0 -318
  103. package/lib/browser/file-tree/file-tree-widget.js.map +0 -1
  104. package/lib/browser/file-tree/file-tree.d.ts +0 -47
  105. package/lib/browser/file-tree/file-tree.d.ts.map +0 -1
  106. package/lib/browser/file-tree/file-tree.js +0 -177
  107. package/lib/browser/file-tree/file-tree.js.map +0 -1
  108. package/lib/browser/file-tree/index.d.ts +0 -7
  109. package/lib/browser/file-tree/index.d.ts.map +0 -1
  110. package/lib/browser/file-tree/index.js +0 -25
  111. package/lib/browser/file-tree/index.js.map +0 -1
  112. package/lib/browser/filesystem-frontend-contribution.d.ts +0 -76
  113. package/lib/browser/filesystem-frontend-contribution.d.ts.map +0 -1
  114. package/lib/browser/filesystem-frontend-contribution.js +0 -372
  115. package/lib/browser/filesystem-frontend-contribution.js.map +0 -1
  116. package/lib/browser/filesystem-frontend-module.d.ts +0 -6
  117. package/lib/browser/filesystem-frontend-module.d.ts.map +0 -1
  118. package/lib/browser/filesystem-frontend-module.js +0 -70
  119. package/lib/browser/filesystem-frontend-module.js.map +0 -1
  120. package/lib/browser/filesystem-saveable-service.d.ts +0 -36
  121. package/lib/browser/filesystem-saveable-service.d.ts.map +0 -1
  122. package/lib/browser/filesystem-saveable-service.js +0 -164
  123. package/lib/browser/filesystem-saveable-service.js.map +0 -1
  124. package/lib/browser/filesystem-watcher-error-handler.d.ts +0 -11
  125. package/lib/browser/filesystem-watcher-error-handler.d.ts.map +0 -1
  126. package/lib/browser/filesystem-watcher-error-handler.js +0 -62
  127. package/lib/browser/filesystem-watcher-error-handler.js.map +0 -1
  128. package/lib/browser/index.d.ts +0 -5
  129. package/lib/browser/index.d.ts.map +0 -1
  130. package/lib/browser/index.js +0 -23
  131. package/lib/browser/index.js.map +0 -1
  132. package/lib/browser/location/index.d.ts +0 -3
  133. package/lib/browser/location/index.d.ts.map +0 -1
  134. package/lib/browser/location/index.js +0 -21
  135. package/lib/browser/location/index.js.map +0 -1
  136. package/lib/browser/location/location-renderer.d.ts +0 -101
  137. package/lib/browser/location/location-renderer.d.ts.map +0 -1
  138. package/lib/browser/location/location-renderer.js +0 -345
  139. package/lib/browser/location/location-renderer.js.map +0 -1
  140. package/lib/browser/location/location-service.d.ts +0 -6
  141. package/lib/browser/location/location-service.d.ts.map +0 -1
  142. package/lib/browser/location/location-service.js +0 -18
  143. package/lib/browser/location/location-service.js.map +0 -1
  144. package/lib/browser/remote-file-service-contribution.d.ts +0 -7
  145. package/lib/browser/remote-file-service-contribution.d.ts.map +0 -1
  146. package/lib/browser/remote-file-service-contribution.js +0 -40
  147. package/lib/browser/remote-file-service-contribution.js.map +0 -1
  148. package/lib/browser/upload/file-upload-service-impl.d.ts +0 -77
  149. package/lib/browser/upload/file-upload-service-impl.d.ts.map +0 -1
  150. package/lib/browser/upload/file-upload-service-impl.js +0 -449
  151. package/lib/browser/upload/file-upload-service-impl.js.map +0 -1
  152. package/lib/browser/vscode-file-service-contribution.d.ts +0 -25
  153. package/lib/browser/vscode-file-service-contribution.d.ts.map +0 -1
  154. package/lib/browser/vscode-file-service-contribution.js +0 -99
  155. package/lib/browser/vscode-file-service-contribution.js.map +0 -1
  156. package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts +0 -4
  157. package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts.map +0 -1
  158. package/lib/browser-only/browser-only-filesystem-frontend-module.js +0 -49
  159. package/lib/browser-only/browser-only-filesystem-frontend-module.js.map +0 -1
  160. package/lib/browser-only/browser-only-filesystem-provider-server.d.ts +0 -12
  161. package/lib/browser-only/browser-only-filesystem-provider-server.d.ts.map +0 -1
  162. package/lib/browser-only/browser-only-filesystem-provider-server.js +0 -40
  163. package/lib/browser-only/browser-only-filesystem-provider-server.js.map +0 -1
  164. package/lib/browser-only/download/file-download-command-contribution.d.ts +0 -15
  165. package/lib/browser-only/download/file-download-command-contribution.d.ts.map +0 -1
  166. package/lib/browser-only/download/file-download-command-contribution.js +0 -55
  167. package/lib/browser-only/download/file-download-command-contribution.js.map +0 -1
  168. package/lib/browser-only/download/file-download-frontend-module.d.ts +0 -4
  169. package/lib/browser-only/download/file-download-frontend-module.d.ts.map +0 -1
  170. package/lib/browser-only/download/file-download-frontend-module.js +0 -27
  171. package/lib/browser-only/download/file-download-frontend-module.js.map +0 -1
  172. package/lib/browser-only/download/file-download-service.d.ts +0 -86
  173. package/lib/browser-only/download/file-download-service.d.ts.map +0 -1
  174. package/lib/browser-only/download/file-download-service.js +0 -551
  175. package/lib/browser-only/download/file-download-service.js.map +0 -1
  176. package/lib/browser-only/file-search.d.ts +0 -38
  177. package/lib/browser-only/file-search.d.ts.map +0 -1
  178. package/lib/browser-only/file-search.js +0 -153
  179. package/lib/browser-only/file-search.js.map +0 -1
  180. package/lib/browser-only/opfs-filesystem-initialization.d.ts +0 -13
  181. package/lib/browser-only/opfs-filesystem-initialization.d.ts.map +0 -1
  182. package/lib/browser-only/opfs-filesystem-initialization.js +0 -36
  183. package/lib/browser-only/opfs-filesystem-initialization.js.map +0 -1
  184. package/lib/browser-only/opfs-filesystem-provider.d.ts +0 -108
  185. package/lib/browser-only/opfs-filesystem-provider.d.ts.map +0 -1
  186. package/lib/browser-only/opfs-filesystem-provider.js +0 -487
  187. package/lib/browser-only/opfs-filesystem-provider.js.map +0 -1
  188. package/lib/browser-only/upload/file-upload-service-impl.d.ts +0 -67
  189. package/lib/browser-only/upload/file-upload-service-impl.d.ts.map +0 -1
  190. package/lib/browser-only/upload/file-upload-service-impl.js +0 -328
  191. package/lib/browser-only/upload/file-upload-service-impl.js.map +0 -1
  192. package/lib/common/delegating-file-system-provider.d.ts +0 -77
  193. package/lib/common/delegating-file-system-provider.d.ts.map +0 -1
  194. package/lib/common/delegating-file-system-provider.js +0 -169
  195. package/lib/common/delegating-file-system-provider.js.map +0 -1
  196. package/lib/common/download/file-download.d.ts +0 -17
  197. package/lib/common/download/file-download.d.ts.map +0 -1
  198. package/lib/common/download/file-download.js +0 -28
  199. package/lib/common/download/file-download.js.map +0 -1
  200. package/lib/common/file-upload.d.ts +0 -2
  201. package/lib/common/file-upload.d.ts.map +0 -1
  202. package/lib/common/file-upload.js +0 -20
  203. package/lib/common/file-upload.js.map +0 -1
  204. package/lib/common/files.d.ts +0 -668
  205. package/lib/common/files.d.ts.map +0 -1
  206. package/lib/common/files.js +0 -390
  207. package/lib/common/files.js.map +0 -1
  208. package/lib/common/files.spec.d.ts +0 -2
  209. package/lib/common/files.spec.d.ts.map +0 -1
  210. package/lib/common/files.spec.js +0 -52
  211. package/lib/common/files.spec.js.map +0 -1
  212. package/lib/common/filesystem-preferences.d.ts +0 -33
  213. package/lib/common/filesystem-preferences.d.ts.map +0 -1
  214. package/lib/common/filesystem-preferences.js +0 -122
  215. package/lib/common/filesystem-preferences.js.map +0 -1
  216. package/lib/common/filesystem-utils.d.ts +0 -15
  217. package/lib/common/filesystem-utils.d.ts.map +0 -1
  218. package/lib/common/filesystem-utils.js +0 -64
  219. package/lib/common/filesystem-utils.js.map +0 -1
  220. package/lib/common/filesystem-utils.spec.d.ts +0 -2
  221. package/lib/common/filesystem-utils.spec.d.ts.map +0 -1
  222. package/lib/common/filesystem-utils.spec.js +0 -379
  223. package/lib/common/filesystem-utils.spec.js.map +0 -1
  224. package/lib/common/filesystem-watcher-protocol.d.ts +0 -72
  225. package/lib/common/filesystem-watcher-protocol.d.ts.map +0 -1
  226. package/lib/common/filesystem-watcher-protocol.js +0 -21
  227. package/lib/common/filesystem-watcher-protocol.js.map +0 -1
  228. package/lib/common/filesystem.d.ts +0 -23
  229. package/lib/common/filesystem.d.ts.map +0 -1
  230. package/lib/common/filesystem.js +0 -43
  231. package/lib/common/filesystem.js.map +0 -1
  232. package/lib/common/index.d.ts +0 -4
  233. package/lib/common/index.d.ts.map +0 -1
  234. package/lib/common/index.js +0 -22
  235. package/lib/common/index.js.map +0 -1
  236. package/lib/common/io.d.ts +0 -20
  237. package/lib/common/io.d.ts.map +0 -1
  238. package/lib/common/io.js +0 -117
  239. package/lib/common/io.js.map +0 -1
  240. package/lib/common/remote-file-system-provider.d.ts +0 -174
  241. package/lib/common/remote-file-system-provider.d.ts.map +0 -1
  242. package/lib/common/remote-file-system-provider.js +0 -435
  243. package/lib/common/remote-file-system-provider.js.map +0 -1
  244. package/lib/common/upload/file-upload.d.ts +0 -45
  245. package/lib/common/upload/file-upload.d.ts.map +0 -1
  246. package/lib/common/upload/file-upload.js +0 -20
  247. package/lib/common/upload/file-upload.js.map +0 -1
  248. package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts +0 -4
  249. package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts.map +0 -1
  250. package/lib/electron-browser/file-dialog/electron-file-dialog-module.js +0 -25
  251. package/lib/electron-browser/file-dialog/electron-file-dialog-module.js.map +0 -1
  252. package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts +0 -20
  253. package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts.map +0 -1
  254. package/lib/electron-browser/file-dialog/electron-file-dialog-service.js +0 -149
  255. package/lib/electron-browser/file-dialog/electron-file-dialog-service.js.map +0 -1
  256. package/lib/electron-browser/preload.d.ts +0 -2
  257. package/lib/electron-browser/preload.d.ts.map +0 -1
  258. package/lib/electron-browser/preload.js +0 -31
  259. package/lib/electron-browser/preload.js.map +0 -1
  260. package/lib/electron-common/electron-api.d.ts +0 -35
  261. package/lib/electron-common/electron-api.d.ts.map +0 -1
  262. package/lib/electron-common/electron-api.js +0 -21
  263. package/lib/electron-common/electron-api.js.map +0 -1
  264. package/lib/electron-main/electron-api-main.d.ts +0 -6
  265. package/lib/electron-main/electron-api-main.d.ts.map +0 -1
  266. package/lib/electron-main/electron-api-main.js +0 -74
  267. package/lib/electron-main/electron-api-main.js.map +0 -1
  268. package/lib/electron-main/electron-main-module.d.ts +0 -4
  269. package/lib/electron-main/electron-main-module.d.ts.map +0 -1
  270. package/lib/electron-main/electron-main-module.js +0 -25
  271. package/lib/electron-main/electron-main-module.js.map +0 -1
  272. package/lib/node/disk-file-system-provider.d.ts +0 -73
  273. package/lib/node/disk-file-system-provider.d.ts.map +0 -1
  274. package/lib/node/disk-file-system-provider.js +0 -786
  275. package/lib/node/disk-file-system-provider.js.map +0 -1
  276. package/lib/node/disk-file-system-provider.spec.d.ts +0 -2
  277. package/lib/node/disk-file-system-provider.spec.d.ts.map +0 -1
  278. package/lib/node/disk-file-system-provider.spec.js +0 -123
  279. package/lib/node/disk-file-system-provider.spec.js.map +0 -1
  280. package/lib/node/download/directory-archiver.d.ts +0 -10
  281. package/lib/node/download/directory-archiver.d.ts.map +0 -1
  282. package/lib/node/download/directory-archiver.js +0 -128
  283. package/lib/node/download/directory-archiver.js.map +0 -1
  284. package/lib/node/download/directory-archiver.spec.d.ts +0 -2
  285. package/lib/node/download/directory-archiver.spec.d.ts.map +0 -1
  286. package/lib/node/download/directory-archiver.spec.js +0 -98
  287. package/lib/node/download/directory-archiver.spec.js.map +0 -1
  288. package/lib/node/download/file-download-backend-module.d.ts +0 -4
  289. package/lib/node/download/file-download-backend-module.d.ts.map +0 -1
  290. package/lib/node/download/file-download-backend-module.js +0 -33
  291. package/lib/node/download/file-download-backend-module.js.map +0 -1
  292. package/lib/node/download/file-download-cache.d.ts +0 -22
  293. package/lib/node/download/file-download-cache.d.ts.map +0 -1
  294. package/lib/node/download/file-download-cache.js +0 -81
  295. package/lib/node/download/file-download-cache.js.map +0 -1
  296. package/lib/node/download/file-download-endpoint.d.ts +0 -12
  297. package/lib/node/download/file-download-endpoint.d.ts.map +0 -1
  298. package/lib/node/download/file-download-endpoint.js +0 -68
  299. package/lib/node/download/file-download-endpoint.js.map +0 -1
  300. package/lib/node/download/file-download-handler.d.ts +0 -51
  301. package/lib/node/download/file-download-handler.d.ts.map +0 -1
  302. package/lib/node/download/file-download-handler.js +0 -307
  303. package/lib/node/download/file-download-handler.js.map +0 -1
  304. package/lib/node/download/test/mock-directory-archiver.d.ts +0 -8
  305. package/lib/node/download/test/mock-directory-archiver.d.ts.map +0 -1
  306. package/lib/node/download/test/mock-directory-archiver.js +0 -30
  307. package/lib/node/download/test/mock-directory-archiver.js.map +0 -1
  308. package/lib/node/file-change-collection.d.ts +0 -23
  309. package/lib/node/file-change-collection.d.ts.map +0 -1
  310. package/lib/node/file-change-collection.js +0 -78
  311. package/lib/node/file-change-collection.js.map +0 -1
  312. package/lib/node/file-change-collection.spec.d.ts +0 -2
  313. package/lib/node/file-change-collection.spec.d.ts.map +0 -1
  314. package/lib/node/file-change-collection.spec.js +0 -91
  315. package/lib/node/file-change-collection.spec.js.map +0 -1
  316. package/lib/node/filesystem-backend-module.d.ts +0 -27
  317. package/lib/node/filesystem-backend-module.d.ts.map +0 -1
  318. package/lib/node/filesystem-backend-module.js +0 -123
  319. package/lib/node/filesystem-backend-module.js.map +0 -1
  320. package/lib/node/filesystem-watcher-client.d.ts +0 -23
  321. package/lib/node/filesystem-watcher-client.d.ts.map +0 -1
  322. package/lib/node/filesystem-watcher-client.js +0 -75
  323. package/lib/node/filesystem-watcher-client.js.map +0 -1
  324. package/lib/node/filesystem-watcher-dispatcher.d.ts +0 -24
  325. package/lib/node/filesystem-watcher-dispatcher.d.ts.map +0 -1
  326. package/lib/node/filesystem-watcher-dispatcher.js +0 -81
  327. package/lib/node/filesystem-watcher-dispatcher.js.map +0 -1
  328. package/lib/node/parcel-watcher/index.d.ts +0 -4
  329. package/lib/node/parcel-watcher/index.d.ts.map +0 -1
  330. package/lib/node/parcel-watcher/index.js +0 -40
  331. package/lib/node/parcel-watcher/index.js.map +0 -1
  332. package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts +0 -193
  333. package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts.map +0 -1
  334. package/lib/node/parcel-watcher/parcel-filesystem-service.js +0 -406
  335. package/lib/node/parcel-watcher/parcel-filesystem-service.js.map +0 -1
  336. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts +0 -2
  337. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts.map +0 -1
  338. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js +0 -145
  339. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js.map +0 -1
  340. package/lib/node/parcel-watcher/parcel-options.d.ts +0 -7
  341. package/lib/node/parcel-watcher/parcel-options.d.ts.map +0 -1
  342. package/lib/node/parcel-watcher/parcel-options.js +0 -23
  343. package/lib/node/parcel-watcher/parcel-options.js.map +0 -1
  344. package/lib/node/upload/node-file-upload-service.d.ts +0 -17
  345. package/lib/node/upload/node-file-upload-service.d.ts.map +0 -1
  346. package/lib/node/upload/node-file-upload-service.js +0 -87
  347. package/lib/node/upload/node-file-upload-service.js.map +0 -1
@@ -1,328 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 Maksim Kachurin
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 FileUploadServiceImpl_1;
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.FileUploadServiceImpl = void 0;
20
- const tslib_1 = require("tslib");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const uri_1 = require("@theia/core/lib/common/uri");
23
- const cancellation_1 = require("@theia/core/lib/common/cancellation");
24
- const promise_util_1 = require("@theia/core/lib/common/promise-util");
25
- const message_service_1 = require("@theia/core/lib/common/message-service");
26
- const throttle = require("@theia/core/shared/lodash.throttle");
27
- const async_mutex_1 = require("async-mutex");
28
- const file_service_1 = require("../../browser/file-service");
29
- const browser_1 = require("@theia/core/lib/browser");
30
- const nls_1 = require("@theia/core/lib/common/nls");
31
- const event_1 = require("@theia/core/lib/common/event");
32
- const filesystem_preferences_1 = require("../../common/filesystem-preferences");
33
- const stream_1 = require("@theia/core/lib/common/stream");
34
- const minimatch_1 = require("minimatch");
35
- let FileUploadServiceImpl = FileUploadServiceImpl_1 = class FileUploadServiceImpl {
36
- constructor() {
37
- this.onDidUploadEmitter = new event_1.Emitter();
38
- this.ignorePatterns = [];
39
- }
40
- get onDidUpload() {
41
- return this.onDidUploadEmitter.event;
42
- }
43
- get maxConcurrentUploads() {
44
- const maxConcurrentUploads = this.fileSystemPreferences['files.maxConcurrentUploads'];
45
- return maxConcurrentUploads > 0 ? maxConcurrentUploads : Infinity;
46
- }
47
- init() {
48
- this.uploadForm = this.createUploadForm();
49
- }
50
- createUploadForm() {
51
- const targetInput = document.createElement('input');
52
- targetInput.type = 'text';
53
- targetInput.spellcheck = false;
54
- targetInput.name = FileUploadServiceImpl_1.TARGET;
55
- targetInput.classList.add('theia-input');
56
- const fileInput = document.createElement('input');
57
- fileInput.type = 'file';
58
- fileInput.classList.add('theia-input');
59
- fileInput.name = FileUploadServiceImpl_1.UPLOAD;
60
- fileInput.multiple = true;
61
- const form = document.createElement('form');
62
- form.style.display = 'none';
63
- form.enctype = 'multipart/form-data';
64
- form.append(targetInput);
65
- form.append(fileInput);
66
- document.body.appendChild(form);
67
- fileInput.addEventListener('change', () => {
68
- if (this.deferredUpload && fileInput.value) {
69
- const source = new FormData(form);
70
- // clean up for reuse
71
- fileInput.value = '';
72
- const targetUri = new uri_1.default(source.get(FileUploadServiceImpl_1.TARGET));
73
- const { resolve, reject } = this.deferredUpload;
74
- this.deferredUpload = undefined;
75
- const { onDidUpload } = this.uploadForm;
76
- this.withProgress((progress, token) => this.uploadFiles(targetUri, { source, progress, token, onDidUpload })).then(resolve, reject);
77
- }
78
- });
79
- return { targetInput, fileInput };
80
- }
81
- async upload(targetUri, params) {
82
- const { source, onDidUpload } = params || {};
83
- if (source) {
84
- return this.withProgress((progress, token) => this.uploadFiles(typeof targetUri === 'string' ? new uri_1.default(targetUri) : targetUri, { source, progress, token, onDidUpload }));
85
- }
86
- this.deferredUpload = new promise_util_1.Deferred();
87
- this.uploadForm.targetInput.value = String(targetUri);
88
- this.uploadForm.fileInput.click();
89
- this.uploadForm.onDidUpload = onDidUpload;
90
- return this.deferredUpload.promise;
91
- }
92
- async withProgress(cb) {
93
- const cancellationSource = new cancellation_1.CancellationTokenSource();
94
- const { token } = cancellationSource;
95
- const text = nls_1.nls.localize('theia/filesystem/uploadFiles', 'Saving Files');
96
- const progress = await this.messageService.showProgress({ text, options: { cancelable: true } }, () => cancellationSource.cancel());
97
- try {
98
- return await cb(progress, token);
99
- }
100
- finally {
101
- progress.cancel();
102
- }
103
- }
104
- async confirmOverwrite(fileUri) {
105
- const dialog = new browser_1.ConfirmDialog({
106
- title: nls_1.nls.localizeByDefault('Replace'),
107
- msg: nls_1.nls.localizeByDefault("A file or folder with the name '{0}' already exists in the destination folder. Do you want to replace it?", fileUri.path.base),
108
- ok: nls_1.nls.localizeByDefault('Replace'),
109
- cancel: browser_1.Dialog.CANCEL
110
- });
111
- return !!await dialog.open();
112
- }
113
- /**
114
- * Upload all files to the filesystem
115
- */
116
- async uploadFiles(targetUri, params) {
117
- const status = new Map();
118
- const report = throttle(() => {
119
- const list = Array.from(status.values());
120
- const total = list.length;
121
- const done = list.filter(item => item.uploaded).length;
122
- params.progress.report({
123
- message: nls_1.nls.localize('theia/filesystem/processedOutOf', 'Processed {0} out of {1}', done, total),
124
- work: { total, done }
125
- });
126
- }, 100);
127
- const uploads = [];
128
- const uploadSemaphore = new async_mutex_1.Semaphore(this.maxConcurrentUploads);
129
- try {
130
- const files = await this.enumerateFiles(targetUri, params.source, params.token);
131
- for (const { file, uri } of files) {
132
- (0, cancellation_1.checkCancelled)(params.token);
133
- // Check exists and confirm overwrite before adding to queue
134
- if (await this.fileService.exists(uri) && !await this.confirmOverwrite(uri)) {
135
- continue;
136
- }
137
- status.set(uri, {
138
- uploaded: false
139
- });
140
- report();
141
- uploads.push(uploadSemaphore.runExclusive(async () => {
142
- const entry = status.get(uri);
143
- try {
144
- (0, cancellation_1.checkCancelled)(params.token);
145
- await this.uploadFile(file, uri);
146
- if (entry) {
147
- entry.uploaded = true;
148
- report();
149
- }
150
- if (params.onDidUpload) {
151
- params.onDidUpload(uri.toString(true));
152
- }
153
- }
154
- catch (error) {
155
- if (entry) {
156
- entry.failed = true;
157
- report();
158
- }
159
- throw error;
160
- }
161
- }));
162
- }
163
- (0, cancellation_1.checkCancelled)(params.token);
164
- await Promise.all(uploads);
165
- }
166
- catch (error) {
167
- uploadSemaphore.cancel();
168
- if (!(0, cancellation_1.isCancelled)(error)) {
169
- this.messageService.error(nls_1.nls.localize('theia/filesystem/uploadFailed', 'An error occurred while saving a file. {0}', error.message));
170
- throw error;
171
- }
172
- }
173
- const uploaded = Array.from(status.keys()).map(uri => uri.toString(true));
174
- this.onDidUploadEmitter.fire(uploaded);
175
- return { uploaded };
176
- }
177
- /**
178
- * Upload (write) a file directly to the filesystem
179
- */
180
- async uploadFile(file, targetUri) {
181
- await this.fileService.writeFile(targetUri, (0, stream_1.fileToStream)(file));
182
- }
183
- /**
184
- * Normalize sources into an array of { file, uri } objects
185
- */
186
- async enumerateFiles(targetUri, source, token) {
187
- (0, cancellation_1.checkCancelled)(token);
188
- if (source instanceof FormData) {
189
- // Handle FormData declaratively
190
- const files = source.getAll(FileUploadServiceImpl_1.UPLOAD)
191
- .filter((entry) => entry instanceof File)
192
- .filter(entry => this.shouldIncludeFile(entry.name))
193
- .map(entry => ({
194
- file: entry,
195
- uri: targetUri.resolve(entry.name)
196
- }));
197
- return files;
198
- }
199
- else if (source instanceof DataTransfer) {
200
- // Use WebKit Entries for folder traversal
201
- if (source.items && this.supportsWebKitEntries()) {
202
- // Collect all files first
203
- const allFiles = [];
204
- const items = Array.from(source.items);
205
- const entries = items.map(item => item.webkitGetAsEntry()).filter((entry) => !!entry);
206
- for (let i = 0; i < entries.length; i++) {
207
- const entry = entries[i];
208
- const filesFromEntry = await this.traverseEntry(targetUri, entry, token);
209
- allFiles.push(...filesFromEntry);
210
- }
211
- return allFiles;
212
- }
213
- else {
214
- // Fall back to flat file list
215
- return Array.from(source.files)
216
- .filter((file) => !!file)
217
- .filter(file => this.shouldIncludeFile(file.name))
218
- .map(file => ({
219
- file,
220
- uri: targetUri.resolve(file.name)
221
- }));
222
- }
223
- }
224
- else {
225
- // Handle CustomDataTransfer declaratively
226
- const files = await Promise.all(Array.from(source)
227
- .map(async ([, item]) => {
228
- const fileData = item.asFile();
229
- if (fileData && this.shouldIncludeFile(fileData.name)) {
230
- const data = await fileData.data();
231
- return {
232
- file: new File([data], fileData.name, { type: 'application/octet-stream' }),
233
- uri: targetUri.resolve(fileData.name)
234
- };
235
- }
236
- return undefined;
237
- }));
238
- return files.filter(Boolean);
239
- }
240
- }
241
- /**
242
- * Traverse WebKit Entries (files and folders)
243
- */
244
- async traverseEntry(base, entry, token) {
245
- if (!entry) {
246
- return [];
247
- }
248
- // Skip system entries
249
- if (!this.shouldIncludeFile(entry.name)) {
250
- return [];
251
- }
252
- // directory
253
- if (entry.isDirectory) {
254
- const dir = entry;
255
- const newBase = base.resolve(dir.name);
256
- const entries = await this.readAllEntries(dir, token);
257
- (0, cancellation_1.checkCancelled)(token);
258
- const chunks = await Promise.all(entries.map(sub => this.traverseEntry(newBase, sub, token)));
259
- return chunks.flat();
260
- }
261
- // file
262
- const fileEntry = entry;
263
- const file = await this.readFileEntry(fileEntry, token);
264
- (0, cancellation_1.checkCancelled)(token);
265
- return [{ file, uri: base.resolve(entry.name) }];
266
- }
267
- /**
268
- * Read all entries from a WebKit directory entry
269
- */
270
- async readAllEntries(dir, token) {
271
- const reader = dir.createReader();
272
- const out = [];
273
- while (true) {
274
- (0, cancellation_1.checkCancelled)(token);
275
- const batch = await new Promise((resolve, reject) => reader.readEntries(resolve, reject));
276
- if (!batch.length) {
277
- break;
278
- }
279
- out.push(...batch);
280
- // yield to the event loop to keep UI responsive
281
- await Promise.resolve();
282
- }
283
- return out;
284
- }
285
- /**
286
- * Read a file from a WebKit file entry
287
- */
288
- async readFileEntry(fileEntry, token) {
289
- (0, cancellation_1.checkCancelled)(token);
290
- try {
291
- return await new Promise((resolve, reject) => fileEntry.file(resolve, reject));
292
- }
293
- catch (err) {
294
- throw err;
295
- }
296
- }
297
- supportsWebKitEntries() {
298
- return typeof DataTransferItem.prototype.webkitGetAsEntry === 'function';
299
- }
300
- shouldIncludeFile(path) {
301
- return !this.ignorePatterns.some((pattern) => (0, minimatch_1.minimatch)(path, pattern));
302
- }
303
- };
304
- exports.FileUploadServiceImpl = FileUploadServiceImpl;
305
- FileUploadServiceImpl.TARGET = 'target';
306
- FileUploadServiceImpl.UPLOAD = 'upload';
307
- tslib_1.__decorate([
308
- (0, inversify_1.inject)(filesystem_preferences_1.FileSystemPreferences),
309
- tslib_1.__metadata("design:type", Object)
310
- ], FileUploadServiceImpl.prototype, "fileSystemPreferences", void 0);
311
- tslib_1.__decorate([
312
- (0, inversify_1.inject)(file_service_1.FileService),
313
- tslib_1.__metadata("design:type", file_service_1.FileService)
314
- ], FileUploadServiceImpl.prototype, "fileService", void 0);
315
- tslib_1.__decorate([
316
- (0, inversify_1.inject)(message_service_1.MessageService),
317
- tslib_1.__metadata("design:type", message_service_1.MessageService)
318
- ], FileUploadServiceImpl.prototype, "messageService", void 0);
319
- tslib_1.__decorate([
320
- (0, inversify_1.postConstruct)(),
321
- tslib_1.__metadata("design:type", Function),
322
- tslib_1.__metadata("design:paramtypes", []),
323
- tslib_1.__metadata("design:returntype", void 0)
324
- ], FileUploadServiceImpl.prototype, "init", null);
325
- exports.FileUploadServiceImpl = FileUploadServiceImpl = FileUploadServiceImpl_1 = tslib_1.__decorate([
326
- (0, inversify_1.injectable)()
327
- ], FileUploadServiceImpl);
328
- //# sourceMappingURL=file-upload-service-impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-upload-service-impl.js","sourceRoot":"","sources":["../../../src/browser-only/upload/file-upload-service-impl.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qCAAqC;AACrC,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,4DAAiF;AACjF,oDAA6C;AAC7C,sEAA8H;AAC9H,sEAA+D;AAC/D,4EAAwE;AAExE,+DAAgE;AAChE,6CAAwC;AACxC,6DAAyD;AACzD,qDAAgE;AAChE,oDAAiD;AACjD,wDAA8D;AAC9D,gFAA4E;AAC5E,0DAA6D;AAC7D,yCAAsC;AAiB/B,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAA3B;QAKgB,uBAAkB,GAAG,IAAI,eAAO,EAAY,CAAC;QAa/C,mBAAc,GAAa,EAAE,CAAC;IAsVnD,CAAC;IApVG,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;IACzC,CA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,CAAC;QAC5B,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,aAAa,CACzB,SAA0B,EAC1B,KAAwB;QAExB,IAAA,6BAAc,EAAC,KAAK,CAAC,CAAC;QACtB,IAAI,CAAC;YACD,OAAO,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;QACzF,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,GAAG,CAAC;QACd,CAAC;IACL,CAAC;IAES,qBAAqB;QAC3B,OAAO,OAAO,gBAAgB,CAAC,SAAS,CAAC,gBAAgB,KAAK,UAAU,CAAC;IAC7E,CAAC;IAES,iBAAiB,CAAC,IAAY;QACpC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,qBAAS,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACpF,CAAC;;AAvWQ,sDAAqB;AAEvB,4BAAM,GAAG,QAAQ,AAAX,CAAY;AAClB,4BAAM,GAAG,QAAQ,AAAX,CAAY;AAOf;IADT,IAAA,kBAAM,EAAC,8CAAqB,CAAC;;oEACyB;AAG7C;IADT,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCACG,0BAAW;0DAAC;AAGhB;IADlB,IAAA,kBAAM,EAAC,gCAAc,CAAC;sCACY,gCAAc;6DAAC;AAcxC;IADT,IAAA,yBAAa,GAAE;;;;iDAGf;gCAhCQ,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAwWjC"}
@@ -1,77 +0,0 @@
1
- import URI from '@theia/core/lib/common/uri';
2
- import { Event, CancellationToken } from '@theia/core/lib/common';
3
- import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
4
- import { FileSystemProvider, FileSystemProviderCapabilities, WatchOptions, FileDeleteOptions, FileOverwriteOptions, FileWriteOptions, FileOpenOptions, FileChange, Stat, FileType, FileUpdateOptions, FileUpdateResult, FileReadStreamOptions } from './files';
5
- import type { TextDocumentContentChangeEvent } from '@theia/core/shared/vscode-languageserver-protocol';
6
- import { ReadableStreamEvents } from '@theia/core/lib/common/stream';
7
- export declare class DelegatingFileSystemProvider implements Required<FileSystemProvider>, Disposable {
8
- protected readonly delegate: FileSystemProvider;
9
- protected readonly options: DelegatingFileSystemProvider.Options;
10
- protected readonly toDispose: DisposableCollection;
11
- private readonly onDidChangeFileEmitter;
12
- readonly onDidChangeFile: Event<readonly FileChange[]>;
13
- private readonly onFileWatchErrorEmitter;
14
- readonly onFileWatchError: Event<void>;
15
- constructor(delegate: FileSystemProvider, options: DelegatingFileSystemProvider.Options, toDispose?: DisposableCollection);
16
- dispose(): void;
17
- get capabilities(): FileSystemProviderCapabilities;
18
- get onDidChangeCapabilities(): Event<void>;
19
- watch(resource: URI, opts: WatchOptions): Disposable;
20
- stat(resource: URI): Promise<Stat>;
21
- access(resource: URI, mode?: number): Promise<void>;
22
- fsPath(resource: URI): Promise<string>;
23
- mkdir(resource: URI): Promise<void>;
24
- rename(from: URI, to: URI, opts: FileOverwriteOptions): Promise<void>;
25
- copy(from: URI, to: URI, opts: FileOverwriteOptions): Promise<void>;
26
- readFile(resource: URI): Promise<Uint8Array>;
27
- readFileStream(resource: URI, opts: FileReadStreamOptions, token: CancellationToken): ReadableStreamEvents<Uint8Array>;
28
- readdir(resource: URI): Promise<[string, FileType][]>;
29
- writeFile(resource: URI, content: Uint8Array, opts: FileWriteOptions): Promise<void>;
30
- open(resource: URI, opts: FileOpenOptions): Promise<number>;
31
- close(fd: number): Promise<void>;
32
- read(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
33
- write(fd: number, pos: number, data: Uint8Array, offset: number, length: number): Promise<number>;
34
- delete(resource: URI, opts: FileDeleteOptions): Promise<void>;
35
- updateFile(resource: URI, changes: TextDocumentContentChangeEvent[], opts: FileUpdateOptions): Promise<FileUpdateResult>;
36
- protected handleFileChanges(changes: readonly FileChange[]): void;
37
- /**
38
- * Converts to an underlying fs provider resource format.
39
- *
40
- * For example converting `user-storage` resources to `file` resources under a user home:
41
- * user-storage:/user/settings.json => file://home/.theia/settings.json
42
- */
43
- toUnderlyingResource(resource: URI): URI;
44
- /**
45
- * Converts from an underlying fs provider resource format.
46
- *
47
- * For example converting `file` resources under a user home to `user-storage` resource:
48
- * - file://home/.theia/settings.json => user-storage:/user/settings.json
49
- * - file://documents/some-document.txt => undefined
50
- */
51
- fromUnderlyingResource(resource: URI): URI | undefined;
52
- }
53
- export declare namespace DelegatingFileSystemProvider {
54
- interface Options {
55
- uriConverter: URIConverter;
56
- }
57
- interface URIConverter {
58
- /**
59
- * Converts to an underlying fs provider resource format.
60
- * Returns undefined if the given resource is not valid resource.
61
- *
62
- * For example converting `user-storage` resources to `file` resources under a user home:
63
- * user-storage:/user/settings.json => file://home/.theia/settings.json
64
- * user-storage:/settings.json => undefined
65
- */
66
- to(resource: URI): URI | undefined;
67
- /**
68
- * Converts from an underlying fs provider resource format.
69
- *
70
- * For example converting `file` resources under a user home to `user-storage` resource:
71
- * - file://home/.theia/settings.json => user-storage:/settings.json
72
- * - file://documents/some-document.txt => undefined
73
- */
74
- from(resource: URI): URI | undefined;
75
- }
76
- }
77
- //# sourceMappingURL=delegating-file-system-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delegating-file-system-provider.d.ts","sourceRoot":"","sources":["../../src/common/delegating-file-system-provider.ts"],"names":[],"mappings":"AAgBA,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAW,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EACH,kBAAkB,EAAE,8BAA8B,EAAE,YAAY,EAAE,iBAAiB,EAA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;IAI7D,UAAU,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,8BAA8B,EAAE,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAOxH,SAAS,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,GAAG,IAAI;IAgBjE;;;;;OAKG;IACH,oBAAoB,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG;IAQxC;;;;;;OAMG;IACH,sBAAsB,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS;CAIzD;AACD,yBAAiB,4BAA4B,CAAC;IAC1C,UAAiB,OAAO;QACpB,YAAY,EAAE,YAAY,CAAA;KAC7B;IACD,UAAiB,YAAY;QACzB;;;;;;;WAOG;QACH,EAAE,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;QACnC;;;;;;WAMG;QACH,IAAI,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;KACxC;CACJ"}
@@ -1,169 +0,0 @@
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.DelegatingFileSystemProvider = void 0;
19
- const common_1 = require("@theia/core/lib/common");
20
- const disposable_1 = require("@theia/core/lib/common/disposable");
21
- const files_1 = require("./files");
22
- class DelegatingFileSystemProvider {
23
- constructor(delegate, options, toDispose = new disposable_1.DisposableCollection()) {
24
- this.delegate = delegate;
25
- this.options = options;
26
- this.toDispose = toDispose;
27
- this.onDidChangeFileEmitter = new common_1.Emitter();
28
- this.onDidChangeFile = this.onDidChangeFileEmitter.event;
29
- this.onFileWatchErrorEmitter = new common_1.Emitter();
30
- this.onFileWatchError = this.onFileWatchErrorEmitter.event;
31
- this.toDispose.push(this.onDidChangeFileEmitter);
32
- this.toDispose.push(delegate.onDidChangeFile(changes => this.handleFileChanges(changes)));
33
- this.toDispose.push(this.onFileWatchErrorEmitter);
34
- this.toDispose.push(delegate.onFileWatchError(changes => this.onFileWatchErrorEmitter.fire()));
35
- }
36
- dispose() {
37
- this.toDispose.dispose();
38
- }
39
- get capabilities() {
40
- return this.delegate.capabilities;
41
- }
42
- get onDidChangeCapabilities() {
43
- return this.delegate.onDidChangeCapabilities;
44
- }
45
- watch(resource, opts) {
46
- return this.delegate.watch(this.toUnderlyingResource(resource), opts);
47
- }
48
- stat(resource) {
49
- return this.delegate.stat(this.toUnderlyingResource(resource));
50
- }
51
- access(resource, mode) {
52
- if ((0, files_1.hasAccessCapability)(this.delegate)) {
53
- return this.delegate.access(this.toUnderlyingResource(resource), mode);
54
- }
55
- throw new Error('not supported');
56
- }
57
- fsPath(resource) {
58
- if ((0, files_1.hasAccessCapability)(this.delegate)) {
59
- return this.delegate.fsPath(this.toUnderlyingResource(resource));
60
- }
61
- throw new Error('not supported');
62
- }
63
- mkdir(resource) {
64
- return this.delegate.mkdir(this.toUnderlyingResource(resource));
65
- }
66
- rename(from, to, opts) {
67
- return this.delegate.rename(this.toUnderlyingResource(from), this.toUnderlyingResource(to), opts);
68
- }
69
- copy(from, to, opts) {
70
- if ((0, files_1.hasFileFolderCopyCapability)(this.delegate)) {
71
- return this.delegate.copy(this.toUnderlyingResource(from), this.toUnderlyingResource(to), opts);
72
- }
73
- throw new Error('not supported');
74
- }
75
- readFile(resource) {
76
- if ((0, files_1.hasReadWriteCapability)(this.delegate)) {
77
- return this.delegate.readFile(this.toUnderlyingResource(resource));
78
- }
79
- throw new Error('not supported');
80
- }
81
- readFileStream(resource, opts, token) {
82
- if ((0, files_1.hasFileReadStreamCapability)(this.delegate)) {
83
- return this.delegate.readFileStream(this.toUnderlyingResource(resource), opts, token);
84
- }
85
- throw new Error('not supported');
86
- }
87
- readdir(resource) {
88
- return this.delegate.readdir(this.toUnderlyingResource(resource));
89
- }
90
- writeFile(resource, content, opts) {
91
- if ((0, files_1.hasReadWriteCapability)(this.delegate)) {
92
- return this.delegate.writeFile(this.toUnderlyingResource(resource), content, opts);
93
- }
94
- throw new Error('not supported');
95
- }
96
- open(resource, opts) {
97
- if ((0, files_1.hasOpenReadWriteCloseCapability)(this.delegate)) {
98
- return this.delegate.open(this.toUnderlyingResource(resource), opts);
99
- }
100
- throw new Error('not supported');
101
- }
102
- close(fd) {
103
- if ((0, files_1.hasOpenReadWriteCloseCapability)(this.delegate)) {
104
- return this.delegate.close(fd);
105
- }
106
- throw new Error('not supported');
107
- }
108
- read(fd, pos, data, offset, length) {
109
- if ((0, files_1.hasOpenReadWriteCloseCapability)(this.delegate)) {
110
- return this.delegate.read(fd, pos, data, offset, length);
111
- }
112
- throw new Error('not supported');
113
- }
114
- write(fd, pos, data, offset, length) {
115
- if ((0, files_1.hasOpenReadWriteCloseCapability)(this.delegate)) {
116
- return this.delegate.write(fd, pos, data, offset, length);
117
- }
118
- throw new Error('not supported');
119
- }
120
- delete(resource, opts) {
121
- return this.delegate.delete(this.toUnderlyingResource(resource), opts);
122
- }
123
- updateFile(resource, changes, opts) {
124
- if ((0, files_1.hasUpdateCapability)(this.delegate)) {
125
- return this.delegate.updateFile(resource, changes, opts);
126
- }
127
- throw new Error('not supported');
128
- }
129
- handleFileChanges(changes) {
130
- const delegatingChanges = [];
131
- for (const change of changes) {
132
- const delegatingResource = this.fromUnderlyingResource(change.resource);
133
- if (delegatingResource) {
134
- delegatingChanges.push({
135
- resource: delegatingResource,
136
- type: change.type
137
- });
138
- }
139
- }
140
- if (delegatingChanges.length) {
141
- this.onDidChangeFileEmitter.fire(delegatingChanges);
142
- }
143
- }
144
- /**
145
- * Converts to an underlying fs provider resource format.
146
- *
147
- * For example converting `user-storage` resources to `file` resources under a user home:
148
- * user-storage:/user/settings.json => file://home/.theia/settings.json
149
- */
150
- toUnderlyingResource(resource) {
151
- const underlying = this.options.uriConverter.to(resource);
152
- if (!underlying) {
153
- throw new Error('invalid resource: ' + resource.toString());
154
- }
155
- return underlying;
156
- }
157
- /**
158
- * Converts from an underlying fs provider resource format.
159
- *
160
- * For example converting `file` resources under a user home to `user-storage` resource:
161
- * - file://home/.theia/settings.json => user-storage:/user/settings.json
162
- * - file://documents/some-document.txt => undefined
163
- */
164
- fromUnderlyingResource(resource) {
165
- return this.options.uriConverter.from(resource);
166
- }
167
- }
168
- exports.DelegatingFileSystemProvider = DelegatingFileSystemProvider;
169
- //# sourceMappingURL=delegating-file-system-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delegating-file-system-provider.js","sourceRoot":"","sources":["../../src/common/delegating-file-system-provider.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;;;AAGhF,mDAA2E;AAC3E,kEAAqF;AACrF,mCAKiB;AAIjB,MAAa,4BAA4B;IAQrC,YACuB,QAA4B,EAC5B,OAA6C,EAC7C,YAAY,IAAI,iCAAoB,EAAE;QAFtC,aAAQ,GAAR,QAAQ,CAAoB;QAC5B,YAAO,GAAP,OAAO,CAAsC;QAC7C,cAAS,GAAT,SAAS,CAA6B;QAT5C,2BAAsB,GAAG,IAAI,gBAAO,EAAyB,CAAC;QACtE,oBAAe,GAAG,IAAI,CAAC,sBAAs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Q,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;QAC7D,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IACrC,CAAC;IAES,iBAAiB,CAAC,OAA8B;QACtD,MAAM,iBAAiB,GAAiB,EAAE,CAAC;QAC3C,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC3B,MAAM,kBAAkB,GAAG,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACxE,IAAI,kBAAkB,EAAE,CAAC;gBACrB,iBAAiB,CAAC,IAAI,CAAC;oBACnB,QAAQ,EAAE,kBAAkB;oBAC5B,IAAI,EAAE,MAAM,CAAC,IAAI;iBACpB,CAAC,CAAC;YACP,CAAC;QACL,CAAC;QACD,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC;YAC3B,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACxD,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,oBAAoB,CAAC,QAAa;QAC9B,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC1D,IAAI,CAAC,UAAU,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,oBAAoB,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,UAAU,CAAC;IACtB,CAAC;IAED;;;;;;OAMG;IACH,sBAAsB,CAAC,QAAa;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;CAEJ;AA7KD,oEA6KC"}
@@ -1,17 +0,0 @@
1
- import { type URI } from '@theia/core/lib/common';
2
- export interface FileDownloadData {
3
- readonly uris: string[];
4
- }
5
- export declare namespace FileDownloadData {
6
- function is(arg: unknown): arg is FileDownloadData;
7
- }
8
- export declare namespace FileDownloadService {
9
- interface DownloadOptions {
10
- readonly copyLink?: boolean;
11
- }
12
- }
13
- export declare const FileDownloadService: unique symbol;
14
- export interface FileDownloadService {
15
- download(uris: URI[], options?: FileDownloadService.DownloadOptions): Promise<void>;
16
- }
17
- //# sourceMappingURL=file-download.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-download.d.ts","sourceRoot":"","sources":["../../../src/common/download/file-download.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,KAAK,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,yBAAiB,gBAAgB,CAAC;IAC9B,SAAgB,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,gBAAgB,CAExD;CACJ;AAED,yBAAiB,mBAAmB,CAAC;IACjC,UAAiB,eAAe;QAE5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;KAC/B;CACJ;AAED,eAAO,MAAM,mBAAmB,eAAgC,CAAC;AAEjE,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvF"}