Skip to content

Commit 9fa1808

Browse files
committed
fix(chat-coding-panel): improve handling of request intentions #51
1 parent b0bb226 commit 9fa1808

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main/kotlin/cc/unitmesh/devti/counit/CoUnitPreProcessor.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import cc.unitmesh.devti.gui.chat.ChatContext
66
import cc.unitmesh.devti.gui.chat.ChatRole
77
import cc.unitmesh.devti.llms.LlmFactory
88
import cc.unitmesh.devti.provider.ContextPrompter
9-
import cc.unitmesh.devti.counit.configurable.customRagSettings
109
import com.intellij.openapi.application.ApplicationManager
1110
import com.intellij.openapi.components.Service
1211
import com.intellij.openapi.diagnostic.logger
@@ -30,7 +29,7 @@ class CoUnitPreProcessor(val project: Project) {
3029

3130
val response = coUnitPromptGenerator.findIntention(request)
3231
if (response == null) {
33-
LOG.error("can not find intention for request: $request")
32+
logger.error("can not find intention for request: $request")
3433
return
3534
}
3635

@@ -81,7 +80,7 @@ class CoUnitPreProcessor(val project: Project) {
8180
}
8281

8382
companion object {
84-
private val LOG = logger<CoUnitPreProcessor>()
83+
private val logger = logger<CoUnitPreProcessor>()
8584
}
8685
}
8786

src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
6868
myScrollPane.verticalScrollBar.autoscrolls = true
6969
myScrollPane.background = UIUtil.getListBackground()
7070

71-
progressBar = JProgressBar().apply { preferredHeight = JBUI.scale(2) }
71+
progressBar = JProgressBar(2)
7272

7373
val actionLink = ActionLink(AutoDevBundle.message("label.submit.issue")) {
74-
BrowserUtil.browse("https://github.com/unit-mesh/auto-dev/issues")
74+
BrowserUtil.browse(AutoDevBundle.message("chat.panel.submit.issue.url"))
7575
}
7676
actionLink.setExternalLinkIcon()
7777

src/main/resources/messages/AutoDevBundle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ autodev.custom.prompt.placeholder=Custom your prompt here
3737

3838
tooltip.thanks=Thanks for like, but we don't support this
3939
label.submit.issue=Want new feature?
40+
chat.panel.submit.issue.url=https://github.com/unit-mesh/auto-dev/issues
4041

4142
# don't remove the following line and don't rename them unless change [LLMSettingCompoent] class
4243
settings.languageParam=Language

0 commit comments

Comments
 (0)