-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Platform Version of JetBrains Backend Plugin to 223.7126-EAP-C…
…ANDIDATE-SNAPSHOT Co-authored-by: Andrea Falzetti <[email protected]>
- Loading branch information
Showing
19 changed files
with
268 additions
and
62 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
components/ide/jetbrains/backend-plugin/gradle-latest.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html | ||
# for insight into build numbers and IntelliJ Platform versions. | ||
pluginSinceBuild=223 | ||
pluginSinceBuild=223.7126 | ||
pluginUntilBuild=223.* | ||
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl | ||
# See https://jb.gg/intellij-platform-builds-list for available build versions. | ||
pluginVerifierIdeVersions=2022.3 | ||
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots | ||
platformVersion=223.6160-EAP-CANDIDATE-SNAPSHOT | ||
platformVersion=223.7126-EAP-CANDIDATE-SNAPSHOT |
4 changes: 2 additions & 2 deletions
4
components/ide/jetbrains/backend-plugin/gradle-stable.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html | ||
# for insight into build numbers and IntelliJ Platform versions. | ||
pluginSinceBuild=222 | ||
pluginSinceBuild=222.4345 | ||
pluginUntilBuild=222.* | ||
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl | ||
# See https://jb.gg/intellij-platform-builds-list for available build versions. | ||
pluginVerifierIdeVersions=2022.2 | ||
# Version from "com.jetbrains.intellij.idea" which can be found at https://www.jetbrains.com/intellij-repository/snapshots | ||
platformVersion=222.3345-EAP-CANDIDATE-SNAPSHOT | ||
platformVersion=222.4345-EAP-CANDIDATE-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...de/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/GitpodCLIHelper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
// Licensed under the GNU Affero General Public License (AGPL). | ||
// See License-AGPL.txt in the project root for license information. | ||
|
||
package io.gitpod.jetbrains.remote | ||
|
||
import java.nio.file.Path | ||
|
||
interface GitpodCLIHelper { | ||
suspend fun open(file: Path, shouldWait: Boolean) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...nd-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/GitpodGlobalPortForwardingService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
// Licensed under the GNU Affero General Public License (AGPL). | ||
// See License-AGPL.txt in the project root for license information. | ||
|
||
package io.gitpod.jetbrains.remote | ||
|
||
import com.intellij.openapi.Disposable | ||
|
||
interface GitpodGlobalPortForwardingService { | ||
fun monitorPortsOfPid(disposable: Disposable, pid: Long) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...s/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/latest/GitpodCLIHelperImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
// Licensed under the GNU Affero General Public License (AGPL). | ||
// See License-AGPL.txt in the project root for license information. | ||
|
||
package io.gitpod.jetbrains.remote.latest | ||
|
||
import com.intellij.ide.CommandLineProcessor | ||
import io.gitpod.jetbrains.remote.GitpodCLIHelper | ||
import java.nio.file.Path | ||
|
||
@Suppress("UnstableApiUsage") | ||
class GitpodCLIHelperImpl : GitpodCLIHelper { | ||
override suspend fun open(file :Path, shouldWait: Boolean) { | ||
CommandLineProcessor.doOpenFileOrProject(file, shouldWait).future.await() | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...rc/main/kotlin/io/gitpod/jetbrains/remote/latest/GitpodGlobalPortForwardingServiceImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright (c) 2022 Gitpod GmbH. All rights reserved. | ||
// Licensed under the GNU Affero General Public License (AGPL). | ||
// See License-AGPL.txt in the project root for license information. | ||
|
||
package io.gitpod.jetbrains.remote.latest | ||
|
||
import com.intellij.openapi.Disposable | ||
import com.intellij.openapi.components.service | ||
import com.intellij.openapi.diagnostic.thisLogger | ||
import com.intellij.openapi.project.Project | ||
import com.intellij.openapi.util.Disposer | ||
import com.intellij.remoteDev.util.onTerminationOrNow | ||
import com.intellij.ui.RowIcon | ||
import com.intellij.util.application | ||
import com.jetbrains.rd.platform.codeWithMe.portForwarding.* | ||
import com.jetbrains.rd.platform.util.lifetime | ||
import com.jetbrains.rd.util.lifetime.LifetimeStatus | ||
import io.gitpod.jetbrains.remote.GitpodIgnoredPortsForNotificationService | ||
import io.gitpod.jetbrains.remote.GitpodManager | ||
import io.gitpod.jetbrains.remote.GitpodGlobalPortForwardingService | ||
import io.gitpod.jetbrains.remote.GitpodPortsService | ||
import io.gitpod.jetbrains.remote.icons.GitpodIcons | ||
import io.gitpod.supervisor.api.Status | ||
import io.gitpod.supervisor.api.StatusServiceGrpc | ||
import io.grpc.stub.ClientCallStreamObserver | ||
import io.grpc.stub.ClientResponseObserver | ||
import io.ktor.utils.io.* | ||
import java.util.concurrent.CompletableFuture | ||
import java.util.concurrent.TimeUnit | ||
import javax.swing.Icon | ||
|
||
@Suppress("UnstableApiUsage") | ||
class GitpodGlobalPortForwardingServiceImpl: GitpodGlobalPortForwardingService { | ||
private val globalPortForwardingManager = service<GlobalPortForwardingManager>() | ||
|
||
override fun monitorPortsOfPid(disposable: Disposable, pid: Long) { | ||
globalPortForwardingManager.monitorPortsOfPid( | ||
disposable, | ||
pid, | ||
object : ListeningPortHandler { | ||
override fun onPortListeningStarted(port: ListeningPort) { | ||
thisLogger().warn("gitpod: onPortListeningStarted ${port.portType} ${port.pid} ${port.socketAddress}") | ||
} | ||
}, | ||
PortListeningOptions.INCLUDE_SELF_AND_CHILDREN | ||
) | ||
} | ||
} |
Oops, something went wrong.