razor icon indicating copy to clipboard operation
razor copied to clipboard

Razor Intelisense doesn't suggest arguments of nested functions.

Open vsfeedback opened this issue 3 years ago • 2 comments

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice] When I type

DrawRect(new Rect(

I would expect to see Intelisense suggestion about the arguments of the constructor of Rect. But I only see the arguments of DrawRect.


Original Comments

Feedback Bot on 4/23/2022, 11:52 PM:

(private comment, text removed)

Feedback Bot on 4/28/2022, 03:48 PM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Apr 29 '22 18:04 vsfeedback

I was able to reproduce this with SkiaSharp.Views.Blazor installed and the code below. Note that the tooltip is for the outer DrawRect call and not SKRect even though the cursor is inside the SKRect initializer.

image

Code for copy:

@using SkiaSharp
@using SkiaSharp.Views.Blazor
<SKGLView OnPaintSurface=onPaint>
</SKGLView>

@code {
    void onPaint(SKPaintGLSurfaceEventArgs args)
    {
        args.Surface.Canvas.DrawRect(new SKRect());
    }
}

ryzngard avatar Apr 29 '22 19:04 ryzngard

@ryzngard dope, thanks for confirming! I'd make a bet that this is LSP platform not re-requesting signature help

NTaylorMullen avatar Apr 29 '22 20:04 NTaylorMullen

This was fixed by Roslyn in https://github.com/dotnet/roslyn/pull/73606

davidwengier avatar Jun 18 '24 05:06 davidwengier