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

Support for generating namespace interop classes #31

Open
david-driscoll opened this issue Dec 6, 2020 · 1 comment
Open

Support for generating namespace interop classes #31

david-driscoll opened this issue Dec 6, 2020 · 1 comment

Comments

@david-driscoll
Copy link

Hi, this project looks awesome, and I'm super excited someone decided to do it!

Do you have any idea of what might be involved to create interop with namespaces much like classes? Basically take a namespace and produce a static class from the embedded functions?

Basically I'm looking at the monaco.d.ts declarations and wanting to generate off of those.

My Problem:
I work on the C# LSP and Blazor is a very compelling use case, to be able to run a server in the users browser, In fact I helped push get the Azure bicep team over their issues, and everything works with the server. [demo]

However the for monaco-languageclient regularly lags behind the vscode language client (which does not support monaco). So I want to investigate what it might take to get interop working with monaco natively through blazor interop. And I really really really don't want to handwrite the interop.

Thanks for the wonderful looking project!

@canhorn
Copy link
Owner

canhorn commented Dec 8, 2020

Hi @david-driscoll!
Thanks for the interest in this project. I took a look and I think it should be pretty easy to get this working with namespaced classes.
I was able to get a quick poc running, its pretty much just a class with static methods.
I have to work out the nested classes, after that I should have a release up.
I will also look at adding an example to the sample project.

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