Re-enable cargo check for rust-analyzer
This commit is contained in:
parent
508b9dc024
commit
ad1db117e6
7 changed files with 118 additions and 50 deletions
|
@ -1,6 +1,6 @@
|
|||
pub mod fs;
|
||||
mod ignore;
|
||||
mod worktree;
|
||||
pub mod worktree;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use client::{proto, Client, PeerId, TypedEnvelope, User, UserStore};
|
||||
|
@ -60,6 +60,7 @@ pub struct Collaborator {
|
|||
pub enum Event {
|
||||
ActiveEntryChanged(Option<ProjectEntry>),
|
||||
WorktreeRemoved(usize),
|
||||
DiskBasedDiagnosticsUpdated { worktree_id: usize },
|
||||
DiagnosticsUpdated(ProjectPath),
|
||||
}
|
||||
|
||||
|
@ -482,6 +483,11 @@ impl Project {
|
|||
path: path.clone(),
|
||||
}));
|
||||
}
|
||||
worktree::Event::DiskBasedDiagnosticsUpdated => {
|
||||
cx.emit(Event::DiskBasedDiagnosticsUpdated {
|
||||
worktree_id: worktree.id(),
|
||||
});
|
||||
}
|
||||
})
|
||||
.detach();
|
||||
self.worktrees.push(worktree);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue