@@ -117,7 +117,7 @@ impl HighlightingAssets {
117117
118118 pub fn save(&self, dir: Option<&Path>) -> Result<()> {
119119 let target_dir = dir.unwrap_or_else(|| PROJECT_DIRS.cache_dir());
120− let _ = fs::create_dir(target_dir);
120+ let _ = fs::create_dir_all(target_dir);
121121 let theme_set_path = target_dir.join("themes.bin");
122122 let syntax_set_path = target_dir.join("syntaxes.bin");
123123