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/documents.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/documents.rs')
-rw-r--r-- | cli/lsp/documents.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index 7fdce9923..439cf547d 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -1851,6 +1851,7 @@ fn sort_and_remove_non_leaf_dirs(mut dirs: Vec<PathBuf>) -> Vec<PathBuf> { #[cfg(test)] mod tests { use crate::cache::GlobalHttpCache; + use crate::cache::RealDenoCacheEnv; use crate::npm::NpmResolution; use super::*; @@ -1861,7 +1862,10 @@ mod tests { fn setup(temp_dir: &TempDir) -> (Documents, PathRef) { let location = temp_dir.path().join("deps"); - let cache = Arc::new(GlobalHttpCache::new(location.to_path_buf())); + let cache = Arc::new(GlobalHttpCache::new( + location.to_path_buf(), + RealDenoCacheEnv, + )); let documents = Documents::new(cache); (documents, location) } |