O-clock-Dev / teleporter-compose

A containerized teleporter, to teleport student and teacher.
GNU Affero General Public License v3.0
3 stars 1 forks source link

[vscode web] test live share #98

Closed profy12 closed 4 months ago

profy12 commented 4 months ago

We should test if vscode liveshare can be activated on the web version.

clementgineste commented 4 months ago

Codespaces (vscode in browser from github) image Our vscode-server image

Don't know why it's available on the first one and not the second. Though it could be devcontainer but extension wasn't installed on first one. So.. vscode-server image ?

Anyway if it's available in CodeSpace i guess we can do something here..

clementgineste commented 4 months ago

Codespace image code-server image

clementgineste commented 4 months ago

Could be something related to bugs/missconfiguration on our side, eg.:

config/vscode/.local/share/code-server/logs/20240530T173306/remoteCLI.log:1:2024-05-30 17:33:07.052 [error] Error: Failed Installing Extensions: ms-vsliveshare.vsliveshare
.env:30:VSCODE_EXTENSIONS_LIST=aaron-bond.better-comments|bierner.markdown-preview-github-styles|bmewburn.vscode-intelephense-client|dbaeumer.vscode-eslint|DavidAnson.vscode-markdownlint|dracula-theme.theme-dracula|EditorConfig.EditorConfig|file-icons.file-icons|MS-vsliveshare.vsliveshare|MS-CEINTL.vscode-language-pack-fr|ph-hawkins.arc-plus|stylelint.vscode-stylelint|wayou.vscode-todo-highlight|whatwedo.twig|yzhang.markdown-all-in-one

But no extensions installed.

clementgineste commented 4 months ago

Smells bad https://coder.com/docs/code-server/FAQ#why-cant-code-server-use-microsofts-extension-marketplace

Web alternative: vscode.dev github.dev

=> supports liveshare but not devcontainer and not local. Couldnt find officiel MS VSCode web :/

Not sure liveshare is open source extension as well. Looks like we're ducked here.

Alternative is to run a real vscode and stream it through webrtc ... :D

image

profy12 commented 4 months ago

Have you tried with /var/run/docker.sock mounted (dind mode), then use devcontainers with the teleporter-terminal and then test liveshare ?

clementgineste commented 4 months ago

DevContainers & LiveShare extension are closed source (tell me if i'm wrong) and Microsoft forbid vscode fork to access marketplace)

So alternative outside TP is to use desktop classsic vscode app and inside TP use neko to stream Vscode (example here, old one)

profy12 commented 4 months ago

Yes we will remove vscode web from the project, when integration with devcontainers is ready.