Merge branch 'main' of github.com:oraios/serena

This commit is contained in:
Dominik Jain committed 2025-03-29 13:30:15 +01:00
commit 90a7d0703a
1 file changed
+5 -1
+5 -1
View File
@@ -947,6 +947,10 @@ class LanguageServer:
symbol_file = self.retrieve_full_file_content(symbol["location"]["relativePath"])
symbol_lines = symbol_file.split("\n")
symbol_body = "\n".join(symbol_lines[symbol_start_line:symbol_end_line])
# remove leading indentation
symbol_start_column = symbol["location"]["range"]["start"]["character"]
symbol_body = symbol_body[symbol_start_column:]
return symbol_body
@@ -1331,7 +1335,7 @@ class LanguageServer:
@property
def _cache_path(self) -> Path:
return Path(self.repository_root_path) / ".multilspy" / "cache" / "document_symbols_cache.pkl"
return Path(self.repository_root_path) / ".serena" / "cache" / "document_symbols_cache.pkl"
def save_cache(self):
if self._cache_has_changed: