feat(sync): 持久化类型化主题与编辑器偏好并支持草稿恢复
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user