summaryrefslogtreecommitdiff
path: root/cli/lsp/language_server.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-26 13:07:15 -0400
committerGitHub <noreply@github.com>2023-04-26 13:07:15 -0400
commit55a9977c6252a38fac721ad789df0c7e8acf33c9 (patch)
treeb549994ba0766a1f980c0565afcf325af405902e /cli/lsp/language_server.rs
parent5f7db93d0b883abaeae392e5bd8ea5b48e9fe4b5 (diff)
refactor(compile): remove usage of ProcState and CliOptions (#18855)
Diffstat (limited to 'cli/lsp/language_server.rs')
-rw-r--r--cli/lsp/language_server.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs
index e7968a665..288e45362 100644
--- a/cli/lsp/language_server.rs
+++ b/cli/lsp/language_server.rs
@@ -430,8 +430,8 @@ fn create_lsp_structs(
) {
let registry_url = CliNpmRegistryApi::default_url();
let progress_bar = ProgressBar::new(ProgressBarStyle::TextOnly);
- let npm_cache = Arc::new(NpmCache::from_deno_dir(
- dir,
+ let npm_cache = Arc::new(NpmCache::new(
+ dir.npm_folder_path(),
// Use an "only" cache setting in order to make the
// user do an explicit "cache" command and prevent
// the cache from being filled with lots of packages while