diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-08-08 10:23:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 14:23:02 +0000 |
commit | 05f838a57cc5b5e7b262e1640baa4d93dfb0df28 (patch) | |
tree | f13f97b5988c537023c05033bf862c52e74d080c /cli/lsp/completions.rs | |
parent | a037ed77a2b2dbef1d2c4175c0401738a13f13bd (diff) |
refactor: use deno_cache_dir crate (#20092)
Uses https://github.com/denoland/deno_cache/pull/26
Diffstat (limited to 'cli/lsp/completions.rs')
-rw-r--r-- | cli/lsp/completions.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cli/lsp/completions.rs b/cli/lsp/completions.rs index a895239a6..60244f2e4 100644 --- a/cli/lsp/completions.rs +++ b/cli/lsp/completions.rs @@ -520,14 +520,20 @@ mod tests { source_fixtures: &[(&str, &str)], location: &Path, ) -> Documents { - let cache = Arc::new(GlobalHttpCache::new(location.to_path_buf())); + let cache = Arc::new(GlobalHttpCache::new( + location.to_path_buf(), + crate::cache::RealDenoCacheEnv, + )); let mut documents = Documents::new(cache); for (specifier, source, version, language_id) in fixtures { let specifier = resolve_url(specifier).expect("failed to create specifier"); documents.open(specifier, *version, *language_id, (*source).into()); } - let http_cache = GlobalHttpCache::new(location.to_path_buf()); + let http_cache = GlobalHttpCache::new( + location.to_path_buf(), + crate::cache::RealDenoCacheEnv, + ); for (specifier, source) in source_fixtures { let specifier = resolve_url(specifier).expect("failed to create specifier"); |