Automatically install Visual Studio Code Server in a workspace and create an app to access it via the dashboard.
1module "vscode-web" { 2 source = "registry.coder.com/modules/vscode-web/coder" 3 version = "1.0.22" 4 agent_id = coder_agent.example.id 5 accept_license = true 6}
1module "vscode-web" { 2 source = "registry.coder.com/modules/vscode-web/coder" 3 version = "1.0.22" 4 agent_id = coder_agent.example.id 5 install_prefix = "/home/coder/.vscode-web" 6 folder = "/home/coder" 7 accept_license = true 8}
1module "vscode-web" { 2 source = "registry.coder.com/modules/vscode-web/coder" 3 version = "1.0.22" 4 agent_id = coder_agent.example.id 5 extensions = ["github.copilot", "ms-python.python", "ms-toolsai.jupyter"] 6 accept_license = true 7}
Configure VS Code's settings.json file:
1module "vscode-web" { 2 source = "registry.coder.com/modules/vscode-web/coder" 3 version = "1.0.22" 4 agent_id = coder_agent.example.id 5 extensions = ["dracula-theme.theme-dracula"] 6 settings = { 7 "workbench.colorTheme" = "Dracula" 8 } 9 accept_license = true 10}