Skip to content

Commit

Permalink
live-preview: Don't list accessibility first
Browse files Browse the repository at this point in the history
hunger committed Sep 18, 2024
1 parent d2bd536 commit 902cb17
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tools/lsp/preview/properties.rs
Original file line number Diff line number Diff line change
@@ -332,7 +332,7 @@ fn get_properties(element: &common::ElementRcNode) -> Vec<PropertyInformation> {
ty: Type::Bool,
declared_at: None,
defined_at: None,
group: String::new(),
group: b.name.clone(),
});
}

@@ -341,14 +341,14 @@ fn get_properties(element: &common::ElementRcNode) -> Vec<PropertyInformation> {
ty: Type::Float32,
declared_at: None,
defined_at: None,
group: String::new(),
group: b.name.clone(),
});
result.push(PropertyInformation {
name: "visible".into(),
ty: Type::Bool,
declared_at: None,
defined_at: None,
group: String::new(),
group: b.name.clone(),
});

if b.name == "Image" {
@@ -411,8 +411,6 @@ fn get_properties(element: &common::ElementRcNode) -> Vec<PropertyInformation> {
break;
}

result.sort_by_key(|i| i.group.clone());

insert_property_definitions(element, result)
}

0 comments on commit 902cb17

Please sign in to comment.