Open 1eyewonder opened 7 months ago
I agree this would be very nice to have but I think something like this should live in FSharp.Compiler.Service
. If it's possible to prototype in FsAutocomplete
, I'm for it but I get the feeling you'll hit some pain points and will have to push into FCS.
I also recall reading issues about this becoming extremely complicated as you can compound aliases:
type Fooer = string
type MyFoo = int -> int
type FooItAgain = MyFoo -> Task<Fooer>
type SlightlyDifferentFooIt = FooItAgain
I can't recall any direct issues about this from a quick search though.
Sounds good. I'll bring it up over there and see how plausible it is. I agree the compounding will be fun to say the least
Aren't tooltips in FSAC their own thing? I always thought you gents rolled your own thing for tooltips.
I think it's all the backing needed for it, like getting aliases of aliases and such. Like there's a bug about them: https://github.com/ionide/ionide-vscode-fsharp/issues/1947
Details
Assuming we have the following code:
When hovering over function parameters with a type signature such as below![image](https://github.com/fsharp/FsAutoComplete/assets/38481538/021365dd-18ff-44db-8264-648d0774cc1f)
You can see the tooltip shows us the alias of the type signature (AddNumberFunc). I would like to propose we add the ability for navigating the type signatures further so you don't have to leave your current spot in the code to read and understand the signature.
Ideas/Suggestions:
If this is found to be a reasonable idea/suggestion, I'd be willing to help contribute. I would just need guidance on areas of the codebase to search and refactor
Checklist