# editor: Support walking through overlapping diagnostics \(\#11139\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b8a83443ac66bfd4bb4f1e02b951ea6fc3359178)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b8a83443ac66bfd4bb4f1e02b951ea6fc3359178

Requested commit: b8a83443ac66bfd4bb4f1e02b951ea6fc3359178

Commit: b8a83443ac66bfd4bb4f1e02b951ea6fc3359178

Tree: afaa9dab6f7c60b54d2dd9d08a9433a0819c6d11

Author: Kalle Ahlström

Committer: GitHub

## Message

```
editor: Support walking through overlapping diagnostics (#11139)

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 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"
```

## Parents

- [c71cfd5da483c8745c202ba0f2b13752a9b1c15c](https://git.cafe/gitcafe/zed/commit/c71cfd5da483c8745c202ba0f2b13752a9b1c15c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b8a83443ac66bfd4bb4f1e02b951ea6fc3359178?format=markdown)
