Add files to project diagnostics view in order

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2022-01-10 13:38:00 -08:00
parent c7eb6a6a60
commit 747d9e8784
3 changed files with 27 additions and 26 deletions

View file

@ -67,7 +67,7 @@ pub enum Event {
DiagnosticsUpdated(ProjectPath),
}
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
#[derive(Clone, Debug, Eq, PartialEq, Hash, PartialOrd, Ord)]
pub struct ProjectPath {
pub worktree_id: WorktreeId,
pub path: Arc<Path>,