# Fix code lens id clash \(\#54851\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 832c17e8192e2e1d472f0751e7cef2af84ded622

Requested commit: 832c17e8192e2e1d472f0751e7cef2af84ded622

Commit: 832c17e8192e2e1d472f0751e7cef2af84ded622

Tree: 93cdfb293bd4fb4f3dc46e541a08aac954450bd2

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Fix code lens id clash (#54851)

Follow-up to https://github.com/zed-industries/zed/pull/54100

Instead of relying on "line number" that could have overlapped depending
on the range we query, use hierarchical IDset: `block id -> lens #` to
ensure no clashes happen anymore.

Release Notes:

- N/A
```

## Parents

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

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