(&self, path: &str)
| 664 | } |
| 665 | |
| 666 | pub fn is_external_path(&self, path: &str) -> bool { |
| 667 | let abs_path = if std::path::Path::new(path).is_absolute() { |
| 668 | path.to_string() |
| 669 | } else { |
| 670 | format!("{}/{}", self.directory, path) |
| 671 | }; |
| 672 | !abs_path.starts_with(&self.project_root) |
| 673 | } |
| 674 | } |
| 675 | |
| 676 | impl std::fmt::Debug for ToolContext { |