-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update Platform Version from JetBrains Backend Plugin #13990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | ||
) | ||
} | ||
} |
This file contains hidden or 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
25 changes: 25 additions & 0 deletions
25
...kend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/latest/GitpodPortsActionCopyUrl.kt
This file contains hidden or 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,25 @@ | ||
// 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.actionSystem.AnAction | ||
import com.intellij.openapi.actionSystem.AnActionEvent | ||
import com.intellij.openapi.diagnostic.thisLogger | ||
import com.intellij.openapi.ide.CopyPasteManager | ||
import com.jetbrains.rd.platform.codeWithMe.portForwarding.PortForwardingDataKeys | ||
import java.awt.datatransfer.StringSelection | ||
|
||
@Suppress("ComponentNotRegistered", "UnstableApiUsage") | ||
class GitpodPortsActionCopyUrl : AnAction() { | ||
override fun actionPerformed(e: AnActionEvent) { | ||
val port = e.dataContext.getData(PortForwardingDataKeys.PORT) | ||
if (port != null) { | ||
thisLogger().warn("gitpod: Exec GitpodPortsActionCopyUrl: ${port.hostPortNumber}") | ||
CopyPasteManager.getInstance().setContents(StringSelection(port.hostPortNumber.toString())) | ||
} else { | ||
thisLogger().warn("gitpod: Exec: GitpodPortsActionCopyUrl: error unknown port") | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.