Check for predict-edits feature flag, remove is_staff check (#23165)
Release Notes: - N/A --------- Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
This commit is contained in:
co-authored by
Thorsten Ball
parent
da8e65b3e5
commit
4a7630204a
@@ -1,7 +1,7 @@
|
||||
use anyhow::Result;
|
||||
use copilot::{Copilot, Status};
|
||||
use editor::{scroll::Autoscroll, Editor};
|
||||
use feature_flags::{FeatureFlagAppExt, ZetaFeatureFlag};
|
||||
use feature_flags::{FeatureFlagAppExt, PredictEditsFeatureFlag};
|
||||
use fs::Fs;
|
||||
use gpui::{
|
||||
actions, div, pulsating_between, Action, Animation, AnimationExt, AppContext,
|
||||
@@ -202,7 +202,7 @@ impl Render for InlineCompletionButton {
|
||||
}
|
||||
|
||||
InlineCompletionProvider::Zed => {
|
||||
if !cx.has_flag::<ZetaFeatureFlag>() {
|
||||
if !cx.has_flag::<PredictEditsFeatureFlag>() {
|
||||
return div();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user