File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,16 @@ bool VSCodeProject::createProjectFile(){
7373
7474 // Copy all files from template, recursively
7575 try {
76- fs::copy (templatePath, projectDir, fs::copy_options::overwrite_existing | fs::copy_options::recursive);
76+ // dangerous as its copying src/ and bin/ into existing project files
77+ // fs::copy(templatePath, projectDir, fs::copy_options::overwrite_existing | fs::copy_options::recursive);
78+
79+ // tmp fix for now - explicit copy of files needed
80+ fs::copy (templatePath / " .vscode" , projectDir, fs::copy_options::overwrite_existing | fs::copy_options::recursive);
81+ fs::copy (templatePath / " Makefile" , projectDir, fs::copy_options::skip_existing | fs::copy_options::recursive);
82+ fs::copy (templatePath / " config.make" , projectDir, fs::copy_options::skip_existing | fs::copy_options::recursive);
83+ fs::copy (templatePath / " emptyExample.code-workspace" , projectDir, fs::copy_options::overwrite_existing | fs::copy_options::recursive);
84+ fs::copy (templatePath / " template.config" , projectDir, fs::copy_options::overwrite_existing | fs::copy_options::recursive);
85+
7786 } catch (fs::filesystem_error& e) {
7887 ofLogError (LOG_NAME) << " error copying folder " << templatePath << " : " << projectDir << " : " << e.what ();
7988 return false ;
You can’t perform that action at this time.
0 commit comments