Fix fifo files hanging the project wide search (#16039)
Release Notes: - Fixed the issue related to the project wide search being stuck when project contains .fifo files - Might potentially solve the following issue https://github.com/zed-industries/zed/issues/7360
This commit is contained in:
parent
aaddb73b28
commit
2f08a0a28c
10 changed files with 34 additions and 3 deletions
|
@ -3186,6 +3186,7 @@ pub struct Entry {
|
|||
/// Whether this entry is considered to be a `.env` file.
|
||||
pub is_private: bool,
|
||||
pub char_bag: CharBag,
|
||||
pub is_fifo: bool,
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -3246,6 +3247,7 @@ impl Entry {
|
|||
is_private: false,
|
||||
git_status: None,
|
||||
char_bag,
|
||||
is_fifo: metadata.is_fifo,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5106,6 +5108,7 @@ impl<'a> From<&'a Entry> for proto::Entry {
|
|||
is_ignored: entry.is_ignored,
|
||||
is_external: entry.is_external,
|
||||
git_status: entry.git_status.map(git_status_to_proto),
|
||||
is_fifo: entry.is_fifo,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5134,6 +5137,7 @@ impl<'a> TryFrom<(&'a CharBag, proto::Entry)> for Entry {
|
|||
is_private: false,
|
||||
is_symlink: entry.is_symlink,
|
||||
char_bag,
|
||||
is_fifo: entry.is_fifo,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue