Skip to content

Commit 4e7f1e0

Browse files
authored
Revert "chore(jetbrans-gateway): update JetBrains IDEs (coder#96)" (coder#98)
This reverts commit b0187c6.
1 parent b0187c6 commit 4e7f1e0

File tree

3 files changed

+26
-15
lines changed

3 files changed

+26
-15
lines changed

jetbrains-gateway/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ 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", "PY", "PS", "CL", "RM", "DB", "RD"]
21-
default = "PY"
20+
jetbrains_ides = ["GO", "WS", "IU", "IC", "PY", "PC", "PS", "CL", "RM", "DB", "RD"]
2221
}
2322
```
2423

@@ -46,7 +45,9 @@ This module and JetBrains Gateway support the following JetBrains IDEs:
4645
- GoLand (`GO`)
4746
- WebStorm (`WS`)
4847
- IntelliJ IDEA Ultimate (`IU`)
48+
- IntelliJ IDEA Community (`IC`)
4949
- PyCharm Professional (`PY`)
50+
- PyCharm Community (`PC`)
5051
- PhpStorm (`PS`)
5152
- CLion (`CL`)
5253
- 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", "GO", "PY"]',
16+
jetbrains_ides: '["IU", "IC", "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", "GO", "PY"]',
24+
jetbrains_ides: '["IU", "IC", "PY"]',
2525
});
2626
expect(state.outputs.jetbrains_ides.value).toBe(
27-
'["IU","232.10203.10","https://download.jetbrains.com/idea/ideaIU-2023.2.4.tar.gz"]',
27+
'["IU","232.9921.47","https://download.jetbrains.com/idea/ideaIU-2023.2.2.tar.gz"]',
2828
);
2929
});
3030
});

jetbrains-gateway/main.tf

Lines changed: 20 additions & 10 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", "PS", "WS", "PY", "CL", "GO", "DB", "RD", "RM"], code)
39+
for code in var.jetbrains_ides : contains(["IU", "IC", "PS", "WS", "PY", "PC", "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, PS, WS, PY, CL, GO, DB, RD, RM."
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."
4343
}
4444
# check if the list is empty
4545
validation {
@@ -58,27 +58,37 @@ locals {
5858
"GO" = {
5959
icon = "/icon/goland.svg",
6060
name = "GoLand",
61-
value = jsonencode(["GO", "232.10203.20", "https://download.jetbrains.com/go/goland-2023.2.4.tar.gz"])
61+
value = jsonencode(["GO", "232.9921.53", "https://download.jetbrains.com/go/goland-2023.2.2.tar.gz"])
6262
},
6363
"WS" = {
6464
icon = "/icon/webstorm.svg",
6565
name = "WebStorm",
66-
value = jsonencode(["WS", "232.10203.14", "https://download.jetbrains.com/webstorm/WebStorm-2023.2.4.tar.gz"])
66+
value = jsonencode(["WS", "232.9921.42", "https://download.jetbrains.com/webstorm/WebStorm-2023.2.2.tar.gz"])
6767
},
6868
"IU" = {
6969
icon = "/icon/intellij.svg",
7070
name = "IntelliJ IDEA Ultimate",
71-
value = jsonencode(["IU", "232.10203.10", "https://download.jetbrains.com/idea/ideaIU-2023.2.4.tar.gz"])
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"])
7277
},
7378
"PY" = {
7479
icon = "/icon/pycharm.svg",
7580
name = "PyCharm Professional",
76-
value = jsonencode(["PY", "232.10203.26", "https://download.jetbrains.com/python/pycharm-professional-2023.2.4.tar.gz"])
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"])
7787
},
7888
"RD" = {
7989
icon = "/icon/rider.svg",
8090
name = "Rider",
81-
value = jsonencode(["RD", "232.10203.29", "https://download.jetbrains.com/rider/JetBrains.Rider-2023.2.3.tar.gz"])
91+
value = jsonencode(["RD", "232.9559.61", "https://download.jetbrains.com/rider/JetBrains.Rider-2023.2.1.tar.gz"])
8292
}
8393
"CL" = {
8494
icon = "/icon/clion.svg",
@@ -88,17 +98,17 @@ locals {
8898
"DB" = {
8999
icon = "/icon/datagrip.svg",
90100
name = "DataGrip",
91-
value = jsonencode(["DB", "232.10203.8", "https://download.jetbrains.com/datagrip/datagrip-2023.2.3.tar.gz"])
101+
value = jsonencode(["DB", "232.9559.28", "https://download.jetbrains.com/datagrip/datagrip-2023.2.1.tar.gz"])
92102
},
93103
"PS" = {
94104
icon = "/icon/phpstorm.svg",
95105
name = "PhpStorm",
96-
value = jsonencode(["PS", "232.10072.32", "https://download.jetbrains.com/webide/PhpStorm-2023.2.3.tar.gz"])
106+
value = jsonencode(["PS", "232.9559.64", "https://download.jetbrains.com/webide/PhpStorm-2023.2.1.tar.gz"])
97107
},
98108
"RM" = {
99109
icon = "/icon/rubymine.svg",
100110
name = "RubyMine",
101-
value = jsonencode(["RM", "232.10203.15", "https://download.jetbrains.com/ruby/RubyMine-2023.2.4.tar.gz"])
111+
value = jsonencode(["RM", "232.9921.48", "https://download.jetbrains.com/ruby/RubyMine-2023.2.2.tar.gz"])
102112
}
103113
}
104114
}

0 commit comments

Comments
 (0)