Add support for specifying a list of default IDEs to be displayed on
the Workspace page. This allows users to see multiple IDE options
simultaneously. Ensure no duplicates are included and validate
provided IDE codes against allowed set. Adjust logic to dynamically
render IDE buttons based on specified defaults, improving flexibility
in user interface setup.
error_message = "The defaults must be a list of valid product codes. Valid product codes are ${join(",",["IU","PS","WS","PY","CL","GO","RM","RD"])}."
}
}
variable"order"{
variable"order"{
type = number
type = number
description = "The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order)."
description = "The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order)."
version = var.latest?local.json_data[local.key][0].version:var.jetbrains_ide_versions[data.coder_parameter.jetbrains_ide.value].version
version = var.latest?local.json_data[local.key][0].version:var.jetbrains_ide_versions[try(data.coder_parameter.jetbrains_ide[0].value,var.defaults[0])].version
}
}
data"coder_parameter""jetbrains_ide"{
data"coder_parameter""jetbrains_ide"{
count = length(var.defaults)>0?0:1
type = "string"
type = "string"
name = "jetbrains_ide"
name = "jetbrains_ide"
display_name = "JetBrains IDE"
display_name = "JetBrains IDE"
@ -272,10 +293,11 @@ data "coder_workspace" "me" {}