Now that C# local functions have been added, Tab to Next Reference ought to be updated to work with them.
Currently it doesn't. Here are the repro steps:
- Open Visual Studio 2017.
- Create a new C# console app called, say, LocalFunctionTest.
- Change Program.cs to have this code:
C#using System;
namespace LocalFunctionTest
{
class Program
{
static void Main(string[] args)
{
void SayHello()
{
Console.WriteLine("Hello, world!");
}
SayHello();
}
}
}
- Put the cursor on the SayHello method and try tabbing to the reference below. A tab gets inserted in the method name.
- Put the cursor on the SayHello call in Main and try tabbing to the method definition. A tab gets inserted in the method call.
What should happen in each case, once this is implemented, is that the cursor should move to the other reference.
Hello Ryan,
Thank you for providing the code sample and steps to reproduce.
We have reproduced the issue and will research it.
You will be informed as soon as we make any progress.