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

Support VSCode Web with Webassembly #3467

Open
Zxilly opened this issue Jul 25, 2024 · 2 comments
Open

Support VSCode Web with Webassembly #3467

Zxilly opened this issue Jul 25, 2024 · 2 comments

Comments

@Zxilly
Copy link

Zxilly commented Jul 25, 2024

Is your feature request related to a problem? Please describe.

Currently, the Go plugin is not available in a VSCode web environment like github.dev. It would be great if this environment could be supported by running lsp through wasm.

Describe the solution you'd like

Add declaration of support for web mode, add pre-compiled lsp wasm binary and release corresponding plugin version.

Describe alternatives you've considered

There are a few services that are implemented by adapting VSCode's remote connections, but obviously they all rely on a backend. With wasm it is possible to run without a server.

@gopherbot gopherbot added this to the Untriaged milestone Jul 25, 2024
@hyangah
Copy link
Contributor

hyangah commented Aug 5, 2024

@Zxilly I wish we could too! But that requires to rewrite the go command (go build, go list, go env, ...) to work in web environment because gopls and the extension heavily depend on it. The current gopls and the extension also rely on file operations (persistent file caching, etc) in various places, which means this requires rearchitect/rewrite of the extension/gopls.

We currently do not have bandwidth for such heavy lifting.

@Zxilly
Copy link
Author

Zxilly commented Aug 5, 2024

We can use wasi target with some polyfill. The main change should be that we should modify the way we create process calls.

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

No branches or pull requests

4 participants