Apply file-system operations coming from an LSP code action

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2022-02-07 16:11:40 +01:00
parent 982e90539d
commit a172c3c5c6
5 changed files with 346 additions and 49 deletions

View file

@ -126,7 +126,7 @@ mod tests {
use super::*;
use editor::{DisplayPoint, Editor};
use gpui::{MutableAppContext, TestAppContext, ViewHandle};
use project::ProjectPath;
use project::{Fs, ProjectPath};
use serde_json::json;
use std::{
collections::HashSet,
@ -817,7 +817,10 @@ mod tests {
.active_pane()
.update(cx, |pane, cx| pane.close_item(editor2.id(), cx));
drop(editor2);
app_state.fs.as_fake().remove(Path::new("/root/a/file2"))
app_state
.fs
.as_fake()
.remove_file(Path::new("/root/a/file2"), Default::default())
})
.await
.unwrap();