Skip to content

FSharpSymbol do not carry information about enum fields #658

@vasily-kirichenko

Description

@vasily-kirichenko

For example, for System.System.Text.RegularExpressions.RegexOptions:

image

image

FSharpFields is used to create custom tooltips in MonoDevelop (and I'm trying to port it to VS Code at the moment) https://github.com/mono/monodevelop/blob/8b17d75ff2dc26c5aa1a6246f6a2ce7d4f65e3be/main/external/fsharpbinding/MonoDevelop.FSharpBinding/FSharpSymbolHelper.fs#L681-L689

As FSharpFields are empty, both MonoDevelop and Code show the following tooltip:

image

image

Currently we use FSharpCheckFileResults.GetToolTipTextAlternate https://github.com/fsharp/FSharp.Compiler.Service/blob/master/src/fsharp/vs/service.fs#L1909 and it does show enum fields properly:

image

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