- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.3k
Closed
Labels
docsDocumentation relatedDocumentation related
Description
First, thanks for this great project, this is much easier to use than Che and Theia
Two problems I've come across during my day of use are
- Extensions are cached and installed from Coder's server, most of which for now are outdated
- Cannot Sync settings with VSCode
My approach
So I made a Docker template to automatically configure code-server from Settings Sync Gist.
Using Docker's multi-stage build, I can directly use the actual Visual Studio Code binary to install extensions from Microsoft's server, and then later copy them to code-server. And VSCode settings are also directly fed into code-server.
extensions.json parsing and installing
Is done the UNIX way.
jq -r ".[].metadata.publisherId" extensions.json > extensions.listwhile IFS='' read -r line || [[ -n "$line" ]]; do
    echo "Installing $line using VSCode";
    code --user-data-dir /root/.config/Code --install-extension $line
done < "$1" # extensions.listFor those of you who already use Settings Sync, my configuration might be handy as you only need to change the gist id to make the entire thing work.
Relevant Issues: #30 #145
My template: https://github.com/LER0ever/EvDev
nhooyr, reaper8055 and TheMasterRavindra, bemayr, zerohalo, LER0ever, seuliang and 7 more
Metadata
Metadata
Assignees
Labels
docsDocumentation relatedDocumentation related
