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

@@ -17,8 +17,7 @@ class EditorWindowHostRuntime final : public EditorWindowHostRuntimeServices {
public:
EditorWindowHostRuntime(
EditorWindowHostConfig hostConfig,
std::filesystem::path repoRoot,
std::filesystem::path captureRoot);
EditorRuntimePaths runtimePaths);
~EditorWindowHostRuntime();
bool CreateHostWindow(
@@ -54,8 +53,8 @@ public:
return m_hostConfig;
}
const std::filesystem::path& GetRepoRoot() const {
return m_repoRoot;
const EditorRuntimePaths& GetRuntimePaths() const {
return m_runtimePaths;
}
std::vector<std::unique_ptr<EditorWindow>>& GetWindowStorage() {
@@ -73,8 +72,7 @@ private:
const EditorWindow* FindWindowByIdImpl(std::string_view windowId) const;
EditorWindowHostConfig m_hostConfig = {};
std::filesystem::path m_repoRoot = {};
std::filesystem::path m_captureRoot = {};
EditorRuntimePaths m_runtimePaths = {};
std::vector<std::unique_ptr<EditorWindow>> m_windows = {};
EditorWindow* m_pendingCreateWindow = nullptr;
EditorWindowHostCoordinator* m_hostCoordinator = nullptr;