feat(版本管理): 优化版本大页保存内存
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-10-10 22:29:07 +08:00
1 parent efe8c2ff85
commit e9579e3d46
6 files changed
+56 -19

No files matched your search

+7
View File
@@ -43,6 +43,13 @@ func (r editorGeneratedReferences) matches(data []byte) bool {
return bytes.Equal(data, r.data)
}
// stagedLeaf 判断暂存页面是否无需改写文件路径,资源标识仍由资源索引解析
// 入参: data 当前条目数据
// 返回: bool 是否为引用完整且不含文件路径的暂存页面
func (r editorGeneratedReferences) stagedLeaf(data []byte) bool {
return r.staged != nil && data == nil && r.refs != nil && len(r.refs.files) == 0
}
// editorVectorUsage 保存自产矢量资源的引用快照,内容和路径变化时失效
type editorVectorUsage struct {
name string