MCPcopy Create free account
hub / github.com/jetify-com/devbox / setupDotDevbox

Function setupDotDevbox

vscode-extension/src/devbox.ts:95–106  ·  view source on GitHub ↗
(workingDir: Uri, dotdevbox: Uri)

Source from the content-addressed store, hash-verified

93}
94
95async 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
108function updateVSCodeConf() {
109 if (process.platform === 'darwin') {

Callers 1

devboxReopenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected