-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Decompilation does not support "collapse to definitions" #26436
Comments
Also: disabling "navigate to external sources" has no effect. Even if i disable it, if i try to go back to ImmutableArray, it takes me back to this file. |
I just discovered the following difference between decompiler output and metadata output: Notice that metadata view uses normal one line comments for the documentation vs. the decompiler generates standard XML doc comments. Uncollapsing the region at the top, it can also be seen that multiple lines of single line comments are folded even in the decompiler view. Question: Can we change the VS to fold XML doc comments as well? If so, where would I have to look at? XML docs are folded in normal user code, so what/where is the difference in MetadataAsSourceService? Any pointers in the right direction would be very welcome. Another solution would be to change the decompiler to format the XML doc the same way it is done in metadata view. |
Also: The MetadataAsSourceService might need some additonal work to properly fold method body blocks. It seems that it uses a stripped down version, which cannot deal with block statements and documentation comments. After that is fixed, it should be quite pleasant to look at the decompiled source code. Any pointers in the right direction (area of Roslyn) would be much appreciated! |
roslyn/src/Features/Core/Portable/Structure/Syntax/AbstractSyntaxNodeStructureProvider.cs Line 52 in f1b10f7
I think we'd either have to implement some more Which solution is preferred? |
…ts in decompilation.
Closing out as the experience is much improved. |
For example, Decompile "ImmutableArray". Now try to collapse to definitions. The option is in the menu, but it has no effect. This makes decompile a pretty poor MAS replacement as it's super hard to actually get a sense of all the structure of the type.
What is also weird is that some things are collapsed in the decompile view. For example:
The attributes are collapsed. However:
I actually have no idea what's going on, but it's not good :)
The text was updated successfully, but these errors were encountered: