[devkit] provide highlighting and completion for product-modules.xml (IDEA-348550)

DOM model is added for product-modules.xml, and ProductModulesXmlDomInspection is introduced to report errors in it. The inspection is marked as internal and disabled by default, because currently it makes sense for the 'intellij' project only.
References to modules in product-modules.xml use IntellijModuleSymbol as the target, but for now it isn't integrated in Symbol API, and its data is used directly to resolve references to modules in IntellijModuleConverter.

GitOrigin-RevId: 98f264fdad920b518125c6dfcff794d31778c1c6
This commit is contained in:
Nikolay Chashnikov
2024-03-07 11:26:41 +01:00
committed by intellij-monorepo-bot
parent e81758a867
commit a6b4669f4b
10 changed files with 235 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ public class DevkitInspectionsRegistrationCheckTest extends BasePlatformTestCase
List<LocalInspectionEP> devkitInspections = ContainerUtil.filter(LocalInspectionEP.LOCAL_INSPECTION.getExtensionList(), ep -> {
return "DevKit".equals(ep.getPluginDescriptor().getPluginId().getIdString());
});
assertEquals("Mismatch in total inspections, check classpath in test run configuration (intellij.devkit.plugin)", 66,
assertEquals("Mismatch in total inspections, check classpath in test run configuration (intellij.devkit.plugin)", 67,
devkitInspections.size());
List<LocalInspectionEP> disabledInspections = ContainerUtil.filter(devkitInspections, ep -> !ep.enabledByDefault);