theme_importer: Read theme name from VS Code theme (#7489)

d1y created

apply theme_name(fallback use "")

Release Notes:

- N/A

Change summary

crates/theme_importer/src/main.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/theme_importer/src/main.rs 🔗

@@ -135,7 +135,7 @@ fn main() -> Result<()> {
         .context(format!("failed to parse theme {theme_file_path:?}"))?;
 
     let theme_metadata = ThemeMetadata {
-        name: "".to_string(),
+        name: vscode_theme.name.clone().unwrap_or("".to_string()),
         appearance: ThemeAppearanceJson::Dark,
         file_name: "".to_string(),
     };