You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS code runs in the web browser at github.dev. To try this, go to a github repository and press the period key ., or replace ".com" in the repo url with ".dev". It is possible to install extensions in the web version. For example, GitLens is fully supported. The Python extension can also be used in the browser, but with limited functionality. On installation, you'll see this message:
'Python' has limited functionality in Visual Studio Code for the Web.
Only Partial IntelliSense supported.
Contains extensions which are not supported.
The Zig extension is not compatible. If you try to install it, you'll see "The 'Zig Language' extension is not available in Visual Studio Code for the Web. Learn Why"
I understand it might be very complex to get the full range of features supported in the browser. For example, maybe it's a huge amount of work to get ZLS running in the browser.
For this ticket, I'm only suggesting an mvp to get it installable in the browser with at least one useful feature working. For example, syntax highlighting would be great. Introducing that feature alone is enough to make github.dev superior to github.com for reviewing pull requests.
The text was updated successfully, but these errors were encountered:
In theory is should be doable to make vscode-zig a web extension if you are only interested in syntax highlighting. The tricky part is getting Zig or ZLS in the browser. Without them, we would be missing diagnostics, formatting and any ZLS features.
The good news is that ZLS can be compiled to wasm for a long time now. There are wasm32-wasi binaries available since ZLS 0.11.0. VS Code has made a recent blog post about running an LSP using webassembly here. There has been an attempt to run the SuperHtml LSP using wasm according to the blog post but some issues have been encountered. So this currently blocking ZLS from running as a web extension.
The Zig compiler itself can't be compiled to wasm out of the box. It requires some small tweaking but otherwise works. This can be used to provide formatting and diagnostics.
You may be interested in checking out Zig Playground which showcases Zig and ZLS running inside the browser.
VS code runs in the web browser at github.dev. To try this, go to a github repository and press the period key
.
, or replace ".com" in the repo url with ".dev". It is possible to install extensions in the web version. For example, GitLens is fully supported. The Python extension can also be used in the browser, but with limited functionality. On installation, you'll see this message:The Zig extension is not compatible. If you try to install it, you'll see "The 'Zig Language' extension is not available in Visual Studio Code for the Web. Learn Why"
I understand it might be very complex to get the full range of features supported in the browser. For example, maybe it's a huge amount of work to get ZLS running in the browser.
For this ticket, I'm only suggesting an mvp to get it installable in the browser with at least one useful feature working. For example, syntax highlighting would be great. Introducing that feature alone is enough to make github.dev superior to github.com for reviewing pull requests.
The text was updated successfully, but these errors were encountered: