vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

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

Open just-ero opened this issue 5 months ago • 5 comments

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 (ce148ddd)
.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.

just-ero avatar Aug 01 '25 09:08 just-ero

Hi. May I try this one?

sami-daniel avatar Oct 27 '25 18:10 sami-daniel

Go for it

CyrusNajmabadi avatar Oct 27 '25 19:10 CyrusNajmabadi

I don't repro this at all on latest insider preview.

CyrusNajmabadi avatar Nov 10 '25 14:11 CyrusNajmabadi

@CyrusNajmabadi Still repro on latest VSCode.

VSCode version: 1.107.0
C# extension: 2.110.4
C# Dev Kit extension: 1.90.2

Roslyn: 5.3.0-2.25603.1 (aa3a5b25c49873676d4f4a175c72a71ae92ffe94) .NET: 10.0.101

just-ero avatar Dec 11 '25 12:12 just-ero

Appears to be VSCode-only.

just-ero avatar Dec 11 '25 12:12 just-ero