mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
fix(lsp): recreate npm search cache when cache path changes (#20327)
This commit is contained in:
parent
b5f032df73
commit
bdc91211b0
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue