worktree: Fix privacy check for singleton files (#21861)
Closes #20676 Release Notes: - Fixed private files not being redacted when not part of a larger worktree
This commit is contained in:
parent
59afc27f03
commit
cc97e682d5
3 changed files with 41 additions and 20 deletions
|
@ -427,11 +427,6 @@ pub trait LocalFile: File {
|
|||
|
||||
/// Loads the file's contents from disk.
|
||||
fn load_bytes(&self, cx: &AppContext) -> Task<Result<Vec<u8>>>;
|
||||
|
||||
/// Returns true if the file should not be shared with collaborators.
|
||||
fn is_private(&self, _: &AppContext) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
/// The auto-indent behavior associated with an editing operation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue