diff options
Diffstat (limited to 'cli/lsp/registries.rs')
-rw-r--r-- | cli/lsp/registries.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs index 6fd48d8b9..43500e697 100644 --- a/cli/lsp/registries.rs +++ b/cli/lsp/registries.rs @@ -12,7 +12,7 @@ use super::path_to_regex::StringOrNumber; use super::path_to_regex::StringOrVec; use super::path_to_regex::Token; -use crate::deno_dir; +use crate::cache::DenoDir; use crate::file_fetcher::CacheSetting; use crate::file_fetcher::FileFetcher; use crate::http_cache::HttpCache; @@ -422,8 +422,8 @@ impl Default for ModuleRegistry { // This only gets used when creating the tsc runtime and for testing, and so // it shouldn't ever actually access the DenoDir, so it doesn't support a // custom root. - let dir = deno_dir::DenoDir::new(None).unwrap(); - let location = dir.root.join("registries"); + let dir = DenoDir::new(None).unwrap(); + let location = dir.registries_folder_path(); let http_client = HttpClient::new(None, None).unwrap(); Self::new(&location, http_client).unwrap() } |