(username: string, vmId: string, workDir: string)
| 122 | } |
| 123 | |
| 124 | function connectToRemote(username: string, vmId: string, workDir: string) { |
| 125 | try { |
| 126 | const host = `${username}@${vmId}.vm.devbox-vms.internal`; |
| 127 | const workspaceURI = `vscode-remote://ssh-remote+${host}${workDir}`; |
| 128 | const uriToOpen = Uri.parse(workspaceURI); |
| 129 | console.debug("uriToOpen: ", uriToOpen.toString()); |
| 130 | commands.executeCommand("vscode.openFolder", uriToOpen, false); |
| 131 | } catch (err: any) { |
| 132 | console.error('failed to connect to remote: ' + err); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | async function ensureDir(dir: string) { |
| 137 | try { |
no test coverage detected