zed icon indicating copy to clipboard operation
zed copied to clipboard

Inlay hints disappeared when hover around

Open StevenWong12 opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

When I toggle on inlay hints and hover around the editor, inlay hints suddenly disappear. The video below shows how this happened.

https://github.com/zed-industries/zed/assets/56827396/1fed68da-8afd-48b9-b7f3-a68960179672

The console output such logs when inlay hints disappear (I set a breakpoint on refresh_inlay_hints function), hope these could be helpful to you. image

Environment

Zed: v0.120.6 (Zed) OS: macOS 14.1.0 Memory: 32 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

StevenWong12 avatar Feb 07 '24 06:02 StevenWong12

Same problem fix_inlay_hint

d1y avatar Feb 07 '24 07:02 d1y

Hmmm, I'm not able to reproduce this one. Would you be comfortable with including your settings.json contents? Not sure if there's anything there, but never know.

cc @SomeoneToIgnore

JosephTLyons avatar Feb 08 '24 19:02 JosephTLyons

@JosephTLyons Here. I am using the default settings from this repo though. { "JSON": { "tab_size": 4 }, "formatter": "auto" }

StevenWong12 avatar Feb 09 '24 03:02 StevenWong12

cc @SomeoneToIgnore

JosephTLyons avatar Feb 16 '24 19:02 JosephTLyons

This still happened last time I checked. A workaround is to add the setting to settings.json.

MolotovCherry avatar Aug 23 '24 23:08 MolotovCherry