mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
refactor(lsp): cleanup cache and module registry update (#23620)
This commit is contained in:
parent
02d0ff58d2
commit
1fce59281c
6 changed files with 138 additions and 153 deletions
|
@ -34,6 +34,12 @@ impl CliNpmSearchApi {
|
|||
versions_cache: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear_cache(&self) {
|
||||
self.file_fetcher.clear_memory_files();
|
||||
self.search_cache.clear();
|
||||
self.versions_cache.clear();
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue