@theia/filesystem 1.67.0-next.3 → 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,390 +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
- /*---------------------------------------------------------------------------------------------
18
- * Copyright (c) Microsoft Corporation. All rights reserved.
19
- * Licensed under the MIT License. See License.txt in the project root for license information.
20
- *--------------------------------------------------------------------------------------------*/
21
- // based on https://github.com/microsoft/vscode/blob/04c36be045a94fee58e5f8992d3e3fd980294a84/src/vs/platform/files/common/files.ts
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.BinarySize = exports.etag = exports.ETAG_DISABLED = exports.toFileOperationResult = exports.toFileSystemProviderErrorCode = exports.markAsFileSystemProviderError = exports.hasFileReadStreamCapability = exports.hasOpenReadWriteCloseCapability = exports.hasFileFolderCopyCapability = exports.hasReadWriteCapability = exports.ReadOnlyMessageFileSystemProvider = exports.hasUpdateCapability = exports.hasAccessCapability = exports.FileSystemProvider = exports.ensureFileSystemProviderError = exports.createFileSystemProviderError = exports.FileSystemProviderError = exports.FileSystemProviderErrorCode = exports.FilePermission = exports.FileType = exports.FileOperationError = exports.FileStat = exports.BaseStat = exports.FileChangesEvent = exports.FileOperationEvent = void 0;
24
- const uri_1 = require("@theia/core/lib/common/uri");
25
- const common_1 = require("@theia/core/lib/common");
26
- class FileOperationEvent {
27
- constructor(resource, operation, target) {
28
- this.resource = resource;
29
- this.operation = operation;
30
- this.target = target;
31
- }
32
- isOperation(operation) {
33
- return this.operation === operation;
34
- }
35
- }
36
- exports.FileOperationEvent = FileOperationEvent;
37
- class FileChangesEvent {
38
- constructor(changes) {
39
- this.changes = changes;
40
- }
41
- /**
42
- * Returns true if this change event contains the provided file with the given change type (if provided). In case of
43
- * type DELETED, this method will also return true if a folder got deleted that is the parent of the
44
- * provided file path.
45
- */
46
- contains(resource, type) {
47
- if (!resource) {
48
- return false;
49
- }
50
- const checkForChangeType = typeof type === 'number';
51
- return this.changes.some(change => {
52
- if (checkForChangeType && change.type !== type) {
53
- return false;
54
- }
55
- // For deleted also return true when deleted folder is parent of target path
56
- if (change.type === 2 /* FileChangeType.DELETED */) {
57
- return change.resource.isEqualOrParent(resource);
58
- }
59
- return change.resource.toString() === resource.toString();
60
- });
61
- }
62
- /**
63
- * Returns the changes that describe added files.
64
- */
65
- getAdded() {
66
- return this.getOfType(1 /* FileChangeType.ADDED */);
67
- }
68
- /**
69
- * Returns if this event contains added files.
70
- */
71
- gotAdded() {
72
- return this.hasType(1 /* FileChangeType.ADDED */);
73
- }
74
- /**
75
- * Returns the changes that describe deleted files.
76
- */
77
- getDeleted() {
78
- return this.getOfType(2 /* FileChangeType.DELETED */);
79
- }
80
- /**
81
- * Returns if this event contains deleted files.
82
- */
83
- gotDeleted() {
84
- return this.hasType(2 /* FileChangeType.DELETED */);
85
- }
86
- /**
87
- * Returns the changes that describe updated files.
88
- */
89
- getUpdated() {
90
- return this.getOfType(0 /* FileChangeType.UPDATED */);
91
- }
92
- /**
93
- * Returns if this event contains updated files.
94
- */
95
- gotUpdated() {
96
- return this.hasType(0 /* FileChangeType.UPDATED */);
97
- }
98
- getOfType(type) {
99
- return this.changes.filter(change => change.type === type);
100
- }
101
- hasType(type) {
102
- return this.changes.some(change => change.type === type);
103
- }
104
- }
105
- exports.FileChangesEvent = FileChangesEvent;
106
- var BaseStat;
107
- (function (BaseStat) {
108
- function is(arg) {
109
- return (0, common_1.isObject)(arg)
110
- && arg.resource instanceof uri_1.default
111
- && typeof arg.name === 'string';
112
- }
113
- BaseStat.is = is;
114
- })(BaseStat || (exports.BaseStat = BaseStat = {}));
115
- var FileStat;
116
- (function (FileStat) {
117
- function is(arg) {
118
- const fileStat = arg;
119
- return BaseStat.is(fileStat) &&
120
- ('isFile' in fileStat && typeof fileStat.isFile === 'boolean') &&
121
- ('isDirectory' in fileStat && typeof fileStat.isDirectory === 'boolean') &&
122
- ('isSymbolicLink' in fileStat && typeof fileStat.isSymbolicLink === 'boolean');
123
- }
124
- FileStat.is = is;
125
- function asFileType(stat) {
126
- let res = 0;
127
- if (stat.isFile) {
128
- res += FileType.File;
129
- }
130
- else if (stat.isDirectory) {
131
- res += FileType.Directory;
132
- }
133
- if (stat.isSymbolicLink) {
134
- res += FileType.SymbolicLink;
135
- }
136
- return res;
137
- }
138
- FileStat.asFileType = asFileType;
139
- function toStat(stat) {
140
- return {
141
- type: asFileType(stat),
142
- ctime: stat.ctime,
143
- mtime: stat.mtime,
144
- size: stat.size
145
- };
146
- }
147
- FileStat.toStat = toStat;
148
- function fromStat(resource, stat) {
149
- return {
150
- resource,
151
- name: resource.path.base || resource.path.toString(),
152
- isFile: (stat.type & FileType.File) !== 0,
153
- isDirectory: (stat.type & FileType.Directory) !== 0,
154
- isSymbolicLink: (stat.type & FileType.SymbolicLink) !== 0,
155
- isReadonly: !!stat.permissions && (stat.permissions & FilePermission.Readonly) !== 0,
156
- mtime: stat.mtime,
157
- ctime: stat.ctime,
158
- size: stat.size,
159
- etag: etag({ mtime: stat.mtime, size: stat.size })
160
- };
161
- }
162
- FileStat.fromStat = fromStat;
163
- function dir(resource, stat) {
164
- return fromStat(resource instanceof uri_1.default ? resource : new uri_1.default(resource), { type: FileType.Directory, ...stat });
165
- }
166
- FileStat.dir = dir;
167
- function file(resource, stat) {
168
- return fromStat(resource instanceof uri_1.default ? resource : new uri_1.default(resource), { type: FileType.File, ...stat });
169
- }
170
- FileStat.file = file;
171
- })(FileStat || (exports.FileStat = FileStat = {}));
172
- class FileOperationError extends Error {
173
- constructor(message, fileOperationResult, options) {
174
- super(message);
175
- this.fileOperationResult = fileOperationResult;
176
- this.options = options;
177
- Object.setPrototypeOf(this, FileOperationError.prototype);
178
- }
179
- }
180
- exports.FileOperationError = FileOperationError;
181
- var FileType;
182
- (function (FileType) {
183
- FileType[FileType["Unknown"] = 0] = "Unknown";
184
- FileType[FileType["File"] = 1] = "File";
185
- FileType[FileType["Directory"] = 2] = "Directory";
186
- FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
187
- })(FileType || (exports.FileType = FileType = {}));
188
- var FilePermission;
189
- (function (FilePermission) {
190
- /**
191
- * File is readonly.
192
- */
193
- FilePermission[FilePermission["Readonly"] = 1] = "Readonly";
194
- })(FilePermission || (exports.FilePermission = FilePermission = {}));
195
- var FileSystemProviderErrorCode;
196
- (function (FileSystemProviderErrorCode) {
197
- FileSystemProviderErrorCode["FileExists"] = "EntryExists";
198
- FileSystemProviderErrorCode["FileNotFound"] = "EntryNotFound";
199
- FileSystemProviderErrorCode["FileNotADirectory"] = "EntryNotADirectory";
200
- FileSystemProviderErrorCode["FileIsADirectory"] = "EntryIsADirectory";
201
- FileSystemProviderErrorCode["FileExceedsMemoryLimit"] = "EntryExceedsMemoryLimit";
202
- FileSystemProviderErrorCode["FileTooLarge"] = "EntryTooLarge";
203
- FileSystemProviderErrorCode["NoPermissions"] = "NoPermissions";
204
- FileSystemProviderErrorCode["Unavailable"] = "Unavailable";
205
- FileSystemProviderErrorCode["Unknown"] = "Unknown";
206
- })(FileSystemProviderErrorCode || (exports.FileSystemProviderErrorCode = FileSystemProviderErrorCode = {}));
207
- class FileSystemProviderError extends Error {
208
- constructor(message, code) {
209
- super(message);
210
- this.code = code;
211
- Object.setPrototypeOf(this, FileSystemProviderError.prototype);
212
- }
213
- }
214
- exports.FileSystemProviderError = FileSystemProviderError;
215
- function createFileSystemProviderError(error, code) {
216
- const providerError = new FileSystemProviderError(error.toString(), code);
217
- markAsFileSystemProviderError(providerError, code);
218
- return providerError;
219
- }
220
- exports.createFileSystemProviderError = createFileSystemProviderError;
221
- function ensureFileSystemProviderError(error) {
222
- if (!error) {
223
- return createFileSystemProviderError('Unknown Error', FileSystemProviderErrorCode.Unknown); // https://github.com/Microsoft/vscode/issues/72798
224
- }
225
- return error;
226
- }
227
- exports.ensureFileSystemProviderError = ensureFileSystemProviderError;
228
- exports.FileSystemProvider = Symbol('FileSystemProvider');
229
- function hasAccessCapability(provider) {
230
- return !!(provider.capabilities & 16777216 /* FileSystemProviderCapabilities.Access */);
231
- }
232
- exports.hasAccessCapability = hasAccessCapability;
233
- function hasUpdateCapability(provider) {
234
- return !!(provider.capabilities & 33554432 /* FileSystemProviderCapabilities.Update */);
235
- }
236
- exports.hasUpdateCapability = hasUpdateCapability;
237
- var ReadOnlyMessageFileSystemProvider;
238
- (function (ReadOnlyMessageFileSystemProvider) {
239
- function is(arg) {
240
- return (0, common_1.isObject)(arg)
241
- && 'readOnlyMessage' in arg;
242
- }
243
- ReadOnlyMessageFileSystemProvider.is = is;
244
- })(ReadOnlyMessageFileSystemProvider || (exports.ReadOnlyMessageFileSystemProvider = ReadOnlyMessageFileSystemProvider = {}));
245
- function hasReadWriteCapability(provider) {
246
- return !!(provider.capabilities & 2 /* FileSystemProviderCapabilities.FileReadWrite */);
247
- }
248
- exports.hasReadWriteCapability = hasReadWriteCapability;
249
- function hasFileFolderCopyCapability(provider) {
250
- return !!(provider.capabilities & 8 /* FileSystemProviderCapabilities.FileFolderCopy */);
251
- }
252
- exports.hasFileFolderCopyCapability = hasFileFolderCopyCapability;
253
- function hasOpenReadWriteCloseCapability(provider) {
254
- return !!(provider.capabilities & 4 /* FileSystemProviderCapabilities.FileOpenReadWriteClose */);
255
- }
256
- exports.hasOpenReadWriteCloseCapability = hasOpenReadWriteCloseCapability;
257
- function hasFileReadStreamCapability(provider) {
258
- return !!(provider.capabilities & 16 /* FileSystemProviderCapabilities.FileReadStream */);
259
- }
260
- exports.hasFileReadStreamCapability = hasFileReadStreamCapability;
261
- function markAsFileSystemProviderError(error, code) {
262
- error.name = code ? `${code} (FileSystemError)` : 'FileSystemError';
263
- return error;
264
- }
265
- exports.markAsFileSystemProviderError = markAsFileSystemProviderError;
266
- function toFileSystemProviderErrorCode(error) {
267
- // Guard against abuse
268
- if (!error) {
269
- return FileSystemProviderErrorCode.Unknown;
270
- }
271
- // FileSystemProviderError comes with the code
272
- if (error instanceof FileSystemProviderError) {
273
- return error.code;
274
- }
275
- // Any other error, check for name match by assuming that the error
276
- // went through the markAsFileSystemProviderError() method
277
- const match = /^(.+) \(FileSystemError\)$/.exec(error.name);
278
- if (!match) {
279
- return FileSystemProviderErrorCode.Unknown;
280
- }
281
- switch (match[1]) {
282
- case FileSystemProviderErrorCode.FileExists: return FileSystemProviderErrorCode.FileExists;
283
- case FileSystemProviderErrorCode.FileIsADirectory: return FileSystemProviderErrorCode.FileIsADirectory;
284
- case FileSystemProviderErrorCode.FileNotADirectory: return FileSystemProviderErrorCode.FileNotADirectory;
285
- case FileSystemProviderErrorCode.FileNotFound: return FileSystemProviderErrorCode.FileNotFound;
286
- case FileSystemProviderErrorCode.FileExceedsMemoryLimit: return FileSystemProviderErrorCode.FileExceedsMemoryLimit;
287
- case FileSystemProviderErrorCode.FileTooLarge: return FileSystemProviderErrorCode.FileTooLarge;
288
- case FileSystemProviderErrorCode.NoPermissions: return FileSystemProviderErrorCode.NoPermissions;
289
- case FileSystemProviderErrorCode.Unavailable: return FileSystemProviderErrorCode.Unavailable;
290
- }
291
- return FileSystemProviderErrorCode.Unknown;
292
- }
293
- exports.toFileSystemProviderErrorCode = toFileSystemProviderErrorCode;
294
- function toFileOperationResult(error) {
295
- // FileSystemProviderError comes with the result already
296
- if (error instanceof FileOperationError) {
297
- return error.fileOperationResult;
298
- }
299
- // Otherwise try to find from code
300
- switch (toFileSystemProviderErrorCode(error)) {
301
- case FileSystemProviderErrorCode.FileNotFound:
302
- return 1 /* FileOperationResult.FILE_NOT_FOUND */;
303
- case FileSystemProviderErrorCode.FileIsADirectory:
304
- return 0 /* FileOperationResult.FILE_IS_DIRECTORY */;
305
- case FileSystemProviderErrorCode.FileNotADirectory:
306
- return 10 /* FileOperationResult.FILE_NOT_DIRECTORY */;
307
- case FileSystemProviderErrorCode.NoPermissions:
308
- return 6 /* FileOperationResult.FILE_PERMISSION_DENIED */;
309
- case FileSystemProviderErrorCode.FileExists:
310
- return 4 /* FileOperationResult.FILE_MOVE_CONFLICT */;
311
- case FileSystemProviderErrorCode.FileExceedsMemoryLimit:
312
- return 9 /* FileOperationResult.FILE_EXCEEDS_MEMORY_LIMIT */;
313
- case FileSystemProviderErrorCode.FileTooLarge:
314
- return 7 /* FileOperationResult.FILE_TOO_LARGE */;
315
- default:
316
- return 11 /* FileOperationResult.FILE_OTHER_ERROR */;
317
- }
318
- }
319
- exports.toFileOperationResult = toFileOperationResult;
320
- /**
321
- * A hint to disable etag checking for reading/writing.
322
- */
323
- exports.ETAG_DISABLED = '';
324
- function etag(stat) {
325
- if (typeof stat.size !== 'number' || typeof stat.mtime !== 'number') {
326
- return undefined;
327
- }
328
- return stat.mtime.toString(29) + stat.size.toString(31);
329
- }
330
- exports.etag = etag;
331
- /**
332
- * Helper class for formatting and parsing byte sizes.
333
- */
334
- class BinarySize {
335
- /**
336
- * Formats a byte size into a human readable string (e.g., "1.5MB", "2.3GB").
337
- */
338
- static formatSize(size) {
339
- if (size < BinarySize.KB) {
340
- return size + 'B';
341
- }
342
- if (size < BinarySize.MB) {
343
- return (size / BinarySize.KB).toFixed(2) + 'KB';
344
- }
345
- if (size < BinarySize.GB) {
346
- return (size / BinarySize.MB).toFixed(2) + 'MB';
347
- }
348
- if (size < BinarySize.TB) {
349
- return (size / BinarySize.GB).toFixed(2) + 'GB';
350
- }
351
- return (size / BinarySize.TB).toFixed(2) + 'TB';
352
- }
353
- /**
354
- * Parses a human readable string (e.g., "1.5MB", "2.3GB") and returns the size in bytes
355
- */
356
- static parseSize(sizeInput) {
357
- if (typeof sizeInput === 'number') {
358
- return Math.round(sizeInput);
359
- }
360
- if (!sizeInput) {
361
- return 0;
362
- }
363
- const trimmed = sizeInput.trim().toUpperCase();
364
- const match = /^(\d+(?:\.\d+)?)([BKMG])?$/.exec(trimmed);
365
- // If the format is invalid, return 0
366
- if (!match) {
367
- return 0;
368
- }
369
- const value = parseFloat(match[1]);
370
- const unit = match[2];
371
- switch (unit) {
372
- case 'K':
373
- return Math.round(value * BinarySize.KB);
374
- case 'M':
375
- return Math.round(value * BinarySize.MB);
376
- case 'G':
377
- return Math.round(value * BinarySize.GB);
378
- case 'T':
379
- return Math.round(value * BinarySize.TB);
380
- default:
381
- return Math.round(value);
382
- }
383
- }
384
- }
385
- exports.BinarySize = BinarySize;
386
- BinarySize.KB = 1024;
387
- BinarySize.MB = BinarySize.KB * BinarySize.KB;
388
- BinarySize.GB = BinarySize.MB * BinarySize.KB;
389
- BinarySize.TB = BinarySize.GB * BinarySize.KB;
390
- //# sourceMappingURL=files.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/common/files.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;AAChF;;;gGAGgG;AAChG,mIAAmI;;;AAEnI,oDAA6C;AAO7C,mDAAkD;AAUlD,MAAa,kBAAkB;IAI3B,YAA4B,QAAa,EAAkB,SAAwB,EAAkB,MAA6B;QAAtG,aAAQ,GAAR,QAAQ,CAAK;QAAkB,cAAS,GAAT,SAAS,CAAe;QAAkB,WAAM,GAAN,MAAM,CAAuB;IAAI,CAAC;IAIvI,WAAW,CAAC,SAAwB;QAChC,OAAO,IAAI,CAAC,SAAS,KAAK,SAAS,CAAC;IACxC,CAAC;CACJ;AAXD,gDAWC;AA2BD,MAAa,gBAAgB;IAEzB,YAA4B,OAA8B;QAA9B,YAAO,GAAP,OAAO,CAAuB;IAAI,CAAC;IAE/D;;;;OAIG;IACH,QAAQ,CAAC,QAAa,EAAE,IAAqB;QACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACZ,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,MAAM,kBAAkB,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC;QAEpD,OAAO,IAAI,CAAC,OAAO,CA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C,aAAE,GAAG,UAAU,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;AACnC,aAAE,GAAG,UAAU,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=files.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"files.spec.d.ts","sourceRoot":"","sources":["../../src/common/files.spec.ts"],"names":[],"mappings":""}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2022 Texas Instruments 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
- const files_1 = require("./files");
19
- const chai_1 = require("chai");
20
- const uri_1 = require("@theia/core/lib/common/uri");
21
- describe('FileChangesEvent', () => {
22
- it('deleting parent folder - event contains child', () => {
23
- const parent = new uri_1.default('file:///grandparent/parent');
24
- const child = new uri_1.default('file:///grandparent/parent/child');
25
- const event = new files_1.FileChangesEvent([{ resource: parent, type: 2 /* FileChangeType.DELETED */ }]);
26
- (0, chai_1.expect)(event.contains(child, 2 /* FileChangeType.DELETED */)).to.eq(true);
27
- });
28
- it('deleting grandparent folder - event contains grandchild', () => {
29
- const grandparent = new uri_1.default('file:///grandparent');
30
- const grandchild = new uri_1.default('file:///grandparent/parent/child');
31
- const event = new files_1.FileChangesEvent([{ resource: grandparent, type: 2 /* FileChangeType.DELETED */ }]);
32
- (0, chai_1.expect)(event.contains(grandchild, 2 /* FileChangeType.DELETED */)).to.eq(true);
33
- });
34
- it('deleting child file - event does not contain parent', () => {
35
- const parent = new uri_1.default('file:///grandparent/parent');
36
- const child = new uri_1.default('file:///grandparent/parent/child');
37
- const event = new files_1.FileChangesEvent([{ resource: child, type: 2 /* FileChangeType.DELETED */ }]);
38
- (0, chai_1.expect)(event.contains(parent, 2 /* FileChangeType.DELETED */)).to.eq(false);
39
- });
40
- it('deleting grandchild file - event does not contain grandchild', () => {
41
- const grandparent = new uri_1.default('file:///grandparent');
42
- const grandchild = new uri_1.default('file:///grandparent/parent/child');
43
- const event = new files_1.FileChangesEvent([{ resource: grandchild, type: 2 /* FileChangeType.DELETED */ }]);
44
- (0, chai_1.expect)(event.contains(grandparent, 2 /* FileChangeType.DELETED */)).to.eq(false);
45
- });
46
- it('deleting self - event contains self', () => {
47
- const self = new uri_1.default('file:///grandparent/parent/self');
48
- const event = new files_1.FileChangesEvent([{ resource: self, type: 2 /* FileChangeType.DELETED */ }]);
49
- (0, chai_1.expect)(event.contains(self, 2 /* FileChangeType.DELETED */)).to.eq(true);
50
- });
51
- });
52
- //# sourceMappingURL=files.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"files.spec.js","sourceRoot":"","sources":["../../src/common/files.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,mDAAmD;AACnD,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,mCAA2D;AAC3D,+BAA8B;AAC9B,oDAA6C;AAE7C,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;QACrD,MAAM,MAAM,GAAG,IAAI,aAAG,CAAC,4BAA4B,CAAC,CAAC;QACrD,MAAM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,MAAM,WAAW,GAAG,IAAI,aAAG,CAAC,qBAAqB,CAAC,CAAC;QACnD,MAAM,UAAU,GAAG,IAAI,aAAG,CAAC,kCAAkC,CAAC,CAAC;QAC/D,MAAM,KAAK,GAAG,IAAI,wBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,gCAAwB,EAAE,CAAC,CAAC,CAAC;QAC7F,IAAA,aAAM,EAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,iCAAyB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC3C,MAAM,IAAI,GAAG,IAAI,aAAG,CAAC,iCAAiC,CAAC,CAAC;QACxD,MAAM,KAAK,GAAG,IAAI,wBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,gCAAwB,EAAE,CAAC,CAAC,CAAC;QACvF,IAAA,aAAM,EAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,iCAAyB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,33 +0,0 @@
1
- import { interfaces } from '@theia/core/shared/inversify';
2
- import { PreferenceProxy } from '@theia/core/lib/common/preferences/preference-proxy';
3
- import { PreferenceService } from '@theia/core/lib/common/preferences/preference-service';
4
- import { PreferenceSchema } from '@theia/core/lib/common/preferences/preference-schema';
5
- export declare const WIN32_MAX_FILE_SIZE_MB = 300;
6
- export declare const GENERAL_MAX_FILE_SIZE_MB: number;
7
- export declare const MAX_FILE_SIZE_MB: number;
8
- export declare const filesystemPreferenceSchema: PreferenceSchema;
9
- export interface FileSystemConfiguration {
10
- 'files.watcherExclude': {
11
- [globPattern: string]: boolean;
12
- };
13
- 'files.exclude': {
14
- [key: string]: boolean;
15
- };
16
- 'files.enableTrash': boolean;
17
- 'files.associations': {
18
- [filepattern: string]: string;
19
- };
20
- 'files.encoding': string;
21
- 'files.autoGuessEncoding': boolean;
22
- 'files.participants.timeout': number;
23
- 'files.maxFileSizeMB': number;
24
- 'files.trimTrailingWhitespace': boolean;
25
- 'files.insertFinalNewline': boolean;
26
- 'files.maxConcurrentUploads': number;
27
- }
28
- export declare const FileSystemPreferenceContribution: unique symbol;
29
- export declare const FileSystemPreferences: unique symbol;
30
- export type FileSystemPreferences = PreferenceProxy<FileSystemConfiguration>;
31
- export declare function createFileSystemPreferences(preferences: PreferenceService, schema?: PreferenceSchema): FileSystemPreferences;
32
- export declare function bindFileSystemPreferences(bind: interfaces.Bind): void;
33
- //# sourceMappingURL=filesystem-preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filesystem-preferences.d.ts","sourceRoot":"","sources":["../../src/common/filesystem-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAyB,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAE7G,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAG1F,OAAO,EAA0B,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAGhH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,wBAAwB,QAAY,CAAC;AAElD,eAAO,MAAM,gBAAgB,QAIrB,CAAC;AAET,eAAO,MAAM,0BAA0B,EAAE,gBA8ExC,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACpC,sBAAsB,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC1D,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,mBAAmB,EAAE,OAAO,CAAA;IAC5B,oBAAoB,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IACvD,gBAAgB,EAAE,MAAM,CAAA;IACxB,yBAAyB,EAAE,OAAO,CAAA;IAClC,4BAA4B,EAAE,MAAM,CAAA;IACpC,qBAAqB,EAAE,MAAM,CAAA;IAC7B,8BAA8B,EAAE,OAAO,CAAA;IACvC,0BAA0B,EAAE,OAAO,CAAA;IACnC,4BAA4B,EAAE,MAAM,CAAA;CACvC;AAED,eAAO,MAAM,gCAAgC,eAA6C,CAAC;AAC3F,eAAO,MAAM,qBAAqB,eAAkC,CAAC;AACrE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAE7E,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,iBAAiB,EAAE,MAAM,GAAE,gBAA6C,GAAG,qBAAqB,CAExJ;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAQrE"}
@@ -1,122 +0,0 @@
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
- exports.bindFileSystemPreferences = exports.createFileSystemPreferences = exports.FileSystemPreferences = exports.FileSystemPreferenceContribution = exports.filesystemPreferenceSchema = exports.MAX_FILE_SIZE_MB = exports.GENERAL_MAX_FILE_SIZE_MB = exports.WIN32_MAX_FILE_SIZE_MB = void 0;
19
- const preference_proxy_1 = require("@theia/core/lib/common/preferences/preference-proxy");
20
- const preference_scope_1 = require("@theia/core/lib/common/preferences/preference-scope");
21
- const preference_service_1 = require("@theia/core/lib/common/preferences/preference-service");
22
- const supported_encodings_1 = require("@theia/core/lib/common/supported-encodings");
23
- const nls_1 = require("@theia/core/lib/common/nls");
24
- const preference_schema_1 = require("@theia/core/lib/common/preferences/preference-schema");
25
- // See https://github.com/Microsoft/vscode/issues/30180
26
- exports.WIN32_MAX_FILE_SIZE_MB = 300; // 300 MB
27
- exports.GENERAL_MAX_FILE_SIZE_MB = 16 * 1024; // 16 GB
28
- exports.MAX_FILE_SIZE_MB = typeof process === 'object'
29
- ? process.arch === 'ia32'
30
- ? exports.WIN32_MAX_FILE_SIZE_MB
31
- : exports.GENERAL_MAX_FILE_SIZE_MB
32
- : 32;
33
- exports.filesystemPreferenceSchema = {
34
- properties: {
35
- 'files.watcherExclude': {
36
- // eslint-disable-next-line max-len
37
- description: nls_1.nls.localizeByDefault('Configure paths or [glob patterns](https://aka.ms/vscode-glob-patterns) to exclude from file watching. Paths can either be relative to the watched folder or absolute. Glob patterns are matched relative from the watched folder. When you experience the file watcher process consuming a lot of CPU, make sure to exclude large folders that are of less interest (such as build output folders).'),
38
- additionalProperties: {
39
- type: 'boolean'
40
- },
41
- default: {
42
- '**/.git/objects/**': true,
43
- '**/.git/subtree-cache/**': true
44
- },
45
- scope: preference_scope_1.PreferenceScope.Folder
46
- },
47
- 'files.exclude': {
48
- type: 'object',
49
- default: { '**/.git': true, '**/.svn': true, '**/.hg': true, '**/CVS': true, '**/.DS_Store': true },
50
- // eslint-disable-next-line max-len
51
- markdownDescription: nls_1.nls.localize('theia/filesystem/filesExclude', 'Configure glob patterns for excluding files and folders. For example, the file Explorer decides which files and folders to show or hide based on this setting.'),
52
- scope: preference_scope_1.PreferenceScope.Folder
53
- },
54
- 'files.enableTrash': {
55
- type: 'boolean',
56
- default: true,
57
- description: nls_1.nls.localizeByDefault('Moves files/folders to the OS trash (recycle bin on Windows) when deleting. Disabling this will delete files/folders permanently.')
58
- },
59
- 'files.associations': {
60
- type: 'object',
61
- default: {},
62
- markdownDescription: nls_1.nls.localizeByDefault(
63
- // eslint-disable-next-line max-len
64
- 'Configure [glob patterns](https://aka.ms/vscode-glob-patterns) of file associations to languages (for example `\"*.extension\": \"html\"`). Patterns will match on the absolute path of a file if they contain a path separator and will match on the name of the file otherwise. These have precedence over the default associations of the languages installed.')
65
- },
66
- 'files.autoGuessEncoding': {
67
- type: 'boolean',
68
- default: false,
69
- // eslint-disable-next-line max-len
70
- description: nls_1.nls.localizeByDefault('When enabled, the editor will attempt to guess the character set encoding when opening files. This setting can also be configured per language. Note, this setting is not respected by text search. Only {0} is respected.', '`#files.encoding#`'),
71
- scope: preference_scope_1.PreferenceScope.Folder,
72
- overridable: true,
73
- included: Object.keys(supported_encodings_1.SUPPORTED_ENCODINGS).length > 1
74
- },
75
- 'files.participants.timeout': {
76
- type: 'number',
77
- default: 5000,
78
- markdownDescription: nls_1.nls.localizeByDefault('Timeout in milliseconds after which file participants for create, rename, and delete are cancelled. Use `0` to disable participants.')
79
- },
80
- 'files.maxFileSizeMB': {
81
- type: 'number',
82
- default: exports.MAX_FILE_SIZE_MB,
83
- markdownDescription: nls_1.nls.localize('theia/filesystem/maxFileSizeMB', 'Controls the max file size in MB which is possible to open.')
84
- },
85
- 'files.trimTrailingWhitespace': {
86
- type: 'boolean',
87
- default: false,
88
- description: nls_1.nls.localizeByDefault('When enabled, will trim trailing whitespace when saving a file.'),
89
- scope: preference_scope_1.PreferenceScope.Folder,
90
- overridable: true
91
- },
92
- 'files.insertFinalNewline': {
93
- type: 'boolean',
94
- default: false,
95
- description: nls_1.nls.localizeByDefault('When enabled, insert a final new line at the end of the file when saving it.'),
96
- scope: preference_scope_1.PreferenceScope.Folder,
97
- overridable: true
98
- },
99
- 'files.maxConcurrentUploads': {
100
- type: 'integer',
101
- default: 1,
102
- description: nls_1.nls.localize('theia/filesystem/maxConcurrentUploads', 'Maximum number of concurrent files to upload when uploading multiple files. 0 means all files will be uploaded concurrently.'),
103
- }
104
- }
105
- };
106
- exports.FileSystemPreferenceContribution = Symbol('FilesystemPreferenceContribution');
107
- exports.FileSystemPreferences = Symbol('FileSystemPreferences');
108
- function createFileSystemPreferences(preferences, schema = exports.filesystemPreferenceSchema) {
109
- return (0, preference_proxy_1.createPreferenceProxy)(preferences, schema);
110
- }
111
- exports.createFileSystemPreferences = createFileSystemPreferences;
112
- function bindFileSystemPreferences(bind) {
113
- bind(exports.FileSystemPreferences).toDynamicValue(ctx => {
114
- const preferences = ctx.container.get(preference_service_1.PreferenceService);
115
- const contribution = ctx.container.get(exports.FileSystemPreferenceContribution);
116
- return createFileSystemPreferences(preferences, contribution.schema);
117
- }).inSingletonScope();
118
- bind(exports.FileSystemPreferenceContribution).toConstantValue({ schema: exports.filesystemPreferenceSchema });
119
- bind(preference_schema_1.PreferenceContribution).toService(exports.FileSystemPreferenceContribution);
120
- }
121
- exports.bindFileSystemPreferences = bindFileSystemPreferences;
122
- //# sourceMappingURL=filesystem-preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filesystem-preferences.js","sourceRoot":"","sources":["../../src/common/filesystem-preferences.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,0FAA6G;AAC7G,0FAAsF;AACtF,8FAA0F;AAC1F,oFAAiF;AACjF,oDAAiD;AACjD,4FAAgH;AAEhH,uDAAuD;AAC1C,QAAA,sBAAsB,GAAG,GAAG,CAAC,CAAC,SAAS;AACvC,QAAA,wBAAwB,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,QAAQ;AAE9C,QAAA,gBAAgB,GAAG,OAAO,OAAO,KAAK,QAAQ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