perf: migrate chat rendering to virtua (#1651)
* refactor: migrate chat history virtualization to virtua * refactor: render loaded chat history directly * refactor: finish virtua migration * perf: defer tool body rendering * perf: queue deferred tool body mounts * perf: quiet and defer markdown file probes * perf: defer markdown code highlighting * perf: stabilize markdown plugin lists * perf: defer mermaid markdown rendering * perf: delay markdown file reference annotation * perf: attach markdown table listeners on demand * perf: trim markdown render overhead
This commit is contained in:
committed by
GitHub
parent
e372c8d8cb
commit
a45376d585
@@ -3789,11 +3789,12 @@ export const FilesView: React.FC<FilesViewProps> = ({ mode = 'full' }) => {
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<SimpleMarkdownRenderer
|
||||
content={fileContent}
|
||||
className="typography-markdown-body"
|
||||
stripFrontmatter
|
||||
/>
|
||||
<SimpleMarkdownRenderer
|
||||
content={fileContent}
|
||||
className="typography-markdown-body"
|
||||
stripFrontmatter
|
||||
enableFileReferences={false}
|
||||
/>
|
||||
</ErrorBoundary>
|
||||
</div>
|
||||
) : selectedFile && isHtml && htmlViewMode === 'preview' ? (
|
||||
@@ -4129,11 +4130,12 @@ export const FilesView: React.FC<FilesViewProps> = ({ mode = 'full' }) => {
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<SimpleMarkdownRenderer
|
||||
content={fileContent}
|
||||
className="typography-markdown-body"
|
||||
stripFrontmatter
|
||||
/>
|
||||
<SimpleMarkdownRenderer
|
||||
content={fileContent}
|
||||
className="typography-markdown-body"
|
||||
stripFrontmatter
|
||||
enableFileReferences={false}
|
||||
/>
|
||||
</ErrorBoundary>
|
||||
</div>
|
||||
) : canUseShikiFileView && textViewMode === 'view' ? (
|
||||
|
||||
Reference in New Issue
Block a user