diff options
Diffstat (limited to 'cli/lsp/registries.rs')
-rw-r--r-- | cli/lsp/registries.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs index 96c24b43f..d044927bc 100644 --- a/cli/lsp/registries.rs +++ b/cli/lsp/registries.rs @@ -254,8 +254,10 @@ pub struct ModuleRegistry { impl Default for ModuleRegistry { fn default() -> Self { - let custom_root = std::env::var("DENO_DIR").map(String::into).ok(); - let dir = deno_dir::DenoDir::new(custom_root).unwrap(); + // 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 http_cache = HttpCache::new(&location); let cache_setting = CacheSetting::Use; |