Skip to content

Commit

Permalink
fix(chat): ensure file is added with force flag in selectionChanged
Browse files Browse the repository at this point in the history
Add `true` flag to `listModel.addIfAbsent` to force file addition in `selectionChanged` event handler.
  • Loading branch information
phodal committed Jan 27, 2025
1 parent 60c78a0 commit 811e9c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 811e9c3

Please sign in to comment.