roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

"Go To Implementation" doesn't find all implementations

Open AlekseyTs opened this issue 1 year ago • 2 comments

Version Used:

Microsoft Visual Studio Enterprise 2022 (64-bit) - Int Preview Version 17.5.0 Preview 3.0 [33206.467.main]

Steps to Reproduce:

In Roslyn solution

  1. Go to the definition of abstract property Microsoft.CodeAnalysis.CSharp.Syntax.BaseExpressionColonSyntax.Expression in Syntax.xml.Syntax.Generated.cs
  2. Right click and select "Go To Implementation"

Expected Behavior:

Two implementations found, in ExpressionColonSyntax and in NameColonSyntax types.

Actual Behavior:

Only implementation in ExpressionColonSyntax is found.

I am not sure if the fact that implementation in NameColonSyntax type is not in a generated file makes any difference for the scenario.

AlekseyTs avatar Dec 14 '22 11:12 AlekseyTs

@jasonmalinowski I don't even see this command offered in that file:

image

Something broken with SG files?

CyrusNajmabadi avatar Dec 14 '22 17:12 CyrusNajmabadi

Turn this back on:

image

(this is the feature flag we're flipping back, so by the time you investigate this it might be back on)

jasonmalinowski avatar Dec 14 '22 20:12 jasonmalinowski