Restored a lost API and got everything compiling

This commit is contained in:
Mikayla Maki 2023-05-02 16:12:51 -07:00
parent bcf608e9e9
commit ae890212e3
No known key found for this signature in database
2 changed files with 35 additions and 32 deletions

View file

@ -4700,6 +4700,8 @@ impl Project {
repos: &Vec<RepositoryEntry>,
cx: &mut ModelContext<Self>,
) {
debug_assert!(worktree.read(cx).is_local());
for (_, buffer) in &self.opened_buffers {
if let Some(buffer) = buffer.upgrade(cx) {
let file = match File::from_dyn(buffer.read(cx).file()) {