mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Fix completion when there are parse errors
The type registery still need to be set on the document
This commit is contained in:
parent
cdcf0faa5f
commit
161a35ef5c
1 changed files with 1 additions and 0 deletions
|
@ -228,6 +228,7 @@ impl<'a> TypeLoader<'a> {
|
||||||
if diagnostics.has_error() {
|
if diagnostics.has_error() {
|
||||||
let mut d = Document::default();
|
let mut d = Document::default();
|
||||||
d.node = Some(dependency_doc.into());
|
d.node = Some(dependency_doc.into());
|
||||||
|
d.local_registry = TypeRegister::new(&self.global_type_registry);
|
||||||
self.all_documents.docs.insert(path.to_owned(), d);
|
self.all_documents.docs.insert(path.to_owned(), d);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue