Skip to content

Commit 91d3f9b

Browse files
committed
Add support for 2022.3 JetBrains IDEs
1 parent 65f4fc5 commit 91d3f9b

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
22
# for insight into build numbers and IntelliJ Platform versions.
3-
pluginSinceBuild=222
4-
pluginUntilBuild=222.*
3+
pluginSinceBuild=223
4+
pluginUntilBuild=223.*
55
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
66
# See https://jb.gg/intellij-platform-builds-list for available build versions.
77
pluginVerifierIdeVersions=2022.2
88
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots
9-
platformVersion=222.3739-EAP-CANDIDATE-SNAPSHOT
9+
# TODO: Update to 223.2931 snapshot when it becomes available.
10+
platformVersion=223.1192-EAP-CANDIDATE-SNAPSHOT

components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/latest/GitpodPortForwardingService.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class GitpodPortForwardingService(private val project: Project) {
9292
val hostPort = port.localPort
9393
val isServed = port.served
9494

95-
if (isServed && !forwardedPortsList.containsKey(hostPort)) {
95+
if (isServed && forwardedPortsList.find { it.hostPort == hostPort } == null) {
9696
val portEventsProcessor = object : PortEventsProcessor {
9797
override fun onPortForwarded(hostPort: Int, clientPort: Int) {
9898
portsService.setForwardedPort(hostPort, clientPort)
@@ -111,15 +111,18 @@ class GitpodPortForwardingService(private val project: Project) {
111111
val portInfo = ForwardedPortInfo(
112112
hostPort,
113113
RdPortType.HTTP,
114-
FORWARDED_PORT_LABEL,
114+
port.exposed.url,
115+
port.name,
116+
port.description,
117+
setOf(FORWARDED_PORT_LABEL),
115118
emptyList(),
116119
portEventsProcessor
117120
)
118121

119122
portForwardingManager.forwardPort(portInfo)
120123
}
121124

122-
if (!isServed && forwardedPortsList.containsKey(hostPort)) {
125+
if (!isServed && forwardedPortsList.find { it.hostPort == hostPort } != null) {
123126
portForwardingManager.removePort(hostPort)
124127
portsService.removeForwardedPort(hostPort)
125128
thisLogger().info("gitpod: Stopped forwarding port $hostPort.")

components/ide/jetbrains/image/BUILD.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ packages:
5050
metadata:
5151
helm-component: workspace.desktopIdeImages.intellijLatest
5252
buildArgs:
53-
JETBRAINS_BACKEND_URL: "https://download.jetbrains.com/product?type=release,rc,eap&distribution=linux&code=IIU"
53+
JETBRAINS_BACKEND_URL: "https://download-cdn.jetbrains.com/idea/gateway/idea_tmp/ideaIU-223.2931.tar.gz"
5454
SUPERVISOR_IDE_CONFIG: supervisor-ide-config_intellij.json
5555
JETBRAINS_BACKEND_QUALIFIER: latest
5656
image:

0 commit comments

Comments
 (0)