1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2025-04-22 18:15:45 +02:00

Convert a plugin.xml service to a light service

This commit is contained in:
chylex 2023-11-07 21:27:42 +01:00
parent 29cf88cc4b
commit 182ad049d9
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
2 changed files with 2 additions and 4 deletions
src/main
kotlin/com/chylex/intellij/inspectionlens
resources/META-INF

View File

@ -1,10 +1,12 @@
package com.chylex.intellij.inspectionlens
import com.intellij.openapi.Disposable
import com.intellij.openapi.components.Service
/**
* Gets automatically disposed when the plugin is unloaded.
*/
@Service
class InspectionLensPluginDisposableService : Disposable {
override fun dispose() {}
}

View File

@ -50,10 +50,6 @@
<depends>com.intellij.modules.platform</depends>
<depends optional="true" config-file="compatibility/InspectionLens-Grazie.xml">tanvd.grazi</depends>
<extensions defaultExtensionNs="com.intellij">
<applicationService serviceImplementation="com.chylex.intellij.inspectionlens.InspectionLensPluginDisposableService" />
</extensions>
<applicationListeners>
<listener class="com.chylex.intellij.inspectionlens.InspectionLensPluginListener" topic="com.intellij.ide.plugins.DynamicPluginListener" />
</applicationListeners>