From 72c37f72c19eaa163e6f0d9aac76af1002a9f47b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E5=85=B8=E5=85=B8?= <413153189@qq.com> Date: Wed, 24 Apr 2024 14:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 16 +++--------- build.gradle.kts | 26 +++++++++++++------ .../salvorstool/tool/MyRsPsiElementManager.kt | 3 +-- 3 files changed, 23 insertions(+), 22 deletions(-) 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