dev-environments icon indicating copy to clipboard operation
dev-environments copied to clipboard

Can you specify VSCode extensions on the Dockerfile?

Open itay-sho opened this issue 3 years ago • 3 comments

I've seen that there is a difference in VSCode between the plugins on my host machine and the ones that are installed on the container. I was wondering if there is a way to specify the extensions from the Dockerfile.

Thank you!

itay-sho avatar Jan 24 '22 20:01 itay-sho

Hello @itay-sho

It's something we have in mind and we want to achieve with Compose, but ATM it's not possible to define your plugins with Dev Environments

glours avatar Jan 24 '22 20:01 glours

Thank you. I though about adding a development stage on my dockerfile and run "code install extension" command to install all the extensions I need. Would that work as a workaround for now?

When does vscode is actually being added to the container?

itay-sho avatar Jan 24 '22 21:01 itay-sho

I don't think because the vscode server bits will be installed by vscode when opening the container. Or you will have to install vscode server inside the container by yourself to be able to do that

glours avatar Jan 24 '22 21:01 glours