Skip to content

Commit f7f396c

Browse files
committed
chore: remove custom progress while establishing the SSH connection
In previous TBX versions (2.6 and before) there was no progress while establishing the SSH connection, which is why we added a custom "SSHing" label with a circular progress bar while connecting to the SSH. While providing feedback to https://youtrack.jetbrains.com/issue/TBX-14925 I've noticed that TBX no longer renders "SSHing..", instead we have a "Connecting" label. This is apparently a new feature introduced in TBX 2.7.
1 parent f5e7926 commit f7f396c

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/main/kotlin/com/coder/toolbox/CoderRemoteEnvironment.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ class CoderRemoteEnvironment(
157157

158158
override fun beforeConnection() {
159159
context.logger.info("Connecting to $id...")
160-
context.cs.launch {
161-
state.update {
162-
wsRawStatus.toSshConnectingEnvState(context)
163-
}
164-
}
165160
isConnected.update { true }
166161
pollJob = pollNetworkMetrics()
167162
}

src/main/kotlin/com/coder/toolbox/models/WorkspaceAndAgentStatus.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,6 @@ enum class WorkspaceAndAgentStatus(val label: String, val description: String) {
9191
else EnvironmentStateIcons.NoIcon
9292
}
9393

94-
fun toSshConnectingEnvState(context: CoderToolboxContext): CustomRemoteEnvironmentStateV2 {
95-
val existingState = toRemoteEnvironmentState(context)
96-
return CustomRemoteEnvironmentStateV2(
97-
context.i18n.pnotr("SSHing"),
98-
existingState.color,
99-
existingState.isReachable,
100-
EnvironmentStateIcons.Connecting
101-
)
102-
}
103-
10494
/**
10595
* Return true if the agent is in a connectable state.
10696
*/

0 commit comments

Comments
 (0)