feat(编辑能力): 完善资源扫描与裁剪保护
build.yaml / build (push) Successful in 50s

This commit is contained in:
xiaoqidun committed 2026-10-13 09:04:16 +08:00
1 parent 078c4e0736
commit a3594d1280
3 files changed
+16 -3

No files matched your search

+1 -1
View File
@@ -328,7 +328,7 @@ func (r *editorResourceRefs) scan(input io.Reader, name string) (bool, bool) {
for {
token, err := decoder.Token()
if err == io.EOF {
return scan.resource, len(scan.stack) == 0
return scan.resource, scan.seen && len(scan.stack) == 0
}
if err != nil {
return false, false