Closed
Description
I'm using the vscode-web
module in the template. When my team creates workspaces from the template, I want to allow them to select extensions and apply settings that suit their needs by using the coder_parameter
vscode_web_extensions
and vscode_settings
. Describe in main.tf as follow:
data "coder_parameter" "vscode_web_extensions" {
description = <<-EOF
A list of extensions to install to VS Code web.
EOF
display_name = "VS Code Web Extensions"
mutable = true
name = "vscode_web_extensions"
type = "list(string)"
}
data "coder_parameter" "vscode_settings" {
description = <<-EOF
A map of settings to apply to VS Code web.
EOF
display_name = "VS Code Web Settings"
mutable = true
name = "vscode_settings"
type = "map(string)"
}
module "vscode-web" {
source = "registry.coder.com/modules/vscode-web/coder"
version = "1.0.22"
agent_id = coder_agent.main.id
extensions = data.coder_parameter.vscode_web_extensions.value
accept_license = true
settings = data.coder_parameter.vscode_settings.value
folder = "/workspaces"
subdomain = false
}
However, currently, coder_parameter
doesn't support the map type, so I don't have a way to implement this for vscode_settings
.
I think coder_parameter should accept type map also.