mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
Refresh pack listings before building workspace schemas
IrisData.get hands back a shared instance whose file listings outlive edits, so a studio update or datapack ingest regenerated schemas that still offered removed keys and missed new ones.
This commit is contained in:
1 parent
aaa5e05cf0
commit
3c6dc52b8e
3 files changed
+41
No files matched your search
@@ -181,6 +181,8 @@ public class IrisCodeWorkspace {
|
||||
List<JSONObject> schemaEntries = new ArrayList<>();
|
||||
List<CompletableFuture<String>> schemaWrites = new ArrayList<>();
|
||||
IrisData dm = IrisData.get(project.getPath());
|
||||
// The shared instance keeps its file listings across edits, so files added, moved or removed since would be missing.
|
||||
dm.clearLists();
|
||||
for (ResourceLoader<?> resourceLoader : dm.getLoaders().v()) {
|
||||
if (resourceLoader.supportsSchemas()) {
|
||||
schemaEntries.add(resourceLoader.schemaMapping());
|
||||
|
||||
Reference in new issue
Block a user