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
3 changed files with 278 additions and 163 deletions
+10
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,