zed icon indicating copy to clipboard operation
zed copied to clipboard

Popup for recursive structs without indirection less informative than in VS Code

Open aldreth opened this issue 1 year ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

When the code has a recursive struct without indirection the hover popup is much less informative than that in VS Code.

struct Holder {
    next_holder: Option<Holder>,
}

fn main() {
    let x = Holder {
        next_holder: Some(Holder {
            next_holder: Some(Holder { next_holder: None }),
        }),
    };
}

Zed displays this on hover:

Screenshot 2024-08-29 at 10 45 24

VS Code displays this:

Screenshot 2024-08-29 at 10 45 11

As you can see, VS Code displays more information and the hint to use Box.

Environment

Zed: v0.149.6 (Zed) OS: macOS 14.6.1 Memory: 32 GiB Architecture: aarch64

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

Display all the information that VS Code shows

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

No response

aldreth avatar Aug 29 '24 09:08 aldreth

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Jan 28 '25 11:01 github-actions[bot]

This still looks the same, no improvement

aldreth avatar Jan 29 '25 14:01 aldreth

Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!

github-actions[bot] avatar Jun 04 '25 11:06 github-actions[bot]

This issue was closed due to inactivity. If you're still experiencing this problem, please open a new issue with a link to this issue.

github-actions[bot] avatar Jun 11 '25 11:06 github-actions[bot]