mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-23 04:28:32 +00:00
feat: explain commits from vcs log tree (relates #688)
This commit is contained in:
parent
353326544d
commit
194742f881
8 changed files with 154 additions and 9 deletions
|
|
@ -34,6 +34,7 @@ import ee.carlrobert.codegpt.ui.textarea.AppliedActionInlay;
|
|||
import ee.carlrobert.codegpt.ui.textarea.UserInputPanel;
|
||||
import ee.carlrobert.codegpt.util.EditorUtil;
|
||||
import ee.carlrobert.codegpt.util.file.FileUtil;
|
||||
import git4idea.GitCommit;
|
||||
import java.awt.BorderLayout;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
|
@ -117,6 +118,14 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
totalTokensPanel.updateConversationTokens(conversation);
|
||||
}
|
||||
|
||||
public void addSelection(String fileName, SelectionModel selectionModel) {
|
||||
userInputPanel.addSelection(fileName, selectionModel);
|
||||
}
|
||||
|
||||
public void addCommitReferences(List<GitCommit> gitCommits) {
|
||||
userInputPanel.addCommitReferences(gitCommits);
|
||||
}
|
||||
|
||||
public List<ReferencedFile> getReferencedFiles() {
|
||||
var referencedFiles = new LinkedHashMap<String, ReferencedFile>();
|
||||
|
||||
|
|
@ -417,8 +426,4 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
rootPanel.add(createUserPromptPanel(), BorderLayout.SOUTH);
|
||||
return rootPanel;
|
||||
}
|
||||
|
||||
public void addSelection(String fileName, SelectionModel selectionModel) {
|
||||
userInputPanel.addSelection(fileName, selectionModel);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue