Skip to content

Get types available at current scope #144

@OkayX6

Description

@OkayX6

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:

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions