# diagnostics: Show source and code on related diagnostics \(\#56147\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0c8236815a71e5e0a78fe0125ca522a4a0d47b6c

Requested commit: 0c8236815a71e5e0a78fe0125ca522a4a0d47b6c

Commit: 0c8236815a71e5e0a78fe0125ca522a4a0d47b6c

Tree: 1fdad4fdab36107fbb6f85d9e06386df8fc0071f

Author: Xin Zhao

Committer: GitHub

## Message

```
diagnostics: Show source and code on related diagnostics (#56147)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #47585

Release Notes:

- Improved display of related diagnostic entries in hover popovers to
include diagnostic source and code.
```

## Parents

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

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