mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Do not continue on errors when creating the TypeLoader
This commit is contained in:
parent
d64dfa500c
commit
e3908cfce6
1 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,10 @@ pub async fn compile_syntax_node(
|
|||
let mut loader =
|
||||
typeloader::TypeLoader::new(global_type_registry, &compiler_config, &mut diagnostics);
|
||||
|
||||
if diagnostics.has_error() {
|
||||
return (crate::object_tree::Document::default(), diagnostics);
|
||||
}
|
||||
|
||||
let foreign_imports =
|
||||
loader.load_dependencies_recursively(&doc_node, &mut diagnostics, &type_registry).await;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue