Skip to content

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

Closed

Description

@dbaeumer

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.

Activity

  1. lppedd commented on Apr 27, 2024

    @lppedd

    Hey Dirk Bäumer (@dbaeumer)! We're interested in running some of our Kotlin code as WASM binaries in VSC.

    Is this possible ATM? K/WASM requires GC.

  2. dbaeumer commented on Apr 29, 2024

    @dbaeumer
    MemberAuthor

    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

  3. lppedd commented on Apr 29, 2024

    @lppedd

    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.

  4. dbaeumer commented on Apr 29, 2024

    @dbaeumer
    MemberAuthor

    Both cases are covered.

  5. lppedd commented on Apr 29, 2024

    @lppedd

    Damn, VS Code on 🔥

  6. lppedd commented on May 13, 2024

    @lppedd

    Thanks Dirk Bäumer (@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions