Save migrated cache and delete legacy cache after migration

This commit is contained in:
Dominik Jain committed 2025-11-17 16:08:39 +01:00
1 parent 89b6bfce96
commit 70e64de890
1 file changed
+4 -1
+4 -1
View File
@@ -1717,9 +1717,12 @@ class SolidLanguageServer(ABC):
num_symbols_migrated += len(all_symbols)
log.info("Migrated %d document symbols from legacy cache", num_symbols_migrated)
self._raw_document_symbols_cache = migrated_cache
self._raw_document_symbols_cache_is_modified = True
self._save_raw_document_symbols_cache()
legacy_cache_file.unlink()
return
except Exception as e:
log.error("Failed to migrate cache: %s", e)
log.error("Error during cache migration: %s", e)
return
# load existing cache (if any)