# Hide inline overlays when context menu is open \(\#45266\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e44529ed7ba3da10f796a5d37d494a5ef883e17a

Requested commit: e44529ed7ba3da10f796a5d37d494a5ef883e17a

Commit: e44529ed7ba3da10f796a5d37d494a5ef883e17a

Tree: 0c6b7a9a1c77636e4bebbf5f19c0976a5241f26c

Author: Mustaque Ahmed

Committer: GitHub

## Message

```
Hide inline overlays when context menu is open (#45266)

Closes #23367 

**Summary**
- Prevents inline diagnostics, code actions, blame annotations, and
hover popovers from overlapping with the right-click context menu by
checking for `mouse_context_menu` presence before rendering these UI
elements.

PS: Same behaviour is present in other editors like VS Code.


**Screen recording**


https://github.com/user-attachments/assets/8290412b-0f86-4985-8c70-13440686e530



Release Notes:

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

## Parents

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

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