mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 21:00:35 +00:00
Only process diagnostics if corresponding project is alive
Part of https://github.com/zed-industries/zed/pull/3128 that is possible to apply now.
This commit is contained in:
parent
bcf3bac168
commit
c98a811c0b
1 changed files with 1 additions and 1 deletions
|
@ -2986,8 +2986,8 @@ impl Project {
|
||||||
let this = this.clone();
|
let this = this.clone();
|
||||||
move |mut params, mut cx| {
|
move |mut params, mut cx| {
|
||||||
let adapter = adapter.clone();
|
let adapter = adapter.clone();
|
||||||
adapter.process_diagnostics(&mut params);
|
|
||||||
if let Some(this) = this.upgrade() {
|
if let Some(this) = this.upgrade() {
|
||||||
|
adapter.process_diagnostics(&mut params);
|
||||||
this.update(&mut cx, |this, cx| {
|
this.update(&mut cx, |this, cx| {
|
||||||
this.update_diagnostics(
|
this.update_diagnostics(
|
||||||
server_id,
|
server_id,
|
||||||
|
|
Loading…
Reference in a new issue