mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 04:16:34 +00:00
Merge branch 'main' of github.com:oraios/serena
This commit is contained in:
commit
3dc5a25d77
16 files changed
+419
-223
No files matched your search
@@ -144,8 +144,7 @@ def read_file(ctx: Context, relative_path: str) -> str:
|
||||
|
||||
class ReadFileTool(Tool):
|
||||
def _execute(self):
|
||||
with self.langsrv.open_file(relative_path):
|
||||
return self.langsrv.get_open_file_text(relative_path)
|
||||
return self.langsrv.retrieve_full_file_content(relative_path)
|
||||
|
||||
return ReadFileTool(ctx).execute()
|
||||
|
||||
|
||||
Reference in new issue
Block a user