-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Labels
Description
Hi,
I don't know if it's difficult to do, but it'd be great to have something similar to GetDeclarationsAlternate
https://github.com/fsharp/FSharp.Compiler.Service/blob/master/src/fsharp/vs/service.fsi#L173 (that is used in intellisense), but that returns a list of FSharpSymbol
instead.
It would make it easier to implement these code generation helpers:
- http://vfpt.uservoice.com/forums/247560-general/suggestions/5802615-generate-stubs-for-record-types
- http://vfpt.uservoice.com/forums/247560-general/suggestions/5802613-generate-all-match-cases-for-union-types
We would filter them by let say, union types, record types...
Otherwise, we have to rely on syntax tricks so that the type inference can guess the type, and sometimes its clumsy (like there where I have to give hints to the type inference: fsprojects-archive/zzarchive-VisualFSharpPowerTools#365)
Thanks!