(workingDir: Uri, dotdevbox: Uri)
| 93 | } |
| 94 | |
| 95 | async function setupDotDevbox(workingDir: Uri, dotdevbox: Uri) { |
| 96 | try { |
| 97 | // check if .devbox exists |
| 98 | await workspace.fs.stat(dotdevbox); |
| 99 | } catch (error) { |
| 100 | //.devbox doesn't exist |
| 101 | // running devbox shellenv to create it |
| 102 | spawnSync('devbox', ['shellenv'], { |
| 103 | cwd: workingDir.path |
| 104 | }); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | function updateVSCodeConf() { |
| 109 | if (process.platform === 'darwin') { |