faldor20 / fsharp-language-server

Other
33 stars 3 forks source link

funtion signatures do not show praramter names for functions contained inside types #5

Open faldor20 opened 2 years ago

faldor20 commented 2 years ago

eg

type a=
   let testfunc testparam:int = 
        testparam+1

The tool tip will just show testfunc: int->int

l1x commented 2 years ago

Would this be somewhat related to the pipelines not having type signatures?

Example:

    let validateMagicLink (ml: MagicLink) =

        validateEmail ml
        |> Result.bind validateDomain
        |> Result.bind validateFirstName
        |> Result.bind validateAcceptedTermsAndConditions
        |> Result.bind validateAcceptedGDPRTerms
        |> Result.bind validateAcceptedCookiePolicy
faldor20 commented 2 years ago

I believe Ionide and fsac uses some rather fancy code to extract and assemble their type signature info for pipelines. I think it's unrelated though.