package p.studio.workspaces.editor;

import java.nio.file.Path;
import java.util.Objects;

public record EditorProjectSnapshot(
        Path projectRoot,
        EditorProjectNode rootNode) {
    public EditorProjectSnapshot {
        projectRoot = Objects.requireNonNull(projectRoot, "projectRoot").toAbsolutePath().normalize();
        rootNode = Objects.requireNonNull(rootNode, "rootNode");
    }
}
