# Allow to temporarily toggle diagnostics in the editor \(\#30316\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a8312d623d4ee0327db5e692939f464df3cbe32d

Requested commit: a8312d623d4ee0327db5e692939f464df3cbe32d

Commit: a8312d623d4ee0327db5e692939f464df3cbe32d

Tree: 2a9036d583ad091077ff6efc2105a8b0c8668c11

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Allow to temporarily toggle diagnostics in the editor (#30316)

* Adds a `diagnostics_max_severity: null` editor settings that has
previous hardcoded default, `warning`
* Make inline diagnostics to inherit this setting by default (can be
overridden with its own max_severity setting)
* Allows to toggle diagnostics in the editor menu and via new action,
`editor::ToggleDiagnostics`

Closes https://github.com/zed-industries/zed/issues/4686

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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