MCPcopy Index your code
hub / github.com/jetify-com/devbox / connectToRemote

Function connectToRemote

vscode-extension/src/openinvscode.ts:124–134  ·  view source on GitHub ↗
(username: string, vmId: string, workDir: string)

Source from the content-addressed store, hash-verified

122}
123
124function 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
136async function ensureDir(dir: string) {
137 try {

Callers 1

handleOpenInVSCodeFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected