Improve local filetree view state and sidebar performance

This commit is contained in:
lix-2026
2026-05-27 11:31:12 +08:00
parent 58e2fdb5d8
commit 3ae33cc21d
56 changed files with 8614 additions and 461 deletions
@@ -193,8 +193,10 @@ async function main() {
);
assert(markdown.includes("# 正文标题"), "正文 H1 应写回 markdown");
assert(markdown.includes("正文已保存"), "正文段落应写回 markdown");
const options = fs.readFileSync(path.join(managedRoot, ".mnote", "page-options.json"), "utf8");
assert(options.includes("showToc"), "页面设置应写入 .mnote/page-options.json");
assert(
!fs.existsSync(path.join(managedRoot, ".mnote", "page-options.json")),
"页面设置不应继续写入 .mnote/page-options.json",
);
console.log("task167 local markdown title/body/options no-convex smoke passed");
} finally {