# Hide code lens' blocks in folds \(\#60011\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5837e7ef50f65d6e041d19ba6543532a1d596e6b

Requested commit: 5837e7ef50f65d6e041d19ba6543532a1d596e6b

Commit: 5837e7ef50f65d6e041d19ba6543532a1d596e6b

Tree: 99c2051124a55d549abdd7aec977fd07679ed8aa

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Hide code lens' blocks in folds (#60011)

Closes https://github.com/zed-industries/zed/issues/57053

Decided to be on a safest side and made only the code lens' blocks to
hide in folds: let me know if that's not desired and we should hide all
blocks (e.g. ctrl-enter for inline assist block is also not hiding and
looks odd).

Ran `ITERATIONS=100000 OPERATIONS=10 cargo test --profile release-fast
-p editor --lib display_map::tests::test_random_display_map --
--nocapture` and it passes successfully.

`SEED=770 OPERATIONS=50 cargo test --profile release-fast -p editor
--lib display_map::tests::test_random_display_map` seems to fail even on
`main`

Before:

<img width="392" height="155" alt="before"
src="https://github.com/user-attachments/assets/44d1a500-7512-49de-a9bd-2837c33353a9"
/>

After:

<img width="338" height="159" alt="after"
src="https://github.com/user-attachments/assets/671791d8-a443-4ca2-abb2-8049fe8910a7"
/>


Release Notes:

- Fixed code lens not hiding for folded regions
```

## Parents

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

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