-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 telecope-like list of lsp-diagnostics #1891
Comments
Good idea, shouldn't be too hard to add either. |
Maybe I try to implement it myself. |
Take a look at how FilePicker is used in the code (it's just a picker with a file preview), i.e. helix/helix-term/src/commands/lsp.rs Line 74 in deb7ee6
A new command has to be added that builds a FilePicker from doc.diagnostics() |
I'm working on it with hx. Nice way to learn the editor. So I create two functions: |
Does the LSP spec provide a way to get diagnostics for the whole workspace ? |
LSP seems to send diagnostic messages for all file, hx just filters them on receive for open documents. |
* Add workspace and document diagnostics picker fixes #1891 * Fix some of @archseer's annotations * Add From<&Spans> impl for String * More descriptive parameter names. * Adding From<Cow<str>> impls for Span and Spans * Add new keymap entries to docs * Avoid some clones * Fix api change * Update helix-term/src/application.rs Co-authored-by: Bjorn Ove Hay Andersen <[email protected]> * Fix a clippy hint * Sort diagnostics first by URL and then by severity. * Sort diagnostics first by URL and then by severity. * Ignore missing lsp severity entries * Add truncated filepath * Typo * Strip cwd from paths and use url-path without schema * Make tests a doctest * Better variable names Co-authored-by: Falco Hirschenberger <[email protected]> Co-authored-by: Bjorn Ove Hay Andersen <[email protected]>
hi, will this be added to 22.08 release ? |
Yep. Anything merged into master that hasn't since been reverted (nothing comes to mind) will be included in the next release. |
In Lunarvim I love the feature to have a telescope list of lsp diagnostics (also clippy remarks) where I can simply skim through and fix issues here and there. (see screenshot)
The text was updated successfully, but these errors were encountered: