fix(markdown): refresh previews after external changes

This commit is contained in:
CI Test committed 2026-08-19 12:39:55 +08:00
1 parent 4a407d78b8
commit c0e41f4b0d
9 files changed
+336 -15

No files matched your search

+2 -1
View File
@@ -111,7 +111,7 @@ export function builtinTabs(ctx: Context, options: BuiltinTabOptions = {}): read
],
}],
},
component: ({ ctx, store, scope, tab, expanded, onToggleDir, onReferenceFile }) => (
component: ({ ctx, store, scope, tab, expanded, onToggleDir, onReferenceFile, visible }) => (
<EditorHost
ctx={ctx}
store={store}
@@ -120,6 +120,7 @@ export function builtinTabs(ctx: Context, options: BuiltinTabOptions = {}): read
expanded={expanded ?? []}
onToggleDir={onToggleDir ?? (() => { /* no-op */ })}
onReferenceFile={onReferenceFile ?? (() => { /* no-op */ })}
visible={visible}
/>
),
},