diff --git a/CHANGELOG.md b/CHANGELOG.md index d37ff33..c72dabf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,21 +1,13 @@ -# IntelliJ Platform Plugin Template Changelog +# Changelog -## [Unreleased] +## Unreleased -## [1.3.3] - 2024-04-24 +## 1.3.4 - 2024-04-24 - 添加antd table column 快速生成 - 添加interface快速生成 -## [1.3.0] - 2024-04-23 +## 1.3.0 - 2024-04-23 - Add antd from form generation function - 添加生成antd pro from表单功能 - -## [1.1.2] - 2024-04-19 - -- upload test - -## [1.1.1] - 2024-04-19 - -- bug fix \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index b4162c0..c7b429f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,4 @@ +import org.jetbrains.changelog.Changelog plugins { id("org.jetbrains.kotlin.jvm") version "1.9.22" @@ -6,7 +7,7 @@ plugins { } group = "shop.itbug" -version = "1.3.3" +version = "1.3.4" repositories { mavenCentral() @@ -29,9 +30,23 @@ tasks { kotlinOptions.jvmTarget = "17" } + + + val myChangeLog = provider { + changelog.renderItem( + changelog + .getUnreleased() + .withHeader(false) + .withEmptySections(false), + Changelog.OutputType.HTML + ) + } + + patchPluginXml { sinceBuild.set("232") untilBuild.set("242.*") + changeNotes.set(myChangeLog) } signPlugin { @@ -50,16 +65,11 @@ tasks { jvmArgs = listOf("-XX:+AllowEnhancedClassRedefinition") } - test { - useJUnitPlatform() - } -} - -dependencies { - testImplementation(kotlin("test")) } changelog { + version = project.version as String unreleasedTerm.set("Unreleased") + path = file("CHANGELOG.md").canonicalPath groups.empty() } \ No newline at end of file diff --git a/src/main/kotlin/shop/itbug/salvorstool/tool/MyRsPsiElementManager.kt b/src/main/kotlin/shop/itbug/salvorstool/tool/MyRsPsiElementManager.kt index ea0acd8..6f9f0ed 100644 --- a/src/main/kotlin/shop/itbug/salvorstool/tool/MyRsPsiElementManager.kt +++ b/src/main/kotlin/shop/itbug/salvorstool/tool/MyRsPsiElementManager.kt @@ -95,8 +95,7 @@ class MyFieldPsiElementManager(private val psiElement: RsNamedFieldDecl) { } val docPsi = PsiTreeUtil.getChildOfType(psiElement, RsDocCommentImpl::class.java) //判断/// - - if (docPsi != null && docPsi.lastLeaf.elementType is RsDocTokenType) { + if (docPsi != null) { val last = PsiTreeUtil.lastChild(docPsi) if (last.elementType is RsDocTokenType) { return last.text