# Prefer to disable options over hiding \(git panel entry context menu\) \(\#44102\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f90d9d26a55eb4730cd700c6814c6cee73bd94d7

Requested commit: f90d9d26a55eb4730cd700c6814c6cee73bd94d7

Commit: f90d9d26a55eb4730cd700c6814c6cee73bd94d7

Tree: e32f23fda2bea09c19021b370edebe2a191f16e0

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Prefer to disable options over hiding (git panel entry context menu) (#44102)

When adding the File History option here, I used the pattern to hide the
option, since that's what another option was already doing here, but I
see other menus in the git panel (`...`) that use disabling over hiding,
which is what I think is a nicer experience (allows you to learn of
actions, the full range of actions is always visible, don't have to
worry about how multiple hidden items might interact in various
configurations, etc).

<img width="336" height="241" alt="SCR-20251203-pnpy"
src="https://github.com/user-attachments/assets/0da90b9a-c230-4ce3-87b9-553ffb83604f"
/>

<img width="332" height="265" alt="SCR-20251203-pobg"
src="https://github.com/user-attachments/assets/5da95c7d-faa9-4f0f-a069-f1d099f952b9"
/>


In general, I think it would be good to move to being more consistent
with disabling over hiding - there are other places in the app that are
hiding - some might be valid, but others might just choices made on a
whim.

Release Notes:

- N/A
```

## Parents

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

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