This commit is contained in:
sergio
2026-05-10 21:58:16 +00:00
parent 3d55f189c0
commit c22d2480b9
36 changed files with 5158 additions and 363 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ impl TextViewer {
}
fn spawn_load_fs(&self, path: String, gen: u64, cx: &mut Context<Self>) {
let provider = Arc::new(FileDataProvider);
let provider = Arc::new(FileDataProvider::new());
cx.spawn(async move |this, cx| {
let result = provider.get_data(&path).await;
let _ = this.update(cx, |this, cx| this.on_loaded(gen, result, cx));