title |
---|
Dynamic Plugins |
WARNING Please note that the information on this page is preliminary and might change.
Starting with 2020.1 release, the ability to install, update and uninstall plugins without restarting the IDE is available in the IntelliJ Platform. During plugin development, this also allows avoiding restarts of the IDE Development Instance after every code change.
For a plugin to support this, all restrictions listed below must be met. To verify a plugin locally, run Plugin DevKit | Plugin descriptor | Plugin.xml dynamic plugin verification
inspection on all plugin descriptor files (required plugin.xml
as well as any additional files).
For plugins hosted on the JetBrains plugin repository the built-in Plugin Verifier will run these checks automatically.
No Components must be used; existing ones must be migrated to services, extensions or listeners.
All <group>
s must declare a unique id
.
All extensions, whether defined in the platform itself or coming from other plugins, must be marked as dynamic (see next paragraph).
All extension points provided by the plugin must adhere to specific usage rules and then be declared ready for dynamic use explicitly.
Any Configurable
which depends on dynamic extension points must implement Configurable.WithEpDependencies
.
Register com.intellij.ide.plugins.DynamicPluginListener
listener to receive updates on plugin load/unload events.