Skip to content

Commit

Permalink
Add experiment for intellij-ext issue tracker service
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 570557014
  • Loading branch information
Googler authored and copybara-github committed Oct 4, 2023
1 parent cb1ded5 commit bcd3fae
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public class IntelliJExtManager {
// Keep all the experiments together for ease of maintenance
private static final BoolExperiment ENABLED = new BoolExperiment("use.intellij.ext", false);

private static final BoolExperiment ISSUETRACKER =
new BoolExperiment("use.intellij.ext.issuetracker", false);

public static IntelliJExtManager getInstance() {
return ApplicationManager.getApplication().getService(IntelliJExtManager.class);
}
Expand Down Expand Up @@ -88,4 +91,8 @@ private Path getBinaryPath() {
public boolean isEnabled() {
return getBinaryPath() != null;
}

public boolean isIssueTrackerEnabled() {
return isEnabled() && ISSUETRACKER.getValue();
}
}

0 comments on commit bcd3fae

Please sign in to comment.