File tree Expand file tree Collapse file tree 6 files changed +38
-6
lines changed
components/ide/jetbrains/backend-plugin/src/main
kotlin/io/gitpod/jetbrains/remote
resources-latest/META-INF
resources-stable/META-INF Expand file tree Collapse file tree 6 files changed +38
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import com.intellij.ide.BrowserUtil
99import com.intellij.notification.NotificationAction
1010import com.intellij.notification.NotificationType
1111import com.intellij.openapi.Disposable
12- import com.intellij.openapi.client.ClientSessionsManager
12+ import com.intellij.openapi.client.ClientProjectSession
1313import com.intellij.openapi.components.service
1414import com.intellij.openapi.components.serviceOrNull
1515import com.intellij.openapi.diagnostic.thisLogger
@@ -35,10 +35,10 @@ import java.util.concurrent.CancellationException
3535import java.util.concurrent.CompletableFuture
3636
3737@Suppress(" UnstableApiUsage" , " OPT_IN_USAGE" )
38- class GitpodClientProjectSessionTracker (private val project : Project ) : Disposable {
38+ abstract class AbstractGitpodClientProjectSessionTracker (private val project : Project ) : Disposable {
3939
4040 private val manager = service<GitpodManager >()
41- private val session = ClientSessionsManager .getProjectSession(project)
41+ abstract val session: ClientProjectSession ?
4242
4343 private lateinit var info: Info .WorkspaceInfoResponse
4444 private val lifetime = Lifetime .Eternal .createNested()
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2+ // Licensed under the GNU Affero General Public License (AGPL).
3+ // See License.AGPL.txt in the project root for license information.
4+
5+ package io.gitpod.jetbrains.remote.latest
6+
7+ import com.intellij.codeWithMe.ClientId
8+ import com.intellij.openapi.client.ClientProjectSession
9+ import com.intellij.openapi.client.ClientSessionsManager
10+ import com.intellij.openapi.project.Project
11+ import io.gitpod.jetbrains.remote.AbstractGitpodClientProjectSessionTracker
12+
13+ @Suppress(" UnstableApiUsage" )
14+ class GitpodClientProjectSessionTracker (val project : Project ) : AbstractGitpodClientProjectSessionTracker(project) {
15+ override val session: ClientProjectSession ? = ClientSessionsManager .getProjectSession(project, ClientId .current)
16+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2+ // Licensed under the GNU Affero General Public License (AGPL).
3+ // See License.AGPL.txt in the project root for license information.
4+
5+ package io.gitpod.jetbrains.remote.stable
6+
7+ import com.intellij.openapi.client.ClientProjectSession
8+ import com.intellij.openapi.client.ClientSessionsManager
9+ import com.intellij.openapi.project.Project
10+ import io.gitpod.jetbrains.remote.AbstractGitpodClientProjectSessionTracker
11+
12+ @Suppress(" UnstableApiUsage" )
13+ class GitpodClientProjectSessionTracker (val project : Project ) : AbstractGitpodClientProjectSessionTracker(project) {
14+ override val session: ClientProjectSession ? = ClientSessionsManager .getProjectSession(project)
15+ }
Original file line number Diff line number Diff line change 66<!-- suppress PluginXmlValidity -->
77<idea-plugin >
88 <extensions defaultExtensionNs =" com.intellij" >
9+ <projectService serviceImplementation =" io.gitpod.jetbrains.remote.latest.GitpodClientProjectSessionTracker"
10+ client =" controller" preload =" true" />
911 </extensions >
1012</idea-plugin >
Original file line number Diff line number Diff line change 66<!-- suppress PluginXmlValidity -->
77<idea-plugin >
88 <extensions defaultExtensionNs =" com.intellij" >
9+ <projectService serviceImplementation =" io.gitpod.jetbrains.remote.stable.GitpodClientProjectSessionTracker"
10+ client =" controller" preload =" true" />
911 </extensions >
1012</idea-plugin >
Original file line number Diff line number Diff line change 3838
3939 <httpRequestHandler implementation =" io.gitpod.jetbrains.remote.GitpodCLIService" />
4040
41- <projectService serviceImplementation =" io.gitpod.jetbrains.remote.GitpodClientProjectSessionTracker"
42- client =" controller" preload =" true" />
43-
4441 <gateway .customization.name
4542 implementation =" io.gitpod.jetbrains.remote.GitpodGatewayClientCustomizationProvider" />
4643 <gateway .customization.metrics id =" gitpodMetricsProvider"
You can’t perform that action at this time.
0 commit comments