Fix language server cache directory

A language server's cache directory was determined by the language_id rather than
the language server identifier's key. The two identifiers coincided in most cases.
This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2026-09-17 12:15:43 +02:00
1 parent 0b2e22bbca
commit 602837b6e0
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -73,6 +73,8 @@ Status of the `main` branch. Changes prior to the next official version change w
specific, measured overshoot when building its high-level document symbols (#1974)
- Fix: High-level document symbol cache was not invalidated when the LS-specific low-level result
version changed
- Fix: A language server's cache directory was determined by the language_id rather than
the language server identifier's key. The two identifiers coincided in most cases.
- Fix: TypeScript and VTS now disable automatic type acquisition as intended, while VTS
preserves explicit user settings across initialization and configuration requests (#1989)
VTS initialization options now override defaults per top-level key rather than replacing the
+1 -1
View File
@@ -546,7 +546,7 @@ class SolidLanguageServer(ABC):
self._published_diagnostics_condition = threading.Condition()
# initialise symbol caches
self.cache_dir = Path(self._solidlsp_settings.project_data_path) / self.CACHE_FOLDER_NAME / self.language_id
self.cache_dir = Path(self._solidlsp_settings.project_data_path) / self.CACHE_FOLDER_NAME / self.ls_id.get_key()
self.cache_dir.mkdir(parents=True, exist_ok=True)
# * raw document symbols cache
self._ls_specific_raw_document_symbols_cache_version = cache_version_raw_document_symbols