✨ feat(vscode): 代码阅读函数块默认折叠,函数说明进属性表「说明」行

This commit is contained in:
cruldra committed 2026-09-25 13:09:53 +08:00
1 parent 62f48fe67c
commit 9b32d4b5a8
17 files changed
+489 -100

No files matched your search

@@ -30,7 +30,7 @@ function flash(el: HTMLElement): void {
export function useReveal(
doc: DocumentMessage | null,
reveal: Reveal | null,
collapsed: readonly string[],
collapsed: ReadonlySet<string>,
expand: (ids: string[]) => void,
done: () => void,
): void {
@@ -45,7 +45,7 @@ export function useReveal(
return
}
const plan = revealPlan(doc.blocks, reveal.line, reveal.definition)
const hidden = plan?.expand.filter(id => collapsed.includes(id)) ?? []
const hidden = plan?.expand.filter(id => collapsed.has(id)) ?? []
if (hidden.length > 0) {
expand(hidden)
return