summaryrefslogtreecommitdiff
path: root/cli/lsp/registries.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-08-08 10:23:02 -0400
committerGitHub <noreply@github.com>2023-08-08 14:23:02 +0000
commit05f838a57cc5b5e7b262e1640baa4d93dfb0df28 (patch)
treef13f97b5988c537023c05033bf862c52e74d080c /cli/lsp/registries.rs
parenta037ed77a2b2dbef1d2c4175c0401738a13f13bd (diff)
refactor: use deno_cache_dir crate (#20092)
Uses https://github.com/denoland/deno_cache/pull/26
Diffstat (limited to 'cli/lsp/registries.rs')
-rw-r--r--cli/lsp/registries.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs
index 0219653bd..186db50b8 100644
--- a/cli/lsp/registries.rs
+++ b/cli/lsp/registries.rs
@@ -422,7 +422,10 @@ pub struct ModuleRegistry {
impl ModuleRegistry {
pub fn new(location: PathBuf, http_client: Arc<HttpClient>) -> Self {
// the http cache should always be the global one for registry completions
- let http_cache = Arc::new(GlobalHttpCache::new(location));
+ let http_cache = Arc::new(GlobalHttpCache::new(
+ location,
+ crate::cache::RealDenoCacheEnv,
+ ));
let mut file_fetcher = FileFetcher::new(
http_cache.clone(),
CacheSetting::RespectHeaders,