Skip to content

Find all references of a DU case should include case testers #16621

@kerams

Description

@kerams

Pressing F12 on the new case testers takes you to the case definition, which is fantastic. However, case testers don't count as a reference/usage of a DU case. I think they should, even though the reference is implied rather than direct.

Describe the solution you'd like

type X = A | B

let c = A.IsB

Find all references on B should return IsB instead of no results, otherwise someone might think B is unused and try to remove it.

Additional context

VS 17.9.0 Preview 3.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    New

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions