pub trait ImportLoader {
// Required method
fn load(&self, path: &str) -> Result<String, String>;
}Expand description
Trait for loading .fd files by path.
Implemented differently by each host environment:
- WASM: reads from VS Code workspace via message passing
- LSP: reads from the filesystem
- CLI/tests: reads from a HashMap or disk