Skip to content

[request] return Node values on ilspy.decompileSelectedAssembly, etc for third-party integration #496

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

Open
jamesalbert opened this issue Dec 20, 2024 · 2 comments

Comments

@jamesalbert
Copy link

jamesalbert commented Dec 20, 2024

Hi all, I was wondering if maintainers are open to returning Node values in response to certain commands. I'd really like to integrate my vscode extension with ilspy-vscode. Let me know, I'd be open to implementing, too.

For context, an extension can decompile an assembly by calling decompileSelectedAssembly, but doesn't get anything back in terms of symbol tokens. If that extension wanted to subsequently open the decompiled assembly in a new tab, they'd need the info from a Node to construct an ilspy:// uri.

@Rpinski
Copy link
Member

Rpinski commented Dec 21, 2024

Hi James, it should be easy to return the Node object of added assembly. Then you could use the "decompileNode" command to open its code in a new editor etc.

I'll add that for the next release.

@jamesalbert
Copy link
Author

Awesome @Rpinski much appreciated! I'd love to see a getAllNodes command too if that's something you see worthwhile for the project. The use case would be to get il state post extension restart. Let me know, I'm also open to doing that

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

No branches or pull requests

2 participants