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:
parent
8a31dcaeb0
commit
d5bb12631a
3 changed files with 24 additions and 117 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue