mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 10:16:00 +00:00
Merge branch 'main' of github.com:oraios/serena
This commit is contained in:
commit
90a7d0703a
1 file changed
+5
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user