Update VSCodeProjectScript.java

Pre-populate VSCodeProject settings with Ghidra formatter preferences.
This commit is contained in:
Peter Lucia 2024-10-07 17:28:53 -04:00 committed by GitHub
parent 8e3aaf0304
commit e6ed8da679
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,6 +114,8 @@ public class VSCodeProjectScript extends GhidraScript {
json.addProperty("java.import.gradle.enabled", false);
json.addProperty("java.import.gradle.wrapper.enabled", false);
json.addProperty("java.import.gradle.version", gradleVersion);
json.addProperty("java.format.settings.url",
new File(installDir, "support/eclipse/GhidraEclipseFormatter.xml").getAbsolutePath());
JsonArray sourcePathArray = new JsonArray();
json.add("java.project.sourcePaths", sourcePathArray);