pub fn parse_vscode_theme_file(path: &Path) -> Result<VscodeTheme, ParseError>Expand description
Parse a Visual Studio Code theme from a file.
Equivalent to calling parse_vscode_theme
ยงUsage
use std::path::Path;
use syntect::highlighting::Theme;
use vscode_theme_syntect::parse_vscode_theme_file;
let vscode_theme = parse_vscode_theme_file(Path::new("assets/palenight.json")).unwrap();
assert!(Theme::try_from(vscode_theme).is_ok());