Add importing-themes feature flag to theme2 crate

When this feature is set the `themes` module won't be compiled.
This allows us to run the `theme_importer` even when the `themes` module
has compile errors in it.
This commit is contained in:
Marshall Bowers 2023-11-09 12:49:16 -05:00
parent 60eae3e50a
commit ff19a0ca18
4 changed files with 9 additions and 4 deletions

View file

@ -6,7 +6,8 @@ mod registry;
mod scale;
mod settings;
mod syntax;
// mod themes;
#[cfg(not(feature = "importing-themes"))]
mod themes;
mod user_theme;
use std::sync::Arc;
@ -20,7 +21,8 @@ pub use registry::*;
pub use scale::*;
pub use settings::*;
pub use syntax::*;
// pub use themes::*;
#[cfg(not(feature = "importing-themes"))]
pub use themes::*;
pub use user_theme::*;
use gpui::{AppContext, Hsla, SharedString};