conwnet / github1s

One second to read GitHub code with VS Code.
https://github1s.com
MIT License
22.82k stars 865 forks source link

Installing an extension from vsix raises a "No Servers" exception #244

Open piersdeseilligny opened 3 years ago

piersdeseilligny commented 3 years ago

I've been trying to make my extension (betterfountain) compatible with github1s (installing it currently causes the error "Cannot install 'Better Fountain' because this extension has defined that it cannot run on the web server").

In order to do so, I want to install any test versions through a vsix file, rather than publishing it to the marketplace simply for a test.

Currently, however, it appears impossible, given that selecting "Install from vsix" and then picking a vsix file in the currently open repo, raises an extremely vague "No Servers" error, with no more details than that in any log:

image

I've also tested with a .vsix of the vim extension, which definitely works without any issues, and it's the same error. Presumably this is a bug? Ideally it would be nice to be able to upload vsix files, rather than them needing to be on the repo, but I realize that's probably quite a bit more complicated.

conwnet commented 3 years ago

Thanks you for your information.❤️

GitHub1s is running on browser completely, which means it can't use the node API now. For extensions who want to support for GitHub1s, there should be a browser entry field in package.json to specify how the extension works on browser.

We will try to found a better way make more extensions compatible with GitHub1s in the future.

HKalbasi commented 3 years ago

Is there a documentation on this topic? Github1s itself suggests https://code.visualstudio.com/docs/remote/codespaces but it is not very helpful.