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 ...
18d344e118Lukas Wirth committed on 12/12/2025, 1:15:50 PM· committed by GitHubparent610cc1b
4 files changedLine totals unavailable