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
editor: Support walking through overlapping diagnostics #11139
Conversation
cf0de4f
to
42e2c1a
Compare
Generated by 🚫 dangerJS against a728dd0d1ac7686e256ff9560125d02bcd7a7349 |
f017132
to
a728dd0
Compare
@osiewicz Mind taking a quick look at this one? |
Could you share your eslint config? I'd like to play with this branch locally. |
The file I was playing around in was this one, but those two files should work the same regardless of exact file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…es#11139) While looking into how to implement zed-industries#4901, noticed that the current `Goto next/previous diagnostic` behaved a bit weirdly. That is, when there are multiple errors that have overlapping ranges, only the first one can be chosen to be active by the `go_to_diagnostic_impl`. ### Previous behavior: https://github.com/zed-industries/zed/assets/71292737/95897675-f5ee-40e5-869f-0a40066eb8e3 Doesn't go through all the diagnostics, and going backwards and forwards doesn't show the same diagnostic always. ### New behavior: https://github.com/zed-industries/zed/assets/71292737/81f7945a-7ad8-4a34-b286-cc2799b10500 Should always go through the diagnostics in a consistent manner. Release Notes: * Improved the behavioral consistency of "Go to Next/Previous Diagnostic"
While looking into how to implement #4901, noticed that the current
Goto next/previous diagnostic
behaved a bit weirdly. That is, when there are multiple errors that have overlapping ranges, only the first one can be chosen to be active by thego_to_diagnostic_impl
.Previous behavior:
Screen.Recording.2024-04-28.at.21.34.29.mov
Doesn't go through all the diagnostics, and going backwards and forwards doesn't show the same diagnostic always.
New behavior:
go_to_diagnostic_after.mov
Should always go through the diagnostics in a consistent manner.
Release Notes: