Git panel: Right click menu (#24787)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-02-12 22:26:34 -07:00 committed by GitHub
parent fc7bf7bcb9
commit d57f5937d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 278 additions and 163 deletions

View file

@ -1612,6 +1612,16 @@ impl Project {
})
}
pub fn delete_file(
&mut self,
path: ProjectPath,
trash: bool,
cx: &mut Context<Self>,
) -> Option<Task<Result<()>>> {
let entry = self.entry_for_path(&path, cx)?;
self.delete_entry(entry.id, trash, cx)
}
pub fn delete_entry(
&mut self,
entry_id: ProjectEntryId,