Move fuzzy mod out of worktree

We now match against arbitrary strings in addition to paths.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2021-08-04 17:46:53 -06:00
parent 593afb2d9e
commit 1a21902460
6 changed files with 53 additions and 54 deletions

View file

@ -911,7 +911,7 @@ impl WorkspaceHandle for ViewHandle<Workspace> {
let tree_id = tree.id();
tree.read(cx)
.files(0)
.map(move |f| (tree_id, f.path().clone()))
.map(move |f| (tree_id, f.path.clone()))
})
.collect::<Vec<_>>()
}