Align project panel and git panel deletion behavior (#27525)

This change makes the git panel and project panel behave the same, on
Linux and macOS, and adds prompts.

Release Notes:

- Changed the git panel to prompt before restoring a file.
9e02fee98dMikayla Maki committed on 3/26/2025, 9:15:24 PM· committed by GitHubparent999ad77
5 files changedLine totals unavailable