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

Pretty-printing of diagnostics coming from PublishDiagnosticsParams #292

Open
Boscop opened this issue Oct 1, 2024 · 0 comments
Open

Pretty-printing of diagnostics coming from PublishDiagnosticsParams #292

Boscop opened this issue Oct 1, 2024 · 0 comments

Comments

@Boscop
Copy link

Boscop commented Oct 1, 2024

In a LSP client talking to rust-analyzer, I'd like to pretty-print diagnostics coming from PublishDiagnosticsParams, so that they look readable/indented, ideally exactly like when cargo shows errors (but without terminal color codes).
https://docs.rs/lsp-types/latest/lsp_types/struct.Diagnostic.html

Is there a function in some crate already that does this? 🙂

How do editors who have LSP clients do this, does every one reimplement the diagnostic fomatting?

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

No branches or pull requests

1 participant