zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.95k stars 2.83k forks source link

The info overlay doesn't disappear automatically #15667

Open Abhinav5383 opened 2 months ago

Abhinav5383 commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

The info overlay that shows up when the cursor enters a function parentheses doesn't disappear after exiting that context. The overlay keeps showing as long as the cursor is inside the function, and if mouse clicked into another function, it starts showing the info of that function

*typescript with default lsp

Environment

Zed: v0.146.4 (Zed) OS: Linux Wayland arch unknown Memory: 7.5 GiB Architecture: x86_64 GPU: Intel(R) UHD Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 24.1.4-arch1.2

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

Screenshot:

image

Screen recording: https://github.com/user-attachments/assets/4d99aa9b-799e-413f-877f-881802fdac58

If applicable, attach your Zed.log file to this issue.

Zed.log


Abhinav5383 commented 1 month ago

A little thing i noticed, this thing doesn't happen in javascript files, only in typescript files I thought it was because typescript had type definitions for the parameters or something, but it doesn't happen in go also

craigwduckett commented 1 month ago

This is happening to me too. I'm mainly working in tsx files at the moment. Basically, every time I autocomplete a prop on a component by hitting enter the info overlay shows, then when ever I move the cursor the overlay is still visible but updates based on its nearest component.

SomeoneToIgnore commented 1 month ago

That functionality could be disabled with

"show_signature_help_after_edits": true,

set to false, there's still an editor: show signature help (cmd-i on mac by default) to trigger this manually, and esc to hide any of the pop-ups related.

Abhinav5383 commented 1 month ago

That functionality could be disabled with

"show_signature_help_after_edits": true,

set to false, there's still an editor: show signature help (cmd-i on mac by default) to trigger this manually, and esc to hide any of the pop-ups related.

The thing is, that popup should only appear

but it needs me to click esc each time to dismiss it, it's annoying to reach out to that key on the corner each time