# Add a way to toggle inlay hints with modifiers \#2 \(\#25766\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7440833ff10f1d1de091b0ac3357aad14299951b

Requested commit: 7440833ff10f1d1de091b0ac3357aad14299951b

Commit: 7440833ff10f1d1de091b0ac3357aad14299951b

Tree: 53e95cdb5c619b76eff35862c52edc09db73b7dd

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Add a way to toggle inlay hints with modifiers #2 (#25766)

https://github.com/zed-industries/zed/pull/25752 with fixes on top

* Ensures no flickering happens for all modifiers `: false` case
* Dismisses the toggled state on focus out
* Reworks cache state so that "enabled" and "toggled by modifiers" are
different states with their own lifecycle

Release Notes:

- N/A
```

## Parents

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

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