# language: Make \`TreeSitterData\` only shared between snapshots of the same version \(\#44198\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 18d344e118e6ac7f9ab3dcbec0b95663ab914bf5

Requested commit: 18d344e118e6ac7f9ab3dcbec0b95663ab914bf5

Commit: 18d344e118e6ac7f9ab3dcbec0b95663ab914bf5

Tree: e029bbb3419e66f5b9cf7ff85dce47085f2627f8

Author: Lukas Wirth

Committer: GitHub

## Message

```
language: Make `TreeSitterData` only shared between snapshots of the same version (#44198)

Currently we have a single cache for this data shared between all
snapshots which is incorrect, as we might update the cache to a new
version while having old snapshots around which then may try to access
new data with old offsets/rows.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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