dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.89k stars 783 forks source link

Show return type hints for lambdas #15015

Open 0101 opened 1 year ago

0101 commented 1 year ago

Separating this from #14379

It will require some changes to the current type hint system which processes symbol uses - as lambda's don't have a symbol.

image

auduchinok commented 1 year ago

We could, for example, report a synthetic lambda symbol at the lambda range. It could also cover function cases. Alternatively, we could report types at ranges and expose it in FCS (the infra is already there, and it's used in member completion).