Skip to content

Commit fcc5dc6

Browse files
committed
feat(core): add domain dictionary generation feature #358
- Add DomainDictGenerateAction to generate domains.csv - Update autodev-core.xml to include new action in ProjectViewToolbar - Add translation strings for new feature in AutoDevBundle properties files
1 parent b5c274f commit fcc5dc6

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,14 @@
411411
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT">
412412
</action>
413413

414+
<action id="cc.unitmesh.devti.DomainDictGenerate"
415+
class="cc.unitmesh.devti.indexer.DomainDictGenerateAction"
416+
description="Generate domains.csv"
417+
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT">
418+
419+
<add-to-group group-id="ProjectViewToolbar" anchor="last"/>
420+
</action>
421+
414422
<group id="autodev.statusBarPopup">
415423
<reference id="cc.unitmesh.devti.QuickAssistant"/>
416424
<reference id="cc.unitmesh.devti.EditSettings"/>

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,14 @@
414414
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT">
415415
</action>
416416

417+
<action id="cc.unitmesh.devti.DomainDictGenerate"
418+
class="cc.unitmesh.devti.indexer.DomainDictGenerateAction"
419+
description="Generate domains.csv"
420+
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT">
421+
422+
<add-to-group group-id="ProjectViewToolbar" anchor="last"/>
423+
</action>
424+
417425
<group id="autodev.statusBarPopup">
418426
<reference id="cc.unitmesh.devti.QuickAssistant"/>
419427
<reference id="cc.unitmesh.devti.EditSettings"/>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package cc.unitmesh.devti.indexer
2+
3+
import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.presentationText
4+
import com.intellij.openapi.actionSystem.AnAction
5+
import com.intellij.openapi.actionSystem.AnActionEvent
6+
7+
class DomainDictGenerateAction: AnAction() {
8+
init{
9+
presentationText("indexer.generate.domain", templatePresentation)
10+
}
11+
12+
override fun actionPerformed(event: AnActionEvent) {
13+
/// todo: add load source content file and call llm to gerneate to csv
14+
TODO("Not yet implemented")
15+
}
16+
}

core/src/main/resources/messages/AutoDevBundle_en.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,5 @@ chat.panel.add.files.tooltip=Add files to workspace
226226
chat.panel.select.files.title=Select Files for Workspace
227227
chat.panel.select.files.description=Choose files to add to your workspace
228228
chat.panel.remove.file.tooltip=Remove file from workspace
229+
230+
indexer.generate.domain=Generate domain.csv

core/src/main/resources/messages/AutoDevBundle_zh.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,5 @@ chat.panel.select.files.title=选择工作区文件
218218
chat.panel.select.files.description=选择要添加到工作区的文件
219219
chat.panel.remove.file.tooltip=从工作区移除文件
220220
chat.panel.add.openFiles=添加所有打开的文件
221+
222+
indexer.generate.domain=生成 domain.csv

0 commit comments

Comments
 (0)