tamasfe / taplo

A TOML toolkit written in Rust
https://taplo.tamasfe.dev
MIT License
1.28k stars 109 forks source link

Support for VSCode Web Extension #185

Open dufferzafar opened 2 years ago

dufferzafar commented 2 years ago

VSCode now has Web Extensions which work in the web browser on sites like http://github.dev, http://vscode.dev or GitHub CodeSpaces.

Currently there are no .toml extensions that work in the browser.

image

I'm not sure how much of an effort it would be to enable the web extension support here, but just linking the docs here: https://code.visualstudio.com/api/extension-guides/web-extensions#update-existing-extensions-to-web-extensions

tamasfe commented 2 years ago

Thanks, I'll need to look into some long-time pending issues first, but this is definitely possible.

If anyone wants to look at this in the meantime, this is required for the LSP itself to work, in the current extension it is run in a NodeJS environment, but there is no reason why it wouldn't run in a web worker or anything similar.

tamasfe commented 2 years ago

Sorry, this was wrongfully closed, Taplo LSP works in a browser just fine, but the extension will still need tweaks.