File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
src/main/kotlin/cc/unitmesh/devti/settings Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 1
1
package cc.unitmesh.devti.settings
2
2
3
3
import com.intellij.json.JsonLanguage
4
+ import com.intellij.jsonpath.psi.JsonPathFile
4
5
import com.intellij.openapi.editor.colors.EditorColorsUtil
5
6
import com.intellij.openapi.editor.ex.EditorEx
6
7
import com.intellij.openapi.project.ProjectManager
@@ -35,22 +36,10 @@ class AppSettingsComponent(settings: AutoDevSettingsState) {
35
36
private val customEngineResponseFormat = JBTextField ()
36
37
private val language = ComboBox (HUMAN_LANGUAGES )
37
38
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
- // )
47
39
48
40
private val customEnginePrompt by lazy {
49
41
val project = ProjectManager .getInstance().openProjects.firstOrNull()
50
42
51
- // val configuration = JsonSchemaMappingsProjectConfiguration.getInstance(project!!)
52
- // configuration.addConfiguration(customPromptSchema)
53
-
54
43
object : LanguageTextField (JsonLanguage .INSTANCE , project, " " ) {
55
44
override fun createEditor (): EditorEx {
56
45
You can’t perform that action at this time.
0 commit comments