Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
aldreth opened this issue Aug 29, 2024 · 0 comments
Open
1 task done
Labels
defect [core label] documentation [core label] language An umbrella label for all programming languages syntax behaviors popovers Feedback for tooltips, syntax hints, info popups, toasts, etc rust Rust programming language support

Comments

@aldreth
Copy link

aldreth commented Aug 29, 2024

Check for existing issues

  • 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 aldreth added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Aug 29, 2024
@JosephTLyons JosephTLyons added documentation [core label] rust Rust programming language support language An umbrella label for all programming languages syntax behaviors popovers Feedback for tooltips, syntax hints, info popups, toasts, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] documentation [core label] language An umbrella label for all programming languages syntax behaviors popovers Feedback for tooltips, syntax hints, info popups, toasts, etc rust Rust programming language support
Projects
None yet
Development

No branches or pull requests

2 participants