Skip to content
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

Added support for decompilation based on ILSpy (similar to VS) #1751

Merged
merged 28 commits into from
Apr 10, 2020

Conversation

filipw
Copy link
Member

@filipw filipw commented Apr 1, 2020

This is implemented as a variation on the /gotodefinition and /metadata endpoints.
Setting the flag RoslynExtensionsOptions:EnableDecompilationSupport to true means the user opts into decompilation instead of metadata.

The changeset is relatively big because I needed to refactor the existing metadata service and then matched the new decompilation logic to it, this way metadata services and decompilation are fully interchangeable.

No client changes needed and you can navigate from decompiled code to another symbol that needs to be decompiled (just like we support in metadata at the moment)

preview: http://g.recordit.co/9XaNkEE4lt.gif

Copy link
Member

@bjorkstromm bjorkstromm left a comment

Choose a reason for hiding this comment

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

First round of quickly looking at the code. Great work!

Copy link
Member

@david-driscoll david-driscoll left a comment

Choose a reason for hiding this comment

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

Seeing real code will be awesome!

Copy link
Member

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

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

LGTM

filipw and others added 2 commits April 9, 2020 21:49
…harpDecompiledSourceService.cs

Co-Authored-By: Joey Robichaud <jorobich@microsoft.com>
…cesProvider.cs

Co-Authored-By: Joey Robichaud <jorobich@microsoft.com>
@filipw
Copy link
Member Author

filipw commented Apr 10, 2020

ok, approved then I'm merging this

@filipw filipw merged commit 01d6f69 into master Apr 10, 2020
@filipw filipw deleted the feature/decompile branch April 10, 2020 07:38
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.

5 participants