From bfca749ff6d17b9bebf39a3c38f32699ce3eceba Mon Sep 17 00:00:00 2001 From: oldme Date: Tue, 12 Dec 2023 17:50:16 +0800 Subject: [PATCH] compatibility 222 --- gradle.properties | 6 +++--- .../com/github/oldmegit/goframeidea/startup/StartUp.kt | 6 +++--- src/main/resources/META-INF/plugin.xml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index 3c36756..3274731 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,13 +6,13 @@ pluginRepositoryUrl = https://github.com/oldme-git/goframe-idea # SemVer format -> https://semver.org pluginVersion=1.0.0-alpha -# Supported build number ranges and IntelliJ Platform versions -> h ttps://plugins.jetbrains.com/docs/intellij/build-number-ranges.html -pluginSinceBuild = 223 +# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html +pluginSinceBuild = 222 pluginUntilBuild = 233.* # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType = GO -platformVersion = 2023.2.4 +platformVersion = 2022.2 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 diff --git a/src/main/kotlin/com/github/oldmegit/goframeidea/startup/StartUp.kt b/src/main/kotlin/com/github/oldmegit/goframeidea/startup/StartUp.kt index 8b6c95d..ca8d44b 100644 --- a/src/main/kotlin/com/github/oldmegit/goframeidea/startup/StartUp.kt +++ b/src/main/kotlin/com/github/oldmegit/goframeidea/startup/StartUp.kt @@ -6,10 +6,10 @@ import com.intellij.openapi.progress.BackgroundTaskQueue import com.intellij.openapi.progress.ProgressIndicator import com.intellij.openapi.progress.Task import com.intellij.openapi.project.Project -import com.intellij.openapi.startup.ProjectActivity +import com.intellij.openapi.startup.StartupActivity -class StartUp : ProjectActivity { - override suspend fun execute(project: Project) { +class StartUp : StartupActivity { + override fun runActivity(project: Project) { val task = BackgroundTaskQueue(project, Bundle.getMessage("name")) task.run(object : Task.Backgroundable(project, Bundle.getMessage("init")) { override fun run(indicator: ProgressIndicator) { diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 1669509..5fb424a 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -1,5 +1,5 @@ - + com.github.oldmegit.goframeidea GoFrame Idea oldme-git