Skip to content

Struct tuples cause IntelliSense problems on VSCode #5429

Closed
@charlespeary

Description

@charlespeary

Hello!

VSCode version: 1.46.1
Rust analyzer plugin version: 0.2.240
Active toolchain: nightly-x86_64-unknown-linux-gnu
Code: https://gist.github.com/Sniadekk/a7ee128f6f27805f96eccf26a8efdaec
Screenshots of the problem: https://imgur.com/a/WJCDsgA

I stumbled upon a bug while solving one of the Advent of Code problems.
The Object tuple struct contains String and Option<Box<Object>> inside.
While working on the tree_size function and trying to access the node.1 I have the same IntelliSense as with the node.0 which is a String, but there should be tips for the Option type instead.
Seems like the error isn't gone after I reload the VSCode.

I will be more than happy to provide more information to you to reproduce the bug.

Have a great day and thank you for your work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions