What is the <module> element in the plugin.xml for?

I've noticed that a lot of Jetbrains plugins define one or more <module value../> elements, but the plugin.xml reference documentation seems to be missing information on this element.

Here's an example of multiple declarations in the IdeaPlugin.xml.

I'm guess that this allows a single plugin to declare multiple <depends> module IDs.  Is that right? Is there a scope to these modules? i.e. can they be used to only identify a subset of the plugin configuration?

 

 

0

`module` tags are used to specify which modules are provided by a particular IDE, and a plugin may refer to them in its `depends` tag to specify which IDEs it is compatible with, see our docs. They are not just aliases for plugin id, because the plugin repository won't find custom plugins by a module ID. Why do you need this?

0
Avatar
Permanently deleted user

Thanks Nikolay.

I was curious if it might allow a custom plugin to provide multiple modules, but it sounds like that is not the case.

 

0

请先登录再写评论。