update prettier2, call2 and project2 to use fs2
This commit is contained in:
parent
78573fb140
commit
b34f0c3bee
8 changed files with 17 additions and 17 deletions
|
@ -25,7 +25,7 @@ client2 = { path = "../client2" }
|
|||
clock = { path = "../clock" }
|
||||
collections = { path = "../collections" }
|
||||
db2 = { path = "../db2" }
|
||||
fs = { path = "../fs" }
|
||||
fs2 = { path = "../fs2" }
|
||||
fsevent = { path = "../fsevent" }
|
||||
fuzzy2 = { path = "../fuzzy2" }
|
||||
git = { path = "../git" }
|
||||
|
@ -71,7 +71,7 @@ pretty_assertions.workspace = true
|
|||
client2 = { path = "../client2", features = ["test-support"] }
|
||||
collections = { path = "../collections", features = ["test-support"] }
|
||||
db2 = { path = "../db2", features = ["test-support"] }
|
||||
fs = { path = "../fs", features = ["test-support"] }
|
||||
fs2 = { path = "../fs2", features = ["test-support"] }
|
||||
gpui2 = { path = "../gpui2", features = ["test-support"] }
|
||||
language2 = { path = "../language2", features = ["test-support"] }
|
||||
lsp2 = { path = "../lsp2", features = ["test-support"] }
|
||||
|
|
|
@ -89,7 +89,7 @@ use util::{
|
|||
post_inc, ResultExt, TryFutureExt as _,
|
||||
};
|
||||
|
||||
pub use fs::*;
|
||||
pub use fs2::*;
|
||||
pub use worktree::*;
|
||||
|
||||
const MAX_SERVER_REINSTALL_ATTEMPT_COUNT: u64 = 4;
|
||||
|
@ -5201,7 +5201,7 @@ impl Project {
|
|||
fs.create_file(
|
||||
&abs_path,
|
||||
op.options
|
||||
.map(|options| fs::CreateOptions {
|
||||
.map(|options| fs2::CreateOptions {
|
||||
overwrite: options.overwrite.unwrap_or(false),
|
||||
ignore_if_exists: options.ignore_if_exists.unwrap_or(false),
|
||||
})
|
||||
|
@ -5224,7 +5224,7 @@ impl Project {
|
|||
&source_abs_path,
|
||||
&target_abs_path,
|
||||
op.options
|
||||
.map(|options| fs::RenameOptions {
|
||||
.map(|options| fs2::RenameOptions {
|
||||
overwrite: options.overwrite.unwrap_or(false),
|
||||
ignore_if_exists: options.ignore_if_exists.unwrap_or(false),
|
||||
})
|
||||
|
@ -5240,7 +5240,7 @@ impl Project {
|
|||
.map_err(|_| anyhow!("can't convert URI to path"))?;
|
||||
let options = op
|
||||
.options
|
||||
.map(|options| fs::RemoveOptions {
|
||||
.map(|options| fs2::RemoveOptions {
|
||||
recursive: options.recursive.unwrap_or(false),
|
||||
ignore_if_not_exists: options.ignore_if_not_exists.unwrap_or(false),
|
||||
})
|
||||
|
|
|
@ -6,7 +6,7 @@ use anyhow::{anyhow, Context as _, Result};
|
|||
use client2::{proto, Client};
|
||||
use clock::ReplicaId;
|
||||
use collections::{HashMap, HashSet, VecDeque};
|
||||
use fs::{
|
||||
use fs2::{
|
||||
repository::{GitFileStatus, GitRepository, RepoPath},
|
||||
Fs,
|
||||
};
|
||||
|
@ -2815,7 +2815,7 @@ pub type UpdatedGitRepositoriesSet = Arc<[(Arc<Path>, GitRepositoryChange)]>;
|
|||
impl Entry {
|
||||
fn new(
|
||||
path: Arc<Path>,
|
||||
metadata: &fs::Metadata,
|
||||
metadata: &fs2::Metadata,
|
||||
next_entry_id: &AtomicUsize,
|
||||
root_char_bag: CharBag,
|
||||
) -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue