Skip to content

Commit a4ff169

Browse files
committed
feat(settings): add JsonTextProvider import to settings components #332
Add JsonTextProvider import to CustomizeConfigurable and LLMSettingComponent for local JSON text handling.
1 parent e8d7791 commit a4ff169

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/main/kotlin/cc/unitmesh/devti/settings/LLMSettingComponent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cc.unitmesh.devti.settings
22

33
import cc.unitmesh.devti.AutoDevBundle
44
import cc.unitmesh.devti.custom.schema.AUTODEV_CUSTOM_LLM_FILE
5+
import cc.unitmesh.devti.provider.local.JsonTextProvider
56
import cc.unitmesh.devti.settings.locale.HUMAN_LANGUAGES
67
import cc.unitmesh.devti.settings.locale.LanguageChangedCallback
78
import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.jBLabel
@@ -17,7 +18,6 @@ import com.intellij.util.ui.FormBuilder
1718
import javax.swing.JPanel
1819

1920
class LLMSettingComponent(private val settings: AutoDevSettingsState) {
20-
// 以下 LLMParam 变量不要改名,因为这些变量名会被用作配置文件的 key
2121
private val languageParam by LLMParam.creating({ LanguageChangedCallback.language = it }) {
2222
ComboBox(settings.language, HUMAN_LANGUAGES.entries.map { it.display })
2323
}

core/src/main/kotlin/cc/unitmesh/devti/settings/customize/CustomizeConfigurable.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import cc.unitmesh.devti.custom.schema.CUSTOM_PROMPTS_FILE_NAME
66
import cc.unitmesh.devti.custom.schema.MCP_SERVERS_FILE_NAME
77
import cc.unitmesh.devti.fullHeight
88
import cc.unitmesh.devti.fullWidthCell
9+
import cc.unitmesh.devti.provider.local.JsonTextProvider
910
import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.componentStateChanged
1011
import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.jBLabel
1112
import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.placeholder

0 commit comments

Comments
 (0)