django-language-server/crates
Josh 2dd779bcda Fix overlay bug: Salsa wasn't re-reading from buffers when files were opened
The core issue was that when a file was opened in the LSP, if it had already
been read from disk, Salsa would return cached content instead of reading
from the overlay system. This happened because opening a file didn't bump
its revision, so Salsa had no reason to invalidate its cache.

Key changes:
- Created Buffers abstraction to encapsulate shared buffer storage
- Fixed Session::open_document() to bump revision when file already exists
- Added comprehensive integration tests to verify overlay behavior
- Refactored WorkspaceFileSystem to use Buffers instead of raw DashMap

This ensures that overlays always take precedence over disk content, fixing
the issue where LSP edits weren't being reflected in template parsing.
2025-08-29 07:55:37 -05:00
..
djls move all dependencies to workspace Cargo.toml (#150) 2025-05-15 21:21:30 -05:00
djls-conf move all dependencies to workspace Cargo.toml (#150) 2025-05-15 21:21:30 -05:00
djls-dev Finish basic logging setup with tracing (#181) 2025-08-17 19:38:31 -05:00
djls-project update all internal crate versions to 0.0.0 2025-05-18 15:54:33 -05:00
djls-server Fix overlay bug: Salsa wasn't re-reading from buffers when files were opened 2025-08-29 07:55:37 -05:00
djls-templates wip 2025-08-25 12:22:54 -05:00
djls-workspace Fix overlay bug: Salsa wasn't re-reading from buffers when files were opened 2025-08-29 07:55:37 -05:00