LS: make cache path language dependent

This means existing cache files will no longer be used, they have to be moved or deleted
This commit is contained in:
Michael Panchenko
2025-06-16 13:54:38 +02:00
parent afea349d67
commit 4bd8ab83ad
+1 -1
View File
@@ -1596,7 +1596,7 @@ class LanguageServer:
@property
def _cache_path(self) -> Path:
return Path(self.repository_root_path) / ".serena" / "cache" / "document_symbols_cache_v20-05-25.pkl"
return Path(self.repository_root_path) / ".serena" / "cache" / self.language_id / "document_symbols_cache_v20-05-25.pkl"
def save_cache(self):
with self._cache_lock: