Update plugin for platform version 233
This commit is contained in:
parent
bd05a1c981
commit
6be2d28e4f
|
@ -14,7 +14,7 @@ repositories {
|
|||
// Configure Gradle IntelliJ Plugin
|
||||
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
|
||||
intellij {
|
||||
version.set("2022.2.5")
|
||||
version.set("2023.3.3")
|
||||
type.set("IC") // Target IDE Platform
|
||||
|
||||
plugins.set(listOf("com.intellij.java"))
|
||||
|
@ -31,8 +31,8 @@ tasks {
|
|||
}
|
||||
|
||||
patchPluginXml {
|
||||
sinceBuild.set("222")
|
||||
untilBuild.set("232.*")
|
||||
sinceBuild.set("233")
|
||||
untilBuild.set("233.*")
|
||||
}
|
||||
|
||||
signPlugin {
|
||||
|
|
|
@ -1,20 +1,12 @@
|
|||
package rs485.network.breakpoint
|
||||
|
||||
import com.intellij.openapi.project.Project
|
||||
import com.intellij.openapi.project.ProjectManagerListener
|
||||
import com.intellij.openapi.startup.ProjectActivity
|
||||
import com.intellij.xdebugger.XDebuggerManager
|
||||
|
||||
class DebuggerManagerAttacher : ProjectManagerListener {
|
||||
private var associatedProject: Project? = null
|
||||
|
||||
override fun projectOpened(project: Project) {
|
||||
if (associatedProject != null) {
|
||||
return
|
||||
}
|
||||
associatedProject = project
|
||||
|
||||
class PostStartupListener : ProjectActivity {
|
||||
override suspend fun execute(project: Project) {
|
||||
val connection = project.messageBus.connect()
|
||||
|
||||
val executionListener = LWJGLExitMouseGrabDebuggerManagerListener()
|
||||
connection.subscribe(XDebuggerManager.TOPIC, executionListener)
|
||||
}
|
|
@ -22,10 +22,6 @@
|
|||
<!-- Extension points defined by the plugin.
|
||||
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-extension-points.html -->
|
||||
<extensions defaultExtensionNs="com.intellij">
|
||||
<postStartupActivity implementation="rs485.network.breakpoint.PostStartupListener" />
|
||||
</extensions>
|
||||
|
||||
<projectListeners>
|
||||
<listener topic="com.intellij.openapi.project.ProjectManagerListener"
|
||||
class="rs485.network.breakpoint.DebuggerManagerAttacher"/>
|
||||
</projectListeners>
|
||||
</idea-plugin>
|
||||
|
|
Loading…
Reference in a new issue