Skip to content

Commit

Permalink
The horizontal scrolling is again turned off because of unwanted side…
Browse files Browse the repository at this point in the history
… effects
  • Loading branch information
stephanj committed Dec 9, 2024
1 parent 2696e9c commit 1e39608
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
Binary file removed .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "com.devoxx.genie"
version = "0.4.0"
version = "0.4.1"

repositories {
mavenCentral()
Expand Down Expand Up @@ -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"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.*;
Expand All @@ -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);

Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
]]></description>

<change-notes><![CDATA[
<h2>v0.4.1</h2>
<UL>
<LI>Fix #352 : Restore horizontal scrolling in chat response panel</LI>
</UL>
<h2>v0.4.0</h2>
<UL>
<LI>RAG feature : Uses Chroma DB to index and search code using RAG</LI>
Expand Down
11 changes: 3 additions & 8 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<<<<<<< HEAD
#Mon Dec 09 12:48:54 CET 2024
#Mon Dec 09 18:57:18 CET 2024
=\=\=\=\=\=\=
<<<<<<<=HEAD
>>>>>>>=origin/master
version=0.4.0
=======
#Sat Dec 07 16:43:15 CET 2024
version=0.3.1
>>>>>>> master
>>>>>>>=master
version=0.4.1

0 comments on commit 1e39608

Please sign in to comment.