# Show diagnostics in scrollbar \(\#7175\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ce4c15dca6f3885ddc7f2df64ca259b282b5a769

Requested commit: ce4c15dca6f3885ddc7f2df64ca259b282b5a769

Commit: ce4c15dca6f3885ddc7f2df64ca259b282b5a769

Tree: 686b9884c7460d9f58fc166cb54ba469ce30e2f3

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
Show diagnostics in scrollbar (#7175)

This PR implements support for displaying diagnostics in the scrollbar,
similar to what is already done for search results, symbols, git diff,
...

For example, changing a field name (`text`) without changing the
references looks like this in `buffer.rs` (note the red lines in the
scrollbar):

![image](https://github.com/zed-industries/zed/assets/53836821/c46f0d55-32e3-4334-8ad7-66d1578d5725)

As you can see, the errors, warnings, ... are displayed in the scroll
bar, which helps to identify possible problems with the current file.

Relevant issues: #4866, #6819

Release Notes:

- Added diagnostic indicators to the scrollbar
```

## Parents

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

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