dotnet / dotnet/vscode-dotnet-runtime
Please publish a VS Code for the Web version (that doesn't do anything)
- Dominant language
- TypeScript
- Stars
- 209
- Forks
- 455
- PR merge metrics
- No merged PRs in 30d
Description
### Is your feature request related to a problem? Please describe.
As an extension author trying to create an extension that works on the desktop version of VS Code and on VS Code for the Web, I would like to have a single `package.json` file that accurately lists my `extensionDependencies`:
```
"extensionDependencies": [
"ms-vscode.wasm-wasi-core",
"ms-dotnettools.vscode-dotnet-runtime"
],
```
It doesn't actually matter that `ms-dotnettools.vscode-dotnet-runtime` doesn't work on the web, my extension can detect that it is running in the browser and use the WASI version of its backend. But because VS Code does not "Provide the ability to specify dependencies on a per-platform basis" (https://github.com/microsoft/vscode/issues/136231), when I try to install the Web version of my extension, it complains that a dependency cannot be satisified.
As a result, I'm forced to create per-platform `package.json` files which is kind of tedious and complicates my build process (see https://github.com/lambdageek/MSBuildStructuredLog/blob/wasi-single-thread/vscode/script/stage-packages.js)
### Describe the solution you'd like
See above: please provide a version of the extension package that "works" on the web. For my use-case it doesn't even need to implement its normal API - I will never call into it on the Web. But perhaps it's friendlier if the API is implemented but it just throws an `Error` that says that it is not supported on the web.
### Additional context
Actually .NET can run in VS Code on the Web using the .NET 8 `wasi-experimental` workload. However there are a ton of caveats, so maybe in the future this extension can do something better on the web, but for now, just simplifying the build process is enough.
Contributor guide
Assessment
This issue has not been assessed yet.