mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Copy both error message and content on mermaid error (#3120)
This commit is contained in:
parent
2e66081921
commit
71f428bbeb
1 changed files with 2 additions and 1 deletions
|
|
@ -186,7 +186,8 @@ export default function MermaidBlock({ code }: MermaidBlockProps) {
|
|||
<CopyButton
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
copyWithFeedback(code, e)
|
||||
const combinedContent = `Error: ${error}\n\n\`\`\`mermaid\n${code}\n\`\`\``
|
||||
copyWithFeedback(combinedContent, e)
|
||||
}}>
|
||||
<span className={`codicon codicon-${showCopyFeedback ? "check" : "copy"}`}></span>
|
||||
</CopyButton>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue