microsoft/vscode-wasm

Document how to use VS Code's component model tooling to use WASM services inside a VS Code extensions

dbaeumer opened this issue · 7 comments

With the component model tooling we now have an easy way to integrate WASM services into VS Code extensions. We should document this via samples and a blog post.

Hey @dbaeumer! We're interested in running some of our Kotlin code as WASM binaries in VSC.

Is this possible ATM? K/WASM requires GC.

Yes, stay tuned. There will be a blog post soon on how to do that. If the Kotlin code compiles to something that has only a main function (e.g. is more like a OS program) we have already support for it. See https://code.visualstudio.com/blogs/2023/06/05/vscode-wasm-wasi

Nice, thanks! We'd like to expose functions to the JS side. Or maybe interoperate with VS Code APIs directly.
Not sure if those options will be covered, but I'll check the blog post once it's out.

Both cases are covered.

Damn, VS Code on 🔥

Thanks @dbaeumer. Had a read already and everything makes sense.

Had my hopes too high for the "Full extension in Rust" part, but I guess waiting for the WASI spec is better (AFAIU 0.3 targets early/mid 2025).