# Send along diagnostics when requesting code actions \(\#10281\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 87c282d8f1cb53cda9b5c3deda52501bb0104103

Requested commit: 87c282d8f1cb53cda9b5c3deda52501bb0104103

Commit: 87c282d8f1cb53cda9b5c3deda52501bb0104103

Tree: 64e79bc50e7e14f82cedbf10204128a24de00a50

Author: Thorsten Ball

Committer: GitHub

## Message

```
Send along diagnostics when requesting code actions (#10281)

This fixes #10177 by sending along the correct diagnostics when querying
the language server for diagnostics for a given cursor location.

Turns out that `gopls` takes the `range`, `source`, `message` of the
diagnostics sent along to check whether it has any code actions for the
given location.

Release Notes:

- Fixed "quickfix" code actions that were based on diagnostics not
showing up in Go files.
([#10177](https://github.com/zed-industries/zed/issues/10177)).

Co-authored-by: Conrad <conrad@zed.dev>
Co-authored-by: Marshall <marshall@zed.dev>
```

## Parents

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

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