Skip to main content

definition_response_to_locations

Function definition_response_to_locations 

Source
pub fn definition_response_to_locations(
    resp: GotoDefinitionResponse,
) -> Vec<Location>
Expand description

5.5.LSP.2: flatten an LSP GotoDefinitionResponse (Scalar / Array / Link) into a uniform Vec<Location>. The Link shape carries richer per-result info (origin selection range used to highlight the symbol the user clicked); we drop it for now and keep the target location only – the App’s jump path is position-only. When 4.2.d’s picker buffer lands the link metadata (e.g., target_selection_range for narrower jump destinations) becomes useful and this function gains a richer sibling.