mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-10 20:30:24 +00:00
feat: fast code edits (#601)
* feat: initial implementation of direct code edits * fix: popup model selection * refactor: simplify code replacement logic * feat: interactive code modifications * refactor: remove junk
This commit is contained in:
parent
cf5f38365d
commit
14a0d4085c
21 changed files with 690 additions and 181 deletions
|
|
@ -44,6 +44,7 @@ import java.io.IOException;
|
|||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Consumer;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
|
@ -274,7 +275,7 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
panel.add(JBUI.Panels.simplePanel(createUserPromptTextAreaHeader(
|
||||
project,
|
||||
selectedService,
|
||||
() -> {
|
||||
(provider) -> {
|
||||
ConversationService.getInstance().startConversation();
|
||||
contentManager.createNewTabPanel();
|
||||
})), BorderLayout.NORTH);
|
||||
|
|
@ -285,7 +286,7 @@ public class ChatToolWindowTabPanel implements Disposable {
|
|||
private JPanel createUserPromptTextAreaHeader(
|
||||
Project project,
|
||||
ServiceType selectedService,
|
||||
Runnable onModelChange) {
|
||||
Consumer<ServiceType> onModelChange) {
|
||||
return JBUI.Panels.simplePanel()
|
||||
.withBorder(Borders.emptyBottom(8))
|
||||
.andTransparent()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue