This project is read-only.
1

Resolved

Code completion fails to list parameter

description

In the 4/3 end user preview, the IntelliSense listing fails to list certain values in the dropdown.

Steps to reproduce

  1. Add the following method to a class.
    public void Foo(bool bar)
    {
        Console.WriteLine(bar.ToString());
    }
    
  2. Add a space before bar., and position the caret as indicated by the | character in the following block:
    public void Foo(bool bar)
    {
        Console.WriteLine(| bar.ToString());
    }
    
  3. Type bar

Expected result

The parameter bar is included in the listing of available code completion options.

Actual result

The parameter bar is not included in the listing of available code completion options, and pressing space results in the valid input bar getting replaced by an undesired value.

comments

Pilchie wrote Jul 25, 2014 at 9:35 PM

Thanks for the report. This is caused by some ambiguous parsing related to the declaration expressions language feature. We're already tracking a bug internally to fix IntelliSense in these cases.