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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts +16 -0
  2. package/lib/browser/breadcrumbs/filepath-breadcrumb.d.ts.map +1 -0
  3. package/lib/browser/breadcrumbs/filepath-breadcrumb.js +42 -0
  4. package/lib/browser/breadcrumbs/filepath-breadcrumb.js.map +1 -0
  5. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts +13 -0
  6. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.d.ts.map +1 -0
  7. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js +67 -0
  8. package/lib/browser/breadcrumbs/filepath-breadcrumbs-container.js.map +1 -0
  9. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts +28 -0
  10. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.d.ts.map +1 -0
  11. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js +119 -0
  12. package/lib/browser/breadcrumbs/filepath-breadcrumbs-contribution.js.map +1 -0
  13. package/lib/browser/download/file-download-command-contribution.d.ts +19 -0
  14. package/lib/browser/download/file-download-command-contribution.d.ts.map +1 -0
  15. package/lib/browser/download/file-download-command-contribution.js +76 -0
  16. package/lib/browser/download/file-download-command-contribution.js.map +1 -0
  17. package/lib/browser/download/file-download-frontend-module.d.ts +4 -0
  18. package/lib/browser/download/file-download-frontend-module.d.ts.map +1 -0
  19. package/lib/browser/download/file-download-frontend-module.js +27 -0
  20. package/lib/browser/download/file-download-frontend-module.js.map +1 -0
  21. package/lib/browser/download/file-download-service.d.ts +21 -0
  22. package/lib/browser/download/file-download-service.d.ts.map +1 -0
  23. package/lib/browser/download/file-download-service.js +169 -0
  24. package/lib/browser/download/file-download-service.js.map +1 -0
  25. package/lib/browser/file-dialog/file-dialog-container.d.ts +6 -0
  26. package/lib/browser/file-dialog/file-dialog-container.d.ts.map +1 -0
  27. package/lib/browser/file-dialog/file-dialog-container.js +61 -0
  28. package/lib/browser/file-dialog/file-dialog-container.js.map +1 -0
  29. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts +16 -0
  30. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.d.ts.map +1 -0
  31. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js +60 -0
  32. package/lib/browser/file-dialog/file-dialog-hidden-files-renderer.js.map +1 -0
  33. package/lib/browser/file-dialog/file-dialog-model.d.ts +26 -0
  34. package/lib/browser/file-dialog/file-dialog-model.d.ts.map +1 -0
  35. package/lib/browser/file-dialog/file-dialog-model.js +101 -0
  36. package/lib/browser/file-dialog/file-dialog-model.js.map +1 -0
  37. package/lib/browser/file-dialog/file-dialog-module.d.ts +4 -0
  38. package/lib/browser/file-dialog/file-dialog-module.d.ts.map +1 -0
  39. package/lib/browser/file-dialog/file-dialog-module.js +46 -0
  40. package/lib/browser/file-dialog/file-dialog-module.js.map +1 -0
  41. package/lib/browser/file-dialog/file-dialog-service.d.ts +33 -0
  42. package/lib/browser/file-dialog/file-dialog-service.d.ts.map +1 -0
  43. package/lib/browser/file-dialog/file-dialog-service.js +102 -0
  44. package/lib/browser/file-dialog/file-dialog-service.js.map +1 -0
  45. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts +40 -0
  46. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.d.ts.map +1 -0
  47. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js +82 -0
  48. package/lib/browser/file-dialog/file-dialog-tree-filters-renderer.js.map +1 -0
  49. package/lib/browser/file-dialog/file-dialog-tree.d.ts +27 -0
  50. package/lib/browser/file-dialog/file-dialog-tree.d.ts.map +1 -0
  51. package/lib/browser/file-dialog/file-dialog-tree.js +84 -0
  52. package/lib/browser/file-dialog/file-dialog-tree.js.map +1 -0
  53. package/lib/browser/file-dialog/file-dialog-widget.d.ts +18 -0
  54. package/lib/browser/file-dialog/file-dialog-widget.d.ts.map +1 -0
  55. package/lib/browser/file-dialog/file-dialog-widget.js +85 -0
  56. package/lib/browser/file-dialog/file-dialog-widget.js.map +1 -0
  57. package/lib/browser/file-dialog/file-dialog.d.ts +130 -0
  58. package/lib/browser/file-dialog/file-dialog.d.ts.map +1 -0
  59. package/lib/browser/file-dialog/file-dialog.js +352 -0
  60. package/lib/browser/file-dialog/file-dialog.js.map +1 -0
  61. package/lib/browser/file-dialog/index.d.ts +5 -0
  62. package/lib/browser/file-dialog/index.d.ts.map +1 -0
  63. package/lib/browser/file-dialog/index.js +23 -0
  64. package/lib/browser/file-dialog/index.js.map +1 -0
  65. package/lib/browser/file-resource.d.ts +72 -0
  66. package/lib/browser/file-resource.d.ts.map +1 -0
  67. package/lib/browser/file-resource.js +385 -0
  68. package/lib/browser/file-resource.js.map +1 -0
  69. package/lib/browser/file-resource.spec.d.ts +2 -0
  70. package/lib/browser/file-resource.spec.d.ts.map +1 -0
  71. package/lib/browser/file-resource.spec.js +191 -0
  72. package/lib/browser/file-resource.spec.js.map +1 -0
  73. package/lib/browser/file-selection.d.ts +15 -0
  74. package/lib/browser/file-selection.d.ts.map +1 -0
  75. package/lib/browser/file-selection.js +37 -0
  76. package/lib/browser/file-selection.js.map +1 -0
  77. package/lib/browser/file-service.d.ts +427 -0
  78. package/lib/browser/file-service.d.ts.map +1 -0
  79. package/lib/browser/file-service.js +1370 -0
  80. package/lib/browser/file-service.js.map +1 -0
  81. package/lib/browser/file-tree/file-tree-container.d.ts +4 -0
  82. package/lib/browser/file-tree/file-tree-container.d.ts.map +1 -0
  83. package/lib/browser/file-tree/file-tree-container.js +36 -0
  84. package/lib/browser/file-tree/file-tree-container.js.map +1 -0
  85. package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts +31 -0
  86. package/lib/browser/file-tree/file-tree-decorator-adapter.d.ts.map +1 -0
  87. package/lib/browser/file-tree/file-tree-decorator-adapter.js +170 -0
  88. package/lib/browser/file-tree/file-tree-decorator-adapter.js.map +1 -0
  89. package/lib/browser/file-tree/file-tree-label-provider.d.ts +13 -0
  90. package/lib/browser/file-tree/file-tree-label-provider.d.ts.map +1 -0
  91. package/lib/browser/file-tree/file-tree-label-provider.js +55 -0
  92. package/lib/browser/file-tree/file-tree-label-provider.js.map +1 -0
  93. package/lib/browser/file-tree/file-tree-model.d.ts +34 -0
  94. package/lib/browser/file-tree/file-tree-model.d.ts.map +1 -0
  95. package/lib/browser/file-tree/file-tree-model.js +201 -0
  96. package/lib/browser/file-tree/file-tree-model.js.map +1 -0
  97. package/lib/browser/file-tree/file-tree-widget.d.ts +45 -0
  98. package/lib/browser/file-tree/file-tree-widget.d.ts.map +1 -0
  99. package/lib/browser/file-tree/file-tree-widget.js +318 -0
  100. package/lib/browser/file-tree/file-tree-widget.js.map +1 -0
  101. package/lib/browser/file-tree/file-tree.d.ts +47 -0
  102. package/lib/browser/file-tree/file-tree.d.ts.map +1 -0
  103. package/lib/browser/file-tree/file-tree.js +177 -0
  104. package/lib/browser/file-tree/file-tree.js.map +1 -0
  105. package/lib/browser/file-tree/index.d.ts +7 -0
  106. package/lib/browser/file-tree/index.d.ts.map +1 -0
  107. package/lib/browser/file-tree/index.js +25 -0
  108. package/lib/browser/file-tree/index.js.map +1 -0
  109. package/lib/browser/filesystem-frontend-contribution.d.ts +76 -0
  110. package/lib/browser/filesystem-frontend-contribution.d.ts.map +1 -0
  111. package/lib/browser/filesystem-frontend-contribution.js +372 -0
  112. package/lib/browser/filesystem-frontend-contribution.js.map +1 -0
  113. package/lib/browser/filesystem-frontend-module.d.ts +6 -0
  114. package/lib/browser/filesystem-frontend-module.d.ts.map +1 -0
  115. package/lib/browser/filesystem-frontend-module.js +70 -0
  116. package/lib/browser/filesystem-frontend-module.js.map +1 -0
  117. package/lib/browser/filesystem-saveable-service.d.ts +36 -0
  118. package/lib/browser/filesystem-saveable-service.d.ts.map +1 -0
  119. package/lib/browser/filesystem-saveable-service.js +164 -0
  120. package/lib/browser/filesystem-saveable-service.js.map +1 -0
  121. package/lib/browser/filesystem-watcher-error-handler.d.ts +11 -0
  122. package/lib/browser/filesystem-watcher-error-handler.d.ts.map +1 -0
  123. package/lib/browser/filesystem-watcher-error-handler.js +62 -0
  124. package/lib/browser/filesystem-watcher-error-handler.js.map +1 -0
  125. package/lib/browser/index.d.ts +5 -0
  126. package/lib/browser/index.d.ts.map +1 -0
  127. package/lib/browser/index.js +23 -0
  128. package/lib/browser/index.js.map +1 -0
  129. package/lib/browser/location/index.d.ts +3 -0
  130. package/lib/browser/location/index.d.ts.map +1 -0
  131. package/lib/browser/location/index.js +21 -0
  132. package/lib/browser/location/index.js.map +1 -0
  133. package/lib/browser/location/location-renderer.d.ts +101 -0
  134. package/lib/browser/location/location-renderer.d.ts.map +1 -0
  135. package/lib/browser/location/location-renderer.js +345 -0
  136. package/lib/browser/location/location-renderer.js.map +1 -0
  137. package/lib/browser/location/location-service.d.ts +6 -0
  138. package/lib/browser/location/location-service.d.ts.map +1 -0
  139. package/lib/browser/location/location-service.js +18 -0
  140. package/lib/browser/location/location-service.js.map +1 -0
  141. package/lib/browser/remote-file-service-contribution.d.ts +7 -0
  142. package/lib/browser/remote-file-service-contribution.d.ts.map +1 -0
  143. package/lib/browser/remote-file-service-contribution.js +40 -0
  144. package/lib/browser/remote-file-service-contribution.js.map +1 -0
  145. package/lib/browser/upload/file-upload-service-impl.d.ts +77 -0
  146. package/lib/browser/upload/file-upload-service-impl.d.ts.map +1 -0
  147. package/lib/browser/upload/file-upload-service-impl.js +449 -0
  148. package/lib/browser/upload/file-upload-service-impl.js.map +1 -0
  149. package/lib/browser/vscode-file-service-contribution.d.ts +25 -0
  150. package/lib/browser/vscode-file-service-contribution.d.ts.map +1 -0
  151. package/lib/browser/vscode-file-service-contribution.js +99 -0
  152. package/lib/browser/vscode-file-service-contribution.js.map +1 -0
  153. package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts +4 -0
  154. package/lib/browser-only/browser-only-filesystem-frontend-module.d.ts.map +1 -0
  155. package/lib/browser-only/browser-only-filesystem-frontend-module.js +49 -0
  156. package/lib/browser-only/browser-only-filesystem-frontend-module.js.map +1 -0
  157. package/lib/browser-only/browser-only-filesystem-provider-server.d.ts +12 -0
  158. package/lib/browser-only/browser-only-filesystem-provider-server.d.ts.map +1 -0
  159. package/lib/browser-only/browser-only-filesystem-provider-server.js +40 -0
  160. package/lib/browser-only/browser-only-filesystem-provider-server.js.map +1 -0
  161. package/lib/browser-only/download/file-download-command-contribution.d.ts +15 -0
  162. package/lib/browser-only/download/file-download-command-contribution.d.ts.map +1 -0
  163. package/lib/browser-only/download/file-download-command-contribution.js +55 -0
  164. package/lib/browser-only/download/file-download-command-contribution.js.map +1 -0
  165. package/lib/browser-only/download/file-download-frontend-module.d.ts +4 -0
  166. package/lib/browser-only/download/file-download-frontend-module.d.ts.map +1 -0
  167. package/lib/browser-only/download/file-download-frontend-module.js +27 -0
  168. package/lib/browser-only/download/file-download-frontend-module.js.map +1 -0
  169. package/lib/browser-only/download/file-download-service.d.ts +86 -0
  170. package/lib/browser-only/download/file-download-service.d.ts.map +1 -0
  171. package/lib/browser-only/download/file-download-service.js +551 -0
  172. package/lib/browser-only/download/file-download-service.js.map +1 -0
  173. package/lib/browser-only/file-search.d.ts +38 -0
  174. package/lib/browser-only/file-search.d.ts.map +1 -0
  175. package/lib/browser-only/file-search.js +153 -0
  176. package/lib/browser-only/file-search.js.map +1 -0
  177. package/lib/browser-only/opfs-filesystem-initialization.d.ts +13 -0
  178. package/lib/browser-only/opfs-filesystem-initialization.d.ts.map +1 -0
  179. package/lib/browser-only/opfs-filesystem-initialization.js +36 -0
  180. package/lib/browser-only/opfs-filesystem-initialization.js.map +1 -0
  181. package/lib/browser-only/opfs-filesystem-provider.d.ts +108 -0
  182. package/lib/browser-only/opfs-filesystem-provider.d.ts.map +1 -0
  183. package/lib/browser-only/opfs-filesystem-provider.js +487 -0
  184. package/lib/browser-only/opfs-filesystem-provider.js.map +1 -0
  185. package/lib/browser-only/upload/file-upload-service-impl.d.ts +67 -0
  186. package/lib/browser-only/upload/file-upload-service-impl.d.ts.map +1 -0
  187. package/lib/browser-only/upload/file-upload-service-impl.js +328 -0
  188. package/lib/browser-only/upload/file-upload-service-impl.js.map +1 -0
  189. package/lib/common/delegating-file-system-provider.d.ts +77 -0
  190. package/lib/common/delegating-file-system-provider.d.ts.map +1 -0
  191. package/lib/common/delegating-file-system-provider.js +169 -0
  192. package/lib/common/delegating-file-system-provider.js.map +1 -0
  193. package/lib/common/download/file-download.d.ts +17 -0
  194. package/lib/common/download/file-download.d.ts.map +1 -0
  195. package/lib/common/download/file-download.js +28 -0
  196. package/lib/common/download/file-download.js.map +1 -0
  197. package/lib/common/file-upload.d.ts +2 -0
  198. package/lib/common/file-upload.d.ts.map +1 -0
  199. package/lib/common/file-upload.js +20 -0
  200. package/lib/common/file-upload.js.map +1 -0
  201. package/lib/common/files.d.ts +668 -0
  202. package/lib/common/files.d.ts.map +1 -0
  203. package/lib/common/files.js +390 -0
  204. package/lib/common/files.js.map +1 -0
  205. package/lib/common/files.spec.d.ts +2 -0
  206. package/lib/common/files.spec.d.ts.map +1 -0
  207. package/lib/common/files.spec.js +52 -0
  208. package/lib/common/files.spec.js.map +1 -0
  209. package/lib/common/filesystem-preferences.d.ts +33 -0
  210. package/lib/common/filesystem-preferences.d.ts.map +1 -0
  211. package/lib/common/filesystem-preferences.js +122 -0
  212. package/lib/common/filesystem-preferences.js.map +1 -0
  213. package/lib/common/filesystem-utils.d.ts +15 -0
  214. package/lib/common/filesystem-utils.d.ts.map +1 -0
  215. package/lib/common/filesystem-utils.js +64 -0
  216. package/lib/common/filesystem-utils.js.map +1 -0
  217. package/lib/common/filesystem-utils.spec.d.ts +2 -0
  218. package/lib/common/filesystem-utils.spec.d.ts.map +1 -0
  219. package/lib/common/filesystem-utils.spec.js +379 -0
  220. package/lib/common/filesystem-utils.spec.js.map +1 -0
  221. package/lib/common/filesystem-watcher-protocol.d.ts +72 -0
  222. package/lib/common/filesystem-watcher-protocol.d.ts.map +1 -0
  223. package/lib/common/filesystem-watcher-protocol.js +21 -0
  224. package/lib/common/filesystem-watcher-protocol.js.map +1 -0
  225. package/lib/common/filesystem.d.ts +23 -0
  226. package/lib/common/filesystem.d.ts.map +1 -0
  227. package/lib/common/filesystem.js +43 -0
  228. package/lib/common/filesystem.js.map +1 -0
  229. package/lib/common/index.d.ts +4 -0
  230. package/lib/common/index.d.ts.map +1 -0
  231. package/lib/common/index.js +22 -0
  232. package/lib/common/index.js.map +1 -0
  233. package/lib/common/io.d.ts +20 -0
  234. package/lib/common/io.d.ts.map +1 -0
  235. package/lib/common/io.js +117 -0
  236. package/lib/common/io.js.map +1 -0
  237. package/lib/common/remote-file-system-provider.d.ts +174 -0
  238. package/lib/common/remote-file-system-provider.d.ts.map +1 -0
  239. package/lib/common/remote-file-system-provider.js +435 -0
  240. package/lib/common/remote-file-system-provider.js.map +1 -0
  241. package/lib/common/upload/file-upload.d.ts +45 -0
  242. package/lib/common/upload/file-upload.d.ts.map +1 -0
  243. package/lib/common/upload/file-upload.js +20 -0
  244. package/lib/common/upload/file-upload.js.map +1 -0
  245. package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts +4 -0
  246. package/lib/electron-browser/file-dialog/electron-file-dialog-module.d.ts.map +1 -0
  247. package/lib/electron-browser/file-dialog/electron-file-dialog-module.js +25 -0
  248. package/lib/electron-browser/file-dialog/electron-file-dialog-module.js.map +1 -0
  249. package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts +20 -0
  250. package/lib/electron-browser/file-dialog/electron-file-dialog-service.d.ts.map +1 -0
  251. package/lib/electron-browser/file-dialog/electron-file-dialog-service.js +149 -0
  252. package/lib/electron-browser/file-dialog/electron-file-dialog-service.js.map +1 -0
  253. package/lib/electron-browser/preload.d.ts +2 -0
  254. package/lib/electron-browser/preload.d.ts.map +1 -0
  255. package/lib/electron-browser/preload.js +31 -0
  256. package/lib/electron-browser/preload.js.map +1 -0
  257. package/lib/electron-common/electron-api.d.ts +35 -0
  258. package/lib/electron-common/electron-api.d.ts.map +1 -0
  259. package/lib/electron-common/electron-api.js +21 -0
  260. package/lib/electron-common/electron-api.js.map +1 -0
  261. package/lib/electron-main/electron-api-main.d.ts +6 -0
  262. package/lib/electron-main/electron-api-main.d.ts.map +1 -0
  263. package/lib/electron-main/electron-api-main.js +74 -0
  264. package/lib/electron-main/electron-api-main.js.map +1 -0
  265. package/lib/electron-main/electron-main-module.d.ts +4 -0
  266. package/lib/electron-main/electron-main-module.d.ts.map +1 -0
  267. package/lib/electron-main/electron-main-module.js +25 -0
  268. package/lib/electron-main/electron-main-module.js.map +1 -0
  269. package/lib/node/disk-file-system-provider.d.ts +73 -0
  270. package/lib/node/disk-file-system-provider.d.ts.map +1 -0
  271. package/lib/node/disk-file-system-provider.js +786 -0
  272. package/lib/node/disk-file-system-provider.js.map +1 -0
  273. package/lib/node/disk-file-system-provider.spec.d.ts +2 -0
  274. package/lib/node/disk-file-system-provider.spec.d.ts.map +1 -0
  275. package/lib/node/disk-file-system-provider.spec.js +123 -0
  276. package/lib/node/disk-file-system-provider.spec.js.map +1 -0
  277. package/lib/node/download/directory-archiver.d.ts +10 -0
  278. package/lib/node/download/directory-archiver.d.ts.map +1 -0
  279. package/lib/node/download/directory-archiver.js +128 -0
  280. package/lib/node/download/directory-archiver.js.map +1 -0
  281. package/lib/node/download/directory-archiver.spec.d.ts +2 -0
  282. package/lib/node/download/directory-archiver.spec.d.ts.map +1 -0
  283. package/lib/node/download/directory-archiver.spec.js +98 -0
  284. package/lib/node/download/directory-archiver.spec.js.map +1 -0
  285. package/lib/node/download/file-download-backend-module.d.ts +4 -0
  286. package/lib/node/download/file-download-backend-module.d.ts.map +1 -0
  287. package/lib/node/download/file-download-backend-module.js +33 -0
  288. package/lib/node/download/file-download-backend-module.js.map +1 -0
  289. package/lib/node/download/file-download-cache.d.ts +22 -0
  290. package/lib/node/download/file-download-cache.d.ts.map +1 -0
  291. package/lib/node/download/file-download-cache.js +81 -0
  292. package/lib/node/download/file-download-cache.js.map +1 -0
  293. package/lib/node/download/file-download-endpoint.d.ts +12 -0
  294. package/lib/node/download/file-download-endpoint.d.ts.map +1 -0
  295. package/lib/node/download/file-download-endpoint.js +68 -0
  296. package/lib/node/download/file-download-endpoint.js.map +1 -0
  297. package/lib/node/download/file-download-handler.d.ts +51 -0
  298. package/lib/node/download/file-download-handler.d.ts.map +1 -0
  299. package/lib/node/download/file-download-handler.js +307 -0
  300. package/lib/node/download/file-download-handler.js.map +1 -0
  301. package/lib/node/download/test/mock-directory-archiver.d.ts +8 -0
  302. package/lib/node/download/test/mock-directory-archiver.d.ts.map +1 -0
  303. package/lib/node/download/test/mock-directory-archiver.js +30 -0
  304. package/lib/node/download/test/mock-directory-archiver.js.map +1 -0
  305. package/lib/node/file-change-collection.d.ts +23 -0
  306. package/lib/node/file-change-collection.d.ts.map +1 -0
  307. package/lib/node/file-change-collection.js +78 -0
  308. package/lib/node/file-change-collection.js.map +1 -0
  309. package/lib/node/file-change-collection.spec.d.ts +2 -0
  310. package/lib/node/file-change-collection.spec.d.ts.map +1 -0
  311. package/lib/node/file-change-collection.spec.js +91 -0
  312. package/lib/node/file-change-collection.spec.js.map +1 -0
  313. package/lib/node/filesystem-backend-module.d.ts +27 -0
  314. package/lib/node/filesystem-backend-module.d.ts.map +1 -0
  315. package/lib/node/filesystem-backend-module.js +123 -0
  316. package/lib/node/filesystem-backend-module.js.map +1 -0
  317. package/lib/node/filesystem-watcher-client.d.ts +23 -0
  318. package/lib/node/filesystem-watcher-client.d.ts.map +1 -0
  319. package/lib/node/filesystem-watcher-client.js +75 -0
  320. package/lib/node/filesystem-watcher-client.js.map +1 -0
  321. package/lib/node/filesystem-watcher-dispatcher.d.ts +24 -0
  322. package/lib/node/filesystem-watcher-dispatcher.d.ts.map +1 -0
  323. package/lib/node/filesystem-watcher-dispatcher.js +81 -0
  324. package/lib/node/filesystem-watcher-dispatcher.js.map +1 -0
  325. package/lib/node/parcel-watcher/index.d.ts +4 -0
  326. package/lib/node/parcel-watcher/index.d.ts.map +1 -0
  327. package/lib/node/parcel-watcher/index.js +40 -0
  328. package/lib/node/parcel-watcher/index.js.map +1 -0
  329. package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts +193 -0
  330. package/lib/node/parcel-watcher/parcel-filesystem-service.d.ts.map +1 -0
  331. package/lib/node/parcel-watcher/parcel-filesystem-service.js +406 -0
  332. package/lib/node/parcel-watcher/parcel-filesystem-service.js.map +1 -0
  333. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts +2 -0
  334. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.d.ts.map +1 -0
  335. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js +145 -0
  336. package/lib/node/parcel-watcher/parcel-filesystem-watcher.spec.js.map +1 -0
  337. package/lib/node/parcel-watcher/parcel-options.d.ts +7 -0
  338. package/lib/node/parcel-watcher/parcel-options.d.ts.map +1 -0
  339. package/lib/node/parcel-watcher/parcel-options.js +23 -0
  340. package/lib/node/parcel-watcher/parcel-options.js.map +1 -0
  341. package/lib/node/upload/node-file-upload-service.d.ts +17 -0
  342. package/lib/node/upload/node-file-upload-service.d.ts.map +1 -0
  343. package/lib/node/upload/node-file-upload-service.js +87 -0
  344. package/lib/node/upload/node-file-upload-service.js.map +1 -0
  345. package/package.json +3 -3
@@ -0,0 +1,372 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2018 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.FileSystemFrontendContribution = exports.FileSystemCommands = void 0;
19
+ const tslib_1 = require("tslib");
20
+ const core_1 = require("@theia/core");
21
+ const browser_1 = require("@theia/core/lib/browser");
22
+ const mime_service_1 = require("@theia/core/lib/browser/mime-service");
23
+ const tree_widget_selection_1 = require("@theia/core/lib/browser/tree/tree-widget-selection");
24
+ const common_1 = require("@theia/core/lib/common");
25
+ const command_1 = require("@theia/core/lib/common/command");
26
+ const promise_util_1 = require("@theia/core/lib/common/promise-util");
27
+ const uri_1 = require("@theia/core/lib/common/uri");
28
+ const environment_1 = require("@theia/core/shared/@theia/application-package/lib/environment");
29
+ const inversify_1 = require("@theia/core/shared/inversify");
30
+ const user_working_directory_provider_1 = require("@theia/core/lib/browser/user-working-directory-provider");
31
+ const file_dialog_1 = require("./file-dialog");
32
+ const file_selection_1 = require("./file-selection");
33
+ const file_service_1 = require("./file-service");
34
+ const filesystem_preferences_1 = require("../common/filesystem-preferences");
35
+ const file_upload_1 = require("../common/upload/file-upload");
36
+ var FileSystemCommands;
37
+ (function (FileSystemCommands) {
38
+ FileSystemCommands.UPLOAD = command_1.Command.toLocalizedCommand({
39
+ id: 'file.upload',
40
+ category: browser_1.CommonCommands.FILE_CATEGORY,
41
+ label: 'Upload Files...'
42
+ }, 'theia/filesystem/uploadFiles', browser_1.CommonCommands.FILE_CATEGORY_KEY);
43
+ })(FileSystemCommands || (exports.FileSystemCommands = FileSystemCommands = {}));
44
+ let FileSystemFrontendContribution = class FileSystemFrontendContribution {
45
+ constructor() {
46
+ this.onDidChangeEditorFileEmitter = new common_1.Emitter();
47
+ this.onDidChangeEditorFile = this.onDidChangeEditorFileEmitter.event;
48
+ this.userOperations = new Map();
49
+ this.pendingOperation = Promise.resolve();
50
+ this.moveSnapshots = new Map();
51
+ this.deletedSuffix = `(${core_1.nls.localizeByDefault('Deleted')})`;
52
+ }
53
+ queueUserOperation(event) {
54
+ const moveOperation = new promise_util_1.Deferred();
55
+ this.userOperations.set(event.correlationId, moveOperation);
56
+ this.run(() => moveOperation.promise);
57
+ }
58
+ resolveUserOperation(event) {
59
+ const operation = this.userOperations.get(event.correlationId);
60
+ if (operation) {
61
+ this.userOperations.delete(event.correlationId);
62
+ operation.resolve();
63
+ }
64
+ }
65
+ initialize() {
66
+ this.fileService.onDidFilesChange(event => this.run(() => this.updateWidgets(event)));
67
+ this.fileService.onWillRunUserOperation(event => {
68
+ this.queueUserOperation(event);
69
+ event.waitUntil(this.runEach((uri, widget) => this.pushMove(uri, widget, event)));
70
+ });
71
+ this.fileService.onDidFailUserOperation(event => event.waitUntil((async () => {
72
+ await this.runEach((uri, widget) => this.revertMove(uri, widget, event));
73
+ this.resolveUserOperation(event);
74
+ })()));
75
+ this.fileService.onDidRunUserOperation(event => event.waitUntil((async () => {
76
+ await this.runEach((uri, widget) => this.applyMove(uri, widget, event));
77
+ this.resolveUserOperation(event);
78
+ })()));
79
+ this.uploadService.onDidUpload(files => {
80
+ this.doHandleUpload(files);
81
+ });
82
+ }
83
+ onStart(app) {
84
+ this.updateAssociations();
85
+ this.preferences.onPreferenceChanged(e => {
86
+ if (e.preferenceName === 'files.associations') {
87
+ this.updateAssociations();
88
+ }
89
+ });
90
+ }
91
+ registerCommands(commands) {
92
+ commands.registerCommand(FileSystemCommands.UPLOAD, {
93
+ isEnabled: (...args) => {
94
+ const selection = this.getSelection(...args);
95
+ return !!selection && !environment_1.environment.electron.is();
96
+ },
97
+ isVisible: () => !environment_1.environment.electron.is(),
98
+ execute: (...args) => {
99
+ const selection = this.getSelection(...args);
100
+ if (selection) {
101
+ return this.upload(selection);
102
+ }
103
+ }
104
+ });
105
+ commands.registerCommand(browser_1.CommonCommands.NEW_FILE, {
106
+ execute: (...args) => {
107
+ this.handleNewFileCommand(args);
108
+ }
109
+ });
110
+ }
111
+ async upload(selection) {
112
+ try {
113
+ const source = tree_widget_selection_1.TreeWidgetSelection.getSource(this.selectionService.selection);
114
+ const fileUploadResult = await this.uploadService.upload(selection.fileStat.isDirectory ? selection.fileStat.resource : selection.fileStat.resource.parent);
115
+ if (browser_1.ExpandableTreeNode.is(selection) && source) {
116
+ await source.model.expandNode(selection);
117
+ }
118
+ return fileUploadResult;
119
+ }
120
+ catch (e) {
121
+ if (!(0, common_1.isCancelled)(e)) {
122
+ console.error(e);
123
+ }
124
+ }
125
+ }
126
+ async doHandleUpload(uploads) {
127
+ // Only handle single file uploads
128
+ if (uploads.length === 1) {
129
+ const uri = new uri_1.default(uploads[0]);
130
+ // Close all existing widgets for this URI
131
+ const widgets = this.shell.widgets.filter(widget => { var _a; return (_a = browser_1.NavigatableWidget.getUri(widget)) === null || _a === void 0 ? void 0 : _a.isEqual(uri); });
132
+ await this.shell.closeMany(widgets, {
133
+ // Don't ask to save the file if it's dirty
134
+ // The user has already confirmed the file overwrite
135
+ save: false
136
+ });
137
+ // Open a new editor for this URI
138
+ (0, browser_1.open)(this.openerService, uri);
139
+ }
140
+ }
141
+ /**
142
+ * Opens a save dialog to create a new file.
143
+ *
144
+ * @param args The first argument is the name of the new file. The second argument is the parent directory URI.
145
+ */
146
+ async handleNewFileCommand(args) {
147
+ const fileName = (args !== undefined && typeof args[0] === 'string') ? args[0] : undefined;
148
+ const title = core_1.nls.localizeByDefault('Create File');
149
+ const props = { title, saveLabel: title, inputValue: fileName };
150
+ const dirUri = (args[1] instanceof uri_1.default) ? args[1] : await this.workingDirectory.getUserWorkingDir();
151
+ const directory = await this.fileService.resolve(dirUri);
152
+ const filePath = await this.fileDialogService.showSaveDialog(props, directory.isDirectory ? directory : undefined);
153
+ if (filePath) {
154
+ const file = await this.fileService.createFile(filePath);
155
+ (0, browser_1.open)(this.openerService, file.resource);
156
+ }
157
+ }
158
+ getSelection(...args) {
159
+ var _a;
160
+ const { selection } = this.selectionService;
161
+ return (_a = this.toSelection(args[0])) !== null && _a !== void 0 ? _a : (Array.isArray(selection) ? selection.find(file_selection_1.FileSelection.is) : this.toSelection(selection));
162
+ }
163
+ ;
164
+ toSelection(arg) {
165
+ return file_selection_1.FileSelection.is(arg) ? arg : undefined;
166
+ }
167
+ run(operation) {
168
+ return this.pendingOperation = this.pendingOperation.then(async () => {
169
+ try {
170
+ await operation();
171
+ }
172
+ catch (e) {
173
+ console.error(e);
174
+ }
175
+ });
176
+ }
177
+ async runEach(participant) {
178
+ const promises = [];
179
+ for (const [resourceUri, widget] of browser_1.NavigatableWidget.get(this.shell.widgets)) {
180
+ promises.push(participant(resourceUri, widget));
181
+ }
182
+ await Promise.all(promises);
183
+ }
184
+ popMoveSnapshot(resourceUri) {
185
+ const snapshotKey = resourceUri.toString();
186
+ const snapshot = this.moveSnapshots.get(snapshotKey);
187
+ if (snapshot) {
188
+ this.moveSnapshots.delete(snapshotKey);
189
+ }
190
+ return snapshot;
191
+ }
192
+ applyMoveSnapshot(widget, snapshot) {
193
+ if (!snapshot) {
194
+ return undefined;
195
+ }
196
+ if (snapshot.dirty) {
197
+ const saveable = browser_1.Saveable.get(widget);
198
+ if (saveable && saveable.applySnapshot) {
199
+ saveable.applySnapshot(snapshot.dirty);
200
+ }
201
+ }
202
+ if (snapshot.view && browser_1.StatefulWidget.is(widget)) {
203
+ widget.restoreState(snapshot.view);
204
+ }
205
+ }
206
+ async pushMove(resourceUri, widget, event) {
207
+ const newResourceUri = this.createMoveToUri(resourceUri, widget, event);
208
+ if (!newResourceUri) {
209
+ return;
210
+ }
211
+ const snapshot = {};
212
+ const saveable = browser_1.Saveable.get(widget);
213
+ if (browser_1.StatefulWidget.is(widget)) {
214
+ snapshot.view = widget.storeState();
215
+ }
216
+ if (saveable && saveable.dirty) {
217
+ if (saveable.createSnapshot) {
218
+ snapshot.dirty = saveable.createSnapshot();
219
+ }
220
+ if (saveable.revert) {
221
+ await saveable.revert({ soft: true });
222
+ }
223
+ }
224
+ this.moveSnapshots.set(newResourceUri.toString(), snapshot);
225
+ }
226
+ async revertMove(resourceUri, widget, event) {
227
+ const newResourceUri = this.createMoveToUri(resourceUri, widget, event);
228
+ if (!newResourceUri) {
229
+ return;
230
+ }
231
+ const snapshot = this.popMoveSnapshot(newResourceUri);
232
+ this.applyMoveSnapshot(widget, snapshot);
233
+ }
234
+ async applyMove(resourceUri, widget, event) {
235
+ const newResourceUri = this.createMoveToUri(resourceUri, widget, event);
236
+ if (!newResourceUri) {
237
+ return;
238
+ }
239
+ const snapshot = this.popMoveSnapshot(newResourceUri);
240
+ const description = this.widgetManager.getDescription(widget);
241
+ if (!description) {
242
+ return;
243
+ }
244
+ const { factoryId, options } = description;
245
+ if (!browser_1.NavigatableWidgetOptions.is(options)) {
246
+ return;
247
+ }
248
+ const newWidget = await this.widgetManager.getOrCreateWidget(factoryId, {
249
+ ...options,
250
+ uri: newResourceUri.toString()
251
+ });
252
+ this.applyMoveSnapshot(newWidget, snapshot);
253
+ const area = this.shell.getAreaFor(widget) || 'main';
254
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
255
+ const pending = [this.shell.addWidget(newWidget, {
256
+ area, ref: widget
257
+ })];
258
+ if (this.shell.activeWidget === widget) {
259
+ pending.push(this.shell.activateWidget(newWidget.id));
260
+ }
261
+ else if (widget.isVisible) {
262
+ pending.push(this.shell.revealWidget(newWidget.id));
263
+ }
264
+ pending.push(this.shell.closeWidget(widget.id, { save: false }));
265
+ await Promise.all(pending);
266
+ }
267
+ createMoveToUri(resourceUri, widget, event) {
268
+ var _a;
269
+ if (event.operation !== 2 /* FileOperation.MOVE */) {
270
+ return undefined;
271
+ }
272
+ const path = (_a = event.source) === null || _a === void 0 ? void 0 : _a.relative(resourceUri);
273
+ const targetUri = path && event.target.resolve(path);
274
+ return targetUri && widget.createMoveToUri(targetUri);
275
+ }
276
+ async updateWidgets(event) {
277
+ if (!event.gotDeleted() && !event.gotAdded()) {
278
+ return;
279
+ }
280
+ const dirty = new Set();
281
+ const toClose = new Map();
282
+ for (const [uri, widget] of browser_1.NavigatableWidget.get(this.shell.widgets)) {
283
+ this.updateWidget(uri, widget, event, { dirty, toClose: toClose });
284
+ }
285
+ if (this.corePreferences['workbench.editor.closeOnFileDelete']) {
286
+ const doClose = [];
287
+ for (const [uri, widgets] of toClose.entries()) {
288
+ if (!dirty.has(uri)) {
289
+ doClose.push(...widgets);
290
+ }
291
+ }
292
+ await this.shell.closeMany(doClose);
293
+ }
294
+ }
295
+ updateWidget(uri, widget, event, { dirty, toClose }) {
296
+ const label = widget.title.label;
297
+ const deleted = label.endsWith(this.deletedSuffix);
298
+ if (event.contains(uri, 2 /* FileChangeType.DELETED */)) {
299
+ const uriString = uri.toString();
300
+ if (browser_1.Saveable.isDirty(widget)) {
301
+ dirty.add(uriString);
302
+ }
303
+ if (!deleted) {
304
+ widget.title.label += this.deletedSuffix;
305
+ this.onDidChangeEditorFileEmitter.fire({ editor: widget, type: 2 /* FileChangeType.DELETED */ });
306
+ }
307
+ const widgets = toClose.get(uriString) || [];
308
+ widgets.push(widget);
309
+ toClose.set(uriString, widgets);
310
+ }
311
+ else if (event.contains(uri, 1 /* FileChangeType.ADDED */)) {
312
+ if (deleted) {
313
+ widget.title.label = widget.title.label.substring(0, label.length - this.deletedSuffix.length);
314
+ this.onDidChangeEditorFileEmitter.fire({ editor: widget, type: 1 /* FileChangeType.ADDED */ });
315
+ }
316
+ }
317
+ }
318
+ updateAssociations() {
319
+ const fileAssociations = this.preferences['files.associations'];
320
+ const mimeAssociations = Object.keys(fileAssociations).map(filepattern => ({ id: fileAssociations[filepattern], filepattern }));
321
+ this.mimeService.setAssociations(mimeAssociations);
322
+ }
323
+ };
324
+ exports.FileSystemFrontendContribution = FileSystemFrontendContribution;
325
+ tslib_1.__decorate([
326
+ (0, inversify_1.inject)(browser_1.ApplicationShell),
327
+ tslib_1.__metadata("design:type", browser_1.ApplicationShell)
328
+ ], FileSystemFrontendContribution.prototype, "shell", void 0);
329
+ tslib_1.__decorate([
330
+ (0, inversify_1.inject)(browser_1.WidgetManager),
331
+ tslib_1.__metadata("design:type", browser_1.WidgetManager)
332
+ ], FileSystemFrontendContribution.prototype, "widgetManager", void 0);
333
+ tslib_1.__decorate([
334
+ (0, inversify_1.inject)(mime_service_1.MimeService),
335
+ tslib_1.__metadata("design:type", mime_service_1.MimeService)
336
+ ], FileSystemFrontendContribution.prototype, "mimeService", void 0);
337
+ tslib_1.__decorate([
338
+ (0, inversify_1.inject)(filesystem_preferences_1.FileSystemPreferences),
339
+ tslib_1.__metadata("design:type", Object)
340
+ ], FileSystemFrontendContribution.prototype, "preferences", void 0);
341
+ tslib_1.__decorate([
342
+ (0, inversify_1.inject)(core_1.CorePreferences),
343
+ tslib_1.__metadata("design:type", Object)
344
+ ], FileSystemFrontendContribution.prototype, "corePreferences", void 0);
345
+ tslib_1.__decorate([
346
+ (0, inversify_1.inject)(common_1.SelectionService),
347
+ tslib_1.__metadata("design:type", common_1.SelectionService)
348
+ ], FileSystemFrontendContribution.prototype, "selectionService", void 0);
349
+ tslib_1.__decorate([
350
+ (0, inversify_1.inject)(file_upload_1.FileUploadService),
351
+ tslib_1.__metadata("design:type", Object)
352
+ ], FileSystemFrontendContribution.prototype, "uploadService", void 0);
353
+ tslib_1.__decorate([
354
+ (0, inversify_1.inject)(file_service_1.FileService),
355
+ tslib_1.__metadata("design:type", file_service_1.FileService)
356
+ ], FileSystemFrontendContribution.prototype, "fileService", void 0);
357
+ tslib_1.__decorate([
358
+ (0, inversify_1.inject)(file_dialog_1.FileDialogService),
359
+ tslib_1.__metadata("design:type", Object)
360
+ ], FileSystemFrontendContribution.prototype, "fileDialogService", void 0);
361
+ tslib_1.__decorate([
362
+ (0, inversify_1.inject)(browser_1.OpenerService),
363
+ tslib_1.__metadata("design:type", Object)
364
+ ], FileSystemFrontendContribution.prototype, "openerService", void 0);
365
+ tslib_1.__decorate([
366
+ (0, inversify_1.inject)(user_working_directory_provider_1.UserWorkingDirectoryProvider),
367
+ tslib_1.__metadata("design:type", user_working_directory_provider_1.UserWorkingDirectoryProvider)
368
+ ], FileSystemFrontendContribution.prototype, "workingDirectory", void 0);
369
+ exports.FileSystemFrontendContribution = FileSystemFrontendContribution = tslib_1.__decorate([
370
+ (0, inversify_1.injectable)()
371
+ ], FileSystemFrontendContribution);
372
+ //# sourceMappingURL=filesystem-frontend-contribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem-frontend-contribution.js","sourceRoot":"","sources":["../../src/browser/filesystem-frontend-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sCAAmD;AACnD,qDAYiC;AACjC,uEAAmE;AACnE,8FAAyF;AACzF,mDAA8F;AAC9F,4DAA+F;AAC/F,sEAA+D;AAC/D,oDAA6C;AAC7C,+FAA4F;AAC5F,4DAAkE;AAClE,6GAAuG;AAEvG,+CAAuE;AACvE,qDAAiD;AACjD,iDAAqE;AACrE,6EAAyE;AACzE,8DAAiE;AAEjE,IAAiB,kBAAkB,CAQlC;AARD,WAAiB,kBAAkB;IAElB,yBAAM,GAAG,iBAAO,CAAC,kBAAkB,CAAC;QAC7C,EAAE,EAAE,aAAa;QACjB,QAAQ,EAAE,wBAAc,CAAC,aAAa;QACtC,KAAK,EAAE,iBAAiB;KAC3B,EAAE,8BAA8B,EAAE,wBAAc,CAAC,iBAAiB,CAAC,CAAC;AAEzE,CAAC,EARgB,kBAAkB,kCAAlB,kBAAkB,QAQlC;AAQM,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAApC;QAmCO,iCAA4B,GAAG,IAAI,gBAAO,EAAuD,CAAC;QACnG,0BAAqB,GAAG,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC;QA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AC,0BAAgB,CAAC;sCACC,0BAAgB;6DAAC;AAGxB;IADlB,IAAA,kBAAM,EAAC,uBAAa,CAAC;sCACY,uBAAa;qEAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCACY,0BAAW;mEAAC;AAGzB;IADlB,IAAA,kBAAM,EAAC,8CAAqB,CAAC;;mEACwB;AAGnC;IADlB,IAAA,kBAAM,EAAC,sBAAe,CAAC;;uEAC4B;AAGjC;IADlB,IAAA,kBAAM,EAAC,yBAAgB,CAAC;sCACY,yBAAgB;wEAAC;AAGnC;IADlB,IAAA,kBAAM,EAAC,+BAAiB,CAAC;;qEAC0B;AAGjC;IADlB,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCACY,0BAAW;mEAAC;AAGzB;IADlB,IAAA,kBAAM,EAAC,+BAAiB,CAAC;;yEAC8B;AAGrC;IADlB,IAAA,kBAAM,EAAC,uBAAa,CAAC;;qEAC0B;AAG7B;IADlB,IAAA,kBAAM,EAAC,8DAA4B,CAAC;sCACA,8DAA4B;wEAAC;yCAjCzD,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CA4U1C"}
@@ -0,0 +1,6 @@
1
+ import '../../src/browser/style/index.css';
2
+ import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
3
+ declare const _default: ContainerModule;
4
+ export default _default;
5
+ export declare function bindFileResource(bind: interfaces.Bind): void;
6
+ //# sourceMappingURL=filesystem-frontend-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/filesystem-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,mCAAmC,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;;AAoB3E,wBAsCG;AAEH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAG5D"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2017-2018 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.bindFileResource = void 0;
19
+ require("../../src/browser/style/index.css");
20
+ const inversify_1 = require("@theia/core/shared/inversify");
21
+ const common_1 = require("@theia/core/lib/common");
22
+ const browser_1 = require("@theia/core/lib/browser");
23
+ const file_resource_1 = require("./file-resource");
24
+ const filesystem_preferences_1 = require("../common/filesystem-preferences");
25
+ const filesystem_frontend_contribution_1 = require("./filesystem-frontend-contribution");
26
+ const file_tree_1 = require("./file-tree");
27
+ const file_service_1 = require("./file-service");
28
+ const remote_file_system_provider_1 = require("../common/remote-file-system-provider");
29
+ const contribution_provider_1 = require("@theia/core/lib/common/contribution-provider");
30
+ const remote_file_service_contribution_1 = require("./remote-file-service-contribution");
31
+ const filesystem_watcher_error_handler_1 = require("./filesystem-watcher-error-handler");
32
+ const filepath_breadcrumbs_contribution_1 = require("./breadcrumbs/filepath-breadcrumbs-contribution");
33
+ const filepath_breadcrumbs_container_1 = require("./breadcrumbs/filepath-breadcrumbs-container");
34
+ const filesystem_saveable_service_1 = require("./filesystem-saveable-service");
35
+ const saveable_service_1 = require("@theia/core/lib/browser/saveable-service");
36
+ const vscode_file_service_contribution_1 = require("./vscode-file-service-contribution");
37
+ const file_upload_1 = require("../common/upload/file-upload");
38
+ const file_upload_service_impl_1 = require("./upload/file-upload-service-impl");
39
+ exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
40
+ (0, filesystem_preferences_1.bindFileSystemPreferences)(bind);
41
+ (0, contribution_provider_1.bindContributionProvider)(bind, file_service_1.FileServiceContribution);
42
+ bind(file_service_1.FileService).toSelf().inSingletonScope();
43
+ bind(remote_file_system_provider_1.RemoteFileSystemServer).toDynamicValue(ctx => browser_1.WebSocketConnectionProvider.createProxy(ctx.container, remote_file_system_provider_1.remoteFileSystemPath, new remote_file_system_provider_1.RemoteFileSystemProxyFactory()));
44
+ bind(remote_file_system_provider_1.RemoteFileSystemProvider).toSelf().inSingletonScope();
45
+ bind(remote_file_service_contribution_1.RemoteFileServiceContribution).toSelf().inSingletonScope();
46
+ bind(file_service_1.FileServiceContribution).toService(remote_file_service_contribution_1.RemoteFileServiceContribution);
47
+ bind(vscode_file_service_contribution_1.VSCodeFileSystemProvider).toSelf().inSingletonScope();
48
+ bind(vscode_file_service_contribution_1.VSCodeFileServiceContribution).toSelf().inSingletonScope();
49
+ bind(file_service_1.FileServiceContribution).toService(vscode_file_service_contribution_1.VSCodeFileServiceContribution);
50
+ bind(filesystem_watcher_error_handler_1.FileSystemWatcherErrorHandler).toSelf().inSingletonScope();
51
+ bindFileResource(bind);
52
+ bind(file_upload_1.FileUploadService).to(file_upload_service_impl_1.FileUploadServiceImpl).inSingletonScope();
53
+ bind(filesystem_frontend_contribution_1.FileSystemFrontendContribution).toSelf().inSingletonScope();
54
+ bind(common_1.CommandContribution).toService(filesystem_frontend_contribution_1.FileSystemFrontendContribution);
55
+ bind(browser_1.FrontendApplicationContribution).toService(filesystem_frontend_contribution_1.FileSystemFrontendContribution);
56
+ bind(file_tree_1.FileTreeLabelProvider).toSelf().inSingletonScope();
57
+ bind(browser_1.LabelProviderContribution).toService(file_tree_1.FileTreeLabelProvider);
58
+ bind(filepath_breadcrumbs_container_1.BreadcrumbsFileTreeWidget).toDynamicValue(ctx => (0, filepath_breadcrumbs_container_1.createFileTreeBreadcrumbsWidget)(ctx.container));
59
+ bind(filepath_breadcrumbs_contribution_1.FilepathBreadcrumbsContribution).toSelf().inSingletonScope();
60
+ bind(browser_1.BreadcrumbsContribution).toService(filepath_breadcrumbs_contribution_1.FilepathBreadcrumbsContribution);
61
+ bind(filesystem_saveable_service_1.FilesystemSaveableService).toSelf().inSingletonScope();
62
+ rebind(saveable_service_1.SaveableService).toService(filesystem_saveable_service_1.FilesystemSaveableService);
63
+ bind(file_tree_1.FileTreeDecoratorAdapter).toSelf().inSingletonScope();
64
+ });
65
+ function bindFileResource(bind) {
66
+ bind(file_resource_1.FileResourceResolver).toSelf().inSingletonScope();
67
+ bind(common_1.ResourceResolver).toService(file_resource_1.FileResourceResolver);
68
+ }
69
+ exports.bindFileResource = bindFileResource;
70
+ //# sourceMappingURL=filesystem-frontend-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem-frontend-module.js","sourceRoot":"","sources":["../../src/browser/filesystem-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,8CAA8C;AAC9C,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,6CAA2C;AAE3C,4DAA2E;AAC3E,mDAA+E;AAC/E,qDAA2J;AAC3J,mDAAuD;AACvD,6EAA6E;AAC7E,yFAAoF;AACpF,2CAA8E;AAC9E,iDAAsE;AACtE,uFAA6J;AAC7J,wFAAwF;AACxF,yFAAmF;AACnF,yFAAmF;AACnF,uGAAkG;AAClG,iGAA0H;AAC1H,+EAA0E;AAC1E,+EAA2E;AAC3E,yFAA6G;AAC7G,8DAAiE;AACjE,gFAA0E;AAE1E,kBAAe,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EA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EAA8B,CAAC,CAAC;IAEhF,IAAI,CAAC,iCAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,mCAAyB,CAAC,CAAC,SAAS,CAAC,iCAAqB,CAAC,CAAC;IACjE,IAAI,CAAC,0DAAyB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CACjD,IAAA,gEAA+B,EAAC,GAAG,CAAC,SAAS,CAAC,CACjD,CAAC;IACF,IAAI,CAAC,mEAA+B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAClE,IAAI,CAAC,iCAAuB,CAAC,CAAC,SAAS,CAAC,mEAA+B,CAAC,CAAC;IAEzE,IAAI,CAAC,uDAAyB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC5D,MAAM,CAAC,kCAAe,CAAC,CAAC,SAAS,CAAC,uDAAyB,CAAC,CAAC;IAE7D,IAAI,CAAC,oCAAwB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;AAC/D,CAAC,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAAC,IAAqB;IAClD,IAAI,CAAC,oCAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,yBAAgB,CAAC,CAAC,SAAS,CAAC,oCAAoB,CAAC,CAAC;AAC3D,CAAC;AAHD,4CAGC"}
@@ -0,0 +1,36 @@
1
+ import { MessageService } from '@theia/core';
2
+ import { Navigatable, SaveableSource, SaveOptions, Widget, OpenerService, LabelProvider } from '@theia/core/lib/browser';
3
+ import { SaveableService } from '@theia/core/lib/browser/saveable-service';
4
+ import URI from '@theia/core/lib/common/uri';
5
+ import { FileService } from './file-service';
6
+ import { FileDialogService } from './file-dialog';
7
+ export declare class FilesystemSaveableService extends SaveableService {
8
+ protected readonly messageService: MessageService;
9
+ protected readonly fileService: FileService;
10
+ protected readonly fileDialogService: FileDialogService;
11
+ protected readonly openerService: OpenerService;
12
+ protected readonly labelProvider: LabelProvider;
13
+ /**
14
+ * This method ensures a few things about `widget`:
15
+ * - `widget.getResourceUri()` actually returns a URI.
16
+ * - `widget.saveable.createSnapshot` or `widget.saveable.serialize` is defined.
17
+ * - `widget.saveable.revert` is defined.
18
+ */
19
+ canSaveAs(widget: Widget | undefined): widget is Widget & SaveableSource & Navigatable;
20
+ /**
21
+ * Save `sourceWidget` to a new file picked by the user.
22
+ */
23
+ saveAs(sourceWidget: Widget & SaveableSource & Navigatable, options?: SaveOptions): Promise<URI | undefined>;
24
+ /**
25
+ * Saves the current snapshot of the {@link sourceWidget} to the target file
26
+ * and replaces the widget with a new one that contains the snapshot content
27
+ *
28
+ * @param sourceWidget widget to save as `target`.
29
+ * @param target The new URI for the widget.
30
+ * @param overwrite
31
+ */
32
+ protected saveSnapshot(sourceWidget: Widget & SaveableSource & Navigatable, target: URI, overwrite: boolean): Promise<void>;
33
+ confirmOverwrite(uri: URI): Promise<boolean>;
34
+ private isElectron;
35
+ }
36
+ //# sourceMappingURL=filesystem-saveable-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem-saveable-service.d.ts","sourceRoot":"","sources":["../../src/browser/filesystem-saveable-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAe,cAAc,EAAO,MAAM,aAAa,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAY,cAAc,EAAE,WAAW,EAAE,MAAM,EAAQ,aAAa,EAAiC,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxK,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGlD,qBACa,yBAA0B,SAAQ,eAAe;IAG1D,SAAS,CAAC,QAAQ,CAAC,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