diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 9a874b57..00000000 Binary files a/.DS_Store and /dev/null differ diff --git a/build.gradle.kts b/build.gradle.kts index b3e32d2a..7268c962 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { } group = "com.devoxx.genie" -version = "0.4.0" +version = "0.4.1" repositories { mavenCentral() @@ -37,7 +37,7 @@ tasks.named("buildPlugin") { } dependencies { - val lg4j_version = "0.36.0" + val lg4j_version = "0.36.2" // Add the dependencies for the core module implementation(project(":core")) diff --git a/src/main/java/com/devoxx/genie/ui/panel/PromptOutputPanel.java b/src/main/java/com/devoxx/genie/ui/panel/PromptOutputPanel.java index c08d2c2c..ae89ff4f 100644 --- a/src/main/java/com/devoxx/genie/ui/panel/PromptOutputPanel.java +++ b/src/main/java/com/devoxx/genie/ui/panel/PromptOutputPanel.java @@ -22,8 +22,7 @@ import java.util.UUID; import static com.devoxx.genie.model.Constant.FIND_COMMAND; -import static javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED; -import static javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED; +import static javax.swing.ScrollPaneConstants.*; /** * This class represents the output panel for displaying chat prompts and responses. @@ -59,7 +58,7 @@ public PromptOutputPanel(Project project, ResourceBundle resourceBundle) { scrollPane = new JBScrollPane(container); scrollPane.setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_AS_NEEDED); - scrollPane.setHorizontalScrollBarPolicy(HORIZONTAL_SCROLLBAR_AS_NEEDED); + scrollPane.setHorizontalScrollBarPolicy(HORIZONTAL_SCROLLBAR_NEVER); setLayout(new BorderLayout()); add(scrollPane, BorderLayout.CENTER); diff --git a/src/main/java/com/devoxx/genie/ui/util/CodeSnippetAction.java b/src/main/java/com/devoxx/genie/ui/util/CodeSnippetAction.java index d4aed087..583ac333 100644 --- a/src/main/java/com/devoxx/genie/ui/util/CodeSnippetAction.java +++ b/src/main/java/com/devoxx/genie/ui/util/CodeSnippetAction.java @@ -10,6 +10,7 @@ import com.intellij.openapi.editor.Editor; import com.intellij.openapi.fileEditor.FileEditorManager; import org.commonmark.node.FencedCodeBlock; +import org.jetbrains.annotations.NotNull; import javax.swing.*; import java.awt.*; @@ -26,7 +27,9 @@ public CodeSnippetAction(ChatMessageContext chatMessageContext) { this.chatMessageContext = chatMessageContext; } - public JPanel createClipBoardButtonPanel(ChatMessageContext chatMessageContext, FencedCodeBlock fencedCodeBlock) { + public JPanel createClipBoardButtonPanel(@NotNull ChatMessageContext chatMessageContext, + FencedCodeBlock fencedCodeBlock) { + JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 2)); buttonPanel.setOpaque(true); diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 855defe1..ae581b6d 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -35,6 +35,10 @@ ]]> v0.4.1 +

v0.4.0