Skip to content

Commit

Permalink
cache script and component
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Feb 27, 2025
1 parent 1da5574 commit 135a43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/preprocessor/src/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub fn file(path: &WorkspacePath) -> Result<Vec<Arc<Token>>, Error> {
#[cfg(not(feature = "lsp"))]
{
let path_str = path.as_str();
if ["macros", "common"].iter().any(|&x| path_str.contains(x)) {
if ["macros", "common", "script", "component"].iter().any(|&x| path_str.contains(x)) {
cache.tokens.insert(path.clone(), res.clone());
}
}
Expand Down

0 comments on commit 135a43e

Please sign in to comment.