Skip to content

Commit a6bcc6b

Browse files
committed
feat(settings): sort LLM clients in dropdown
1 parent 5894bf5 commit a6bcc6b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- Generate commit action button is now a split button with a dropdown from which the user can change the LLM client from the commit dialog.
8+
- Sort LLM clients in settings dropdown.
89

910
## [2.11.1] - 2025-04-25
1011

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/AppSettingsConfigurable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AppSettingsConfigurable(val project: Project, cs: CoroutineScope) : BoundC
3636

3737
row {
3838
label(message("settings.llmClient")).widthGroup("labelPrompt")
39-
llmClientConfigurationComboBox = comboBox(AppSettings2.instance.llmClientConfigurations, AICommitsListCellRenderer())
39+
llmClientConfigurationComboBox = comboBox(AppSettings2.instance.llmClientConfigurations.sortedBy { it.name }, AICommitsListCellRenderer())
4040
.bindItem(getter = { projectSettings.getActiveLLMClientConfiguration() }, setter = { setActiveLLMClientConfiguration(it) })
4141
.widthGroup("input")
4242
.component

0 commit comments

Comments
 (0)