django-language-server/crates/djls-server
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
..
src Fix overlay bug: Salsa wasn't re-reading from buffers when files were opened 2025-08-29 07:55:37 -05:00
tests Fix overlay bug: Salsa wasn't re-reading from buffers when files were opened 2025-08-29 07:55:37 -05:00
build.rs Create djls-dev crate and centralize Python linking build scripts (#119) 2025-04-30 12:59:04 -05:00
Cargo.toml Fix overlay bug: Salsa wasn't re-reading from buffers when files were opened 2025-08-29 07:55:37 -05:00