summaryrefslogtreecommitdiff
path: root/cli/lsp/language_server.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-08-29 11:24:19 -0500
committerGitHub <noreply@github.com>2023-08-29 16:24:19 +0000
commitbdc91211b067ea0a1e656ee0a0b4fecdd520bc31 (patch)
treec81f732e2a624832769f6748361c5b2f9965bcf2 /cli/lsp/language_server.rs
parentb5f032df73bd5de78be53f002b9bef048cf59f44 (diff)
fix(lsp): recreate npm search cache when cache path changes (#20327)
Diffstat (limited to 'cli/lsp/language_server.rs')
-rw-r--r--cli/lsp/language_server.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs
index 9c1f4ee7a..d3c7ea492 100644
--- a/cli/lsp/language_server.rs
+++ b/cli/lsp/language_server.rs
@@ -913,6 +913,8 @@ impl Inner {
module_registries_location.clone(),
self.http_client.clone(),
);
+ self.npm.search_api =
+ CliNpmSearchApi::new(self.module_registries.file_fetcher.clone(), None);
self.module_registries_location = module_registries_location;
// update the cache path
let global_cache = Arc::new(GlobalHttpCache::new(