Skip to content

Commit

Permalink
Remove deprecated api for project open
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Feb 15, 2024
1 parent 5f37b3d commit 43a02e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ChecksInspectionsEnabledService>()
}
}
6 changes: 1 addition & 5 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<depends optional="true" config-file="blade.xml">com.jetbrains.php.blade</depends>

<extensions defaultExtensionNs="com.intellij">
<postStartupActivity implementation="dev.nybroe.collector.listeners.ChecksInspectionsEnabledProjectActivity"/>
<localInspection
language="PHP"
groupPath="PHP"
Expand Down Expand Up @@ -94,9 +95,4 @@
<extensions defaultExtensionNs="com.jetbrains.php">

</extensions>

<applicationListeners>
<listener class="dev.nybroe.collector.listeners.ChecksInspectionsEnabledProjectManagerListener"
topic="com.intellij.openapi.project.ProjectManagerListener"/>
</applicationListeners>
</idea-plugin>

0 comments on commit 43a02e2

Please sign in to comment.