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

[Feature Request]: Please Support Diagnostic.codeDescription to provide external links #185

Open
bastiandoetsch opened this issue Jul 18, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@bastiandoetsch
Copy link
Contributor

bastiandoetsch commented Jul 18, 2022

Hey all,

it would be real nice to be able to navigate from a diagnostic to extended information specified in the CodeDescription field. To achieve this, vscode and Sublime Text just display the Diagnostic.Code field as a link that links to the CodeDescription. Would it be possible to implement this for the problems view and maybe the LSP marker?

This is how it looks in these tools:

image

image

image

image

Cheers
Bastian

@bastiandoetsch
Copy link
Contributor Author

It would even be more awesome, to render external links in an internal browser view that would open within the IDE.

@mickaelistria
Copy link
Contributor

Would you be interested in contributing this feature?

@bastiandoetsch
Copy link
Contributor Author

I would be happy to contribute it. My solution would be to change the Diagnostic Hover to display diagnostic code with a link to the code description like sublime and vscsode do it. Does that match your expectations, @mickaelistria?

@mickaelistria
Copy link
Contributor

I don't think you'll be able to change the diagnostic/marker popup from LSP4E, this popup does come for the editor framework in Platform. But changes in Platform are welcome as well. Maybe the hover does already somehow support HTML...
Another way to render links would be to hook those as marker resolutions. It wouldn't be as cool, but it allows to get something working in LSP4E until Platform can better support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants