# Don't reuse the same diagnostic group id across buffers · gitcafe/zed

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

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

Visibility: public

Requested revision: 6baf8b033b4f1916ba88277621b78f02033f0db6

Requested commit: 6baf8b033b4f1916ba88277621b78f02033f0db6

Commit: 6baf8b033b4f1916ba88277621b78f02033f0db6

Tree: 4d0eb4c50e322af0e7601c65ec1dd09637e63a12

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Don't reuse the same diagnostic group id across buffers

This lets us use the group id as the key for an `ElementState`, which
fixes a panic that would occur in project diagnostics when opening it
while there were multiple diagnostic groups with the same id.

```

## Parents

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

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