1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00

fix(lsp): recreate npm search cache when cache path changes (#20327)

This commit is contained in:
David Sherret 2023-08-29 11:24:19 -05:00 committed by GitHub
parent b5f032df73
commit bdc91211b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(