Skip to content

Commit 45cabcd

Browse files
committed
impl: support $workspaceOwner as placeholder in the workspace creation
Should be replaced with the name of the user that is authenticated.
1 parent 81467c1 commit 45cabcd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ class CoderRemoteProvider(
225225
listOf(
226226
Action(context, "Create workspace") {
227227
val url = context.settingsStore.workspaceCreateUrl ?: client?.url?.withPath("/templates").toString()
228-
context.desktop.browse(url) {
228+
context.desktop.browse(
229+
url
230+
.replace("\$workspaceOwner", client?.me()?.username ?: "")
231+
) {
229232
context.ui.showErrorInfoPopup(it)
230233
}
231234
},

0 commit comments

Comments
 (0)