diff --git a/src/main/kotlin/dev/nybroe/collector/listeners/ChecksInspectionsEnabledProjectManagerListener.kt b/src/main/kotlin/dev/nybroe/collector/listeners/ChecksInspectionsEnabledProjectActivity.kt similarity index 58% rename from src/main/kotlin/dev/nybroe/collector/listeners/ChecksInspectionsEnabledProjectManagerListener.kt rename to src/main/kotlin/dev/nybroe/collector/listeners/ChecksInspectionsEnabledProjectActivity.kt index 0ac93d7..521757e 100644 --- a/src/main/kotlin/dev/nybroe/collector/listeners/ChecksInspectionsEnabledProjectManagerListener.kt +++ b/src/main/kotlin/dev/nybroe/collector/listeners/ChecksInspectionsEnabledProjectActivity.kt @@ -2,11 +2,12 @@ package dev.nybroe.collector.listeners import com.intellij.openapi.components.service import com.intellij.openapi.project.Project -import com.intellij.openapi.project.ProjectManagerListener +import com.intellij.openapi.startup.ProjectActivity import dev.nybroe.collector.services.ChecksInspectionsEnabledService -class ChecksInspectionsEnabledProjectManagerListener : ProjectManagerListener { - override fun projectOpened(project: Project) { +class ChecksInspectionsEnabledProjectActivity : ProjectActivity { + + override suspend fun execute(project: Project) { project.service() } } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 56ab6a1..89edad2 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -9,6 +9,7 @@ com.jetbrains.php.blade + - - - -