summaryrefslogtreecommitdiff
path: root/cli/lsp/registries.rs
diff options
context:
space:
mode:
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,