Skip to content

Commit 2369148

Browse files
committed
feat(chat): improve refactoring support by adding post-action support and code completion #129
This commit introduces post-action support and code completion enhancements to the chat feature, improving the refactoring capabilities of the application.
1 parent e6ec4de commit 2369148

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

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

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,14 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
301301
val label = panel {
302302
row {
303303
icon(AutoDevIcons.Idea).gap(RightGap.SMALL)
304-
text(msg).also {
305-
it.component.addMouseListener(object : MouseAdapter() {
306-
override fun mouseClicked(e: MouseEvent?) {
307-
inputSection.text = msg
308-
inputSection.requestFocus()
309-
310-
suggestionPanel.removeAll()
311-
updateUI()
312-
}
313-
})
304+
link(msg) {
305+
inputSection.text = msg
306+
inputSection.requestFocus()
307+
308+
suggestionPanel.removeAll()
309+
updateUI()
310+
}.also {
311+
it.component.foreground = JBColor.namedColor("Link.activeForeground", JBColor(Gray.x80, Gray.x8C))
314312
}
315313
}
316314
}

src/main/resources/icons/idea.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)