# Remove redundant Cargo diagnostics settings \(\#36795\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/70575d1115133988df19d3d2d6c8cc1f35a19a6b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 70575d1115133988df19d3d2d6c8cc1f35a19a6b

Requested commit: 70575d1115133988df19d3d2d6c8cc1f35a19a6b

Commit: 70575d1115133988df19d3d2d6c8cc1f35a19a6b

Tree: 0124a47999cafba43cfcb772acb87cb27205fa7d

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Remove redundant Cargo diagnostics settings (#36795)

Removes `diagnostics.cargo.fetch_cargo_diagnostics` settings as those
are not needed for the flycheck diagnostics to run.
This setting disabled `checkOnSave` in rust-analyzer and allowed to
update diagnostics via flycheck in the project diagnostics editor with
the "refresh" button.

Instead, `"checkOnSave": false,` can be set manually as
https://zed.dev/docs/languages/rust#more-server-configuration example
shows and flycheck commands can be called manually from anywhere,
including the diagnostics panel, to refresh the diagnostics.

Release Notes:

- Removed redundant `diagnostics.cargo.fetch_cargo_diagnostics` settings
```

## Parents

- [ea42013746f1533a49c32c0a6a5d6b84920f85b2](https://git.cafe/gitcafe/zed/commit/ea42013746f1533a49c32c0a6a5d6b84920f85b2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/70575d1115133988df19d3d2d6c8cc1f35a19a6b?format=markdown)
