Skip to content

Commit

Permalink
Add parameters to ConnectionBuilder constructor, as on next Gateway r…
Browse files Browse the repository at this point in the history
…elease it won't run without them
  • Loading branch information
felladrin authored and roboquat committed Jun 7, 2022
1 parent 0471b88 commit be105da
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.components.service
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.openapi.progress.ProgressManager
import com.intellij.remote.RemoteCredentialsHolder
import com.intellij.ssh.AskAboutHostKey
import com.intellij.ssh.OpenSshLikeHostKeyVerifier
Expand Down Expand Up @@ -301,7 +302,11 @@ class GitpodConnectionProvider : GatewayConnectionProvider {
credentials.port = 22
credentials.userName = userName
credentials.password = password
credentials.connectionBuilder().withSshConnectionConfig {
credentials.connectionBuilder(
null,
ProgressManager.getGlobalProgressIndicator(),
false
).withSshConnectionConfig {
val hostKeyVerifier = it.hostKeyVerifier
if (hostKeyVerifier is OpenSshLikeHostKeyVerifier) {
val acceptHostKey = acceptHostKey(ideUrl, hostKeys)
Expand Down

0 comments on commit be105da

Please sign in to comment.