You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/vscode-web
Muhammad Atif Ali 7654140330
docs: promote count usage to prevent module download on stop (#371)
4 months ago
..
README.md docs: promote count usage to prevent module download on stop (#371) 4 months ago
main.test.ts feat(vscode-web): add offline, use_cached, extensions_dir and auto_install_extensions (#235) 1 year ago
main.tf fix(vscode-web): set `settings` variable type to `any` (#369) 4 months ago
run.sh feat(vscode-web): support hosting on a subpath with `subdomain=false` (#288) 6 months ago

README.md

display_name description icon maintainer_github verified tags
VS Code Web VS Code Web - Visual Studio Code in the browser ../.icons/code.svg coder true
helper
ide
vscode
web

VS Code Web

Automatically install Visual Studio Code Server in a workspace and create an app to access it via the dashboard.

module "vscode-web" {
  count          = data.coder_workspace.me.start_count
  source         = "registry.coder.com/modules/vscode-web/coder"
  version        = "1.0.26"
  agent_id       = coder_agent.example.id
  accept_license = true
}

VS Code Web with GitHub Copilot and live-share

Examples

Install VS Code Web to a custom folder

module "vscode-web" {
  count          = data.coder_workspace.me.start_count
  source         = "registry.coder.com/modules/vscode-web/coder"
  version        = "1.0.26"
  agent_id       = coder_agent.example.id
  install_prefix = "/home/coder/.vscode-web"
  folder         = "/home/coder"
  accept_license = true
}

Install Extensions

module "vscode-web" {
  count          = data.coder_workspace.me.start_count
  source         = "registry.coder.com/modules/vscode-web/coder"
  version        = "1.0.26"
  agent_id       = coder_agent.example.id
  extensions     = ["github.copilot", "ms-python.python", "ms-toolsai.jupyter"]
  accept_license = true
}

Pre-configure Settings

Configure VS Code's settings.json file:

module "vscode-web" {
  count      = data.coder_workspace.me.start_count
  source     = "registry.coder.com/modules/vscode-web/coder"
  version    = "1.0.26"
  agent_id   = coder_agent.example.id
  extensions = ["dracula-theme.theme-dracula"]
  settings = {
    "workbench.colorTheme" = "Dracula"
  }
  accept_license = true
}