parent
e3b593efbd
commit
c4083b9b63
28 changed files with 103 additions and 104 deletions
|
@ -69,7 +69,7 @@ async fn process_updates(
|
|||
entries: Vec<PathBuf>,
|
||||
mut cx: AsyncApp,
|
||||
) -> Result<()> {
|
||||
let fs = this.read_with(&mut cx, |this, _| this.fs.clone())?;
|
||||
let fs = this.read_with(&cx, |this, _| this.fs.clone())?;
|
||||
for entry_path in entries {
|
||||
if !entry_path
|
||||
.extension()
|
||||
|
@ -118,9 +118,9 @@ async fn process_updates(
|
|||
async fn initial_scan(
|
||||
this: WeakEntity<SnippetProvider>,
|
||||
path: Arc<Path>,
|
||||
mut cx: AsyncApp,
|
||||
cx: AsyncApp,
|
||||
) -> Result<()> {
|
||||
let fs = this.read_with(&mut cx, |this, _| this.fs.clone())?;
|
||||
let fs = this.read_with(&cx, |this, _| this.fs.clone())?;
|
||||
let entries = fs.read_dir(&path).await;
|
||||
if let Ok(entries) = entries {
|
||||
let entries = entries
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue