Skip to content

[editor v2][P7] 模块级单例迁为 cordis 服务 #278

Description

@wardenfeng

任务

  • EditorData / editorui / editorRS / editorcache 逐个迁为 cordis 服务
  • 清理既有 R2 违规面(模块级副作用):
    • packages/filesystem/src/ReadFS.ts:96 — FS.fs = new ReadFS()
    • packages/filesystem/src/HttpFS.ts:96 — FS.basefs = new HttpFS()
    • src/assets/EditorRS.ts:167-174 — 按 supportNative 选 FS
    • src/ScriptCompiler.ts:199、src/caches/Editorcache.ts:64、src/feng3d/hierarchy/Hierarchy.ts:456
  • editorRS 的混合体拆分:工作区半归宿主(§6.2)、资产半留浏览器(§6.3)——边界取决于决策 5(资源身份)

验收

  • 每迁一个,CI 全绿;迁移清单可查
  • node scripts/check-module-side-effects.mjs --strict 通过

依据:ARCHITECTURE.md §6.1 / §6.3 / §6.9、D2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    优先级-低技术债 / 可后置 / 索引类新功能New feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions