fsharp
fsharp copied to clipboard
Find all references of a DU case should include case testers
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