Refactor staff mode into a seperate crate and make copilot initialization wait for the staff mode flag to be flipped

This commit is contained in:
Mikayla Maki 2023-04-03 20:16:45 -07:00
parent 1627cf7eae
commit 6bfecd7f66
14 changed files with 100 additions and 32 deletions

View file

@ -6,9 +6,10 @@ use gpui::{AsyncAppContext, Entity, ImageData, ModelContext, ModelHandle, Task};
use postage::{sink::Sink, watch};
use rpc::proto::{RequestMessage, UsersResponse};
use settings::Settings;
use staff_mode::StaffMode;
use std::sync::{Arc, Weak};
use util::http::HttpClient;
use util::{StaffMode, TryFutureExt as _};
use util::TryFutureExt as _;
#[derive(Default, Debug)]
pub struct User {