# Add severity argument to GoToDiagnostic actions \(\#33995\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 050ed85d711acc2914f4beb9be7ea942959091ed

Requested commit: 050ed85d711acc2914f4beb9be7ea942959091ed

Commit: 050ed85d711acc2914f4beb9be7ea942959091ed

Tree: 309093d1e6db346c9588eb0c10c14536faa03374

Author: Hilmar Wiegand

Committer: GitHub

## Message

````
Add severity argument to GoToDiagnostic actions (#33995)

This PR adds a `severity` argument so severity can be defined when
navigating through diagnostics. This allows keybinds like the following:

```json
{
  "] e": ["editor::GoToDiagnostic", { "severity": "error" }],
  "[ e": ["editor::GoToDiagnostic", { "severity": "error" }]
}
```

I've added test comments and a test. Let me know if there's anything
else you need!

Release Notes:

- Add `severity` argument to `editor::GoToDiagnostic`,
`editor::GoToPreviousDiagnostic`, `project_panel::SelectNextDiagnostic`
and `project_panel::SelectPrevDiagnostic` actions
````

## Parents

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

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