summaryrefslogtreecommitdiff
path: root/cli/lsp/documents.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/documents.rs')
-rw-r--r--cli/lsp/documents.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs
index 154dfb5dc..8a98b8dd5 100644
--- a/cli/lsp/documents.rs
+++ b/cli/lsp/documents.rs
@@ -1015,6 +1015,11 @@ impl Documents {
Ok(())
}
+ pub fn release(&self, specifier: &ModuleSpecifier) {
+ self.file_system_docs.remove_document(specifier);
+ self.file_system_docs.set_dirty(true);
+ }
+
/// Return `true` if the provided specifier can be resolved to a document,
/// otherwise `false`.
pub fn contains_import(