mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 02:46:43 +00:00
Update diagnostics indicator when diagnostics are udpated (#3128)
Release Notes: - Fixed diagnostics indicator not showing proper diagnostics count
This commit is contained in:
parent
59928b6ee0
commit
e63d86e0b9
2 changed files with 5 additions and 1 deletions
|
@ -38,6 +38,10 @@ impl DiagnosticIndicator {
|
|||
this.in_progress_checks.remove(language_server_id);
|
||||
cx.notify();
|
||||
}
|
||||
project::Event::DiagnosticsUpdated { .. } => {
|
||||
this.summary = project.read(cx).diagnostic_summary(cx);
|
||||
cx.notify();
|
||||
}
|
||||
_ => {}
|
||||
})
|
||||
.detach();
|
||||
|
|
|
@ -2867,8 +2867,8 @@ impl Project {
|
|||
move |mut params, mut cx| {
|
||||
let this = this;
|
||||
let adapter = adapter.clone();
|
||||
adapter.process_diagnostics(&mut params);
|
||||
if let Some(this) = this.upgrade(&cx) {
|
||||
adapter.process_diagnostics(&mut params);
|
||||
this.update(&mut cx, |this, cx| {
|
||||
this.update_diagnostics(
|
||||
server_id,
|
||||
|
|
Loading…
Reference in a new issue