Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit a5c8865

Browse files
committed
Add descriptive fields and update JetBrains URLs
- Add descriptions to URL variables and default IDE field - Update icon paths to use config-defined values - Change "project_path" parameter to "folder" in URL
1 parent d4f0b2f commit a5c8865

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jetbrains/main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ variable "folder" {
2828
}
2929

3030
variable "default" {
31-
default = ""
31+
default = "Default IDE selection"
3232
type = string
3333
description = "Default IDE"
3434
}
@@ -87,7 +87,7 @@ variable "options" {
8787

8888
variable "releases_base_link" {
8989
type = string
90-
description = ""
90+
description = "URL of the JetBrains releases base link."
9191
default = "https://data.services.jetbrains.com"
9292
validation {
9393
condition = can(regex("^https?://.+$", var.releases_base_link))
@@ -97,7 +97,7 @@ variable "releases_base_link" {
9797

9898
variable "download_base_link" {
9999
type = string
100-
description = ""
100+
description = "URL of the JetBrains download base link."
101101
default = "https://download.jetbrains.com"
102102
validation {
103103
condition = can(regex("^https?://.+$", var.download_base_link))
@@ -127,7 +127,7 @@ locals {
127127
# Dynamically generate IDE configurations based on options
128128
jetbrains_ides = {
129129
for code in var.options : code => {
130-
icon = "/icon/${lower(local.ide_config[code].name)}.svg"
130+
icon = local.ide_config[code].icon
131131
name = local.ide_config[code].name
132132
identifier = code
133133
build = local.ide_config[code].build
@@ -146,7 +146,7 @@ data "coder_parameter" "jetbrains_ide" {
146146
type = "string"
147147
name = "jetbrains_ide"
148148
display_name = "JetBrains IDE"
149-
icon = "/icon/gateway.svg"
149+
icon = "/icon/toolbox.svg"
150150
mutable = true
151151
default = var.default == "" ? var.options[0] : var.default
152152
order = var.coder_parameter_order
@@ -176,7 +176,7 @@ resource "coder_app" "jetbrains" {
176176
data.coder_workspace.me.name,
177177
"&owner=",
178178
data.coder_workspace_owner.me.name,
179-
"&project_path=",
179+
"&folder=",
180180
var.folder,
181181
"&url=",
182182
data.coder_workspace.me.access_url,

0 commit comments

Comments
 (0)