in karavan-vscode/src/extension.ts [165:194]
export async function exportAndRunProject(rootPath?: string, run?: boolean) {
utils.getExportFolder()
.then(folder => {
if (folder){
const fullPath = rootPath + path.sep + folder;
exec.runWithRuntime(fullPath, run);
} else {
window.showInputBox({
title: "Export project",
ignoreFocusOut: true,
prompt: "Export folder name",
value: ".export",
validateInput: (text: string): string | undefined => {
if (!text || text.length === 0) {
return 'Name should not be empty';
} else {
return undefined;
}
}
}).then(folder => {
if (folder && rootPath) {
const fullPath = rootPath + path.sep + folder;
exec.runWithRuntime(fullPath, run);
}
});
}
}).catch(error => {
console.log(error);
})
}