From 8ed04fe798ab315cf760d1e1c01ac845a7db0fc2 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 7 Dec 2023 14:33:37 -0500 Subject: [PATCH] Remove commented-out code in theme importer --- crates/theme_importer/src/vscode/converter.rs | 58 ------------------- 1 file changed, 58 deletions(-) diff --git a/crates/theme_importer/src/vscode/converter.rs b/crates/theme_importer/src/vscode/converter.rs index 96bf07bb71a6cbde777c252482a0b2d5f9011336..3a2c920f7be2d095dc29531ab8348617389afabc 100644 --- a/crates/theme_importer/src/vscode/converter.rs +++ b/crates/theme_importer/src/vscode/converter.rs @@ -310,63 +310,5 @@ impl VsCodeThemeConverter { Ok(UserSyntaxTheme { highlights: highlight_styles.into_iter().collect(), }) - - // let mut highlight_styles = IndexMap::new(); - - // for token_color in self.theme.token_colors { - // highlight_styles.extend(token_color.highlight_styles()?); - // } - - // let syntax_theme = UserSyntaxTheme { - // highlights: highlight_styles.into_iter().collect(), - // }; - - // pub fn highlight_styles(&self) -> Result> { - // let mut highlight_styles = IndexMap::new(); - - // for syntax_token in ZedSyntaxToken::iter() { - // let scope = syntax_token.to_scope(); - - // // let token_color = - // } - - // let scope = match self.scope { - // Some(VsCodeTokenScope::One(ref scope)) => vec![scope.clone()], - // Some(VsCodeTokenScope::Many(ref scopes)) => scopes.clone(), - // None => return Ok(IndexMap::new()), - // }; - - // for scope in &scope { - // let Some(syntax_token) = Self::to_zed_token(&scope) else { - // continue; - // }; - - // let highlight_style = UserHighlightStyle { - // color: self - // .settings - // .foreground - // .as_ref() - // .traverse(|color| try_parse_color(&color))?, - // font_style: self - // .settings - // .font_style - // .as_ref() - // .and_then(|style| try_parse_font_style(&style)), - // font_weight: self - // .settings - // .font_style - // .as_ref() - // .and_then(|style| try_parse_font_weight(&style)), - // }; - - // if highlight_style.is_empty() { - // continue; - // } - - // highlight_styles.insert(syntax_token, highlight_style); - // } - - // Ok(highlight_styles) - // } } }