# editor: Clear diagnostics when folding a range that contains it \(\#11167\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 91b3c24ed35d58438ae33970f07d1ff01d3acfc7

Requested commit: 91b3c24ed35d58438ae33970f07d1ff01d3acfc7

Commit: 91b3c24ed35d58438ae33970f07d1ff01d3acfc7

Tree: d663541171709bee186706a9c5b09deb21387947

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
editor: Clear diagnostics when folding a range that contains it (#11167)

Fixes #4659 

Release Notes:

- Fixed active diagnostic in editor showing up when it's line is in a
folded range.
```

## Parents

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

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