diff --git a/src/extension.ts b/src/extension.ts index e024341..d91dda4 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -50,7 +50,12 @@ export function activate(context: vscode.ExtensionContext) { } async function getConfigJson() { - const config = await getJsonFile(`${cwd}/script-buttons.json`); + try { + const config = await getJsonFile(`${cwd}/script-buttons.json`); + } catch { + console.log('No script-buttons.json found in working directory, trying .vscode folder...'); + const config = await getJsonFile(`${cwd}/.vscode/script-buttons.json`); + } return config; }