You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val connection =CoderConnectionMetadata(coderUrl, workspaceId)
24
+
if (coderUrl !=null&&workspaceName!=null) {
25
+
val connection =CoderConnectionMetadata(coderUrl, workspaceName)
19
26
if (connection in connections) {
20
27
logger.warning("There is already a connection started on ${connection.url} using the workspace ${connection.workspaceId}")
21
28
returnnull
22
29
}
30
+
val url =URL(coderUrl)
23
31
val clientLifetime =LifetimeDefinition()
32
+
val credentials =RemoteCredentialsHolder()
33
+
credentials.apply {
34
+
setHost("coder.${workspaceName}")
35
+
userName = user
36
+
setPrivateKeyFile(privateSSHKey)
37
+
}
38
+
var tcpJoinLink ="jetbrains-gateway://connect#projectPath=${projectPath}&host=${url.host}&port=22&user=${user}&type=ssh&deploy=true&buildNumber=221.5591.52&productCode=IU"
"coder_url" to URL(wizardModel.loginModel.uriScheme.toString().toLowerCase(), wizardModel.loginModel.host, wizardModel.loginModel.port.toString()).toString(),
0 commit comments