Merge pull request #2350 from zed-industries/copilot-disable
Disable copilot unless the staff mode flag is flipped
This commit is contained in:
parent
423ba0d351
commit
c4b98b8cf1
16 changed files with 129 additions and 33 deletions
|
@ -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)* ) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue