editor: explicit runtime path contract

This commit is contained in:
2026-04-28 14:49:41 +08:00
parent 0e506f21ec
commit cd166037bf
38 changed files with 210 additions and 129 deletions

View File

@@ -400,9 +400,9 @@ ProjectPanel::GetPresentedWindowTreeExpansionModel() const {
return ResolveUIEditorFilterableTreeHostExpansionModel(m_treeFilterHostFrame);
}
void ProjectPanel::Initialize(const std::filesystem::path& repoRoot) {
void ProjectPanel::Initialize(const std::filesystem::path& projectRoot) {
m_ownedProjectRuntime = std::make_unique<EditorProjectRuntime>();
m_ownedProjectRuntime->Initialize(repoRoot);
m_ownedProjectRuntime->Initialize(projectRoot);
SyncSelectionsFromRuntime();
}

View File

@@ -82,7 +82,7 @@ public:
bool directory = false;
};
void Initialize(const std::filesystem::path& repoRoot);
void Initialize(const std::filesystem::path& projectRoot);
void SetProjectRuntime(EditorProjectRuntime* projectRuntime);
void SetCommandFocusService(EditorCommandFocusService* commandFocusService);
void SetSystemInteractionHost(System::SystemInteractionService* systemInteractionHost);