Skip to content

FSharpSymbol do not carry information about enum fields #658

Closed

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

Activity

  1. dsyme commented on Oct 24, 2016

    @dsyme
    Contributor

    Thanks, you're right this information should be provided

  2. 7sharp9 commented on Mar 31, 2017

    @7sharp9
    Member

    This is specific to non F# enums is works fine for those defined in F#

    screen shot 2017-03-31 at 3 56 32 pm

  3. 7sharp9 commented on Apr 3, 2017

    @7sharp9
    Member

    screen shot 2017-04-03 at 2 45 10 pm

    Found them.

  4. 7sharp9 commented on Apr 3, 2017

    @7sharp9
    Member

    ILTycon.Fields also has them, I'll see if I can patch this up.

  5. vasily-kirichenko commented on Apr 29, 2017

    @vasily-kirichenko
    ContributorAuthor

    I cannot reproduce in current VFT master:

    image

    image

  6. 7sharp9 commented on Apr 29, 2017

    @7sharp9
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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