Skip to content

Commit c06299d

Browse files
committed
Fix: deployed os resolving is not allowed on EDT
1 parent 6984b4a commit c06299d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderLocateRemoteProjectStepView.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class CoderLocateRemoteProjectStepView(private val disableNextAction: () -> Unit
116116

117117
cs.launch {
118118
logger.info("Retrieving available IDE's for ${selectedWorkspace.name} workspace...")
119-
val workspaceOS = if (selectedWorkspace.agentOS != null && selectedWorkspace.agentArch != null) toDeployedOS(selectedWorkspace.agentOS, selectedWorkspace.agentArch) else withContext(Dispatchers.IO) {
119+
val workspaceOS = if (selectedWorkspace.agentOS != null && selectedWorkspace.agentArch != null) withContext(Dispatchers.IO) { toDeployedOS(selectedWorkspace.agentOS, selectedWorkspace.agentArch) } else withContext(Dispatchers.IO) {
120120
try {
121121
RemoteCredentialsHolder().apply {
122122
setHost("coder.${selectedWorkspace.name}")

0 commit comments

Comments
 (0)