Delete tool uses paths instead of globs (#26715)

Also made `run` avoid doing work on the main thread.

Release Notes:

- N/A
This commit is contained in:
Richard Feldman 2025-03-16 06:58:25 -04:00 committed by GitHub
parent 8a31dcaeb0
commit d5bb12631a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 117 deletions

View file

@ -3842,7 +3842,8 @@ impl Project {
/// # Returns
///
/// Returns `Some(ProjectPath)` if a matching worktree is found, otherwise `None`.
pub fn find_project_path(&self, path: &Path, cx: &App) -> Option<ProjectPath> {
pub fn find_project_path(&self, path: impl AsRef<Path>, cx: &App) -> Option<ProjectPath> {
let path = path.as_ref();
let worktree_store = self.worktree_store.read(cx);
for worktree in worktree_store.visible_worktrees(cx) {