Roslyn: Partial records miss their names in 'Find all references' window

Created on 6 Nov 2020  路  6Comments  路  Source: dotnet/roslyn

Version Used:
VS 16.8 Preview 6

Steps to Reproduce:

  1. Type code
// File 1
public partial record R(int A, double B, float C);
// File 2
partial record R
{
     public void Deconstruct(out int a, out double b) => (a, b) = (A, B);
}
  1. Click name R, and press F12 (or choose 'Find all references').

Expected Behavior:
The name will be displayed well.

Actual Behavior:
Actually, two references is shown below:

  • public partial record R(int A, double B, float C)
  • partial record
    The second one misses the name R.

Screenshots:

Area-IDE untriaged

Most helpful comment

This is fixed in master with Allison's PR
image

All 6 comments

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@allisonchou Did your PR #47960 handle this? (specifically the change of GetPartKind where SymbolDisplayPartKind.RecordName is returned); or this is another issue?

/cc @JoeRobich as well

This is fixed in master with Allison's PR
image

@JoeRobich Thank you. Should I close this issue?

Yup. Closing. Thanks for the report!

Was this page helpful?
0 / 5 - 0 ratings