Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Would be great, if I could use devcontainers in my code-server setup.
It's no problem to install the dependencies like docker.

I also managed to install the dev containers extension from MS. But unfortunately code-server is recognized as a remote instance and so the extensions commands are not registered properly.

You must be logged in to vote

Replies: 1 comment · 5 replies

Comment options

I think this would have to be fixed in the extension itself.

Although, do you know if the extension works in GitHub Codespaces? If it does, that could mean there is something we can change in code-server to make it work, since both are based on the web version of VS Code.

You must be logged in to vote
5 replies
@tiehfood
Comment options

Do you have an idea, what needs to be fixed in the extension, so that I could test it?
Unfortunately I haven't worked with GitHub Codespaces yet.

@code-asher
Comment options

No idea, unfortunately the extension is closed source I believe.

@tiehfood
Comment options

Can I trick code-server into not being displayed as a remote session to plugins or in general?

@code-asher
Comment options

I suspect it would be a significant architectural change. The problem, if I understand correctly, is that the web client itself uses remote APIs to connect to the server, and the plugin itself also uses remote APIs, but the client is designed to only hold one remote connection at a time. So that would have to be completely refactored in some way to allow chaining remote connections together (client > server > dev container).

Or, the extension would have to be converted into a web extension so it can run fully in the browser without needing a separate remote server connection, but I am not sure how much work that would be (there is a feature request for this here: microsoft/vscode-remote-release#9059).

I tried the plugin on Codespaces and I get this error:

The 'Dev Containers' extension is not available in Visual Studio Code for the Web. Click 'More Information' to learn more.

You could try asking the VS Code folks (https://github.com/microsoft/vscode or https://github.com/Microsoft/vscode-remote-release/) if it is possible to get the extension working on Codespaces or vscode.dev. Any advice they give should work on code-server as well. I think it may not be possible, but I would not consider myself an expert on VS Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
💡
Ideas
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.