Do not show internal modules in documentation popup, see RIDER-39200 for more details

GitOrigin-RevId: a638379b175f9009cd6c0cc696183997baaedac6
This commit is contained in:
Evgeniy.Stepanov
2020-05-14 20:16:33 +00:00
committed by intellij-monorepo-bot
parent c5ba307af9
commit cb52012217
@@ -1082,7 +1082,7 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr
ProjectFileIndex fileIndex = ProjectRootManager.getInstance(element.getProject()).getFileIndex();
Module module = fileIndex.getModuleForFile(vfile);
if (module != null) {
if (module != null && !ModuleType.isInternal(module)) {
if (ModuleManager.getInstance(element.getProject()).getModules().length == 1) return null;
return "<icon src='" + ModuleType.get(module).getId() + "'>&nbsp;" + module.getName().replace("<", "&lt;");
}