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

Display highest severity diagnostic in gutter #2835

Merged
merged 3 commits into from
Jun 21, 2022

Conversation

A-Walrus
Copy link
Contributor

Fixes: #2827.
Gets sub-slice of diagnostics for all diagnostics on a line (still using binary search), and finds the max within the diagnostics of the line.

A-Walrus added 2 commits June 20, 2022 14:39
Very slight improvement (doesn't really make a difference), iterates over the diagnostics of the line
once instead of twice.
@sbromberger
Copy link
Contributor

@A-Walrus - thank you very much for tackling this!

Copy link
Member

@sudormrfbin sudormrfbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sudormrfbin sudormrfbin merged commit 43027d9 into helix-editor:master Jun 21, 2022
lazytanuki pushed a commit to lazytanuki/helix that referenced this pull request Jun 21, 2022
* Display highest severity diagnostic in gutter

* Improve gutter diagnostic performance

Very slight improvement (doesn't really make a difference), iterates over the diagnostics of the line
once instead of twice.

* Add comment justifying unwrap
@A-Walrus A-Walrus deleted the prioritize_gutter branch August 1, 2022 07:38
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.

prioritize gutter diagnostics
4 participants