# git_ui: Fix tooltip overlaying context menu in git blame \(\#42764\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 00e6cbc4fc1584f800b7d8f1b133716b5c2e7a53

Requested commit: 00e6cbc4fc1584f800b7d8f1b133716b5c2e7a53

Commit: 00e6cbc4fc1584f800b7d8f1b133716b5c2e7a53

Tree: 334eec62726271e7d3b3435eb5a1c36c9948180e

Author: Mustaque Ahmed

Committer: GitHub

## Message

```
git_ui: Fix tooltip overlaying context menu in git blame (#42764)

Closes #26949


## Summary

1. Split editor references to avoid borrow conflicts in event handlers
2. Check
[has_mouse_context_menu()](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-browser/workbench/workbench.html)
state directly in tooltip conditional instead of caching stale value
3. Restructured context menu deployment to ensure proper sequencing:
hide popover → build menu → deploy menu → notify for re-render

**Screen recording**



https://github.com/user-attachments/assets/8a00f882-1c54-47b0-9211-4f28f8deb867



Release Notes:

- Fixed an issue where the context menu in the Git Blame view would be
frequently overlapped by the commit information tooltip.

---------

Co-authored-by: Finn Evers <finn.evers@outlook.de>
```

## Parents

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

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