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

Parse and show related information in diagnostics hover content #773

Merged
merged 3 commits into from
Nov 15, 2019

Conversation

tomv564
Copy link
Contributor

@tomv564 tomv564 commented Nov 13, 2019

Closes #492

It's pretty ugly, though RLS's duplicate content in the diagnostics doesn't help:

Screenshot 2019-11-13 at 17 59 41

Discussion of how VS Code implemented the UI: microsoft/vscode#10271

@coveralls
Copy link

coveralls commented Nov 13, 2019

Coverage Status

Coverage decreased (-0.04%) to 34.731% when pulling a6f0aa4 on hover-diagnostic-related-information into ace12f7 on master.

@rwols
Copy link
Member

rwols commented Nov 13, 2019

I'm going to try this out on clangd

@rwols
Copy link
Member

rwols commented Nov 13, 2019

Schermafbeelding 2019-11-13 om 22 27 52

All of the "Candidate constructor ..." lines are DiagnosticRelatedInformation.

In both rust and clangd's case, these related diagnostics would stand out better if they had a different background color. Like an "informational" or "note" or "warning" color. Because in both cases they are informational.

Like in the terminal:

Schermafbeelding 2019-11-13 om 22 35 57

@tomv564 tomv564 force-pushed the hover-diagnostic-related-information branch from 2f32404 to a6f0aa4 Compare November 14, 2019 21:47
@tomv564
Copy link
Contributor Author

tomv564 commented Nov 14, 2019

Agree, thankfully there are lots of shades of grey to use:

Screenshot 2019-11-14 at 22 45 20

From your clangd example the absolute file paths would be better left alone instead of made relative - fixed this as well.

@tomv564 tomv564 merged commit 766e259 into master Nov 15, 2019
@predragnikolic
Copy link
Member

50 shades of popup :-D

@tomv564 tomv564 deleted the hover-diagnostic-related-information branch November 28, 2019 12:01
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.

Support for relatedInformation diagnostic property
4 participants