Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e53595b

Browse files
committedJun 10, 2025
fix: update&start outdated workspaces
URI handling was not able to start workspaces that were stopped and also outdated.
1 parent b3d0b73 commit e53595b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
 

‎CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Fixed
6+
7+
- outdated and stopped workspaces are now updated and started when handling URI
8+
59
## 0.3.0 - 2025-06-10
610

711
### Added

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@ open class CoderProtocolHandler(
173173
}
174174

175175
try {
176-
restClient.startWorkspace(workspace)
176+
if (workspace.outdated) {
177+
restClient.updateWorkspace(workspace)
178+
} else {
179+
restClient.startWorkspace(workspace)
180+
}
177181
} catch (e: Exception) {
178182
context.logAndShowError(
179183
CAN_T_HANDLE_URI_TITLE,

0 commit comments

Comments
 (0)
Please sign in to comment.