diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-08-29 11:24:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 16:24:19 +0000 |
commit | bdc91211b067ea0a1e656ee0a0b4fecdd520bc31 (patch) | |
tree | c81f732e2a624832769f6748361c5b2f9965bcf2 /cli/lsp/language_server.rs | |
parent | b5f032df73bd5de78be53f002b9bef048cf59f44 (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.rs | 2 |
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( |