Skip to content

Commit 1be61f1

Browse files
committed
fix: plugin install uri
- the existing uri handling asks for url, workspace name and so on each time a coder toolbox URI is executed. - however there are cases where users simply want to install the plugin via jetbrains://gatway/com.coder.toolbox - in that case there is no point to ask for the coder deployment details.
1 parent 4bcf3d2 commit 1be61f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ open class CoderProtocolHandler(
4343
reInitialize: suspend (CoderRestClient, CoderCLIManager) -> Unit
4444
) {
4545
val params = uri.toQueryParameters()
46+
if (params.isEmpty()) {
47+
// probably a plugin installation scenario
48+
return
49+
}
4650

4751
val deploymentURL = params.url() ?: askUrl()
4852
if (deploymentURL.isNullOrBlank()) {

0 commit comments

Comments
 (0)