Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom context menu for diagnostics #2916

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

parlough
Copy link
Member

@parlough parlough commented Mar 28, 2024

A potential solution for #2877 that surfaces a custom context menu when right clicking a diagnostic message, allowing developers to copy the error message or view the full documentation.

It might make sense to copy a more complete message than just the issue, similar to what dart analyze outputs, so let me know what you think is most useful :)

Diagnostic message context menu

Closes #2877

Copy link
Member

@devoncarew devoncarew 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!

Happy for this PR to land as is, but here's a potential tweak. On hover, we could make two action buttons visible on the right hand side; one an info or external link icon, and one a copy icon. I think this solution would have improved discoverability.

@parlough
Copy link
Member Author

parlough commented Apr 2, 2024

On hover, we could make two action buttons visible on the right hand side; one an info or external link icon, and one a copy icon.

I like that idea, and it likely provides a better keyboard-only experience too! I worried the UI would get crowded, but only showing up on hover/focus seems like a good way to manage that. I'll land this for now as implementing that will require some more UI considerations, but I opened #2925 to explore it.

@parlough parlough merged commit fc1c8f7 into main Apr 2, 2024
4 checks passed
@parlough parlough deleted the feat/diagnostic-context-menu branch April 2, 2024 01:05
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.

unable to copy text from the issues tab
2 participants