feat: auto apply (#743)

This commit is contained in:
Carl-Robert Linnupuu 2024-10-28 16:33:50 +00:00 committed by GitHub
parent ffa1fbbacf
commit 6fbea7d4b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 301 additions and 232 deletions

View file

@ -2,7 +2,6 @@ package ee.carlrobert.codegpt.actions;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.editor.Editor;
import ee.carlrobert.codegpt.telemetry.TelemetryAction;
import javax.swing.Icon;
import org.jetbrains.annotations.NotNull;
@ -10,16 +9,13 @@ import org.jetbrains.annotations.NotNull;
public abstract class TrackableAction extends AnAction {
private final ActionType actionType;
protected final Editor editor;
public TrackableAction(
@NotNull Editor editor,
String text,
String description,
Icon icon,
ActionType actionType) {
super(text, description, icon);
this.editor = editor;
this.actionType = actionType;
}