Add feature flags handling to the client, rewrite staff mode to a trait extension style
This commit is contained in:
parent
6fdf101745
commit
74565ed0b8
18 changed files with 143 additions and 107 deletions
|
@ -53,8 +53,6 @@ use uuid::Uuid;
|
|||
use welcome::{show_welcome_experience, FIRST_OPEN};
|
||||
|
||||
use fs::RealFs;
|
||||
#[cfg(debug_assertions)]
|
||||
use staff_mode::StaffMode;
|
||||
use util::{channel::RELEASE_CHANNEL, paths, ResultExt, TryFutureExt};
|
||||
use workspace::AppState;
|
||||
use zed::{
|
||||
|
@ -122,7 +120,10 @@ fn main() {
|
|||
cx.set_global(*RELEASE_CHANNEL);
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
cx.set_global(StaffMode(true));
|
||||
{
|
||||
use feature_flags::FeatureFlagAppExt;
|
||||
cx.set_staff(true);
|
||||
}
|
||||
|
||||
let mut store = SettingsStore::default();
|
||||
store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue