Skip to content

Commit cd413c3

Browse files
committed
refactor: clean comments
1 parent eec8b77 commit cd413c3

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/main/kotlin/cc/unitmesh/devti/settings/AppSettingsComponent.kt

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

33
import com.intellij.json.JsonLanguage
4+
import com.intellij.jsonpath.psi.JsonPathFile
45
import com.intellij.openapi.editor.colors.EditorColorsUtil
56
import com.intellij.openapi.editor.ex.EditorEx
67
import com.intellij.openapi.project.ProjectManager
@@ -35,22 +36,10 @@ class AppSettingsComponent(settings: AutoDevSettingsState) {
3536
private val customEngineResponseFormat = JBTextField()
3637
private val language = ComboBox(HUMAN_LANGUAGES)
3738
private val maxTokenLengthInput = JBTextField()
38-
//
39-
// val promptSchema = AppSettingsComponent::class.java.getResource("/customPromptSchema.json")!!.path
40-
// val customPromptSchema = UserDefinedJsonSchemaConfiguration(
41-
// "customPrompt",
42-
// JsonSchemaVersion.SCHEMA_6,
43-
// promptSchema,
44-
// false,
45-
// emptyList()
46-
// )
4739

4840
private val customEnginePrompt by lazy {
4941
val project = ProjectManager.getInstance().openProjects.firstOrNull()
5042

51-
// val configuration = JsonSchemaMappingsProjectConfiguration.getInstance(project!!)
52-
// configuration.addConfiguration(customPromptSchema)
53-
5443
object : LanguageTextField(JsonLanguage.INSTANCE, project, "") {
5544
override fun createEditor(): EditorEx {
5645

0 commit comments

Comments
 (0)