Revert "Don't replace newer diagnostics with older ones"
This reverts commit 71eeeedc05
.
This commit is contained in:
parent
e7e45be6e1
commit
4f39181c4c
7 changed files with 13 additions and 33 deletions
|
@ -223,7 +223,6 @@ pub struct DiagnosticSummary {
|
|||
pub language_server_id: usize,
|
||||
pub error_count: usize,
|
||||
pub warning_count: usize,
|
||||
pub version: usize,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
@ -294,14 +293,12 @@ pub struct ProjectTransaction(pub HashMap<ModelHandle<Buffer>, language::Transac
|
|||
impl DiagnosticSummary {
|
||||
fn new<'a, T: 'a>(
|
||||
language_server_id: usize,
|
||||
version: usize,
|
||||
diagnostics: impl IntoIterator<Item = &'a DiagnosticEntry<T>>,
|
||||
) -> Self {
|
||||
let mut this = Self {
|
||||
language_server_id,
|
||||
error_count: 0,
|
||||
warning_count: 0,
|
||||
version,
|
||||
};
|
||||
|
||||
for entry in diagnostics {
|
||||
|
@ -327,7 +324,6 @@ impl DiagnosticSummary {
|
|||
language_server_id: self.language_server_id as u64,
|
||||
error_count: self.error_count as u32,
|
||||
warning_count: self.warning_count as u32,
|
||||
version: self.version as u32,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue