coder / code-server

VS Code in the browser
https://coder.com
MIT License
66.47k stars 5.45k forks source link

About sharing the same extension dir for different sytem platform #6762

Open dxkrs opened 2 months ago

dxkrs commented 2 months ago

Why do you want this feature?

I set a code-server dir which can be mounted in different docker containers and can run code-server in every container through my running script. The Data dir and Extension dir also be mounted in different containers so that they can use the same user setting and same extensions. However, I have found some problem. Some extensions in different system have different install pack. Most of extensions targetPlatform is "universal", but some of them need the "alpine" when runing in the container which base on the alpine image.

What is your suggestion?

I don't know what the best solution to this situation. For now I just can mount different extensions dir in different containers, even if most of extensions is same.

code-asher commented 2 months ago

Extension loading is all handled in VS Code so I am not sure there is anything we can do here from code-server.

You could open an issue upstream (https://github.com/microsoft/vscode), but I suspect they might tell you to use settings sync instead; unfortunately settings sync does not work with code-server last I heard.