shell
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user