Skip to content

Commit 4c442df

Browse files
c913168497phodal
andauthored
feat: 多窗口, 优化输出不会刷新Process (#297)
* pref: 优化panle输出, 可以在输出时选中, 并且不会一直刷新processbar * pref: 多窗口 --------- Co-authored-by: Fengda Huang <[email protected]>
1 parent 170e77f commit 4c442df

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

core/src/main/kotlin/cc/unitmesh/devti/gui/AutoDevToolWindowFactory.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ class AutoDevToolWindowFactory : ToolWindowFactory, DumbAware {
2828
val chatPanel = ContentFactory.getInstance().createContent(contentPanel, "AutoDev Chat", false).apply {
2929
setInitialDisplayName(this)
3030
}
31-
31+
32+
contentPanel.resetChatSession()
3233
initInlineChatForIdea223(project)
3334

34-
ApplicationManager.getApplication().invokeLater {
35+
ApplicationManager.getApplication().invokeLater {
3536
toolWindow.contentManager.addContent(chatPanel)
3637

3738
val hasSketch =

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
269269
}
270270
}
271271

272+
messageView.reRenderAssistantOutput()
272273
return text
273274
}
274275

core/src/main/kotlin/cc/unitmesh/devti/gui/toolbar/NewChatAction.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class NewChatAction : DumbAwareAction(), CustomComponentAction {
3939

4040
val codingPanel =
4141
contentManager?.component?.components?.filterIsInstance<ChatCodingPanel>()?.firstOrNull()
42-
42+
AutoDevToolWindowFactory().createToolWindowContent(project, toolWindowManager!!)
4343
if (codingPanel == null) {
44-
AutoDevToolWindowFactory().createToolWindowContent(project, toolWindowManager)
44+
// AutoDevToolWindowFactory().createToolWindowContent(project, toolWindowManager)
4545
return@addActionListener
4646
}
4747

0 commit comments

Comments
 (0)