From 161a35ef5c849c1abbced1be2d99ec24e76682b5 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 8 Apr 2021 09:05:48 +0200 Subject: [PATCH] Fix completion when there are parse errors The type registery still need to be set on the document --- sixtyfps_compiler/typeloader.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sixtyfps_compiler/typeloader.rs b/sixtyfps_compiler/typeloader.rs index 339508c8c..b32815ce4 100644 --- a/sixtyfps_compiler/typeloader.rs +++ b/sixtyfps_compiler/typeloader.rs @@ -228,6 +228,7 @@ impl<'a> TypeLoader<'a> { if diagnostics.has_error() { let mut d = Document::default(); d.node = Some(dependency_doc.into()); + d.local_registry = TypeRegister::new(&self.global_type_registry); self.all_documents.docs.insert(path.to_owned(), d); return; }