Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ object IdeVersions {
),
Profile(
name = "2024.2",
gateway = ProductProfile(
sdkVersion = "242.23726-EAP-CANDIDATE-SNAPSHOT",
bundledPlugins = listOf("org.jetbrains.plugins.terminal")
),
community = ProductProfile(
sdkVersion = "2024.2",
bundledPlugins = commonPlugins + listOf(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package compat.com.jetbrains.gateway.thinClientLink

import com.jetbrains.gateway.thinClientLink.LinkedClientManager
import com.jetbrains.rd.util.lifetime.Lifetime
import java.net.URI

fun startNewClient(lifetime: Lifetime, initialLink: URI, remoteIdentity: String?, onStarted: () -> Unit) =
LinkedClientManager.getInstance().startNewClient(lifetime, initialLink, remoteIdentity, onStarted)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package compat.com.jetbrains.gateway.thinClientLink

Check notice on line 3 in plugins/toolkit/jetbrains-gateway/src-251+/src-243/compat/com/jetbrains/gateway/thinClientLink/StartNewClient.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Package name does not match containing directory

Package directive does not match the file location

Check notice

Code scanning / QDJVMC

Package name does not match containing directory Note

Package directive does not match the file location

import com.jetbrains.gateway.thinClientLink.LinkedClientManager
import com.jetbrains.rd.util.lifetime.Lifetime
import java.net.URI

fun startNewClient(lifetime: Lifetime, initialLink: URI, remoteIdentity: String?, onStarted: () -> Unit) =
LinkedClientManager.getInstance().startNewClient(lifetime, initialLink, remoteIdentity, null, onStarted)

Check warning on line 10 in plugins/toolkit/jetbrains-gateway/src-251+/src-243/compat/com/jetbrains/gateway/thinClientLink/StartNewClient.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unstable API Usage

'com.jetbrains.gateway.thinClientLink.LinkedClientManager.Companion' is declared in unstable 'com.jetbrains.gateway.thinClientLink.LinkedClientManager' marked with @ApiStatus.Experimental

Check warning on line 10 in plugins/toolkit/jetbrains-gateway/src-251+/src-243/compat/com/jetbrains/gateway/thinClientLink/StartNewClient.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unstable API Usage

'getInstance()' is declared in unstable 'com.jetbrains.gateway.thinClientLink.LinkedClientManager' marked with @ApiStatus.Experimental

Check warning on line 10 in plugins/toolkit/jetbrains-gateway/src-251+/src-243/compat/com/jetbrains/gateway/thinClientLink/StartNewClient.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unstable API Usage

'startNewClient(com.jetbrains.rd.util.lifetime.Lifetime, java.net.URI, java.lang.String, java.lang.String, kotlin.jvm.functions.Function0)' is declared in unstable 'com.jetbrains.gateway.thinClientLink.LinkedClientManager' marked with @ApiStatus.Experimental

Check warning

Code scanning / QDJVMC

Unstable API Usage Warning

'com.jetbrains.gateway.thinClientLink.LinkedClientManager.Companion' is declared in unstable 'com.jetbrains.gateway.thinClientLink.LinkedClientManager' marked with @ApiStatus.Experimental

Check warning

Code scanning / QDJVMC

Unstable API Usage Warning

'getInstance()' is declared in unstable 'com.jetbrains.gateway.thinClientLink.LinkedClientManager' marked with @ApiStatus.Experimental

Check warning

Code scanning / QDJVMC

Unstable API Usage Warning

'startNewClient(com.jetbrains.rd.util.lifetime.Lifetime, java.net.URI, java.lang.String, java.lang.String, kotlin.jvm.functions.Function0)' is declared in unstable 'com.jetbrains.gateway.thinClientLink.LinkedClientManager' marked with @ApiStatus.Experimental
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
package software.aws.toolkits.jetbrains.gateway.connection.workflow

import com.jetbrains.gateway.api.GatewayConnectionHandle
import com.jetbrains.gateway.thinClientLink.LinkedClientManager
import com.jetbrains.rd.util.lifetime.LifetimeDefinition
import com.jetbrains.rd.util.lifetime.onTermination
import com.jetbrains.rd.util.reactive.adviseEternal
import compat.com.jetbrains.gateway.thinClientLink.startNewClient
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import software.aws.toolkits.core.utils.getLogger
Expand Down Expand Up @@ -50,16 +49,15 @@ class StartBackend(
val clientHandle = ThinClientTrackerService.getInstance().associate(envId) {
val start = System.currentTimeMillis()
val thinClientHandle = try {
LinkedClientManager.getInstance()
.startNewClient(lifetime, localLink, URLEncoder.encode(message("caws.workspace.backend.title"), Charsets.UTF_8)) {
CodecatalystTelemetry.devEnvironmentWorkflowStatistic(
project = null,
userId = lazilyGetUserId(),
result = TelemetryResult.Succeeded,
duration = System.currentTimeMillis() - start.toDouble(),
codecatalystDevEnvironmentWorkflowStep = "startThinClient",
)
}
startNewClient(lifetime, localLink, URLEncoder.encode(message("caws.workspace.backend.title"), Charsets.UTF_8)) {
CodecatalystTelemetry.devEnvironmentWorkflowStatistic(
project = null,
userId = lazilyGetUserId(),
result = TelemetryResult.Succeeded,
duration = System.currentTimeMillis() - start.toDouble(),
codecatalystDevEnvironmentWorkflowStep = "startThinClient",
)
}
} catch (e: Throwable) {
CodecatalystTelemetry.devEnvironmentWorkflowStatistic(
project = null,
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ file("plugins").listFiles()?.forEach root@ {
if (it.name == "jetbrains-gateway") {
when (providers.gradleProperty("ideProfileName").get()) {
// buildSrc is evaluated after settings so we can't key off of IdeVersions.kt
"2023.3", "2024.1" -> {
"2023.3", "2024.1", "2024.2" -> {
return@forEach
}
}
Expand Down
Loading