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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 41 additions and 20 deletions

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.