Skip to content

feat(lsp): sort diagnostic picker by severity #13806

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RoloEdits
Copy link
Contributor

@RoloEdits RoloEdits commented Jun 20, 2025

This was brought up again in #3543 and I think that while the search options to narrow a scope down is very nice, I find myself searching for errors as the most common case, which requires to always have a %s E search. This works, but one issue is that the SPACE+', for example, doesnt update with new info after changing things. And the picker doesnt persist the queries, requiring a retype of the same thing many times as issues are addressed.

Sorting by default optimizes this flow. And the search options still provide a way to narrow from there. While I think this should be the default, there was mention of configuration, but most cases need a search, which bypasses any specific search order anyways (I think it uses a different search sort mechanism (nucleos?)).

@RoloEdits
Copy link
Contributor Author

The unwrap_or defaults the diagnostic to hint, which matches the changes made for the status-line diagnostics.

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.

1 participant