Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Copy both error message and content on mermaid error#3120

Merged
mrubens merged 1 commit into
mainfrom
better_mermaid_error_copy
May 2, 2025
Merged

Copy both error message and content on mermaid error#3120
mrubens merged 1 commit into
mainfrom
better_mermaid_error_copy

Conversation

@mrubens
Copy link
Copy Markdown
Collaborator

@mrubens mrubens commented May 2, 2025

Important

Enhance CopyButton in MermaidBlock.tsx to copy both error message and Mermaid code on error.

  • Behavior:
    • In MermaidBlock.tsx, the CopyButton now copies both the error message and the Mermaid code when an error occurs.
    • Combines error message and code into a single string formatted with "Error: {error}\n\nmermaid\n{code}\n".

This description was created by Ellipsis for e83bc34. You can customize this summary. It will automatically update as commits are pushed.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 2, 2025

⚠️ No Changeset found

Latest commit: e83bc34

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 2, 2025
@mrubens mrubens merged commit 71f428b into main May 2, 2025
17 checks passed
@mrubens mrubens deleted the better_mermaid_error_copy branch May 2, 2025 14:09
@github-project-automation github-project-automation Bot moved this from New to Done in Roo Code Roadmap May 2, 2025
mehmetsunkur pushed a commit to mehmetsunkur/Roo-Code that referenced this pull request May 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant