# editor: Add \`toggle diagnostics\` to command palette \(\#31358\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a204510cfca224475e1e50e87a9391e0d244eef8

Requested commit: a204510cfca224475e1e50e87a9391e0d244eef8

Commit: a204510cfca224475e1e50e87a9391e0d244eef8

Tree: 85641efd2631366a69ca4aaf2dc14f6d40261e48

Author: Finn Evers

Committer: GitHub

## Message

```
editor: Add `toggle diagnostics` to command palette (#31358)

Follow-up to #30316

This PR adds the `editor: toggle diagnostics` action to the comand
palette so that it can also be invoked that way.

I also ensures this, the `toggle inline diagnostics` and `toggle
minimap` actions are only registered if these are supported by the
current editor instance.

Release Notes:

- N/A
```

## Parents

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

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