mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-26 00:37:10 -07:00
More vscode tweaks
This commit is contained in:
parent
30101af0ab
commit
e6feeff0da
13 changed files with 115 additions and 25 deletions
|
@ -330,6 +330,17 @@ public abstract class AbstractCreateOperation<T extends AbstractCreateOperation<
|
|||
*/
|
||||
protected void executePopulateVscodeProject()
|
||||
throws FileUtilsErrorException {
|
||||
var launch_template = TemplateFactory.JSON.get(templateBase_ + "vscode.launch");
|
||||
launch_template.setValue("package", project_.pkg());
|
||||
if (launch_template.hasValueId("projectMain")) {
|
||||
launch_template.setValue("projectMain", projectMainName_);
|
||||
}
|
||||
if (launch_template.hasValueId("projectTest")) {
|
||||
launch_template.setValue("projectTest", projectTestName_);
|
||||
}
|
||||
var launch_file = new File(vscodeDirectory_, "launch.json");
|
||||
FileUtils.writeString(launch_template.getContent(), launch_file);
|
||||
|
||||
var settings_template = TemplateFactory.JSON.get(templateBase_ + "vscode.settings");
|
||||
if (settings_template.hasValueId("version")) {
|
||||
settings_template.setValue("version", BldVersion.getVersion());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue