Inspectopedia
 
2024.3

Extension class is a Kotlin object

Error
New
Last modified: 03 December 2024

Reports extensions which are instantiated by the IntelliJ Platform, but are declared as Kotlin objects.

Extensions lifecycle is managed by the IntelliJ Platform. Using Kotlin objects for extension registration may cause creation of unnecessary extension instances and make plugin unloading impossible.

Extension registration:

Extension implementation:

New in 2023.1