diff --git a/hasaki-gen-crud/hasaki-gen-crud.js b/hasaki-gen-crud/hasaki-gen-crud.js index 6abcc60..af73619 100644 --- a/hasaki-gen-crud/hasaki-gen-crud.js +++ b/hasaki-gen-crud/hasaki-gen-crud.js @@ -146,9 +146,13 @@ try { let httpFileName = path.join(fileDir, `auto_generated_http_${underscore_naming}_${fileBaseName}`) - fs.writeFile(crudFileName, `${package_src}\n\n${tmp[2]}`) + fs.writeFile(crudFileName, `${package_src}\n\n${tmp[2]}`, function () { - fs.writeFile(httpFileName, `${package_src}\n\n${tmp[3]}`) + }) + + fs.writeFile(httpFileName, `${package_src}\n\n${tmp[3]}`, function () { + + }) // vscode.window.showErrorMessage(res) }).catch(error => {