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
@@ -19,8 +24,6 @@ class CoderGatewayConnectionProvider : GatewayConnectionProvider {
19
24
val coderUrl = parameters["coder_url"]
20
25
val workspaceName = parameters["workspace_name"]
21
26
val user = parameters["username"]
22
-
val pass = parameters["password"]
23
-
val token = parameters["session_token"]
24
27
val projectPath = parameters["project_path"]
25
28
26
29
if (coderUrl !=null&& workspaceName !=null) {
@@ -33,13 +36,39 @@ class CoderGatewayConnectionProvider : GatewayConnectionProvider {
33
36
val credentials =RemoteCredentialsHolder()
34
37
credentials.apply {
35
38
setHost("coder.${workspaceName}")
36
-
userName =user
37
-
password=pass
39
+
userName ="coder"
40
+
authType=AuthType.OPEN_SSH
38
41
}
42
+
val context =SshMultistagePanelContext().apply {
43
+
deploy =true
44
+
sshConfig =SshConfig(true).apply {
45
+
setHost("coder.${workspaceName}")
46
+
setUsername(user)
47
+
authType =AuthType.OPEN_SSH
48
+
}
49
+
downloadMethod =SshDownloadMethod.SftpUpload
50
+
ide =IdeInfo(
51
+
IntelliJPlatformProduct.IDEA,
52
+
buildNumber ="221.5787.30"
53
+
)
54
+
}
55
+
56
+
// GlobalScope.launch {
57
+
// val deployPair = withContext(Dispatchers.IO) {
58
+
// SshDeployFlowUtil.fullDeployCycle(
59
+
// clientLifetime,
60
+
// context,
61
+
// Duration.ofMinutes(10)
62
+
// )
63
+
// }
64
+
//
65
+
//
66
+
// println(deployPair)
67
+
// }
39
68
40
-
var tcpJoinLink ="jetbrains-gateway://connect#projectPath=${projectPath}&host=coder.${workspaceName}&port=22&user=${user}&token=$token&type=ssh&deploy=true&buildNumber=221.5591.52&productCode=IU"
0 commit comments