[ty] Fix stale semantic tokens after opening the same document with new content by MichaReiser · Pull Request #22414 · astral-sh/ruff (original) (raw)

Summary

Fixes astral-sh/ty#2346
Fixes astral-sh/ty#2353

We never synced the File::revision after closing a file, but we should to ensure File::revision reverts back to using the file's last modified timestamp.

Test Plan

Added E2E test