summaryrefslogtreecommitdiff
path: root/cli/lsp/registries.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-11-25 19:04:30 -0500
committerGitHub <noreply@github.com>2022-11-26 00:04:30 +0000
commit0c0af67f89b610eb61e4f66a5dbf665474aa9383 (patch)
treeb2da2181d6ce10395da176ca8ac352345fc65fca /cli/lsp/registries.rs
parente0dd275935c49f5b5b844123d621c5dea1761983 (diff)
refactor: `DenoDir` - move to cache folder and make `root_dir` private (#16823)
Diffstat (limited to 'cli/lsp/registries.rs')
-rw-r--r--cli/lsp/registries.rs6
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()
}