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

Function getDevboxScripts

vscode-extension/src/extension.ts:157–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157async function getDevboxScripts(): Promise<string[]> {
158 try {
159 if (!workspace.workspaceFolders) {
160 window.showInformationMessage('No folder or workspace opened');
161 return [];
162 }
163 const workspaceUri = workspace.workspaceFolders[0].uri;
164 const devboxJson = await readDevboxJson(workspaceUri);
165 return Object.keys(devboxJson['shell']['scripts']);
166 } catch (error) {
167 console.error('Error processing devbox.json - ', error);
168 return [];
169 }
170}
171
172async function getDevboxPackages(): Promise<string[]> {
173 try {

Callers 1

activateFunction · 0.85

Calls 2

readDevboxJsonFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected