1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
This commit is contained in:
McKayla Washburn 2022-06-23 11:12:49 -06:00
parent a232b4011a
commit 80df077746
2 changed files with 7 additions and 1 deletions

View file

@ -210,4 +210,8 @@ impl CacheMetadata {
self.cache = http_cache::HttpCache::new(location); self.cache = http_cache::HttpCache::new(location);
self.metadata.lock().clear(); self.metadata.lock().clear();
} }
pub fn clear_metadata(&self) {
self.metadata.lock().clear();
}
} }

View file

@ -2816,7 +2816,9 @@ impl Inner {
// now that we have dependencies loaded, we need to re-analyze them and // now that we have dependencies loaded, we need to re-analyze them and
// invalidate some diagnostics // invalidate some diagnostics
self.diagnostics_server.invalidate(&[referrer]); // self.diagnostics_server.invalidate(&[referrer]);
self.diagnostics_server.invalidate_all();
self.cache_metadata.clear_metadata();
self.send_diagnostics_update(); self.send_diagnostics_update();
self.send_testing_update(); self.send_testing_update();