File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/kotlin/com/coder/toolbox/views Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import com.coder.toolbox.sdk.v2.models.WorkspaceAgent
6
6
import com.jetbrains.toolbox.api.remoteDev.environments.SshEnvironmentContentsView
7
7
import com.jetbrains.toolbox.api.remoteDev.ssh.SshConnectionInfo
8
8
import java.net.URL
9
- import java.util.concurrent.CompletableFuture
10
9
11
10
/* *
12
11
* A view for a single environment. It displays the projects and IDEs.
@@ -21,20 +20,21 @@ class EnvironmentView(
21
20
private val workspace : Workspace ,
22
21
private val agent : WorkspaceAgent ,
23
22
) : SshEnvironmentContentsView {
24
- override fun getConnectionInfo (): CompletableFuture < SshConnectionInfo > = CompletableFuture .completedFuture( object : SshConnectionInfo {
23
+ override suspend fun getConnectionInfo (): SshConnectionInfo = object : SshConnectionInfo {
25
24
/* *
26
25
* The host name generated by the cli manager for this workspace.
27
26
*/
28
- override fun getHost () = CoderCLIManager .getHostName(url, " ${workspace.name} .${agent.name} " )
27
+ override val host : String = CoderCLIManager .getHostName(url, " ${workspace.name} .${agent.name} " )
29
28
30
29
/* *
31
30
* The port is ignored by the Coder proxy command.
32
31
*/
33
- override fun getPort () = 22
32
+ override val port : Int = 22
34
33
35
34
/* *
36
35
* The username is ignored by the Coder proxy command.
37
36
*/
38
- override fun getUserName () = " coder"
39
- })
37
+ override val userName: String? = " coder"
38
+
39
+ }
40
40
}
You can’t perform that action at this time.
0 commit comments