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

apply theme_name(fallback use "")

Release Notes:

- N/A
This commit is contained in:
d1y 2024-02-07 23:13:46 +08:00 committed by GitHub
parent ad3940c66f
commit c7b022144f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(),
};