Skip to content

Conversation

@Vinayak9769
Copy link
Contributor

This PR implements the feature requested in #155.

Summary:

Added a copy button allowing users to copy the diagnostic message as plain text.

Local test

Before:
Screenshot from 2025-12-14 02-28-05

After:
Screenshot from 2025-12-14 02-21-52

Happy to tweak this if you want any changes! :)

@kevinramharak
Copy link
Collaborator

This looks solid, the only question is if an icon from codeicon representing the copy icon would be better than using the text.

@Vinayak9769
Copy link
Contributor Author

Vinayak9769 commented Dec 13, 2025

Yep, I was considering that as well. I’ve now updated the implementation to use the copy icon.

Here's a screenshot:

Screenshot from 2025-12-14 03-45-47

Copy link
Owner

@yoavbls yoavbls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@kevinramharak kevinramharak merged commit 34ea065 into yoavbls:main Dec 15, 2025
@bennycode
Copy link
Contributor

@yoavbls, @Vinayak9769 & @kevinramharak What’s the difference between the copy icon next to the website icons and the copy icon that already appears next to the error message?

Screenshot:

image

@kevinramharak
Copy link
Collaborator

@bennycode That is the original error message, shown by VS Code TypeScript language features.
As stated in #155 (comment), if you hide those original error messages, you will miss out on a copy button.

@bennycode
Copy link
Contributor

Cool! Thanks for the info. @yoavbls can you make a new release of the extension?

@yoavbls
Copy link
Owner

yoavbls commented Dec 19, 2025

Of course, I'm just waiting for this to be merged:
#152
Hopefully this weekend and then I'll publish a new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants