Skip to content

Commit c9c67cc

Browse files
committed
fix: always show the workspaces in the same order
- right now we depend on the underlying okhttp/moshi marshaller on which order the workspaces are listed. - instead we can sort them by name and guarantee some consistency
1 parent 7091e3b commit c9c67cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class CoderRemoteProvider(
131131
}
132132
lastEnvironments.apply {
133133
clear()
134-
addAll(resolvedEnvironments)
134+
addAll(resolvedEnvironments.sortedBy { it.id })
135135
}
136136
} catch (_: CancellationException) {
137137
context.logger.debug("${client.url} polling loop canceled")

0 commit comments

Comments
 (0)