@@ -165,7 +165,6 @@ class CoderLocateRemoteProjectStepView(private val setNextButtonEnabled: (Boolea
165165 // Clear contents from the last attempt if any.
166166 cbIDEComment.foreground = UIUtil .getContextHelpForeground()
167167 cbIDEComment.text = CoderGatewayBundle .message(" gateway.connector.view.coder.remoteproject.ide.none.comment" )
168- cbIDE.renderer = IDECellRenderer (CoderGatewayBundle .message(" gateway.connector.view.coder.retrieve-ides" ))
169168 ideComboBoxModel.removeAllElements()
170169 setNextButtonEnabled(false )
171170
@@ -185,14 +184,23 @@ class CoderLocateRemoteProjectStepView(private val setNextButtonEnabled: (Boolea
185184 try {
186185 val ides = suspendingRetryWithExponentialBackOff(
187186 action = { attempt ->
188- logger.info(" Retrieving IDEs... (attempt $attempt )" )
189- if (attempt > 1 ) {
190- cbIDE.renderer = IDECellRenderer (CoderGatewayBundle .message(" gateway.connector.view.coder.retrieve.ides.retry" , attempt))
191- }
187+ logger.info(" Connecting with SSH and uploading worker if missing... (attempt $attempt )" )
188+ cbIDE.renderer =
189+ if (attempt > 1 )
190+ IDECellRenderer (CoderGatewayBundle .message(" gateway.connector.view.coder.connect-ssh.retry" , attempt))
191+ else IDECellRenderer (CoderGatewayBundle .message(" gateway.connector.view.coder.connect-ssh" ))
192192 val executor = createRemoteExecutor(CoderCLIManager .getHostName(deploymentURL, selectedWorkspace))
193+
193194 if (ComponentValidator .getInstance(tfProject).isEmpty) {
195+ logger.info(" Installing remote path validator..." )
194196 installRemotePathValidator(executor)
195197 }
198+
199+ logger.info(" Retrieving IDEs... (attempt $attempt )" )
200+ cbIDE.renderer =
201+ if (attempt > 1 )
202+ IDECellRenderer (CoderGatewayBundle .message(" gateway.connector.view.coder.retrieve-ides.retry" , attempt))
203+ else IDECellRenderer (CoderGatewayBundle .message(" gateway.connector.view.coder.retrieve-ides" ))
196204 retrieveIDEs(executor, selectedWorkspace)
197205 },
198206 retryIf = {
0 commit comments