mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
refactor(lsp): reland move resolver fields to LspResolver (#23685)
This commit is contained in:
parent
1587387bcc
commit
cbb78e138f
7 changed files with 222 additions and 199 deletions
|
@ -163,6 +163,12 @@ impl JsrCacheResolver {
|
|||
self.info_by_nv.insert(nv.clone(), info.clone());
|
||||
info
|
||||
}
|
||||
|
||||
pub fn did_cache(&self) {
|
||||
self.nv_by_req.retain(|_, nv| nv.is_some());
|
||||
self.info_by_nv.retain(|_, info| info.is_some());
|
||||
self.info_by_name.retain(|_, info| info.is_some());
|
||||
}
|
||||
}
|
||||
|
||||
fn read_cached_url(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue