Skip .DS_Store
files when scanning themes folder
This commit is contained in:
parent
5d90396b51
commit
8192a52bd0
1 changed files with 4 additions and 6 deletions
|
@ -49,12 +49,6 @@ pub struct ThemeMetadata {
|
||||||
pub appearance: ThemeAppearanceJson,
|
pub appearance: ThemeAppearanceJson,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load a vscode theme from json
|
|
||||||
// Load it's LICENSE from the same folder
|
|
||||||
// Create a ThemeFamily for the theme
|
|
||||||
// Create a ThemeVariant or Variants for the theme
|
|
||||||
// Output a rust file with the ThemeFamily and ThemeVariant(s) in it
|
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
SimpleLogger::init(LevelFilter::Info, Default::default()).expect("could not initialize logger");
|
SimpleLogger::init(LevelFilter::Info, Default::default()).expect("could not initialize logger");
|
||||||
|
|
||||||
|
@ -65,6 +59,10 @@ fn main() -> Result<()> {
|
||||||
for theme_family_dir in fs::read_dir(&vscode_themes_path)? {
|
for theme_family_dir in fs::read_dir(&vscode_themes_path)? {
|
||||||
let theme_family_dir = theme_family_dir?;
|
let theme_family_dir = theme_family_dir?;
|
||||||
|
|
||||||
|
if theme_family_dir.file_name().to_str() == Some(".DS_Store") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
let theme_family_slug = theme_family_dir
|
let theme_family_slug = theme_family_dir
|
||||||
.path()
|
.path()
|
||||||
.file_stem()
|
.file_stem()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue