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 11:58:25 +01:00
committed by GitHub
parent 8a31dcaeb0
commit d5bb12631a
3 changed files with 24 additions and 117 deletions
+2 -1
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) {