We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e66081 commit 71f428bCopy full SHA for 71f428b
webview-ui/src/components/common/MermaidBlock.tsx
@@ -186,7 +186,8 @@ export default function MermaidBlock({ code }: MermaidBlockProps) {
186
<CopyButton
187
onClick={(e) => {
188
e.stopPropagation()
189
- copyWithFeedback(code, e)
+ const combinedContent = `Error: ${error}\n\n\`\`\`mermaid\n${code}\n\`\`\``
190
+ copyWithFeedback(combinedContent, e)
191
}}>
192
<span className={`codicon codicon-${showCopyFeedback ? "check" : "copy"}`}></span>
193
</CopyButton>
0 commit comments