Skip to content

Commit

Permalink
The system tray icon should reflect the session state between thin cl…
Browse files Browse the repository at this point in the history
…ient and remote server (#85)
  • Loading branch information
azatsarynnyy authored Oct 15, 2024
1 parent 69baddb commit 47f3bfb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import com.intellij.ui.dsl.builder.panel
import com.jetbrains.gateway.api.ConnectionRequestor
import com.jetbrains.gateway.api.GatewayConnectionHandle
import com.jetbrains.gateway.api.GatewayConnectionProvider
import com.jetbrains.rd.util.lifetime.Lifetime

private const val DW_NAMESPACE = "dwNamespace"
private const val DW_NAME = "dwName"
Expand Down Expand Up @@ -71,7 +70,7 @@ class DevSpacesConnectionProvider : GatewayConnectionProvider {
}
}

return DevSpacesConnectionHandle(Lifetime.Eternal.createNested(), thinClient, connectionFrameComponent, dwName)
return DevSpacesConnectionHandle(thinClient.lifetime, thinClient, connectionFrameComponent, dwName)

Check warning on line 73 in src/main/kotlin/com/redhat/devtools/gateway/DevSpacesConnectionProvider.kt

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unstable API Usage

'lifetime' is declared in unstable 'com.jetbrains.gateway.thinClientLink.ThinClientHandle' marked with @ApiStatus.Experimental
}

override fun isApplicable(parameters: Map<String, String>): Boolean {
Expand Down

0 comments on commit 47f3bfb

Please sign in to comment.