File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,18 @@ module "settings" {
63
63
}
64
64
```
65
65
66
+ ### Install multiple extensions
67
+
68
+ Just run code-server in the background, don't fetch it from GitHub:
69
+
70
+ ``` hcl
71
+ module "settings" {
72
+ source = "https://registry.coder.com/modules/code-server"
73
+ agent_id = coder_agent.example.id
74
+ extensions = [ "dracula-theme.theme-dracula", "ms-azuretools.vscode-docker" ]
75
+ }
76
+ ```
77
+
66
78
### Offline Mode
67
79
68
80
Just run code-server in the background, don't fetch it from GitHub:
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ printf "🥳 code-server has been installed in ${INSTALL_PREFIX}\n\n"
25
25
CODE_SERVER=" ${INSTALL_PREFIX} /bin/code-server"
26
26
27
27
# Install each extension...
28
- for extension in " $$ {EXTENSIONS[@]}" ; do
28
+ IFS=' ,' read -r -a EXTENSIONLIST <<< " $${EXTENSIONS}"
29
+ for extension in " $$ {EXTENSIONLIST[@]}" ; do
29
30
if [ -z " $extension " ]; then
30
31
continue
31
32
fi
46
47
47
48
echo " 👷 Running code-server in the background..."
48
49
echo " Check logs at ${LOG_PATH} !"
49
- $CODE_SERVER --auth none --port ${PORT} > ${LOG_PATH} 2>&1 &
50
+ $CODE_SERVER --auth none --port ${PORT} > ${LOG_PATH} 2>&1 &
You can’t perform that action at this time.
0 commit comments