mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 04:18:56 +00:00
Removed get_open_file_text from ls
Superseded by a method that doesn't require opening the file
This commit is contained in:
1 parent
677ec0d943
commit
2e32fb6040
2 files changed
+1
-32
No files matched your search
@@ -132,8 +132,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