Skip to content

Commit 536b1b3

Browse files
authored
Update VSCodeProject.cpp closes #466
1 parent 4985bdb commit 536b1b3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

commandLine/src/projects/VSCodeProject.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)