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:
Cole Miller
2024-12-12 01:53:00 -05:00
committed by GitHub
parent 59afc27f03
commit cc97e682d5
3 changed files with 41 additions and 20 deletions
-5
View File
@@ -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.