File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/main/kotlin/com/coder/gateway/views/steps Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ class CoderLocateRemoteProjectStepView(private val disableNextAction: () -> Unit
140140
141141 ideResolvingJob = cs.launch {
142142 try {
143- val executor = withTimeout(Duration .ofSeconds(60 )) { createRemoteExecutor() }
143+ val executor = withTimeout(Duration .ofSeconds(60 )) { createRemoteExecutor(selectedWorkspace ) }
144144 retrieveIDES(executor, selectedWorkspace)
145145 if (ComponentValidator .getInstance(tfProject).isEmpty) {
146146 installRemotePathValidator(executor)
@@ -212,11 +212,12 @@ class CoderLocateRemoteProjectStepView(private val disableNextAction: () -> Unit
212212 })
213213 }
214214
215- private suspend fun createRemoteExecutor (): HighLevelHostAccessor {
215+ private suspend fun createRemoteExecutor (selectedWorkspace : WorkspaceAgentModel ): HighLevelHostAccessor {
216216 return HighLevelHostAccessor .create(
217217 RemoteCredentialsHolder ().apply {
218- setHost(" coder.${wizard. selectedWorkspace? .name} " )
218+ setHost(" coder.${selectedWorkspace.name} " )
219219 userName = " coder"
220+ port = 22
220221 authType = AuthType .OPEN_SSH
221222 },
222223 true
@@ -351,4 +352,4 @@ class CoderLocateRemoteProjectStepView(private val disableNextAction: () -> Unit
351352 companion object {
352353 val logger = Logger .getInstance(CoderLocateRemoteProjectStepView ::class .java.simpleName)
353354 }
354- }
355+ }
You can’t perform that action at this time.
0 commit comments