Skip to content

Conversation

@liboz
Copy link
Contributor

@liboz liboz commented Aug 24, 2016

Fixes #1382. Also has some minor cleanup

@msftclas
Copy link

Hi @liboz, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

@liboz liboz changed the title [WIP] Prints Out Value of Public Fields [WIP] Pretty Print Value of Public Fields in FSI Aug 24, 2016
@liboz liboz changed the title [WIP] Pretty Print Value of Public Fields in FSI Pretty Print Value of Public Fields in FSI Aug 25, 2016
@liboz
Copy link
Contributor Author

liboz commented Aug 25, 2016

Ready for review

| true ->
// we have a hit on a property reference
let preText = replaceEscapedBrackets(m.Groups.["pre"].Value) // everything before the first opening bracket
let postText = m.Groups.["post"].Value // Everything after the closing bracket
Copy link
Contributor

@KevinRansom KevinRansom Aug 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Up at line 832:
we get x.GetType() again ... I suppose we can remove it and use the ty that we fetched in 827

    let ty = x.GetType()
    if ty.IsGenericType && ty.GetGenericTypeDefinition() = typedefof<Lazy<_>> then
        Some (wordL (x.ToString()))
    else
        // Try the StructuredFormatDisplayAttribute extensibility attribute
        match x.GetType().GetCustomAttributes (typeof<StructuredFormatDisplayAttribute>, true) with

@KevinRansom
Copy link
Contributor

@liboz
Other than the minor comments it looks great.

Kevin

@KevinRansom
Copy link
Contributor

@liboz

This is great Thank you for taking care of this.

Kevin

@KevinRansom KevinRansom merged commit 5e865c5 into dotnet:master Aug 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants