feat(sync): 持久化类型化主题与编辑器偏好并支持草稿恢复

This commit is contained in:
2026-09-08 19:54:24 +08:00
parent 50c697dcb8
commit 98fcb4330f
18 changed files with 663 additions and 15 deletions
+3
View File
@@ -40,6 +40,9 @@ impl Workspace {
return Err(HostError::new("FILE_TOO_LARGE"));
}
let bytes = fs::read(source)?;
if crate::records::is_record(&path) {
crate::records::validate(&path, &bytes)?;
}
Ok(Local {
path,
hash: hash(&bytes),