Skip to content

Commit

Permalink
fix #809
Browse files Browse the repository at this point in the history
fix bug when create an sgdk windows project
  • Loading branch information
zerasul committed Jul 21, 2023
1 parent e5c7d60 commit 893c88f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/IAppModelWin32.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ export class AppModelWin32 extends AppModel{
}
//add marsdev makefile
let toolchainType = vscode.workspace.getConfiguration().get(constants.TOOLCHAINTYPE);
let sourcefile = Path.join(this.extensionPath, "resources", "ccppsettings.windowssgdk.template");
if(toolchainType===constants.MARSDEV){
this.createMakefileMarsDev(rootPath);
this.createMakefileMarsDev(rootPath);
sourcefile = Path.join(this.extensionPath, "resources", "ccppsettings.windowsmarsdev.template");

}
//add settings.json
let sourcefile = Path.join(this.extensionPath, "resources", "ccppsettings.windowsmarsdev.template");
fs.copyFileSync(sourcefile, Path.join(vscodedirpath, "settings.json"));
this.terminal.sendText(`cd "${rootPath.fsPath}" && git init`);
return rootPath;
Expand Down

0 comments on commit 893c88f

Please sign in to comment.