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