Skip to content

Commit

Permalink
lsp: Include id in Element range in the Properties data
Browse files Browse the repository at this point in the history
That is the more natural position to show in the UI.
  • Loading branch information
hunger committed Jun 26, 2024
1 parent 80bab3c commit 2ffed91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lsp/common/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ fn find_block_range(element: &common::ElementRcNode) -> Option<lsp_types::Range>
}

fn get_element_information(element: &common::ElementRcNode) -> ElementInformation {
let range = element.with_element_node(|node| util::map_node(node));
let range = element.with_decorated_node(|node| util::map_node(&node));
let e = element.element.borrow();

ElementInformation { id: e.id.clone(), type_name: e.base_type.to_string(), range }
Expand Down

0 comments on commit 2ffed91

Please sign in to comment.