anymous telemetry based on redhat (#212)

* initial telemetry

* fixed segment bugs

* Move telemetry impl to submodule, add more actions

* Replace privacy policy link, minor refactoring

---------

Co-authored-by: Carl-Robert Linnupuu <carlrobertoh@gmail.com>
This commit is contained in:
keith siilats 2023-09-27 11:44:01 -04:00 committed by GitHub
parent 05c7560ec9
commit 8f9980fbf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 5348 additions and 32 deletions

View file

@ -2,7 +2,7 @@ package ee.carlrobert.codegpt.util;
import static com.intellij.openapi.ui.Messages.CANCEL;
import static com.intellij.openapi.ui.Messages.OK;
import static ee.carlrobert.codegpt.Icons.DefaultImageIcon;
import static ee.carlrobert.codegpt.Icons.DefaultIcon;
import com.intellij.execution.ExecutionBundle;
import com.intellij.notification.Notification;
@ -56,7 +56,7 @@ public class OverlayUtils {
return Messages.showYesNoDialog(
CodeGPTBundle.get("dialog.deleteConversation.description"),
CodeGPTBundle.get("dialog.deleteConversation.title"),
DefaultImageIcon);
DefaultIcon);
}
public static int showTokenLimitExceededDialog() {
@ -65,7 +65,7 @@ public class OverlayUtils {
CodeGPTBundle.get("dialog.tokenLimitExceeded.description"))
.yesText(CodeGPTBundle.get("dialog.tokenLimitExceeded.continue"))
.noText(CodeGPTBundle.get("dialog.tokenLimitExceeded.cancel"))
.icon(DefaultImageIcon)
.icon(DefaultIcon)
.doNotAsk(new DoNotAskOption.Adapter() {
@Override
public void rememberChoice(boolean isSelected, int exitCode) {