Skip to content

Commit b32a6d2

Browse files
author
jantje
committed
Move the creation of the code to before the description saving
1 parent 11c7ed4 commit b32a6d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

io.sloeber.core/src/io/sloeber/core/api/BoardDescriptor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,12 @@ public IProject createProject(String projectName, URI projectURI,
235235
} else {
236236
// this should not happen
237237
}
238-
238+
codeDescription.createFiles(projectHandle, monitor);
239239
prjCDesc.setActiveConfiguration(defaultConfigDescription);
240240
prjCDesc.setCdtProjectCreated();
241241
CoreModel.getDefault().getProjectDescriptionManager().setProjectDescription(projectHandle, prjCDesc, true,
242242
null);
243243
projectHandle.setDescription(desc, new NullProgressMonitor());
244-
codeDescription.createFiles(projectHandle, monitor);
245244
monitor.done();
246245
return projectHandle;
247246
}

0 commit comments

Comments
 (0)