Skip to content

Commit b0187c6

Browse files
authored
chore(jetbrans-gateway): update JetBrains IDEs (coder#96)
1 parent 4dc9eae commit b0187c6

File tree

3 files changed

+15
-26
lines changed

3 files changed

+15
-26
lines changed

jetbrains-gateway/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module "jetbrains_gateway" {
1717
agent_id = coder_agent.example.id
1818
agent_name = "example"
1919
folder = "/home/coder/example"
20-
jetbrains_ides = ["GO", "WS", "IU", "IC", "PY", "PC", "PS", "CL", "RM", "DB", "RD"]
20+
jetbrains_ides = ["GO", "WS", "IU", "PY", "PS", "CL", "RM", "DB", "RD"]
21+
default = "PY"
2122
}
2223
```
2324

@@ -45,9 +46,7 @@ This module and JetBrains Gateway support the following JetBrains IDEs:
4546
- GoLand (`GO`)
4647
- WebStorm (`WS`)
4748
- IntelliJ IDEA Ultimate (`IU`)
48-
- IntelliJ IDEA Community (`IC`)
4949
- PyCharm Professional (`PY`)
50-
- PyCharm Community (`PC`)
5150
- PhpStorm (`PS`)
5251
- CLion (`CL`)
5352
- RubyMine (`RM`)

jetbrains-gateway/main.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ describe("jetbrains-gateway", async () => {
1313
agent_id: "foo",
1414
agent_name: "bar",
1515
folder: "/baz/",
16-
jetbrains_ides: '["IU", "IC", "PY"]',
16+
jetbrains_ides: '["IU", "GO", "PY"]',
1717
});
1818

1919
it("default to first ide", async () => {
2020
const state = await runTerraformApply(import.meta.dir, {
2121
agent_id: "foo",
2222
agent_name: "bar",
2323
folder: "/baz/",
24-
jetbrains_ides: '["IU", "IC", "PY"]',
24+
jetbrains_ides: '["IU", "GO", "PY"]',
2525
});
2626
expect(state.outputs.jetbrains_ides.value).toBe(
27-
'["IU","232.9921.47","https://download.jetbrains.com/idea/ideaIU-2023.2.2.tar.gz"]',
27+
'["IU","232.10203.10","https://download.jetbrains.com/idea/ideaIU-2023.2.4.tar.gz"]',
2828
);
2929
});
3030
});

jetbrains-gateway/main.tf

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ variable "jetbrains_ides" {
3636
validation {
3737
condition = (
3838
alltrue([
39-
for code in var.jetbrains_ides : contains(["IU", "IC", "PS", "WS", "PY", "PC", "CL", "GO", "DB", "RD", "RM"], code)
39+
for code in var.jetbrains_ides : contains(["IU", "PS", "WS", "PY", "CL", "GO", "DB", "RD", "RM"], code)
4040
])
4141
)
42-
error_message = "The jetbrains_ides must be a list of valid product codes. Valid product codes are: IU, IC, PS, WS, PY, PC, CL, GO, DB, RD, RM."
42+
error_message = "The jetbrains_ides must be a list of valid product codes. Valid product codes are: IU, PS, WS, PY, CL, GO, DB, RD, RM."
4343
}
4444
# check if the list is empty
4545
validation {
@@ -58,37 +58,27 @@ locals {
5858
"GO" = {
5959
icon = "/icon/goland.svg",
6060
name = "GoLand",
61-
value = jsonencode(["GO", "232.9921.53", "https://download.jetbrains.com/go/goland-2023.2.2.tar.gz"])
61+
value = jsonencode(["GO", "232.10203.20", "https://download.jetbrains.com/go/goland-2023.2.4.tar.gz"])
6262
},
6363
"WS" = {
6464
icon = "/icon/webstorm.svg",
6565
name = "WebStorm",
66-
value = jsonencode(["WS", "232.9921.42", "https://download.jetbrains.com/webstorm/WebStorm-2023.2.2.tar.gz"])
66+
value = jsonencode(["WS", "232.10203.14", "https://download.jetbrains.com/webstorm/WebStorm-2023.2.4.tar.gz"])
6767
},
6868
"IU" = {
6969
icon = "/icon/intellij.svg",
7070
name = "IntelliJ IDEA Ultimate",
71-
value = jsonencode(["IU", "232.9921.47", "https://download.jetbrains.com/idea/ideaIU-2023.2.2.tar.gz"])
72-
},
73-
"IC" = {
74-
icon = "/icon/intellij.svg",
75-
name = "IntelliJ IDEA Community",
76-
value = jsonencode(["IC", "232.9921.47", "https://download.jetbrains.com/idea/ideaIC-2023.2.2.tar.gz"])
71+
value = jsonencode(["IU", "232.10203.10", "https://download.jetbrains.com/idea/ideaIU-2023.2.4.tar.gz"])
7772
},
7873
"PY" = {
7974
icon = "/icon/pycharm.svg",
8075
name = "PyCharm Professional",
81-
value = jsonencode(["PY", "232.9559.58", "https://download.jetbrains.com/python/pycharm-professional-2023.2.1.tar.gz"])
82-
},
83-
"PC" = {
84-
icon = "/icon/pycharm.svg",
85-
name = "PyCharm Community",
86-
value = jsonencode(["PC", "232.9559.58", "https://download.jetbrains.com/python/pycharm-community-2023.2.1.tar.gz"])
76+
value = jsonencode(["PY", "232.10203.26", "https://download.jetbrains.com/python/pycharm-professional-2023.2.4.tar.gz"])
8777
},
8878
"RD" = {
8979
icon = "/icon/rider.svg",
9080
name = "Rider",
91-
value = jsonencode(["RD", "232.9559.61", "https://download.jetbrains.com/rider/JetBrains.Rider-2023.2.1.tar.gz"])
81+
value = jsonencode(["RD", "232.10203.29", "https://download.jetbrains.com/rider/JetBrains.Rider-2023.2.3.tar.gz"])
9282
}
9383
"CL" = {
9484
icon = "/icon/clion.svg",
@@ -98,17 +88,17 @@ locals {
9888
"DB" = {
9989
icon = "/icon/datagrip.svg",
10090
name = "DataGrip",
101-
value = jsonencode(["DB", "232.9559.28", "https://download.jetbrains.com/datagrip/datagrip-2023.2.1.tar.gz"])
91+
value = jsonencode(["DB", "232.10203.8", "https://download.jetbrains.com/datagrip/datagrip-2023.2.3.tar.gz"])
10292
},
10393
"PS" = {
10494
icon = "/icon/phpstorm.svg",
10595
name = "PhpStorm",
106-
value = jsonencode(["PS", "232.9559.64", "https://download.jetbrains.com/webide/PhpStorm-2023.2.1.tar.gz"])
96+
value = jsonencode(["PS", "232.10072.32", "https://download.jetbrains.com/webide/PhpStorm-2023.2.3.tar.gz"])
10797
},
10898
"RM" = {
10999
icon = "/icon/rubymine.svg",
110100
name = "RubyMine",
111-
value = jsonencode(["RM", "232.9921.48", "https://download.jetbrains.com/ruby/RubyMine-2023.2.2.tar.gz"])
101+
value = jsonencode(["RM", "232.10203.15", "https://download.jetbrains.com/ruby/RubyMine-2023.2.4.tar.gz"])
112102
}
113103
}
114104
}

0 commit comments

Comments
 (0)