roslyn: Local functions not available in intellisense/autocomplete

Version Used: 16…3.0 Preview 2.0

Steps to Reproduce:

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Loca|

            void Local() { }
        }
    }
}

Expected Behavior: Local function offered in autocomplete list and provided with intellisense support when typing arguments.

Actual Behavior: Local function not in the list and gets colorized only after arguments match the signature.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 22 (21 by maintainers)

Most upvoted comments

As far as I can tell, this regression was introduced by https://github.com/dotnet/roslyn/pull/35822, which probably explains why the issue happens in static methods, but not in instance methods.