feat: option to disable open file chat tag and other minor improvements

This commit is contained in:
Carl-Robert Linnupuu 2025-01-23 15:10:23 +00:00
parent 6044f88697
commit f7c49f5f90
7 changed files with 133 additions and 155 deletions

View file

@ -308,9 +308,7 @@ public class ChatToolWindowTabPanel implements Disposable {
}
private Unit handleSubmit(String text, List<? extends HeaderTagDetails> appliedTags) {
var messageBuilder = new MessageBuilder(project, text)
.withSelectedEditorContent()
.withInlays(appliedTags);
var messageBuilder = new MessageBuilder(project, text).withInlays(appliedTags);
List<ReferencedFile> referencedFiles = getReferencedFiles();
if (!referencedFiles.isEmpty()) {