refactor(lsp): reland move resolver fields to LspResolver (#23685)

This commit is contained in:
Nayeem Rahman 2024-05-07 03:20:15 +01:00 committed by GitHub
parent 1587387bcc
commit cbb78e138f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 222 additions and 199 deletions

View file

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