Skip to content

Commit 017810b

Browse files
committed
feat(autodev-chat): update group actions and refactor action types
The commit updates the group actions in the `org.intellij.sdk.action.GroupedActions` popup to reflect the new action types and refactors the `GenTestDataAction` to be part of the `cc.unitmesh.idea.actions` package.
1 parent 10aca12 commit 017810b

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

gradle-222.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
ideaVersion=IU-2022.2.4
66

77
# please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description
8-
pluginSinceBuild = 222.*
8+
pluginSinceBuild = 221.*
99
pluginUntilBuild = 232.*
1010

1111
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html

src/main/kotlin/cc/unitmesh/devti/actions/chat/GenTestDataAction.kt renamed to java/src/main/kotlin/cc/unitmesh/idea/actions/GenTestDataAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.devti.actions.chat
1+
package cc.unitmesh.idea.actions
22

33
import cc.unitmesh.devti.actions.chat.base.ChatBaseAction
44
import cc.unitmesh.devti.gui.chat.ChatActionType

java/src/main/resources/cc.unitmesh.idea.xml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
implementationClass="cc.unitmesh.idea.provider.JavaLivingDocumentation"/>
2626

2727
<testDataBuilder language="JAVA"
28-
implementationClass="cc.unitmesh.idea.provider.JavaTestDataBuilder"/>
28+
implementationClass="cc.unitmesh.idea.provider.JavaTestDataBuilder"/>
2929

3030
<chatContextProvider implementation="cc.unitmesh.idea.provider.JavaVersionProvider"/>
3131
<chatContextProvider implementation="cc.unitmesh.idea.provider.SpringContextProvider"/>
@@ -46,20 +46,30 @@
4646
implementation="cc.unitmesh.idea.service.JavaWriteTestService"/>
4747

4848
<buildSystemProvider
49-
implementation="cc.unitmesh.idea.provider.JavaBuildSystemProvider" />
49+
implementation="cc.unitmesh.idea.provider.JavaBuildSystemProvider"/>
5050

5151
<customPromptProvider
5252
language="JAVA"
53-
implementationClass="cc.unitmesh.idea.provider.JavaCustomPromptProvider" />
53+
implementationClass="cc.unitmesh.idea.provider.JavaCustomPromptProvider"/>
5454

5555
<layeredArchProvider
56-
implementation="cc.unitmesh.idea.provider.JavaLayeredArchProvider" />
56+
implementation="cc.unitmesh.idea.provider.JavaLayeredArchProvider"/>
5757

5858
<autoDevIntention>
5959
<className>cc.unitmesh.idea.actions.AutoCrudAction</className>
6060
<bundleName>messages.AutoDevBundle</bundleName>
6161
<categoryKey>intention.category.llm</categoryKey>
6262
</autoDevIntention>
63+
64+
<actions>
65+
<group id="org.intellij.sdk.action.GroupedActions" popup="true" text="AutoDev Chat"
66+
description="AutoDev chat">
67+
<action id="cc.unitmesh.idea.actions.GenTestDataAction"
68+
class="cc.unitmesh.idea.actions.GenTestDataAction" text="Generate Test Data (APIs)"
69+
description="Ask AI write this code">
70+
</action>
71+
</group>
72+
</actions>
6373
</extensions>
6474

6575
<extensions defaultExtensionNs="com.intellij">

src/222/main/resources/META-INF/autodev-core.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,6 @@
215215
description="Ask AI write this code">
216216
</action>
217217

218-
<action id="cc.unitmesh.devti.actions.chat.GenTestDataAction"
219-
class="cc.unitmesh.devti.actions.chat.GenTestDataAction" text="Generate Test Data (APIs)"
220-
description="Ask AI write this code">
221-
</action>
222-
223218
<add-to-group group-id="EditorPopupMenu" anchor="first"/>
224219
</group>
225220

src/233/main/resources/META-INF/autodev-core.xml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,13 @@
196196

197197
<!-- For right click -->
198198
<group id="org.intellij.sdk.action.GroupedActions" popup="true" text="AutoDev Chat" description="AutoDev chat">
199-
<action id="cc.unitmesh.devti.actions.chat.ExplainThisChatAction"
200-
class="cc.unitmesh.devti.actions.chat.ExplainThisChatAction" text="Explain This"
199+
<action id="cc.unitmesh.devti.actions.chat.ExplainThisAction"
200+
class="cc.unitmesh.devti.actions.chat.ExplainThisAction" text="Explain This"
201201
description="Ask AI about this code">
202202
</action>
203203

204-
<action id="cc.unitmesh.devti.actions.chat.RefactorThisChatAction"
205-
class="cc.unitmesh.devti.actions.chat.RefactorThisChatAction" text="Refactor This"
204+
<action id="cc.unitmesh.devti.actions.chat.RefactorThisAction"
205+
class="cc.unitmesh.devti.actions.chat.RefactorThisAction" text="Refactor This"
206206
description="Ask AI refactor this code">
207207
</action>
208208

@@ -216,11 +216,6 @@
216216
description="Ask AI write this code">
217217
</action>
218218

219-
<action id="cc.unitmesh.devti.actions.chat.GenTestDataAction"
220-
class="cc.unitmesh.devti.actions.chat.GenTestDataAction" text="Generate Test Data (APIs)"
221-
description="Ask AI write this code">
222-
</action>
223-
224219
<add-to-group group-id="EditorPopupMenu" anchor="first"/>
225220
</group>
226221

src/main/kotlin/cc/unitmesh/devti/actions/chat/ExplainThisChatAction.kt renamed to src/main/kotlin/cc/unitmesh/devti/actions/chat/ExplainThisAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ package cc.unitmesh.devti.actions.chat
33
import cc.unitmesh.devti.actions.chat.base.ChatBaseAction
44
import cc.unitmesh.devti.gui.chat.ChatActionType
55

6-
class ExplainThisChatAction : ChatBaseAction() {
6+
class ExplainThisAction : ChatBaseAction() {
77
override fun getActionType(): ChatActionType = ChatActionType.EXPLAIN
88
}

src/main/kotlin/cc/unitmesh/devti/actions/chat/RefactorThisChatAction.kt renamed to src/main/kotlin/cc/unitmesh/devti/actions/chat/RefactorThisAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.intellij.openapi.actionSystem.AnActionEvent
66
import com.intellij.openapi.actionSystem.CommonDataKeys
77
import com.intellij.openapi.command.WriteCommandAction
88

9-
class RefactorThisChatAction : ChatBaseAction() {
9+
class RefactorThisAction : ChatBaseAction() {
1010

1111
override fun getActionType(): ChatActionType = ChatActionType.REFACTOR
1212

0 commit comments

Comments
 (0)