Skip to content

Commit

Permalink
fix caching of jsx import source in lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Nov 9, 2021
1 parent ea2dda2 commit 9c7a197
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/lsp/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ impl CacheServer {
.as_ref()
.map(|im| im.as_resolver())
};
let maybe_imports = maybe_config_file
.map(|cf| cf.to_maybe_imports().ok())
.flatten()
.flatten();
let mut cache = FetchCacher::new(
ps.dir.gen_cache.clone(),
ps.file_fetcher.clone(),
Expand All @@ -70,7 +74,7 @@ impl CacheServer {
let graph = deno_graph::create_graph(
roots,
false,
None,
maybe_imports.clone(),
cache.as_mut_loader(),
maybe_resolver,
None,
Expand Down

0 comments on commit 9c7a197

Please sign in to comment.