Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46ca7a7

Browse files
committed
Merge branch 'main' into impl-progress-while-downloading-cli
2 parents 0504fbc + 8eb08e9 commit 46ca7a7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- `Stop` action is now available for running workspaces that have an out of date template.
1717
- outdated and stopped workspaces are now updated and started when handling URI
1818
- show errors when the Toolbox is visible again after being minimized.
19+
- URI handling now installs the exact build number if it is available for the workspace.
1920

2021
## 0.3.0 - 2025-06-10
2122

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=0.3.0
1+
version=0.3.1
22
group=com.coder.toolbox
33
name=coder-toolbox

src/main/kotlin/com/coder/toolbox/util/CoderProtocolHandler.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,16 +382,16 @@ open class CoderProtocolHandler(
382382
return null
383383
}
384384

385-
val matchingBuildNumber = availableVersions.firstOrNull { it.contains(buildNumber) } != null
386-
if (!matchingBuildNumber) {
385+
val buildNumberIsNotAvailable = availableVersions.firstOrNull { it.contains(buildNumber) } == null
386+
if (buildNumberIsNotAvailable) {
387387
val selectedIde = availableVersions.maxOf { it }
388388
context.logAndShowInfo(
389389
"$productCode-$buildNumber not available",
390390
"$productCode-$buildNumber is not available, we've selected the latest $selectedIde"
391391
)
392392
return selectedIde
393393
}
394-
return null
394+
return "$productCode-$buildNumber"
395395
}
396396

397397
private fun installJBClient(selectedIde: String, environmentId: String): Job = context.cs.launch {

0 commit comments

Comments
 (0)