C
Coder.com8mo ago
Alex

Pre-installing VS code extensions in coder workspace

I would like to pre-install VS code extensions in a workspace template so that everyone on my team will automatically have them when they create a new workspace. It's possible to install extensions via the command line with the code command, but this command is not available in the startup script for the coder agent. I tried the following hacky solution:
CODE_SERVER_PATH=$(ls /root/.vscode-server/bin/*/bin/code-server)
$CODE_SERVER_PATH --install-extension charliermarsh.ruff
CODE_SERVER_PATH=$(ls /root/.vscode-server/bin/*/bin/code-server)
$CODE_SERVER_PATH --install-extension charliermarsh.ruff
This works some of the time, but sometimes the coder-server binary is not found at that location. Is there a better way to do what I'm after?
2 Replies
Codercord
Codercord8mo ago
<#1209958498763284581>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
bamhm182 (BytePen)
https://registry.coder.com/modules/code-server This module should be what you're looking for
code-server - Coder Registry
VS Code in the browser
Want results from more Discord servers?
Add your server