feat: code assistant (#810)

* feat: code assistant implementation

* refactor: clean up
This commit is contained in:
Carl-Robert Linnupuu 2024-12-26 23:27:18 +00:00
parent 0fc9118f5c
commit 6dc2aa07ae
32 changed files with 961 additions and 61 deletions

View file

@ -139,8 +139,14 @@ public class UIUtil {
}
public static JLabel createComment(String messageKey) {
return createComment(messageKey, ComponentPanelBuilder.MAX_COMMENT_WIDTH);
}
public static JLabel createComment(String messageKey, int maxLineLength) {
var comment = ComponentPanelBuilder.createCommentComponent(
CodeGPTBundle.get(messageKey), true);
CodeGPTBundle.get(messageKey),
true,
maxLineLength);
comment.setBorder(JBUI.Borders.empty(0, 4));
return comment;
}