(&self, path: &WorkspacePath)
| 638 | #[async_trait] |
| 639 | impl WorkspaceFileSystem for MemoryWorkspaceFs { |
| 640 | async fn read_text(&self, path: &WorkspacePath) -> WorkspaceResult<String> { |
| 641 | self.files |
| 642 | .read() |
| 643 | .unwrap() |
| 644 | .get(path.as_str()) |
| 645 | .cloned() |
| 646 | .ok_or_else(|| WorkspaceError::NotFound { |
| 647 | path: path.as_str().to_string(), |
| 648 | }) |
| 649 | } |
| 650 | |
| 651 | async fn write_text( |
| 652 | &self, |