1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

fix(#10125): remove documents when closed in the lsp (#10254)

Fixes #10125
This commit is contained in:
Kitson Kelly 2021-04-20 07:11:23 +10:00 committed by GitHub
parent 65f7a021f0
commit fe8057105e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 657 additions and 179 deletions

View file

@ -124,10 +124,7 @@ impl DocumentCache {
}
pub fn close(&mut self, specifier: &ModuleSpecifier) {
if let Some(mut doc) = self.docs.get_mut(specifier) {
doc.version = None;
doc.dependencies = None;
}
self.docs.remove(specifier);
}
pub fn contains_key(&self, specifier: &ModuleSpecifier) -> bool {

File diff suppressed because it is too large Load diff