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 clangd in the browser #723

Open
thegecko opened this issue Nov 13, 2024 · 3 comments
Open

Support clangd in the browser #723

thegecko opened this issue Nov 13, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@thegecko
Copy link
Contributor

Based on the great work over at https://github.com/guyutongxue/clangd-in-browser I've been working on a VS Code extension which runs clangd entirely in the browser. This is useful for server-less environments such as https://vscode.dev.

Is there any interest in bringing this support into vscode-clangd?

The only drawback is the clangd wasm file is currently weighing in at 90mb and it will need to be shipped with the extension to allow it to be served from the VS Code marketplace.

cc @HighCommander4

@thegecko thegecko added the enhancement New feature or request label Nov 13, 2024
@HighCommander4
Copy link
Contributor

That's pretty neat!

My first thought is that this is a different enough use case that it makes sense as a separate plugin. (If there's significant code to be shared, we could consider something like a different plugin living in the same repository, though I think the pace at which vscode-clangd changes is slow enough that a downstream model is not likely to be much overhead.)

Curious to hear others' thoughts as well. cc @hokein, @sam-mccall

@JVApen
Copy link
Contributor

JVApen commented Nov 14, 2024

@thegecko Do you have any idea of the performance impact on a regular environment using wasm compared to standard clangd executable?

Are there features that no longer work with wasm and/or serverless? I'm mainly thinking of loading of an index (both using remote server and file indexes)

@thegecko
Copy link
Contributor Author

@JVApen I'm sure there are going to be limitations regarding certain features, especially calling out to the outside world.
Performance impact should be negligible.

The repo I linked above has a demo at https://clangd.guyutongxue.site/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants