Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
mustard-mh committed Nov 29, 2024
1 parent 6fd4a7d commit 17d19cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ class GitpodRemoteProviderEnvironment(
override fun getId(): String = connectParams.uniqueID
override fun getName(): String = connectParams.resolvedWorkspaceId

override fun getContentsView(): CompletableFuture<EnvironmentContentsView> = contentsViewFuture
override fun getContentsView(): CompletableFuture<EnvironmentContentsView> {
GitpodLogger.info("=============test.getContentView id: $id")
return contentsViewFuture
}

override fun setVisible(visibilityState: EnvironmentVisibilityState) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import io.gitpod.toolbox.service.ConnectParams
import io.gitpod.toolbox.service.GitpodConnectionProvider
import io.gitpod.toolbox.service.GitpodPublicApiManager
import io.gitpod.toolbox.service.Utils
import io.gitpod.toolbox.utils.GitpodLogger
import kotlinx.coroutines.future.future
import java.util.concurrent.CompletableFuture

Expand All @@ -30,13 +31,15 @@ class GitpodSSHEnvironmentContentsView(
val provider = GitpodConnectionProvider(authManager, connectParams, publicApi)
val (connInfo, cancel) = provider.connect()
this@GitpodSSHEnvironmentContentsView.cancel = cancel
GitpodLogger.info("=============test.getConnectionInfo port: ${connInfo.port}")
return@future connInfo
}
}

override fun addEnvironmentContentsListener(p0: ManualEnvironmentContentsView.Listener) {
stateListeners += p0
stateListeners.forEach{
// TODO: get from fetchJoinLink2Info
it.onProjectListUpdated(listOf(object : CachedProjectStub {
override fun getPath(): String {
return "/workspace/template-golang-cli"
Expand Down

0 comments on commit 17d19cf

Please sign in to comment.