Skip to content

Unexpected parameter info pop-up when typing certain tokens inside expression as argument #79733

@just-ero

Description

@just-ero

Full issue information + repro project:
https://github.com/just-ero/roslyn-issues-repros/tree/main/5.0.0/007_UnexpectedParameterInfo_ExpressionAsArgument

Version

Note

Roslyn: 5.0.0-2.25371.17 (ce148dd)
.NET SDK: 10.0.100-preview.6.25358.103

Visual Studio Code: 1.102.2
C# Extension: 2.87.26
C# Dev Kit Extension: 1.41.5

Steps to Reproduce

  1. Add the following code wherever syntactically applicable:
    void M1(Action a) { }
    
    void M2()
    {
        M1(() => { });
    }
  2. Type tokens like ,, {, (, [ anywhere in the lambda expression's block body.

Expected Behavior

The parameter hint does not appear, because we're no longer in the argument context.

Actual Behavior

It does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    Status

    InQueue

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions