Skip to content

Commit 7073d94

Browse files
committed
refactor(templates): rename .vm files to .devin and update references #257
- Renamed template files from .vm to .devin extension. - Updated all references to the renamed templates in the codebase.
1 parent f6cdd9e commit 7073d94

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/src/main/kotlin/cc/unitmesh/devti/gui/chat/message/ChatActionType.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ enum class ChatActionType(var context: ChatTemplateContext) {
9292
INLINE_CHAT -> {
9393
val displayText = AutoDevBundle.message("prompts.autodev.inlineChat", lang)
9494
val templateRender = TemplateRender(GENIUS_CODE)
95-
val template = templateRender.getTemplate("inline-chat.vm")
95+
val template = templateRender.getTemplate("inline-chat.devin")
9696

9797
TextTemplatePrompt(displayText, template, templateRender, this.context)
9898
}
9999

100100
SKETCH -> {
101101
val displayText = AutoDevBundle.message("prompts.autodev.sketch", lang)
102102
val templateRender = TemplateRender(GENIUS_CODE)
103-
val template = templateRender.getTemplate("sketch.vm")
103+
val template = templateRender.getTemplate("sketch.devin")
104104

105105
TextTemplatePrompt(displayText, template, templateRender, this.context)
106106
}

core/src/main/kotlin/cc/unitmesh/devti/inline/AutoDevInlineChatService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import kotlin.collections.set
1616
class AutoDevInlineChatService : Disposable, SimpleDevinPrompter() {
1717
private val allChats: ConcurrentHashMap<String, AutoDevInlineChatPanel> = ConcurrentHashMap()
1818
override val templateRender = TemplateRender(GENIUS_CODE)
19-
override val template = templateRender.getTemplate("inline-chat.vm")
19+
override val template = templateRender.getTemplate("inline-chat.devin")
2020

2121
fun showInlineChat(editor: Editor) {
2222
var canShowInlineChat = true

core/src/main/resources/genius/en/code/inline-chat.vm renamed to core/src/main/resources/genius/en/code/inline-chat.devin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ${selection}
1212

1313
User's question:
1414

15-
${input}
15+
$input

core/src/main/resources/genius/zh/code/inline-chat.vm renamed to core/src/main/resources/genius/zh/code/inline-chat.devin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ${selection}
1212

1313
用户的问题是:
1414

15-
${input}
15+
$input

0 commit comments

Comments
 (0)