Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove commented-out code in theme importer
Marshall Bowers8ed04fe798ab
diff --git a/crates/theme_importer/src/vscode/converter.rs b/crates/theme_importer/src/vscode/converter.rsindex 96bf07bb71a..3a2c920f7be 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<IndexMap<String, UserHighlightStyle>> {- // 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)- // }}}