Merge pull request #2350 from zed-industries/copilot-disable

Disable copilot unless the staff mode flag is flipped
This commit is contained in:
Mikayla Maki 2023-04-03 22:00:47 -07:00 committed by Max Brunsfeld
parent 423ba0d351
commit c4b98b8cf1
16 changed files with 129 additions and 33 deletions

View file

@ -17,17 +17,6 @@ pub use backtrace::Backtrace;
use futures::Future;
use rand::{seq::SliceRandom, Rng};
#[derive(Debug, Default)]
pub struct StaffMode(pub bool);
impl std::ops::Deref for StaffMode {
type Target = bool;
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[macro_export]
macro_rules! debug_panic {
( $($fmt_arg:tt)* ) => {