diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
index 49630cce2..a98e3ae47 100644
--- a/.idea/codeStyles/Project.xml
+++ b/.idea/codeStyles/Project.xml
@@ -11,6 +11,9 @@
+
+
+
@@ -53,5 +56,8 @@
+
+
+
\ No newline at end of file
diff --git a/.idea/ktfmt.xml b/.idea/ktfmt.xml
index bfb71662f..228bfae43 100644
--- a/.idea/ktfmt.xml
+++ b/.idea/ktfmt.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/extensions/intellij/.run/Run_Continue.xml b/extensions/intellij/.run/Run_Continue.xml
index 44b2610c4..8aa354813 100644
--- a/extensions/intellij/.run/Run_Continue.xml
+++ b/extensions/intellij/.run/Run_Continue.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/extensions/intellij/.run/Tail Dev Logs.run.xml b/extensions/intellij/.run/Tail Dev Logs.run.xml
index 3348d6c51..5685b4fd8 100644
--- a/extensions/intellij/.run/Tail Dev Logs.run.xml
+++ b/extensions/intellij/.run/Tail Dev Logs.run.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt
index 9beb8b0c8..fe4985623 100644
--- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt
+++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt
@@ -41,19 +41,19 @@ import org.jdesktop.swingx.JXTextArea
const val MAIN_FONT_SIZE = 13
fun makeTextArea(): JTextArea {
- val textArea =
- CustomTextArea(1, 40).apply {
- lineWrap = true
- wrapStyleWord = true
- isOpaque = false
- background = GetTheme().getSecondaryDark()
- maximumSize = Dimension(400, Short.MAX_VALUE.toInt())
- margin = JBUI.insets(6, 4, 6, 4)
- font = UIUtil.getFontWithFallback("Arial", Font.PLAIN, MAIN_FONT_SIZE)
- preferredSize = Dimension(400, 75)
- }
- textArea.putClientProperty(UIUtil.HIDE_EDITOR_FROM_DATA_CONTEXT_PROPERTY, true)
- return textArea
+ val textArea =
+ CustomTextArea(1, 40).apply {
+ lineWrap = true
+ wrapStyleWord = true
+ isOpaque = false
+ background = GetTheme().getSecondaryDark()
+ maximumSize = Dimension(400, Short.MAX_VALUE.toInt())
+ margin = JBUI.insets(6, 4, 6, 4)
+ font = UIUtil.getFontWithFallback("Arial", Font.PLAIN, MAIN_FONT_SIZE)
+ preferredSize = Dimension(400, 75)
+ }
+ textArea.putClientProperty(UIUtil.HIDE_EDITOR_FROM_DATA_CONTEXT_PROPERTY, true)
+ return textArea
}
fun makePanel(
@@ -69,249 +69,250 @@ fun makePanel(
onAccept: () -> Unit,
onReject: () -> Unit
): JPanel {
- val topPanel =
- ShadowPanel(MigLayout("wrap 1, insets 2 ${leftInset} 2 2, gap 0!")).apply {
- background = JBColor(0x20888888.toInt(), 0x20888888.toInt())
- isOpaque = false
- }
-
- val panel =
- CustomPanel(
- MigLayout("wrap 1, insets 4 10 0 2, gap 0!, fillx"),
- project,
- modelTitles,
- comboBoxRef,
- onEnter,
- onCancel,
- onAccept,
- onReject,
- textArea)
- .apply {
- val globalScheme = EditorColorsManager.getInstance().globalScheme
- val defaultBackground = globalScheme.defaultBackground
- background = defaultBackground
- add(textArea, "grow, gap 0!, height 100%")
-
- putClientProperty(UIUtil.HIDE_EDITOR_FROM_DATA_CONTEXT_PROPERTY, true)
- preferredSize = textArea.preferredSize
- setup()
- }
-
- customPanelRef.set(panel)
-
- textArea.addComponentListener(
- object : ComponentAdapter() {
- override fun componentResized(e: ComponentEvent?) {
- panel.revalidate()
- panel.repaint()
+ val topPanel =
+ ShadowPanel(MigLayout("wrap 1, insets 2 ${leftInset} 2 2, gap 0!")).apply {
+ background = JBColor(0x20888888.toInt(), 0x20888888.toInt())
+ isOpaque = false
}
- })
- topPanel.add(panel, "grow, gap 0!")
+ val panel =
+ CustomPanel(
+ MigLayout("wrap 1, insets 4 10 0 2, gap 0!, fillx"),
+ project,
+ modelTitles,
+ comboBoxRef,
+ onEnter,
+ onCancel,
+ onAccept,
+ onReject,
+ textArea
+ )
+ .apply {
+ val globalScheme = EditorColorsManager.getInstance().globalScheme
+ val defaultBackground = globalScheme.defaultBackground
+ background = defaultBackground
+ add(textArea, "grow, gap 0!, height 100%")
- return topPanel
+ putClientProperty(UIUtil.HIDE_EDITOR_FROM_DATA_CONTEXT_PROPERTY, true)
+ preferredSize = textArea.preferredSize
+ setup()
+ }
+
+ customPanelRef.set(panel)
+
+ textArea.addComponentListener(
+ object : ComponentAdapter() {
+ override fun componentResized(e: ComponentEvent?) {
+ panel.revalidate()
+ panel.repaint()
+ }
+ })
+
+ topPanel.add(panel, "grow, gap 0!")
+
+ return topPanel
}
fun openInlineEdit(project: Project?, editor: Editor) {
- if (project == null) return
+ if (project == null) return
- // Don't open in terminal
- if (EditorUtils().isTerminal(editor)) {
- return
- }
+ // Don't open in terminal
+ if (EditorUtils().isTerminal(editor)) {
+ return
+ }
- val manager = EditorComponentInlaysManager.from(editor, true)
+ val manager = EditorComponentInlaysManager.from(editor, true)
- // Get list of model titles
- val continuePluginService = project.service()
- val modelTitles = mutableListOf()
- continuePluginService.coreMessenger?.request("config/getSerializedProfileInfo", null, null) {
- response ->
- val config = response as Map
- val models = (config["config"] as Map)["models"] as List