-
Notifications
You must be signed in to change notification settings - Fork 842
Pretty Print Value of Public Fields in FSI #1484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hi @liboz, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
|
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 |
There was a problem hiding this comment.
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
|
@liboz Kevin |
|
This is great Thank you for taking care of this. Kevin |
Fixes #1382. Also has some minor cleanup