Removed get_open_file_text from ls

Superseded by a method that doesn't require opening the file
This commit is contained in:
Michael Panchenko committed 2025-03-24 23:15:47 +01:00
1 parent 677ec0d943
commit 2e32fb6040
2 files changed
+1 -32

No files matched your search

+1 -2
View File
@@ -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()