Skip to content

Commit d82d38b

Browse files
committed
Add TODO
1 parent 8caa4f1 commit d82d38b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: components/ide/jetbrains/toolbox/src/main/kotlin/io/gitpod/toolbox/gateway/GitpodRemoteProviderEnvironment.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ class GitpodRemoteProviderEnvironment(
8080
override fun getId(): String = connectParams.uniqueID
8181
override fun getName(): String = connectParams.resolvedWorkspaceId
8282

83-
override fun getContentsView(): CompletableFuture<EnvironmentContentsView> = contentsViewFuture
83+
override fun getContentsView(): CompletableFuture<EnvironmentContentsView> {
84+
GitpodLogger.info("=============test.getContentView id: $id")
85+
return contentsViewFuture
86+
}
8487

8588
override fun setVisible(visibilityState: EnvironmentVisibilityState) {
8689
}

Diff for: components/ide/jetbrains/toolbox/src/main/kotlin/io/gitpod/toolbox/gateway/GitpodSSHEnvironmentContentsView.kt

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import io.gitpod.toolbox.service.ConnectParams
1414
import io.gitpod.toolbox.service.GitpodConnectionProvider
1515
import io.gitpod.toolbox.service.GitpodPublicApiManager
1616
import io.gitpod.toolbox.service.Utils
17+
import io.gitpod.toolbox.utils.GitpodLogger
1718
import kotlinx.coroutines.future.future
1819
import java.util.concurrent.CompletableFuture
1920

@@ -30,13 +31,15 @@ class GitpodSSHEnvironmentContentsView(
3031
val provider = GitpodConnectionProvider(authManager, connectParams, publicApi)
3132
val (connInfo, cancel) = provider.connect()
3233
this@GitpodSSHEnvironmentContentsView.cancel = cancel
34+
GitpodLogger.info("=============test.getConnectionInfo port: ${connInfo.port}")
3335
return@future connInfo
3436
}
3537
}
3638

3739
override fun addEnvironmentContentsListener(p0: ManualEnvironmentContentsView.Listener) {
3840
stateListeners += p0
3941
stateListeners.forEach{
42+
// TODO: get from fetchJoinLink2Info
4043
it.onProjectListUpdated(listOf(object : CachedProjectStub {
4144
override fun getPath(): String {
4245
return "/workspace/template-golang-cli"

0 commit comments

Comments
 (0)