Rename worktree crate to project, pull in Project

Also, move the high-level fuzzy mathcing functions in
zed::fuzzy into the fuzzy crate so that project can
use them.

This required defining a 'PathMatchCandidateSet' trait
to avoid a circular dependency from fuzzy to worktree.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-10-04 16:45:05 -07:00
co-authored by Nathan Sobo
parent 748598e419
commit 2f0212ee98
18 changed files with 316 additions and 270 deletions
+1 -1
View File
@@ -5,8 +5,8 @@ use buffer::{Buffer, File as _};
use editor::{Editor, EditorSettings, Event};
use gpui::{fonts::TextStyle, AppContext, ModelHandle, Task, ViewContext};
use postage::watch;
use project::Worktree;
use std::path::Path;
use worktree::Worktree;
impl Item for Buffer {
type View = Editor;