fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Find all references of a DU case should include case testers

Open kerams opened this issue 1 year ago • 0 comments

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

kerams avatar Jan 31 '24 08:01 kerams