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

Please publish a VS Code for the Web version (that doesn't do anything) #1276

Open
lambdageek opened this issue Aug 20, 2023 · 0 comments
Open

Comments

@lambdageek
Copy link
Member

lambdageek commented Aug 20, 2023

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" (microsoft/vscode#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.

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

1 participant