Skip to content

Commit dc72445

Browse files
authored
VSCode fix (#427)
1 parent 95a6216 commit dc72445

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

commandLine/src/projects/VSCodeProject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ bool VSCodeProject::createProjectFile(){
8181
ofLogError(LOG_NAME) << "error removing file " << " : " << templateConfig << " : " << e.what();
8282
}
8383

84-
84+
8585
// Rename Project Workspace
8686
try {
8787
fs::rename(projectDir / "emptyExample.code-workspace", workspace.fileName);
8888
} catch(fs::filesystem_error& e) {
89-
ofLogError(LOG_NAME) << "error renaming folder " << " : " << workspace.fileName << " : " << e.what();
89+
ofLogError(LOG_NAME) << "error renaming project " << " : " << workspace.fileName << " : " << e.what();
9090
return false;
9191
}
9292
return true;

commandLine/src/projects/baseProject.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@ baseProject::baseProject(const string & _target) : target(_target) {
2424
}
2525

2626
fs::path baseProject::getPlatformTemplateDir() {
27-
return getOFRoot() / templatesFolder / target;
27+
string folder { target };
28+
if ( target == "msys2"
29+
|| target == "linux"
30+
|| target == "linux64"
31+
|| target == "linuxarmv6l"
32+
|| target == "linuxarmv7l"
33+
|| target == "linuxaarch64"
34+
) {
35+
folder = "vscode";
36+
}
37+
return getOFRoot() / templatesFolder / folder;
2838
}
2939

3040

commandLine/src/projects/baseProject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#define PG_VERSION "26"
3+
#define PG_VERSION "27"
44

55
#include "ofAddon.h"
66
#include "ofFileUtils.h"

0 commit comments

Comments
 (0)