https://github.com/lambdageek/sample-dotnet-wasi-vscode
A sample VS Code extension that uses .NET WASI WebAssembly
https://github.com/lambdageek/sample-dotnet-wasi-vscode
Last synced: about 1 month ago
JSON representation
A sample VS Code extension that uses .NET WASI WebAssembly
- Host: GitHub
- URL: https://github.com/lambdageek/sample-dotnet-wasi-vscode
- Owner: lambdageek
- License: mit
- Created: 2023-07-19T20:03:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T15:18:39.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T00:06:06.321Z (about 1 month ago)
- Language: TypeScript
- Size: 278 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# VS Code extension using .NET WASI
This is an example VS Code extension that uses the [VS Code `wasm-wasi` host](https://code.visualstudio.com/blogs/2023/06/05/vscode-wasm-wasi) to run a .NET WASI WebAssembly module.
## Prerequisites
* .NET 8 Preview 6 or later
* Install the (experimental!) dotnet wasi workload: `dotnet workload install wasi-experimental`
* Install the official WASI SDK from
* Set the `WASI_SDK_PATH` environment variable to point to the place where you put the WASI SDK## Building
```console
% cd vscode
% npm install
% npm run build
```## Running the Desktop Extension
1. Open this folder in VS Code
2. Press "F5" with the "Launch Extension" configuration
3. in the `[Extension Development Host]` window, press Ctrl-Shift-P (or Cmd-Shift-P) and run `wasm: run .NET WASI Program`A console should pop up with a message:

## Runnning the Web Extension
```console
% cd vscode
% npm run test-browser
```A browser window will open with a local instance of VS Code for the Web. press Ctrl-Shift-P and run `wasm: run .NET WASI Program`
A console should pop up with a message:
