Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Apr 17, 2024
1 parent 83b372c commit 45ef0ab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.github.simiacryptus.aicoder.actions.generic
import com.github.simiacryptus.aicoder.actions.FileContextAction
import com.github.simiacryptus.aicoder.config.AppSettingsState
import com.github.simiacryptus.aicoder.config.AppSettingsState.Companion.chatModel
import com.github.simiacryptus.aicoder.config.Name
import com.github.simiacryptus.aicoder.util.UITools
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
Expand All @@ -20,6 +21,7 @@ import java.io.File
import java.io.FileInputStream
import java.nio.file.Path
import java.util.concurrent.TimeUnit
import javax.swing.JTextArea

class GenerateRelatedFileAction : FileContextAction<GenerateRelatedFileAction.Settings>() {
override fun getActionUpdateThread() = ActionUpdateThread.BGT
Expand All @@ -33,7 +35,16 @@ class GenerateRelatedFileAction : FileContextAction<GenerateRelatedFileAction.Se
val code: String = ""
)

class SettingsUI
class SettingsUI {
@Name("Directive")
var directive: JTextArea = JTextArea(
"""
Create test cases
""".trimIndent(),
3,
120
)
}

class UserSettings(
var directive: String = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class MultiDiffChatAction : BaseAction() {
path = path,
showMenubar = false,
) {
override val singleInput = true
override val singleInput = false
override val stickyInput = false
override fun newSession(user: User?, session: Session) = agents[session]!!
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.simiacryptus.jopenai.exceptions

class CustomException(message: String) : Exception(message)

0 comments on commit 45ef0ab

Please sign in to comment.