LSPFileBuffer: Ensure that file contents are never stale by monitoring file modification date

For every read access on .contents, check for external file modification
and re-read if necessary, invalidating the content hash as well.

Fixes #1013
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-02-13 12:48:12 +01:00
1 parent be155a348e
commit 37965666be
4 files changed
+82 -9

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ from solidlsp.ls_config import Language
@pytest.mark.python
class TestLanguageServerBasics:
class TestPythonLanguageServerBasics:
"""Test basic functionality of the language server."""
@pytest.mark.parametrize("language_server", [Language.PYTHON], indirect=True)