core
core copied to clipboard
refactor: file-service module
Types
- [x] 🪚 Refactors
Background or solution
- 重命名 IFileServiceClient 为 FileServiceClientToken。并移动到 core-common 中,使其 token 属性更明确
- 将部分类型移动到 core-common 的 file-watch type 文件中
- 为了减少模块之间的耦合,在 browser 模块里内置实现 FileServiceClientToken 的 Base 类 https://github.com/opensumi/core/commit/d0a23222204e66823b4f5f9dd734d1561e2f9faf#diff-8cfb88e48f2a666405f627e9242a2bc5e4ea15cf10f661cdeeecd1bfc3a28127R10。
只有在引入了 file-service 模块之后才会使用到原来的 file client service
- 删除了 monaco 模块对 file-service 模块的依赖