Skip to main content

parse_vscode_theme

Function parse_vscode_theme 

Source
pub fn parse_vscode_theme(file: &str) -> Result<Theme>
Expand description

Attempts to parse a theme file using visual studio code theme schema

§Arguments

  • file: Path to the theme file to be parsed

§Returns

  • A Theme if the parse is successful

§Errors

Can fail if the provided file cannot be read from or if serde_json is not able to deserialize the contents of the file

§Panics

This function might panic if a hex string within the file is not able to be parsed into a Color::Rgb