[workspace model] fix loading newly added modules located deep under added directories (IDEA-253040)

If a directory was added, 'addedFileUrls' will contain only its direct children, so we need to explicitly add serializers for new modules mentioned in modules.xml files to 'affectedFileLoaders' list.

GitOrigin-RevId: 61d2683b031374e0831a9e0a2c147a3ce7fc7b82
This commit is contained in:
Nikolay Chashnikov
2020-10-22 15:49:24 +03:00
committed by intellij-monorepo-bot
parent 5ecdcd4f91
commit 4c971bf289
6 changed files with 51 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/foo.iml" filepath="$PROJECT_DIR$/foo.iml" />
</modules>
</component>
</project>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="EMPTY_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>