This repository was archived by the owner on May 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Automatically install [Visual Studio Code Server](https://code.visualstudio.com/
1414``` tf
1515module "vscode-web" {
1616 source = "registry.coder.com/modules/vscode-web/coder"
17- version = "1.0.14 "
17+ version = "1.0.20 "
1818 agent_id = coder_agent.example.id
1919 accept_license = true
2020}
@@ -29,7 +29,7 @@ module "vscode-web" {
2929``` tf
3030module "vscode-web" {
3131 source = "registry.coder.com/modules/vscode-web/coder"
32- version = "1.0.14 "
32+ version = "1.0.20 "
3333 agent_id = coder_agent.example.id
3434 install_prefix = "/home/coder/.vscode-web"
3535 folder = "/home/coder"
@@ -42,7 +42,7 @@ module "vscode-web" {
4242``` tf
4343module "vscode-web" {
4444 source = "registry.coder.com/modules/vscode-web/coder"
45- version = "1.0.14 "
45+ version = "1.0.20 "
4646 agent_id = coder_agent.example.id
4747 extensions = ["github.copilot", "ms-python.python", "ms-toolsai.jupyter"]
4848 accept_license = true
@@ -56,7 +56,7 @@ Configure VS Code's [settings.json](https://code.visualstudio.com/docs/getstarte
5656``` tf
5757module "vscode-web" {
5858 source = "registry.coder.com/modules/vscode-web/coder"
59- version = "1.0.14 "
59+ version = "1.0.20 "
6060 agent_id = coder_agent.example.id
6161 extensions = ["dracula-theme.theme-dracula"]
6262 settings = {
Original file line number Diff line number Diff line change @@ -72,27 +72,25 @@ for extension in "$${EXTENSIONLIST[@]}"; do
7272 output=$( $VSCODE_WEB " $EXTENSION_ARG " --install-extension " $extension " --force)
7373 if [ $? -ne 0 ]; then
7474 echo " Failed to install extension: $extension : $output "
75- exit 1
7675 fi
7776done
7877
7978if [ " ${AUTO_INSTALL_EXTENSIONS} " = true ]; then
8079 if ! command -v jq > /dev/null; then
8180 echo " jq is required to install extensions from a workspace file."
82- exit 0
83- fi
84-
85- WORKSPACE_DIR=" $HOME "
86- if [ -n " ${FOLDER} " ]; then
87- WORKSPACE_DIR=" ${FOLDER} "
88- fi
81+ else
82+ WORKSPACE_DIR=" $HOME "
83+ if [ -n " ${FOLDER} " ]; then
84+ WORKSPACE_DIR=" ${FOLDER} "
85+ fi
8986
90- if [ -f " $WORKSPACE_DIR /.vscode/extensions.json" ]; then
91- printf " 🧩 Installing extensions from %s/.vscode/extensions.json...\n" " $WORKSPACE_DIR "
92- extensions=$( jq -r ' .recommendations[]' " $WORKSPACE_DIR " /.vscode/extensions.json)
93- for extension in $extensions ; do
94- $VSCODE_WEB " $EXTENSION_ARG " --install-extension " $extension " --force
95- done
87+ if [ -f " $WORKSPACE_DIR /.vscode/extensions.json" ]; then
88+ printf " 🧩 Installing extensions from %s/.vscode/extensions.json...\n" " $WORKSPACE_DIR "
89+ extensions=$( jq -r ' .recommendations[]' " $WORKSPACE_DIR " /.vscode/extensions.json)
90+ for extension in $extensions ; do
91+ $VSCODE_WEB " $EXTENSION_ARG " --install-extension " $extension " --force
92+ done
93+ fi
9694 fi
9795fi
9896
You can’t perform that action at this time.
0 commit comments