Avoid persisting project's state before it has been initialized

This commit is contained in:
Max Brunsfeld 2022-06-03 16:40:16 -07:00
parent e18bc24989
commit 24aafde1e8
4 changed files with 202 additions and 27 deletions

View file

@ -32,7 +32,7 @@ pub struct Project {
#[serde(skip)]
pub join_requests: HashMap<UserId, Vec<Receipt<proto::JoinProject>>>,
pub active_replica_ids: HashSet<ReplicaId>,
pub worktrees: HashMap<u64, Worktree>,
pub worktrees: BTreeMap<u64, Worktree>,
pub language_servers: Vec<proto::LanguageServer>,
}