Skip to content

FindAllReferences and QuickInfo need a dual-view of tuples #20115

Open

Description

If you select the declaration of local a, its usages get properly highlighted:
image

But if you highlight the usage of a in a tuple, then its declaration is not properly highlighted:
image

I think the root problem is that when you highlight a member of a tuple (including one on the left of a deconstruction), there are two views you could take: (1) you're pointing at the expression of that member, or (2) you're pointing at a member of the tuple.

Currently, QuickInfo takes the second view (see screenshots below).

image

image

There is a similar problem with anonymous types:

image

image

FYI @CyrusNajmabadi

Relates to #20116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions