Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test preview #19597

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Add TODO
  • Loading branch information
mustard-mh committed Jan 24, 2025
commit 8f1e1e0448d72824e7afcfaf0b69fe2321334424
Original file line number Diff line number Diff line change
@@ -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) {
}
Original file line number Diff line number Diff line change
@@ -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

@@ -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"