diff --git a/core/src/main/kotlin/cc/unitmesh/devti/gui/chat/ui/AutoDevInputSection.kt b/core/src/main/kotlin/cc/unitmesh/devti/gui/chat/ui/AutoDevInputSection.kt index aaf2259ca1..6c6ddc883f 100644 --- a/core/src/main/kotlin/cc/unitmesh/devti/gui/chat/ui/AutoDevInputSection.kt +++ b/core/src/main/kotlin/cc/unitmesh/devti/gui/chat/ui/AutoDevInputSection.kt @@ -198,7 +198,7 @@ class AutoDevInputSection(private val project: Project, val disposable: Disposab override fun selectionChanged(event: FileEditorManagerEvent) { val file = event.newFile ?: return ApplicationManager.getApplication().invokeLater { - listModel.addIfAbsent(file) + listModel.addIfAbsent(file, true) } } }